/* ===========================================
   Dr. Sara Essam — Luxury Nutrition Platform
   =========================================== */

:root {
    --primary: #1a6b4a;
    --primary-light: #2d8a63;
    --primary-dark: #0d3b28;
    --secondary: #c9a84c;
    --secondary-light: #e0c772;
    --accent: #f1e8d0;
    --bg: #f7f6f2;
    --card-bg: #ffffff;
    --text: #1a1a2e;
    --text-muted: #7c8187;
    --border: #e8e5de;
    --success: #1a6b4a;
    --warning: #d4a843;
    --danger: #c53030;
    --gold: #c9a84c;
    --gold-light: #f5ecd5;
    --emerald: #1a6b4a;
    --glass: rgba(255,255,255,0.65);
    --glass-border: rgba(255,255,255,0.3);
    --shadow-sm: 0 2px 8px rgba(26,26,46,0.04);
    --shadow-md: 0 4px 24px rgba(26,26,46,0.07);
    --shadow-lg: 0 12px 48px rgba(26,26,46,0.10);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Cairo', sans-serif;
    background-color: var(--bg);
    background-image: radial-gradient(circle at 20% 0%, rgba(201,168,76,0.04) 0%, transparent 50%),
                      radial-gradient(circle at 80% 100%, rgba(26,107,74,0.04) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body {
    font-family: 'Cairo', 'Inter', sans-serif;
}

/* ========================================= */
/* Luxury Navbar                             */
/* ========================================= */
.navbar.bg-primary {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%) !important;
    box-shadow: 0 4px 30px rgba(13,59,40,0.18);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201,168,76,0.15);
    padding: 0.6rem 0;
}

.brand-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-1px);
}

.navbar-nav .nav-link .badge {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
}

/* ========================================= */
/* Login Page — Luxury                       */
/* ========================================= */
.login-page main {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d3b28 0%, #1a6b4a 40%, #2d8a63 70%, #c9a84c 100%);
    position: relative;
    overflow: hidden;
}

.login-page main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(201,168,76,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.register-card {
    max-width: 600px !important;
}

.login-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 24px 64px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.2);
    border: 1px solid rgba(201,168,76,0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.login-card .form-control {
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    transition: var(--transition);
}

.login-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,107,74,0.1);
}

.login-card .btn-primary {
    padding: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ========================================= */
/* Stat Cards — Elevated                     */
/* ========================================= */
.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    transform: scale(1.08);
}

