/* ==============================================================
   DIVYA COSMETICS – ROYAL LUXURY DESIGN SYSTEM & THEME ENGINE
   Inspired by International Haute Parfumerie & Royal Ayurvedic Maisons
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- THEME 01 – BOTANICAL LUXURY (DEFAULT ROYAL BOTANIC) --- */
:root, body[data-theme="theme_01"] {
    --primary: #0F4024;         /* Haute Imperial Emerald */
    --primary-rgb: 15, 64, 36;
    --secondary: #071E10;       /* Royal Velvet Emerald */
    --accent: #C59A45;          /* 24K Royal Liquid Gold */
    --accent-light: #FBF6EC;
    --accent-gold-gradient: linear-gradient(135deg, #C59A45 0%, #F5E3BD 50%, #B0822E 100%);
    --background: #FAFCFA;      /* Luminous Diamond Pearl Alabaster (No muddy beige) */
    --surface: #FFFFFF;
    --text: #132218;            /* Deep Obsidian Sage */
    --muted: #57685D;
    --border: #E8EDE8;
    --border-gold: rgba(197, 154, 69, 0.35);
    --card-bg: #FFFFFF;
    --btn-radius: 6px;          /* Clean royal architectural geometry */
    --card-radius: 14px;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-secondary: 'DM Sans', sans-serif;
    --font-royal: 'Cinzel', serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --header-bg: rgba(255, 255, 255, 0.94);
    --badge-bg: #EFF6F0;
    --badge-text: #0F4024;
    --shadow-soft: 0 16px 45px rgba(15, 64, 36, 0.06);
    --shadow-gold: 0 14px 38px rgba(197, 154, 69, 0.22);
}

/* --- THEME 02 – MINIMAL LUXURY (CHAMPAGNE HAUTE) --- */
body[data-theme="theme_02"] {
    --primary: #9C7D4E;
    --primary-rgb: 156, 125, 78;
    --secondary: #3D332A;
    --accent: #D4AF37;
    --accent-light: #FCF9F3;
    --accent-gold-gradient: linear-gradient(135deg, #B79B72 0%, #EFE4D2 50%, #9C7D4E 100%);
    --background: #FCFBF9;      /* Pure Crisp Champagne Pearl */
    --surface: #FFFFFF;
    --text: #241F1A;
    --muted: #6E645C;
    --border: #EDE7DF;
    --border-gold: rgba(183, 155, 114, 0.35);
    --card-bg: #FFFFFF;
    --btn-radius: 4px;
    --card-radius: 10px;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-secondary: 'DM Sans', sans-serif;
    --font-royal: 'Cinzel', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --header-bg: rgba(255, 255, 255, 0.94);
    --badge-bg: #F8F3EA;
    --badge-text: #8C6830;
    --shadow-soft: 0 16px 40px rgba(61, 51, 42, 0.05);
    --shadow-gold: 0 12px 32px rgba(183, 155, 114, 0.18);
}

/* --- THEME 03 – MODERN ORGANIC (VERDANT BOTANICAL) --- */
body[data-theme="theme_03"] {
    --primary: #2B6E48;
    --primary-rgb: 43, 110, 72;
    --secondary: #174229;
    --accent: #C5A059;
    --accent-light: #EBF3ED;
    --accent-gold-gradient: linear-gradient(135deg, #438C62 0%, #C9D9B8 50%, #24533B 100%);
    --background: #F5FAF6;
    --surface: #FFFFFF;
    --text: #1C3325;
    --muted: #647D6E;
    --border: #D8E7DC;
    --border-gold: rgba(197, 160, 89, 0.3);
    --card-bg: #FFFFFF;
    --btn-radius: 6px;
    --card-radius: 10px;
    --font-heading: 'DM Sans', sans-serif;
    --font-secondary: 'DM Sans', sans-serif;
    --font-royal: 'DM Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --header-bg: rgba(245, 250, 246, 0.98);
    --badge-bg: #E8F4EC;
    --badge-text: #2B6E48;
    --shadow-soft: 0 12px 35px rgba(23, 66, 41, 0.07);
    --shadow-gold: 0 10px 30px rgba(67, 140, 98, 0.16);
}

/* --- THEME 04 – SOFT FEMININE (ROSE CHÂTEAU) --- */
body[data-theme="theme_04"] {
    --primary: #A66370;
    --primary-rgb: 166, 99, 112;
    --secondary: #6B3C46;
    --accent: #D4AF37;
    --accent-light: #FBECEE;
    --accent-gold-gradient: linear-gradient(135deg, #B9828C 0%, #E9C9C9 50%, #80545E 100%);
    --background: #FFF9F9;
    --surface: #FFFFFF;
    --text: #3B2A2E;
    --muted: #826E73;
    --border: #F0DEE1;
    --border-gold: rgba(212, 175, 55, 0.3);
    --card-bg: #FFFFFF;
    --btn-radius: 14px;
    --card-radius: 14px;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-secondary: 'DM Sans', sans-serif;
    --font-royal: 'Cinzel', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --header-bg: rgba(255, 249, 249, 0.98);
    --badge-bg: #FBECEE;
    --badge-text: #80545E;
    --shadow-soft: 0 12px 35px rgba(107, 60, 70, 0.06);
    --shadow-gold: 0 10px 30px rgba(166, 99, 112, 0.15);
}

/* --- THEME 05 – EMERALD PREMIUM (IMPERIAL EMERALD & GOLD) --- */
body[data-theme="theme_05"] {
    --primary: #074D37;
    --primary-rgb: 7, 77, 55;
    --secondary: #0A2E22;
    --accent: #D4AF37;
    --accent-light: #F5EED8;
    --accent-gold-gradient: linear-gradient(135deg, #C6A66A 0%, #F3E5AB 50%, #9B7938 100%);
    --background: #FAFCF9;
    --surface: #FFFFFF;
    --text: #14241E;
    --muted: #5C7067;
    --border: #E2EAE5;
    --border-gold: rgba(212, 175, 55, 0.4);
    --card-bg: #FFFFFF;
    --btn-radius: 4px;
    --card-radius: 8px;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-secondary: 'DM Sans', sans-serif;
    --font-royal: 'Cinzel', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --header-bg: rgba(255, 255, 255, 0.94);
    --header-bg: rgba(247, 245, 239, 0.98);
    --badge-bg: #ECE5CE;
    --badge-text: #705518;
    --shadow-soft: 0 12px 35px rgba(10, 46, 34, 0.08);
    --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.22);
}

/* Base Typographic Hierarchy */
body {
    background-color: var(--background);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    color: var(--text);
    font-weight: 600;
    letter-spacing: -0.015em;
}

.font-royal {
    font-family: var(--font-royal);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.font-secondary {
    font-family: var(--font-secondary);
}

.gold-foil-text {
    background: var(--accent-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.gold-foil-border {
    border: 1px solid var(--accent) !important;
}

/* Royal Ornament Filigree Divider */
.royal-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 18px 0 28px;
}
.royal-divider::before, .royal-divider::after {
    content: '';
    height: 1px;
    width: 60px;
    background: var(--accent-gold-gradient);
}
.royal-divider i {
    color: var(--accent);
    font-size: 0.9rem;
}

/* ==============================================================
   ROYAL TWO-TIER NAVIGATION HEADER
   ============================================================== */

/* Top Royal Micro-Announcement */
.royal-top-bar {
    background-color: var(--secondary);
    color: #FFFFFF;
    font-size: 0.775rem;
    padding: 8px 0;
    letter-spacing: 0.08em;
    font-family: var(--font-secondary);
    border-bottom: 1px solid rgba(197, 160, 89, 0.25);
}

.royal-top-bar a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.royal-top-bar a:hover {
    color: var(--accent);
}

/* Master Header Container */
.royal-master-header {
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

/* Tier 1: Majestic Emblem & Utilities */
.header-main-tier {
    padding: 14px 0;
    border-bottom: 1px solid rgba(197, 160, 89, 0.18);
}

.brand-emblem-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.25s ease;
}

.brand-emblem-link:hover {
    transform: scale(1.02);
}

.brand-logo-royal {
    height: 68px; /* High-resolution prominent presence */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.04));
}

/* Search Bar in Header */
.royal-search-box {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.royal-search-box input {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 9px 18px 9px 40px;
    font-size: 0.825rem;
    color: var(--text);
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.royal-search-box input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.royal-search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 0.95rem;
}

/* Header Action Icons */
.royal-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.825rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.royal-action-pill:hover {
    border-color: var(--accent);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.15);
}

.royal-action-pill i {
    font-size: 1.05rem;
    color: var(--primary);
}

.royal-cart-pill {
    background: var(--primary);
    color: #FFFFFF !important;
    border-color: var(--primary);
}

.royal-cart-pill i {
    color: var(--accent-light);
}

.royal-cart-pill:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #FFFFFF !important;
}

/* ==============================================================
   ROYAL NAVIGATION & DYNAMIC MEGA MENU SYSTEM
   ============================================================== */
.header-nav-tier {
    padding: 6px 0 0;
    position: relative;
}

.royal-nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 32px;
}

.royal-nav-item {
    position: relative;
    padding: 10px 0;
    min-width: max-content;
}

.royal-nav-link {
    color: var(--text);
    font-family: var(--font-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 4px 6px;
    position: relative;
    transition: color 0.25s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.royal-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold-gradient);
    transition: all 0.25s ease;
    transform: translateX(-50%);
}

.royal-nav-link:hover, .royal-nav-link.active {
    color: var(--primary);
}

.royal-nav-link:hover::after, .royal-nav-link.active::after {
    width: 100%;
}

/* Floating Badges above Menu Items (Must Try, New, 5 @ 999/-) */
.royal-nav-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: #FFFFFF !important;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.22);
    line-height: 1.25;
}

.royal-nav-badge::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0 4px;
    border-style: solid;
    border-color: inherit;
    border-left-color: transparent;
    border-right-color: transparent;
}

