/* ========================================
   BLAYKING TAX SOLUTIONS - CLIENT PORTAL CSS
   ======================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Brand Colors */
    --gold: #C9A227;
    --gold-light: #D4B84A;
    --gold-dark: #A88A1F;
    --teal: #1A7C7C;
    --teal-light: #2A9D9D;
    --teal-dark: #145F5F;
    --cream: #FDF8E8;
    --cream-dark: #F5EDD8;
    
    /* Neutrals */
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray-100: #F7F7F7;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    
    /* Status Colors */
    --success: #22C55E;
    --success-light: #DCFCE7;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --error: #EF4444;
    --error-light: #FEE2E2;
    --info: #3B82F6;
    --info-light: #DBEAFE;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Borders & Shadows */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Layout */
    --sidebar-width: 280px;
    --header-height: 70px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-100);
    min-height: 100vh;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--teal-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-800);
}

/* ===== HEADER ===== */
.portal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.logo img {
    height: 50px;
    width: auto;
}

.header-nav {
    display: flex;
    gap: var(--space-lg);
}

.header-nav a {
    color: var(--gray-700);
    font-weight: 500;
    padding: var(--space-sm) 0;
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition-base);
}

.header-nav a:hover::after {
    width: 100%;
}

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

.user-greeting {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.btn-logout:hover {
    background: var(--error-light);
    color: var(--error);
}

.mobile-menu-toggle {
    display: none;
    padding: var(--space-sm);
    font-size: 1.5rem;
    color: var(--gray-700);
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--white);
    color: var(--teal);
    font-weight: 600;
    border: 2px solid var(--teal);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    background: var(--teal);
    color: var(--white);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--error);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

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

.btn-full {
    width: 100%;
}

/* ===== AUTH SECTION ===== */
.auth-section {
    min-height: 100vh;
    padding: calc(var(--header-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 50%, var(--gold-dark) 100%);
}

.auth-container {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-2xl);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: var(--space-xs);
}

.auth-tab {
    flex: 1;
    padding: var(--space-md);
    font-weight: 600;
    color: var(--gray-500);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.auth-tab.active {
    background: var(--white);
    color: var(--teal);
    box-shadow: var(--shadow-sm);
}

.auth-tab:hover:not(.active) {
    color: var(--gray-700);
}

/* Auth Forms */
.auth-form h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
    text-align: center;
}

.auth-subtitle {
    color: var(--gray-500);
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* Form Progress */
.form-progress {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    position: relative;
}

.form-progress::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--gray-200);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    position: relative;
    z-index: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    color: var(--gray-500);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-base);
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background: var(--teal);
    color: var(--white);
}

.step-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

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

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn var(--transition-base);
}

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

/* Form Elements */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(26, 124, 124, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.form-row.three-col {
    grid-template-columns: 2fr 1fr 1fr;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.input-icon input {
    padding-left: 2.75rem;
}

.input-icon .toggle-password {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    padding: var(--space-xs);
}

.input-icon .toggle-password:hover {
    color: var(--gray-600);
}

.input-hint {
    display: block;
    margin-top: var(--space-xs);
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Password Strength */
.password-strength {
    margin-top: var(--space-sm);
}

.strength-bar {
    height: 4px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.strength-bar span {
    display: block;
    height: 100%;
    width: 0;
    transition: all var(--transition-base);
}

.strength-bar.weak span { width: 33%; background: var(--error); }
.strength-bar.medium span { width: 66%; background: var(--warning); }
.strength-bar.strong span { width: 100%; background: var(--success); }

.strength-text {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Checkboxes */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--teal);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--gold);
}

.forgot-link:hover {
    color: var(--gold-dark);
}

/* Form Buttons */
.form-buttons {
    display: flex;
    gap: var(--space-md);
}

.form-buttons .btn-secondary {
    flex: 0 0 auto;
}

.form-buttons .btn-primary {
    flex: 1;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-divider span {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.auth-switch {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--gold);
    font-weight: 600;
}

/* ===== DASHBOARD SECTION ===== */
.dashboard-section {
    padding-top: var(--header-height);
    min-height: 100vh;
}

.dashboard-container {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

/* ===== SIDEBAR ===== */
.dashboard-sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-user {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

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

.user-name {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: var(--space-md) 0;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-xl);
    color: var(--gray-600);
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold);
    transform: scaleY(0);
    transition: transform var(--transition-fast);
}

.nav-item:hover {
    background: var(--gray-50);
    color: var(--teal);
}

.nav-item.active {
    background: var(--cream);
    color: var(--teal);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.nav-badge {
    margin-left: auto;
    background: var(--error);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
}

.nav-badge:empty {
    display: none;
}

/* Sidebar Help */
.sidebar-help {
    padding: var(--space-xl);
    background: var(--cream);
    margin: var(--space-md);
    border-radius: var(--radius-lg);
}

.sidebar-help h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.sidebar-help p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: var(--space-md);
}

.help-phone {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--teal);
    font-weight: 600;
}

/* ===== DASHBOARD MAIN ===== */
.dashboard-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: var(--space-2xl);
    background: var(--gray-100);
}

/* Panel Styles */
.dashboard-panel {
    display: none;
}

.dashboard-panel.active {
    display: block;
    animation: fadeIn var(--transition-base);
}

.panel-header {
    margin-bottom: var(--space-2xl);
}

.panel-header h1 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.panel-subtitle {
    color: var(--gray-500);
    font-size: 1rem;
}

/* ===== OVERVIEW SECTION ===== */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.overview-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: var(--space-lg);
    transition: all var(--transition-base);
}

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

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.status-card .card-icon {
    background: var(--info-light);
    color: var(--info);
}

