/* ============================================
   ???? ???? - Page-Specific Styles
   ============================================ */
/* ============================================
   Page Header (for sub-pages)
   ============================================ */
.page-header {
    padding: 120px var(--space-lg) 60px;
    background-color: var(--bg-secondary);
    background-image: linear-gradient(to bottom, rgba(15, 22, 18, 0.3), rgba(15, 22, 18, 0.45)), url('../../public/assets/courses.jpg');
    background-position: center 30%;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .page-header {
    background-image: linear-gradient(to bottom, rgba(15, 22, 18, 0.5), rgba(15, 22, 18, 0.65)), url('../../public/assets/courses.jpg');
}

.page-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #2ecc71;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    margin-bottom: var(--space-md);
}

.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #ffffff;
    opacity: 0.95;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    font-weight: 500;
    max-width: 60ch;
    margin: 0 auto;
    line-height: 1.7;
}

[data-theme="dark"] .page-title {
    color: #2ecc71;
}

[data-theme="dark"] .page-subtitle {
    color: #ffffff;
}

/* ============================================
   Search & Filter
   ============================================ */
.courses-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    gap: var(--space-md);
    flex: 1;
    max-width: 500px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.filter-select {
    padding: 12px 40px 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A7A7A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

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

/* ============================================
   Dashboard Styles
   ============================================ */
.dashboard-main {
    padding-top: 120px;
    padding-bottom: var(--space-3xl);
    min-height: 100vh;
}

.empty-state-dashboard {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    max-width: 700px;
    margin: 0 auto;
}

.resume-section {
    margin-bottom: var(--space-2xl);
}

.resume-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.resume-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

.resume-subtitle {
    font-size: var(--text-xs);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.resume-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--text-main);
    margin-bottom: var(--space-md);
}

.resume-progress {
    margin-bottom: var(--space-lg);
}

.progress-bar-container {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: width var(--duration-reveal) var(--ease-out-quart);
}

.progress-text {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-xl);
    align-items: start;
}

.enrolled-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.enrolled-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: var(--space-md);
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.enrolled-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.enrolled-item-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--primary);
}

.enrolled-item-title {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: var(--space-xs);
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.sidebar-card-title {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.streak-count {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.streak-num {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    color: var(--primary);
    font-weight: 700;
}

.streak-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.streak-dots {
    display: flex;
    gap: var(--space-xs);
}

.streak-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-secondary);
    transition: var(--transition);
}

.streak-dot.active {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-subtle);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: none;
}

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

.stat-label {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.stat-val {
    font-weight: 700;
    color: var(--text-main);
}

/* ============================================
   Notes Section
   ============================================ */
.notes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.notes-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-2xl);
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}

.note-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    position: relative;
    transition: var(--transition-smooth);
}

.note-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.note-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.note-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    gap: var(--space-sm);
}

.note-card-title {
    font-weight: 700;
    font-size: var(--text-base);
    color: var(--text-main);
    flex: 1;
    line-height: 1.4;
}

.note-card-actions {
    display: flex;
    gap: var(--space-xs);
    flex-shrink: 0;
}

.note-card-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    transition: var(--transition);
}

.note-card-btn:hover {
    background: var(--primary-subtle);
    color: var(--primary);
}

.note-card-btn.delete:hover {
    background: rgba(197, 48, 48, 0.1);
    color: #c53030;
}

.note-card-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.note-card-course {
    background: var(--primary-subtle);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.note-card-date {
    color: var(--text-muted);
}

/* ============================================
   Form Controls (used in modals)
   ============================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: var(--space-xs);
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-main);
    font-size: var(--text-sm);
    font-family: inherit;
    transition: var(--transition);
    outline: none;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.modal-body .form-input {
    background: var(--bg-card);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 32px;
    cursor: pointer;
}

.btn-cancel {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-cancel:hover {
    background: var(--bg-secondary);
    color: var(--text-main);
}

/* ============================================
   Note Modal
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: var(--space-lg);
}

.modal-overlay.open {
    display: flex;
}

.modal-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    animation: modalSlideUp 0.3s var(--ease-out-quint);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: var(--text-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary-subtle);
    color: var(--primary);
}

.modal-body {
    padding: var(--space-xl);
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .modal-card {
        max-height: 90vh;
        border-radius: var(--radius-lg);
    }
    .modal-body {
        padding: var(--space-lg);
    }
    .modal-header,
    .modal-footer {
        padding: var(--space-md) var(--space-lg);
    }
    .notes-list {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Suggested Courses
   ============================================ */
.suggested-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    cursor: pointer;
    transition: var(--transition);
}

.suggested-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.suggested-item-info {
    flex: 1;
    min-width: 0;
}

.suggested-item-title {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text-main);
    margin-bottom: 2px;
}

.suggested-item-category {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.suggested-item-action {
    flex-shrink: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: var(--text-xs);
    padding: 6px 14px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.suggested-item:hover .suggested-item-action {
    background: var(--primary);
    color: #fff;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .resume-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .header-actions {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero {
        padding: 120px var(--space-md) var(--space-2xl);
    }
    
    .hero::before {
        width: 100%;
        clip-path: none;
        opacity: 0.5;
    }
    
    .hero-stats {
        gap: var(--space-lg);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .courses-controls {
        flex-direction: column;
    }
    
    .search-box {
        width: 100%;
        max-width: none;
    }
    
    .page-header {
        padding: 120px var(--space-md) var(--space-xl);
    }
    
    .enrolled-item {
        grid-template-columns: 50px 1fr;
    }
    
    .enrolled-item-action {
        display: none;
    }
}


/* ============================================
   Auth Pages (Login & Signup)
   ============================================ */
.auth-page-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bg-main);
    padding: var(--space-lg);
    position: relative;
    overflow-x: hidden;
    font-family: 'Alexandria', sans-serif;
}

