/* Design System & Root Variables */
:root {
    color-scheme: light;
    --bg-dark: #ffffff;
    --bg-dark-gradient: linear-gradient(180deg, #ffffff 0%, #fdfdfc 35%, #f8fafc 100%);
    
    --card-bg: rgba(255, 255, 255, 0.96);
    --card-border: rgba(226, 232, 240, 0.85);
    --card-border-active: rgba(219, 39, 119, 0.45);
    
    /* Authentic Sāmují Logo Palette */
    --accent-cyan: #0d9488;          /* Peacock Teal / Turquoise */
    --accent-purple: #db2777;        /* Vibrant Batik Magenta / Rose */
    --accent-magenta: #e11d48;       /* Deep Batik Floral Rose */
    --accent-gold: #d97706;          /* Temple Gold (Lord Ganesha Gopuram Arch) */
    --accent-gold-dark: #b45309;     /* Deep Gold Accents */
    --accent-red: #dc2626;           /* Auspicious Chinese Vermilion Seal Red */
    --accent-ink: #18181b;           /* Dynamic Chinese Calligraphy Ink Black */
    --whatsapp-green: hsl(142, 70%, 40%);
    --whatsapp-green-hover: hsl(142, 75%, 34%);
    
    --brand-gold: #d97706;
    --brand-magenta: #db2777;
    --brand-teal: #0d9488;
    --brand-ink: #18181b;
    --brand-seal: #dc2626;
    --brand-gradient: linear-gradient(135deg, #d97706 0%, #db2777 50%, #0d9488 100%);
    --brand-gradient-warm: linear-gradient(135deg, #d97706 0%, #e11d48 100%);
    
    --text-primary: #18181b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --shadow-cyan: 0 8px 30px rgba(13, 148, 136, 0.12);
    --shadow-purple: 0 8px 30px rgba(219, 39, 119, 0.12);
    --shadow-gold: 0 8px 30px rgba(217, 119, 6, 0.18);
    --shadow-whatsapp: 0 8px 25px hsla(142, 70%, 45%, 0.25);
    --shadow-text: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03);
    --shadow-card-hover: 0 16px 36px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    
    --font-heading: 'Cinzel', serif;
    --font-heading-fancy: 'Cinzel Decorative', serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* Global Reset & Base Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    color-scheme: light;
    height: 100%;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    background-image: var(--bg-dark-gradient);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* Cosmic Background */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    background-color: var(--sparkle-color, hsl(45, 100%, 65%));
    border-radius: 50%;
    animation: twinkle var(--duration, 4s) infinite ease-in-out;
    opacity: var(--opacity, 0.7);
    filter: drop-shadow(0 0 2px var(--sparkle-color, hsl(45, 100%, 65%)));
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.7) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.3) rotate(180deg); }
}

.cosmic-glow {
    position: fixed;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vmax;
    height: 90vmax;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.035) 0%, rgba(219, 39, 119, 0.03) 35%, rgba(13, 148, 136, 0.02) 65%, transparent 80%);
    z-index: 0;
    pointer-events: none;
}

/* Layout Framework */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    z-index: 1;
}

/* Header & Logo styling */
.app-header {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 1.5rem 2.5rem;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    cursor: pointer;
}

.floating-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(217, 119, 6, 0.2));
    animation: floatLogo 6s infinite ease-in-out;
}

.samuji-header-logo {
    height: 44px;
    width: auto;
    max-width: 175px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.06));
    transition: transform 0.25s ease, filter 0.25s ease;
    display: block;
}

.samuji-header-logo:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 14px rgba(219, 39, 119, 0.25));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-subtitle {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--accent-gold);
    text-transform: uppercase;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-magenta) 50%, var(--brand-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--shadow-text);
}

.nav-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.nav-btn {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: var(--transition-fast);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.nav-btn .nav-icon {
    flex-shrink: 0;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.nav-btn:hover .nav-icon {
    transform: scale(1.1);
    opacity: 1;
}

.nav-btn .nav-icon-emoji {
    font-size: 1.05rem;
    line-height: 1;
}

.nav-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn.btn-account-active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.28) 0%, rgba(56, 189, 248, 0.28) 100%) !important;
    border: 1px solid rgba(168, 85, 247, 0.6) !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
}

.nav-btn.btn-account-active:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.45) 0%, rgba(56, 189, 248, 0.45) 100%) !important;
    border-color: rgba(168, 85, 247, 0.9) !important;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.55);
}

.nav-logout-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-logout-btn:hover {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}

/* Navigation Mobile Toggle Button */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    z-index: 1002;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-mobile-toggle:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.nav-mobile-toggle .hamburger-line {
    display: block;
    width: 20px;
    height: 2.5px;
    background: #f8fafc;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.nav-mobile-toggle.active {
    background: rgba(168, 85, 247, 0.25);
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.nav-mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile backdrop for nav overlay */
.nav-backdrop-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-backdrop-overlay.active {
    display: block;
    opacity: 1;
}

/* Page Containers & Router Transitions */
.page {
    display: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 1rem 2.5rem 4rem 2.5rem;
    z-index: 2;
}

.page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
}

/* Page 1: Homepage Styles */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
    margin-bottom: 4rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: hsla(276, 100%, 60%, 0.1);
    border: 1px solid hsla(276, 100%, 60%, 0.3);
    color: var(--accent-purple);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: pulseGlow 2s infinite ease-in-out;
}

.hero-title {
    font-family: var(--font-heading-fancy);
    font-size: 3.25rem;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-cyan) 75%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.7;
    max-width: 600px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 24px;
    padding: 8px;
    background: linear-gradient(135deg, var(--card-border) 0%, var(--card-border-active) 100%);
    box-shadow: var(--shadow-purple);
    animation: floatBook 6s infinite ease-in-out;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.hero-image-wrapper:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 20px 45px rgba(138, 43, 226, 0.25);
}

.hero-image {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    display: block;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.hero-image-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, hsla(180, 100%, 50%, 0.15) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Features Section & Illustrated Cards */
.features-section {
    padding: 3rem 0;
    margin-bottom: 4.5rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--text-primary) 60%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem;
}

.feature-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Illustrated Feature Cards */
.feature-card.feature-card-illustrated {
    position: relative;
    border-radius: 26px;
    padding: 0;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 16px 40px rgba(25, 35, 75, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s ease;
    cursor: default;
}

.feature-card.feature-card-illustrated:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 55px rgba(25, 35, 75, 0.16), 0 0 35px hsla(272, 75%, 48%, 0.14);
}

.feature-card.feature-card-illustrated#feature-plots:hover {
    border-color: hsla(192, 95%, 38%, 0.5);
    box-shadow: 0 25px 55px rgba(0, 180, 216, 0.2), 0 0 35px hsla(192, 95%, 48%, 0.18);
}

.feature-card.feature-card-illustrated#feature-pdf:hover {
    border-color: hsla(272, 75%, 48%, 0.5);
    box-shadow: 0 25px 55px rgba(138, 43, 226, 0.2), 0 0 35px hsla(272, 75%, 48%, 0.18);
}

.feature-card.feature-card-illustrated#feature-characters:hover {
    border-color: hsla(322, 75%, 48%, 0.5);
    box-shadow: 0 25px 55px rgba(214, 51, 132, 0.2), 0 0 35px hsla(322, 75%, 48%, 0.18);
}

.feature-card.feature-card-illustrated#feature-scenarios:hover {
    border-color: hsla(40, 95%, 48%, 0.5);
    box-shadow: 0 25px 55px rgba(255, 170, 0, 0.2), 0 0 35px hsla(40, 95%, 48%, 0.18);
}

/* Background image wrapper */
.feature-card-bg-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.feature-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    filter: brightness(0.97) saturate(1.06);
}

.feature-card.feature-card-illustrated:hover .feature-card-img {
    transform: scale(1.07);
    filter: brightness(1.02) saturate(1.12);
}

/* Atmospheric Overlay */
.feature-card-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg, 
        rgba(10, 15, 30, 0) 0%, 
        rgba(10, 15, 30, 0.04) 35%, 
        rgba(255, 255, 255, 0.45) 65%, 
        rgba(255, 255, 255, 0.96) 100%
    );
}

/* Top floating pill badge */
.feature-card-top-bar {
    position: relative;
    z-index: 3;
    padding: 1.35rem 1.35rem 0.5rem;
    display: flex;
    justify-content: flex-start;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-card.feature-card-illustrated:hover .feature-pill {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.feature-pill.cyan {
    color: hsl(192, 95%, 32%);
    border: 1.5px solid rgba(0, 180, 216, 0.45);
}

.feature-pill.purple {
    color: hsl(272, 75%, 40%);
    border: 1.5px solid rgba(138, 43, 226, 0.45);
}

.feature-pill.magenta {
    color: hsl(322, 75%, 40%);
    border: 1.5px solid rgba(214, 51, 132, 0.45);
}

.feature-pill.gold {
    color: hsl(35, 95%, 34%);
    border: 1.5px solid rgba(255, 170, 0, 0.5);
}

/* Frosted glass content card */
.feature-card-content {
    position: relative;
    z-index: 3;
    margin: 1.2rem;
    padding: 1.45rem 1.6rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1), 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.feature-card.feature-card-illustrated:hover .feature-card-content {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(0, 0, 0, 0.05);
}

.feature-card-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.feature-card-illustrated .feature-icon-box {
    margin-bottom: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease;
}

.feature-card.feature-card-illustrated:hover .feature-icon-box {
    transform: scale(1.08) rotate(3deg);
}

.feature-icon-box.cyan {
    background: hsla(192, 95%, 48%, 0.12);
    color: var(--accent-cyan);
    border: 1px solid hsla(192, 95%, 48%, 0.28);
}

.feature-icon-box.purple {
    background: hsla(276, 100%, 60%, 0.12);
    color: var(--accent-purple);
    border: 1px solid hsla(276, 100%, 60%, 0.28);
}

.feature-icon-box.magenta {
    background: hsla(320, 100%, 60%, 0.12);
    color: var(--accent-magenta);
    border: 1px solid hsla(320, 100%, 60%, 0.28);
}

.feature-icon-box.gold {
    background: hsla(45, 100%, 55%, 0.14);
    color: var(--accent-gold-dark);
    border: 1px solid hsla(45, 100%, 55%, 0.3);
}

.feature-icon-box.teal {
    background: hsla(168, 85%, 44%, 0.12);
    color: #0d9488;
    border: 1px solid hsla(168, 85%, 44%, 0.28);
}

.feature-card-illustrated .feature-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    line-height: 1.3;
}

.feature-card-illustrated .feature-desc {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.6;
    font-weight: 400;
}

/* ==========================================================================
   HOMEPAGE DEDICATION SPOTLIGHT & BOOK BACK-COVER SHOWCASE
   ========================================================================== */

.dedication-feature-spotlight {
    position: relative;
    margin: 3.5rem 0 2.5rem 0;
    padding: 3.5rem;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 1.5px solid rgba(251, 191, 36, 0.35);
    box-shadow: 0 16px 45px rgba(20, 30, 60, 0.08), 0 0 35px rgba(251, 191, 36, 0.08);
    overflow: hidden;
}

.dedication-feature-spotlight::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -100px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.14) 0%, rgba(236, 72, 153, 0.08) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.dedication-spotlight-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 3.5rem;
    align-items: center;
}

.dedication-spotlight-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-dedication-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18) 0%, rgba(168, 85, 247, 0.22) 100%);
    border: 1px solid rgba(244, 114, 182, 0.45);
    color: #db2777 !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.15);
    margin-bottom: 0.75rem;
}

.dedication-spotlight-title {
    font-family: var(--font-heading);
    font-size: 2.15rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin: 0.5rem 0 1rem 0;
    letter-spacing: 0.01em;
}

.dedication-spotlight-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 580px;
}

.dedication-spotlight-desc strong {
    color: var(--text-primary);
    font-weight: 600;
}

.dedication-spotlight-desc em {
    color: #b45309;
    font-style: italic;
}

.dedication-spotlight-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

.dedication-spotlight-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.95rem 1.65rem;
    font-weight: 600;
    font-size: 1.02rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #1a1a2e;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.35);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dedication-spotlight-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.45);
}

.dedication-free-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #059669;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Spotlight Book Back Cover Card (Visual Showcase) */
.dedication-spotlight-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.spotlight-back-cover-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    background: linear-gradient(155deg, #151d34 0%, #0c1222 60%, #080c18 100%);
    border: 1.5px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 35px rgba(251, 191, 36, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    padding: 2.25rem 2rem 1.75rem 2.5rem;
    transform: perspective(1000px) rotateY(-4deg) rotateX(1deg);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    overflow: hidden;
    color: #f8fafc;
}

.spotlight-back-cover-card:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-4px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55), 0 0 45px rgba(251, 191, 36, 0.18);
}

/* Hardcover Spine Edge Effect */
.spotlight-cover-spine,
.back-cover-spine-edge {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 16px;
    border-radius: 20px 0 0 20px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0%, rgba(0, 0, 0, 0.45) 65%, rgba(255, 255, 255, 0.08) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset -2px 0 6px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.spotlight-cover-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.spotlight-cover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4rem;
    gap: 0.75rem;
}

.spotlight-cover-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fbbf24;
}

.spotlight-cover-free-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(251, 191, 36, 0.16);
    color: #fef08a;
    border: 1px solid rgba(251, 191, 36, 0.35);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.spotlight-cover-stars {
    text-align: center;
    font-size: 1.15rem;
    letter-spacing: 0.35rem;
    color: #fbbf24;
    margin: 0.25rem 0 1rem 0;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

.spotlight-cover-message {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.55;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
    text-align: center;
    color: #fffbeb;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(251, 191, 36, 0.04) 100%);
    border: 1px dashed rgba(251, 191, 36, 0.35);
    border-radius: 14px;
    padding: 1.35rem 1.25rem;
    margin-bottom: 1.1rem;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.25), 0 4px 15px rgba(0, 0, 0, 0.2);
    text-shadow: 0 2px 12px rgba(251, 191, 36, 0.2);
}

.spotlight-cover-sub {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.75);
    margin-bottom: 1.75rem;
}

.spotlight-cover-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    gap: 1rem;
    margin-top: auto;
}

.spotlight-cover-brand {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(148, 163, 184, 0.75);
    text-transform: uppercase;
    line-height: 1.4;
    max-width: 60%;
}