/* Mega Menu Dropdown Container */
.has-mega-menu {
    position: static !important; /* Center relative to header container */
}

.mega-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(14px);
    width: min(94vw, 1140px);
    background: #FFFFFF;
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    box-shadow: 0 25px 65px rgba(13, 45, 24, 0.12), 0 0 0 1px rgba(197, 160, 89, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1060;
    padding: 32px 36px;
    text-align: left;
}

.has-mega-menu:hover .mega-menu-wrapper,
.has-mega-menu:focus-within .mega-menu-wrapper {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-col-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    border-bottom: 1.5px solid var(--border-gold);
    padding-bottom: 8px;
    letter-spacing: -0.01em;
}

.mega-sublinks-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mega-sublink {
    color: #3D443F;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.mega-sublink:hover {
    color: var(--primary);
    transform: translateX(4px);
    font-weight: 600;
}

/* Mega Promo Cards */
.mega-promo-card {
    display: block;
    text-decoration: none;
    background: #FFFFFF;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-gold);
    transition: all 0.25s ease;
    position: relative;
    text-align: center;
    padding: 14px;
    height: 100%;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.mega-promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--accent);
}

.mega-promo-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #D32F2F;
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.mega-promo-badge.deal-of-month {
    background: linear-gradient(135deg, #FF6F00 0%, #D84315 100%);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    text-align: center;
    line-height: 1.15;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(216, 67, 21, 0.35);
    border: 2px dashed rgba(255, 255, 255, 0.7);
}

.mega-promo-img-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mega-promo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.mega-promo-card:hover .mega-promo-img {
    transform: scale(1.06);
}

.mega-promo-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

/* Header Concierge & Reward Buttons (Matching Deyga Reference) */
.reward-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #FFF;
    border: 1px solid var(--border-gold);
    color: var(--text);
    font-size: 0.785rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.reward-pill-badge {
    background: #F9A825;
    color: #212121;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    text-transform: uppercase;
}

.help-choose-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #0E3B28; /* Deep Ayurvedic Forest Green */
    color: #FFFFFF !important;
    text-align: center;
    text-decoration: none;
    border: 2.5px solid #C5A880; /* Rich Ayurvedic Gold Border */
    box-shadow: 0 4px 14px rgba(14, 59, 40, 0.35);
    transition: all 0.25s ease;
    padding: 4px;
    position: relative;
    cursor: pointer;
}

