/* ==========================================================================
   ExamStuff Quiz & Live CBT Portal Styles
   Adheres to ExamStuff visual branding: #0F6E56, #1D9E75, #EF9F27, #085041
   ========================================================================== */

/* Quiz Hero Section */
.quiz-hero {
    background: linear-gradient(135deg, rgba(15, 110, 86, 0.08) 0%, rgba(29, 158, 117, 0.12) 100%);
    border-bottom: 1px solid var(--border-light);
    padding: 40px 0 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quiz-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 110, 86, 0.12);
    color: var(--primary-green);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #e74c3c;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(231, 76, 60, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.quiz-hero h1 {
    font-size: 2.2rem;
    color: var(--primary-green);
    margin: 0 0 12px;
    font-weight: 800;
}

.quiz-hero p {
    font-size: 1.1rem;
    color: var(--text-color-medium);
    max-width: 720px;
    margin: 0 auto 24px;
}

.quiz-stats-strip {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-color-dark);
    font-weight: 600;
}

.stat-item i {
    color: var(--light-green);
    font-size: 1.1rem;
}

/* User Status Bar in Quiz Section */
.quiz-user-bar {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 12px 20px;
    margin: -20px auto 30px;
    max-width: 1160px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px var(--shadow-light);
    position: relative;
    z-index: 5;
}

.user-welcome-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.user-meta-name {
    font-weight: 700;
    color: var(--text-color-dark);
    font-size: 0.95rem;
}

.user-meta-sub {
    font-size: 0.8rem;
    color: var(--text-color-light);
}

.btn-auth-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-auth-login {
    background: var(--primary-green);
    color: #fff;
}

.btn-auth-login:hover {
    background: var(--dark-green);
}

.btn-auth-logout {
    background: transparent;
    color: #e74c3c;
    border-color: #fbd5d0;
}

.btn-auth-logout:hover {
    background: #fdf0ee;
}

/* Filter Navigation Tabs */
.quiz-tabs-wrapper {
    margin: 25px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 12px;
}

.quiz-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    background: var(--bg-white);
    border: 1px solid var(--border-medium);
    color: var(--text-color-medium);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-pill:hover {
    border-color: var(--light-green);
    color: var(--primary-green);
}

.filter-pill.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: #fff;
    box-shadow: 0 2px 8px rgba(15, 110, 86, 0.25);
}

.filter-pill .pill-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.filter-pill:not(.active) .pill-badge {
    background: var(--bg-light-neutral);
    color: var(--text-color-medium);
}

/* Weekend Featured Mega Test Banner */
.weekend-featured-card {
    background: linear-gradient(135deg, #092c22 0%, #0F6E56 60%, #1D9E75 100%);
    color: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(15, 110, 86, 0.25);
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.weekend-featured-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(239, 159, 39, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.weekend-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 159, 39, 0.2);
    border: 1px solid var(--gold-orange);
    color: #ffe699;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.weekend-featured-card h2 {
    font-size: 1.8rem;
    color: #fff;
    margin: 0 0 10px;
    font-weight: 800;
}

.weekend-featured-card p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.weekend-highlights {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.highlight-chip {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.weekend-timer-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.countdown-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffe699;
    margin-bottom: 15px;
    font-weight: 700;
}

.countdown-units {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.countdown-unit {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 58px;
}

.countdown-number {
    font-size: 1.6rem;
    font-weight: 800;
    display: block;
    line-height: 1.1;
    color: #fff;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.btn-enter-live {
    background: var(--gold-orange);
    color: #1a1a1a;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(239, 159, 39, 0.4);
}

.btn-enter-live:hover {
    background: #f1aa3d;
    transform: translateY(-2px);
    color: #000;
}

/* Section Headings */
.quiz-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 30px 0 20px;
}

.quiz-section-header h2 {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quiz-section-header p {
    color: var(--text-color-light);
    margin: 4px 0 0;
    font-size: 0.95rem;
}

/* Test Cards Grid */
.quiz-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.quiz-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 2px 8px var(--shadow-light);
    position: relative;
}

.quiz-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-medium);
    border-color: var(--light-green);
}