.spotlight-cover-barcode {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.barcode-lines {
    width: 86px;
    height: 30px;
    background: repeating-linear-gradient(
        90deg,
        #0f172a 0px,
        #0f172a 2px,
        transparent 2px,
        transparent 4px,
        #0f172a 4px,
        #0f172a 7px,
        transparent 7px,
        transparent 9px,
        #0f172a 9px,
        #0f172a 10px,
        transparent 10px,
        transparent 13px,
        #0f172a 13px,
        #0f172a 16px,
        transparent 16px,
        transparent 18px,
        #0f172a 18px,
        #0f172a 19px,
        transparent 19px,
        transparent 21px
    );
    background-color: #f8fafc;
    padding: 2px 4px;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.spotlight-cover-barcode span,
.back-cover-barcode span {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: #cbd5e1;
    font-weight: 600;
}

/* Dashboard Order Form Step 3: Live Back-Cover Preview */
.back-cover-preview-card {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.back-cover-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.back-cover-preview-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.back-cover-preview-note {
    font-size: 0.72rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 6px;
}

.back-cover-mockup {
    position: relative;
    border-radius: 16px;
    background: linear-gradient(155deg, #151d34 0%, #0c1222 60%, #080c18 100%);
    border: 1.5px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    padding: 1.75rem 1.5rem 1.5rem 2rem;
    overflow: hidden;
    color: #f8fafc;
}

.back-cover-mockup .back-cover-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.back-cover-stars {
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 0.3rem;
    color: #fbbf24;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

.back-cover-message {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.55;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
    text-align: center;
    color: #fffbeb;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(251, 191, 36, 0.04) 100%);
    border: 1px dashed rgba(251, 191, 36, 0.35);
    border-radius: 12px;
    padding: 1.2rem 1rem;
    margin-bottom: 1.25rem;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.25);
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.2);
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-cover-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    gap: 1rem;
}

.back-cover-brand {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(148, 163, 184, 0.75);
    text-transform: uppercase;
    line-height: 1.4;
    max-width: 60%;
}

.back-cover-barcode {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

/* Dedication Spotlight Responsive Breakpoints */
@media (max-width: 992px) {
    .dedication-feature-spotlight {
        padding: 2.75rem 2.25rem;
        margin: 2.5rem 0;
    }
    .dedication-spotlight-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .dedication-spotlight-text {
        align-items: center;
        text-align: center;
    }
    .dedication-spotlight-desc {
        max-width: 100%;
    }
    .dedication-spotlight-actions {
        justify-content: center;
    }
    .spotlight-back-cover-card {
        transform: none !important;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .dedication-feature-spotlight {
        padding: 2rem 1.25rem;
        margin: 2rem 0;
        border-radius: 20px;
    }
    .dedication-spotlight-title {
        font-size: 1.55rem;
        line-height: 1.3;
        margin: 0.85rem 0;
    }
    .dedication-spotlight-desc {
        font-size: 0.94rem;
        line-height: 1.65;
        margin-bottom: 1.5rem;
    }
    .dedication-spotlight-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }
    .dedication-spotlight-actions .btn-primary {
        width: 100%;
        padding: 0.9rem 1.25rem;
        font-size: 0.96rem;
    }
    .dedication-free-tag {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .spotlight-back-cover-card {
        padding: 1.6rem 1.15rem 1.4rem 1.65rem;
        max-width: 100%;
        border-radius: 16px;
    }
    .spotlight-cover-message {
        font-size: 1.1rem;
        padding: 1.15rem 1rem;
    }
    .spotlight-cover-brand {
        font-size: 0.6rem;
        max-width: 55%;
    }
}

@media (max-width: 480px) {
    .dedication-feature-spotlight {
        padding: 1.75rem 1rem;
    }
    .badge-dedication-pill {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
    .dedication-spotlight-title {
        font-size: 1.35rem;
    }
    .spotlight-cover-message {
        font-size: 1rem;
        line-height: 1.5;
    }
    .barcode-lines {
        width: 75px;
        height: 26px;
    }
}

/* Call to Action Banner */
.cta-banner {
    padding: 4rem 3rem;
    text-align: center;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid hsla(45, 100%, 55%, 0.2);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, hsla(45, 100%, 55%, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.cta-banner-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-banner-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-banner-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Page 2: Sample Request & Claim Credit Page (Form & Dashboard) */
.page-sample, .page-claim-credit {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

.auth-container {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
}

/* Big Credit Display Top Banner */
.credit-banner-top {
    position: relative;
    padding: 2.2rem 2.5rem;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 12px 40px rgba(251, 191, 36, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.credit-banner-top::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, rgba(56, 189, 248, 0.05) 50%, transparent 70%);
    pointer-events: none;
    filter: blur(40px);
}

.credit-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.user-avatar-icon {
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 50%;
}

.user-email-text {
    font-weight: 700;
    color: #ffffff !important;
    font-size: 1rem;
}

.session-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.5);
}

.user-session-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.user-small-logout-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 2px 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.user-small-logout-link:hover {
    color: #ef4444;
}

.user-small-logout-link svg {
    flex-shrink: 0;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.5);
}

.credit-main-display {
    text-align: center;
    padding: 0.5rem 0;
}

.credit-title-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.4rem;
}

.credit-value-huge {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24 20%, #f59e0b 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(251, 191, 36, 0.3);
    line-height: 1.1;
    margin-bottom: 0.6rem;
}

.credit-subtitle-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: rgba(251, 191, 36, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.sample-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.sample-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--text-primary) 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sample-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 300;
}

/* Auth Navigation Tabs & Mode Switcher */
.auth-tabs {
    display: flex;
    gap: 0.4rem;
    background: #f1f5f9;
    padding: 0.35rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.auth-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-tab-btn:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.auth-tab-btn.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    border: 1px solid rgba(217, 119, 6, 0.3) !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.28) !important;
}

#tab-login.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important;
    border: 1px solid rgba(13, 148, 136, 0.3) !important;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.28) !important;
}

.auth-toggle-container {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-switch-link {
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.auth-switch-link:hover {
    color: var(--accent-gold) !important;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.form-container {
    padding: 3rem;
    border-radius: 28px;
}

.form-group {
    margin-bottom: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-label {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-label-hint {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

.form-helper {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 0.2rem;
}

/* Custom inputs styling */
.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 0.95rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.98rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px hsla(192, 95%, 38%, 0.12), inset 0 1px 1px rgba(0, 0, 0, 0.02);
    background: #ffffff;
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.75;
}

.form-input.error, .form-textarea.error, .form-select.error {
    border-color: var(--accent-red);
    box-shadow: 0 0 15px hsla(0, 100%, 60%, 0.15);
}

/* Dynamic Characters Section */
.characters-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.character-count-badge {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.character-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.character-row {
    display: grid;
    grid-template-columns: auto 1.2fr 1fr 1.1fr 0.7fr auto;
    gap: 0.85rem;
    align-items: flex-end;
    padding: 1.2rem;
    border-radius: 16px;
    background: rgba(215, 225, 235, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: characterEnter 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    position: relative;
}

@keyframes characterEnter {
    0% { opacity: 0; transform: scale(0.9) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.character-row-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.5rem;
    margin-bottom: 0.2rem;
}

.char-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.char-price {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(212, 163, 89, 0.12);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(212, 163, 89, 0.25);
}

.character-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.character-field label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Dropdown select custom style styling for options */
.form-select option {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

/* Remove Character Button */
.btn-remove {
    background: rgba(255, 50, 50, 0.1);
    border: 1px solid rgba(255, 50, 50, 0.2);
    color: var(--accent-red);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
}

.btn-remove:hover {
    background: var(--accent-red);
    color: white;
    box-shadow: 0 0 10px hsla(0, 100%, 60%, 0.3);
}

/* Stylized Add Character Button */
.btn-add-character {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: 1px dashed var(--accent-cyan);
    background: hsla(180, 100%, 50%, 0.03);
    color: var(--accent-cyan);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: auto;
    align-self: flex-start;
}

.btn-add-character:hover {
    background: hsla(180, 100%, 50%, 0.08);
    border-style: solid;
    transform: translateY(-1px);
    box-shadow: var(--shadow-cyan);
}

.btn-add-character:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: var(--text-muted);
    color: var(--text-muted);
    background: transparent;
    box-shadow: none;
    transform: none;
}

/* Book Size and Format Options Group styling */
#book-options-group {
    margin-bottom: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.options-summary-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.6rem;
    border-radius: 16px;
    background: rgba(215, 225, 235, 0.25);
    border: 1px solid rgba(0, 180, 216, 0.15);
    transition: var(--transition-smooth);
}

.options-summary-container:hover {
    background: rgba(215, 225, 235, 0.35);
    border-color: rgba(138, 43, 226, 0.25);
}

.options-summary-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.summary-specs {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.summary-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.btn-customize {
    background: rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(138, 43, 226, 0.2);
    color: var(--accent-purple);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-customize:hover {
    background: var(--accent-purple);
    color: #ffffff;
    box-shadow: var(--shadow-purple);
}

.customize-icon {
    transition: transform 0.3s ease;
}

.options-summary-container.expanded .customize-icon {
    transform: rotate(180deg);
}

.options-details-container {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(215, 225, 235, 0.1);
    border: 1px solid rgba(0, 180, 216, 0.08);
    margin-top: 0.5rem;
    animation: characterEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.options-details-container.show {
    display: flex;
}

.options-subgroup {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.options-subgroup-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

.options-grid {
    display: grid;
    gap: 0.8rem;
}

.size-grid {
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 0.85rem;
}

.format-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.option-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    user-select: none;
}

.option-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.08);
}

.option-card.active {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.05) 0%, rgba(0, 180, 216, 0.05) 100%);
    border-color: var(--accent-purple);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.12);
}

.option-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.option-card-price-diff {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.option-card.active .option-card-price-diff {
    color: var(--accent-purple);
}

/* General button layouts */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.1rem 2.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn span {
    z-index: 2;
}

.btn-icon {
    width: 20px;
    height: 20px;
    z-index: 2;
    transition: var(--transition-smooth);
}

/* Primary buttons with gold cosmic gradient */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    border: none;
    color: hsl(230, 24%, 6%);
    box-shadow: var(--shadow-gold);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    opacity: 0;
    z-index: 1;
    transition: var(--transition-smooth);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-purple);
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

/* WhatsApp branded Submit Button */
.btn-whatsapp-submit {
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-green-hover) 100%);
    border: none;
    color: #fff;
    width: 100%;
    font-size: 1.15rem;
    padding: 1.2rem;
    border-radius: 14px;
    box-shadow: var(--shadow-whatsapp);
    margin-top: 1rem;
}

.btn-whatsapp-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, hsl(142, 80%, 52%) 0%, hsl(142, 85%, 43%) 100%);
    opacity: 0;
    z-index: 1;
    transition: var(--transition-smooth);
}

.btn-whatsapp-submit:hover::before {
    opacity: 1;
}

.btn-whatsapp-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px hsla(142, 70%, 45%, 0.45);
}

.btn-whatsapp-submit:active {
    transform: translateY(-1px);
}

.btn-whatsapp-submit .btn-icon {
    fill: currentColor;
    width: 24px;
    height: 24px;
}

/* Footer Styling */
.app-footer {
    width: 100%;
    max-width: 1480px;
    margin: auto auto 0 auto;
    padding: 3rem 2.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-muted);
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    opacity: 0.7;
}

.footer-logo-img {
    width: 32px;
    height: 32px;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.glowing-text {
    color: var(--accent-cyan);
    text-shadow: 0 0 5px hsla(180, 100%, 50%, 0.3);
}

/* Animations */
@keyframes floatLogo {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(2deg); }
}

@keyframes floatBook {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
    50% { transform: translateY(-10px) scale(1.01) rotate(-1.5deg); }
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.6; box-shadow: 0 0 8px var(--accent-cyan); }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 15px var(--accent-cyan); }
}

/* Otter Superhero placements */
.hero-otter-container {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1.8rem;
    animation: floatLogo 6s infinite ease-in-out;
}

.hero-otter {
    width: 76px;
    height: 76px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.otter-speech-bubble {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--card-border-active);
    padding: 0.8rem 1.2rem;
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.otter-speech-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-left: 1px solid var(--card-border-active);
    border-bottom: 1px solid var(--card-border-active);
}

/* Meet Otter Section */
.meet-author-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: center;
    padding: 3.5rem;
    margin-bottom: 4rem;
    background: var(--card-bg);
}

.author-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.author-otter-wrapper {
    position: relative;
    animation: floatBook 6s infinite ease-in-out;
}

.author-otter-img {
    width: 170px;
    height: 170px;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.08));
}

.quill-pen-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 2rem;
    background: #ffffff;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--card-border-active);
    animation: floatLogo 4s infinite ease-in-out;
}

.author-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.author-badge {
    background: hsla(272, 75%, 48%, 0.08);
    color: var(--accent-purple);
    border: 1px solid hsla(272, 75%, 48%, 0.18);
}

.author-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.author-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
}

/* Sample Page Otter Status */
.sample-otter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.sample-otter-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.06));
    animation: floatLogo 5s infinite ease-in-out;
}

.writing-status-bubble {
    background: #ffffff;
    border: 1px solid var(--card-border);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-cyan);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: var(--transition-smooth);
}

.writing-status-bubble.active-writing {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.08);
    transform: scale(1.03);
}

.writing-status-bubble.valid-status {
    border-color: var(--whatsapp-green);
    color: var(--whatsapp-green);
    box-shadow: 0 4px 20px rgba(34, 139, 34, 0.08);
    transform: scale(1.05);
}

.writing-status-bubble.error-status {
    border-color: var(--accent-red);
    color: var(--accent-red);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.08);
    transform: scale(1.02);
}

/* Popular Adventure Themes / Example of Book Ideas Section */
.themes-section {
    padding: 2rem 0;
    margin-bottom: 4rem;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.theme-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    position: relative;
}

.theme-card:hover {
    border-color: var(--card-border-active);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08), 0 0 20px hsla(272, 75%, 48%, 0.08);
}

.theme-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.theme-img-front,
.theme-img-open {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.theme-img-front {
    z-index: 1;
    opacity: 1;
}

.theme-img-open {
    z-index: 2;
    opacity: 0;
    transform: scale(1.05);
}

.theme-card:hover .theme-img-front {
    opacity: 0;
}

.theme-card:hover .theme-img-open {
    opacity: 1;
    transform: scale(1);
}

.theme-card:hover .theme-image:only-child {
    transform: scale(1.05);
}

.theme-card .theme-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.theme-card .theme-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsiveness Settings */
@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .meet-author-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .app-header {
        padding: 1.5rem 1rem;
    }
    
    .page {
        padding: 1rem 1rem 3rem 1rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
    }
    
    .character-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .btn-remove {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .themes-grid {
        grid-template-columns: 1fr;
    }

    .hero-otter-container {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .otter-speech-bubble::before {
        left: 50%;
        top: -7px;
        transform: translateX(-50%) rotate(45deg);
        border-left: 1px solid var(--card-border-active);
        border-top: 1px solid var(--card-border-active);
        border-bottom: none;
    }
}

/* ================= CUSTOM MODAL & PRICE HIDDEN STYLING ================= */
.char-price,
.summary-price,
.option-card-price-diff {
    display: none !important;
}

/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
    box-sizing: border-box;
}

.modal-backdrop.show,
.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Content */
.modal-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    max-width: 480px;
    width: 90%;
    padding: 2.2rem;
    border-radius: 24px;
    position: relative;
    color: var(--text-primary);
    margin: auto;
    box-sizing: border-box;
}

.modal-backdrop.show .modal-content,
.modal-backdrop.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Close button */
.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
}

.modal-close:hover {
    background: rgba(255, 50, 50, 0.1);
    color: var(--accent-red);
    transform: rotate(90deg);
}

/* ================= PAYNOW PURCHASE MODAL RESPONSIVE STYLES ================= */
.paynow-modal-dialog {
    max-width: 760px !important;
    width: 95% !important;
    max-height: min(92vh, 92dvh) !important;
    padding: 1.25rem 1.4rem !important;
    border-radius: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    text-align: left !important;
    margin: auto !important;
}

.paynow-modal-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 10;
}

/* Header */
.paynow-header {
    margin-bottom: 0.75rem;
    padding-right: 2.2rem;
}

.paynow-header-badge-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.paynow-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    filter: drop-shadow(0 4px 10px rgba(124, 58, 237, 0.25));
    flex-shrink: 0;
}

.paynow-header-text {
    flex: 1;
    min-width: 0;
}

.paynow-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.paynow-header-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
}

.paynow-instant-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.18rem 0.55rem;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    white-space: nowrap;
}

.paynow-header-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0.2rem 0 0;
    line-height: 1.35;
}

/* Body Container - 2 columns on desktop/tablet, 1 column on mobile */
.paynow-body-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1rem;
    align-items: start;
}

/* Left Column */
.paynow-col-left {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.paynow-pack-box {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.paynow-pack-main {
    min-width: 0;
    flex: 1;
}

.paynow-pack-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.paynow-pack-subtitle {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.25;
    margin-top: 2px;
}

.paynow-pack-promo {
    font-size: 0.74rem;
    color: #10b981;
    font-weight: 600;
    margin-top: 2px;
}

.paynow-pack-price-wrap {
    text-align: right;
    flex-shrink: 0;
}

.paynow-pack-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-purple);
    line-height: 1.1;
}

.paynow-pack-price-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.paynow-qr-wrapper {
    text-align: center;
    background: #ffffff;
    padding: 0.65rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.paynow-qr-img {
    max-width: 190px;
    width: 100%;
    height: auto;
    max-height: 190px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.paynow-qr-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    line-height: 1.25;
}

/* Right Column */
.paynow-col-right {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
}

.paynow-reference-card {
    background: var(--bg-surface, #ffffff);
    border: 1.5px dashed #8b5cf6;
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    text-align: left;
}

.paynow-reference-header {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.35;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}

.paynow-ref-code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: rgba(124, 58, 237, 0.06);
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.paynow-ref-code-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-primary);
}

