/* ===========================
   Tool Page Visual Components CSS
   =========================== */

/* Existing GPA Card */
.existing-gpa-card {
    background: white;
    border: 1.5px solid var(--primary-200);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow), 0 0 20px rgba(99,102,241,0.08);
}

.existing-gpa-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: end;
}

.existing-gpa-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.existing-gpa-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    outline: none;
    transition: var(--transition);
}

.existing-gpa-field input:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

/* Goal Result */
.goal-result {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1.5px solid var(--gray-100);
}

.goal-result-inner {
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.goal-result-inner h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-700);
    margin-bottom: 10px;
}

.goal-result-inner p {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.7;
}

/* ===========================
   Tool Visual Cards - Base
   =========================== */
.tool-visual {
    max-width: 900px;
    margin: 0 auto 32px;
}

.tv-card {
    background: white;
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
}

.tv-card:hover {
    border-color: var(--primary-100);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.tv-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tv-caption {
    font-size: 0.85rem;
    color: var(--gray-400);
    text-align: center;
    margin-top: 16px;
    font-style: italic;
}

/* ===========================
   Scale Slider Visual
   =========================== */
.tv-slider-wrap {
    margin-bottom: 24px;
}

.tv-slider-wrap label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-500);
    display: block;
    margin-bottom: 12px;
}

.tv-range {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, var(--green-500), var(--amber-500), var(--red-500));
    border-radius: 999px;
    outline: none;
    cursor: pointer;
}

.tv-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid var(--primary-500);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
}

.tv-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-lg);
}

.tv-scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--gray-400);
    font-weight: 500;
}

.tv-scale-result {
    display: flex;
    gap: 16px;
}

.tv-result-row {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.tv-result-row span {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

.tv-result-row strong {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gray-800);
}

.tv-result-row:nth-child(2) strong { color: var(--violet-500); }
.tv-result-row:nth-child(3) strong { color: var(--primary-500); }

/* ===========================
   Scale Comparison Visual
   =========================== */
.tv-comparison-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tv-cbar {
    display: grid;
    grid-template-columns: 120px 1fr 60px;
    gap: 12px;
    align-items: center;
}

.tv-cbar-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
}

.tv-cbar-track {
    height: 28px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.tv-cbar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

.tv-fill-reg { background: linear-gradient(135deg, var(--gray-400), var(--gray-500)); }
.tv-fill-hon { background: linear-gradient(135deg, var(--violet-400), var(--violet-500)); }
.tv-fill-ap { background: linear-gradient(135deg, var(--primary-400), var(--primary-600)); }

.tv-cbar-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-800);
    text-align: right;
}

/* ===========================
   Dual Bars Visual
   =========================== */
.tv-dual-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.tv-dual-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.tv-dual-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
    width: 100%;
    text-align: center;
}

.tv-dual-bar-wrap {
    width: 60px;
    height: 120px;
    background: var(--gray-50);
    border-radius: var(--radius);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.tv-dual-bar {
    width: 100%;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    transition: height 0.6s cubic-bezier(0.4,0,0.2,1);
}

.tv-dual-bar span {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.tv-dual-labels {
    display: flex;
    justify-content: space-around;
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
}

/* ===========================
   Percentage Converter
   =========================== */
.tv-pct-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.tv-pct-input-wrap label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    white-space: nowrap;
}

.tv-pct-input {
    width: 100px;
    padding: 12px 16px;
    border: 2px solid var(--primary-200);
    border-radius: var(--radius);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-600);
    text-align: center;
    outline: none;
    transition: var(--transition);
}

.tv-pct-input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}

.tv-pct-sym {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-400);
}

.tv-pct-result {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary-100);
}

.tv-pct-arrow {
    font-size: 2rem;
    color: var(--primary-400);
    font-weight: 300;
}

.tv-pct-output {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tv-pct-grade {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-500), var(--violet-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tv-pct-gpa {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-600);
}

/* ===========================
   Trend Chart
   =========================== */
.tv-trend-chart {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    height: 220px;
    padding: 20px 0;
}

.tv-trend-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    font-size: 0.7rem;
    color: var(--gray-400);
    font-weight: 500;
    padding: 4px 0;
}

.tv-trend-bars {
    flex: 1;
    display: flex;
    gap: 16px;
    align-items: flex-end;
    height: 100%;
    border-left: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    padding-left: 16px;
    padding-bottom: 4px;
}

.tv-trend-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.tv-trend-bar {
    width: 100%;
    max-width: 60px;
    background: linear-gradient(180deg, var(--primary-400), var(--primary-600));
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    transition: height 0.6s cubic-bezier(0.4,0,0.2,1);
    min-height: 30px;
}