.quiz-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-category-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-ssc { background: #e8f4fd; color: #1976d2; }
.tag-upsc { background: #fef3e2; color: #c07800; }
.tag-banking { background: #eafaf1; color: #27ae60; }
.tag-nta { background: #f3e8fd; color: #8e44ad; }
.tag-general { background: #f0f2f5; color: #555; }
.tag-cbse10 { background: #e0f2fe; color: #0284c7; }
.tag-cbse12 { background: #fdf2f8; color: #be185d; }

.card-mode-badge {
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-always {
    color: var(--primary-green);
}

.badge-weekend {
    color: var(--gold-orange);
}

.quiz-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color-dark);
    margin: 0 0 8px;
    line-height: 1.35;
}

.quiz-card-desc {
    font-size: 0.9rem;
    color: var(--text-color-medium);
    margin-bottom: 18px;
    line-height: 1.5;
}

.quiz-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: var(--bg-light-neutral);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 18px;
}

.meta-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-box i {
    color: var(--light-green);
    font-size: 0.95rem;
    width: 16px;
    text-align: center;
}

.meta-box-text .meta-val {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-color-dark);
    display: block;
}

.meta-box-text .meta-lbl {
    font-size: 0.72rem;
    color: var(--text-color-light);
}

.quiz-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.quiz-badge-free {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.btn-start-quiz {
    background: var(--primary-green);
    color: #fff;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-start-quiz:hover {
    background: var(--dark-green);
    transform: translateY(-1px);
}

.btn-start-quiz.btn-weekend {
    background: #e67e22;
}

.btn-start-quiz.btn-weekend:hover {
    background: #d35400;
}

/* Auth Modal Styles */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 15px;
}

.auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal-box {
    background: var(--bg-white);
    border-radius: 14px;
    max-width: 440px;
    width: 100%;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.25s ease;
    border: 1px solid var(--border-light);
}

.auth-modal-overlay.active .auth-modal-box {
    transform: scale(1);
}

.auth-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text-color-light);
    cursor: pointer;
    transition: color 0.2s ease;
}

.auth-modal-close:hover {
    color: #e74c3c;
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-modal-header h3 {
    font-size: 1.4rem;
    color: var(--primary-green);
    margin: 0 0 6px;
    font-weight: 800;
}

.auth-modal-header p {
    font-size: 0.88rem;
    color: var(--text-color-medium);
    margin: 0;
}

.auth-tab-buttons {
    display: flex;
    background: var(--bg-light-neutral);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
}

.auth-tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-color-medium);
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab-btn.active {
    background: var(--bg-white);
    color: var(--primary-green);
    box-shadow: 0 2px 6px var(--shadow-light);
}

.auth-form-group {
    margin-bottom: 14px;
    text-align: left;
}

.auth-form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-color-dark);
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrapper i {
    position: absolute;
    left: 12px;
    color: var(--text-color-light);
    font-size: 0.9rem;
}

.auth-input-wrapper input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    font-family: var(--font-family-primary);
    font-size: 0.92rem;
    color: var(--text-color-dark);
    background: var(--bg-white);
    transition: border-color 0.2s ease;
}

.auth-input-wrapper input:focus {
    outline: none;
    border-color: var(--light-green);
    box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.15);
}

.auth-alert-message {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    margin-bottom: 14px;
    display: none;
}

.auth-alert-error {
    background: #fde8e8;
    color: #c81e1e;
    border: 1px solid #f8b4b4;
}

.auth-alert-success {
    background: #def7ec;
    color: #03543f;
    border: 1px solid #bcf0da;
}

.btn-auth-submit {
    width: 100%;
    background: var(--primary-green);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 6px;
}

.btn-auth-submit:hover {
    background: var(--dark-green);
}

.auth-privacy-note {
    font-size: 0.75rem;
    color: var(--text-color-light);
    margin-top: 14px;
    text-align: center;
    line-height: 1.4;
}

/* Toast Notification for Warnings */
.toast-warning-banner {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #e74c3c;
    color: #fff;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.toast-warning-banner.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .weekend-featured-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    .quiz-user-bar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .quiz-hero h1 {
        font-size: 1.6rem;
    }
    .quiz-cards-grid {
        grid-template-columns: 1fr;
    }
    .countdown-units {
        gap: 6px;
    }
    .countdown-unit {
        min-width: 48px;
        padding: 6px 8px;
    }
    .countdown-number {
        font-size: 1.2rem;
    }
}

/* Dark Theme Overrides for Quiz */
.dark-theme .quiz-hero {
    background: linear-gradient(135deg, rgba(15, 110, 86, 0.2) 0%, rgba(29, 158, 117, 0.08) 100%);
    border-bottom-color: var(--border-light);
}

.dark-theme .quiz-user-bar,
.dark-theme .quiz-card,
.dark-theme .auth-modal-box {
    background: var(--bg-white);
    border-color: var(--border-light);
}

.dark-theme .quiz-meta-grid {
    background: #181818;
}

.dark-theme .filter-pill {
    background: #252525;
    border-color: #383838;
    color: var(--text-color-medium);
}

.dark-theme .filter-pill.active {
    background: var(--primary-green);
    color: #fff;
}

.dark-theme .auth-input-wrapper input {
    background: #222;
    border-color: #444;
    color: #fff;
}

.dark-theme .auth-tab-buttons {
    background: #181818;
}

.dark-theme .auth-tab-btn.active {
    background: #282828;
    color: var(--light-green);
}

/* ==========================================================================
   Clickable Header User Pill & Profile Enhancements
   ========================================================================== */
.header-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #e8f5e9;
    color: var(--primary-green);
    border: 1px solid #c8e6c9;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-user-btn:hover {
    background: #d4edda;
    border-color: #a3d9a5;
    color: var(--dark-green);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(15, 110, 86, 0.15);
}

.header-user-btn .header-user-icon {
    font-size: 1.05rem;
    color: var(--primary-green);
    display: flex;
    align-items: center;
}