.paynow-ref-code-box {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.paynow-ref-code {
    background: #7c3aed;
    color: #ffffff !important;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
}

.paynow-btn-copy {
    padding: 0.28rem 0.65rem !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
}

.paynow-ref-warning {
    font-size: 0.72rem;
    color: #dc2626;
    font-weight: 600;
    margin-top: 0.4rem;
    line-height: 1.3;
}

.paynow-instruction-box {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    border-left: 3px solid #8b5cf6;
}

.paynow-email-code {
    background: rgba(0, 0, 0, 0.06);
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 600;
    color: #6366f1;
}

.paynow-feedback-box {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.35;
}

.paynow-actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.15rem;
}

.paynow-btn-whatsapp {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    border-radius: 10px !important;
}

.paynow-btn-close {
    width: 100% !important;
    padding: 0.45rem 0.8rem !important;
    font-size: 0.82rem !important;
    border-radius: 8px !important;
}

/* Mobile Responsiveness for PayNow Modal */
@media (max-width: 680px) {
    .paynow-modal-dialog {
        width: 96% !important;
        max-width: 440px !important;
        padding: 1rem 0.9rem !important;
        max-height: 94dvh !important;
        border-radius: 18px !important;
    }

    .paynow-header {
        margin-bottom: 0.5rem;
        padding-right: 1.8rem;
    }

    .paynow-header-icon {
        width: 36px;
        height: 36px;
    }

    .paynow-header-title {
        font-size: 1.05rem;
    }

    .paynow-body-container {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .paynow-qr-wrapper {
        padding: 0.5rem;
    }

    .paynow-qr-img {
        max-width: 160px;
        max-height: 160px;
    }

    .paynow-reference-card {
        padding: 0.55rem 0.75rem;
    }

    .paynow-instruction-box {
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
    }

    .paynow-btn-whatsapp {
        padding: 0.6rem 0.85rem !important;
        font-size: 0.84rem !important;
    }
}

/* Header */
.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.modal-otter-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 180, 216, 0.25));
    animation: floatLogo 6s infinite ease-in-out;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0.2rem 0;
}

.free-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    box-shadow: var(--shadow-cyan);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 8px hsla(192, 95%, 38%, 0.3); }
    50% { box-shadow: 0 0 16px hsla(272, 75%, 48%, 0.5); }
}

/* Body */
.modal-body {
    margin-bottom: 1.8rem;
}

.promo-banner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 180, 216, 0.06);
    border: 1px solid rgba(0, 180, 216, 0.12);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.promo-banner .star-icon {
    font-size: 1.2rem;
}

.breakdown-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.9rem;
    border-bottom: 1px dashed rgba(0, 180, 216, 0.2);
    padding-bottom: 0.4rem;
}

.price-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.breakdown-item .item-label {
    color: var(--text-secondary);
}

.breakdown-item .item-price {
    font-weight: 600;
}

/* Promo Section */
.promo-section {
    background: rgba(212, 163, 89, 0.07);
    border: 1px dashed rgba(212, 163, 89, 0.35);
    border-radius: 16px;
    padding: 1.2rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.promo-badge {
    color: var(--accent-gold-dark);
    font-weight: 700;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.price-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label-total {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-values {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

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

.promo-total {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-gold-dark);
}

.line-through {
    text-decoration: line-through !important;
}

.text-gray-400 {
    color: #9ca3af !important;
}

.text-emerald-600 {
    color: #059669 !important;
}

.font-bold {
    font-weight: 700 !important;
}

/* Action button styling */
.modal-action {
    margin-bottom: 1.8rem;
}

.modal-action .btn {
    width: 100%;
    margin: 0;
}

/* ==========================================================================
   Hero & CTA Button Extensions ("See What's Possible")
   ========================================================================== */
.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
    max-width: 380px;
}

@media (min-width: 768px) {
    .hero-cta-group {
        max-width: 420px;
    }
}

.cta-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.2rem;
    align-items: center;
    justify-content: center;
}

@media (min-width: 600px) {
    .cta-banner-actions {
        flex-direction: row;
    }
}

.btn-glow-purple {
    background: linear-gradient(135deg, hsl(272, 85%, 52%), hsl(322, 80%, 48%));
    color: #ffffff !important;
    border: none;
    box-shadow: 0 6px 20px hsla(272, 75%, 48%, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-glow-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px hsla(272, 75%, 48%, 0.5);
    background: linear-gradient(135deg, hsl(272, 90%, 56%), hsl(322, 85%, 52%));
}

.btn-small {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-success {
    background: hsl(142, 70%, 40%);
    color: #fff;
    border: none;
}
.btn-success:hover {
    background: hsl(142, 75%, 34%);
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: hsl(0, 80%, 45%);
}
.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: hsl(0, 80%, 45%);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Page: See What's Possible Gallery
   ========================================================================== */
.page-gallery {
    padding-top: 2rem;
    padding-bottom: 5rem;
}

.gallery-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 2.5rem auto;
}

.gallery-title {
    font-family: var(--font-heading-fancy);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-primary);
    margin-top: 0.5rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gallery-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin: 2rem 0;
    z-index: 5;
    position: relative;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.25);
    font-weight: 600;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
    gap: 3.5rem;
    margin-top: 1.5rem;
}

/* Book Card */
.book-card {
    position: relative;
    width: 440px;
    height: 440px;
    display: block;
    margin: 0 auto;
    overflow: visible; /* Ensure description can slide out of the boundaries */
}

/* Square Book Image Container (Visible Default View) */
.book-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    z-index: 5;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s, box-shadow 0.35s;
}

.book-card:hover .book-image-container {
    transform: scale(1.02);
    border-color: var(--card-border-active);
    box-shadow: 0 15px 35px rgba(138, 43, 226, 0.15);
}

/* Front & Open Picture Layer */
.book-img-front,
.book-img-open {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.book-img-front {
    z-index: 1;
    opacity: 1;
}

.book-img-open {
    z-index: 2;
    opacity: 0;
    transform: scale(1.05);
}

.book-image-container:hover .book-img-front {
    opacity: 0;
}

.book-image-container:hover .book-img-open {
    opacity: 1;
    transform: scale(1);
}

/* Hover Hint Overlay Badge */
.book-hover-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 10px;
    font-weight: 500;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.book-image-container:hover .book-hover-badge {
    opacity: 0;
}

/* Slide-out Info Panel (Hidden by default, appears on click) */
.book-slide-info {
    position: absolute;
    top: 0;
    width: 310px;
    height: 100%;
    z-index: 50;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
    
    /* Smooth transitions */
    opacity: 0;
    pointer-events: none;
    transform: var(--slide-transform-initial, translateX(-15px));
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-card.popup-open .book-slide-info {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) !important;
}

.book-card.popup-open .book-image-container {
    border-color: var(--accent-gold);
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.28);
}

/* Close button on book details panel */
.book-slide-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
}

.book-slide-close-btn:hover {
    background: rgba(239, 68, 68, 0.85);
    border-color: rgba(239, 68, 68, 1);
    color: #ffffff;
    transform: scale(1.08);
}

.book-slide-handle {
    display: none;
}

/* Mobile responsive layout */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 2.5rem;
    }

    .book-card {
        width: 100% !important;
        max-width: 380px !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        margin: 0 auto !important;
        position: relative !important;
    }

    .book-card.popup-open {
        z-index: 60 !important;
    }

    /* Disable hover scaling & border effects on mobile */
    .book-card:hover .book-image-container {
        transform: none !important;
        border-color: var(--card-border) !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
    }

    /* Disable manual hover image toggling on mobile */
    .book-image-container:hover .book-img-front {
        opacity: unset !important;
    }

    .book-image-container:hover .book-img-open {
        opacity: unset !important;
        transform: unset !important;
    }

    /* Switch cover image with open book view every 2 seconds (4s loop) */
    .book-img-front {
        animation: mobileBookSwitchFront 4s infinite ease-in-out !important;
    }

    .book-img-open {
        animation: mobileBookSwitchOpen 4s infinite ease-in-out !important;
    }

    /* Mobile Popup Location: JUST BELOW the selected book */
    .book-slide-info {
        position: absolute !important;
        top: calc(100% + 10px) !important;
        bottom: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        height: auto !important;
        max-height: 480px !important;
        border-radius: 16px !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        background: #0f172a !important;
        z-index: 100 !important;
        padding: 1.25rem !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65), 0 0 25px rgba(139, 92, 246, 0.25) !important;
        transform: translateY(-8px) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease !important;
    }

    .book-slide-info::before {
        content: '';
        position: absolute;
        top: -7px;
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
        width: 14px;
        height: 14px;
        background: #0f172a;
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        z-index: 1;
    }

    .book-card.popup-open .book-slide-info {
        transform: translateY(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .book-slide-close-btn {
        top: 10px !important;
        right: 10px !important;
        width: 30px !important;
        height: 30px !important;
        background: rgba(255, 255, 255, 0.16) !important;
    }

    .book-title {
        font-size: 1.2rem !important;
        padding-right: 2rem;
    }

    .book-description {
        max-height: 220px !important;
        font-size: 0.9rem !important;
        line-height: 1.55 !important;
        -webkit-overflow-scrolling: touch;
    }

    .book-action-group {
        gap: 0.6rem !important;
        margin-top: 0.75rem !important;
    }

    .book-read-btn {
        padding: 0.75rem 0.6rem !important;
        font-size: 0.9rem !important;
        min-height: 44px !important;
    }
}

@keyframes mobileBookSwitchFront {
    0%, 45% {
        opacity: 1;
        visibility: visible;
    }
    50%, 95% {
        opacity: 0;
        visibility: hidden;
    }
    100% {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes mobileBookSwitchOpen {
    0%, 45% {
        opacity: 0;
        visibility: hidden;
        transform: scale(1.03);
    }
    50%, 95% {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        visibility: hidden;
        transform: scale(1.03);
    }
}

.book-meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.book-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--accent-gold);
    line-height: 1.35;
}

.book-description {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #e2e8f0;
    max-height: 310px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.book-description::-webkit-scrollbar {
    width: 4px;
}

.book-description::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.book-description strong {
    color: #ffffff;
}

.book-read-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    width: 100%;
}

.book-read-btn:hover {
    background: #ffffff;
    color: var(--text-dark);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.18);
}

.book-btn-game {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%) !important;
    border: 1px solid rgba(244, 114, 182, 0.4) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35) !important;
    font-weight: 700 !important;
}

.book-btn-game:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%) !important;
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.5) !important;
    transform: translateY(-1px);
    color: #ffffff !important;
}

.book-btn-browse {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    border: 1px solid #60a5fa !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
    font-weight: 700 !important;
}

.book-btn-browse:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%) !important;
    border-color: #93c5fd !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5) !important;
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* ==========================================================================
   Gift Ideas Page Styles
   ========================================================================== */
.page-gift-ideas {
    padding-top: 2rem;
    padding-bottom: 5rem;
}

/* Occasion Spotlight Card */
.gift-occasion-spotlight {
    max-width: 960px;
    margin: 0 auto 2.5rem auto;
    padding: 2.2rem 2.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.85) 0%, rgba(15, 23, 42, 0.92) 100%);
    border: 1px solid rgba(192, 132, 252, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
}

.gift-occasion-spotlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(192, 132, 252, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.spotlight-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.spotlight-occasion-title {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading-fancy);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #ffffff;
}

.spotlight-occasion-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.spotlight-timing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.spotlight-timing-badge.in-season {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.spotlight-timing-badge.evergreen {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    color: #c084fc;
}

.spotlight-headline {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 700;
    background: linear-gradient(135deg, #fcd34d, #f472b6, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.35;
}

.spotlight-marketing-text {
    font-size: 1.02rem;
    line-height: 1.65;
    color: #e2e8f0;
}

.spotlight-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.spotlight-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* Occasion Filter Pill Overrides */
.gift-ideas-filters .filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.gift-ideas-filters .filter-btn .occasion-pill-badge {
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.gift-ideas-filters .filter-btn.active .occasion-pill-badge {
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

/* Gift Ideas Showcase Section Header */
.gift-ideas-showcase-header {
    text-align: center;
    max-width: 820px;
    margin: 2.8rem auto 1.5rem auto;
    position: relative;
    z-index: 2;
}

.gift-ideas-showcase-header .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    background: hsla(272, 75%, 48%, 0.08);
    border: 1px solid hsla(272, 75%, 48%, 0.25);
    color: var(--accent-purple);
}

.gift-ideas-showcase-header .gift-showcase-title {
    font-family: var(--font-heading-fancy, var(--font-heading));
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--text-primary);
    margin-top: 0.3rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gift-ideas-showcase-header .gift-showcase-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto;
}

/* Book Card Occasions Badge */
.book-occasions-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
}

.book-occasion-tag {
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #e9d5ff;
    font-weight: 600;
}

/* ==========================================================================
   LOGGED IN ACCOUNT NAVIGATION & SUB-PAGES STYLING (LEFT SIDEBAR LAYOUT)
   ========================================================================== */

.dashboard-sidebar-layout {
    display: flex;
    gap: 2.25rem;
    align-items: flex-start;
    margin-top: 1.5rem;
    width: 100%;
}

.dashboard-sidebar {
    width: 320px;
    flex-shrink: 0;
    padding: 1.75rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 243, 255, 0.95) 100%);
    border: 1.5px solid rgba(168, 85, 247, 0.25);
    position: sticky;
    top: 90px;
    box-shadow: 0 12px 36px rgba(124, 58, 237, 0.08), 0 0 20px rgba(236, 72, 153, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.dashboard-main-content {
    flex: 1;
    min-width: 0;
    width: 100%;
}

/* Sidebar User Header (Logged In User Info at Top of Stack) */
.sidebar-user-header {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.user-info-stack {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.logged-in-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: #7c3aed;
    letter-spacing: 0.6px;
    margin-bottom: 2px;
}

.sidebar-user-header .user-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-user-header .user-avatar-icon {
    font-size: 1.3rem;
    background: rgba(124, 58, 237, 0.1);
    border: 1.5px solid rgba(124, 58, 237, 0.25);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-header .user-email-text {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1rem;
    word-break: break-all;
    line-height: 1.3;
}

.sidebar-credit-box {
    background: linear-gradient(135deg, #fffbe0 0%, #fef3c7 100%);
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    border: 1.5px solid #fde047;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

.credit-title-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: #b45309;
    letter-spacing: 0.5px;
    display: block;
}

.credit-value-sidebar {
    font-size: 1.4rem;
    font-weight: 900;
    color: #d97706;
    margin-top: 2px;
}

.sidebar-divider {
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.25), transparent);
    margin: 1.2rem 0;
}

.account-nav-tabs-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.account-nav-tabs-vertical .account-nav-tab {
    width: 100%;
}

.account-nav-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.account-nav-tabs {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.account-nav-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.4rem;
    border-radius: 18px;
    border: 1.5px solid rgba(203, 213, 225, 0.6);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(14px);
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    text-align: left;
    overflow: hidden;
    outline: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.account-nav-tab .nav-tab-title {
    color: inherit;
    font-weight: 700;
}

.account-nav-tab:hover {
    background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%);
    color: var(--accent-purple);
    border-color: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.18);
}

.account-nav-tab:hover .nav-tab-title {
    color: inherit;
}

.account-nav-tab.active {
    color: #4338ca;
    background: linear-gradient(135deg, #ffffff 0%, #f0f5ff 100%);
    border: 2px solid #6366f1;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
}

.account-nav-tab.active .nav-tab-title {
    color: inherit;
    font-weight: 800;
}

/* 1. PROMINENT ORDER A NEW BOOK TAB (FLASHY MAGIC STYLE) */
.account-nav-tab.nav-tab-prominent {
    background: linear-gradient(135deg, #7e22ce 0%, #c026d3 35%, #ec4899 65%, #eab308 100%);
    background-size: 200% 200%;
    animation: magicGradientMove 5s ease infinite alternate;
    color: #ffffff !important;
    border: 2px solid #fbbf24 !important;
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.5), 0 0 20px rgba(251, 191, 36, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.5);
    padding: 0.95rem 1.6rem;
    transform: scale(1.02);
}

.account-nav-tab.nav-tab-prominent .magic-glow-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    opacity: 0.4;
    animation: magicRotate 8s linear infinite;
    pointer-events: none;
}

.account-nav-tab.nav-tab-prominent:hover {
    transform: scale(1.06) translateY(-3px) !important;
    box-shadow: 0 14px 40px rgba(236, 72, 153, 0.7), 0 0 30px rgba(251, 191, 36, 0.9), inset 0 2px 6px rgba(255, 255, 255, 0.7) !important;
}

.account-nav-tab.nav-tab-prominent:hover .nav-tab-title {
    color: #ffffff !important;
}

.account-nav-tab.nav-tab-prominent .nav-tab-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.account-nav-tab.nav-tab-prominent .nav-tab-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.nav-tab-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.45);
    color: #fef08a;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(251, 191, 36, 0.7);
    margin-top: 2px;
}