.help-choose-badge:hover {
    background: #165338;
    transform: scale(1.08);
    color: #FFFFFF !important;
    border-color: #D4AF37;
    box-shadow: 0 6px 20px rgba(14, 59, 40, 0.5);
}

.help-choose-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.15;
}

.help-choose-icon {
    font-size: 0.85rem;
    color: #FFD700;
    margin-bottom: 2px;
    line-height: 1;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    transition: transform 0.25s ease;
}

.help-choose-badge:hover .help-choose-icon {
    transform: rotate(15deg) scale(1.2);
}

.help-choose-text {
    font-size: 0.62rem;
    font-weight: 800;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.15;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ==============================================================
   ROYAL BUTTONS & CTAs
   ============================================================== */
.btn-royal-primary {
    background-color: var(--primary);
    color: #FFFFFF;
    border: 1px solid var(--accent);
    border-radius: var(--btn-radius);
    padding: 12px 32px;
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.25);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-royal-primary:hover {
    background-color: var(--secondary);
    color: #FFFFFF;
    border-color: #EEDBBA;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
}

.btn-royal-gold {
    background: var(--accent-gold-gradient);
    color: #0E2416 !important;
    border: 1px solid #B88E3E;
    border-radius: var(--btn-radius);
    padding: 12px 32px;
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(197, 160, 89, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-royal-gold:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(197, 160, 89, 0.45);
}

.btn-royal-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--btn-radius);
    padding: 11px 28px;
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-royal-outline:hover {
    background-color: var(--primary);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* ==============================================================
   ROYAL HERO SECTION – LUMINOUS & INNOVATIVE
   ============================================================== */
.hero-royal {
    position: relative;
    padding: 70px 0 100px;
    background: radial-gradient(ellipse at 82% 25%, rgba(197, 154, 69, 0.16) 0%, rgba(15, 64, 36, 0.04) 40%, transparent 72%),
                linear-gradient(180deg, #FFFFFF 0%, #F4F8F5 100%);
    border-bottom: 1px solid var(--border-gold);
    overflow: hidden;
}

.hero-royal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(197, 154, 69, 0.08) 1px, transparent 0);
    background-size: 36px 36px;
    opacity: 0.65;
    pointer-events: none;
}

.hero-royal-crest {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid var(--border-gold);
    color: var(--primary);
    padding: 7px 20px;
    border-radius: 30px;
    font-size: 0.775rem;
    font-weight: 800;
    font-family: var(--font-secondary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(15, 64, 36, 0.05);
}

.hero-royal-title {
    font-size: 4rem;
    line-height: 1.08;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-royal-title em {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--primary);
    font-weight: 500;
}

.hero-royal-subtitle {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 530px;
    margin-bottom: 38px;
    line-height: 1.8;
}

/* Archway Framing for Hero Photography */
.royal-arch-frame {
    position: relative;
    border-radius: 240px 240px 18px 18px; /* Royal Palace Archway */
    overflow: hidden;
    border: 4px solid #FFFFFF;
    box-shadow: 0 25px 70px rgba(15, 64, 36, 0.14), 0 0 40px rgba(197, 154, 69, 0.25);
}

.royal-arch-frame img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.royal-arch-frame:hover img {
    transform: scale(1.03);
}

.royal-floating-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-gold);
    padding: 16px 22px;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(15, 64, 36, 0.1), 0 0 0 1px rgba(197, 154, 69, 0.2);
}