.auth-pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary-subtle) 1px, transparent 0);
    background-size: 24px 24px;
    opacity: 0.8;
    z-index: 1;
    pointer-events: none;
}

.auth-wrapper {
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xl);
    z-index: 2;
    position: relative;
    animation: fadeIn 0.4s var(--ease-out-quart);
}

.auth-container {
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.auth-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.auth-logo-container .logo-icon {
    width: 120px;
    height: auto;
    fill: var(--primary);
    display: block;
}

.auth-logo-container a:hover,
.auth-logo-container .logo-icon:hover {
    transform: none !important;
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-lg);
}

.auth-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-main);
}

.auth-switch {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.auth-switch:hover {
    color: var(--primary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.auth-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    position: relative;
}

.auth-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 2px;
}

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

.auth-input-wrapper i.field-icon {
    display: none;
}

.auth-input-wrapper i.eye-icon {
    position: absolute;
    left: var(--space-md);
    color: var(--text-muted);
    font-size: var(--text-base);
    cursor: pointer;
    transition: var(--transition);
}

.auth-input-wrapper i.eye-icon:hover {
    color: var(--primary);
}

.auth-input {
    width: 100%;
    padding: 12px var(--space-md);
    font-family: inherit;
    font-size: 0.9rem;
    background: color-mix(in srgb, var(--bg-card) 10%, transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.auth-input.error {
    border-color: #9b2c2c;
}

.auth-error-box {
    background-color: #9b2c2c;
    color: #ffffff;
    padding: var(--space-sm) var(--space-md);
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: inherit;
    margin-bottom: 2px;
    animation: fadeIn 0.3s var(--ease-out-quart);
    display: none;
}

.auth-input-password {
    padding-left: var(--space-2xl);
}

.auth-input:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus,
.auth-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-card) inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.auth-input.error:focus {
    border-color: #9b2c2c;
    box-shadow: 0 0 0 3px rgba(155, 44, 44, 0.1);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    margin-top: 4px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    cursor: pointer;
    color: var(--text-secondary);
}

.auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.auth-forgot {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.auth-forgot:hover {
    color: var(--primary);
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    padding: 12px var(--space-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: var(--space-md);
    box-shadow: var(--shadow-md);
}

.auth-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin: var(--space-lg) 0;
}

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

.auth-divider:not(:empty)::before {
    margin-inline-end: var(--space-md);
}

.auth-divider:not(:empty)::after {
    margin-inline-start: var(--space-md);
}

.auth-google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.auth-google-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
}

.auth-google-btn svg {
    width: 20px;
    height: 20px;
}

.auth-captcha-mock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-top: var(--space-sm);
}

.auth-captcha-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.auth-captcha-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.auth-captcha-checkbox.checked i {
    display: block;
}

.auth-captcha-checkbox i {
    display: none;
    color: #2ecc71;
    font-size: var(--text-sm);
}

.auth-captcha-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    user-select: none;
    cursor: pointer;
}

.auth-captcha-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.auth-captcha-right img {
    width: 32px;
    height: auto;
}

.auth-captcha-right span {
    font-size: 8px;
    color: var(--text-muted);
}

.auth-switch-link {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-md);
}

.auth-switch-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch-link a:hover {
    text-decoration: underline;
}

.auth-back-home {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    font-weight: 600;
    transition: var(--transition);
}

.auth-back-home:hover {
    color: var(--primary);
}

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

/* ============================================
   Header Authentication & Profile Dropdown
   ============================================ */
.header-auth {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header-login-link {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 600;
    transition: var(--transition);
}

.header-login-link:hover {
    color: var(--primary);
}

.header-signup-btn {
    background: var(--primary);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(27, 94, 59, 0.15);
}

.header-signup-btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(27, 94, 59, 0.25);
}

/* User Menu Desktop */
.header-user-menu {
    position: relative;
    display: inline-block;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: var(--text-sm);
    transition: var(--transition);
}

.user-profile-btn:hover {
    opacity: 0.85;
}

.user-profile-btn .user-name {
    color: var(--primary);
    font-weight: 700;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    object-fit: cover;
    transition: var(--transition);
}

img.user-avatar {
    border: 1.5px solid var(--primary);
}

img.user-avatar.default-logo-avatar {
    border: none;
    border-radius: 0;
    object-fit: contain;
}

.dropdown-header .user-avatar {
    width: 40px;
    height: 40px;
}

/* Default avatar placeholder (filled person icon) */
.default-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark, #2d7a5e));
    color: #fff;
    border: none;
    font-size: 0.85rem;
}

.dropdown-header .default-avatar-placeholder {
    font-size: 1.15rem;
}

/* In the large profile page avatar circle */
.current-avatar-preview.default-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    font-size: 3rem;
    border: none;
}

.dropdown-arrow {
    font-size: 0.75rem;
    color: var(--primary);
    transition: transform var(--transition);
}

.user-profile-btn[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    inset-inline-end: 0;
    width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm) 0;
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth), visibility var(--transition-smooth);
}

/* Upward pointing arrow for popover */
.user-dropdown::before {
    content: '';
    position: absolute;
    top: -7px;
    inset-inline-end: 50px;
    width: 12px;
    height: 12px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    transform: rotate(-45deg);
    z-index: 1011;
}