.nav-tab-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-tab-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-tab-title {
    line-height: 1.2;
}

@keyframes magicGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes magicRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Account Tab Content Transitions */
.account-tab-content {
    display: none;
    animation: fadeInTab 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.account-tab-content.active {
    display: block;
}

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

/* ==========================================================================
   MY ADVENTURE BOOKSHELF & LIBRARY SHOWCASE
   ========================================================================== */

.bookshelf-container {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    position: relative;
    animation: fadeIn 0.4s ease forwards;
}

/* 1. Bookshelf Header Banner */
.bookshelf-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 1.5px solid rgba(234, 179, 8, 0.35);
    border-radius: 24px;
    padding: 2rem 2.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: 0 12px 36px rgba(234, 179, 8, 0.08);
}

.bookshelf-info {
    flex: 1;
    min-width: 280px;
}

.bookshelf-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #b45309;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.6rem;
}

.bookshelf-title {
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0 0 0.4rem 0;
    line-height: 1.2;
}

.bookshelf-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 620px;
    line-height: 1.5;
}

.btn-add-story-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 14px;
    white-space: nowrap;
}

/* 2. Bookshelf Stats & Trophy Progress Row */
.bookshelf-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.bookshelf-stat-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bookshelf-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.bookshelf-stat-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(99, 102, 241, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bookshelf-stat-meta {
    display: flex;
    flex-direction: column;
}

.bookshelf-stat-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.bookshelf-stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* 3. The 3D Wooden Bookshelf Structure */
.bookshelf-cabinet {
    background: linear-gradient(180deg, #2b170c 0%, #1c0d06 100%);
    border: 12px solid #3d1f10;
    border-radius: 28px;
    padding: 2.2rem 2rem 1.5rem 2rem;
    position: relative;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.8), 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.bookshelf-cabinet::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(251, 191, 36, 0.08) 0%, rgba(0, 0, 0, 0.6) 80%);
    pointer-events: none;
}

.bookshelf-cabinet-cornice {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, #5c2e18 0%, #854422 50%, #5c2e18 100%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.bookshelf-shelves-wrap {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    position: relative;
    z-index: 2;
}

.bookshelf-tier {
    display: flex;
    flex-direction: column;
    position: relative;
}

.bookshelf-books-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.8rem;
    padding: 0 1rem;
    align-items: flex-end;
    position: relative;
    z-index: 3;
}

/* 3D Wooden Shelf Plank */
.bookshelf-plank {
    position: relative;
    margin-top: -6px;
    z-index: 2;
}

.bookshelf-plank-surface {
    height: 18px;
    background: linear-gradient(90deg, #421d0d 0%, #683015 25%, #803d1b 50%, #683015 75%, #421d0d 100%);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2), 0 -2px 6px rgba(0, 0, 0, 0.6);
    border-radius: 4px 4px 0 0;
}

.bookshelf-plank-edge {
    height: 22px;
    background: linear-gradient(180deg, #38180a 0%, #240e05 100%);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.7);
    border-radius: 0 0 6px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bookshelf-plate {
    background: linear-gradient(180deg, #d97706 0%, #92400e 100%);
    border: 1px solid #fde68a;
    border-radius: 4px;
    padding: 1px 16px;
    font-size: 0.68rem;
    font-weight: 800;
    color: #fffbeb;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* 4. Standing Hardcover Book on Shelf */
.shelf-book {
    position: relative;
    height: 310px;
    cursor: pointer;
    perspective: 1000px;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

.shelf-book:hover {
    transform: translateY(-24px) scale(1.04) rotate(-1.5deg);
    z-index: 10;
}

.shelf-book-3d {
    width: 100%;
    height: 100%;
    border-radius: 12px 16px 16px 10px;
    border: 2px solid rgba(234, 179, 8, 0.6);
    box-shadow: inset 4px 0 8px rgba(0, 0, 0, 0.5), inset -2px 0 6px rgba(255, 255, 255, 0.15), 6px 12px 24px rgba(0, 0, 0, 0.6);
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    transition: all 0.3s ease;
}

.shelf-book:hover .shelf-book-3d {
    border-color: #fde047;
    box-shadow: inset 4px 0 8px rgba(0, 0, 0, 0.4), 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(234, 179, 8, 0.35);
}

.shelf-book-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 18px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(255, 255, 255, 0.15) 60%, rgba(0, 0, 0, 0.3) 100%);
    border-right: 1px solid rgba(0, 0, 0, 0.3);
    z-index: 4;
}

.shelf-book-shimmer {
    position: absolute;
    top: 0; left: -150%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%);
    transform: skewX(-25deg);
    transition: left 0.75s ease;
    pointer-events: none;
    z-index: 5;
}

.shelf-book:hover .shelf-book-shimmer {
    left: 180%;
}

.shelf-book-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 3;
}

.shelf-book-ref {
    font-size: 0.72rem;
    font-weight: 800;
    color: #fde047;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    letter-spacing: 0.04em;
}

.shelf-book-format-tag {
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 2px 7px;
    border-radius: 6px;
    text-transform: uppercase;
}

.shelf-book-medallion {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 3px solid #fbbf24;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(0,0,0,0.4);
    margin: 0.4rem auto;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.shelf-book-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shelf-book-avatar-emoji {
    font-size: 2.2rem;
}

.shelf-book-title-wrap {
    text-align: center;
    position: relative;
    z-index: 3;
    padding: 0 0.2rem;
}

.shelf-book-title {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fffbeb;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0 0 0.3rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shelf-book-hero-name {
    font-size: 0.74rem;
    font-weight: 600;
    color: #fef08a;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shelf-book-status-pill {
    align-self: center;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    position: relative;
    z-index: 3;
}

.shelf-book-ribbon {
    position: absolute;
    bottom: -10px;
    right: 22px;
    width: 12px;
    height: 24px;
    background: #ef4444;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%);
}

.shelf-book-hover-cta {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    background: rgba(15, 23, 42, 0.92);
    color: #fef08a;
    border: 1.5px solid #fbbf24;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 10;
    transition: all 0.25s ease;
}

.shelf-book:hover .shelf-book-hover-cta {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.shelf-book-shadow {
    position: absolute;
    bottom: -6px;
    left: 10%;
    right: 10%;
    height: 12px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    filter: blur(5px);
    z-index: 1;
    transition: all 0.3s ease;
}

.shelf-book:hover .shelf-book-shadow {
    bottom: -16px;
    filter: blur(9px);
    background: rgba(0, 0, 0, 0.4);
}

/* 5. "+ Next Adventure Slot" (Mystery Book on Shelf) */
.shelf-book-empty .shelf-book-3d {
    background: radial-gradient(circle at 50% 35%, rgba(234, 179, 8, 0.15) 0%, rgba(99, 102, 241, 0.08) 60%, rgba(15, 23, 42, 0.7) 100%);
    border: 2px dashed rgba(234, 179, 8, 0.65);
    box-shadow: inset 0 0 20px rgba(234, 179, 8, 0.1), 0 8px 20px rgba(0, 0, 0, 0.4);
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem;
    gap: 0.6rem;
}

.shelf-book-empty:hover .shelf-book-3d {
    border-color: #fde047;
    border-style: solid;
    background: radial-gradient(circle at 50% 35%, rgba(234, 179, 8, 0.25) 0%, rgba(99, 102, 241, 0.18) 60%, rgba(15, 23, 42, 0.8) 100%);
    box-shadow: inset 0 0 30px rgba(234, 179, 8, 0.25), 0 15px 35px rgba(234, 179, 8, 0.25);
}

.empty-slot-icon {
    font-size: 2.5rem;
    animation: floatIcon 2.5s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.empty-slot-title {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fde047;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.empty-slot-sub {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.35;
    margin-bottom: 0.4rem;
}

.btn-fill-slot {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: 1px solid #fde68a;
    padding: 0.45rem 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shelf-book-empty:hover .btn-fill-slot {
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.6);
}

/* 6. Bookshelf Library Growth Card */
.bookshelf-growth-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 1.5px solid rgba(168, 85, 247, 0.25);
    border-radius: 22px;
    padding: 1.6rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.07);
}

.growth-card-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 1;
    min-width: 280px;
}

.growth-card-otter {
    font-size: 2.4rem;
    flex-shrink: 0;
}

.growth-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.3rem 0;
}

.growth-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.45;
}

.growth-card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* 7. Book Inspection Modal (`bookshelf-modal`) */
.bookshelf-modal-content {
    max-width: 820px;
    width: 95%;
    padding: 2.4rem;
    border-radius: 26px;
}

.bookshelf-modal-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}

.bookshelf-modal-cover-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.bookshelf-modal-3d-cover {
    width: 210px;
    height: 300px;
    border-radius: 12px 18px 18px 10px;
    border: 3px solid #fbbf24;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.bookshelf-modal-right {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.bookshelf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    padding-bottom: 0.8rem;
}

.bookshelf-modal-title {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0 0 0.3rem 0;
    line-height: 1.3;
}

.bookshelf-modal-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    padding: 0.9rem 1.1rem;
    font-size: 0.86rem;
}

.bookshelf-modal-heroes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.3rem;
}

.bookshelf-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

.bookshelf-hero-chip img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .bookshelf-header {
        padding: 1.5rem;
    }
    .bookshelf-cabinet {
        padding: 1.5rem 1rem 1rem 1rem;
        border-width: 8px;
    }
    .bookshelf-books-row {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        gap: 1rem;
    }
    .shelf-book {
        height: 230px;
    }
    .shelf-book-medallion {
        width: 52px;
        height: 52px;
    }
    .shelf-book-title {
        font-size: 0.78rem;
    }
    .bookshelf-modal-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

/* My Book Orders Cards Grid (Legacy & Fallback) */
.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.order-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 1.5px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.06);
}

.order-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 14px 36px rgba(124, 58, 237, 0.12);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.order-ref-badge {
    font-size: 0.85rem;
    font-weight: 800;
    color: #b45309;
    background: #fef3c7;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid #fde047;
}

.order-status-badge {
    font-size: 0.82rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.order-status-badge.status-sent {
    color: #1d4ed8;
    background: #dbeafe;
    border: 1px solid #93c5fd;
}

.order-status-badge.status-acknowledged {
    color: #6d28d9;
    background: #ede9fe;
    border: 1px solid #c4b5fd;
}

.order-status-badge.status-writing {
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde047;
}

.order-status-badge.status-ready {
    color: #0f766e;
    background: #ccfbf1;
    border: 1px solid #5eead4;
}

.order-status-badge.status-shipped {
    color: #0369a1;
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
}

.order-status-badge.status-completed {
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #86efac;
}

.order-status-badge.status-cancelled {
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

/* Order Fulfillment Tracker / Progress Bar */
.order-fulfillment-track {
    margin: 0.9rem 0 0.5rem 0;
    padding: 0.75rem 0.5rem 0.5rem 0.5rem;
    background: rgba(248, 250, 252, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.order-track-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 4px;
}

.order-track-steps::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 16px;
    right: 16px;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.order-track-progress-bar {
    position: absolute;
    top: 12px;
    left: 16px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    z-index: 2;
    transition: width 0.4s ease;
}

.order-track-step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.order-track-step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    transition: all 0.2s ease;
}

.order-track-step.done .order-track-step-dot {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.order-track-step.current .order-track-step-dot {
    background: #3b82f6;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    animation: pulseStepDot 2s infinite;
}

@keyframes pulseStepDot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.order-track-step-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-align: center;
    white-space: nowrap;
}

.order-track-step.done .order-track-step-label {
    color: #0f766e;
}

.order-track-step.current .order-track-step-label {
    color: #1d4ed8;
    font-weight: 800;
}

.order-concept-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

.order-meta-item {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.order-meta-item strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Empty States */
.empty-state-card {
    text-align: center;
    padding: 3.5rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 243, 255, 0.95) 100%);
    border: 2px dashed rgba(168, 85, 247, 0.35);
    border-radius: 24px;
    max-width: 600px;
    margin: 2rem auto;
    box-shadow: 0 12px 36px rgba(124, 58, 237, 0.08);
}

.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.empty-state-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.empty-state-desc {
    color: var(--text-secondary);
    font-size: 1.02rem;
    margin-bottom: 1.8rem;
    line-height: 1.55;
    font-weight: 500;
}

/* Credit Transactions Table */
.transactions-summary-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.tx-stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 243, 255, 0.95) 100%);
    border: 1.5px solid rgba(168, 85, 247, 0.2);
    border-radius: 18px;
    padding: 1.35rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.06);
}

.tx-stat-label {
    font-size: 0.82rem;
    font-weight: 800;
    color: #6b21a8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tx-stat-value {
    font-size: 1.9rem;
    font-weight: 900;
    color: #d97706;
    margin-top: 0.3rem;
}

.transactions-table-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.06);
}

.tx-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.tx-table th {
    background: linear-gradient(135deg, #f3e8ff 0%, #e0e7ff 100%);
    padding: 1.1rem 1.35rem;
    font-weight: 800;
    color: #6d28d9;
    border-bottom: 2px solid rgba(168, 85, 247, 0.2);
}

.tx-table td {
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    color: #1e293b;
    font-weight: 600;
}

.tx-table tr:last-child td {
    border-bottom: none;
}

.tx-table tr:hover td {
    background: rgba(243, 232, 255, 0.3);
}

.tx-change-plus {
    color: #16a34a;
    font-weight: 800;
}

.tx-change-minus {
    color: #dc2626;
    font-weight: 800;
}

/* ==========================================================================
   PRIMARY EMAIL INPUT IN AUTH FORM
   ========================================================================== */
.auth-email-form-group {
    margin-bottom: 1.4rem;
}

.auth-email-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.55rem;
}

.auth-label-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--text-primary);
}

