/* ========================================
   KWALA - CREATIVE ENHANCED STYLES
   With smoother animations & innovative touches
   ======================================== */

/* --- 1. Font Definitions --- */
@font-face {
    font-family: 'ADLaM Display';
    src: url('fonts/ADLaM_Display.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter_Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter_Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* --- 2. Global Variables --- */
:root {
    --bg-light: #F4F1FA;
    --purple-light: #DCD0F0;
    --purple-dark: #463C6E;
    --text-main: #2E2550;
    --footer-bg: #F2F1F8;
    --footer-text: #3D365C;
    --sidebar-width: 250px;
    --bento-sidebar-bg: #343154;
    --bento-main-bg: #F3F1F9;
    --bento-card-bg: #FFFFFF;
    --bento-placeholder-bg: #D9D9D9;

    --font-heading: 'ADLaM Display', cursive;
    --font-body: 'Inter', sans-serif;

    --header-height: 80px;
    
    /* Animation Timing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Creative accent colors */
    --accent-pink: #F472B6;
    --accent-cyan: #22D3EE;
    --accent-orange: #FB923C;
    --accent-green: #4ADE80;
}

/* --- Arabic Font Override --- */
html[lang="ar"] {
    --font-heading: 'Noto Kufi Arabic', sans-serif;
    --font-body: 'Noto Kufi Arabic', sans-serif;
}

/* --- Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background: var(--bg-light);
    overflow-x: hidden;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--purple-dark), #7C3AED, var(--purple-light));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* --- Animated Gradient Mesh Background --- */
.gradient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

.gradient-mesh::before,
.gradient-mesh::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    animation: meshFloat 20s ease-in-out infinite;
}

.gradient-mesh::before {
    background: linear-gradient(135deg, #DCD0F0 0%, #7C3AED 100%);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.gradient-mesh::after {
    background: linear-gradient(135deg, #F472B6 0%, #7C3AED 100%);
    bottom: -200px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes meshFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, 30px) scale(1.1);
    }
    50% {
        transform: translate(20px, 60px) scale(0.95);
    }
    75% {
        transform: translate(-30px, 20px) scale(1.05);
    }
}

/* --- Floating Particles --- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--purple-dark);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 15s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 18s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 22s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 16s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 20s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 19s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 17s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2.5s; animation-duration: 21s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4.5s; animation-duration: 15s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1.5s; animation-duration: 23s; }
.particle:nth-child(10) { left: 15%; animation-delay: 3.5s; animation-duration: 18s; }

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-mascot {
    width: 120px;
    height: 120px;
    animation: mascotBounce 1s var(--ease-out-back) infinite;
}

@keyframes mascotBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.preloader-text {
    margin-top: 20px;
}

.loading-text {
    display: block;
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--purple-light);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    background: var(--purple-dark);
    border-radius: 2px;
    animation: loadingSlide 2s var(--ease-out-expo) forwards;
    width: 0%;
}

@keyframes loadingSlide {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(244, 241, 250, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s var(--ease-out-expo);
}

header.scrolled {
    background: rgba(244, 241, 250, 0.95);
    box-shadow: 0 4px 30px rgba(70, 60, 110, 0.1);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-main);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--purple-dark), #7C3AED);
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease-out-expo);
}

.logo:hover::after {
    transform: translateX(0);
}

.nav-center {
    display: flex;
    justify-content: center;
    flex: 1;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--purple-dark);
    transition: all 0.3s var(--ease-out-expo);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--purple-dark);
}

.nav-links a:hover::before {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 20px;
    background: var(--purple-dark);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: all 0.3s var(--ease-out-expo);
    white-space: nowrap;
}

.login-btn:hover {
    background: #7C3AED;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    background: var(--purple-light);
    transition: all 0.3s;
}

.lang-selector:hover {
    background: var(--purple-dark);
    color: white;
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(70, 60, 110, 0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s var(--ease-out-expo);
}

.lang-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.lang-dropdown-menu div {
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.lang-dropdown-menu div:hover {
    background: var(--purple-light);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 5% 60px;
    position: relative;
    overflow: hidden;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-subtitle {
    display: inline-block;
    font-size: 1.2rem;
    color: var(--purple-dark);
    margin-bottom: 15px;
    padding: 8px 20px;
    background: rgba(220, 208, 240, 0.5);
    border-radius: 30px;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s both;
}

.hero h1 span {
    display: inline-block;
    background: linear-gradient(135deg, var(--purple-dark) 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--footer-text);
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.6s both;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    perspective: 1000px;
}

.hero-image img {
    width: 100%;
    max-width: 450px;
    animation: mascotEnter 1.2s var(--ease-out-back) 0.8s both;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.hero-image img:hover {
    transform: scale(1.05) rotate(2deg);
}

@keyframes mascotEnter {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(0.5) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1) rotate(0deg);
    }
}

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

/* Floating animation for mascot */
.hero-image img {
    animation: mascotFloat 4s ease-in-out infinite, mascotEnter 1.2s var(--ease-out-back) 0.8s both;
}

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

/* --- Wave Dividers --- */
.wave-divider {
    width: 100%;
    height: 100px;
    position: relative;
    overflow: hidden;
}

.wave-divider svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.wave-divider.top {
    transform: rotate(180deg);
}

.wave-divider.bottom {
    margin-top: -1px;
}

/* --- Partners Section --- */
.partners {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(220, 208, 240, 0.3) 100%);
    position: relative;
}