.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
}

.user-info-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
}

.dropdown-fullname {
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--primary);
}

.dropdown-username {
    font-size: var(--text-xs);
    color: var(--text-muted);
    direction: ltr;
    text-align: right;
}

.dropdown-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: var(--space-sm) 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 12px var(--space-md);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
    text-align: right;
    border: none;
    background: none;
}

.dropdown-item i {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.dropdown-item:hover {
    background: var(--primary-subtle);
    color: var(--primary);
}

.dropdown-item:hover i {
    color: var(--primary);
}

.dropdown-item.logout-btn {
    color: #c53030;
}

.dropdown-item.logout-btn i {
    color: #c53030;
}

.dropdown-item.logout-btn:hover {
    background: rgba(197, 48, 48, 0.08);
}


/* ============================================
   صفحة تواصل معنا - Contact Us Page Styles
   ============================================ */
/* ============================================
   صفحة تواصل معنا - Contact Page Redesign
   ============================================ */

/* Page header enhancement */
.contact-header {
    position: relative;
    overflow: hidden;
}

.contact-header-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--primary-subtle);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    animation: staggerFade 0.35s var(--ease-out-quart) 0.15s both;
}

.contact-header-line {
    width: 64px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: var(--space-lg) auto 0;
    opacity: 0.6;
    transform-origin: center;
    animation: lineGrow 0.5s var(--ease-out-quart) 0.3s both;
}

/* Main layout */
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-2xl);
    align-items: stretch;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

/* ==========================================
   Sidebar - Social Links
   ========================================== */
.contact-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(16px);
    transition: box-shadow var(--duration-state) var(--ease-out-quart),
                opacity var(--duration-entrance) var(--ease-out-quint),
                transform var(--duration-entrance) var(--ease-out-quint);
}

.contact-sidebar:hover {
    box-shadow: var(--shadow-md);
}

.reveal.visible .contact-sidebar {
    opacity: 1;
    transform: translateY(0);
}

.contact-sidebar-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.contact-sidebar-header i {
    font-size: var(--text-2xl);
    color: var(--primary);
    margin-bottom: var(--space-sm);
    display: block;
}

.contact-sidebar-header h2 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: var(--space-xs);
}

.contact-sidebar-header p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 40ch;
    margin: 0 auto;
}

/* Social list */
.contact-social-list {
    display: flex;
    flex-direction: column;
}

.contact-social-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 14px var(--space-sm);
    text-decoration: none;
    border-radius: 0;
    opacity: 0;
    animation: staggerFade 0.35s var(--ease-out-quart) backwards;
    animation-delay: calc(var(--i, 0) * 0.06s);
    animation-play-state: paused;
    transition: background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.3s var(--ease-out-quart),
                border-radius 0.3s var(--ease-out-quart),
                margin 0.3s var(--ease-out-quart),
                padding 0.3s var(--ease-out-quart);
}

.contact-social-item + .contact-social-item {
    border-top: 1px solid var(--border);
}

.stat-item {
    border-bottom: none;
}

.reveal.visible .contact-social-item {
    animation-play-state: running;
}

.contact-social-item:active {
    opacity: 0.85;
    transform: scale(0.98);
}

/* Social item: icon */
.contact-social-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    font-size: var(--text-xl);
    flex-shrink: 0;
    transition: color 0.3s var(--ease-out-quart),
                transform 0.3s var(--ease-out-quart);
}