.tv-trend-bar span {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.tv-trend-label {
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-400);
}

/* ===========================
   AP Impact Chart
   =========================== */
.tv-ap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tv-ap-course {
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
}

.tv-ap-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.tv-ap-grade {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.tv-ap-calc {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 12px;
}

.tv-ap-bar-wrap {
    height: 12px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.tv-ap-bar {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.8s ease;
}

/* ===========================
   Credits Visual
   =========================== */
.tv-credits-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px 0;
}

.tv-credit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.tv-credit-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    color: white;
    transition: transform 0.3s ease;
}

.tv-credit-circle:hover { transform: scale(1.1); }

.tv-credit-big {
    width: 80px;
    height: 80px;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-500), var(--violet-500));
}

.tv-credit-med {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--violet-400), var(--violet-500));
}

.tv-credit-sm {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    background: var(--gray-400);
}

.tv-credit-item span {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-700);
}

.tv-credit-item small {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* ===========================
   Balance Scale
   =========================== */
.tv-balance-wrap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}

.tv-balance-pivot {
    font-size: 3rem;
    text-align: center;
}

.tv-balance-plate {
    padding: 20px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tv-balance-plate span {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
}

.tv-plate-left {
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
}

.tv-plate-right {
    background: var(--green-50);
    border: 1px solid rgba(16,185,129,0.2);
}

/* ===========================
   Checklist
   =========================== */
.tv-check-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tv-check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.tv-check-item:hover {
    background: var(--green-50);
    border-color: rgba(16,185,129,0.2);
    transform: translateX(4px);
}

.tv-check-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* ===========================
   Tip Cards
   =========================== */
.tv-tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tv-tip-card {
    background: white;
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-sm);
}

.tv-tip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}

.tv-tip-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.tv-tip-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.tv-tip-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===========================
   Conversion Flow
   =========================== */
.tv-flow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tv-flow-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
}

.tv-flow-highlight {
    background: var(--primary-50);
    border-color: var(--primary-200);
}

.tv-flow-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-500);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
}

.tv-flow-highlight .tv-flow-num {
    background: var(--green-500);
}

.tv-flow-step span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

.tv-flow-arrow {
    font-size: 1.2rem;
    color: var(--gray-300);
    font-weight: 300;
}

/* ===========================
   Goal Tiers
   =========================== */
.tv-goal-tiers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tv-goal-tier {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.tv-goal-tier:hover { transform: translateX(4px); }

.tv-tier-gpa {
    font-size: 1.5rem;
    font-weight: 800;
    min-width: 60px;
}

.tv-tier-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.tv-tier-gold { background: #FFFBEB; border: 1px solid #FDE68A; }
.tv-tier-gold .tv-tier-gpa { color: #D97706; }
.tv-tier-gold .tv-tier-label { color: #92400E; }

.tv-tier-silver { background: #F0F9FF; border: 1px solid #BAE6FD; }
.tv-tier-silver .tv-tier-gpa { color: #0284C7; }
.tv-tier-silver .tv-tier-label { color: #075985; }

.tv-tier-bronze { background: var(--green-50); border: 1px solid rgba(16,185,129,0.3); }
.tv-tier-bronze .tv-tier-gpa { color: var(--green-600); }
.tv-tier-bronze .tv-tier-label { color: #065F46; }

.tv-tier-base { background: var(--gray-50); border: 1px solid var(--gray-200); }
.tv-tier-base .tv-tier-gpa { color: var(--gray-600); }
.tv-tier-base .tv-tier-label { color: var(--gray-600); }

/* ===========================
   Importance Bars
   =========================== */
.tv-imp-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tv-imp-row {
    display: grid;
    grid-template-columns: 130px 1fr 100px;
    gap: 12px;
    align-items: center;
}

.tv-imp-row > span:first-child {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
}

.tv-imp-row > span:last-child {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-400);
    text-align: right;
}

.tv-imp-track {
    height: 20px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.tv-imp-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

/* ===========================
   Milestone Track
   =========================== */
.tv-milestone-track {
    position: relative;
    height: 80px;
    margin: 40px 20px;
}

.tv-ms-bar {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
}

.tv-ms-fill {
    position: absolute;
    bottom: 30px;
    left: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-400), var(--violet-500));
    border-radius: var(--radius-full);
    transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

.tv-ms-point {
    position: absolute;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tv-ms-val {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-800);
    background: white;
    padding: 2px 8px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.tv-ms-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray-400);
    white-space: nowrap;
    position: absolute;
    top: -28px;
}

/* ===========================
   Simulator
   =========================== */
.tv-sim-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.tv-sim-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tv-sim-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tv-sim-field input[type="number"] {
    padding: 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    outline: none;
    transition: var(--transition);
}

.tv-sim-field input[type="number"]:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.tv-sim-field input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: linear-gradient(to right, var(--red-500), var(--amber-500), var(--green-500));
    border-radius: 999px;
    outline: none;
    cursor: pointer;
}

.tv-sim-field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid var(--primary-500);
    border-radius: 50%;
    cursor: pointer;
}

.tv-sim-new-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-600);
    text-align: center;
    margin-top: 4px;
}

.tv-sim-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-50), rgba(139,92,246,0.06));
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary-100);
}

