/* ============================================================
   EternalCare – Master Stylesheet  (Premium Modern Design v2)
   Rich Gradients · Glassmorphism · Vibrant Accents · Micro-animations
   ============================================================ */

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

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
    /* Core palette – deep navy / charcoal */
    --color-primary: #0a0e1a;
    --color-primary-light: #151b2e;
    --color-primary-mid: #111827;
    --color-primary-dark: #050810;

    /* Accent – warm gold */
    --color-gold: #d4a853;
    --color-gold-light: #e8c97a;
    --color-gold-dark: #b8903e;
    --color-gold-muted: rgba(212, 168, 83, 0.10);

    /* Vibrant gradients */
    --gradient-gold: linear-gradient(135deg, #d4a853 0%, #f0d078 50%, #b8903e 100%);
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #2563eb 100%);
    --gradient-green: linear-gradient(135deg, #10b981 0%, #34d399 50%, #059669 100%);
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 50%, #7c3aed 100%);
    --gradient-rose: linear-gradient(135deg, #f43f5e 0%, #fb7185 50%, #e11d48 100%);
    --gradient-orange: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
    --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #22d3ee 50%, #0891b2 100%);
    --gradient-indigo: linear-gradient(135deg, #6366f1 0%, #818cf8 50%, #4f46e5 100%);
    --gradient-dark: linear-gradient(135deg, #0a0e1a 0%, #151b2e 50%, #1e293b 100%);
    --gradient-sidebar: linear-gradient(180deg, #0a0e1a 0%, #0d1225 40%, #080b16 100%);
    --gradient-mesh: radial-gradient(at 20% 80%, rgba(139,92,246,0.06) 0%, transparent 50%),
                     radial-gradient(at 80% 20%, rgba(212,168,83,0.05) 0%, transparent 50%),
                     radial-gradient(at 50% 50%, rgba(59,130,246,0.03) 0%, transparent 50%);

    /* Surfaces */
    --color-surface: #ffffff;
    --color-surface-alt: #f6f8fb;
    --color-surface-hover: #f8fafc;
    --color-border: #e2e8f0;
    --color-border-light: #eef2f7;

    /* Text */
    --color-text: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;

    /* Semantic colors */
    --color-success: #10b981;
    --color-success-bg: rgba(16, 185, 129, 0.10);
    --color-danger: #ef4444;
    --color-danger-bg: rgba(239, 68, 68, 0.10);
    --color-warning: #f59e0b;
    --color-warning-bg: rgba(245, 158, 11, 0.10);
    --color-info: #3b82f6;
    --color-info-bg: rgba(59, 130, 246, 0.10);

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Elevation */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px -1px rgba(0,0,0,0.08), 0 2px 6px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 30px -3px rgba(0,0,0,0.1), 0 4px 8px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 24px 50px -5px rgba(0,0,0,0.14);
    --shadow-gold: 0 8px 30px rgba(212,168,83,0.25);
    --shadow-blue: 0 8px 30px rgba(59,130,246,0.25);
    --shadow-green: 0 8px 30px rgba(16,185,129,0.25);
    --shadow-purple: 0 8px 30px rgba(139,92,246,0.25);
    --shadow-rose: 0 8px 30px rgba(244,63,94,0.25);
    --shadow-glow-gold: 0 0 40px rgba(212,168,83,0.15);

    /* Radius */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    /* Layout */
    --sidebar-width: 270px;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Base / Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--color-surface-alt);
    background-image: var(--gradient-mesh);
    background-attachment: fixed;
    color: var(--color-text);
    line-height: 1.65;
    font-size: 14.5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.85rem; font-weight: 700; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

a { color: var(--color-gold-dark); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--color-gold); }
img { max-width: 100%; height: auto; }
::selection { background: var(--color-gold); color: #fff; }

/* ============================================================
   Scrollbar – Sleek thin
   ============================================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #cbd5e1, #94a3b8); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #94a3b8, #64748b); }

/* ============================================================
   App Layout
   ============================================================ */
.app-wrapper { display: flex; min-height: 100vh; }

/* ============================================================
   SIDEBAR – Glassmorphism dark with gold accent line
   ============================================================ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--gradient-sidebar);
    color: #fff;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid rgba(212,168,83,0.08);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--gradient-gold);
    opacity: 0.4;
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 20% 0%, rgba(212,168,83,0.05) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 100%, rgba(139,92,246,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.sidebar-brand {
    padding: 28px 24px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 1;
}

.sidebar-brand h2 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-brand h2::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gradient-gold);
    box-shadow: 0 0 20px rgba(212,168,83,0.7), 0 0 6px rgba(212,168,83,0.5);
    flex-shrink: 0;
    animation: pulse-dot 3s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 20px rgba(212,168,83,0.7), 0 0 6px rgba(212,168,83,0.5); }
    50% { box-shadow: 0 0 30px rgba(212,168,83,0.9), 0 0 10px rgba(212,168,83,0.7); }
}

.sidebar-brand small {
    display: block;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 3.5px;
    margin-top: 6px;
    padding-left: 22px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    position: relative;
    z-index: 1;
}

.sidebar-nav .nav-section {
    padding: 22px 24px 8px;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    color: rgba(255,255,255,0.2);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 24px;
    color: rgba(255,255,255,0.45);
    font-size: 0.84rem;
    font-weight: 450;
    border-left: 3px solid transparent;
    transition: var(--transition-fast);
    position: relative;
    margin: 1px 0;
}

.sidebar-nav a:hover {
    color: rgba(255,255,255,0.9);
    background: linear-gradient(90deg, rgba(212,168,83,0.1), rgba(212,168,83,0.02), transparent);
    border-left-color: rgba(212,168,83,0.3);
}

.sidebar-nav a.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(212,168,83,0.15), rgba(212,168,83,0.04), transparent);
    border-left-color: var(--color-gold);
    font-weight: 550;
}

.sidebar-nav a.active::after {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 60%;
    background: var(--gradient-gold);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 12px rgba(212,168,83,0.5);
}

.sidebar-nav a .icon {
    width: 22px;
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.5;
    transition: var(--transition-fast);
}

.sidebar-nav a:hover .icon,
.sidebar-nav a.active .icon {
    opacity: 1;
    color: var(--color-gold);
    filter: drop-shadow(0 0 4px rgba(212,168,83,0.4));
}

.sidebar-user {
    padding: 18px 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.25));
}

.sidebar-user .avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(212,168,83,0.35);
}

.sidebar-user .user-info { flex: 1; min-width: 0; }
.sidebar-user .user-info .name { font-size: 0.82rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .user-info .role { font-size: 0.62rem; color: var(--color-gold); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }

/* ============================================================
   Main Content
   ============================================================ */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top bar – frosted glass with gold accent */
.top-bar {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(226,232,240,0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,168,83,0.15), transparent);
}

.top-bar .breadcrumb-section h4 {
    margin: 0;
    font-family: var(--font-heading);
    color: var(--color-text);
    font-size: 1.15rem;
    font-weight: 600;
}

.top-bar .breadcrumb-section .breadcrumb-text { font-size: 0.76rem; color: var(--color-text-muted); margin-top: 1px; }
.top-bar-actions { display: flex; align-items: center; gap: 12px; }

.content-area { padding: 28px 32px; flex: 1; }

/* ============================================================
   CARDS – Elevated glassmorphism cards with glow
   ============================================================ */
.card {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226,232,240,0.6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(212,168,83,0.15);
}

.card-header {
    background: linear-gradient(135deg, rgba(246,248,251,0.95), rgba(241,245,249,0.95));
    border-bottom: 1px solid var(--color-border-light);
    padding: 16px 24px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
}

.card-body { padding: 24px; }

/* ============================================================
   STAT CARDS – Vibrant gradient with glass overlay + sparkle
   ============================================================ */
.stat-card {
    border-radius: var(--radius-xl);
    padding: 28px 26px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: none;
    color: #fff;
    background: var(--gradient-gold);
    box-shadow: var(--shadow-gold);
    cursor: default;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: var(--transition-slow);
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: -25px; left: -25px;
    width: 90px; height: 90px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    filter: brightness(1.05);
}

.stat-card:hover::before {
    transform: scale(1.4) translate(10px, -10px);
}

/* Gradient variants */
.stat-card.stat-blue { background: var(--gradient-blue); box-shadow: var(--shadow-blue); }
.stat-card.stat-green { background: var(--gradient-green); box-shadow: var(--shadow-green); }
.stat-card.stat-purple { background: var(--gradient-purple); box-shadow: var(--shadow-purple); }
.stat-card.stat-rose { background: var(--gradient-rose); box-shadow: var(--shadow-rose); }
.stat-card.stat-orange { background: var(--gradient-orange); box-shadow: 0 8px 30px rgba(245,158,11,0.25); }
.stat-card.stat-cyan { background: var(--gradient-cyan); box-shadow: 0 8px 30px rgba(6,182,212,0.25); }
.stat-card.stat-dark { background: var(--gradient-dark); box-shadow: 0 8px 30px rgba(15,23,42,0.3); }
.stat-card.stat-indigo { background: var(--gradient-indigo); box-shadow: 0 8px 30px rgba(99,102,241,0.25); }

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(-3deg);
    background: rgba(255,255,255,0.25);
}

.stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.stat-card .stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.stat-card .stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 10px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
}

/* ============================================================
   Page header banners – Rich dark gradient with orbs
   ============================================================ */
.page-banner {
    border-radius: var(--radius-xl);
    padding: 32px 34px;
    position: relative;
    overflow: hidden;
    background: var(--gradient-dark);
    border: 1px solid rgba(212,168,83,0.08);
    color: #fff;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -70px; right: -70px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,168,83,0.12) 0%, transparent 70%);
    animation: banner-float 8s ease-in-out infinite alternate;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: -50px; right: 160px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
    animation: banner-float 10s ease-in-out infinite alternate-reverse;
}

@keyframes banner-float {
    0% { transform: scale(1); }
    100% { transform: scale(1.2) translate(15px, -10px); }
}

/* ============================================================
   Tables – Sleek & modern
   ============================================================ */
.table { font-size: 0.86rem; margin: 0; }

.table thead th {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 13px 16px;
    border: none;
    border-bottom: 2px solid var(--color-border-light);
    white-space: nowrap;
}

.table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-color: var(--color-border-light);
    color: var(--color-text);
}

.table-striped tbody tr:nth-of-type(odd) { background-color: rgba(248,250,252,0.5); }
.table tbody tr { transition: var(--transition-fast); }
.table tbody tr:hover { background-color: rgba(212,168,83,0.05) !important; }

/* ============================================================
   BUTTONS – Rich gradient + glow + ripple
   ============================================================ */
.btn {
    font-family: var(--font-body);
    font-weight: 560;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn-gold {
    background: var(--gradient-gold);
    color: #fff;
    box-shadow: 0 3px 12px rgba(212,168,83,0.3);
}

.btn-gold:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    filter: brightness(1.08);
}

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

/* Shimmer effect on gold button */
.btn-gold::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn-gold:hover::before { left: 120%; }

.btn-primary-dark {
    background: var(--gradient-dark);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-primary-dark:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline-gold {
    border: 1.5px solid var(--color-gold);
    color: var(--color-gold-dark);
    background: transparent;
    padding: 9px 19px;
}
.btn-outline-gold:hover {
    background: var(--gradient-gold);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

.btn-outline-danger {
    border: 1.5px solid var(--color-danger);
    color: var(--color-danger);
    background: transparent;
}
.btn-outline-danger:hover {
    background: var(--gradient-rose);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-rose);
}

.btn-sm { padding: 7px 15px; font-size: 0.78rem; border-radius: var(--radius-xs); }
.btn-lg { padding: 14px 32px; font-size: 0.95rem; border-radius: var(--radius-md); }
.btn-danger { background: var(--gradient-rose); color: #fff; border: none; box-shadow: 0 3px 12px rgba(244,63,94,0.3); }
.btn-danger:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-rose); }

/* ============================================================
   FORMS – Polished with subtle gradient borders on focus
   ============================================================ */
.form-label {
    font-weight: 560;
    font-size: 0.82rem;
    color: var(--color-text);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.form-control, .form-select {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 11px 15px;
    font-size: 0.875rem;
    transition: var(--transition-fast);
    background: var(--color-surface);
    color: var(--color-text);
}

.form-control:focus, .form-select:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212,168,83,0.12), 0 0 20px rgba(212,168,83,0.06);
    outline: none;
}

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