.contact-social-item.telegram .contact-social-item-icon { color: #0088cc; }
.contact-social-item.email .contact-social-item-icon { color: var(--accent); }
.contact-social-item.whatsapp .contact-social-item-icon { color: #25D366; }
.contact-social-item.youtube .contact-social-item-icon { color: #FF0000; }
.contact-social-item.facebook .contact-social-item-icon { color: #1877F2; }

@media (hover: hover) {
    .contact-social-item:hover {
        background: var(--bg-secondary);
        margin-left: calc(-1 * (var(--space-lg) - var(--space-xs)));
        margin-right: calc(-1 * (var(--space-lg) - var(--space-xs)));
        padding-left: calc(var(--space-lg) + var(--space-sm) - var(--space-xs));
        padding-right: calc(var(--space-lg) + var(--space-sm) - var(--space-xs));
        border-radius: var(--radius-md);
    }
    
    .contact-social-item:hover .contact-social-item-icon {
        transform: scale(1.15);
    }
    
    .contact-social-item.telegram:hover { box-shadow: inset 0 0 0 2px #0088cc; }
    .contact-social-item.email:hover { box-shadow: inset 0 0 0 2px var(--accent); }
    .contact-social-item.whatsapp:hover { box-shadow: inset 0 0 0 2px #25D366; }
    .contact-social-item.youtube:hover { box-shadow: inset 0 0 0 2px #FF0000; }
    .contact-social-item.facebook:hover { box-shadow: inset 0 0 0 2px #1877F2; }
    
    .contact-social-item.telegram:hover .contact-social-item-icon { color: #0088cc; }
    .contact-social-item.email:hover .contact-social-item-icon { color: var(--accent); }
    .contact-social-item.whatsapp:hover .contact-social-item-icon { color: #25D366; }
    .contact-social-item.youtube:hover .contact-social-item-icon { color: #FF0000; }
    .contact-social-item.facebook:hover .contact-social-item-icon { color: #1877F2; }
}

/* Social item: text body */
.contact-social-item-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    justify-content: center;
}

.contact-social-item-name {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text-main);
    line-height: 1.3;
}

.contact-social-item-handle {
    font-size: var(--text-xs);
    color: var(--text-muted);
    direction: ltr;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Social item: arrow indicator */
.contact-social-item-arrow {
    color: var(--text-muted);
    font-size: var(--text-xs);
    opacity: 0;
    transition: opacity var(--duration-state) var(--ease-out-quart),
                transform var(--duration-state) var(--ease-out-quart);
}

.contact-social-item:hover .contact-social-item-arrow {
    opacity: 1;
    transform: translateX(-3px);
}

/* Placeholder state */
.contact-social-item.is-placeholder {
    opacity: 0.7;
}

.contact-social-item.is-placeholder .contact-social-item-handle {
    color: var(--text-muted);
    font-style: italic;
}

/* ==========================================
   Form Card
   ========================================== */
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(16px);
    transition: box-shadow var(--duration-state) var(--ease-out-quart),
                opacity var(--duration-entrance) var(--ease-out-quint),
                transform var(--duration-entrance) var(--ease-out-quint);
}

.reveal.visible .contact-form-card {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.contact-form-card-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.contact-form-title {
    font-size: var(--text-2xl);
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.contact-form-subtitle {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 55ch;
    margin: 0 auto;
}

/* ==========================================
   Form Fields
   ========================================== */
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: 20px;
    position: relative;
}

.contact-form-row .contact-form-group {
    margin-bottom: 0;
}

.contact-field-label {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--text-secondary);
    margin-right: 4px;
    letter-spacing: 0.02em;
}

.contact-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.contact-field-icon {
    position: absolute;
    right: var(--space-md);
    color: var(--text-muted);
    font-size: var(--text-base);
    pointer-events: none;
    z-index: 1;
    transition: color var(--duration-state) var(--ease-out-quart);
}

.contact-field-input,
.contact-field-textarea {
    width: 100%;
    padding: 11px 3.25rem 11px var(--space-md);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: var(--text-base);
    outline: none;
    transition: border-color var(--duration-state) var(--ease-out-quart),
                background var(--duration-state) var(--ease-out-quart),
                box-shadow var(--duration-state) var(--ease-out-quart);
}

.contact-field-input:focus,
.contact-field-textarea:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(27, 94, 59, 0.12);
}

.contact-field-textarea {
    resize: vertical;
    min-height: 110px;
    padding: 11px var(--space-md);
}

.contact-field-wrapper:focus-within .contact-field-icon {
    color: var(--primary);
}

/* ==========================================
   Submit Button
   ========================================== */
.contact-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform var(--duration-state) var(--ease-out-quart),
                box-shadow var(--duration-state) var(--ease-out-quart);
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 71, 49, 0.12);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================
   Form Status
   ========================================== */
.contact-form-status {
    margin-top: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: center;
    display: none;
    animation: fadeIn var(--duration-reveal) var(--ease-out-quart);
}

.contact-form-status.success {
    background: rgba(37, 211, 102, 0.08);
    color: #1a8a47;
    border: 1px solid rgba(37, 211, 102, 0.15);
}

.contact-form-status.error {
    background: rgba(220, 53, 69, 0.06);
    color: #c23335;
    border: 1px solid rgba(220, 53, 69, 0.12);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes lineGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes staggerFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   Validation States
   ========================================== */
.field-error {
    font-size: var(--text-xs);
    color: #c23335;
    margin-top: var(--space-xs);
    margin-right: 4px;
    line-height: 1.4;
    animation: fadeIn var(--duration-state) var(--ease-out-quart);
}

.contact-field-input.is-invalid,
.contact-field-textarea.is-invalid {
    border-color: #c23335;
    box-shadow: 0 0 0 2px rgba(194, 51, 53, 0.08);
}

.contact-field-input.is-invalid:focus,
.contact-field-textarea.is-invalid:focus {
    border-color: #c23335;
    box-shadow: 0 0 0 3px rgba(194, 51, 53, 0.12);
}

.contact-field-wrapper:has(.is-invalid) .contact-field-icon {
    color: #c23335;
}

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
    .contact-layout {
        gap: var(--space-xl);
    }
}

@media (max-width: 850px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    .contact-sidebar {
        max-width: 480px;
        margin: 0 auto;
    }
    .contact-form-card {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .contact-form-row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .contact-form-row .contact-form-group {
        margin-bottom: 0;
    }
    .contact-form-card {
        padding: var(--space-md);
    }
    .contact-sidebar {
        padding: var(--space-md);
    }
    .contact-field-input,
    .contact-field-textarea {
        padding-top: 10px;
        padding-bottom: 10px;
        font-size: 15px;
    }
    .contact-submit-btn {
        padding: 12px 24px;
        min-height: 44px;
    }
    .contact-header-badge {
        font-size: 0.7rem;
        padding: 4px 14px;
    }
}

@media (max-width: 400px) {
    .contact-sidebar {
        padding: 12px;
    }
    .contact-form-card {
        padding: 12px;
    }
    .contact-field-input,
    .contact-field-textarea {
        padding-top: 9px;
        padding-bottom: 9px;
        padding-right: 2.5rem;
    }
    .contact-field-icon {
        right: var(--space-sm);
        font-size: var(--text-sm);
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .contact-layout {
        gap: var(--space-md);
        margin-top: var(--space-md);
        margin-bottom: var(--space-md);
    }
    .contact-sidebar {
        padding: var(--space-md);
    }
    .contact-sidebar-header {
        margin-bottom: var(--space-md);
        padding-bottom: var(--space-md);
    }
    .contact-sidebar-header i {
        font-size: var(--text-xl);
        margin-bottom: var(--space-xs);
    }
    .contact-form-card {
        padding: var(--space-lg);
    }
    .contact-form-card-header {
        margin-bottom: var(--space-lg);
        padding-bottom: var(--space-lg);
    }
    .contact-social-item {
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }
}

/* ==========================================
   Form Status
   ========================================== */
.contact-form-status {
    margin-top: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: center;
    display: none;
    animation: fadeIn var(--duration-reveal) var(--ease-out-quart);
}

.contact-form-status.success {
    background: rgba(37, 211, 102, 0.08);
    color: #1a8a47;
    border: 1px solid rgba(37, 211, 102, 0.15);
}

.contact-form-status.error {
    background: rgba(220, 53, 69, 0.06);
    color: #c23335;
    border: 1px solid rgba(220, 53, 69, 0.12);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes lineGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes staggerFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   Validation States
   ========================================== */
.field-error {
    font-size: var(--text-xs);
    color: #c23335;
    margin-top: var(--space-xs);
    margin-right: 4px;
    line-height: 1.4;
    animation: fadeIn var(--duration-state) var(--ease-out-quart);
}

.contact-field-input.is-invalid,
.contact-field-textarea.is-invalid {
    border-color: #c23335;
    box-shadow: 0 0 0 2px rgba(194, 51, 53, 0.08);
}

.contact-field-input.is-invalid:focus,
.contact-field-textarea.is-invalid:focus {
    border-color: #c23335;
    box-shadow: 0 0 0 3px rgba(194, 51, 53, 0.12);
}

.contact-field-wrapper:has(.is-invalid) .contact-field-icon {
    color: #c23335;
}

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
    .contact-layout {
        gap: var(--space-xl);
    }
}

@media (max-width: 850px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    .contact-sidebar {
        max-width: 480px;
        margin: 0 auto;
    }
    .contact-form-card {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .contact-form-row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .contact-form-row .contact-form-group {
        margin-bottom: 0;
    }
    .contact-form-card {
        padding: var(--space-md);
    }
    .contact-sidebar {
        padding: var(--space-md);
    }
    .contact-field-input,
    .contact-field-textarea {
        padding-top: 10px;
        padding-bottom: 10px;
        font-size: 15px;
    }
    .contact-submit-btn {
        padding: 12px 24px;
        min-height: 44px;
    }
    .contact-header-badge {
        font-size: 0.7rem;
        padding: 4px 14px;
    }
}

@media (max-width: 400px) {
    .contact-sidebar {
        padding: 12px;
    }
    .contact-form-card {
        padding: 12px;
    }
    .contact-field-input,
    .contact-field-textarea {
        padding-top: 9px;
        padding-bottom: 9px;
        padding-right: 2.5rem;
    }
    .contact-field-icon {
        right: var(--space-sm);
        font-size: var(--text-sm);
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .contact-layout {
        gap: var(--space-md);
        margin-top: var(--space-md);
        margin-bottom: var(--space-md);
    }
    .contact-sidebar {
        padding: var(--space-md);
    }
    .contact-sidebar-header {
        margin-bottom: var(--space-md);
        padding-bottom: var(--space-md);
    }
    .contact-sidebar-header i {
        font-size: var(--text-xl);
        margin-bottom: var(--space-xs);
    }
    .contact-form-card {
        padding: var(--space-lg);
    }
    .contact-form-card-header {
        margin-bottom: var(--space-lg);
        padding-bottom: var(--space-lg);
    }
    .contact-social-item {
        padding: var(--space-sm);
    }
    .contact-social-item-icon {
        font-size: var(--text-lg);
    }
    .contact-field-textarea {
        min-height: 90px;
    }
}


/* ============================================================
   Brand New Student Dashboard (Redesigned From Scratch)
   ============================================================ */

.dash-main-wrapper {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-3xl);
    background: var(--bg-main);
    min-height: calc(100vh - 80px);
}

/* 1. Hero Card */
.dash-hero-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px 36px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.dash-hero-card::after {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-subtle) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.6;
}

.dash-hero-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: center;
}

.dash-welcome-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-subtle);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.dash-welcome-name {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.dash-welcome-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.dash-quote-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    box-shadow: var(--shadow-xs);
}

.dash-quote-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.dash-quote-header .quote-icon {
    font-size: 14px;
}

.dash-quote-text {
    font-family: var(--font-arabic);
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 4px;
}

.dash-quote-author {
    font-size: 11px;
    color: var(--text-muted);
}

/* 2. Overview Metrics Grid */
.dash-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.dash-metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-xs);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dash-metric-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.dash-metric-icon.primary { background: var(--primary-subtle); color: var(--primary); }
.dash-metric-icon.orange { background: rgba(230, 126, 34, 0.12); color: #e67e22; }
.dash-metric-icon.blue { background: rgba(41, 128, 185, 0.12); color: #2980b9; }
.dash-metric-icon.purple { background: rgba(142, 68, 173, 0.12); color: #8e44ad; }

.dash-metric-data {
    display: flex;
    flex-direction: column;
}

.dash-metric-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.dash-metric-lbl {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 2px;
}

/* 3. Main Layout Grid */
.dash-layout-grid {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 28px;
}

.dash-section-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-xs);
}

.dash-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.dash-section-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Resume Hero Card */
.dash-resume-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border);
    border-inline-start: 4px solid var(--primary);
    border-radius: var(--radius-xl);
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: var(--shadow-xs);
}

.dash-resume-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-subtle);
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.dash-resume-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.dash-resume-lesson {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.dash-resume-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 380px;
}

.dash-resume-bar-bg {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.dash-resume-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.dash-resume-pct {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

.dash-resume-meta-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Tabs Bar */
.dash-tabs-bar {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 3px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.dash-tab-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.dash-tab-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    font-weight: 700;
    box-shadow: var(--shadow-xs);
}

/* Enrolled Course Cards */
.dash-courses-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-course-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.dash-course-item:hover {
    transform: translateX(-4px);
    border-color: var(--primary-subtle);
}

.dash-course-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.dash-course-info {
    flex: 1;
}

.dash-course-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.dash-course-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.status-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.status-tag.prog { background: rgba(230, 126, 34, 0.15); color: #d35400; }
.status-tag.done { background: rgba(46, 204, 113, 0.15); color: #27ae60; }

.dash-course-last {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.dash-course-prog-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-mini-bar-bg {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.dash-mini-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
}

.dash-mini-pct {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
}

.dash-course-arrow {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
}

/* Notes Grid */
.dash-notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.dash-note-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dash-note-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.dash-note-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.dash-note-actions {
    display: flex;
    gap: 4px;
}

.note-action-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    padding: 4px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.note-action-btn:hover { color: var(--primary); }
.note-action-btn.delete:hover { color: #c53030; }

.dash-note-body {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.dash-note-footer {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
}

.note-tag-course {
    background: var(--primary-subtle);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.dash-notes-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
}

.dash-notes-empty i {
    font-size: 2.2rem;
    margin-bottom: 8px;
    display: block;
}

/* Sidebar Widgets */
.dash-side-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-xs);
}

.streak-widget {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.widget-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.streak-badge {
    font-size: 11px;
    font-weight: 700;
    color: #e67e22;
    background: rgba(230, 126, 34, 0.12);
    padding: 3px 8px;
    border-radius: 10px;
}

.widget-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.streak-dots-grid {
    display: flex;
    gap: 6px;
}

.dot-item {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: var(--border);
}

.dot-item.active {
    background: #e67e22;
}

/* Badges List */
.dash-badges-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.dash-badge-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-badge-item.unlocked {
    border-color: var(--primary-subtle);
}

.dash-badge-item.locked {
    opacity: 0.45;
    filter: grayscale(0.8);
}

.badge-icon-box {
    font-size: 1.4rem;
    color: var(--primary);
}

.badge-text-box {
    flex: 1;
}

.badge-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.badge-sub {
    font-size: 10px;
    color: var(--text-muted);
}

.badge-status-pill {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}

.dash-badge-item.unlocked .badge-status-pill {
    background: var(--primary-subtle);
    color: var(--primary);
}

.dash-badge-item.locked .badge-status-pill {
    background: var(--border);
    color: var(--text-muted);
}

.dash-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.dash-empty-box .dash-empty-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.dash-link-more {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

.dash-empty-notice {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.dash-empty-notice i {
    font-size: 2.2rem;
    margin-bottom: 8px;
    display: block;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .dash-hero-content {
        grid-template-columns: 1fr;
    }
    .dash-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dash-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .dash-hero-card {
        padding: 20px;
    }
    .dash-metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Redesigned Home Page (V2) - Calm & Islamic
   ============================================ */
.hero-v2 {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 110px 0 60px;
    background-image: linear-gradient(180deg, rgba(15, 22, 18, 0.45) 0%, rgba(15, 22, 18, 0.6) 100%), url('../../public/assets/home.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.hero-v2 .container {
    width: 100%;
}

.hero-v2 .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 0 auto;
}

.hero-basmala-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 26px;
    background: rgba(27, 94, 59, 0.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(201, 169, 98, 0.45);
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-lg);
    text-align: center;
}

.basmala-symbol {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    color: var(--accent);
    line-height: 1.2;
}

.hero-v2-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.25;
    margin-bottom: var(--space-md);
    max-width: 25ch;
    margin-inline: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-v2-title .highlight {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero-v2-desc {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: rgba(255, 255, 255, 0.92);
    max-width: 62ch;
    margin: 0 auto var(--space-xl);
    line-height: 1.8;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Quick Category Jump Chips */
.hero-chips-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    width: 100%;
}

.chips-label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-full);
    color: #FFFFFF;
    font-size: var(--text-xs);
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--duration-state) var(--ease-out-quart), border-color var(--duration-state) var(--ease-out-quart), color var(--duration-state) var(--ease-out-quart);
}

.hero-chip i,
.hero-chip .amiri-symbol {
    color: var(--accent);
    transition: color var(--duration-state) var(--ease-out-quart);
}

.hero-chip .amiri-symbol {
    font-family: 'Amiri', serif;
    font-size: 1.1rem;
    line-height: 1;
}

.hero-chip:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.hero-chip:hover i,
.hero-chip:hover .amiri-symbol {
    color: #FFFFFF;
}

.hero-chip:active {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #FFFFFF;
}

.hero-chip:active i,
.hero-chip:active .amiri-symbol {
    color: #FFFFFF;
}

/* Hero CTA Group */
.hero-cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

.btn-hero {
    padding: 12px 24px;
    font-size: var(--text-base);
    border-radius: var(--radius-md);
    justify-content: center;
}

.hero-v2 .btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    background: transparent;
    padding: 11px 20px;
    min-width: auto;
    font-size: var(--text-sm);
}

.hero-v2 .btn-outline:hover,
.hero-v2 .btn-outline:hover i,
.hero-v2 .btn-outline:hover span {
    background: transparent !important;
    border-color: var(--accent) !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 14px rgba(201, 169, 98, 0.45) !important;
}

.hero-v2 .btn-outline:active,
.hero-v2 .btn-outline:active i,
.hero-v2 .btn-outline:active span {
    background: transparent !important;
    border-color: var(--accent-hover) !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 8px rgba(201, 169, 98, 0.3) !important;
}

/* Stat Pills */
.hero-stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
}

.stat-pill i {
    color: var(--accent);
    font-size: 1.1rem;
}

.stat-value {
    font-weight: 800;
    color: #FFFFFF;
    font-size: 1.1rem;
}

.stat-text {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

/* Section Header V2 */
.section-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-2xl);
    gap: var(--space-md);
    flex-wrap: wrap;
}

.section-header-v2.text-center {
    flex-direction: column;
    align-items: center;
}

.badge-subtle {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-subtle);
    color: var(--primary);
    font-size: var(--text-xs);
    font-weight: 700;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-xs);
}

.section-title-v2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text-main);
}

.section-desc-v2 {
    font-size: var(--text-base);
    color: var(--text-secondary);
    max-width: 55ch;
    margin-top: var(--space-xs);
    line-height: 1.6;
}

/* Static Courses Grid V2 */
.courses-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

/* Staggered Learning Paths V2 */
.paths-staggered-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.path-card-v2 {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.path-card-v2:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.path-card-v2.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--primary-subtle) 100%);
}

.path-number-badge {
    position: absolute;
    top: var(--space-lg);
    left: var(--space-lg);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--primary-subtle);
    color: var(--primary);
    font-weight: 800;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.path-tag {
    font-size: var(--text-xs);
    color: var(--primary);
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.path-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: var(--space-sm);
}

.path-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    flex: 1;
}

.path-meta {
    display: flex;
    gap: var(--space-md);
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
}

.path-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: var(--text-sm);
    text-decoration: none;
    transition: var(--transition);
}

