/* ==========================================================================
   ROBLOXIA STORE - CINNAMOROLL PASTEL SKY BLUE DESIGN SYSTEM
   ========================================================================== */

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

:root {
    --bg-main: #F0F9FF;
    --bg-surface: #FFFFFF;
    --bg-card: rgba(255, 255, 255, 0.88);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --border-card: #BAE6FD;
    --border-glow: #38BDF8;
    
    --primary: #0284C7;
    --primary-light: #38BDF8;
    --primary-soft: #E0F2FE;
    --primary-glow: rgba(56, 189, 248, 0.35);
    
    --secondary: #0D9488;
    --secondary-soft: #CCFBF1;
    
    --pink-accent: #F472B6;
    --pink-soft: #FCE7F3;
    --star-gold: #F59E0B;
    --star-soft: #FEF3C7;
    
    --text-main: #0F172A;
    --text-muted: #475569;
    --text-dim: #64748B;
    
    --font-heading: 'Fredoka', 'Outfit', -apple-system, sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    
    --transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-cloud: 0 12px 32px rgba(186, 230, 253, 0.45);
    --shadow-card: 0 8px 24px rgba(14, 165, 233, 0.08);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(-45deg, #F0F9FF, #E0F2FE, #FCE7F3, #E0F2FE);
    background-size: 400% 400%;
    animation: animatedBgWaves 14s ease infinite;
    min-height: 100vh;
    padding-bottom: 50px;
}

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

/* Background Animated Clouds & Robux Floating Coins Decorative Layer */
.bg-animated-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Floating Clouds */
.cloud {
    position: absolute;
    font-size: 3.5rem;
    opacity: 0.35;
    filter: drop-shadow(0 6px 16px rgba(186, 230, 253, 0.6));
    animation: floatDriftCloud linear infinite;
    user-select: none;
}

.cloud-1 { top: 12%; left: -10%; animation-duration: 28s; animation-delay: 0s; font-size: 4rem; }
.cloud-2 { top: 38%; left: -15%; animation-duration: 35s; animation-delay: 8s; font-size: 3rem; }
.cloud-3 { top: 65%; left: -12%; animation-duration: 30s; animation-delay: 4s; font-size: 4.5rem; }
.cloud-4 { top: 82%; left: -10%; animation-duration: 40s; animation-delay: 15s; font-size: 3.2rem; }

@keyframes floatDriftCloud {
    0% { transform: translateX(0vw) translateY(0px); opacity: 0.1; }
    10% { opacity: 0.38; }
    90% { opacity: 0.38; }
    100% { transform: translateX(115vw) translateY(-25px); opacity: 0; }
}

/* Floating Robux Coins & Sparkling Stars */
.robux-coin {
    position: absolute;
    font-family: var(--font-heading);
    font-weight: 800;
    user-select: none;
    animation: floatRobuxUp ease-in-out infinite alternate;
}

.coin-1 {
    top: 22%;
    left: 5%;
    font-size: 1.2rem;
    color: #F59E0B;
    background: #FEF3C7;
    border: 2px solid #F59E0B;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    animation-duration: 4.5s;
}

.coin-2 {
    top: 45%;
    right: 5%;
    font-size: 2.2rem;
    animation-duration: 3.8s;
    animation-delay: 1s;
}

.coin-3 {
    top: 72%;
    left: 6%;
    font-size: 1.15rem;
    color: #F59E0B;
    background: #FEF3C7;
    border: 2px solid #F59E0B;
    padding: 5px 12px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    animation-duration: 5.2s;
    animation-delay: 2s;
}

.coin-4 {
    top: 18%;
    right: 8%;
    font-size: 2.5rem;
    animation-duration: 4.2s;
}

.coin-5 {
    top: 55%;
    left: 3%;
    font-size: 1.1rem;
    color: #0284C7;
    background: #E0F2FE;
    border: 2px solid #38BDF8;
    padding: 5px 12px;
    border-radius: 50px;
    animation-duration: 4.8s;
    animation-delay: 1.5s;
}

.coin-6 {
    top: 85%;
    right: 6%;
    font-size: 2rem;
    animation-duration: 3.5s;
}

@keyframes floatRobuxUp {
    0% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-18px) rotate(8deg) scale(1.08); }
    100% { transform: translateY(6px) rotate(-6deg) scale(0.96); }
}

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

a:hover {
    color: #0369A1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.gradient-text {
    background: linear-gradient(135deg, #0284C7 0%, #38BDF8 50%, #F472B6 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: runningGradient 4s linear infinite;
}

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

.gradient-pink {
    background: linear-gradient(135deg, #EC4899 0%, #F472B6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Cloud Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid var(--border-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-cloud);
    transform: translateY(-4px);
}

/* Header & Navbar */
.header-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 2px solid #E0F2FE;
    padding: 14px 0;
    box-shadow: 0 4px 20px rgba(186, 230, 253, 0.2);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary);
}

.brand-logo i {
    font-size: 1.8rem;
    color: var(--pink-accent);
    filter: drop-shadow(0 2px 6px rgba(244, 114, 182, 0.4));
}