.input-group-text {
    border: 1.5px solid var(--color-border);
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: var(--color-gold-dark);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    padding: 11px 14px;
}

.input-group .form-control { border-left: none; }
.input-group:focus-within .input-group-text {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: linear-gradient(135deg, rgba(212,168,83,0.08), rgba(212,168,83,0.03));
}

/* ============================================================
   BADGES – Pill-style with gradient tints
   ============================================================ */
.badge {
    font-weight: 600;
    padding: 5px 12px;
    font-size: 0.7rem;
    letter-spacing: 0.3px;
    border-radius: var(--radius-full);
}

.badge.bg-success { background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(52,211,153,0.12)) !important; color: #059669 !important; border: 1px solid rgba(16,185,129,0.2); }
.badge.bg-danger { background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(251,113,133,0.1)) !important; color: #dc2626 !important; border: 1px solid rgba(239,68,68,0.2); }
.badge.bg-warning { background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(251,191,36,0.1)) !important; color: #d97706 !important; border: 1px solid rgba(245,158,11,0.2); }
.badge.bg-info { background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(96,165,250,0.1)) !important; color: #2563eb !important; border: 1px solid rgba(59,130,246,0.2); }
.badge.bg-primary { background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(167,139,250,0.1)) !important; color: #7c3aed !important; border: 1px solid rgba(139,92,246,0.2); }
.badge.bg-secondary { background: linear-gradient(135deg, rgba(100,116,139,0.12), rgba(148,163,184,0.1)) !important; color: #475569 !important; border: 1px solid rgba(100,116,139,0.15); }
.badge.bg-dark { background: linear-gradient(135deg, rgba(15,23,42,0.1), rgba(30,41,59,0.08)) !important; color: var(--color-text) !important; border: 1px solid rgba(15,23,42,0.12); }
.badge.bg-gold { background: var(--gradient-gold) !important; color: #fff !important; border: none; box-shadow: 0 2px 8px rgba(212,168,83,0.3); }

/* ============================================================
   ALERTS – Rich left border + tinted background
   ============================================================ */
.alert {
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 450;
}

.alert-success { background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(52,211,153,0.04)); color: #065f46; border-left: 4px solid var(--color-success); }
.alert-danger  { background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(251,113,133,0.04)); color: #991b1b; border-left: 4px solid var(--color-danger); }
.alert-warning { background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(251,191,36,0.04)); color: #92400e; border-left: 4px solid var(--color-warning); }
.alert-info    { background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(96,165,250,0.04)); color: #1e40af; border-left: 4px solid var(--color-info); }

/* ============================================================
   LANDING PAGE – Hero
   ============================================================ */
.hero-section {
    background: var(--color-primary);
    color: #fff;
    padding: 100px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 900px; height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,168,83,0.1) 0%, rgba(139,92,246,0.04) 50%, transparent 70%);
    animation: hero-glow 10s ease-in-out infinite alternate;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -40%; left: -10%;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
    animation: hero-glow 12s ease-in-out infinite alternate-reverse;
}

