@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700&display=swap');

/* =========================================
   1. VARIABLES & COLOR SYSTEM
   ========================================= */
:root {
    /* Brand Colors */
    --primary: #123e51;
    --primary-light: #1b5b77;
    --primary-dark: #0a2531;
    --secondary: #d4af37;
    --secondary-light: #ebd078;
    --secondary-dark: #a8851c;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;

    /* Semantic Status */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.12);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.12);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --info: #0ea5e9;
    --info-bg: rgba(14, 165, 233, 0.12);

    /* Neutrals */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Portal Theme (Glassmorphic Midnight) */
    --bg-portal: #0a1926;
    --bg-portal-gradient: radial-gradient(circle at top center, #1b4b60 0%, #0a1926 70%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.09);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-focus: rgba(212, 175, 55, 0.5);
    --glass-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.05);

    /* Admin Theme (Sleek Clean SaaS) */
    --bg-admin: #f1f5f9;
    --sidebar-bg: #0f2634;
    --sidebar-width: 270px;
    --header-height: 70px;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);

    /* Radii & Transitions */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   2. RESET & BASE
   ========================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    background: var(--bg-portal-gradient);
    background-attachment: fixed;
    color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.admin-body {
    background: var(--bg-admin);
    color: var(--gray-800);
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================
   3. LAYOUT & CONTAINERS
   ========================================= */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.portal-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
}

.glass-card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

/* =========================================
   4. TYPOGRAPHY & HEADERS
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-title {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--gray-300);
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.6rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

/* =========================================
   5. BUTTONS & CONTROLS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: #111827;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-color: var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

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

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

/* =========================================
   6. FORMS & INPUTS
   ========================================= */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-200);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--white);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--gray-400);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-select option {
    background: #0f2634;
    color: var(--white);
}

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

/* =========================================
   7. SERVICES GRID & CARDS
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.choice-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.choice-card:hover {
    transform: translateY(-5px);
    background: var(--glass-bg-hover);
    border-color: var(--secondary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.15);
}

.choice-icon {
    font-size: 2.8rem;
    color: var(--secondary);
    margin-bottom: 1.2rem;
}

.service-selectable {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.service-selectable:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary);
}

.service-selectable.selected {
    border-color: var(--secondary);
    background: rgba(212, 175, 55, 0.12);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.service-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
}

/* =========================================
   8. SUMMARY & COST BOX
   ========================================= */
.cost-summary-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.cost-row.total {
    border-bottom: none;
    border-top: 2px solid var(--secondary);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
}

/* =========================================
   9. INVOICE VIEW & PRINT
   ========================================= */
.invoice-container {
    background: #ffffff;
    color: #1e293b;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    max-width: 850px;
    margin: 0 auto;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.invoice-ref-badge {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    text-align: center;
}

.invoice-ref-badge .ref-num {
    font-family: 'Outfit', monospace;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.invoice-table th, .invoice-table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid #e2e8f0;
}

.invoice-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
}

/* =========================================
   10. ADMIN LAYOUT & SIDEBAR
   ========================================= */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 100;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 1.8rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-menu {
    list-style: none;
    padding: 1.5rem 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    color: var(--gray-300);
    font-weight: 600;
    transition: var(--transition);
    border-right: 4px solid transparent;
}

.sidebar-menu li a:hover, .sidebar-menu li.active a {
    background: rgba(255, 255, 255, 0.06);
    color: var(--secondary);
    border-right-color: var(--secondary);
}

.admin-main {
    margin-right: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.admin-content {
    padding: 2rem;
    flex: 1;
}

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

.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    border: 1px solid var(--gray-200);
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info .stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
}

.stat-info .stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 0.2rem;
}

/* Data Table */
.data-table-container {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 1rem 1.2rem;
    text-align: right;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.95rem;
}

.data-table th {
    background: var(--gray-50);
    font-weight: 700;
    color: var(--gray-700);
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-paid {
    background: var(--success-bg);
    color: var(--success);
}

.badge-unpaid {
    background: var(--danger-bg);
    color: var(--danger);
}

.badge-ready {
    background: var(--info-bg);
    color: var(--info);
}

/* Tracking Steps */
.track-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    opacity: 0.4;
    transition: var(--transition);
}

.track-step.done {
    opacity: 1;
}

.track-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
}

.track-step.done .track-icon {
    background: var(--secondary);
    border-color: var(--secondary-light);
    color: #111827;
}

/* Responsive & Multi-Device Compatibility Engine */

/* 1. Large Desktop & High-Res Monitors (>= 1200px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1280px;
    }
}

/* 2. Laptops & Small Desktops (992px to 1199px) */
@media (max-width: 1199px) {
    :root {
        --sidebar-width: 230px;
    }
    .glass-card {
        padding: 2rem;
    }
}

/* 3. Tablets & iPads (768px to 991px) */
@media (max-width: 991px) {
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        display: none;
    }
    .admin-sidebar.show-mobile {
        display: block !important;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        z-index: 9999;
        overflow-y: auto;
        box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    }
    .admin-main {
        margin-right: 0;
        width: 100%;
    }
    .admin-topbar {
        padding: 0.8rem 1rem;
    }
    .data-table-container {
        overflow-x: auto;
    }
    .data-table {
        min-width: 750px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .invoice-container {
        padding: 1.5rem;
    }
}