/* ==============================================================
   ROYAL PRODUCT CARDS
   ============================================================== */
.product-card-royal {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 16px rgba(15, 64, 36, 0.03);
}

.product-card-royal:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(15, 64, 36, 0.09), 0 0 0 1px var(--accent);
    border-color: var(--accent);
}

.product-card-img-wrap {
    position: relative;
    padding-top: 105%;
    overflow: hidden;
    background: radial-gradient(circle at center, #FFFFFF 50%, #F4F8F5 100%);
}

.product-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card-royal:hover .product-card-img {
    transform: scale(1.06);
}

.product-royal-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--accent-gold-gradient);
    color: #0E2416;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.product-card-body {
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #FFFFFF;
}

.product-brand-tag {
    font-size: 0.72rem;
    font-family: var(--font-secondary);
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.14em;
    font-weight: 700;
    margin-bottom: 6px;
}

.product-card-title {
    font-size: 1.15rem;
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.1rem;
}

.product-card-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.product-card-title a:hover {
    color: var(--primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #D4AF37;
    margin-bottom: 12px;
}

.product-price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 16px;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-secondary);
}

.price-original {
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: line-through;
}

.price-discount-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #A66370;
    background: #FBECEE;
    padding: 2px 6px;
    border-radius: 4px;
}

.product-card-btn {
    width: 100%;
    padding: 10px 16px;
    border-radius: var(--btn-radius);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.product-wishlist-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.2s ease;
    z-index: 2;
    cursor: pointer;
}

.product-wishlist-btn:hover {
    background: var(--surface);
    color: #E63946;
    border-color: #E63946;
    transform: scale(1.1);
}

/* ==============================================================
   4-STEP ROYAL AYURVEDIC RITUAL SECTION – INNOVATIVE SANCTUARY
   ============================================================== */
.ritual-card {
    background: #FFFFFF;
    border: 1px solid var(--border-gold);
    border-radius: 24px 24px 14px 14px;
    padding: 34px 26px;
    position: relative;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 18px rgba(15, 64, 36, 0.04);
}

.ritual-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(15, 64, 36, 0.09), 0 0 0 1px var(--accent);
}