/* Animated CherieBlox Logo Letter Pop-Fill & Outline Effect */
.CherieBlox-animated {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.CherieBlox-animated .logo-text {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.7rem;
    letter-spacing: 0.5px;
    user-select: none;
}

.CherieBlox-animated .logo-text span {
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: 1.8px var(--letter-color, var(--primary));
    position: relative;
    animation: letterPopFill 2.8s infinite ease-in-out;
    animation-delay: var(--delay, 0s);
    transform-origin: center bottom;
}

@keyframes letterPopFill {
    0%, 10% {
        color: transparent;
        -webkit-text-stroke: 1.8px var(--letter-color, var(--primary));
        transform: scale(0.92) translateY(0);
        text-shadow: none;
        filter: none;
    }
    25%, 70% {
        color: var(--letter-color, var(--primary));
        -webkit-text-stroke: 0px transparent;
        transform: scale(1.22) translateY(-4px);
        text-shadow: 0 4px 15px rgba(244, 114, 182, 0.45);
        filter: drop-shadow(0 2px 8px var(--primary-glow));
    }
    85%, 100% {
        color: var(--letter-color, var(--primary));
        -webkit-text-stroke: 0px transparent;
        transform: scale(1) translateY(0);
        text-shadow: none;
        filter: none;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    background: var(--primary-soft);
    color: var(--primary);
}

/* Running Announcement Ticker */
.ticker-bar {
    background: linear-gradient(90deg, #E0F2FE, #FCE7F3, #E0F2FE);
    border-bottom: 1px solid #BAE6FD;
    padding: 10px 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.ticker-content {
    display: inline-block;
    animation: marqueeRunning 18s linear infinite;
    will-change: transform;
}

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

.running-icon {
    display: inline-block;
    animation: mascotBounce 0.6s infinite alternate ease-in-out;
}

@keyframes mascotBounce {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-4px) rotate(5deg); }
}

@keyframes pulseHeart {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.4);
    color: #FFFFFF;
}

.btn-pink {
    background: linear-gradient(135deg, #F472B6 0%, #EC4899 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(244, 114, 182, 0.4);
}

.btn-pink:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.45);
    color: #FFFFFF;
}

.btn-outline {
    background: #FFFFFF;
    border: 2px solid var(--border-card);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-soft);
    border-color: var(--primary-light);
}

/* Hero Section */
.hero-section {
    padding: 50px 0;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 2px solid var(--pink-accent);
    color: #DB2777;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(244, 114, 182, 0.2);
    animation: mascotBounce 2s infinite alternate;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 18px;
    color: #0F172A;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 26px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.stat-box {
    background: #FFFFFF;
    border: 2px solid var(--border-card);
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 4px 12px rgba(186, 230, 253, 0.2);
}

.stat-number {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
}

.hero-img {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 15px 30px rgba(56, 189, 248, 0.3));
    animation: runningFloat 3.5s ease-in-out infinite;
}

@keyframes runningFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1.5deg); }
}