.path-action-btn:hover {
    color: var(--primary-dark);
    gap: 12px;
}

/* Features Grid V2 */
.features-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.feature-card-v2 {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: var(--transition);
}

.feature-card-v2:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.feature-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--primary-subtle);
    color: var(--primary);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.feature-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: var(--space-xs);
}

.feature-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Testimonials Grid V2 */
.testimonials-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.testimonial-card-v2 {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.stars-row {
    color: #F59E0B;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.testimonial-quote {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
}

.author-block {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.author-avatar-badge {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary-subtle);
    color: var(--primary);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-name {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-main);
}

.author-track {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* FAQ Accordion List V2 */
.faq-accordion-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-card-v2 {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question-v2 {
    padding: var(--space-lg);
    font-weight: 700;
    font-size: var(--text-base);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.faq-question-v2::-webkit-details-marker {
    display: none;
}

.faq-icon {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: transform var(--duration-state) var(--ease-out-quart);
}

.faq-card-v2[open] .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer-v2 {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.7;
    border-top: 1px solid transparent;
}

.faq-card-v2[open] .faq-answer-v2 {
    border-top-color: var(--border);
    padding-top: var(--space-md);
}

/* CTA Banner V2 */
.cta-banner-v2 {
    padding: var(--space-3xl) 0;
}

.cta-box-v2 {
    background: linear-gradient(135deg, var(--primary-subtle) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-xl);
}

.cta-heading {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text-main);
    margin: var(--space-xs) 0 var(--space-sm);
}

.cta-text {
    font-size: var(--text-base);
    color: var(--text-secondary);
    max-width: 50ch;
    margin: 0 auto var(--space-xl);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Mobile & Tablet Responsive Adaptations V2 */
@media (max-width: 1024px) {
    .hero-v2 {
        padding: 110px 0 50px;
    }
    .paths-staggered-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .features-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .testimonials-grid-v2 {
        grid-template-columns: 1fr;
    }
    .hero-stats-row {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero-v2 {
        padding: 90px 0 40px;
    }
    .hero-v2-title {
        font-size: clamp(1.75rem, 6.5vw, 2.3rem);
        line-height: 1.35;
    }
    .hero-v2-desc {
        font-size: 0.95rem;
        line-height: 1.65;
        padding: 0 4px;
    }
    .hero-chips-wrapper {
        width: 100%;
        overflow: hidden;
    }
    .hero-chips {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        scrollbar-width: none;
        justify-content: flex-start;
    }
    .hero-chips::-webkit-scrollbar {
        display: none;
    }
    .hero-chip {
        flex-shrink: 0;
        padding: 7px 16px;
        font-size: 0.85rem;
        min-height: 44px;
    }
    .features-grid-v2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .btn-hero {
        width: 100%;
        min-height: 48px;
        font-size: 0.95rem;
    }
    .hero-stats-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
    }
    .stat-pill {
        padding: 10px 6px;
        flex-direction: column;
        gap: 4px;
        min-height: 44px;
        text-align: center;
    }
    .stat-pill i {
        font-size: 1rem;
    }
    .stat-pill .stat-value {
        font-size: 1rem;
    }
    .stat-pill .stat-text {
        font-size: 0.7rem;
    }
}

/* ============================================================
   صفحة دوراتي (My Courses Page Styles)
   ============================================================ */

.my-courses-page-wrapper {
    padding: 120px 0 80px 0;
    min-height: calc(100vh - 350px);
}

/* 1. Header Section & Controls */
.my-courses-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.my-courses-title-area {
    flex: 1;
    min-width: 250px;
}

.my-courses-main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    font-family: 'Cairo', sans-serif;
}

.my-courses-main-title .title-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

.my-courses-subtitle {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 2. Filter Bar (Matching UI/UX Inspiration Image) */
.my-courses-filter-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.filter-dropdown-wrapper {
    position: relative;
    min-width: 175px;
}

.my-courses-select {
    width: 100%;
    padding: 11px 16px 11px 36px;
    border-radius: 0;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    text-align: right;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.my-courses-select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.dropdown-arrow-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.filter-dropdown-wrapper.open .dropdown-arrow-icon {
    transform: translateY(-50%) rotate(180deg);
}

/* Custom Dropdown List */
.my-courses-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 1100;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    box-shadow: var(--shadow-md);
    display: none;
    max-height: 250px;
    overflow-y: auto;
}

.filter-dropdown-wrapper.open .my-courses-dropdown-menu {
    display: block;
}

.dropdown-opt {
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    text-align: right;
}

/* Hover/Selection in GREEN as requested */
.dropdown-opt:hover {
    background-color: var(--primary);
    color: #ffffff;
}

.dropdown-opt.active {
    background-color: var(--primary-subtle);
    color: var(--primary);
    font-weight: 700;
}

.filter-search-wrapper {
    position: relative;
    width: 240px;
}

.my-courses-search-input {
    width: 100%;
    padding: 11px 40px 11px 16px;
    border-radius: 0;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.92rem;
    font-family: inherit;
    box-shadow: var(--shadow-xs);
    transition: all 0.2s ease;
}

.my-courses-search-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.filter-search-wrapper .search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    pointer-events: none;
    font-size: 0.9rem;
}

/* 3. Stats Strip */
.my-courses-stats-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.stat-mini-pill {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    box-shadow: var(--shadow-xs);
}

.stat-pill-label {
    color: var(--text-muted);
    font-weight: 500;
}

.stat-pill-val {
    font-weight: 800;
    color: var(--text-main);
}

.stat-mini-pill.highlight-progress .stat-pill-val {
    color: var(--primary);
}

.stat-mini-pill.highlight-completed .stat-pill-val {
    color: #27ae60;
}

/* 4. Tabs Status Bar */
.my-courses-tabs-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.status-filter-btn {
    background: none;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.status-filter-btn:hover {
    color: var(--primary);
    background: transparent;
}

.status-filter-btn.active {
    color: var(--primary);
    background: transparent;
    font-weight: 700;
}

/* 5. Course Row Card (Inspired by reference UI/UX image) */
.my-courses-cards-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.my-course-row-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: var(--shadow-xs);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.my-course-row-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

[data-theme="dark"] .my-course-row-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Course Avatar / Thumbnail */
.my-course-thumb {
    flex-shrink: 0;
}

.cat-icon-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #ffffff;
    box-shadow: var(--shadow-xs);
}

.my-course-avatar-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border);
    transition: transform 0.2s ease;
}


.cat-icon-avatar.fiqh { background: linear-gradient(135deg, #16a085, #1B5E3B); }
.cat-icon-avatar.aqeedah { background: linear-gradient(135deg, #8e44ad, #5B2E91); }
.cat-icon-avatar.hadith { background: linear-gradient(135deg, #d35400, #e67e22); }
.cat-icon-avatar.seerah { background: linear-gradient(135deg, #27ae60, #2980b9); }
.cat-icon-avatar.quran { background: linear-gradient(135deg, #2c3e50, #34495e); }
.cat-icon-avatar.ethics { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.cat-icon-avatar.default { background: linear-gradient(135deg, var(--primary), #5B2E91); }

.cat-icon-avatar .amiri-symbol {
    font-family: 'Amiri', serif;
    font-size: 1.3rem;
    line-height: 1;
}

/* Course Details */
.my-course-info {
    flex: 1;
    min-width: 0;
}

.my-course-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.my-course-cat-tag {
    background: var(--primary-subtle);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.my-course-duration,
.my-course-lessons-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.my-course-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.my-course-row-card:hover .my-course-title {
    color: var(--primary);
}

.my-course-subinfo {
    font-size: 0.85rem;
    line-height: 1.3;
}

.status-badge-completed {
    color: #27ae60;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-badge-remaining {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Progress SVG & Action Button */
.my-course-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.circle-progress-container {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.circle-progress-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-progress-svg .circle-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 5;
    opacity: 0.6;
}

.circle-progress-svg .circle-fill {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.circle-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.82rem;
    font-weight: 800;
    font-family: 'Cairo', sans-serif;
}



/* 6. Empty State Styling */
.empty-state-box {
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 20px;
    padding: 48px 24px;
    text-align: center;
    max-width: 550px;
    margin: 40px auto;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px auto;
}

.empty-state-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.empty-state-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* 7. Auth Locked State Card */
.auth-lock-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 56px 36px;
    text-align: center;
    max-width: 620px;
    margin: 60px auto;
    box-shadow: var(--shadow-md);
}

.auth-lock-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px auto;
    box-shadow: var(--shadow-xs);
}

.auth-lock-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    font-family: 'Cairo', sans-serif;
}

.auth-lock-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.auth-lock-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .my-courses-header-section {
        flex-direction: column;
        align-items: stretch;
    }

    .my-courses-filter-bar {
        width: 100%;
    }

    .filter-dropdown-wrapper,
    .filter-search-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .my-course-row-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px;
    }

    .my-course-title {
        white-space: normal;
    }

    .my-course-progress-wrapper {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid var(--border);
        padding-top: 12px;
        margin-top: 4px;
    }
}

/* 8. Loading Spinner Styling */
.my-courses-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 700;
    width: 100%;
}

.my-courses-loading-spinner i {
    font-size: 2.6rem;
}