.ritual-step-num {
    font-family: var(--font-royal);
    font-size: 2.2rem;
    background: var(--accent-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 14px;
    display: inline-block;
}

/* Innovative 24K Gold Shimmer Animation */
.gold-shimmer {
    background: linear-gradient(90deg, #C59A45 0%, #FFF2D6 50%, #B0822E 100%);
    background-size: 200% auto;
    animation: goldShine 4s linear infinite;
}

@keyframes goldShine {
    to { background-position: 200% center; }
}

/* Category Cards */
.category-card-royal {
    background-color: var(--surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--card-radius);
    padding: 26px 18px;
    text-align: center;
    transition: all 0.3s ease;
    display: block;
    height: 100%;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.category-card-royal:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-gold);
}

.category-icon-wrapper-royal {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--badge-bg);
    border: 1.5px solid var(--border-gold);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.category-card-royal:hover .category-icon-wrapper-royal {
    background: var(--accent-gold-gradient);
    color: #0E2416;
    border-color: #B88E3E;
}

.category-title {
    font-size: 1.15rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

/* Concern Pills */
.concern-pill-royal {
    background-color: var(--surface);
    border: 1px solid var(--border-gold);
    border-radius: 30px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.concern-pill-royal:hover {
    background-color: var(--primary);
    color: #FFFFFF !important;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.2);
}

/* ==============================================================
   ROYAL FOOTER
   ============================================================== */
.royal-footer {
    background-color: var(--secondary);
    color: rgba(250, 247, 242, 0.82);
    padding: 80px 0 28px;
    margin-top: 90px;
    border-top: 3px solid var(--accent);
    position: relative;
}

.royal-footer-logo {
    height: 64px;
    margin-bottom: 22px;
}

.royal-footer-heading {
    color: #FFFFFF;
    font-family: var(--font-royal);
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 10px;
}

.royal-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 1.5px;
    background: var(--accent-gold-gradient);
}

.royal-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.royal-footer-links li {
    margin-bottom: 10px;
}

.royal-footer-links a {
    color: rgba(250, 247, 242, 0.7);
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.royal-footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.royal-footer-bottom {
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    padding-top: 24px;
    margin-top: 50px;
    font-size: 0.825rem;
    color: rgba(250, 247, 242, 0.55);
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .header-nav-tier {
        display: none;
    }
    .brand-logo-royal {
        height: 52px;
    }
    .hero-royal-title {
        font-size: 2.6rem;
    }
    .royal-arch-frame img {
        height: 380px;
    }
}

/* ==============================================================
   ROYAL PATRON CUSTOMER PORTAL & SANCTUARY
   Innovative Multi-Hue Luxury Palette, Animations & Micro-Interactions
   ============================================================== */

/* Keyframe Animations */
@keyframes portalFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes goldPulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 154, 69, 0.45);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(197, 154, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(197, 154, 69, 0);
    }
}

@keyframes emeraldPulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 64, 36, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(15, 64, 36, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(15, 64, 36, 0);
    }
}