.auth-label-icon {
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.auth-badge-required {
    background: rgba(2, 132, 199, 0.12);
    color: #0284c7;
    font-weight: 700;
    font-size: 0.76rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    border: 1px solid rgba(2, 132, 199, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auth-badge-optional {
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
    font-size: 0.76rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auth-email-input {
    width: 100% !important;
    padding: 1rem 1.25rem !important;
    border-radius: 14px !important;
    border: 2px solid rgba(2, 132, 199, 0.4) !important;
    background: #ffffff !important;
    color: var(--text-primary) !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.auth-email-input:hover {
    border-color: rgba(2, 132, 199, 0.7) !important;
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.14) !important;
}

.auth-email-input:focus {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2), 0 6px 20px rgba(2, 132, 199, 0.14) !important;
    outline: none !important;
    background: #ffffff !important;
}

.auth-email-input::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

/* ==========================================================================
   OPTIONAL PROMO CODE FIELD IN SIGNUP FORM
   ========================================================================== */
.referral-code-form-group {
    background: rgba(248, 250, 252, 0.9);
    border: 1.5px dashed rgba(99, 102, 241, 0.35);
    border-radius: 14px;
    padding: 0.95rem 1.15rem;
    margin-top: 1.1rem;
    margin-bottom: 1.25rem;
    position: relative;
    box-shadow: none;
    transition: all 0.25s ease;
}

.referral-code-form-group:hover,
.referral-code-form-group:focus-within {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(99, 102, 241, 0.5);
    border-style: solid;
}

.referral-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.55rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.referral-label-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.referral-emoji {
    font-size: 1rem;
}

.referral-bonus-pill {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-transform: uppercase;
}

.referral-input-container,
.promo-input-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.promo-stylish-input {
    width: 100%;
    padding: 0.75rem 6.2rem 0.75rem 1rem !important;
    background: #ffffff !important;
    border: 1.5px solid rgba(203, 213, 225, 0.8) !important;
    border-radius: 10px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    letter-spacing: 0.04em !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.promo-stylish-input::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
}

.promo-stylish-input:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
    outline: none !important;
}

.btn-verify-promo {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.42rem 0.95rem;
    color: #334155;
    font-family: 'Outfit', sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-verify-promo:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.referral-code-form-group.applied {
    background: rgba(240, 253, 244, 0.8);
    border-color: rgba(52, 211, 153, 0.6);
    border-style: solid;
}

.referral-code-form-group.applied .promo-stylish-input {
    border-color: #10b981 !important;
    background: #ffffff !important;
    color: #065f46 !important;
    padding-right: 2.8rem !important;
}

.btn-clear-referral {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(100, 116, 139, 0.15);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 4;
}

.btn-clear-referral:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
    transform: translateY(-50%) scale(1.1);
}

.referral-status-msg {
    margin-top: 0.6rem;
    font-size: 0.86rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.5rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    animation: fadeInStatus 0.3s ease;
}

@keyframes fadeInStatus {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.referral-status-msg.success {
    background: rgba(16, 185, 129, 0.14);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.referral-status-msg.error {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.referral-status-msg.info {
    background: rgba(56, 189, 248, 0.12);
    color: #0369a1;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.referral-subtext {
    font-size: 0.82rem !important;
    color: var(--text-muted) !important;
    margin-top: 0.45rem !important;
    line-height: 1.4 !important;
}

/* Referral Section */
.referral-banner-card {
    background: linear-gradient(135deg, #faf5ff 0%, #f0fdf4 50%, #eff6ff 100%);
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 24px;
    padding: 2.2rem;
    margin-bottom: 2rem;
    box-shadow: 0 12px 36px rgba(168, 85, 247, 0.1);
}

.referral-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.referral-rule-box {
    background: #ffffff;
    border: 1.5px solid rgba(168, 85, 247, 0.2);
    border-radius: 18px;
    padding: 1.4rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.referral-rule-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.referral-link-section {
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    padding: 1.8rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.06);
}

.referral-input-group {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.referral-input {
    flex: 1;
    background: #ffffff;
    border: 2px solid #8b5cf6;
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    color: #4c1d95;
    font-family: monospace;
    font-size: 0.98rem;
    font-weight: 800;
}

.btn-copy-ref {
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #ffffff;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-copy-ref:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

/* User Profile Section */
.profile-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.75rem;
}

.profile-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 1.5px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.profile-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 14px 36px rgba(124, 58, 237, 0.12);
}

.profile-field-item {
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.profile-field-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.profile-field-label {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-field-value {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 0.3rem;
}

/* Ultra Wide Display Optimization (4K & 1440p Wide Monitors) */
@media (min-width: 1700px) {
    .app-header,
    .page,
    .app-footer,
    .page-sample,
    .page-claim-credit {
        max-width: 1640px;
        padding-left: 3.5rem;
        padding-right: 3.5rem;
    }

    .dashboard-sidebar {
        width: 340px;
    }
}

/* Responsive Breakpoints (Tablets & Mobile) */
@media (max-width: 992px) {
    .dashboard-sidebar-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .dashboard-sidebar {
        width: 100%;
        position: static;
    }

    .sidebar-user-header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }

    .account-nav-tabs-vertical {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .app-header,
    .page,
    .app-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .account-nav-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .account-nav-tab {
        width: 100%;
    }

    .referral-input-group {
        flex-direction: column;
    }

    .profile-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .sidebar-user-header {
        flex-direction: column;
        align-items: stretch;
    }

    .account-nav-tabs-vertical {
        grid-template-columns: 1fr;
    }

    .character-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    .character-row > div:nth-child(3) {
        grid-column: span 1;
    }
    .character-row > div:nth-child(4) {
        grid-column: span 2;
        justify-self: flex-end;
    }
}

/* ==========================================================================
   SUPERHERO OTTER WRITER STUDIO & ANIMATED BOOK ORDER FORM
   ========================================================================== */

/* 1. Otter Studio Hero Header Container */
.order-otter-studio {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2.2rem 2.5rem;
    border-radius: 26px;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(240, 246, 255, 0.75) 50%, rgba(245, 235, 255, 0.8) 100%);
    border: 1px solid rgba(138, 43, 226, 0.22);
    box-shadow: 0 16px 40px rgba(138, 43, 226, 0.08), 0 0 30px rgba(0, 180, 216, 0.06);
    overflow: hidden;
    animation: studioCardEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes studioCardEnter {
    0% { opacity: 0; transform: translateY(-16px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Floating Magical Sparkle Elements */
.magical-sparkle {
    position: absolute;
    pointer-events: none;
    user-select: none;
    font-size: 1.25rem;
    opacity: 0.7;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
    animation: sparkleFloatAnim 4s infinite ease-in-out;
}

.sparkle-1 { top: 12%; left: 8%; animation-delay: 0s; font-size: 1.35rem; }
.sparkle-2 { top: 18%; right: 6%; animation-delay: 1.2s; font-size: 1.1rem; }
.sparkle-3 { bottom: 15%; left: 24%; animation-delay: 2.3s; font-size: 1.4rem; }
.sparkle-4 { bottom: 18%; right: 18%; animation-delay: 3.1s; font-size: 1.2rem; }

@keyframes sparkleFloatAnim {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.4; }
    50% { transform: translateY(-10px) scale(1.25) rotate(15deg); opacity: 0.95; }
}

/* Otter Visual & Avatar Wrapper */
.otter-studio-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.otter-studio-avatar-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.otter-avatar-halo {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, rgba(138, 43, 226, 0.3) 50%, transparent 75%);
    filter: blur(10px);
    animation: haloPulse 3s infinite ease-in-out;
}

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

.otter-writer-img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(220, 38, 38, 0.25)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
    animation: otterFloatStudio 4.5s infinite ease-in-out;
}

@keyframes otterFloatStudio {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

/* Animated Notepad & Quill Badge */
.otter-notepad-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #ffffff;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(212, 163, 89, 0.45);
    z-index: 3;
    animation: badgeFloat 3s infinite ease-in-out;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.notepad-icon {
    font-size: 1.15rem;
}

.pencil-anim {
    position: absolute;
    top: -8px;
    right: -6px;
    font-size: 1.15rem;
    display: inline-block;
    transition: transform 0.2s ease;
    transform-origin: bottom left;
}

.pencil-anim.scribbling {
    animation: quillScribble 0.25s infinite alternate ease-in-out;
}

@keyframes quillScribble {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    100% { transform: translate(-3px, -3px) rotate(-22deg) scale(1.18); }
}

/* Active Status Pill */
.otter-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #15803d;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02rem;
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: dotPulse 1.8s infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

/* Studio Dialog Column */
.otter-studio-dialog {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.studio-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    color: var(--accent-purple);
    background: rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(138, 43, 226, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    align-self: flex-start;
}

.studio-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
}

/* Dynamic Reactive Speech Bubble */
.otter-speech-bubble-order {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-left: 4px solid var(--accent-cyan);
    padding: 0.9rem 1.25rem;
    border-radius: 16px;
    font-size: 0.96rem;
    color: var(--text-primary);
    line-height: 1.5;
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    transition: var(--transition-smooth);
}

.otter-speech-bubble-order.highlight-speech {
    border-color: var(--accent-purple);
    border-left-color: var(--accent-purple);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.15);
    transform: scale(1.01);
}

.speech-quote-icon {
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 2px;
}

.speech-text {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Story Progress Tracker */
.story-progress-container {
    margin-top: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.story-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.progress-percent {
    color: var(--accent-purple);
    font-weight: 700;
}

.story-progress-bar-track {
    width: 100%;
    height: 9px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.story-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00b4d8 0%, #8a2be2 50%, #f59e0b 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    animation: gradientFlow 3s infinite linear;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ==========================================================================
   2. CHAPTER-BASED ANIMATED FORM CARDS
   ========================================================================== */
.order-book-form-animated {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    padding: 2rem !important;
}

.form-chapter-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(0, 180, 216, 0.16);
    border-radius: 20px;
    padding: 1.6rem 1.8rem;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
}

.form-chapter-card:hover {
    border-color: rgba(138, 43, 226, 0.3);
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.05);
}

.form-chapter-card:focus-within {
    border-color: var(--accent-purple);
    box-shadow: 0 12px 30px rgba(138, 43, 226, 0.1), 0 0 0 1px var(--accent-purple);
    background: #ffffff;
}

.chapter-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.chapter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.chapter-num {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: #ffffff;
    padding: 0.2rem 0.65rem;
    border-radius: 8px;
}

.chapter-title-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.chapter-status-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.form-chapter-card.chapter-complete .chapter-status-icon {
    transform: scale(1.15);
}

/* Quick Inspiration Chips Bar */
.inspiration-chips-container {
    margin: 0.5rem 0 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.chips-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.inspiration-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.inspiration-chip {
    background: rgba(240, 246, 255, 0.9);
    border: 1px solid rgba(0, 180, 216, 0.25);
    color: var(--text-primary);
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.83rem;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    user-select: none;
}

.inspiration-chip:hover {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.15), rgba(138, 43, 226, 0.15));
    border-color: var(--accent-purple);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.12);
}

.inspiration-chip:active {
    transform: translateY(0) scale(0.98);
}

/* Reader Quick Select Chips */
.reader-chips-container {
    margin: 0.3rem 0 0.8rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.reader-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.reader-chip {
    background: rgba(245, 235, 255, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.2);
    color: var(--text-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 16px;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition-fast);
}

.reader-chip:hover {
    background: var(--accent-purple);
    color: #ffffff;
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(138, 43, 226, 0.2);
}

/* Language Selection Chips */
.language-chips-container {
    margin: 0.3rem 0 0.8rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.language-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lang-chip {
    background: rgba(240, 249, 255, 0.9);
    border: 1.5px solid rgba(14, 165, 233, 0.3);
    color: var(--text-primary);
    padding: 0.42rem 0.9rem;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-chip:hover {
    background: rgba(14, 165, 233, 0.18);
    border-color: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.2);
}

.lang-chip.active {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

/* Hero Cards / Character Rows */
.hero-card-main {
    border-left: 4px solid var(--accent-gold) !important;
    background: rgba(254, 243, 199, 0.22) !important;
}

.char-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.char-role-icon {
    font-size: 1.05rem;
}

.char-tag-included {
    font-size: 0.75rem;
    font-weight: 700;
    color: #15803d;
    background: rgba(34, 197, 94, 0.12);
    padding: 0.18rem 0.55rem;
    border-radius: 6px;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.credit-chip-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-purple);
    background: rgba(138, 43, 226, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(138, 43, 226, 0.15);
}

.btn-add-character {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.5rem;
    border-radius: 14px;
    border: 2px dashed rgba(0, 180, 216, 0.4);
    background: rgba(0, 180, 216, 0.04);
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.btn-add-character:hover {
    background: rgba(0, 180, 216, 0.1);
    border-color: var(--accent-cyan);
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 180, 216, 0.15);
}

.btn-add-icon-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-cyan);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.btn-add-character:hover .btn-add-icon-circle {
    transform: rotate(90deg) scale(1.1);
}

/* Book Options Enhancements */
.options-summary-icon {
    font-size: 1.8rem;
    margin-right: 0.8rem;
}

.options-subgroup-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.4rem;
}

.options-subgroup-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.option-card-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.25);
    margin-right: 0.5rem;
    flex-shrink: 0;
    position: relative;
    transition: var(--transition-fast);
}

.option-card.active .option-card-radio {
    border-color: var(--accent-purple);
}

.option-card.active .option-card-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--accent-purple);
}

.option-card-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-purple);
    background: rgba(138, 43, 226, 0.08);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    display: inline-block;
    margin-top: 0.15rem;
}

.option-card-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
    margin-top: 0.2rem;
}

/* Order Cost Breakdown Card */
.order-action-footer {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.order-cost-breakdown-card {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.9));
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: 18px;
    padding: 1.25rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breakdown-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.4rem;
    padding-top: 0.6rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

.total-label {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.total-value {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--accent-gold-dark);
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
}

/* Magical Animated Order Button */
.btn-order-magic {
    position: relative;
    overflow: hidden;
    padding: 1.2rem 2rem !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02rem;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #00b4d8 0%, #8a2be2 50%, #e11d48 100%) !important;
    background-size: 200% auto !important;
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.35), 0 0 25px rgba(0, 180, 216, 0.25) !important;
    transition: var(--transition-smooth) !important;
    cursor: pointer;
}

.btn-order-magic:hover {
    background-position: right center !important;
    transform: translateY(-3px) scale(1.015) !important;
    box-shadow: 0 14px 40px rgba(138, 43, 226, 0.45), 0 0 35px rgba(225, 29, 72, 0.3) !important;
}

.btn-order-magic:active {
    transform: translateY(0) scale(0.99) !important;
}

.btn-magic-sheen {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-25deg);
    animation: sheenSweep 4s infinite ease-in-out;
}

@keyframes sheenSweep {
    0% { left: -100%; }
    30%, 100% { left: 200%; }
}

.btn-magic-icon {
    font-size: 1.3rem;
    margin-right: 0.4rem;
    animation: sparkleSpin 3s infinite ease-in-out;
}

@keyframes sparkleSpin {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.25) rotate(180deg); }
}

/* Responsive Overrides for Otter Studio & Form */
@media (max-width: 900px) {
    .order-otter-studio {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.8rem 1.5rem;
    }

    .otter-studio-dialog {
        align-items: center;
    }

    .studio-badge {
        align-self: center;
    }

    .otter-speech-bubble-order {
        text-align: left;
    }
}

/* ========================================================= */
/* --- ADMIN SECTION & DASHBOARD CONTROL CENTER STYLES --- */
/* ========================================================= */

.btn-admin-nav {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(168, 85, 247, 0.25) 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.6) !important;
    color: #fef08a !important;
    font-weight: 700;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
    transition: var(--transition-fast);
}

.btn-admin-nav:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35) 0%, rgba(168, 85, 247, 0.45) 100%) !important;
    border-color: rgba(245, 158, 11, 0.9) !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.55);
    transform: translateY(-1px);
}

.admin-dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-top-banner {
    padding: 1.75rem 2.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-color: rgba(245, 158, 11, 0.25);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(254, 243, 199, 0.45) 100%);
}

.admin-banner-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.admin-badge-icon {
    font-size: 2.4rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.2);
}

.admin-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.admin-subtitle {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.admin-session-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-purple);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: dotPulse 1.8s infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

/* Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.admin-stat-card {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.admin-stat-icon {
    font-size: 1.8rem;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.admin-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    margin-top: 0.2rem;
}

/* Admin Tabs */
.admin-tab-nav {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem;
}

.admin-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.admin-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.4);
}

.admin-tab-btn.active {
    background: #ffffff;
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    font-weight: 700;
}

.admin-tab-badge {
    background: rgba(168, 85, 247, 0.12);
    color: var(--accent-purple);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Toolbar */
.admin-section-toolbar {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.admin-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 260px;
    display: flex;
    align-items: center;
}

.admin-search-wrapper svg {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
}

.admin-search-input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.4rem;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: #ffffff;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-fast);
}

.admin-search-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.admin-toolbar-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-filter-select {
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: #ffffff;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
}

/* Tables */
.admin-table-card {
    padding: 0;
    overflow: hidden;
}

.admin-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

.admin-table th {
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-table td {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: var(--transition-fast);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.6);
}

.admin-table tbody tr.row-suspended {
    background: rgba(239, 68, 68, 0.04);
}

/* Badges */
.badge-role {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
}

.badge-role-admin {
    background: rgba(168, 85, 247, 0.12);
    color: #7e22ce;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-role-user {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
}

.badge-status-active {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-status-suspended {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Actions */
.admin-actions-cell {
    display: flex;
    gap: 0.4rem;
    justify-content: flex-end;
    align-items: center;
}

.btn-action-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-action-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-cyan);
}