@keyframes hero-glow {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(30px, -20px); }
}

.hero-content { position: relative; z-index: 1; }

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-section .gold-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.55);
    max-width: 550px;
    line-height: 1.7;
    font-weight: 300;
}

/* ============================================================
   Package Cards
   ============================================================ */
.package-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--color-border-light);
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.package-card:hover::before,
.package-card.featured::before { transform: scaleX(1); }

.package-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: transparent; }
.package-card.featured { border-color: rgba(212,168,83,0.3); box-shadow: var(--shadow-lg); }

.package-card .pkg-type {
    display: inline-block;
    background: var(--color-gold-muted);
    color: var(--color-gold-dark);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.package-card h3 { font-family: var(--font-heading); color: var(--color-text); margin-bottom: 8px; font-weight: 700; }

.package-card .price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0 4px;
    letter-spacing: -0.02em;
}

.package-card .price small { font-size: 0.85rem; color: var(--color-text-muted); font-weight: 400; -webkit-text-fill-color: var(--color-text-muted); }

.package-card .monthly { font-size: 0.85rem; color: var(--color-gold-dark); margin-bottom: 20px; font-weight: 600; }

.package-card .features { text-align: left; margin: 24px 0; }
.package-card .features li {
    padding: 7px 0;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.package-card .features li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--color-success-bg);
    color: var(--color-success);
    font-size: 0.65rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* ============================================================
   AUTH PAGES – Vibrant split design with animated orbs
   ============================================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Animated gradient orbs */