/* 4. Smart Mobile Phones (480px to 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
    .glass-card {
        padding: 1.5rem 1rem;
        border-radius: var(--radius-md);
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .btn {
        width: 100%;
        margin-bottom: 0.4rem;
        justify-content: center;
    }
    .cost-summary-box {
        padding: 1.2rem 1rem;
    }
    .invoice-container {
        padding: 1.2rem 0.8rem;
    }
    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    nav .container {
        flex-direction: column;
        text-align: center;
    }
}

/* 5. Legacy & Small Screen Mobiles (< 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    .page-header h1 {
        font-size: 1.4rem;
    }
    .page-header p {
        font-size: 0.88rem;
    }
    .data-table th, .data-table td {
        padding: 0.6rem 0.7rem;
        font-size: 0.82rem;
    }
    .form-input, .form-select {
        padding: 0.65rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Standalone Grid & Utility Fallbacks for SaaS Dashboard Component Rendering */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}
.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}
.g-3 { gap: 1rem !important; }
.g-4 { gap: 1.5rem !important; }

@media (min-width: 768px) {
    .col-md-6 { flex: 0 0 auto; width: 50%; }
}
@media (min-width: 1200px) {
    .col-xl-3 { flex: 0 0 auto; width: 25%; }
}

.d-flex { display: flex !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.8rem;
}
.card-body { flex: 1 1 auto; padding: 1.25rem; }
.card-header { padding: 1rem 1.25rem; background-color: rgba(0,0,0,.03); border-bottom: 1px solid rgba(0,0,0,.08); }

.progress {
    display: flex;
    height: 0.8rem;
    overflow: hidden;
    font-size: .75rem;
    background-color: #e2e8f0;
    border-radius: 50rem;
}
.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    transition: width .6s ease;
}

/* Metallic Gold Button Component System */
.btn-gold-gradient, .btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #a8851c 100%) !important;
    color: #0a1926 !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.btn-gold-gradient:hover, .btn-gold:hover {
    background: linear-gradient(135deg, #ebd078 0%, #d4af37 100%) !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5) !important;
}
.btn-gold-gradient:disabled, .btn-gold:disabled {
    background: rgba(212, 175, 55, 0.2) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: not-allowed !important;
}
.btn-outline-gold {
    border: 1px solid #d4af37 !important;
    color: #d4af37 !important;
    background: transparent !important;
    transition: all 0.25s ease !important;
}
.btn-outline-gold:hover {
    background: #d4af37 !important;
    color: #0a1926 !important;
}

/* =========================================
   CERTIFICATES VIEW PREMIUM STYLES
   ========================================= */
.certificates-hero-card {
    background: linear-gradient(145deg, rgba(18, 62, 81, 0.75) 0%, rgba(10, 25, 38, 0.9) 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.step-indicator-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.step-indicator-bar::before {
    content: '';
    position: absolute;
    top: 35%;
    left: 3rem;
    right: 3rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0a1926;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background: linear-gradient(135deg, #d4af37, #a8851c);
    border-color: #d4af37;
    color: #0a1926;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.step-item.completed .step-number {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.step-label {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 600;
}

.step-item.active .step-label {
    color: #d4af37;
}

.academic-badge-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.academic-badge-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #d4af37, #ebd078);
}

.service-selectable-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-selectable-card:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.35);
    transform: translateX(-4px);
}

.service-selectable-card.selected {
    background: rgba(212, 175, 55, 0.14);
    border-color: #d4af37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.service-selectable-card .service-checkbox {
    width: 22px;
    height: 22px;
    accent-color: #d4af37;
    cursor: pointer;
}

.cost-summary-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(10, 25, 38, 0.6) 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* =========================================
   ACCESSIBILITY & HIGH CONTRAST MODES
   ========================================= */
body.high-contrast {
    background: #000000 !important;
    color: #ffffff !important;
}

body.high-contrast .glass-card,
body.high-contrast .choice-card,
body.high-contrast .hero-section,
body.high-contrast .certificates-hero-card,
body.high-contrast nav {
    background: #000000 !important;
    border: 2px solid #ffff00 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

body.high-contrast .text-gold,
body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast a,
body.high-contrast span {
    color: #ffff00 !important;
}

body.high-contrast .btn-gold-gradient,
body.high-contrast .btn-primary,
body.high-contrast .btn-secondary {
    background: #ffff00 !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
    font-weight: 800 !important;
}

/* Accessible Focus Ring */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid #d4af37 !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.8) !important;
}

/* Font Resizing Styles */
body.font-large { font-size: 1.12rem !important; }
body.font-large h1 { font-size: 2.5rem !important; }
body.font-large h2 { font-size: 2rem !important; }
body.font-large h3 { font-size: 1.6rem !important; }

body.font-xlarge { font-size: 1.25rem !important; }
body.font-xlarge h1 { font-size: 3rem !important; }
body.font-xlarge h2 { font-size: 2.4rem !important; }
body.font-xlarge h3 { font-size: 1.8rem !important; }