/* Stagger Animation Utility */
.animate-slide-up {
    animation: portalFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Patron Grand Welcome Sanctuary Banner */
.patron-hero-banner {
    background: linear-gradient(135deg, #071E10 0%, #0F4024 55%, #18522E 100%);
    border-radius: 20px;
    padding: 32px 36px;
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
    box-shadow: 0 16px 40px rgba(15, 64, 36, 0.18);
    border: 1px solid rgba(197, 154, 69, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.patron-hero-banner:hover {
    box-shadow: 0 20px 50px rgba(15, 64, 36, 0.25), 0 0 30px rgba(197, 154, 69, 0.2);
}
.patron-hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(197, 154, 69, 0.22) 0%, transparent 70%);
    pointer-events: none;
}
.patron-hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #C59A45 0%, #F5E3BD 50%, #B0822E 100%);
}

.patron-avatar-emblem {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C59A45 0%, #F5E3BD 50%, #B0822E 100%);
    color: #071E10;
    font-family: var(--font-royal);
    font-weight: 700;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(197, 154, 69, 0.45);
    border: 2px solid #FFFFFF;
    animation: goldPulseGlow 3s infinite;
}

/* Distinct Metric Cards (Multi-Hue Rich Palette) */
.metric-card-royal {
    border-radius: 18px;
    padding: 26px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
.metric-card-royal:hover {
    transform: translateY(-6px);
}

/* Metric 1: Orders (Imperial Emerald Sanctuary) */
.metric-card-emerald {
    background: linear-gradient(145deg, #FFFFFF 0%, #F2F7F4 100%);
    border: 1.5px solid rgba(15, 64, 36, 0.16);
}
.metric-card-emerald:hover {
    border-color: #0F4024;
    box-shadow: 0 20px 40px rgba(15, 64, 36, 0.14);
}
.metric-card-emerald .metric-icon-badge {
    background: rgba(15, 64, 36, 0.1);
    color: #0F4024;
}

/* Metric 2: Clinic & Doctor Consultations (Saffron Royal Gold) */
.metric-card-gold {
    background: linear-gradient(145deg, #FFFFFF 0%, #FCF8F0 100%);
    border: 1.5px solid rgba(197, 154, 69, 0.3);
}
.metric-card-gold:hover {
    border-color: #C59A45;
    box-shadow: 0 20px 40px rgba(197, 154, 69, 0.2);
}
.metric-card-gold .metric-icon-badge {
    background: rgba(197, 154, 69, 0.15);
    color: #B0822E;
}

/* Metric 3: Royal Vault (Deep Velvet Night & 24K Gold) */
.metric-card-obsidian {
    background: linear-gradient(135deg, #071E10 0%, #0F381E 60%, #164D27 100%);
    border: 1.5px solid #C59A45;
    color: #FFFFFF;
    box-shadow: 0 14px 35px rgba(15, 64, 36, 0.25);
}
.metric-card-obsidian:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 22px 48px rgba(197, 154, 69, 0.35);
}
.metric-card-obsidian .metric-icon-badge {
    background: rgba(197, 154, 69, 0.25);
    color: #F5E3BD;
}

.metric-icon-badge {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
    transition: transform 0.35s ease;
}
.metric-card-royal:hover .metric-icon-badge {
    transform: scale(1.12) rotate(6deg);
}

/* Interactive Modern Nav Pills in Patron Portal */
.patron-tab-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}
.patron-tab-bar::-webkit-scrollbar {
    display: none;
}
.patron-tab-pill {
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-secondary);
    color: var(--muted);
    background: #FFFFFF;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}
.patron-tab-pill:hover,
.patron-tab-pill.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 6px 18px rgba(15, 64, 36, 0.2);
}

/* Luxury Order History Card */
.order-patron-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.order-patron-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(15, 64, 36, 0.08);
    border-color: var(--accent);
}
.order-patron-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.order-patron-card:hover::before {
    opacity: 1;
}

/* Interactive Tracking Stepper */
.tracking-stepper-royal {
    position: relative;
    padding: 25px 10px 10px 10px;
}
.step-node-royal {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}
.step-circle-royal {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    background: #F1F4F2;
    color: #8C9991;
    border: 2px solid #E2EAE5;
}
.step-circle-royal.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--accent);
    box-shadow: 0 0 0 6px rgba(15, 64, 36, 0.15);
    animation: emeraldPulseGlow 2.5s infinite;
}
.step-circle-royal.completed {
    background: linear-gradient(135deg, #0F4024 0%, #2E7D32 100%);
    color: #FFFFFF;
    border-color: #2E7D32;
}

/* Auth Cards (Login & Register) */
.auth-sanctuary-card {
    background: #FFFFFF;
    border-radius: 24px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 20px 60px rgba(15, 64, 36, 0.08), 0 0 30px rgba(197, 154, 69, 0.1);
    position: relative;
    overflow: hidden;
    padding: 42px;
}
.auth-sanctuary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gold-gradient);
}

/* ==============================================================
   DIVYA ROYAL BOTANIQUE PRELOADER (Awwwards / Animator Grade)
   Sacred Golden Saffron Elixir & Blooming Ayurvedic Lotus
   ============================================================== */
.divya-royal-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: radial-gradient(circle at 50% 45%, #0B2416 0%, #05140B 50%, #020904 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease, transform 0.35s ease;
    will-change: opacity, transform;
}

.divya-royal-preloader.loaded {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(1.02);
}

/* Floating Gold Dust Particles */
.preloader-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #FFE082 0%, #C59A45 70%, transparent 100%);
    opacity: 0;
    animation: floatGoldParticle 6s infinite ease-in-out;
}

.particle.p-1 { width: 4px; height: 4px; left: 15%; top: 75%; animation-delay: 0s; }
.particle.p-2 { width: 6px; height: 6px; left: 25%; top: 85%; animation-delay: 1.2s; }
.particle.p-3 { width: 3px; height: 3px; left: 45%; top: 65%; animation-delay: 2.1s; }
.particle.p-4 { width: 5px; height: 5px; left: 65%; top: 80%; animation-delay: 0.8s; }
.particle.p-5 { width: 4px; height: 4px; left: 80%; top: 70%; animation-delay: 2.8s; }
.particle.p-6 { width: 7px; height: 7px; left: 35%; top: 90%; animation-delay: 3.5s; filter: blur(1px); }
.particle.p-7 { width: 3px; height: 3px; left: 70%; top: 60%; animation-delay: 1.7s; }
.particle.p-8 { width: 5px; height: 5px; left: 85%; top: 85%; animation-delay: 4.2s; }