.auth-page::before {
    content: '';
    position: absolute;
    top: -20%; right: -15%;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,168,83,0.12) 0%, rgba(212,168,83,0.04) 40%, transparent 70%);
    animation: auth-orb 12s ease-in-out infinite alternate;
}

.auth-page::after {
    content: '';
    position: absolute;
    bottom: -25%; left: -10%;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, rgba(59,130,246,0.04) 40%, transparent 70%);
    animation: auth-orb 15s ease-in-out infinite alternate-reverse;
}

@keyframes auth-orb {
    0% { transform: scale(1) translate(0,0); }
    50% { transform: scale(1.2) translate(30px, -20px); }
    100% { transform: scale(1.05) translate(-15px, 10px); }
}

.auth-card {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-2xl);
    padding: 52px 46px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.05);
    position: relative;
    z-index: 1;
    animation: authSlideUp 0.7s var(--ease-out);
}

/* Subtle gold top accent */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 50%; height: 3px;
    background: var(--gradient-gold);
    border-radius: 0 0 4px 4px;
}

@keyframes authSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-card .auth-logo { text-align: center; margin-bottom: 36px; }

.auth-card .auth-logo h2 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-size: 1.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.auth-card .auth-logo .gold-line {
    width: 50px; height: 3px;
    background: var(--gradient-gold);
    margin: 12px auto 0;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(212,168,83,0.3);
}