.btn-action-icon.action-delete:hover {
    background: #fee2e2;
    border-color: #ef4444;
}

.btn-action-icon.action-suspend:hover {
    background: #fef3c7;
    border-color: #f59e0b;
}

.btn-action-icon.action-activate:hover {
    background: #dcfce7;
    border-color: #10b981;
}

.btn-action-icon.action-promote:hover {
    background: #f3e8ff;
    border-color: #a855f7;
}

.btn-action-icon.action-demote:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* Status Dropdown in Orders Table */
.admin-status-dropdown {
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: #ffffff;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
    transition: var(--transition-fast);
}

.admin-status-dropdown:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.2);
}

/* Toast */
.admin-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.admin-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Quick Inline Credit Buttons in Table */
.btn-quick-credit {
    padding: 2px 7px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1.2;
}

.btn-quick-credit.plus {
    color: #047857;
    background: #ecfdf5;
    border-color: rgba(16, 185, 129, 0.4);
}

.btn-quick-credit.plus:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.btn-quick-credit.plus-five {
    color: #6d28d9;
    background: #f5f3ff;
    border-color: rgba(168, 85, 247, 0.4);
}

.btn-quick-credit.plus-five:hover {
    background: #8b5cf6;
    color: #ffffff;
    border-color: #8b5cf6;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}

.btn-quick-credit.minus {
    color: #b91c1c;
    background: #fef2f2;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-quick-credit.minus:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

#btn-mode-add.active, #btn-mode-set.active {
    background: #ffffff !important;
    color: var(--accent-purple) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   SAVED CHARACTERS ROSTER & SECURE PHOTO UPLOAD SYSTEM
   ========================================================================== */

.characters-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.8rem 2.2rem;
    margin-bottom: 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(245, 240, 255, 0.75) 100%);
    border: 1px solid rgba(138, 43, 226, 0.18);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.06);
    flex-wrap: wrap;
}

.btn-add-hero-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    white-space: nowrap;
}

.my-characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.saved-character-card {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(138, 43, 226, 0.15);
    border-radius: 20px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.saved-character-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple);
    box-shadow: 0 16px 36px rgba(138, 43, 226, 0.12);
}

.saved-character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-gold), var(--accent-cyan));
}

.char-card-top {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 1rem;
}

.char-card-avatar-wrap {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ede9fe, #fce7f3);
    border: 2.5px solid var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 16px rgba(138, 43, 226, 0.18);
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
}

.char-card-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.char-card-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(2px);
}

.char-card-avatar-wrap:hover .char-card-avatar-overlay {
    opacity: 1;
}

.char-card-meta {
    flex: 1;
    min-width: 0;
}

.char-card-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.35rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.char-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.char-badge-pill {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    background: rgba(138, 43, 226, 0.08);
    color: var(--accent-purple);
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.char-badge-pill.age {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.25);
}

.char-card-notes {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0.5rem 0 1.2rem 0;
    background: rgba(248, 250, 252, 0.8);
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border-left: 3px solid var(--accent-cyan);
    font-style: italic;
}

.char-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.9rem;
    border-top: 1px dashed rgba(203, 213, 225, 0.8);
}

.btn-char-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: #ffffff;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-char-action:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    background: rgba(138, 43, 226, 0.05);
    transform: translateY(-1px);
}

.btn-char-action.delete {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.25);
    flex: 0 0 38px;
    padding: 0.5rem;
}

.btn-char-action.delete:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

/* Modal Avatar Uploader Dropzone */
.modal-avatar-uploader {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #ede9fe, #fce7f3);
    border: 3px dashed var(--accent-purple);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.15);
    transition: var(--transition-fast);
}

.modal-avatar-uploader:hover {
    transform: scale(1.05);
    border-style: solid;
    box-shadow: 0 12px 28px rgba(138, 43, 226, 0.25);
}

.modal-avatar-preview-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.modal-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 0.2rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-avatar-uploader:hover .modal-avatar-overlay {
    opacity: 1;
}

/* Quick Photo Replace Dropzone */
.photo-replace-dropzone {
    border: 2px dashed rgba(138, 43, 226, 0.35);
    background: rgba(245, 240, 255, 0.5);
    border-radius: 16px;
    padding: 1.8rem 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
}

.photo-replace-dropzone:hover {
    border-color: var(--accent-purple);
    background: rgba(245, 240, 255, 0.85);
    transform: translateY(-2px);
}

.photo-replace-preview-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #ede9fe;
    border: 2px solid var(--accent-purple);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(138, 43, 226, 0.15);
}

.photo-replace-preview-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   CHAPTER 2 ORDER FORM SAVED HERO PICKER & AVATAR INTEGRATION
   ========================================================================== */

.saved-heroes-picker-wrap {
    background: linear-gradient(135deg, rgba(245, 240, 255, 0.7), rgba(238, 242, 255, 0.7));
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.2rem;
}

.saved-heroes-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-manage-characters-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-purple);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    transition: var(--transition-fast);
}

.btn-manage-characters-link:hover {
    color: var(--accent-purple-dark, #6b21a8);
}

.saved-heroes-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.saved-hero-chip {
    background: #ffffff;
    border: 1.5px solid rgba(138, 43, 226, 0.25);
    border-radius: 24px;
    padding: 0.35rem 0.8rem 0.35rem 0.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    user-select: none;
}

.saved-hero-chip:hover {
    border-color: var(--accent-purple);
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.95), rgba(250, 245, 255, 0.95));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.15);
}

.saved-hero-chip:active {
    transform: translateY(0) scale(0.98);
}

.chip-avatar-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ede9fe;
    border: 1.5px solid var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    overflow: hidden;
    flex-shrink: 0;
}

.chip-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chip-meta-tag {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: normal;
}

/* ==========================================================================
   CHARACTER PHOTO UPLOAD & WEBCAM / CAMERA CAPTURE SYSTEM
   ========================================================================== */

/* Character Row Photo Column */
.character-photo-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    position: relative;
    min-width: 175px;
}

/* Empty State (When no photo attached) */
.char-photo-empty-box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
}

.char-avatar-circle {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: #ede9fe;
    border: 2px solid var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    position: relative;
    box-shadow: 0 3px 8px rgba(138, 43, 226, 0.12);
    transition: transform 0.2s ease;
    overflow: visible;
}

.char-avatar-placeholder {
    user-select: none;
    line-height: 1;
}

.char-photo-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.btn-char-photo-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(138, 43, 226, 0.25);
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent-purple);
    white-space: nowrap;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-char-photo-action:hover {
    background: var(--accent-purple);
    color: #ffffff;
    border-color: var(--accent-purple);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(138, 43, 226, 0.22);
}

.btn-char-photo-action svg {
    flex-shrink: 0;
}

.btn-camera-photo {
    border-color: rgba(59, 130, 246, 0.3);
    color: #2563eb;
}

.btn-camera-photo:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.22);
}

/* Filled State (When photo IS attached) */
.char-photo-filled-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.15rem 0;
}

.char-avatar-circle-has-img {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border: 2.5px solid var(--accent-purple);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.25);
    position: relative;
    border-radius: 50%;
}

.char-avatar-img-wrap {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.char-avatar-img,
.modal-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Small X icon to delete photo */
.btn-char-photo-delete {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid #ffffff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 10;
}

.btn-char-photo-delete:hover {
    background: #dc2626;
    transform: scale(1.15);
}

/* Modal photo boxes */
.modal-photo-empty-box {
    justify-content: center;
}

.modal-photo-filled-box {
    justify-content: center;
}

/* Camera Capture Modal */
.camera-modal-content {
    max-width: 460px;
    width: 92%;
    text-align: center;
    padding: 2rem 1.75rem 1.75rem;
}

.camera-viewfinder-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 300px;
    background: #0f172a;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

#camera-feed-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* Mirror view for front camera */
}

#camera-feed-video.back-camera {
    transform: none;
}

#camera-captured-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-target-guide {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-oval {
    width: 170px;
    height: 210px;
    border: 2px dashed rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.35);
}

.camera-flash {
    position: absolute;
    inset: 0;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease-out;
}

.camera-flash.flash-active {
    opacity: 0.95;
}

.camera-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.camera-live-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.btn-camera-snap {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(138, 43, 226, 0.15);
    border: 3px solid var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    box-shadow: 0 4px 14px rgba(138, 43, 226, 0.3);
}

.btn-camera-snap:hover {
    transform: scale(1.08);
    background: rgba(138, 43, 226, 0.25);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.45);
}

.btn-camera-snap-inner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), #6366f1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.camera-snap-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-camera-switch {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 0.4rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-camera-switch:hover {
    background: rgba(138, 43, 226, 0.1);
    color: var(--accent-purple);
    border-color: var(--accent-purple);
}

.camera-review-controls {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
}

.btn-camera-secondary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-camera-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-camera-primary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--accent-purple), #6366f1);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
    transition: all 0.2s ease;
}

.btn-camera-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(138, 43, 226, 0.45);
}

/* Legacy & Shared preview classes */
.char-avatar-preview {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ede9fe;
    border: 2px solid var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(138, 43, 226, 0.12);
    transition: var(--transition-fast);
}

.empty-characters-state {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.7);
    border: 2px dashed rgba(138, 43, 226, 0.25);
    border-radius: 20px;
    grid-column: 1 / -1;
}

.empty-characters-icon {
    font-size: 3.5rem;
    margin-bottom: 0.8rem;
    display: block;
}

/* ==========================================================================
   PROMO CODES MANAGEMENT & PRICING PROMO SYSTEM STYLES
   ========================================================================== */

.badge-promo-type {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-promo-signup {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-promo-discount {
    background: rgba(139, 92, 246, 0.12);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-promo-bonus {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-promo-active {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.badge-promo-inactive {
    background: rgba(100, 116, 139, 0.15);
    color: #475569;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.badge-promo-expired {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Pricing Page Promo Code Box */
.pricing-promo-card {
    max-width: 680px;
    margin: 0 auto 3rem;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(248, 245, 255, 0.9) 100%);
    border: 1.5px dashed rgba(138, 43, 226, 0.35);
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.06);
    position: relative;
}

.pricing-promo-input-group {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.pricing-promo-input {
    flex: 1;
    text-transform: uppercase;
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.75rem 1.2rem;
    border-radius: 12px;
    border: 1.5px solid var(--card-border);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-fast);
}

.pricing-promo-input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.15);
}

.pricing-discount-pill {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0.5rem;
}

.pricing-original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.5rem;
    margin-right: 0.5rem;
    font-weight: 500;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN & MOBILE OPTIMIZATION ENGINE
   ========================================================================== */

/* 1. Header & Global Navigation (Mobile & Tablet <= 900px) */
@media (max-width: 900px) {
    .app-header {
        position: relative;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.85rem 1.15rem !important;
        z-index: 1000;
        gap: 0.5rem;
    }

    .logo-container {
        justify-content: flex-start !important;
    }

    .floating-logo {
        width: 38px;
        height: 38px;
    }

    .logo-title {
        font-size: 1.22rem;
    }

    .logo-subtitle {
        font-size: 0.62rem;
        letter-spacing: 0.25em;
    }

    .nav-mobile-toggle {
        display: flex !important;
    }

    .nav-links {
        display: none !important;
        flex-direction: column !important;
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 0.75rem !important;
        right: 0.75rem !important;
        background: linear-gradient(165deg, rgba(17, 24, 39, 0.98) 0%, rgba(10, 15, 29, 0.99) 100%) !important;
        backdrop-filter: blur(28px) !important;
        -webkit-backdrop-filter: blur(28px) !important;
        border: 1px solid rgba(168, 85, 247, 0.35) !important;
        border-radius: 20px !important;
        padding: 1.15rem !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 30px rgba(124, 58, 237, 0.25) !important;
        z-index: 999 !important;
        gap: 0.45rem !important;
        width: auto !important;
        overflow-x: visible !important;
        max-height: calc(100vh - 100px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .nav-links.mobile-open {
        display: flex !important;
        animation: mobileNavFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes mobileNavFadeIn {
        from {
            opacity: 0;
            transform: translateY(-8px) scale(0.98);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .nav-btn {
        width: 100% !important;
        display: flex;
        align-items: center !important;
        gap: 0.7rem !important;
        padding: 0.8rem 1rem !important;
        font-size: 0.98rem !important;
        font-weight: 600 !important;
        color: var(--text-primary) !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.07) !important;
        border-radius: 12px !important;
        white-space: normal !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }

    .nav-btn.hidden,
    .nav-btn[style*="display: none"],
    #nav-login-btn.hidden,
    #nav-login-btn[style*="display: none"],
    #nav-logout-btn.hidden,
    #nav-logout-btn[style*="display: none"],
    #nav-admin-btn.hidden,
    #nav-admin-btn[style*="display: none"] {
        display: none !important;
    }

    .nav-btn:hover,
    .nav-btn:active {
        background: rgba(168, 85, 247, 0.18) !important;
        border-color: rgba(168, 85, 247, 0.45) !important;
        color: #ffffff !important;
        transform: translateX(3px);
    }

    .nav-btn.active {
        background: rgba(168, 85, 247, 0.25) !important;
        border-color: var(--accent-purple) !important;
        color: #ffffff !important;
    }

    .nav-btn.nav-btn-gift {
        background: rgba(251, 191, 36, 0.1) !important;
        border-color: rgba(251, 191, 36, 0.35) !important;
        color: #fbbf24 !important;
    }

    .nav-btn.nav-btn-gift:hover,
    .nav-btn.nav-btn-gift:active {
        background: rgba(251, 191, 36, 0.2) !important;
        border-color: rgba(251, 191, 36, 0.6) !important;
    }

    #nav-auth-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.85rem 1rem !important;
        margin-top: 0.35rem;
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
    }

    #nav-login-btn {
        width: 100% !important;
        justify-content: flex-start !important;
        padding: 0.8rem 1rem !important;
    }

    #nav-logout-btn {
        width: 100% !important;
        justify-content: flex-start !important;
        padding: 0.8rem 1rem !important;
        color: #f87171 !important;
        background: rgba(239, 68, 68, 0.08) !important;
        border-color: rgba(239, 68, 68, 0.25) !important;
    }

    #nav-logout-btn:hover,
    #nav-logout-btn:active {
        background: rgba(239, 68, 68, 0.18) !important;
        border-color: rgba(239, 68, 68, 0.4) !important;
    }

    .page {
        padding: 1rem 0.85rem 3rem;
    }
}

/* 2. Marketing / Home Page on Mobile */
@media (max-width: 768px) {
    .hero-section {
        padding: 1rem 0 2rem;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .hero-cta-group .btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.25rem;
    }

    .hero-otter-container {
        padding: 0.8rem 1rem;
    }

    .cta-banner {
        padding: 1.75rem 1.25rem;
    }

    .cta-banner-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .cta-banner-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 3. See What's Possible Gallery on Mobile */
@media (max-width: 768px) {
    .gallery-header {
        margin-bottom: 1.5rem;
    }

    .gallery-title {
        font-size: 2rem;
    }

    .gallery-filters {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.45rem;
        padding: 0.2rem 0.2rem 0.75rem;
        justify-content: flex-start;
        scrollbar-width: none;
        margin-bottom: 1.5rem;
    }

    .gallery-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 0.82rem;
        padding: 0.45rem 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .book-card {
        max-width: 360px;
        margin: 0 auto;
        width: 100%;
    }
}

/* 4. Auth & OTP Form on Mobile */
@media (max-width: 640px) {
    .auth-container {
        padding: 1.5rem 1.15rem;
        border-radius: 20px;
    }

    .sample-title {
        font-size: 1.85rem;
    }

    .auth-mode-tabs {
        display: flex;
        gap: 0.4rem;
    }

    .auth-tab-btn {
        flex: 1;
        padding: 0.75rem 0.5rem;
        font-size: 0.88rem;
        justify-content: center;
    }

    .auth-referral-input-wrap {
        display: flex;
        gap: 0.4rem;
    }

    .btn-verify-promo {
        padding: 0.38rem 0.85rem;
        font-size: 0.82rem;
        white-space: nowrap;
        top: 50%;
        transform: translateY(-50%);
    }

    .otp-actions {
        display: flex;
        flex-direction: column !important;
        gap: 0.6rem !important;
        margin-top: 1.2rem !important;
    }

    .otp-actions button,
    #btn-verify-otp,
    #btn-resend-otp,
    #btn-change-email {
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 100% !important;
        padding: 0.85rem !important;
    }
}

/* 5. Account Dashboard & Sidebar Navigation on Mobile */
@media (max-width: 992px) {
    .dashboard-sidebar-layout {
        flex-direction: column;
        gap: 1.25rem;
    }

    .dashboard-sidebar {
        width: 100%;
        position: static;
        padding: 1.25rem;
    }

    .account-nav-tabs-vertical {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.45rem;
        padding: 0.2rem 0.2rem 0.6rem;
        scrollbar-width: none;
    }

    .account-nav-tabs-vertical::-webkit-scrollbar {
        display: none;
    }

    .account-nav-tab {
        flex-shrink: 0;
        white-space: nowrap;
        width: auto;
        padding: 0.65rem 1rem;
        font-size: 0.88rem;
    }
}

/* 6. Order Creation Blueprint & Chapters on Mobile */
@media (max-width: 768px) {
    .order-otter-studio {
        padding: 1.25rem 1rem;
        gap: 1rem;
    }

    .form-chapter-card {
        padding: 1.25rem 1rem;
        border-radius: 18px;
    }

    .chapter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .character-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
    }

    .character-photo-col {
        padding-top: 0 !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        width: 100% !important;
    }

    .char-photo-empty-box {
        flex-wrap: wrap;
    }

    .char-photo-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .btn-remove {
        width: 100% !important;
        height: auto !important;
        padding: 0.6rem 1rem !important;
        border-radius: 10px !important;
        background: rgba(239, 68, 68, 0.08) !important;
        border: 1px solid rgba(239, 68, 68, 0.25) !important;
        color: #dc2626 !important;
        font-weight: 600 !important;
        font-size: 0.85rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.4rem !important;
        margin-top: 0.3rem !important;
    }

    .btn-remove::after {
        content: 'Remove Hero';
    }

    #char-row-1 .btn-remove::after,
    .btn-remove.btn-reset-char::after {
        content: 'Reset Hero' !important;
    }

    .btn-add-character {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .option-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 0.6rem !important;
    }

    .option-card {
        padding: 0.85rem 1rem !important;
    }

    .options-summary-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .options-summary-row .btn-customize {
        width: 100%;
        justify-content: center;
    }

    .order-cost-breakdown-card {
        padding: 1rem 1.15rem;
    }

    .btn-order-magic {
        width: 100% !important;
        padding: 1rem 1.25rem !important;
        font-size: 1.05rem !important;
        justify-content: center !important;
    }
}