.docs-card .card-icon {
    background: var(--success-light);
    color: var(--success);
}

.msg-card .card-icon {
    background: var(--warning-light);
    color: var(--warning);
}

.referral-card .card-icon {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
}

.card-content h3 {
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: var(--space-sm);
}

.card-stat {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
}

.card-action {
    margin-top: var(--space-sm);
    font-size: 0.85rem;
}

.card-action a {
    color: var(--teal);
    font-weight: 500;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.pending {
    background: var(--warning-light);
    color: var(--warning);
}

.status-badge.review {
    background: var(--info-light);
    color: var(--info);
}

.status-badge.progress {
    background: #E0E7FF;
    color: #4F46E5;
}

.status-badge.signature {
    background: #FCE7F3;
    color: #DB2777;
}

.status-badge.filed {
    background: #D1FAE5;
    color: #059669;
}

.status-badge.completed {
    background: var(--success-light);
    color: var(--success);
}

/* Referral Code Display */
.referral-code-display {
    display: block;
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    background: var(--cream);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    letter-spacing: 1px;
}

/* Quick Actions */
.overview-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.quick-actions,
.upcoming-appointments {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.quick-actions h2,
.upcoming-appointments h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.action-btn i {
    font-size: 1.5rem;
    color: var(--teal);
}

.action-btn:hover {
    background: var(--cream);
    color: var(--teal);
}

.appointments-list {
    min-height: 150px;
}

.empty-state {
    color: var(--gray-500);
    text-align: center;
    padding: var(--space-xl);
}

/* ===== DOCUMENTS SECTION ===== */
.documents-required {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.documents-required h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.checklist-item.completed {
    background: var(--success-light);
}

.check-status {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    font-size: 0.5rem;
}

.checklist-item.completed .check-status {
    color: var(--success);
    font-size: 1rem;
}

.checklist-item.completed .check-status i::before {
    content: '\f058';
}

.check-info h4 {
    font-size: 0.95rem;
    font-family: var(--font-body);
    margin-bottom: var(--space-xs);
}

.check-info p {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Upload Section */
.upload-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.upload-section h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
}

.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl);
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--teal);
    background: rgba(26, 124, 124, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: var(--teal);
    margin-bottom: var(--space-md);
}

.upload-zone h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.upload-zone p {
    color: var(--gray-500);
    margin-bottom: var(--space-md);
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: var(--space-md);
}

/* Upload Queue */
.upload-queue {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.upload-queue h3 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.queue-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-md);
}

.queue-item .file-icon {
    color: var(--teal);
}

.queue-item .file-name {
    flex: 1;
    font-weight: 500;
}