/* Auth form specific styling */
.auth-card .form-control {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: #fafbfc;
    border-color: #e5e7eb;
}

.auth-card .form-control:focus {
    background: #fff;
    border-color: var(--color-gold);
}

.auth-card .input-group-text {
    background: linear-gradient(135deg, rgba(212,168,83,0.08), rgba(212,168,83,0.03));
    border-color: #e5e7eb;
    color: var(--color-gold);
    padding: 12px 14px;
}

.auth-card .btn-gold {
    padding: 13px 24px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ============================================================
   MEMORIAL PAGE
   ============================================================ */
.memorial-page { font-family: var(--font-body); background: var(--color-surface-alt); }

.memorial-hero {
    background: var(--gradient-dark);
    padding: 70px 0;
    text-align: center;
    color: #fff;
    position: relative;
}

.memorial-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-gold);
    opacity: 0.5;
}

.memorial-photo {
    width: 160px; height: 160px;
    border-radius: 50%;
    border: 3px solid var(--color-gold);
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 0 6px rgba(212,168,83,0.15);
}

.memorial-dates { font-size: 1rem; color: var(--color-gold); font-family: var(--font-heading); font-weight: 500; }

/* Candle */
.candle-container { display: inline-flex; flex-direction: column; align-items: center; margin: 0 8px; }
.candle { width: 12px; height: 40px; background: linear-gradient(to top, #f5e6c8, #e8d5a5); border-radius: 2px 2px 0 0; position: relative; }
.candle .flame { width: 14px; height: 20px; background: radial-gradient(ellipse at center, #fff 0%, #ffd700 30%, #ff8c00 60%, transparent 100%); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; position: absolute; top: -18px; left: -1px; animation: flicker 2s ease-in-out infinite alternate; }
.candle .glow { width: 40px; height: 40px; background: radial-gradient(circle, rgba(255,200,50,0.3) 0%, transparent 70%); position: absolute; top: -25px; left: -14px; animation: glow-pulse 3s ease-in-out infinite; }

@keyframes flicker {
    0%, 100% { transform: scaleY(1) scaleX(1); opacity: 1; }
    25% { transform: scaleY(1.1) scaleX(0.9); opacity: 0.9; }
    50% { transform: scaleY(0.95) scaleX(1.05); opacity: 1; }
    75% { transform: scaleY(1.05) scaleX(0.95); opacity: 0.85; }
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* Tribute cards */
.tribute-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 16px;
    border: 1px solid var(--color-border-light);
    border-left: 4px solid var(--color-gold);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}
.tribute-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.tribute-card .tribute-author { font-weight: 600; color: var(--color-text); font-size: 0.9rem; }
.tribute-card .tribute-date { font-size: 0.75rem; color: var(--color-text-muted); }
.tribute-card .tribute-message { margin-top: 10px; font-style: italic; color: var(--color-text-secondary); line-height: 1.7; }

/* ============================================================
   QR Code
   ============================================================ */
.qr-container { text-align: center; padding: 30px; }
.qr-container img { border: 6px solid var(--color-surface); box-shadow: var(--shadow-md); border-radius: var(--radius-md); }

/* ============================================================
   FOOTER – Rich dark
   ============================================================ */
.landing-footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.5);
    padding: 50px 0 24px;
    position: relative;
}

.landing-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-gold);
    opacity: 0.3;
}