/* 7. Character Manager, Orders, and Referral Tabs on Mobile */
@media (max-width: 768px) {
    .characters-tab-header {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem 1rem;
        gap: 0.8rem;
    }

    .btn-add-hero-top {
        width: 100%;
        justify-content: center;
    }

    .my-characters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .saved-character-card {
        padding: 1.25rem;
    }

    .orders-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .referral-input-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .referral-input-group input {
        width: 100%;
    }

    .btn-copy-ref {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }

    .transactions-table-wrapper,
    .admin-table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .transactions-summary-row {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }
}

/* 8. Admin Section on Mobile */
@media (max-width: 768px) {
    .admin-top-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem 1rem;
        gap: 0.8rem;
    }

    .admin-banner-left {
        gap: 0.8rem;
    }

    .admin-badge-icon {
        width: 48px;
        height: 48px;
        font-size: 1.8rem;
    }

    .admin-title {
        font-size: 1.35rem;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }

    .admin-stat-card {
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }

    .admin-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .admin-stat-value {
        font-size: 1.4rem;
    }

    .admin-tab-nav {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.4rem;
        padding: 0.35rem;
        scrollbar-width: none;
    }

    .admin-tab-nav::-webkit-scrollbar {
        display: none;
    }

    .admin-tab-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    .admin-section-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.75rem;
    }

    .admin-search-wrapper {
        min-width: 0;
        width: 100%;
    }

    .admin-toolbar-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .admin-filter-select {
        flex: 1 1 45%;
        font-size: 0.82rem;
        padding: 0.55rem 0.75rem;
    }

    .admin-toolbar-actions .btn {
        flex: 1 1 45%;
        justify-content: center;
        font-size: 0.85rem;
        padding: 0.55rem 0.85rem;
    }
}

/* 9. Modals on Mobile */
@media (max-width: 640px) {
    .modal-backdrop {
        padding: 0.75rem;
        align-items: flex-end;
    }

    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 85vh !important;
        padding: 1.5rem 1.15rem 1.75rem !important;
        border-radius: 24px 24px 16px 16px !important;
    }

    .modal-title {
        font-size: 1.35rem !important;
    }
}

/* 10. Pricing Page (`pricing.html`) on Mobile */
@media (max-width: 768px) {
    .pricing-page-container {
        padding: 1rem 0.85rem 3rem !important;
    }

    .pricing-hero .sample-title {
        font-size: 2rem !important;
    }

    .how-it-works-card {
        padding: 1.5rem 1.15rem !important;
    }

    .how-it-works-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .bonus-banner-row {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .pricing-tiers-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        max-width: 420px !important;
    }

    .pricing-card {
        padding: 1.75rem 1.25rem !important;
    }

    .pricing-promo-card {
        padding: 1.25rem 1rem !important;
        margin-bottom: 2rem !important;
    }

    .pricing-promo-input-group {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .pricing-promo-input-group .btn {
        width: 100% !important;
        justify-content: center !important;
    }
}



/* ==========================================================================
   STRIPE & BUY CREDIT PACKS ENHANCEMENTS & PRICING TIERS
   ========================================================================== */

/* Pricing Tiers Grid */
.pricing-tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    align-items: stretch;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
}

.pricing-card {
    position: relative;
    padding: 2.2rem 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 24px;
    background: var(--card-bg, rgba(255, 255, 255, 0.9));
    border: 1px solid var(--card-border, rgba(203, 213, 225, 0.6));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.12);
    border-color: var(--card-border-active, rgba(168, 85, 247, 0.5));
}

.pricing-card.featured {
    border: 2px solid var(--accent-purple, #a855f7);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 240, 255, 0.9) 100%);
    box-shadow: 0 15px 35px hsla(272, 75%, 48%, 0.15);
}

.pricing-card-badge {
    position: absolute;
    top: -14px;
    right: 20px;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #ffffff;
    box-shadow: 0 4px 15px hsla(272, 75%, 48%, 0.35);
    z-index: 2;
    white-space: nowrap;
}

.pricing-card-badge.gold {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 4px 15px hsla(40, 95%, 48%, 0.35);
}

.pricing-card-badge.launch-promo {
    background: linear-gradient(135deg, #ef4444 0%, #ec4899 50%, #8b5cf6 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    font-size: 0.76rem;
    padding: 0.35rem 0.95rem;
    letter-spacing: 0.05em;
    font-weight: 800;
    text-transform: uppercase;
}

/* Featured Price Container with Launch Promo */
.tier-price-container.has-promo {
    margin: 1rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.launch-promo-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(236, 72, 153, 0.12) 50%, rgba(139, 92, 246, 0.1) 100%);
    border: 1.5px solid rgba(236, 72, 153, 0.35);
    border-radius: 50px;
    padding: 0.32rem 0.85rem;
    margin-bottom: 0.65rem;
}

.launch-promo-tag .promo-tag-fire {
    font-size: 1.05rem;
    line-height: 1;
}

.launch-promo-tag .promo-tag-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #db2777;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.launch-promo-tag .promo-tag-discount {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 900;
    padding: 0.12rem 0.5rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.launch-promo-tag .promo-tag-pill {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.pricing-promo-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #7c3aed;
}

.tier-price-amount .pricing-original-price {
    text-decoration: line-through;
    opacity: 0.45;
    font-size: 1.4rem;
    margin-right: 0.4rem;
    font-weight: 500;
    color: var(--text-muted, #94a3b8);
}


.pricing-card-header {
    margin-bottom: 1.2rem;
}

.tier-name {
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    margin-bottom: 0.4rem;
}

.tier-credits {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-cyan, #0284c7);
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.pricing-card.featured .tier-credits {
    color: var(--accent-purple, #7c3aed);
}

.tier-credits-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary, #64748b);
}

.tier-price-container {
    margin: 1rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tier-price-amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary, #1e293b);
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.tier-unit-price {
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 0.2rem;
}

.tier-features {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 1.8rem;
    flex-grow: 1;
}

.pricing-card .tier-features:last-child {
    margin-bottom: 0;
}

.tier-features li {
    font-size: 0.92rem;
    color: var(--text-secondary, #475569);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    line-height: 1.4;
}

.tier-features li span.icon-check {
    color: #10b981;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pricing-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

/* Info Pills & Credit Economy */
.how-it-works-card {
    padding: 2.2rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.info-pill {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--card-border, rgba(203, 213, 225, 0.6));
    border-radius: 18px;
    padding: 1.4rem;
    transition: var(--transition-smooth);
}

.info-pill:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
    border-color: var(--card-border-active, rgba(168, 85, 247, 0.5));
}

.info-pill-icon {
    font-size: 2rem;
    margin-bottom: 0.6rem;
    display: inline-block;
}

.info-pill-title {
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-primary, #1e293b);
}

.info-pill-desc {
    font-size: 0.9rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.5;
}

/* Promo Box & Inputs */
.pricing-promo-card {
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--card-border);
}

.pricing-promo-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.pricing-promo-input {
    flex-grow: 1;
    min-width: 220px;
    padding: 0.75rem 1.1rem;
    border-radius: 12px;
    border: 1.5px solid var(--card-border, rgba(203, 213, 225, 0.8));
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.9);
}

.pricing-promo-input:focus {
    border-color: var(--accent-purple, #a855f7);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
    outline: none;
}

.btn-sidebar-topup {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-sidebar-topup:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.45);
}

.stripe-trust-strip {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.stripe-trust-strip:hover {
    border-color: var(--card-border-active);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.payment-badge:hover {
    transform: translateY(-2px);
    border-color: var(--accent-purple);
}

.pricing-original-price {
    text-decoration: line-through;
    opacity: 0.55;
    font-size: 1.4rem;
    margin-right: 0.4rem;
    font-weight: 500;
}

.pricing-discount-pill {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    margin-left: 0.5rem;
    vertical-align: middle;
}

@media (max-width: 1200px) {
    .pricing-tiers-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
}


/* ==========================================
   GIFT VOUCHERS COMPONENT STYLES
   ========================================== */

.page-gift-voucher {
    padding: 2rem 1.5rem 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-btn-gift:hover {
    color: #f59e0b !important;
    transform: translateY(-1px);
}

.gift-tier-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-border-active) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.gift-tier-card.active {
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

#gift-card-preview {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#gift-card-preview:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 25px 50px rgba(251, 191, 36, 0.15);
}

#success-gift-message-text:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

@media (max-width: 900px) {
    .gift-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .gift-tier-cards {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   Book Format Option Cards: Interactive Example Previews & Badges
   ========================================================================== */
.format-examples-box {
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.format-examples-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.format-examples-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.format-sample-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-primary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    white-space: nowrap;
}

.format-sample-pill:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.format-sample-pill .sample-pill-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.format-sample-pill .sample-pill-arrow {
    width: 11px;
    height: 11px;
    opacity: 0.65;
    transition: transform 0.2s ease;
}

.format-sample-pill:hover .sample-pill-arrow {
    transform: translate(2px, -2px);
    opacity: 1;
}

/* Specific pill themes */
.format-sample-pill.pill-viewer {
    background: rgba(0, 180, 216, 0.08);
    border-color: rgba(0, 180, 216, 0.35);
    color: #0077b6;
}
.format-sample-pill.pill-viewer:hover {
    background: rgba(0, 180, 216, 0.18);
    border-color: rgba(0, 180, 216, 0.55);
    color: #023e8a;
}

.format-sample-pill.pill-game {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    border-color: rgba(168, 85, 247, 0.4);
    color: #7c3aed;
}
.format-sample-pill.pill-game:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    border-color: rgba(168, 85, 247, 0.65);
    color: #6d28d9;
}

.format-sample-pill.pill-pdf {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.35);
    color: #dc2626;
}
.format-sample-pill.pill-pdf:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.55);
    color: #b91c1c;
}

.format-sample-pill.pill-photos {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.12));
    border-color: rgba(245, 158, 11, 0.45);
    color: #b45309;
}
.format-sample-pill.pill-photos:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(217, 119, 6, 0.24));
    border-color: rgba(245, 158, 11, 0.7);
    color: #92400e;
}

/* Quick Photo Thumbnails Gallery on Hardcover Card */
.format-thumb-gallery {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.2rem;
    padding: 0.45rem 0.6rem;
    background: rgba(138, 43, 226, 0.04);
    border: 1px solid rgba(138, 43, 226, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.format-thumb-gallery:hover {
    background: rgba(138, 43, 226, 0.09);
    border-color: rgba(138, 43, 226, 0.35);
    box-shadow: 0 4px 14px rgba(138, 43, 226, 0.12);
    transform: translateY(-1px);
}

.format-thumb-card {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    background: #f1f5f9;
}

.format-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.format-thumb-gallery:hover .format-thumb-img {
    transform: scale(1.08);
}

.format-thumb-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 0.55rem;
    font-weight: 700;
    text-align: center;
    padding: 1px 0;
    letter-spacing: 0.03em;
    backdrop-filter: blur(2px);
}

.format-thumb-cta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-purple);
    margin-left: auto;
}

.format-thumb-cta .thumb-cta-icon {
    font-size: 0.88rem;
}

/* ==========================================================================
   Physical Hardcover Book Modal Lightbox
   ========================================================================== */
.physical-modal-tabs {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.physical-tab-btn {
    padding: 0.55rem 1.15rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-secondary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.physical-tab-btn:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    background: rgba(138, 43, 226, 0.05);
}

.physical-tab-btn.active {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(138, 43, 226, 0.3);
}

.physical-modal-image-wrap {
    position: relative;
    width: 100%;
    height: 340px;
    max-height: 50vh;
    border-radius: 16px;
    overflow: hidden;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.physical-modal-main-img {
    max-width: 95%;
    max-height: 90%;
    object-fit: contain;
    display: block;
    transition: opacity 0.25s ease, transform 0.25s ease;
    border-radius: 6px;
}

.physical-modal-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0) 100%);
    padding: 1.2rem 1rem 0.65rem;
    color: #f8fafc;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    pointer-events: none;
}

.physical-modal-thumbs-nav {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.85rem;
}

.physical-thumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.physical-thumb-item img {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    object-fit: cover;
}

.physical-thumb-item:hover {
    background: rgba(138, 43, 226, 0.08);
    border-color: rgba(138, 43, 226, 0.35);
    color: var(--accent-purple);
}

.physical-thumb-item.active {
    border-color: var(--accent-purple);
    background: rgba(138, 43, 226, 0.1);
    color: var(--accent-purple);
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.15);
}

.physical-modal-digital-included {
    margin-top: 1.1rem;
    padding-top: 0.9rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.digital-included-header {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.digital-included-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-outline-cyan {
    background: rgba(0, 180, 216, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.35);
    color: #0077b6;
}
.btn-outline-cyan:hover {
    background: rgba(0, 180, 216, 0.18);
    border-color: rgba(0, 180, 216, 0.6);
    color: #023e8a;
}

.btn-outline-purple {
    background: rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(138, 43, 226, 0.35);
    color: var(--accent-purple);
}
.btn-outline-purple:hover {
    background: rgba(138, 43, 226, 0.18);
    border-color: rgba(138, 43, 226, 0.6);
    color: #6b21a8;
}

.btn-outline-game {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #7c3aed;
}
.btn-outline-game:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    border-color: rgba(168, 85, 247, 0.7);
    color: #6d28d9;
}

/* ==========================================================================
   Admin Order Details Modal & Character Roster Photos
   ========================================================================== */
#admin-order-modal .modal-content {
    max-width: 680px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.22);
}

#admin-order-modal .modal-header {
    margin-bottom: 1.2rem;
    text-align: left;
    align-items: flex-start;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
}