.queue-item .file-size {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.queue-item .remove-file {
    color: var(--gray-400);
    padding: var(--space-xs);
}

.queue-item .remove-file:hover {
    color: var(--error);
}

.queue-actions {
    display: flex;
    gap: var(--space-md);
}

/* Documents Table */
.uploaded-documents {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.uploaded-documents h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
}

.documents-table-wrapper {
    overflow-x: auto;
}

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

.documents-table th,
.documents-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.documents-table th {
    background: var(--gray-50);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.documents-table tr:hover td {
    background: var(--gray-50);
}

.documents-table .empty-row td {
    text-align: center;
    color: var(--gray-500);
    padding: var(--space-2xl);
}

.doc-actions {
    display: flex;
    gap: var(--space-sm);
}

.doc-actions button {
    padding: var(--space-sm);
    color: var(--gray-500);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.doc-actions button:hover {
    background: var(--gray-100);
    color: var(--teal);
}

.doc-actions button.delete:hover {
    background: var(--error-light);
    color: var(--error);
}

/* ===== STATUS SECTION ===== */
.status-tracker {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.status-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.status-timeline::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 28px;
    right: 28px;
    height: 4px;
    background: var(--gray-200);
    z-index: 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 150px;
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    transition: all var(--transition-base);
}

.timeline-step.completed .step-icon {
    background: var(--success);
    color: var(--white);
}

.timeline-step.active .step-icon {
    background: var(--teal);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(26, 124, 124, 0.2);
}

.step-info h4 {
    font-size: 0.9rem;
    font-family: var(--font-body);
    margin-bottom: var(--space-xs);
    color: var(--gray-400);
}

.step-info p {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.timeline-step.completed .step-info h4,
.timeline-step.active .step-info h4 {
    color: var(--gray-800);
}

.timeline-step.completed .step-info p,
.timeline-step.active .step-info p {
    color: var(--gray-600);
}

/* Status Details */
.status-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.current-status-card,
.return-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.current-status-card h3,
.return-summary h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--gray-200);
}

.status-info .status-badge {
    margin-bottom: var(--space-md);
}

.status-date {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: var(--space-md);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.summary-item {
    text-align: center;
    padding: var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.summary-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: var(--space-xs);
}

.summary-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
}

.summary-item.refund .summary-value {
    color: var(--success);
}

/* Completed Returns */
.completed-returns {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.completed-returns h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
}

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

.return-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.return-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.return-info i {
    font-size: 1.5rem;
    color: var(--teal);
}

/* ===== MESSAGES SECTION ===== */
.messages-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 250px);
    min-height: 500px;
}

.messages-list {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.message-empty {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--gray-400);
}