.section-subtitle {
    display: block;
    text-align: center;
    font-size: 1rem;
    color: var(--purple-dark);
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.partners h3 {
    font-family: var(--font-body);
    font-weight: 700;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.marquee {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

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

.partner-card {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(70, 60, 110, 0.08);
    transition: all 0.3s var(--ease-out-expo);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(70, 60, 110, 0.15);
}

.partner-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- Features Section --- */
.features {
    padding: 80px 5%;
    position: relative;
}

.features-intro {
    max-width: 1200px;
    margin: 0 auto 80px;
}

.intro-header {
    text-align: center;
    margin-bottom: 50px;
}

.intro-subtitle {
    display: inline-block;
    font-size: 1rem;
    color: var(--purple-dark);
    margin-bottom: 15px;
    padding: 8px 20px;
    background: rgba(220, 208, 240, 0.5);
    border-radius: 30px;
}

.intro-header h2 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

.intro-split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.comparison-caption {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--footer-text);
}

.intro-visual-side {
    position: relative;
}

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

.main-card {
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(70, 60, 110, 0.2);
    transition: transform 0.4s var(--ease-out-expo);
}

.main-card:hover {
    transform: translateY(-10px) rotate(-2deg);
}

.mascot-side {
    position: absolute;
    width: 100px;
    bottom: -20px;
    right: -20px;
    animation: mascotPop 0.6s var(--ease-out-back) 0.5s both;
}

@keyframes mascotPop {
    from {
        opacity: 0;
        transform: scale(0) translate(20px, 20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translate(0, 0);
    }
}

/* --- Feature Grid --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-box {
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s var(--ease-out-expo);
}

.feature-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.feature-text {
    background: white;
    box-shadow: 0 10px 40px rgba(70, 60, 110, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-illustration {
    width: 150px;
    height: 150px;
    object-fit: contain;
    transition: transform 0.4s var(--ease-out-expo);
}

.feature-box:hover .feature-illustration {
    transform: scale(1.1) rotate(5deg);
}

.feature-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--purple-dark);
    margin-bottom: 10px;
    padding: 5px 15px;
    background: var(--purple-light);
    border-radius: 20px;
    width: fit-content;
}

.feature-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.feature-desc {
    color: var(--footer-text);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* 3D Tilt Effect for Feature Cards */
.feature-box {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.feature-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.3s;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), transparent);
}

.feature-box:hover::before {
    opacity: 1;
}

/* --- Download Section --- */
.download-section {
    padding: 100px 5%;
    background: linear-gradient(180deg, transparent 0%, rgba(220, 208, 240, 0.5) 100%);
    position: relative;
}

.download-content {
    max-width: 600px;
}

.download-subtitle {
    font-size: 1.1rem;
    color: var(--purple-dark);
    margin-bottom: 15px;
}

.download-section h2 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 40px;
}

.store-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background: var(--text-main);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(46, 37, 80, 0.3);
    background: #1a1638;
}

.store-btn .icon {
    font-size: 1.8rem;
}

.store-btn .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-btn .small {
    font-size: 0.7rem;
    opacity: 0.8;
}

.store-btn .large {
    font-size: 1.1rem;
    font-weight: 700;
}

.download-image {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.download-image img {
    width: 350px;
    animation: mascotFloat 4s ease-in-out infinite;
}

/* --- Floating Order Button --- */
#floating-order-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 900;
}

#floating-order-btn a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--purple-dark) 0%, #7C3AED 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.4);
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

#floating-order-btn a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

#floating-order-btn a:hover::before {
    opacity: 1;
}

#floating-order-btn a:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.5);
}

#floating-order-btn .btn-icon {
    font-size: 1.3rem;
    animation: bounceIcon 2s ease-in-out infinite;
}

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

/* Pulse animation */
#floating-order-btn a::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50px;
    background: inherit;
    z-index: -1;
    opacity: 0;
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

/* --- Footer --- */
footer {
    background: var(--footer-bg);
    padding: 60px 5% 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-main);
}

.footer-sub {
    font-size: 1rem;
    color: var(--purple-dark);
}

.footer-nav-group {
    display: flex;
    gap: 60px;
}

.nav-column h4 {
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

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

.nav-column a {
    color: var(--footer-text);
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.nav-column a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple-dark);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-column a:hover {
    color: var(--purple-dark);
}

.nav-column a:hover::before {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(70, 60, 110, 0.1);
    color: var(--footer-text);
    font-size: 0.9rem;
}

/* --- Scroll Reveal Animations --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s var(--ease-out-expo);
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.feature-box:nth-child(1) { transition-delay: 0s; }
.feature-box:nth-child(2) { transition-delay: 0.1s; }
.feature-box:nth-child(3) { transition-delay: 0.2s; }
.feature-box:nth-child(4) { transition-delay: 0.3s; }
.feature-box:nth-child(5) { transition-delay: 0.4s; }
.feature-box:nth-child(6) { transition-delay: 0.5s; }

/* ==========================================================================
   BENTO DASHBOARD ENHANCED STYLES
   ========================================================================== */

/* --- Enhanced Bento Dashboard Layout --- */
.bento-dashboard-body {
    display: flex;
    background-color: var(--bento-main-bg);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated background for dashboard */
.bento-dashboard-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(220, 208, 240, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(244, 241, 250, 0.5) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* --- Enhanced Sidebar --- */
.bento-sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bento-sidebar-bg);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
}

.bento-sidebar::after {
    display: none;
}

.bento-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.bento-nav-item {
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
}

.bento-nav-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    color: inherit;
    text-decoration: none;
    width: 100%;
}