.tv-sim-result span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
}

.tv-sim-projected {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-500), var(--violet-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   Timeline
   =========================== */
.tv-timeline-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 24px;
    border-left: 3px solid var(--primary-100);
}

.tv-tl-item {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    transition: var(--transition);
}

.tv-tl-item:hover { transform: translateX(4px); }

.tv-tl-dot {
    position: absolute;
    left: -33px;
    width: 14px;
    height: 14px;
    background: var(--primary-500);
    border: 3px solid var(--primary-100);
    border-radius: 50%;
}

.tv-tl-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 18px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    flex: 1;
}

.tv-tl-content strong {
    font-size: 0.9rem;
    color: var(--gray-800);
}

.tv-tl-content span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ===========================
   Info Visual
   =========================== */
.tv-info .tv-card {
    text-align: center;
    padding: 40px;
}

.tv-info-icon {
    margin-bottom: 16px;
}

.tv-info-text {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

/* ===========================
   Mapper
   =========================== */
.tv-mapper-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.tv-mapper-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.tv-mapper-row:hover {
    background: var(--primary-50);
    border-color: var(--primary-100);
}

.tv-mapper-from {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    min-width: 70px;
}

.tv-mapper-arrow {
    color: var(--primary-400);
    font-weight: 300;
}

.tv-mapper-to {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-800);
}

/* ===========================
   Code Block
   =========================== */
.tv-code-card {
    background: var(--gray-900) !important;
    border-color: var(--gray-700) !important;
}

.tv-code-card h4 {
    color: var(--gray-100) !important;
}

.tv-code-block {
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius);
    padding: 24px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.8;
}

.tv-code-block code {
    color: #a5f3fc;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* ===========================
   Breakdown Bars (Results)
   =========================== */
.bb-item {
    display: grid;
    grid-template-columns: 140px 1fr 60px;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.bb-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bb-bar-wrap {
    height: 14px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.bb-bar {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}

.bb-regular { background: linear-gradient(135deg, var(--gray-400), var(--gray-500)); }
.bb-honors { background: linear-gradient(135deg, var(--violet-400), var(--violet-500)); }
.bb-ap { background: linear-gradient(135deg, var(--primary-400), var(--primary-600)); }

.bb-pts {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-700);
    text-align: right;
}

/* ===========================
   Tools Grid (Homepage)
   =========================== */
.tools-grid-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tool-link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: white;
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-sm);
}

.tool-link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.tool-link-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    border-radius: var(--radius);
    color: var(--primary-500);
    flex-shrink: 0;
}

.tool-link-card:nth-child(even) .tool-link-icon {
    background: rgba(139,92,246,0.08);
    color: var(--violet-500);
}

.tool-link-text h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.tool-link-text p {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 400;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .existing-gpa-inner {
        grid-template-columns: 1fr;
    }

    .tv-scale-result {
        flex-direction: column;
    }

    .tv-ap-grid,
    .tv-dual-container {
        grid-template-columns: 1fr;
    }

    .tv-credits-grid {
        gap: 20px;
    }

    .tv-balance-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tv-balance-pivot {
        transform: rotate(90deg);
    }

    .tv-tips-grid {
        grid-template-columns: 1fr;
    }

    .tv-flow-steps {
        flex-direction: column;
    }

    .tv-flow-arrow {
        transform: rotate(90deg);
    }

    .tv-sim-inputs {
        grid-template-columns: 1fr;
    }

    .tv-mapper-grid {
        grid-template-columns: 1fr;
    }

    .tv-imp-row {
        grid-template-columns: 100px 1fr 70px;
    }

    .tv-cbar {
        grid-template-columns: 90px 1fr 50px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .bb-item {
        grid-template-columns: 100px 1fr 50px;
    }
}

@media (max-width: 480px) {
    .tv-card {
        padding: 20px;
    }

    .tv-trend-chart {
        height: 160px;
    }

    .tv-cbar {
        grid-template-columns: 80px 1fr 40px;
        font-size: 0.8rem;
    }
}
