/* ═══════════════════════════════════════════════════════════════════════
   Always Unforgettable — Partner Portal (Enhanced)
   Bootstrap 5.3 Custom Theme — Navy / Gold / Cream
   ═══════════════════════════════════════════════════════════════════════ */

@import url('/memorials/assets/vendors/fonts/fonts.css?v=20261124');  /* self-hosted fonts (no CDN) */

:root {
    --au-navy:        #2C3E50;
    --au-navy-dark:   #1A2A3A;
    --au-gold:        #C9A96E;
    --au-gold-dark:   #B8995E;
    --au-gold-light:  #F4EDE2;
    --au-cream:       #F5F0EB;
    --au-cream-light: #FAF7F4;
    --au-taupe:       #8B7E74;
    --au-brown:       #3D342B;
    --au-red:         #C46B6B;
    --au-green:       #5B8C5A;
    --au-white:       #FFFFFF;

    /* Custom Design Elevation Tokens */
    --au-shadow-sm:   0 2px 8px rgba(44, 62, 80, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    --au-shadow-md:   0 6px 20px rgba(44, 62, 80, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);
    --au-shadow-lg:   0 12px 32px rgba(44, 62, 80, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    --au-shadow-gold: 0 4px 18px rgba(201, 169, 110, 0.25);
    
    --bs-primary:          var(--au-navy);
    --bs-primary-rgb:      44, 62, 80;
    --bs-body-bg:          var(--au-cream);
    --bs-body-color:       var(--au-brown);
    --bs-border-color:     #E5DDD3;
    --bs-link-color:       var(--au-navy);
    --bs-link-hover-color: var(--au-gold-dark);
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-serif {
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: -0.02em;
}

/* ── Navbar ─────────────────────────────────────────────────────── */
.navbar-au {
    background: linear-gradient(135deg, var(--au-navy-dark) 0%, var(--au-navy) 100%);
    box-shadow: 0 4px 20px rgba(26, 42, 58, 0.15);
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
    min-height: 68px;
    backdrop-filter: blur(8px);
}

.navbar-au .navbar-brand {
    font-family: Georgia, serif;
    color: #fff !important;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.navbar-au .navbar-brand span { 
    color: var(--au-gold); 
    font-weight: 700;
}

.navbar-au .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 8px;
    padding: 8px 16px !important;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.navbar-au .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

.navbar-au .nav-link.active {
    background: rgba(201, 169, 110, 0.18);
    color: var(--au-gold) !important;
    border: 1px solid rgba(201, 169, 110, 0.3);
}

.navbar-au .dropdown-toggle::after { display: none; }

.navbar-au .dropdown-menu {
    border: 1px solid rgba(229, 221, 211, 0.6);
    border-radius: 12px;
    box-shadow: var(--au-shadow-lg);
    margin-top: 12px;
    padding: 6px;
    min-width: 210px;
    background: var(--au-white);
    animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-au .dropdown-item {
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--au-brown);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.navbar-au .dropdown-item:hover { 
    background: var(--au-cream-light); 
    color: var(--au-navy);
    transform: translateX(2px);
}

.navbar-au .dropdown-item.text-danger:hover { 
    background: #FDEDED; 
    color: var(--au-red);
}

.navbar-au .avatar-circle {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #DFCA9E 0%, var(--au-gold) 100%);
    color: var(--au-navy-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* ── Cards ──────────────────────────────────────────────────────── */
.card-au {
    border: 1px solid var(--bs-border-color);
    border-radius: 16px;
    background: var(--au-white);
    box-shadow: var(--au-shadow-sm);
    margin-bottom: 24px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.card-au:hover {
    box-shadow: var(--au-shadow-md);
}

.card-au .card-header {
    background: var(--au-white);
    border-bottom: 1px solid #F0E9E1;
    padding: 20px 28px;
    font-family: Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--au-navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-au .card-body { padding: 28px; }

.card-au .card-footer {
    background: var(--au-cream-light);
    border-top: 1px solid #F0E9E1;
    padding: 16px 28px;
}

/* ── Stat Cards ──────────────────────────────────────────────────── */
.stat-card {
    background: var(--au-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--au-shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--bs-border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    box-shadow: 0 0 0 1px rgba(201, 169, 110, 0.6), 0 12px 40px rgba(201, 169, 110, 0.3), 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-6px) scale(1.015);
    border-color: #C9A96E;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFDF7 100%);
}

.stat-card:hover .stat-value {
    color: #C9A96E;
}

.stat-card:hover .stat-label {
    color: #3D342B;
}

.stat-card .stat-value {
    transition: color 0.25s ease;
}

.stat-card .stat-label {
    transition: color 0.25s ease;
}

.stat-card .stat-value {
    font-family: Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--au-navy);
    line-height: 1.1;
}

.stat-card .stat-label {
    font-size: 0.825rem;
    color: var(--au-taupe);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-card-accent { 
    border-left: 4px solid var(--au-gold); 
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn-gold {
    background: linear-gradient(135deg, #D4B67E 0%, var(--au-gold) 100%);
    color: var(--au-white);
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(201, 169, 110, 0.2);
}

.btn-gold:hover, .btn-gold:focus {
    background: linear-gradient(135deg, var(--au-gold) 0%, var(--au-gold-dark) 100%);
    color: var(--au-white);
    transform: translateY(-1px);
    box-shadow: var(--au-shadow-gold);
}

.btn-outline-au {
    border: 1px solid #D6CCC0;
    color: var(--au-navy);
    background: var(--au-white);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.btn-outline-au:hover, .btn-outline-au:focus {
    background: var(--au-cream-light);
    border-color: var(--au-gold);
    color: var(--au-gold-dark);
    transform: translateY(-1px);
}

/* ── Badges ─────────────────────────────────────────────────────── */
.badge { 
    font-weight: 600; 
    letter-spacing: 0.03em; 
    font-size: 0.725rem; 
    padding: 6px 12px; 
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-active   { background: #EAF5EA !important; color: #236826 !important; border: 1px solid #C5E7C5; }
.badge-draft    { background: #FEF8E7 !important; color: #B26B00 !important; border: 1px solid #FCE8B3; }
.badge-expired  { background: #FDF0ED !important; color: #A93226 !important; border: 1px solid #F8CCC3; }
.badge-premium  { background: #F3EFEF !important; color: #523178 !important; border: 1px solid #DDD1EA; }
.badge-yearly   { background: #EBF3FA !important; color: #104E8B !important; border: 1px solid #C4DCF2; }
.badge-ultimate { background: #FEF4EC !important; color: #B34700 !important; border: 1px solid #FCD4B9; }
.badge-pending  { background: #FEF8E7 !important; color: #B26B00 !important; border: 1px solid #FCE8B3; }
.badge-paid     { background: #EAF5EA !important; color: #236826 !important; border: 1px solid #C5E7C5; }
.badge-basic    { background: #F2F3F5 !important; color: #4A5568 !important; border: 1px solid #D9DCE1; }
.badge-standard { background: #EDF2F7 !important; color: #2B6CB0 !important; border: 1px solid #BED4E8; }
.badge-cancelled{ background: #FDF0ED !important; color: #A93226 !important; border: 1px solid #F8CCC3; }

/* ── Login Page ──────────────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(201, 169, 110, 0.08), transparent 40%),
                linear-gradient(135deg, var(--au-navy-dark) 0%, #15222E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--au-white);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.login-brand-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #DFCA9E 0%, var(--au-gold) 100%);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
    font-size: 1.85rem;
    color: var(--au-navy-dark);
    box-shadow: var(--au-shadow-gold);
    margin-bottom: 8px;
}

/* ── Form Controls ──────────────────────────────────────────────── */
.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--au-navy);
    margin-bottom: 6px;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #D6CCC0;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--au-brown);
    background-color: var(--au-white);
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--au-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.25);
    background-color: var(--au-white);
}

.form-control[readonly], .form-control:disabled {
    background-color: #FAF7F4;
    border-color: #E8E1D9;
    color: var(--au-taupe);
    cursor: not-allowed;
}

.form-check-input {
    border-color: #D6CCC0;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--au-gold);
    border-color: var(--au-gold);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.25);
    border-color: var(--au-gold);
}

.required-star { 
    color: var(--au-red); 
    margin-left: 2px;
}

/* ── Tables ─────────────────────────────────────────────────────── */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--au-brown);
    margin-bottom: 0;
    vertical-align: middle;
}

.table thead th {
    background-color: var(--au-cream-light);
    color: var(--au-navy);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.775rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--bs-border-color);
    padding: 14px 18px;
}

.table tbody td {
    padding: 16px 18px;
    border-bottom: 1px solid #F0E9E1;
    font-size: 0.875rem;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(245, 240, 235, 0.5);
}

/* ── Step Indicator ─────────────────────────────────────────────── */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    padding: 8px 0;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--au-white);
    border: 2px solid #D6CCC0;
    color: var(--au-taupe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-item.active .step-circle { 
    background: var(--au-gold); 
    border-color: var(--au-gold);
    color: var(--au-white);
    box-shadow: var(--au-shadow-gold);
}

.step-item.completed .step-circle { 
    background: var(--au-green); 
    border-color: var(--au-green);
    color: var(--au-white); 
}

.step-label { 
    font-size: 0.875rem; 
    color: var(--au-taupe); 
    font-weight: 500; 
    transition: color 0.3s ease;
}

.step-item.active .step-label { 
    color: var(--au-navy); 
    font-weight: 700; 
}

.step-line {
    width: 60px;
    height: 2px;
    background: #E2D8CC;
    margin: 0 16px;
    transition: background 0.4s ease;
    border-radius: 2px;
}

.step-item.completed + .step-line { 
    background: var(--au-green); 
}

/* ── Tab Navigation ─────────────────────────────────────────────── */
.nav-tabs-au {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    border-bottom: 1px solid #E5DDD3;
    padding-bottom: 14px;
}

.nav-tabs-au .tab-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 0.825rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--au-white);
    color: var(--au-taupe);
    border: 1px solid #E5DDD3;
    transition: all 0.25s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.nav-tabs-au .tab-link:hover {
    background: var(--au-cream-light);
    color: var(--au-navy);
    border-color: #D6CCC0;
}

.nav-tabs-au .tab-link.active {
    background: var(--au-navy);
    color: var(--au-white);
    border-color: var(--au-navy);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
}

/* ── Timeline ───────────────────────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, var(--au-gold) 0%, #E5DDD3 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 28px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--au-gold);
    border-radius: 50%;
    border: 3px solid var(--au-white);
    box-shadow: 0 0 0 1px var(--au-gold);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--au-taupe);
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.timeline-title {
    font-weight: 600;
    color: var(--au-navy);
    font-size: 0.95rem;
}

/* ── Quote Block ────────────────────────────────────────────────── */
blockquote.au-quote {
    margin: 0;
    padding: 20px 24px;
    background: var(--au-cream-light);
    border-left: 3px solid var(--au-gold);
    border-radius: 0 12px 12px 0;
    font-family: Georgia, serif;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--au-brown);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

/* ── Memorial Thumb ─────────────────────────────────────────────── */
.memorial-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--au-cream);
    color: var(--au-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid #E5DDD3;
    overflow: hidden;
    object-fit: cover;
}

/* ── Empty State ────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 56px 20px;
    color: var(--au-taupe);
}

.empty-state i {
    font-size: 2.5rem;
    color: var(--au-gold);
    margin-bottom: 12px;
    display: inline-block;
}

/* ── Keyframe Animations ──────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Utility ────────────────────────────────────────────────────── */
.text-gold  { color: var(--au-gold) !important; }
.text-taupe { color: var(--au-taupe) !important; }
.bg-cream   { background-color: var(--au-cream) !important; }
.bg-navy    { background-color: var(--au-navy) !important; }
.font-serif { font-family: Georgia, serif !important; }

/* ── Responsive Adjustments ──────────────────────────────────────── */
@media (max-width: 768px) {
    .step-line { width: 24px; margin: 0 8px; }
    .step-label { display: none; } /* Keeps multi-step indicator clean on small viewports */
    .nav-tabs-au { gap: 6px; }
    .nav-tabs-au .tab-link { padding: 7px 12px; font-size: 0.75rem; }
    .card-au .card-header, .card-au .card-body { padding: 18px; }
}
/* ── Layout: container first-child spacing ─────────────────────────── */
.container > :first-child { margin-top: 1.5rem; }


/* Candle flame (portal list) */
.au-flame { position: relative; width: 22px; height: 30px; display: inline-block; vertical-align: middle; margin-right: 8px; flex-shrink: 0; }
.au-flame-core { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 12px; height: 20px; background: #FFB833; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; box-shadow: 0 0 6px 2px rgba(255,150,30,0.7), 0 0 12px 5px rgba(255,120,10,0.4); animation: au-flame-flicker 2s ease-in-out infinite; }
.au-flame-inner { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); width: 6px; height: 12px; background: #FFFBE6; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; box-shadow: 0 0 5px 2px rgba(255,255,200,0.8); animation: au-flame-flicker 1.8s ease-in-out 0.3s infinite; }
.au-flame-glow { position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; background: radial-gradient(circle, rgba(255,160,40,0.5) 0%, rgba(255,120,20,0.2) 40%, transparent 70%); border-radius: 50%; animation: au-flame-glow-pulse 3s ease-in-out infinite; }
.au-flame--off .au-flame-core, .au-flame--off .au-flame-inner { background: #C9C4BD; box-shadow: none; animation: none; }
.au-flame--off .au-flame-glow { display: none; }
@keyframes au-flame-flicker { 0%, 100% { transform: translateX(-50%) scale(1, 1); opacity: 1; } 20% { transform: translateX(-48%) scale(1.06, 0.94); opacity: 0.88; } 40% { transform: translateX(-52%) scale(0.94, 1.08); opacity: 0.82; } 60% { transform: translateX(-50%) scale(1.03, 0.96); opacity: 0.92; } 80% { transform: translateX(-49%) scale(1.05, 0.95); opacity: 0.9; } }
@keyframes au-flame-glow-pulse { 0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.55; } 50% { transform: translateX(-50%) scale(1.35); opacity: 0.25; } }