.bento-nav-item.active, .bento-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* --- Main Content Area --- */
.bento-main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    max-width: calc(100vw - var(--sidebar-width));
    padding: 24px;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

/* --- Grid Container (legacy — kept for analytics) --- */
.bento-grid-container {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.bento-left-column {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.bento-right-column {
    flex: 1;
    display: flex;
    min-width: 0;
    max-width: 280px;
}

/* --- Right Column KPI Stack (legacy) --- */
.right-kpi-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

/* ===========================
   DASHBOARD GREETING BAR
=========================== */
.dash-greeting-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.dash-greeting {
    font-family: var(--font-body);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
}

.dash-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Time frame pills */
.timeframe-pills {
    display: flex;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(70, 60, 110, 0.1);
    overflow: hidden;
}

.tf-pill {
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--text-main);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tf-pill:hover {
    background: var(--bg-light);
}

.tf-pill.active {
    background: var(--text-main);
    color: #fff;
}

/* Outline buttons (Select dates, Filters) */
.dash-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--text-main);
    background: #fff;
    border: 1px solid rgba(70, 60, 110, 0.12);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dash-btn-outline:hover {
    background: var(--bg-light);
    border-color: rgba(70, 60, 110, 0.2);
}

.dash-btn-outline i {
    font-size: 0.85rem;
    color: var(--purple-dark);
}

/* ===========================
   DASHBOARD CHARTS ROW
=========================== */
.dash-charts-row {
    display: flex;
    gap: 20px;
    margin-top: 24px;
    align-items: stretch;
}

.dash-chart-main {
    flex: 3;
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid rgba(70, 60, 110, 0.08);
    box-shadow: 0 2px 12px rgba(70, 60, 110, 0.06);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.dash-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.dash-chart-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.dash-chart-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #888;
}

.chart-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dash-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--text-main);
    background: #fff;
    border: 1px solid rgba(70, 60, 110, 0.12);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dash-btn-sm:hover {
    background: var(--bg-light);
}

.dash-btn-sm.purple {
    background: var(--purple-dark);
    color: #fff;
    border-color: var(--purple-dark);
}

.dash-btn-sm.purple:hover {
    background: #7C3AED;
}

.dash-chart-canvas-wrap {
    flex: 1;
    position: relative;
    min-height: 260px;
    max-height: 360px;
}

.dash-chart-canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Side KPIs */
.dash-side-kpis {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    max-width: 280px;
}

.dash-side-kpis .kpi-card.mini {
    flex: 1;
    border-radius: 0;
    border-bottom: 1px solid rgba(70, 60, 110, 0.06);
}

.dash-side-kpis .kpi-card.mini:first-child {
    border-radius: 16px 16px 0 0;
}

.dash-side-kpis .kpi-card.mini:last-child {
    border-radius: 0 0 16px 16px;
    border-bottom: none;
}

.kpi-card.mini {
    padding: 14px 16px;
    gap: 10px;
    overflow: hidden;
}

.kpi-card.mini .kpi-accent {
    width: 38px;
    height: 38px;
}

.kpi-card.mini .kpi-ring {
    width: 38px;
    height: 38px;
}

.kpi-card.mini .kpi-title {
    font-size: 0.72rem;
}