.landing-footer h5 { color: #fff; font-family: var(--font-heading); font-weight: 600; }
.landing-footer h6 { font-family: var(--font-heading); font-weight: 600; }
.landing-footer a { color: rgba(255,255,255,0.45); transition: var(--transition-fast); }
.landing-footer a:hover { color: var(--color-gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); margin-top: 36px; padding-top: 24px; text-align: center; font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-gold { color: var(--color-gold) !important; }
.bg-gold { background-color: var(--color-gold) !important; }
.border-gold { border-color: var(--color-gold) !important; }
.text-primary-dark { color: var(--color-text) !important; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }

.divider-gold { width: 40px; height: 3px; background: var(--gradient-gold); border-radius: 2px; }

/* Animations */
.fade-in { animation: fadeIn 0.5s var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.fade-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.fade-on-scroll.fade-in { opacity: 1; transform: translateY(0); }

/* Stagger cards animation */
.stagger-in > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s var(--ease-out) forwards;
}
.stagger-in > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-in > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-in > *:nth-child(6) { animation-delay: 0.3s; }

/* Selectable packages */
.selectable-package { cursor: pointer; transition: var(--transition); border: 2px solid var(--color-border-light); border-radius: var(--radius-lg); }
.selectable-package:hover { border-color: var(--color-gold); box-shadow: var(--shadow-md); }
.selectable-package.selected { border-color: var(--color-gold); background: var(--color-gold-muted); box-shadow: var(--shadow-gold); }

/* Contract */
.contract-content { font-size: 0.9rem; line-height: 1.8; }
.contract-content h2, .contract-content h3, .contract-content h4 { margin-top: 24px; margin-bottom: 12px; }
.contract-content table { width: 100%; margin: 16px 0; }

/* Empty state */
.empty-state { text-align: center; padding: 50px 20px; color: var(--color-text-muted); }
.empty-state .empty-icon { font-size: 3rem; opacity: 0.25; margin-bottom: 12px; }
.empty-state p { font-size: 0.875rem; }

/* Feature icon wrap (landing) */
.feature-icon-wrap {
    width: 60px; height: 60px;
    border-radius: var(--radius-lg);
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(212,168,83,0.3);
}
.feature-icon-wrap i { color: #fff !important; font-size: 1.4rem; }
.card:hover .feature-icon-wrap { transform: translateY(-4px) scale(1.05); box-shadow: var(--shadow-gold); }

/* Service cells (landing) */
.service-cell { padding: 24px 16px; border-radius: var(--radius-md); transition: var(--transition); }
.service-cell:hover { background: var(--color-surface); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-cell:hover i { transform: scale(1.2); }
.service-cell i { transition: var(--transition); }

/* CTA section */
.cta-section { background: var(--gradient-dark); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -50%; right: -20%; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(212,168,83,0.08) 0%, transparent 70%); }

/* Pagination */
.page-link { border: 1px solid var(--color-border); color: var(--color-text-secondary); font-size: 0.85rem; padding: 8px 14px; transition: var(--transition-fast); border-radius: var(--radius-xs); }
.page-item.active .page-link { background: var(--gradient-gold); border-color: var(--color-gold); color: #fff; box-shadow: 0 2px 8px rgba(212,168,83,0.3); }
.page-link:hover { background: var(--color-gold-muted); border-color: var(--color-gold); color: var(--color-gold-dark); }

/* Card header icon badge */
.card-icon-badge {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-right: 10px;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.card-icon-badge.gold { background: linear-gradient(135deg, rgba(212,168,83,0.15), rgba(212,168,83,0.08)); color: var(--color-gold-dark); }
.card-icon-badge.blue { background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(59,130,246,0.08)); color: var(--color-info); }
.card-icon-badge.green { background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.08)); color: var(--color-success); }
.card-icon-badge.purple { background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(139,92,246,0.08)); color: #7c3aed; }
.card-icon-badge.rose { background: linear-gradient(135deg, rgba(244,63,94,0.15), rgba(244,63,94,0.08)); color: var(--color-danger); }
.card-icon-badge.orange { background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.08)); color: var(--color-warning); }

