:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --accent: #7c3aed;
    --success: #16a34a;
    --danger: #dc2626;

    /* Light Theme Colors */
    --background: #f8fafc;
    --surface: #ffffff;
    --surface-hover: #f1f5f9;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    :root {
        --hero-padding: 4rem 0 2rem;
        --section-padding: 3rem 0;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.gap-4 {
    gap: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header / Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    margin-right: auto;
}

.logo-icon {
    background: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.logo-text {
    line-height: 1.2;
}

.logo-network {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

#userArea {
    /* Naturally follows nav-links */
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    background: radial-gradient(circle at top center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 2rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .container {
        padding: 0 1.25rem;
    }
}

.hero-greeting {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
    backdrop-filter: blur(4px);
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.stat-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Top Colleges List */
.top-list-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.top-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.top-list-item:last-child {
    border-bottom: none;
}

.college-rank-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rank-badge {
    width: 28px;
    height: 28px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Section Styles */
.section-container {
    padding: 2rem 0 4rem;
}

/* Hide sections by default */
.app-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.app-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
}

/* Steps Grid */
.steps-wrapper {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Chat Bot */
.chatbot-btn {
    position: fixed;
    top: 120px;
    /* Below navbar */
    left: 20px;
    padding: 0 1.5rem;
    height: 60px;
    background: var(--primary);
    border-radius: 30px;
    /* Pill shape */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.2s;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.chatbot-btn:hover {
    transform: scale(1.05);
    background: var(--primary-dark);
}

.chatbot-window {
    position: fixed;
    top: 190px;
    /* Below button */
    left: 20px;
    width: 350px;
    height: 500px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
}

.chatbot-window.open {
    display: flex;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .chatbot-btn {
        top: auto;
        bottom: 20px;
        left: auto;
        right: 20px;
        height: 50px;
        padding: 0 1rem;
        font-size: 0.9rem;
    }

    .chatbot-window {
        top: auto;
        bottom: 80px;
        left: 5%;
        width: 90%;
        height: 70vh;
    }
}

.chat-header {
    background: var(--primary);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: var(--background);
}

.chat-input-area {
    padding: 1rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.chat-chip {
    padding: 0.35rem 0.75rem;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.chat-chip:hover {
    background: var(--primary);
    color: white;
}

.typing-indicator {
    display: none;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    align-self: flex-start;
    font-style: italic;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.typing-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
    margin-right: 2px;
    animation: typing 1s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.chat-input {
    flex: 1;
    padding: 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--text);
    outline: none;
}

.chat-send {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
}

.message {
    margin-bottom: 1rem;
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.message.bot {
    background: var(--surface);
    color: var(--text);
    border-radius: 12px 12px 12px 0;
    border: 1px solid var(--border);
}

.message.user {
    background: var(--primary);
    color: white;
    margin-left: auto;
    border-radius: 12px 12px 0 12px;
}

/* --- Existing Components --- */

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    background: var(--background);
    color: var(--text);
    transition: border-color 0.2s;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: rgba(241, 245, 249, 1);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    position: sticky;
    top: 0;
}

@media (max-width: 768px) {

    th,
    td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    .branch-code {
        font-size: 0.7rem;
        padding: 0.15rem 0.35rem;
    }
}

tr:hover {
    background: var(--surface-hover);
}

.branch-code {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.cutoff-value {
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.cutoff-value.high {
    color: var(--success);
}

.cutoff-value.medium {
    color: var(--accent);
}

.cutoff-value.low {
    color: var(--danger);
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--danger);
}

/* Course Cards */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.course-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Course Info Modal */
.course-modal {
    max-width: 600px;
    width: 90%;
    background: var(--surface);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalIn 0.3s ease-out;
}

.modal-info-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.modal-info-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.info-section {
    margin-bottom: 1.5rem;
}

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.info-content {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.feature-item {
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.course-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.course-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.tag {
    background: var(--background);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    display: inline-block;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    border: 1px solid var(--border);
}

/* Loading */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Quiz Styles */
.quiz-option {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.quiz-option:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.03);
    transform: translateX(8px);
}

.quiz-option h5 {
    margin-bottom: 0.25rem;
    color: var(--text);
    font-size: 1rem;
}

.quiz-option p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.quiz-progress-container {
    background: var(--surface-hover);
    border-radius: 8px;
    padding: 2px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

/* Quiz Navigation Grid */
.quiz-nav-container {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.quiz-nav-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.5rem;
}

.quiz-nav-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-nav-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.quiz-nav-item.current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.quiz-nav-item.answered {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
}

.quiz-nav-item.answered.current {
    background: var(--primary);
    color: white;
}

@media (max-width: 640px) {
    .quiz-nav-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Quiz Option Cards - Premium Look */
.quiz-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

@media (max-width: 640px) {
    .quiz-options-grid {
        grid-template-columns: 1fr;
    }
}

.quiz-option-card {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.quiz-option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.quiz-option-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    background: linear-gradient(to right, rgba(37, 99, 235, 0.02), transparent);
}

.quiz-option-card:hover::before {
    opacity: 1;
}

.quiz-option-card.selected {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

.quiz-option-card.selected::before {
    opacity: 1;
}

.quiz-opt-letter-box {
    width: 40px;
    height: 40px;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s;
}

.quiz-option-card:hover .quiz-opt-letter-box,
.quiz-option-card.selected .quiz-opt-letter-box {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.quiz-opt-letter {
    font-weight: 700;
    font-size: 1.1rem;
}

.quiz-opt-content {
    flex: 1;
}

.quiz-opt-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

.quiz-opt-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.8rem;
    font-weight: 800;
    transition: all 0.3s;
    margin-left: 1rem;
}

.quiz-option-card.selected .quiz-opt-check {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Course Comparison Module Styles */
.compare-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    background: var(--surface);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.compare-toggle-btn {
    padding: 0.75rem 2rem;
    border: none;
    background: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.compare-toggle-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.branch-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .branch-comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .branch-compare-card {
        padding: 1.5rem;
    }
}

.branch-compare-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.branch-compare-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.compare-v-badge {
    position: absolute;
    top: 50%;
    left: -1rem;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    border: 4px solid var(--background);
    z-index: 10;
}

.comparison-metric-row {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-metric-row:last-child {
    border-bottom: none;
}

.metric-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.35rem;
    display: block;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

.decision-helper-box {
    margin-top: 3rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px dashed var(--primary);
    position: relative;
    overflow: hidden;
}

.decision-helper-box::before {
    content: "ðŸ’¡";
    position: absolute;
    top: -1rem;
    right: -1rem;
    font-size: 6rem;
    opacity: 0.1;
}

.advisor-card {
    background: rgba(37, 99, 235, 0.04);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 2rem;
    animation: slideUp 0.4s ease-out;
}

.advisor-avatar-container {
    flex-shrink: 0;
}

.advisor-avatar {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--primary);
}

.advisor-content {
    flex: 1;
}

.advisor-content h4 {
    margin: 0 0 0.25rem 0;
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.advisor-greeting {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.advisor-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.advisor-text strong {
    color: var(--primary);
}

.roi-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* --- Premium CTA Section --- */
.premium-cta {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    padding: 6rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.cta-closing-line {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text);
}

.cta-subline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* --- Premium Footer --- */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 5rem 0 3rem;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-tagline {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

.footer-brand .logo-icon {
    background: #3b82f6;
    margin-bottom: 1.5rem;
}

.footer-brand .logo-network {
    color: #f8fafc;
    font-size: 1.5rem;
}

.footer-tagline {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-heading {
    color: #f8fafc;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    cursor: pointer;
}

.footer-link:hover {
    color: #3b82f6;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: #1e293b;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    text-decoration: none;
    transition: all 0.2s;
}

.social-icon:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

/* Legal Modal Content */
.legal-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 1rem;
    text-align: left;
}

.legal-content h3 {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.1rem;
    color: var(--text);
}

.legal-content p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* ===== College Predictor Styles ===== */
.predictor-container {
    max-width: 800px;
    margin: 0 auto;
}

.predictor-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
}

.predictor-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--border);
    z-index: 0;
}

.predictor-progress .progress-fill {
    position: absolute;
    top: 20px;
    left: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 1;
    transition: width 0.5s ease;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: default;
}

.progress-step .step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    color: var(--text-muted);
}

.progress-step.active .step-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.progress-step.completed .step-circle {
    border-color: var(--success);
    background: var(--success);
    color: white;
}

.progress-step .step-label {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.progress-step.active .step-label {
    color: var(--primary);
}

.progress-step.completed .step-label {
    color: var(--success);
}

.predictor-step {
    display: none;
    animation: fadeSlide 0.4s ease;
}

.predictor-step.active {
    display: block;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.form-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.form-card .form-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    background: var(--background);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.cutoff-display {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.cutoff-display .cutoff-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.cutoff-display .cutoff-score {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cutoff-display .cutoff-formula {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

.btn-primary {
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    padding: 0.85rem 2rem;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.preference-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.preference-chip {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--background);
    color: var(--text-muted);
}

.preference-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.preference-chip.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Results */
.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.result-stat .result-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.result-stat .result-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.suggestion-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.suggestion-card:hover {
    transform: translateX(4px);
    box-shadow: -4px 0 0 var(--primary);
}

.suggestion-card .suggestion-info {
    flex: 1;
}

.suggestion-card .college-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.suggestion-card .branch-name {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.suggestion-card .suggestion-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.meta-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    min-width: 60px;
}

.meta-badge.cutoff-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.meta-badge.rank-badge-tag {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent);
}

.tier-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: inline-block;
}

.tier-label.dream {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.tier-label.reach {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent);
}

.tier-label.safe {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.results-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.no-results-msg {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.no-results-msg .emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ===== Login Modal Styles ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.login-modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    width: 420px;
    max-width: 90vw;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    animation: modalSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-modal .modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-modal .modal-header .modal-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.login-modal .modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.login-modal .modal-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.login-modal .form-group {
    margin-bottom: 1.2rem;
}

.login-modal .form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.login-modal .form-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    background: var(--background);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.login-modal .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.login-modal .login-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 0.5rem;
}

.login-modal .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.login-modal .toggle-mode {
    text-align: center;
    margin-top: 1.2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.login-modal .toggle-mode a {
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

.login-modal .toggle-mode a:hover {
    text-decoration: underline;
}

.login-modal .login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: none;
}

.login-modal .guest-link a {
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
}

/* Auth Enhancements Styles */
.login-google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.85rem;
    background: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.login-google-btn:hover {
    background: #f8f9fa;
}

.google-icon {
    width: 18px;
    height: 18px;
}

.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.auth-separator:not(:empty)::before {
    margin-right: 1rem;
}

.auth-separator:not(:empty)::after {
    margin-left: 1rem;
}

.forgot-link-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: -0.8rem;
    margin-bottom: 1.2rem;
}

.forgot-password-link {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* User Area in Navbar */
.user-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.logout-btn {
    padding: 0.4rem 0.8rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: var(--danger);
    color: white;
}

.login-nav-btn {
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.2s;
    margin-left: 1rem;
}

.login-nav-btn:hover {
    transform: scale(1.05);
}

/* Favorite Button */
.fav-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 0.2rem;
    opacity: 0.5;
}

.fav-btn:hover {
    transform: scale(1.3);
    opacity: 1;
}

.fav-btn.saved {
    opacity: 1;
}

/* Favorites Section */
.fav-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s;
}

.fav-card:hover {
    transform: translateX(4px);
    border-color: var(--primary);
}

.fav-card .fav-info {
    flex: 1;
}

.fav-card .fav-college {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.fav-card .fav-branch {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.fav-card .fav-cutoffs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.fav-card .fav-cutoff-tag {
    padding: 0.2rem 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
}

.remove-fav-btn {
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.remove-fav-btn:hover {
    background: var(--danger);
    color: white;
}

.fav-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.fav-empty .fav-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.fav-count-badge {
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    margin-left: 0.3rem;
    min-width: 16px;
    text-align: center;
    display: inline-block;
}

/* Assessment Styles */
.assessment-container {
    max-width: 700px;
    margin: 0 auto;
}

.assessment-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

/* Assessment Navigation */
.assessment-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.back-nav-container {
    display: none;
    /* Hidden by default, shown when needed */
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.back-btn:hover {
    background: rgba(37, 99, 235, 0.05);
}

/* Goal Selection */
.goal-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.goal-item {
    background: var(--background);
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.goal-item:hover {
    border-color: var(--primary);
    background: var(--surface);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.goal-item.selected {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    box-shadow: 0 0 0 2px var(--primary);
}

.goal-item-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.goal-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

/* Quiz Navigation Grid */
.quiz-nav-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    width: 100%;
}

.quiz-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(35px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.quiz-nav-btn {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.quiz-nav-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.quiz-nav-btn.answered {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
}

.quiz-nav-btn.answered.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Guidance Styles */
.guidance-section {
    margin-top: 2rem;
    text-align: left;
    animation: fadeIn 0.5s ease-out;
}

.guidance-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.guidance-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tip-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

.tip-bullet {
    color: var(--primary);
    font-weight: bold;
}

.related-courses-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.related-course-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s;
}

.related-course-card:hover {
    border-color: var(--primary);
    background: var(--surface);
}

.related-course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.related-course-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

.related-why-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 4px;
    font-weight: 600;
}

.related-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.recommendation-result {
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.result-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.result-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.recommendation-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.mode-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.mode-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mode-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.mode-card .mode-icon {
    font-size: 3rem;
}

.mode-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
}

.mode-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Quiz Options 2x2 Grid */
.quiz-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0;
}

.quiz-option {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.quiz-option:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.quiz-option.selected {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
    box-shadow: 0 0 0 2px var(--primary);
}

.quiz-option h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.branch-chips-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 2rem 0;
}

.branch-chip-input {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 99px;
    background: var(--surface);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.branch-chip-input.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.comparison-breakdown {
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: left;
}

.breakdown-item {
    margin-bottom: 1.5rem;
}

.breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.breakdown-label {
    font-weight: 700;
    font-size: 1rem;
}

.breakdown-percentage {
    font-weight: 800;
    color: var(--primary);
}

.breakdown-bar-bg {
    height: 12px;
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.breakdown-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.6s ease;
}

/* Career Advisor Persona */
.advisor-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.advisor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary);
}

.advisor-avatar-container {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: var(--surface);
    border-radius: 50%;
    padding: 5px;
    border: 3px solid var(--primary);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

.advisor-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.advisor-content h4 {
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.advisor-greeting {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.advisor-text {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

.course-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.detail-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.detail-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.detailed-info-panel {
    display: none;
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    font-size: 0.95rem;
    border-left: 4px solid var(--primary);
    line-height: 1.6;
    color: var(--text-muted);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-card h5 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #1e293b;
}

.detail-icon {
    font-size: 1.25rem;
    color: var(--primary);
}

.detail-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.balance-section {
    margin: 2.5rem 0;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.balance-column h6 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
}

.pros-title {
    color: var(--success);
}

.cons-title {
    color: #e11d48;
}

.balance-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.balance-list li {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: start;
    color: #475569;
    line-height: 1.5;
}

.balance-list li::before {
    content: '';
    font-size: 1.5rem;
    line-height: 1;
}

.pros-list li::before {
    color: var(--success);
}

.cons-list li::before {
    color: #e11d48;
}


.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateX(-5px);
}

.course-meta-section {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px dashed var(--border);
}

.course-meta-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.course-meta-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.detail-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Career Advisor Persona */
.advisor-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.advisor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary);
}

.advisor-avatar-container {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: var(--surface);
    border-radius: 50%;
    padding: 5px;
    border: 3px solid var(--primary);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

.advisor-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.advisor-content h4 {
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.advisor-greeting {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.advisor-text {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

.course-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.detail-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.detail-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.detail-card h5 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #1e293b;
}

.detail-icon {
    font-size: 1.25rem;
    color: var(--primary);
}

.detail-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.academic-group-selector {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.academic-group-btn {
    padding: 1rem 2rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    flex: 1;
    max-width: 200px;
}

.academic-group-btn.active {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary);
}

.mark-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: left;
    margin-bottom: 2rem;
}

.mark-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.mark-field input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--surface);
    color: var(--text);
}

.reasoning-box {
    background: rgba(37, 99, 235, 0.05);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
    text-align: left;
}

.reasoning-header {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}

/* --- Responsive Queries --- */
@media (max-width: 1024px) {
    .nav-links {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --hero-padding: 4rem 0 2rem;
        --section-padding: 3rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    /* Navbar Mobile */
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        margin-left: 0;
        flex-wrap: nowrap;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }

    /* Hero Mobile */
    .hero {
        padding: 4rem 0 2rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Grid Adjustments */
    .branch-comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .branch-compare-card {
        padding: 1.5rem;
    }

    /* Chatbot Mobile */
    .chatbot-btn {
        top: auto;
        bottom: 20px;
        left: auto;
        right: 20px;
        height: 50px;
        padding: 0 1rem;
        font-size: 0.9rem;
    }

    .chatbot-window {
        top: auto;
        bottom: 80px;
        left: 5%;
        width: 90%;
        height: 70vh;
    }

    /* Table Mobile */
    th,
    td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    .branch-code {
        font-size: 0.7rem;
        padding: 0.15rem 0.35rem;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-tagline {
        max-width: 100%;
    }

}

/* Project Disclaimer Banner */
.disclaimer-banner {
    background: #fff7ed;
    border-top: 1px solid #ffedd5;
    padding: 0.75rem 0;
    font-size: 0.85rem;
    color: #9a3412;
    text-align: center;
    position: relative;
    z-index: 1001;
}

.disclaimer-banner strong {
    color: #7c2d12;
}
/* Assessment Guidance Page Styles */
.assessment-guidance-page {
    background: transparent !important;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 5rem;
}

.guidance-header-new {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

.guidance-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.guidance-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.highlight-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-greeting-card {
    display: flex;
    gap: 2rem;
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.ai-greeting-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary);
}

.ai-avatar-box {
    flex-shrink: 0;
}

.ai-avatar {
    width: 64px;
    height: 64px;
    background: var(--surface-hover);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 1px solid var(--border);
}

.ai-greeting-content {
    flex: 1;
}

.ai-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.ai-greeting-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.ai-greeting-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.guidance-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.highlight-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
}

.highlight-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.highlight-icon {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.highlight-details h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.highlight-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.deep-analysis-section {
    background: rgba(37, 99, 235, 0.03);
    border: 1px solid rgba(37, 99, 235, 0.1);
    padding: 2.5rem;
    border-radius: 24px;
    margin-bottom: 3rem;
    text-align: left;
}

.section-label-new {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.analysis-text-new {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.analysis-tag-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tag-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.tag-content {
    background: var(--text);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.guidance-points-grid {
    margin-bottom: 3rem;
}

.points-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    text-align: left;
}

.points-card.positive {
    border-left: 8px solid var(--success);
}

.points-card h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.points-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.points-card li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.points-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 800;
}

.related-recommendations {
    margin-bottom: 4rem;
    text-align: left;
}

.section-desc-new {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.related-courses-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.related-course-card-new {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.2s;
    text-align: left;
}

.related-course-card-new:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.course-badge {
    display: inline-block;
    background: var(--surface-hover);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.related-course-card-new h5 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
}

.related-course-card-new p {
    font-size: 0.95rem;
    color: var(--text);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.course-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.btn-link-new {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-link-new:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.guidance-actions-new {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 4rem;
}

.btn-secondary-new {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 1rem 2rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary-new {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
    transition: all 0.2s;
}

.btn-primary-new:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
    .guidance-title {
        font-size: 1.75rem;
    }

    .ai-greeting-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .guidance-highlights-grid {
        grid-template-columns: 1fr;
    }

    .related-courses-grid-new {
        grid-template-columns: 1fr;
    }

    .guidance-actions-new {
        flex-direction: column;
    }
}