.kpi-card.mini .kpi-value {
    font-size: 1.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-card.mini .kpi-trend {
    font-size: 0.7rem;
    padding: 3px 8px;
}

/* --- Enhanced Bento Cards with Glassmorphism --- */
.bento-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 4px 30px rgba(70, 60, 110, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 30px rgba(70, 60, 110, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.main-graph {
    flex-grow: 1;
    position: relative;
    max-height: 320px;
}

.activity-feed {
    display: flex;
    flex-direction: column;
}

.activity-feed h3 {
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
}

.activity-feed .table-container {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom scrollbar */
.activity-feed .table-container::-webkit-scrollbar {
    width: 6px;
}

.activity-feed .table-container::-webkit-scrollbar-track {
    background: rgba(220, 208, 240, 0.3);
    border-radius: 3px;
}

.activity-feed .table-container::-webkit-scrollbar-thumb {
    background: var(--purple-dark);
    border-radius: 3px;
}

.activity-feed table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.activity-feed tbody tr {
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.2s ease;
}

.activity-feed tbody tr:hover {
    background: rgba(220, 208, 240, 0.3);
}

.activity-feed td {
    padding: 14px 16px;
    font-size: 0.9rem;
    border-bottom: none;
}

.activity-feed td:first-child {
    border-radius: 12px 0 0 12px;
    font-weight: 600;
    color: var(--purple-dark);
}

.activity-feed td:last-child {
    border-radius: 0 12px 12px 0;
    text-align: right;
    font-weight: 600;
    color: var(--text-main);
}

/* --- KPI Cards (Dashboard) --- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    min-width: 0;
}

.kpi-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(70, 60, 110, 0.08);
    box-shadow: 0 2px 12px rgba(70, 60, 110, 0.06);
    transition: all 0.25s ease;
    overflow: hidden;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(70, 60, 110, 0.1);
}

/* Ring accent */
.kpi-accent {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.kpi-ring {
    width: 48px;
    height: 48px;
}

/* Info block */
.kpi-info {
    flex: 1;
    min-width: 0;
}

.kpi-title {
    font-size: 0.78rem;
    color: #aaa;
    font-weight: 500;
    margin-bottom: 4px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.kpi-value {
    font-size: 1.65rem;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--purple-dark);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Trend badge */
.kpi-trend {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.kpi-trend.up {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.kpi-trend.down {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.kpi-trend svg {
    width: 12px;
    height: 12px;
}

/* --- Chart Enhancements --- */
canvas {
    transition: all 0.3s ease;
}

canvas:hover {
    filter: drop-shadow(0 4px 20px rgba(124, 58, 237, 0.2));
}

/* --- Responsive Enhancements --- */
@media (max-width: 1200px) {
    .bento-grid-container {
        flex-direction: column;
        height: auto;
    }
    .bento-left-column, .bento-right-column {
        flex: none;
        width: 100%;
        max-width: none;
    }
    .right-kpi-stack {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .dash-charts-row {
        flex-direction: column;
    }
    .dash-side-kpis {
        max-width: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .dash-greeting-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .bento-dashboard-body {
        flex-direction: column;
    }
    .bento-sidebar {
        position: static;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: center;
        padding: 16px;
    }
    .bento-sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 0;
    }
    .bento-nav-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    .bento-nav-item.active::after {
        display: none;
    }
    .bento-nav-item:hover {
        transform: none;
    }
    .bento-main-content {
        margin-left: 0;
        width: 100%;
        padding: 16px;
    }
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    .kpi-card {
        padding: 16px 20px;
    }
    .kpi-value {
        font-size: 1.4rem;
    }
    .dash-side-kpis {
        grid-template-columns: 1fr;
    }
    .dash-controls {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .timeframe-pills {
        width: 100%;
    }
    .tf-pill {
        flex: 1;
        text-align: center;
        padding: 8px 8px;
    }
    .dash-chart-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   ANALYTICS PAGE ENHANCED STYLES
   ========================================================================== */

/* --- Analytics Page Wrapper --- */
.analytics-page-wrapper {
    position: relative;
    z-index: 1;
}

/* --- Analytics Background --- */
.analytics-bg {
    display: none;
}

/* --- Analytics Header --- */
.analytics-header {
    margin-bottom: 24px;
}

.analytics-header .header-content {
  width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;

}
.analytics-header .header-content .header-text {
    font-family: var(--font-body);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-main);
}

.analytics-header .header-content .header-text h1 {
    font-family: var(--font-heading);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.date-range-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.date-range-picker:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(70, 60, 110, 0.1);
}

.date-range-picker i:first-child {
    color: var(--purple-dark);
}

.date-range-picker .fa-chevron-down {
    font-size: 0.7rem;
    color: var(--footer-text);
}

.export-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--purple-dark);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.export-btn:hover {
    background: #7C3AED;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

/* --- KPI Grid --- */
.analytics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 0 4px;
}

/* --- Enhanced Analytics KPI Cards --- */
.analytics-kpi-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 4px 20px rgba(70, 60, 110, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.analytics-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 30px rgba(70, 60, 110, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Card glow effect — hidden */
.card-glow {
    display: none;
}

/* --- KPI Icon Wrapper --- */
.kpi-icon-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.kpi-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--purple-light) 0%, rgba(124, 58, 237, 0.2) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--purple-dark);
    transition: all 0.25s ease;
}

.analytics-kpi-card:hover .kpi-icon {
    transform: scale(1.05);
}

.kpi-icon.orders {
    background: linear-gradient(135deg, #FEF3C7 0%, #F59E0B 20%, rgba(245, 158, 11, 0.2) 100%);
    color: #d97706;
}

.kpi-icon.clv {
    background: linear-gradient(135deg, #D1FAE5 0%, #10B981 20%, rgba(16, 185, 129, 0.2) 100%);
    color: #059669;
}

.kpi-icon.cac {
    background: linear-gradient(135deg, #DBEAFE 0%, #3B82F6 20%, rgba(59, 130, 246, 0.2) 100%);
    color: #2563eb;
}

.kpi-icon.time {
    background: linear-gradient(135deg, #FCE7F3 0%, #EC4899 20%, rgba(236, 72, 153, 0.2) 100%);
    color: #db2777;
}

.kpi-icon.restaurant {
    background: linear-gradient(135deg, #FED7AA 0%, #F97316 20%, rgba(249, 115, 22, 0.2) 100%);
    color: #ea580c;
}

.kpi-icon.delivery {
    background: linear-gradient(135deg, #C7D2FE 0%, #6366F1 20%, rgba(99, 102, 241, 0.2) 100%);
    color: #4f46e5;
}

.kpi-icon.customer {
    background: linear-gradient(135deg, #FBCFE8 0%, #E879F9 20%, rgba(232, 121, 249, 0.2) 100%);
    color: #c026d3;
}

/* --- Sparkline Chart --- */
.kpi-sparkline {
    width: 80px;
    height: 30px;
    color: var(--purple-dark);
    opacity: 0.6;
    transition: all 0.3s;
}

.analytics-kpi-card:hover .kpi-sparkline {
    opacity: 1;
    transform: scale(1.1);
}

.kpi-sparkline svg {
    width: 100%;
    height: 100%;
}

/* --- KPI Content --- */
.kpi-content {
    flex: 1;
}

.kpi-title {
    font-size: 0.85rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.kpi-value-container {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.kpi-value {
    font-size: 2rem;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-main);
    position: relative;
}

.kpi-period {
    font-size: 0.75rem;
    color: var(--footer-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value.time-value {
    font-size: 1.6rem;
}

.kpi-value.restaurant-name {
    font-size: 1.4rem;
    color: var(--purple-dark);
}

.kpi-value.customer-name {
    font-size: 1.2rem;
}

/* --- Trend Indicators --- */
.kpi-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.kpi-trend.up {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.kpi-trend.down {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.kpi-trend i {
    font-size: 0.7rem;
}

/* --- Progress Ring --- */
.kpi-progress-ring {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
}

.kpi-progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(70, 60, 110, 0.1);
    stroke-width: 3;
}

.ring-progress {
    fill: none;
    stroke: var(--purple-dark);
    stroke-width: 3;
    stroke-linecap: round;
    animation: ringDraw 2s var(--ease-out-expo) both;
    transition: stroke-dasharray 0.5s;
}

@keyframes ringDraw {
    from {
        stroke-dasharray: 0, 100;
    }
}

.ring-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--purple-dark);
}

/* --- Bar Chart --- */
.kpi-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
    margin-top: 12px;
}

.kpi-bar-chart .bar {
    flex: 1;
    background: var(--purple-light);
    border-radius: 3px;
    transition: all 0.3s var(--ease-out-expo);
    animation: barGrow 1s var(--ease-out-expo) both;
}

.kpi-bar-chart .bar:nth-child(1) { animation-delay: 0.1s; }
.kpi-bar-chart .bar:nth-child(2) { animation-delay: 0.15s; }
.kpi-bar-chart .bar:nth-child(3) { animation-delay: 0.2s; }
.kpi-bar-chart .bar:nth-child(4) { animation-delay: 0.25s; }
.kpi-bar-chart .bar:nth-child(5) { animation-delay: 0.3s; }
.kpi-bar-chart .bar:nth-child(6) { animation-delay: 0.35s; }
.kpi-bar-chart .bar:nth-child(7) { animation-delay: 0.4s; }
.kpi-bar-chart .bar:nth-child(8) { animation-delay: 0.45s; }
.kpi-bar-chart .bar:nth-child(9) { animation-delay: 0.5s; }
.kpi-bar-chart .bar:nth-child(10) { animation-delay: 0.55s; }
.kpi-bar-chart .bar:nth-child(11) { animation-delay: 0.6s; }
.kpi-bar-chart .bar:nth-child(12) { animation-delay: 0.65s; }

@keyframes barGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.kpi-bar-chart .bar:hover {
    background: var(--purple-dark);
    transform: scaleY(1.1);
}

.kpi-bar-chart .bar.active {
    background: linear-gradient(180deg, var(--purple-dark), #7C3AED);
}

/* --- Restaurant Visual --- */
.restaurant-visual {
    position: absolute;
    bottom: 16px;
    right: 16px;
    text-align: center;
}

.taco-icon {
    font-size: 2rem;
}

.rating-stars {
    display: flex;
    gap: 2px;
    justify-content: center;
    margin-top: 4px;
}

.rating-stars i {
    font-size: 0.7rem;
    color: #F59E0B;
}

.rating-stars i:last-child {
    color: rgba(245, 158, 11, 0.4);
}

/* --- KPI Badge --- */
.kpi-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    padding: 4px 10px;
    background: linear-gradient(135deg, #FEF3C7 0%, #F59E0B 100%);
    color: #92400e;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 8px;
}

.kpi-badge i {
    font-size: 0.6rem;
}

/* --- Delivery Progress --- */
.delivery-progress {
    margin-top: 12px;
}

.progress-track {
    height: 8px;
    background: rgba(70, 60, 110, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #34D399);
    border-radius: 4px;
    width: 0;
    animation: progressFill 2s var(--ease-out-expo) 0.5s both;
}

@keyframes progressFill {
    from { width: 0; }
    to { width: 75%; }
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.65rem;
    color: var(--footer-text);
}

/* --- Customer Avatar --- */
.customer-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--purple-dark), #7C3AED);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 8px;
}

.kpi-customer-stats {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(70, 60, 110, 0.1);
}

.kpi-customer-stats .stat {
    display: flex;
    flex-direction: column;
}

.kpi-customer-stats .stat-num {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.kpi-customer-stats .stat-label {
    font-size: 0.7rem;
    color: var(--footer-text);
}

/* --- Trophy Visual --- */
.trophy-visual {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FEF3C7 0%, #F59E0B 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #92400e;
    font-size: 1.1rem;
}

/* --- Secondary Stats --- */
.secondary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card-mini {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 10px rgba(70, 60, 110, 0.05);
    transition: all 0.25s ease;
}

.stat-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 60, 110, 0.08);
    background: white;
}

.mini-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--purple-light), rgba(124, 58, 237, 0.15));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-dark);
    font-size: 1rem;
    flex-shrink: 0;
}

.mini-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mini-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}

.mini-label {
    font-size: 0.75rem;
    color: var(--footer-text);
}

.mini-trend {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
}

.mini-trend.up {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.mini-trend.down {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

/* --- Sidebar Enhancements --- */
.sidebar-logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo-icon {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #DCD0F0;
    display: inline-block;
    text-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Red Login link */
.sidebar-login {
    display: block;
    padding: 12px 18px;
    color: #EF4444;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.sidebar-login:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Tooltip for nav items — removed */
.bento-nav-item[data-tooltip]::after {
    display: none;
}

.bento-nav-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* --- Responsive Analytics --- */
@media (max-width: 1024px) {
    .analytics-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .analytics-header .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .analytics-kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-kpi-card {
        min-height: 180px;
    }
    
    .kpi-value {
        font-size: 1.6rem;
    }
    
    .secondary-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-sidebar {
        width: 80px;
        padding: 16px 8px;
    }
    
    .bento-sidebar-nav {
        gap: 4px;
    }
    
    .bento-nav-item {
        padding: 12px;
        justify-content: center;
    }
    
    .bento-nav-item a {
        display: flex;
        justify-content: center;
    }
    
    .sidebar-logo {
        margin-bottom: 20px;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
    
    .bento-main-content {
        margin-left: 80px;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .secondary-stats {
        grid-template-columns: 1fr;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .date-range-picker, .export-btn {
        flex: 1;
        justify-content: center;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 1200px) {
    .bento-grid-container {
        flex-direction: column;
        height: auto;
    }
    .bento-left-column, .bento-right-column {
        flex: none;
        width: 100%;
    }
    
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 150px;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-image img {
        max-width: 300px;
        margin-bottom: 30px;
    }
    
    .download-section {
        text-align: center;
    }
    
    .download-content {
        max-width: 100%;
    }
    
    .download-image {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 40px;
    }
    
    .download-image img {
        width: 250px;
    }
    
    .intro-split-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .bento-dashboard-body {
        flex-direction: column;
    }
    .bento-sidebar {
        position: static;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: center;
    }
    .bento-sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .bento-main-content {
        margin-left: 0;
        width: 100%;
    }
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    header {
        padding: 0 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-nav-group {
        flex-direction: column;
        gap: 30px;
    }
    
    .store-buttons {
        flex-direction: column;
    }
    
    .store-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   PROFILE PAGE STYLES
   ========================================================================== */

/* --- Profile Main Content --- */
.profile-main-content {
    padding: 24px;
}

/* --- Profile Header --- */
.profile-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(70, 60, 110, 0.08);
    position: relative;
}

.profile-cover {
    height: 160px;
    background: linear-gradient(135deg, #7C3AED 0%, #463C6E 50%, #DCD0F0 100%);
    position: relative;
    overflow: hidden;
}

.cover-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(244, 113, 182, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.3) 0%, transparent 50%);
    animation: coverPulse 5s ease-in-out infinite;
}

@keyframes coverPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.profile-info {
    display: flex;
    align-items: flex-end;
    padding: 0 30px 30px;
    margin-top: -60px;
    position: relative;
    flex-wrap: wrap;
    gap: 20px;
}

.profile-avatar-container {
    position: relative;
}

.profile-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid white;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(70, 60, 110, 0.25);
    position: relative;
    background: white;
}

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

.avatar-edit-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    background: var(--purple-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    border: 3px solid white;
}

.avatar-edit-btn:hover {
    background: #7C3AED;
    transform: scale(1.1);
}

.profile-details {
    flex: 1;
    padding-top: 70px;
}

.profile-details h1 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.profile-email, .profile-phone {
    color: var(--footer-text);
    font-size: 0.95rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-email i, .profile-phone i {
    color: var(--purple-dark);
    width: 16px;
}

.profile-badges {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.premium {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #5C4000;
}

.badge.verified {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.profile-actions {
    display: flex;
    gap: 12px;
    padding-top: 70px;
}

.btn-edit-profile {
    padding: 12px 24px;
    background: var(--purple-dark);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-edit-profile:hover {
    background: #7C3AED;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.btn-settings {
    width: 46px;
    height: 46px;
    background: rgba(70, 60, 110, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--purple-dark);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    font-size: 1.1rem;
}

.btn-settings:hover {
    background: var(--purple-dark);
    color: white;
    transform: rotate(90deg);
}

/* --- Profile Stats --- */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(70, 60, 110, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: statEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes statEnter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(70, 60, 110, 0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--purple-light) 0%, rgba(124, 58, 237, 0.2) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.3rem;
    color: var(--purple-dark);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--footer-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Profile Grid Container --- */
.profile-grid-container {
    display: flex;
    gap: 24px;
}

.profile-left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-right-column {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --- Profile Cards Base --- */
.profile-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(70, 60, 110, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: cardFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(70, 60, 110, 0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(70, 60, 110, 0.08);
}

.card-header h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: var(--purple-dark);
}

.btn-icon-small {
    width: 32px;
    height: 32px;
    background: rgba(70, 60, 110, 0.08);
    border: none;
    border-radius: 10px;
    color: var(--purple-dark);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-small:hover {
    background: var(--purple-dark);
    color: white;
}

.view-all-link {
    color: var(--purple-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

.view-all-link:hover {
    color: #7C3AED;
}

.item-count {
    background: var(--purple-light);
    color: var(--purple-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-body {
    padding: 20px 24px;
}

/* --- Personal Information --- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label {
    font-size: 0.8rem;
    color: var(--footer-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 500;
}

/* --- Saved Addresses --- */
.address-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.address-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(70, 60, 110, 0.03);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    border: 2px solid transparent;
}

.address-item:hover, .address-item.active {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.2);
}

.address-icon {
    width: 45px;
    height: 45px;
    background: var(--purple-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-dark);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.address-details {
    flex: 1;
}

.address-details h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.address-tag {
    font-size: 0.7rem;
    background: var(--purple-dark);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.address-details p {
    font-size: 0.9rem;
    color: var(--footer-text);
    line-height: 1.4;
}

.address-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.address-item:hover .address-actions {
    opacity: 1;
}

.address-actions button {
    width: 32px;
    height: 32px;
    background: white;
    border: 1px solid rgba(70, 60, 110, 0.1);
    border-radius: 8px;
    color: var(--footer-text);
    cursor: pointer;
    transition: all 0.3s;
}

.address-actions button:hover {
    background: var(--purple-dark);
    color: white;
    border-color: var(--purple-dark);
}

/* --- Payment Methods --- */
.payment-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.card-visual {
    flex: 1;
    height: 90px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.card-visual.mastercard {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.card-chip {
    width: 35px;
    height: 25px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 4px;
    margin-bottom: 15px;
}

.card-number {
    font-family: monospace;
    font-size: 1rem;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.card-expiry {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.card-brand {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.payment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-default {
    font-size: 0.75rem;
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.btn-set-default {
    font-size: 0.75rem;
    background: rgba(70, 60, 110, 0.1);
    color: var(--purple-dark);
    padding: 4px 10px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-set-default:hover {
    background: var(--purple-dark);
    color: white;
}

.payment-actions button {
    width: 32px;
    height: 32px;
    background: white;
    border: 1px solid rgba(70, 60, 110, 0.1);
    border-radius: 8px;
    color: var(--footer-text);
    cursor: pointer;
    transition: all 0.3s;
}

.payment-actions button:hover {
    background: var(--purple-dark);
    color: white;
    border-color: var(--purple-dark);
}

.cash-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(70, 60, 110, 0.03);
    border-radius: 12px;
}

.cash-option i {
    color: var(--purple-dark);
    font-size: 1.2rem;
}

.cash-option span {
    flex: 1;
    font-weight: 500;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(70, 60, 110, 0.2);
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background: linear-gradient(135deg, var(--purple-dark) 0%, #7C3AED 100%);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* --- Recent Orders --- */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(70, 60, 110, 0.03);
    border-radius: 14px;
    transition: all 0.3s var(--ease-out-expo);
}

.order-item:hover {
    background: rgba(124, 58, 237, 0.06);
}

.order-status {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.order-status.delivered {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.order-status.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.order-details {
    flex: 1;
}

.order-details h4 {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.order-details p {
    font-size: 0.85rem;
    color: var(--footer-text);
}

.order-date {
    font-size: 0.75rem;
    color: var(--footer-text);
}

.btn-reorder {
    padding: 8px 16px;
    background: var(--purple-dark);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-reorder:hover {
    background: #7C3AED;
}

.btn-reorder.success {
    background: #22c55e;
}

/* --- Account Settings --- */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(70, 60, 110, 0.06);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.settings-info i {
    width: 40px;
    height: 40px;
    background: var(--purple-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-dark);
}

.settings-info h4 {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.settings-info p {
    font-size: 0.8rem;
    color: var(--footer-text);
}

.language-select {
    padding: 8px 14px;
    border: 1px solid rgba(70, 60, 110, 0.2);
    border-radius: 10px;
    background: white;
    color: var(--text-main);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
}

.language-select:focus {
    border-color: var(--purple-dark);
}

/* --- Favorite Restaurants --- */
.favorites-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.favorites-scroll::-webkit-scrollbar {
    height: 6px;
}

.favorites-scroll::-webkit-scrollbar-track {
    background: rgba(70, 60, 110, 0.05);
    border-radius: 3px;
}

.favorites-scroll::-webkit-scrollbar-thumb {
    background: var(--purple-light);
    border-radius: 3px;
}

.favorite-item {
    flex-shrink: 0;
    width: 100px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out-expo);
}

.favorite-item:hover {
    transform: translateY(-5px);
}

.favorite-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 8px;
    box-shadow: 0 4px 15px rgba(70, 60, 110, 0.1);
}

.favorite-item span {
    font-size: 0.8rem;
    color: var(--text-main);
    font-weight: 500;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-item.more {
    width: 80px;
    height: 80px;
    background: rgba(70, 60, 110, 0.08);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.favorite-item.more i {
    font-size: 1.2rem;
    color: var(--purple-dark);
}

.favorite-item.more span {
    font-size: 0.7rem;
}

/* --- Security --- */
.security-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(70, 60, 110, 0.06);
}

.security-item:last-child {
    border-bottom: none;
}

.security-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.security-info i {
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
}

.security-info h4 {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.security-info p {
    font-size: 0.8rem;
    color: var(--footer-text);
}

.btn-secondary {
    padding: 8px 16px;
    background: rgba(70, 60, 110, 0.08);
    color: var(--purple-dark);
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-secondary:hover {
    background: var(--purple-dark);
    color: white;
}

/* --- Logout Button --- */
.btn-logout {
    width: 100%;
    padding: 16px;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s var(--ease-out-expo);
    animation: cardFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.btn-logout:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.25);
}

/* --- Responsive Profile --- */
@media (max-width: 1200px) {
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-grid-container {
        flex-direction: column;
    }
    
    .profile-left-column, .profile-right-column {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px 25px;
    }
    
    .profile-details {
        padding-top: 15px;
    }
    
    .profile-badges {
        justify-content: center;
    }
    
    .profile-actions {
        padding-top: 15px;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-wrap: wrap;
        gap: 10px;
    }       
     }

/* ========================================
   AUTH / LOGIN PAGE STYLES
   ======================================== */

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    padding: 20px;
}

.auth-container {
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 580px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(46, 37, 80, 0.12), 0 0 0 1px rgba(70, 60, 110, 0.06);
    animation: authFadeUp 0.6s var(--ease-out-expo);
}

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

/* --- Left Panel (decorative) --- */
.auth-panel-left {
    flex: 0 0 380px;
    background: linear-gradient(160deg, var(--purple-dark) 0%, #7C3AED 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.auth-panel-left::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    top: -80px;
    right: -80px;
    border-radius: 50%;
}

.auth-panel-left::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    bottom: -60px;
    left: -40px;
    border-radius: 50%;
}

.auth-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
    margin-bottom: 30px;
    z-index: 1;
}

.auth-illustration img {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
    animation: authFloat 4s ease-in-out infinite;
    z-index: 1;
}

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

.auth-tagline {
    margin-top: 24px;
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    text-align: center;
    line-height: 1.6;
    z-index: 1;
}

/* --- Right Panel (form) --- */
.auth-panel-right {
    flex: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 360px;
}

.auth-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--text-main);
    margin-bottom: 6px;
}

.auth-subtitle {
    color: #7B7394;
    font-size: 0.9rem;
    margin-bottom: 28px;
}

/* --- Error Banner --- */
.auth-error {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #FEF2F2;
    color: #DC2626;
    font-size: 0.85rem;
    margin-bottom: 20px;
    animation: authShake 0.4s ease;
}

.auth-error.show {
    display: flex;
}

@keyframes authShake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}

/* --- Form Fields --- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.auth-input-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0 14px;
    transition: all 0.25s ease;
}

.auth-input-wrap:focus-within {
    border-color: #7C3AED;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.auth-input-icon {
    flex-shrink: 0;
    color: #9B8FC4;
    margin-right: 10px;
}

.auth-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 12px 0;
    color: var(--text-main);
    outline: none;
}

.auth-input-wrap input::placeholder {
    color: #B4ABC8;
}

.auth-toggle-pw {
    background: none;
    border: none;
    cursor: pointer;
    color: #9B8FC4;
    padding: 4px;
    display: flex;
    transition: color 0.2s;
}

.auth-toggle-pw:hover {
    color: var(--purple-dark);
}

/* --- Options Row --- */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #5C5478;
    user-select: none;
}

.auth-checkbox input {
    display: none;
}

.auth-checkbox .checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid var(--purple-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.auth-checkbox input:checked + .checkmark {
    background: var(--purple-dark);
    border-color: var(--purple-dark);
}

.auth-checkbox input:checked + .checkmark::after {
    content: '';
    display: block;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.auth-forgot {
    color: #7C3AED;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-forgot:hover {
    color: var(--purple-dark);
}

/* --- Submit Button --- */
.auth-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--purple-dark), #7C3AED);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-submit.loading .auth-submit-text {
    opacity: 0;
}

.auth-submit.loading .auth-spinner {
    display: block;
}

.auth-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: authSpin 0.6s linear infinite;
    position: absolute;
}

@keyframes authSpin {
    to { transform: rotate(360deg); }
}

/* --- Footer Text --- */
.auth-footer-text {
    text-align: center;
    font-size: 0.85rem;
    color: #7B7394;
    margin-top: 24px;
}

.auth-footer-text a {
    color: #7C3AED;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

/* --- Auth Responsive --- */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        max-width: 440px;
    }

    .auth-panel-left {
        flex: none;
        padding: 32px 24px 24px;
    }

    .auth-illustration img {
        width: 120px;
    }

    .auth-tagline {
        font-size: 0.9rem;
    }

    .auth-panel-right {
        padding: 32px 24px;
    }

    .login-btn span {
        display: none;
    }
}