.message-empty i {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.message {
    max-width: 70%;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
}

.message.received {
    background: var(--gray-100);
    align-self: flex-start;
    border-bottom-left-radius: var(--radius-sm);
}

.message.sent {
    background: var(--teal);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: var(--radius-sm);
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: var(--space-xs);
}

.message-compose {
    padding: var(--space-lg);
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

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

.compose-wrapper textarea {
    resize: none;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.compose-wrapper textarea:focus {
    outline: none;
    border-color: var(--teal);
}

.compose-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-attach {
    padding: var(--space-sm);
    color: var(--gray-500);
    font-size: 1.25rem;
}

.btn-attach:hover {
    color: var(--teal);
}

.btn-send {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--teal);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.btn-send:hover {
    background: var(--teal-dark);
}

/* ===== APPOINTMENTS SECTION ===== */
.appointment-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.info-card i {
    font-size: 2rem;
    color: var(--teal);
    margin-bottom: var(--space-md);
}

.info-card h4 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.info-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Booking Section */
.booking-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.booking-section h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

/* Calendar */
.calendar-wrapper {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--teal);
    color: var(--white);
}

.calendar-header h3 {
    color: var(--white);
    font-size: 1.1rem;
}

.cal-nav {
    padding: var(--space-sm);
    color: var(--white);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.cal-nav:hover {
    opacity: 1;
}

.calendar-grid {
    padding: var(--space-md);
}

.cal-day-header {
    display: inline-block;
    width: calc(100% / 7);
    text-align: center;
    padding: var(--space-sm);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.cal-days {
    display: flex;
    flex-wrap: wrap;
}

.cal-day {
    width: calc(100% / 7);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.cal-day:hover:not(.disabled):not(.empty) {
    background: var(--cream);
}

.cal-day.today {
    font-weight: 700;
    color: var(--teal);
}

.cal-day.selected {
    background: var(--teal);
    color: var(--white);
}

.cal-day.disabled {
    color: var(--gray-300);
    cursor: not-allowed;
}

.cal-day.empty {
    cursor: default;
}

/* Time Slots */
.time-slots-wrapper h3 {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    max-height: 300px;
    overflow-y: auto;
}

.time-slot {
    padding: var(--space-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.time-slot:hover {
    border-color: var(--teal);
    background: var(--cream);
}

.time-slot.selected {
    border-color: var(--teal);
    background: var(--teal);
    color: var(--white);
}

.time-slot.unavailable {
    background: var(--gray-100);
    color: var(--gray-400);
    cursor: not-allowed;
    border-color: var(--gray-200);
}

/* Booking Form */
.booking-form {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-200);
}

.booking-form h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
}

.booking-summary {
    background: var(--cream);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.booking-summary p {
    margin-bottom: var(--space-xs);
}

/* My Appointments */
.my-appointments {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.my-appointments h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
}

.appointment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.appointment-details {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.appointment-details i {
    font-size: 1.5rem;
    color: var(--teal);
}

.appointment-date {
    font-weight: 600;
}

.appointment-time {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.btn-cancel-appointment {
    color: var(--error);
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-cancel-appointment:hover {
    text-decoration: underline;
}

/* ===== PAYMENTS SECTION ===== */
.payment-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.summary-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.summary-card h3 {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: var(--space-md);
    font-family: var(--font-body);
}

.summary-card .amount {
    font-size: 2.5rem;
    font-weight: 700;
}

.summary-card.balance .amount {
    color: var(--error);
}

.summary-card.paid .amount {
    color: var(--success);
}

.due-date {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: var(--space-sm);
}

/* Payment Methods */
.payment-methods {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.payment-methods h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.payment-option {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-fast);
}

.payment-option:hover {
    border-color: var(--teal);
}

.option-header {
    margin-bottom: var(--space-md);
}

.option-header i {
    font-size: 2.5rem;
    color: var(--teal);
    margin-bottom: var(--space-sm);
    display: block;
}

.option-header h4 {
    font-size: 1.1rem;
}

.payment-option p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
}

/* Payment History */
.payment-history {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.payment-history h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
}

.history-table-wrapper {
    overflow-x: auto;
}

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

.history-table th,
.history-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.history-table th {
    background: var(--gray-50);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-600);
    text-transform: uppercase;
}

.history-table .empty-row td {
    text-align: center;
    color: var(--gray-500);
    padding: var(--space-2xl);
}

/* ===== REFERRALS SECTION ===== */
.referral-hero {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    color: var(--white);
    margin-bottom: var(--space-2xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2xl);
}

.hero-content h2 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
}

.hero-content p {
    opacity: 0.9;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
}

.stat {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    min-width: 120px;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Referral Code Section */
.referral-code-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.referral-code-section h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
}

.code-display {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--cream);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.code-display .code {
    font-family: monospace;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--teal);
    color: var(--white);
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.btn-copy:hover {
    background: var(--teal-dark);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.share-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.share-btn.email {
    background: var(--gray-700);
    color: var(--white);
}

.share-btn.sms {
    background: var(--success);
    color: var(--white);
}

.share-btn.facebook {
    background: #1877F2;
    color: var(--white);
}

.share-btn.twitter {
    background: #1DA1F2;
    color: var(--white);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Referral Tracking */
.referral-tracking {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.referral-tracking h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
}

.referrals-table-wrapper {
    overflow-x: auto;
}

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

.referrals-table th,
.referrals-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.referrals-table th {
    background: var(--gray-50);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-600);
    text-transform: uppercase;
}

.referrals-table .empty-row td {
    text-align: center;
    color: var(--gray-500);
    padding: var(--space-2xl);
}

/* Referral FAQ */
.referral-faq {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.referral-faq h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.faq-item {
    text-align: center;
}

.faq-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    background: var(--gold);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.faq-item h4 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.faq-item p {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* ===== VACATION SECTION ===== */
.vacation-eligibility {
    margin-bottom: var(--space-2xl);
}

.eligibility-card {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    color: var(--white);
}

.eligibility-card i {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.eligibility-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.vacation-destinations h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.destination-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.destination-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.destination-image {
    height: 200px;
    overflow: hidden;
}

.destination-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.destination-card:hover .destination-image img {
    transform: scale(1.05);
}

.destination-info {
    padding: var(--space-xl);
}

.destination-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.destination-info > p {
    color: var(--gray-600);
    margin-bottom: var(--space-md);
}

.destination-info ul {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.destination-info li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.destination-info li i {
    color: var(--success);
}

.btn-select-destination {
    width: 100%;
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn-select-destination:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.vacation-selected .selected-card {
    background: var(--success-light);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
}

.vacation-selected i {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: var(--space-md);
}

.vacation-selected h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

/* ===== SETTINGS SECTION ===== */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.settings-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.settings-section h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--gray-200);
}

.settings-form {
    max-width: 600px;
}

/* Toggle Switches */
.toggle-group {
    margin-bottom: var(--space-md);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
}

.toggle-label input {
    display: none;
}

.toggle-switch {
    width: 48px;
    height: 24px;
    background: var(--gray-300);
    border-radius: var(--radius-full);
    position: relative;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: var(--radius-full);
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all var(--transition-fast);
}

.toggle-label input:checked + .toggle-switch {
    background: var(--teal);
}

.toggle-label input:checked + .toggle-switch::after {
    left: 26px;
}

.toggle-text {
    color: var(--gray-700);
}

/* Danger Zone */
.danger-zone {
    border: 2px solid var(--error);
}

.danger-zone h2 {
    color: var(--error);
}

.danger-zone p {
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideIn var(--transition-base);
    min-width: 300px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--error);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast.info {
    border-left: 4px solid var(--info);
}

.toast-icon {
    font-size: 1.25rem;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--error); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info .toast-icon { color: var(--info); }

.toast-message {
    flex: 1;
}

.toast-close {
    color: var(--gray-400);
    padding: var(--space-xs);
}

.toast-close:hover {
    color: var(--gray-600);
}

/* ===== MODALS ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    animation: fadeIn var(--transition-fast);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn var(--transition-base);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-large {
    max-width: 800px;
}

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

.modal-header h3 {
    font-size: 1.25rem;
}

.modal-close {
    font-size: 1.5rem;
    color: var(--gray-400);
    line-height: 1;
}

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

.modal-body {
    padding: var(--space-lg);
}

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

/* Stripe Card Element */
#cardElement {
    padding: var(--space-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
}

.payment-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--teal);
    text-align: center;
    padding: var(--space-md);
}

/* ===== FOOTER ===== */
.portal-footer {
    background: var(--gray-800);
    color: var(--gray-400);
    padding: var(--space-2xl) var(--space-lg);
    margin-left: var(--sidebar-width);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-xl);
}

.footer-brand img {
    height: 40px;
    margin-bottom: var(--space-md);
    filter: brightness(0) invert(1);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .overview-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    :root {
        --sidebar-width: 0;
    }
    
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        width: 280px;
    }
    
    .dashboard-sidebar.open {
        transform: translateX(0);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-nav {
        display: none;
    }
    
    .dashboard-main {
        margin-left: 0;
    }
    
    .portal-footer {
        margin-left: 0;
    }
    
    .status-timeline {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-xl);
    }
    
    .status-timeline::before {
        display: none;
    }
    
    .status-details {
        grid-template-columns: 1fr;
    }
    
    .booking-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .referral-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .destinations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .overview-cards {
        grid-template-columns: 1fr;
    }
    
    .overview-sections {
        grid-template-columns: 1fr;
    }
    
    .checklist-grid {
        grid-template-columns: 1fr;
    }
    
    .appointment-info {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-row.three-col {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .auth-container {
        padding: var(--space-lg);
    }
    
    .dashboard-main {
        padding: var(--space-md);
    }
    
    .form-progress {
        gap: var(--space-sm);
    }
    
    .step-label {
        display: none;
    }
    
    .timeline-step {
        max-width: 80px;
    }
    
    .step-info h4 {
        font-size: 0.75rem;
    }
    
    .step-info p {
        display: none;
    }
    
    .messages-container {
        height: calc(100vh - 200px);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .portal-header,
    .dashboard-sidebar,
    .portal-footer,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }
    
    .dashboard-main {
        margin-left: 0 !important;
    }
}