/* Progress bar enhancements */
.progress {
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(0,0,0,0.06);
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    transition: width 1s var(--ease-out);
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); box-shadow: 0 0 60px rgba(0,0,0,0.4); }
    .main-content { margin-left: 0; }
    .hero-section h1 { font-size: 2.5rem; }
    .content-area { padding: 20px 16px; }
    .top-bar { padding: 12px 16px; }
    .mobile-toggle { display: flex !important; }
}

@media (max-width: 768px) {
    .hero-section { padding: 70px 0 60px; }
    .hero-section h1 { font-size: 2rem; }
    .auth-card { padding: 38px 30px; }
    .stat-card { margin-bottom: 12px; }
    .content-area { padding: 16px 12px; }
}

@media (max-width: 576px) {
    .hero-section h1 { font-size: 1.75rem; }
    .package-card { padding: 30px 20px; }
    .package-card .price { font-size: 2rem; }
    .auth-card { padding: 32px 24px; }
}

.mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition-fast);
}
.mobile-toggle:hover { background: var(--color-gold-muted); color: var(--color-gold-dark); }

/* ============================================================
   Print
   ============================================================ */
@media print {
    .sidebar, .top-bar, .btn, .mobile-toggle { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd; }
    body { background: #fff; }
    .stat-card { color: #000 !important; background: #fff !important; border: 1px solid #ddd !important; box-shadow: none !important; }
}