.bg-primary-soft { background: rgba(26,107,74,0.1); color: var(--primary); }
.bg-success-soft { background: rgba(45,138,99,0.1); color: #1a6b4a; }
.bg-info-soft { background: rgba(54,162,235,0.1); color: #1a73e8; }
.bg-warning-soft { background: rgba(201,168,76,0.12); color: #9e7e2e; }
.bg-danger-soft { background: rgba(197,48,48,0.1); color: var(--danger); }
.bg-gold-soft { background: var(--gold-light); color: var(--gold); }

.stat-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ========================================= */
/* Cards — Premium                           */
/* ========================================= */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
}

.card-header h5 {
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ========================================= */
/* Welcome Banner — Luxury Gradient          */
/* ========================================= */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: 0 8px 32px rgba(13,59,40,0.2);
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.welcome-banner h2 {
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.welcome-banner p {
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.welcome-banner .btn {
    background: white;
    color: var(--primary);
    border: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.welcome-banner .btn:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ========================================= */
/* Progress Badges                           */
/* ========================================= */
.progress-badge {
    display: inline-block;
    padding: 0.35em 0.85em;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-excellent { background: #d4edda; color: #155724; }
.badge-good { background: #d1ecf1; color: #0c5460; }
.badge-on-track { background: #fff3cd; color: #856404; }
.badge-slow { background: #ffeeba; color: #856404; }
.badge-no-change { background: #e2e3e5; color: #383d41; }
.badge-gained { background: #f8d7da; color: #721c24; }

/* ========================================= */
/* Chat Container — Refined                  */
/* ========================================= */
.chat-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 2px 8px rgba(26,107,74,0.2);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(180deg, #f7f6f2 0%, #f4f3ef 100%);
}

.chat-bubble {
    max-width: 75%;
    padding: 0.85rem 1.15rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.55;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease;
}

.chat-bubble.user {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(26,107,74,0.15);
}

.chat-bubble.assistant {
    background: white;
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

[dir="rtl"] .chat-bubble.user {
    align-self: flex-start;
    border-bottom-right-radius: 18px;
    border-bottom-left-radius: 4px;
}

[dir="rtl"] .chat-bubble.assistant {
    align-self: flex-end;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: white;
}

.chat-input-area .form-control {
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    border: 1.5px solid var(--border);
    transition: var(--transition);
}

.chat-input-area .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,107,74,0.08);
}

.chat-input-area .btn {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-typing {
    padding-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.typing-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: typingBounce 1.4s infinite ease-in-out;
    margin-right: 2px;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-6px); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================= */
/* Timeline                                  */
/* ========================================= */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    opacity: 0.3;
}

[dir="rtl"] .timeline {
    padding-left: 0;
    padding-right: 40px;
}

[dir="rtl"] .timeline::before {
    left: auto;
    right: 15px;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-badge {
    position: absolute;
    left: -40px;
    top: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(26,107,74,0.1);
}

[dir="rtl"] .timeline-badge {
    left: auto;
    right: -40px;
}

.timeline-content {
    margin-left: 0;
}

/* Chat preview for admin */
.chat-preview {
    max-height: 400px;
    overflow-y: auto;
}

.chat-preview-msg {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.chat-preview-msg:last-child {
    border-bottom: none;
}

.chat-preview-msg.assistant {
    background: rgba(26,107,74,0.04);
    padding: 0.5rem;
    border-radius: 8px;
    margin: 0.25rem 0;
}

/* ========================================= */
/* Buttons — Premium                         */
/* ========================================= */
.btn {
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    box-shadow: 0 2px 8px rgba(26,107,74,0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 4px 16px rgba(26,107,74,0.3);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(26,107,74,0.2);
    transform: translateY(-1px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: #1a1a2e;
    border: none;
    font-weight: 600;
}

.btn-gold:hover {
    box-shadow: 0 4px 16px rgba(201,168,76,0.3);
    transform: translateY(-1px);
    color: #1a1a2e;
}

/* ========================================= */
/* Form Controls — Refined                   */
/* ========================================= */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    padding: 0.6rem 0.9rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,107,74,0.08);
}

.form-label {
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text);
}

/* ========================================= */
/* Tables — Clean                            */
/* ========================================= */
.table {
    margin-bottom: 0;
}

.table thead th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    padding: 0.75rem 1rem;
}

.table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(26,107,74,0.02);
}

.cursor-pointer {
    cursor: pointer;
}

/* ========================================= */
/* Alerts — Refined                          */
/* ========================================= */
.alert {
    border-radius: var(--radius-sm);
    border: none;
    font-size: 0.92rem;
}

/* ========================================= */
/* Badges — Premium                          */
/* ========================================= */
.badge {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ========================================= */
/* Responsive                                */
/* ========================================= */
@media (max-width: 768px) {
    .chat-container {
        height: calc(100vh - 80px);
        border-radius: 0;
    }

    .chat-bubble {
        max-width: 88%;
    }

    .login-card {
        padding: 1.5rem;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .welcome-banner {
        padding: 1.5rem;
        border-radius: var(--radius-md);
    }

    .stat-card {
        padding: 1rem;
    }
}

/* ========================================= */
/* Scrollbar — Elegant                       */
/* ========================================= */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========================================= */
/* Direct Messaging                          */
/* ========================================= */
.msg-thread-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.msg-thread-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: white;
}

.msg-thread-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: linear-gradient(180deg, #f7f6f2 0%, #f4f3ef 100%);
}

.msg-bubble {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

.msg-bubble.sent {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(26,107,74,0.15);
}

.msg-bubble.received {
    background: white;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.msg-time {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

.msg-bubble.received .msg-time {
    color: var(--text-muted);
}

.msg-subject {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 4px;
    opacity: 0.85;
}

.msg-input-area {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: white;
}

/* ========================================= */
/* Video Cards — Elevated                    */
/* ========================================= */
.video-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.video-card .ratio {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

/* ========================================= */
/* Plan Cards & Meal Display                 */
/* ========================================= */
.meal-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    transition: var(--transition);
}

.meal-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.training-card {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.training-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.today-tab {
    border: 2px solid var(--primary) !important;
    background: rgba(26,107,74,0.04) !important;
    box-shadow: 0 0 0 3px rgba(26,107,74,0.08) !important;
}

/* ========================================= */
/* FAQ Accordion                             */
/* ========================================= */
.accordion-button:not(.collapsed) {
    background: rgba(26,107,74,0.06);
    color: var(--primary-dark);
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(26,107,74,0.1);
}

.accordion-item {
    border-radius: var(--radius-sm) !important;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

/* ========================================= */
/* Assessment Wizard                         */
/* ========================================= */
.assessment-container .nav-link {
    font-weight: 500;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    margin: 0 2px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.assessment-container .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(26,107,74,0.2);
}

/* ========================================= */
/* Conversation List                         */
/* ========================================= */
.conversation-item {
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.conversation-item:hover {
    background: rgba(26,107,74,0.03);
}

.conversation-item.unread {
    background: rgba(26,107,74,0.05);
    font-weight: 500;
    border-left: 3px solid var(--primary);
}

[dir="rtl"] .conversation-item.unread {
    border-left: none;
    border-right: 3px solid var(--primary);
}

/* ========================================= */
/* Dropdown Menu Styling                     */
/* ========================================= */
.dropdown-menu {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.98);
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: var(--transition);
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(26,107,74,0.06);
}

.dropdown-item i {
    margin-right: 0.5rem;
    opacity: 0.7;
}

[dir="rtl"] .dropdown-item i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* ========================================= */
/* Package Cards — Premium                   */
/* ========================================= */
.package-card {
    transition: var(--transition);
    border: 1px solid var(--border);
}

.package-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.featured-package {
    border: 2px solid var(--primary) !important;
    box-shadow: 0 8px 32px rgba(26,107,74,0.12);
}

.featured-package:hover {
    box-shadow: 0 12px 48px rgba(26,107,74,0.18);
}

/* ========================================= */
/* Modal — Refined                           */
/* ========================================= */
.modal-content {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
    font-weight: 600;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

/* ========================================= */
/* Nav Tabs & Pills                          */
/* ========================================= */
.nav-tabs {
    border-bottom: 2px solid var(--border);
}

.nav-tabs .nav-link {
    font-weight: 500;
    color: var(--text-muted);
    border: none;
    padding: 0.75rem 1.25rem;
    position: relative;
    transition: var(--transition);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background: transparent;
    border: none;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.nav-pills .nav-link {
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 2px 8px rgba(26,107,74,0.2);
}

/* ========================================= */
/* List Group — Refined                      */
/* ========================================= */
.list-group-item-action:hover {
    background: rgba(26,107,74,0.03);
}

/* ========================================= */
/* Utility Classes                           */
/* ========================================= */
.text-gold { color: var(--secondary) !important; }
.bg-gold { background: var(--secondary) !important; }
.border-gold { border-color: var(--secondary) !important; }

.luxe-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), var(--secondary), var(--border), transparent);
    margin: 1.5rem 0;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.section-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

[dir="rtl"] .section-title::after {
    left: auto;
    right: 0;
}