.header-user-btn .header-user-name {
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-user-btn .header-user-arrow {
    font-size: 0.72rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.header-user-btn:hover .header-user-arrow {
    transform: translateX(2px);
    opacity: 1;
}

.user-welcome-clickable {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.user-welcome-clickable:hover {
    opacity: 0.9;
}

.user-welcome-clickable:hover .user-meta-name {
    color: var(--primary-green);
}

.user-profile-link-hint {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-left: 6px;
    background: #e8f5e9;
    padding: 2px 8px;
    border-radius: 10px;
    vertical-align: middle;
}

.btn-auth-profile {
    background: #e8f5e9;
    color: var(--primary-green);
    border-color: #c8e6c9;
}

.btn-auth-profile:hover {
    background: #d4edda;
    color: var(--dark-green);
}

/* ==========================================================================
   Student Profile Page Layout & Components
   ========================================================================== */
.profile-wrapper {
    max-width: 1050px;
    margin: 30px auto 60px;
    padding: 0 20px;
}

.profile-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-color-light);
    margin-bottom: 20px;
}

.profile-breadcrumb a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

.profile-breadcrumb a:hover {
    text-decoration: underline;
}

.profile-hero-card {
    background: linear-gradient(135deg, #0F6E56 0%, #1D9E75 100%);
    border-radius: 16px;
    padding: 30px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 10px 30px rgba(15, 110, 86, 0.2);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.profile-hero-card::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.profile-hero-left {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1;
}

.profile-avatar-large {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.profile-hero-details h1 {
    margin: 0 0 6px;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.profile-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.profile-badge-pill {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.profile-hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 1;
}

.btn-profile-hero {
    background: #fff;
    color: var(--primary-green);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.btn-profile-hero:hover {
    background: #f0fdf9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.btn-profile-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-profile-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Two-Column Grid */
.profile-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 24px;
    margin-bottom: 30px;
}

.profile-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 10px var(--shadow-light);
}

.profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-light);
}

.profile-card-header h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-color-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-card-header h2 i {
    color: var(--primary-green);
}

/* Details List */
.profile-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-light-neutral);
    border-radius: 8px;
    font-size: 0.92rem;
}

.profile-info-label {
    color: var(--text-color-medium);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-info-label i {
    width: 18px;
    text-align: center;
    color: var(--primary-green);
}

.profile-info-val {
    color: var(--text-color-dark);
    font-weight: 700;
}

.profile-val-highlight {
    color: var(--primary-green);
    background: #e8f5e9;
    padding: 2px 8px;
    border-radius: 6px;
}

/* 4-Stat KPI Grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.profile-stat-box {
    background: var(--bg-light-neutral);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: transform 0.2s ease;
}

.profile-stat-box:hover {
    transform: translateY(-2px);
}

.profile-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1.1;
    margin-bottom: 4px;
}

.profile-stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-color-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Recent Attempts Table */
.profile-table-wrapper {
    overflow-x: auto;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.profile-table th {
    background: var(--bg-light-neutral);
    color: var(--text-color-medium);
    font-weight: 700;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--border-light);
}

.profile-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-color-dark);
}

.profile-table tr:hover td {
    background: rgba(15, 110, 86, 0.02);
}

.status-badge {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

.status-badge.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.status-in_progress {
    background: #fff3e0;
    color: #e67e22;
}

.status-badge.status-disqualified {
    background: #ffebee;
    color: #c62828;
}

.profile-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-color-light);
}

.profile-empty-state i {
    font-size: 3rem;
    color: var(--border-medium);
    margin-bottom: 15px;
    display: block;
}

.profile-empty-state p {
    margin: 0 0 16px;
    font-size: 0.95rem;
}

/* Dark Theme Overrides for Profile */
.dark-theme .header-user-btn {
    background: #1c2b22;
    color: #48c78e;
    border-color: #274534;
}

.dark-theme .header-user-btn:hover {
    background: #253d2f;
    color: #5ddba3;
}

.dark-theme .header-user-btn .header-user-icon {
    color: #48c78e;
}

.dark-theme .user-profile-link-hint {
    background: #1c2b22;
    color: #48c78e;
}

.dark-theme .btn-auth-profile {
    background: #1c2b22;
    color: #48c78e;
    border-color: #274534;
}

.dark-theme .btn-auth-profile:hover {
    background: #253d2f;
    color: #5ddba3;
}

.dark-theme .profile-card {
    background: #1a1a1a;
    border-color: #2d2d2d;
}

.dark-theme .profile-info-item,
.dark-theme .profile-stat-box,
.dark-theme .profile-table th {
    background: #242424;
    border-color: #333;
}

.dark-theme .profile-card-header,
.dark-theme .profile-table td {
    border-color: #2d2d2d;
}

.dark-theme .profile-val-highlight {
    background: #1c2b22;
    color: #48c78e;
}

.dark-theme .status-badge.status-completed {
    background: #1c2b22;
    color: #48c78e;
}

@media (max-width: 850px) {
    .profile-hero-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
    }
    .profile-content-grid {
        grid-template-columns: 1fr;
    }
}