@keyframes floatGoldParticle {
    0% { transform: translateY(0) scale(0.6); opacity: 0; }
    25% { opacity: 0.8; }
    75% { opacity: 0.6; }
    100% { transform: translateY(-160px) scale(1.2); opacity: 0; }
}

/* Centerpiece Container */
.preloader-centerpiece {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 480px;
    padding: 24px;
}

/* SVG Hero Animation */
.preloader-svg-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 24px;
}

.preloader-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 0 25px rgba(197, 154, 69, 0.35));
}

.preloader-halo {
    animation: haloPulse 3s infinite ease-in-out;
    transform-origin: 80px 80px;
}

@keyframes haloPulse {
    0%, 100% { transform: scale(0.92); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 0.95; }
}

.preloader-ring-outer {
    fill: none;
    stroke: url(#goldGradient);
    stroke-width: 1;
    stroke-dasharray: 4 6;
    animation: spinClockwise 24s linear infinite;
    transform-origin: 80px 80px;
}

.preloader-ring-middle {
    fill: none;
    stroke: rgba(197, 154, 69, 0.45);
    stroke-width: 0.8;
    stroke-dasharray: 2 4;
    animation: spinCounterClockwise 16s linear infinite;
    transform-origin: 80px 80px;
}

.preloader-progress-ring {
    fill: none;
    stroke: #FFE082;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 402;
    stroke-dashoffset: 402;
    transform: rotate(-90deg);
    transform-origin: 80px 80px;
    transition: stroke-dashoffset 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: drop-shadow(0 0 6px #FFE082);
}

@keyframes spinClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Lotus Petals Blooming Animation */
.lotus-petal {
    fill: rgba(197, 154, 69, 0.12);
    stroke: url(#goldGradient);
    stroke-width: 1.2;
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    transform-origin: 80px 80px;
    animation: bloomLotus 3s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.petal-1 { animation-delay: 0s; }
.petal-2 { animation-delay: 0.15s; }
.petal-3 { animation-delay: 0.3s; }
.petal-4 { animation-delay: 0.45s; }
.petal-5 { animation-delay: 0.6s; }
.petal-6 { animation-delay: 0.75s; }
.petal-7 { animation-delay: 0.9s; }
.petal-8 { animation-delay: 1.05s; }

@keyframes bloomLotus {
    0% { transform: scale(0.65) rotate(0deg); opacity: 0.4; stroke-width: 0.8; }
    50% { transform: scale(1.04) rotate(4deg); opacity: 0.95; stroke-width: 1.4; }
    100% { transform: scale(1) rotate(0deg); opacity: 0.85; stroke-width: 1.2; }
}

/* Liquid Saffron Elixir Droplet Physics */
.elixir-droplet {
    fill: url(#goldGradient);
    animation: dropletSuspension 2.4s cubic-bezier(0.6, -0.28, 0.735, 0.045) infinite;
    transform-origin: 80px 80px;
    filter: drop-shadow(0 2px 8px rgba(255, 224, 130, 0.5));
}

.elixir-core {
    fill: #FFFFFF;
    opacity: 0.85;
    animation: corePulse 2.4s infinite;
}

@keyframes dropletSuspension {
    0% { transform: translateY(-16px) scale(0.85, 1.15); opacity: 0; }
    20% { opacity: 1; transform: translateY(-6px) scale(1, 1.05); }
    50% { transform: translateY(0px) scale(1, 1); opacity: 1; }
    65% { transform: translateY(4px) scale(1.2, 0.8); opacity: 0.9; }
    75% { transform: translateY(-2px) scale(0.95, 1.05); opacity: 1; }
    100% { transform: translateY(0px) scale(1, 1); opacity: 1; }
}

@keyframes corePulse {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Concentric Liquid Saffron Ripples */
.elixir-ripple {
    fill: none;
    stroke: #FFD700;
    stroke-width: 1.2;
    opacity: 0;
    transform-origin: 80px 80px;
    animation: rippleShockwave 2.4s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

.ripple-1 { animation-delay: 0.7s; }
.ripple-2 { animation-delay: 0.95s; }
.ripple-3 { animation-delay: 1.2s; }

@keyframes rippleShockwave {
    0% { transform: scale(0.5); opacity: 0.8; stroke-width: 1.8; }
    60% { opacity: 0.4; }
    100% { transform: scale(1.8); opacity: 0; stroke-width: 0.3; }
}

/* Sacred Radiance Star */
.elixir-radiance-star {
    fill: #FFF8E1;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    transform-origin: 80px 80px;
    animation: starTwinkle 2s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { transform: scale(0.6) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.25) rotate(45deg); opacity: 1; }
}

/* Typography & Brand Crest */
.preloader-brand {
    margin-bottom: 20px;
}

.preloader-crest-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #C59A45;
    margin-bottom: 6px;
    opacity: 0.9;
}

.preloader-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: #FFFFFF;
    margin: 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5E3BD 50%, #C59A45 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
}

.preloader-tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(232, 237, 232, 0.75);
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* Precision Counter & Poetic Milestone */
.preloader-metrics {
    margin-bottom: 16px;
}

.preloader-counter-wrap {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFE082;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.preloader-percent {
    font-size: 0.85rem;
    margin-left: 2px;
    color: #C59A45;
}

.preloader-status {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.06em;
    height: 20px;
    transition: opacity 0.3s ease;
}

/* Hairline Gold Progress Track */
.preloader-track {
    width: 220px;
    height: 2px;
    background: rgba(197, 154, 69, 0.2);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.preloader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #C59A45 0%, #FFE082 50%, #FFD700 100%);
    border-radius: 4px;
    box-shadow: 0 0 10px #FFD700;
    transition: width 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ==========================================================================
   Bootstrap Icons Compatibility Fallbacks & Aliases
   ========================================================================== */
.bi-sparkles::before,
.bi-sparkle::before {
    content: "\f589" !important; /* bi-stars */
    font-family: "bootstrap-icons" !important;
}
.bi-scale::before {
    content: "\f170" !important; /* bi-bank */
    font-family: "bootstrap-icons" !important;
}
.bi-camera-slash::before {
    content: "\f22b" !important; /* bi-camera-video-off */
    font-family: "bootstrap-icons" !important;
}

/* ==========================================================================
   Utility Classes & Customer Portal Enhancements
   ========================================================================== */
.hover-lift {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.hover-lift:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(15, 64, 36, 0.08) !important;
}
.hover-shadow {
    transition: box-shadow 0.25s ease !important;
}
.hover-shadow:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}
.transition {
    transition: all 0.25s ease !important;
}
.transition-all {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Customer Portal Badge Contrast Safeguards */
.bg-success-subtle {
    background-color: rgba(22, 101, 52, 0.1) !important;
    color: #166534 !important;
}
.badge.bg-success-subtle {
    background-color: rgba(22, 101, 52, 0.1) !important;
    color: #166534 !important;
    border-color: rgba(22, 101, 52, 0.25) !important;
}
.metric-card-royal .badge {
    color: inherit;
}

/* ==============================================================
   ROYAL MOBILE BOTTOM STICKY NAVIGATION BAR
   Strictly Mobile (< 992px), Completely Hidden on Desktop
   ============================================================== */
.mobile-bottom-nav {
    display: none !important;
}

@media (max-width: 991.98px) {
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1045;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--border-gold, rgba(197, 154, 69, 0.3));
        box-shadow: 0 -4px 20px rgba(15, 64, 36, 0.08);
        padding: 6px 0 max(6px, env(safe-area-inset-bottom, 6px));
        height: auto;
        justify-content: space-around;
        align-items: center;
    }

    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--muted, #57685D);
        font-size: 0.68rem;
        font-family: var(--font-secondary, 'DM Sans', sans-serif);
        font-weight: 500;
        padding: 4px 0;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        position: relative;
    }

    .mobile-nav-item i {
        font-size: 1.25rem;
        margin-bottom: 2px;
        line-height: 1;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .mobile-nav-item:hover,
    .mobile-nav-item.active {
        color: var(--primary, #0F4024) !important;
        font-weight: 700;
        text-decoration: none;
    }

    .mobile-nav-item.active i {
        color: var(--accent, #C59A45) !important;
        transform: translateY(-2px);
    }

    .mobile-nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        width: 18px;
        height: 2.5px;
        background: var(--accent-gold-gradient, linear-gradient(135deg, #C59A45, #F5E3BD));
        border-radius: 3px;
    }

    /* Prevent bottom bar from covering content on mobile */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    }
}