#admin-order-modal .modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 160px);
    padding-right: 0.4rem;
    color: var(--text-primary);
}

/* Custom scrollbar for modal */
#admin-order-modal .modal-body::-webkit-scrollbar {
    width: 6px;
}
#admin-order-modal .modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}
#admin-order-modal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 4px;
}
#admin-order-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.7);
}

.admin-order-info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.admin-order-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.85rem 1.25rem;
    margin-top: 0.85rem;
    font-size: 0.9rem;
}

.admin-order-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-order-meta-label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.admin-order-meta-value {
    font-weight: 600;
    color: #0f172a;
}

/* Characters Section */
.admin-chars-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-chars-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-chars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.admin-char-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    display: flex;
    gap: 0.9rem;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-char-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.admin-char-avatar-box {
    position: relative;
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff, #ede9fe);
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.admin-char-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.admin-char-avatar-img:hover {
    transform: scale(1.08);
}

.admin-char-avatar-placeholder {
    font-size: 2rem;
    line-height: 1;
}

.admin-char-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admin-char-name-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.2rem;
}

.admin-char-name {
    font-weight: 800;
    font-size: 1rem;
    color: #0f172a;
    line-height: 1.2;
}

.admin-char-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: #e0f2fe;
    color: #0369a1;
}

.admin-char-sub {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.admin-char-notes {
    font-size: 0.78rem;
    color: #475569;
    font-style: italic;
    background: #f8fafc;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    border-left: 3px solid #8b5cf6;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.admin-char-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 8px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
    transition: all 0.2s ease;
    align-self: flex-start;
    margin-top: auto;
}

.admin-char-download-btn:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

.admin-char-no-photo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    align-self: flex-start;
    margin-top: auto;
}

.admin-batch-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
    transition: all 0.2s ease;
}

.admin-batch-download-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

/* ==========================================================================
   COLOR SCHEME & DARK MODE BEHAVIOR
   Ensures dark mode appearance is identical to standard light theme
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    :root,
    html,
    body {
        color-scheme: light;
    }
}

/* ==========================================================================
   CONVERSION BOOSTERS, TRUST SIGNALS & UGC REVIEWS
   ========================================================================== */



/* 2. Global Footer Minimal Monochrome Trust Badges */
.footer-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem 1.8rem;
    padding: 1.2rem 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.footer-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.2px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-trust-badge:hover {
    color: #f1f5f9;
    transform: translateY(-1px);
}

.trust-badge-icon {
    font-size: 1.15rem;
    filter: grayscale(1) opacity(0.85);
    transition: filter 0.2s ease;
}

.footer-trust-badge:hover .trust-badge-icon {
    filter: grayscale(0) opacity(1);
}

.footer-trust-divider {
    color: rgba(148, 163, 184, 0.3);
    font-size: 1rem;
    user-select: none;
}


/* Quality Reassurance Strip */
.quality-reassurance-container {
    max-width: 1480px;
    margin: 2rem auto 3.5rem;
    padding: 0 1.5rem;
}

.reviews-reassurance-strip {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    padding: 1.25rem 1rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 252, 0.94) 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px -4px rgba(31, 38, 135, 0.05), 0 2px 8px -2px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
}

.reviews-reassurance-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-gradient);
    opacity: 0.9;
}

.reassurance-pill-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.6rem 0.9rem;
    position: relative;
    border-radius: 14px;
    transition: background 0.25s ease, transform 0.25s ease;
    min-width: 0;
}

.reassurance-pill-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(226, 232, 240, 0.9), transparent);
}

.reassurance-pill-item:hover {
    background: rgba(248, 250, 252, 0.9);
    transform: translateY(-2px);
}

.reassurance-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.reassurance-pill-item:hover .reassurance-icon-wrapper {
    transform: scale(1.08) rotate(3deg);
}

.reassurance-icon-wrapper.icon-teal {
    background: rgba(13, 148, 136, 0.1);
    color: #0d9488;
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.reassurance-icon-wrapper.icon-rose {
    background: rgba(219, 39, 119, 0.1);
    color: #db2777;
    border: 1px solid rgba(219, 39, 119, 0.2);
}

.reassurance-icon-wrapper.icon-gold {
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.reassurance-icon-wrapper.icon-blue {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.reassurance-icon-wrapper.icon-emerald {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.reassurance-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.reassurance-text strong {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.2px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reassurance-text span {
    font-size: 0.77rem;
    color: #64748b;
    line-height: 1.35;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 4. Order Form: Misprint & Typo Policy Callout */
.order-guarantee-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.1rem 1.25rem;
    margin-top: 1rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-guarantee-callout:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.12);
}

.order-guarantee-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.order-guarantee-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-guarantee-title {
    font-family: var(--font-heading);
    font-size: 0.96rem;
    font-weight: 700;
    color: #34d399;
    letter-spacing: 0.3px;
}

.order-guarantee-text {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #cbd5e1;
}

/* 5. Order Form: Risk-Free 3D Viewer Badge */
.option-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.risk-free-mini-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.4);
    font-size: 0.74rem;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.15);
}

.risk-free-preview-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.7rem;
    padding: 0.6rem 0.9rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    font-size: 0.86rem;
    color: #e2e8f0;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.risk-free-preview-badge:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.55);
}

.risk-free-badge-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.risk-free-badge-text strong {
    color: #38bdf8;
    font-weight: 700;
}

/* Responsiveness for Trust & Guarantees */
@media (max-width: 1180px) {
    .reviews-reassurance-strip {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 0.85rem;
        padding: 1.25rem;
    }

    .reassurance-pill-item:not(:last-child)::after {
        display: none;
    }

    .reassurance-pill-item {
        background: rgba(248, 250, 252, 0.7);
        border: 1px solid rgba(226, 232, 240, 0.7);
        padding: 0.75rem 1rem;
    }

    .reassurance-text strong,
    .reassurance-text span {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .footer-trust-row {
        flex-direction: column;
        gap: 0.85rem;
        align-items: center;
    }

    .footer-trust-divider {
        display: none;
    }

    .reviews-reassurance-strip {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        padding: 1rem;
    }

    .reassurance-pill-item {
        padding: 0.75rem 0.9rem;
    }

    .reassurance-text strong {
        font-size: 0.92rem;
    }

    .reassurance-text span {
        font-size: 0.82rem;
    }
}

/* Order Funnel: Credit Deficit & Insufficient Balance Inline Top-Up UI */
.order-deficit-container.rounded-lg,
.rounded-lg {
    border-radius: 14px;
}

.order-deficit-container.bg-amber-50,
.bg-amber-50 {
    background: #fffbeb !important;
}

.order-deficit-container.p-4,
.p-4 {
    padding: 1.1rem 1.35rem !important;
}

.order-deficit-container.border,
.border {
    border-width: 1.5px !important;
    border-style: solid !important;
}

.order-deficit-container.border-amber-200,
.border-amber-200 {
    border-color: #fde68a !important;
}

.text-sm {
    font-size: 0.885rem !important;
    line-height: 1.45 !important;
}

.text-amber-800 {
    color: #92400e !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.font-bold {
    font-weight: 700 !important;
}

.text-emerald-600 {
    color: #059669 !important;
}

.underline {
    text-decoration: underline !important;
}

.order-deficit-container {
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12);
    transition: all 0.25s ease;
}

.order-deficit-container:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.2);
    border-color: #f59e0b !important;
}

.btn-deficit-topup {
    font-family: inherit;
    transition: color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.btn-deficit-topup:hover {
    color: #047857 !important;
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ==========================================================================
   Hardcover Keepsake Specs & Child-Safe Content Guarantee
   ========================================================================== */
#physical-book-modal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.hardcover-keepsake-specs-box {
    margin-top: 1.25rem;
    padding: 1.15rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.keepsake-specs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.keepsake-specs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.keepsake-specs-title {
    margin: 0;
    font-size: 1.05rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

.keepsake-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.keepsake-spec-card {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 0.95rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.keepsake-spec-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(138, 43, 226, 0.08);
    border-color: rgba(138, 43, 226, 0.3);
}

.spec-card-icon {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.spec-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.spec-card-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--accent-purple);
}

.spec-card-val {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

/* Child-Safe Content Guarantee Banner */
.modal-kidsafe-guarantee-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem 1.15rem;
    margin-top: 0.95rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.32);
    border-radius: 14px;
    backdrop-filter: blur(8px);
}

.kidsafe-banner-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.kidsafe-banner-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.kidsafe-banner-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #059669;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

.kidsafe-banner-text {
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.kidsafe-banner-text strong {
    color: #047857;
}

/* Child Safe Guarantee Badge in Author Section */
.child-safe-guarantee-badge {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.1rem;
    border-radius: 50px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.88rem;
    color: #065f46;
    line-height: 1.45;
}

.child-safe-badge-icon {
    font-size: 1.25rem;
    line-height: 1;
}

/* Hardcover Specs Mini Tags in Order Wizard */
.hardcover-specs-mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.45rem;
    margin-bottom: 0.55rem;
}

.hardcover-specs-mini-tags .mini-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    background: rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(138, 43, 226, 0.25);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--accent-purple);
}

/* Gift Ideas Quality & Specs Banner */
.gift-ideas-quality-banner {
    margin-top: 2.5rem;
    padding: 1.8rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    background: rgba(255, 255, 255, 0.6);
}

.gift-quality-badge-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.gift-quality-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin: 0.35rem 0 0.4rem;
    color: var(--text-primary);
}

.gift-quality-subtitle {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1.2rem;
}

@media (max-width: 640px) {
    .keepsake-specs-grid {
        grid-template-columns: 1fr;
    }
    .gift-ideas-quality-banner {
        padding: 1.25rem 1rem;
    }
}

/* ==========================================================================
   SĀMUJÍ HERITAGE & MEANING PAGE STYLING
   ========================================================================== */

.page-about {
    width: 100%;
    min-height: 80vh;
}

.about-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.75rem 5rem;
}

.about-hero {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.badge-heritage {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(219, 39, 119, 0.08);
    border: 1px solid rgba(219, 39, 119, 0.25);
    color: var(--brand-magenta);
    padding: 0.4rem 1.1rem;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-logo-wrapper {
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-hero-logo {
    max-width: 440px;
    width: 90%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(219, 39, 119, 0.12));
    transition: transform 0.3s ease;
}

.about-hero-logo:hover {
    transform: scale(1.02);
}

.about-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
}

.brand-gradient-text {
    background: linear-gradient(135deg, #d97706 0%, #db2777 50%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.about-lead {
    font-size: clamp(1.05rem, 1.8vw, 1.22rem);
    color: var(--text-secondary);
    max-width: 820px;
    margin: 0 auto 2rem;
    line-height: 1.75;
}

.about-slogan-pill {
    display: inline-block;
    background: #ffffff;
    border: 1.5px solid rgba(219, 39, 119, 0.28);
    border-radius: 9999px;
    padding: 0.9rem 2.2rem;
    box-shadow: 0 8px 30px rgba(219, 39, 119, 0.1);
}

.slogan-formula {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    color: var(--text-primary);
}

.slogan-highlight {
    font-weight: 800;
    background: linear-gradient(135deg, #d97706 0%, #db2777 60%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Three Heritage Syllable Cards */
.heritage-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.heritage-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.2rem 1.8rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.heritage-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--card-border-active);
}

.heritage-card.card-sa {
    border-top: 4px solid var(--brand-gold);
}

.heritage-card.card-mu {
    border-top: 4px solid var(--brand-magenta);
}

.heritage-card.card-ji {
    border-top: 4px solid var(--brand-ink);
}

.heritage-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.syllable-badge {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.badge-sa {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
    border: 1.5px solid rgba(217, 119, 6, 0.35);
}

.badge-mu {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #be185d;
    border: 1.5px solid rgba(219, 39, 119, 0.35);
}

.badge-ji {
    background: linear-gradient(135deg, #f4f4f5 0%, #e4e4e7 100%);
    color: #18181b;
    border: 1.5px solid rgba(24, 24, 27, 0.35);
}

.script-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

.script-tamil {
    background: rgba(217, 119, 6, 0.1);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.25);
}

.script-malay {
    background: rgba(219, 39, 119, 0.1);
    color: #be185d;
    border: 1px solid rgba(219, 39, 119, 0.25);
}

.script-chinese {
    background: rgba(24, 24, 27, 0.08);
    color: #18181b;
    border: 1px solid rgba(24, 24, 27, 0.2);
}

.heritage-origin-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    background: #f8fafc;
    border-radius: 14px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.3rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.origin-word {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.origin-romanized {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
}

.origin-arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.origin-meaning {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-magenta);
}

.heritage-card.card-sa .origin-meaning {
    color: var(--brand-gold);
}

.heritage-card.card-ji .origin-meaning {
    color: var(--brand-seal);
}

.heritage-card-divider {
    height: 1px;
    background: rgba(226, 232, 240, 0.8);
    margin-bottom: 1.2rem;
}

.heritage-card-body {
    font-size: 0.96rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.heritage-motif-box {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(226, 232, 240, 0.7);
}

.motif-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.motif-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Founder Story Quote Box inside Synthesis Banner */
.founder-story-box {
    position: relative;
    max-width: 860px;
    margin: 1.8rem auto 2.5rem;
    padding: 2.2rem 2.5rem 1.8rem;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.45) 0%, rgba(252, 231, 243, 0.5) 50%, rgba(240, 253, 250, 0.4) 100%);
    border: 1.5px solid rgba(219, 39, 119, 0.2);
    border-radius: 22px;
    box-shadow: 0 8px 25px rgba(219, 39, 119, 0.06);
    text-align: center;
    overflow: hidden;
}

.founder-story-box::before {
    content: '“';
    position: absolute;
    top: -12px;
    left: 20px;
    font-size: 5.5rem;
    font-family: Georgia, serif;
    line-height: 1;
    color: rgba(219, 39, 119, 0.12);
    pointer-events: none;
    user-select: none;
}

.founder-story-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #ffffff;
    border: 1px solid rgba(219, 39, 119, 0.25);
    color: var(--brand-magenta);
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 8px rgba(219, 39, 119, 0.08);
}

.founder-story-quote {
    font-size: clamp(1.05rem, 1.7vw, 1.18rem);
    color: #334155;
    line-height: 1.85;
    font-style: italic;
    margin: 0 0 1.4rem;
    position: relative;
    z-index: 1;
}

.founder-story-author {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 0.45rem 1.15rem 0.45rem 0.65rem;
    border-radius: 9999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.founder-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid rgba(219, 39, 119, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(219, 39, 119, 0.12);
}

.founder-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.15);
    display: block;
}

.founder-author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.founder-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.founder-role {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.2;
    margin-top: 2px;
}

/* Synthesis Banner */
.about-synthesis-banner {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-synthesis-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--brand-gradient);
}

.synthesis-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-magenta);
    background: rgba(219, 39, 119, 0.08);
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.synthesis-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
}

.synthesis-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 820px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.synthesis-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 950px;
    margin: 0 auto 2.8rem;
    text-align: left;
}

.synthesis-feature-item {
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: 1.25rem 1.4rem;
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.55;
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.synthesis-feature-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1;
}

.synthesis-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Homepage Heritage Teaser */
.heritage-home-teaser {
    margin: 3.5rem auto 1rem;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.heritage-home-teaser::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--brand-gradient);
}

.heritage-home-teaser:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: var(--card-border-active);
}

.heritage-home-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
    align-items: center;
}

.heritage-home-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: #fafafa;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.heritage-home-logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(219, 39, 119, 0.12));
}

.heritage-home-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.5rem 0 0.85rem;
}

.heritage-home-desc {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

@media (max-width: 960px) {
    .heritage-cards-grid {
        grid-template-columns: 1fr;
    }
    .synthesis-features {
        grid-template-columns: 1fr;
    }
    .heritage-home-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .heritage-home-visual {
        max-width: 320px;
        margin: 0 auto;
    }
    .about-slogan-pill {
        border-radius: 20px;
        padding: 0.9rem 1.2rem;
    }
    .founder-story-box {
        padding: 1.6rem 1.25rem 1.4rem;
        margin: 1.4rem auto 2rem;
    }
    .founder-story-quote {
        font-size: 1rem;
        line-height: 1.75;
    }
}