/* Page Banner Header */
.page-header {
    background: linear-gradient(135deg, #E0F2FE 0%, #FCE7F3 100%);
    padding: 40px 0;
    text-align: center;
    border-bottom: 2px solid var(--border-card);
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Calculator Section */
.calculator-card {
    padding: 32px;
    background: #FFFFFF;
    border: 2px solid var(--border-card);
    border-radius: var(--radius-lg);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.slider-container {
    margin: 25px 0;
}

.custom-range {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: #E0F2FE;
    outline: none;
    accent-color: var(--primary);
    cursor: pointer;
}

.price-preview-box {
    background: var(--primary-soft);
    border: 2px dashed var(--primary-light);
    padding: 26px;
    border-radius: var(--radius-md);
    text-align: center;
}

.price-tag {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.product-card {
    padding: 24px;
    text-align: center;
    cursor: pointer;
    background: #FFFFFF;
    border: 2px solid var(--border-card);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.product-card.selected, .product-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-cloud);
    transform: translateY(-6px);
}

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #F472B6, #EC4899);
    color: #FFF;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
}

.product-icon {
    width: 110px;
    height: 110px;
    margin: 10px auto 15px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(186, 230, 253, 0.5);
    transition: var(--transition);
}

.product-card:hover .product-icon {
    transform: scale(1.06) rotate(-2deg);
    box-shadow: 0 10px 24px rgba(56, 189, 248, 0.4);
}

/* Delivery Method Selector Cards */
.delivery-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.delivery-card {
    background: #FFFFFF;
    border: 2px solid var(--border-card);
    padding: 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.delivery-card:hover, .delivery-card.active {
    border-color: var(--primary);
    background: var(--primary-soft);
    transform: translateY(-2px);
}

.product-amount {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 4px;
}

.product-price {
    font-size: 1.25rem;
    color: #0F172A;
    font-weight: 800;
}

/* Form inputs */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: #FFFFFF;
    border: 2px solid var(--border-card);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 90%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    background: #FFFFFF;
    border: 3px solid var(--border-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(56, 189, 248, 0.25);
}

.avatar-preview-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--primary-soft);
    border: 2px dashed var(--primary-light);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-top: 10px;
}

.avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #FFF;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.payment-item {
    background: #FFFFFF;
    border: 2px solid var(--border-card);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.payment-item:hover, .payment-item.active {
    border-color: var(--primary);
    background: var(--primary-soft);
}

/* Footer */
footer {
    border-top: 2px solid var(--border-card);
    background: #FFFFFF;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 2px solid var(--border-card);
    text-align: center;
    padding: 10px 20px;
    box-shadow: 0 -4px 18px rgba(186, 230, 253, 0.45);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (MOBILE & TABLET OPTIMIZATIONS)
   ========================================================================== */

/* Global Mobile Fixes */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

@media (max-width: 992px) {
    .hero-grid, .calc-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-grid {
        text-align: center;
        gap: 30px;
    }
    .hero-badge {
        margin: 0 auto 16px auto;
    }
    .hero-stats {
        justify-content: center;
    }
    .payment-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Navbar Responsive */
    .header-nav {
        padding: 10px 0;
    }

    .nav-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .brand-logo {
        justify-content: center;
    }

    .CherieBlox-animated .logo-text {
        font-size: 1.45rem;
    }

    .nav-links {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        gap: 6px;
        justify-content: flex-start;
        border-top: 1px solid #E0F2FE;
        padding-top: 8px;
    }

    .nav-links::-webkit-scrollbar {
        height: 3px;
    }

    .nav-links::-webkit-scrollbar-thumb {
        background: var(--border-card);
        border-radius: 10px;
    }

    .nav-links a {
        padding: 6px 12px;
        font-size: 0.82rem;
    }

    /* Hero Section Responsive */
    .hero-section {
        padding: 24px 0 36px;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.25;
        margin-bottom: 14px;
        word-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
        max-width: 100%;
        white-space: normal;
        line-height: 1.3;
        display: inline-block;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 20px;
    }

    .stat-box {
        padding: 10px 6px;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .hero-img {
        max-width: 280px;
        margin: 0 auto;
    }

    /* Product Cards Responsive */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card {
        padding: 16px 10px;
    }

    .product-icon {
        width: 80px;
        height: 80px;
        margin: 5px auto 10px;
    }

    .product-amount {
        font-size: 1.35rem;
    }

    .product-price {
        font-size: 1.05rem;
    }

    /* Calculator Responsive */
    .calculator-card {
        padding: 20px 16px;
    }

    .price-tag {
        font-size: 1.9rem;
    }

    /* Fixed Footer Bottom Responsive */
    .footer-bottom {
        font-size: 0.72rem;
        padding: 8px 12px;
        line-height: 1.35;
    }

    footer {
        padding-bottom: 50px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

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

    .delivery-selector {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .modal-container {
        padding: 20px 16px;
        width: 94%;
    }
}

/* ==========================================================================
   ADMIN SIDEBAR & FOOTER LAYOUT SYSTEM
   ========================================================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #FFFFFF;
    border-right: 2px solid var(--border-card);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 4px 0 20px rgba(186, 230, 253, 0.25);
}

.sidebar-brand {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #E0F2FE;
    text-align: center;
}

.sidebar-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: var(--primary-soft);
    color: var(--primary);
    transform: translateX(4px);
}

/* Sidebar Submenu Styling */
.sidebar-submenu {
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding-left: 18px;
    margin-top: 4px;
}

.sidebar-submenu.show {
    display: flex;
}

.sidebar-submenu a {
    padding: 8px 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-radius: 8px;
}

.sidebar-submenu a:hover, .sidebar-submenu a.sub-active {
    color: var(--primary);
    background: var(--primary-soft);
    font-weight: 800;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: calc(100% - 260px);
    transition: var(--transition);
}

.admin-layout.collapsed .admin-sidebar {
    transform: translateX(-100%);
}

.admin-layout.collapsed .admin-main {
    margin-left: 0;
    width: 100%;
}

.admin-topbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid #E0F2FE;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    z-index: 900;
    height: 65px;
    transition: var(--transition);
}

.sidebar-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: 2px solid var(--border-card);
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--primary);
}

.admin-content-inner {
    padding: 85px 28px 75px 28px;
    flex: 1;
}

.admin-footer {
    border-top: 2px solid var(--border-card);
    background: #FFFFFF;
    padding: 16px 28px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    position: fixed;
    bottom: 0;
    left: 260px;
    right: 0;
    z-index: 900;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.admin-layout.collapsed .admin-topbar,
.admin-layout.collapsed .admin-footer {
    left: 0;
}

/* Dark Backdrop for Mobile Sidebar */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1050;
    transition: var(--transition);
}

.sidebar-backdrop.active {
    display: block;
}

@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
        z-index: 1100;
        width: 260px;
    }
    .admin-sidebar.active {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.25);
    }
    .admin-main {
        margin-left: 0;
        width: 100%;
    }
    .admin-topbar,
    .admin-footer {
        left: 0;
    }
    .admin-content-inner {
        padding: 75px 14px 65px 14px;
    }
    .hide-mobile {
        display: none;
    }
}
