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

:root {
    /* Color Palette - Bangladesh Green & Crimson Red */
    --bg-amoled: #000000;
    --bg-darker: #020202;
    --bg-card: rgba(10, 10, 10, 0.6);
    --primary: #006A4E;
    --primary-bright: #00A86B;
    --primary-glow: rgba(0, 106, 78, 0.2);
    --secondary: #C0392B;
    --secondary-bright: #E74C3C;
    --secondary-glow: rgba(192, 57, 43, 0.2);
    --accent: #008B5E;
    --accent-glow: rgba(0, 139, 94, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #a1a1aa;

    /* Cinematic Glass */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-blur: blur(20px);

    /* Layout */
    --container-width: 1400px;
    --section-spacing: 140px;
    --border-radius: 24px;
    --border-radius-sm: 12px;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-amoled);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(ellipse at 15% 40%, rgba(0, 106, 78, 0.07), transparent 55%),
        radial-gradient(ellipse at 85% 60%, rgba(192, 57, 43, 0.07), transparent 55%),
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
}

/* Typography - Professional & Readable */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(3.2rem, 10vw, 6.5rem);
}

h2 {
    font-size: clamp(2.4rem, 6vw, 4rem);
}

h3 {
    font-size: 2rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
}

.mono {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Glass Utility - More Subtle */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, rgba(0, 106, 78, 0.04) 0%, transparent 50%, rgba(192, 57, 43, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    border-color: rgba(192, 57, 43, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(192, 57, 43, 0.08), 0 0 20px rgba(0, 106, 78, 0.08);
}


/* Button System - Compact */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--accent);
    box-shadow: 0 6px 28px rgba(0, 138, 94, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(192, 57, 43, 0.06);
    border: 1px solid rgba(192, 57, 43, 0.35);
    color: var(--secondary-bright);
    box-shadow: 0 4px 16px rgba(192, 57, 43, 0.1);
}

.btn-secondary:hover {
    background: rgba(192, 57, 43, 0.14);
    border-color: var(--secondary-bright);
    box-shadow: 0 6px 24px rgba(192, 57, 43, 0.25);
    transform: translateY(-2px);
}


/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 25%, var(--primary-bright) 55%, var(--secondary-bright) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 106, 78, 0.1);
    border: 1px solid rgba(0, 106, 78, 0.3);
    border-radius: 4px;
    color: var(--primary-bright);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-tag.red {
    background: rgba(192, 57, 43, 0.1);
    border-color: rgba(192, 57, 43, 0.35);
    color: var(--secondary-bright);
}

/* Navigation - Compact & Sticky */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

nav.scrolled {
    padding: 0.75rem 0;
    background: rgba(2, 1, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a.nav-link-premium {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-links a.nav-link-premium::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 8px var(--primary-glow);
    transition: width 0.3s ease;
}





/* Hero Section - Balanced */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 1.25rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* Bento Grid System - Advanced */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.25rem;
}

.bento-item {
    grid-column: span 1;
}

.bento-item-lg {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item-wide {
    grid-column: span 2;
}

/* Neural Line Backgrounds */
.neural-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.1;
}

/* Communication Dock */
.comm-dock {
    position: fixed;
    bottom: 110px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99999;
    align-items: flex-end;
}

.comm-item {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.comm-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.nav-cta img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.comm-dock.active .comm-item {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.comm-trigger {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px var(--primary-glow);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10000;
}

.comm-trigger.active {
    transform: rotate(135deg);
    background: var(--secondary);
    box-shadow: 0 8px 24px var(--secondary-glow);
}

/* Dashboard Elements */
.dashboard-mockup {
    background: #0a0a14;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.dashboard-header {
    display: flex;
    gap: 5px;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
}

.status-active {
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary);
}

/* Grid & Cards - Dense & Professional */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    padding: 1.75rem;
}

.service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

/* Pricing Packages - High-End Polish */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    padding: 3.5rem 2rem 3rem;
    position: relative;
    overflow: visible !important;
    background: rgba(10, 10, 10, 0.5);
}

.pricing-card.popular {
    border-color: var(--secondary);
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.12) 0%, rgba(0, 181, 108, 0.08) 60%, rgba(10, 10, 10, 0.6) 100%);
    transform: scale(1.08);
    z-index: 5;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2), 0 0 30px var(--secondary-glow), 0 0 15px var(--primary-glow);
}

.pricing-card .badge {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #000000;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1), 0 0 5px var(--primary);
}

.pricing-card .delivery-tag {
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Impact Metrics */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.impact-card {
    text-align: center;
    padding: 2.5rem;
}

.impact-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Terminal Mockup Utility */
.terminal-ui {
    background: #05050a;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    padding: 1.25rem;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--primary-bright);
    position: relative;
}

.terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.td-r {
    background: #ff5f56;
}

.td-y {
    background: #ffbd2e;
}

.td-g {
    background: #27c93f;
}

@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.popular {
        transform: none;
        margin: 1rem 0;
    }

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

/* Animations - Utilities */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Cinematic Background Elements */
/* .glow-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.glow-blob-secondary {
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
} */

/* Ball Pointer Follow Effect */
#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    background: radial-gradient(circle, var(--secondary) 0%, rgba(192, 57, 43, 0.3) 100%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    filter: blur(0px);
    transition: width 0.2s, height 0.2s, background 0.2s, opacity 0.2s, transform 0.2s;
    box-shadow: 0 0 10px var(--secondary), 0 0 4px var(--secondary-bright);
}

#cursor-glow.cursor-glow-hover {
    width: 40px;
    /* Larger size on hover */
    height: 40px;
    opacity: 0.6;
    /* Reduced opacity on hover */
}

/* Storytelling Transitions */
.section-overlap {
    margin-top: -100px;
    position: relative;
    z-index: 5;
}

/* Mixed Layouts */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.asymmetric-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 320px);
    gap: 1.5rem;
}

.bento-item-lg {
    grid-row: span 2;
}

.bento-item-wide {
    grid-column: span 2;
}

.card-status-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.6rem;
    padding: 4px 10px;
    border: 1px solid var(--secondary);
    border-radius: 100px;
    color: var(--secondary-bright);
    background: rgba(192, 57, 43, 0.08);
    z-index: 5;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.scanning-line {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(0, 181, 108, 0.15), rgba(220, 38, 38, 0.08), transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% {
        top: -100%;
    }

    100% {
        top: 200%;
    }
}

@keyframes growBar {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }

    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Workflow Simulator */
.workflow-terminal {
    background: #05050a;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    font-family: 'Space Grotesk', monospace;
}

.workflow-line {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.5s ease-out;
}

.workflow-line.active {
    opacity: 1;
    transform: translateX(0);
}

.workflow-dot {
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    margin-top: 8px;
    box-shadow: 0 0 5px var(--secondary);
}

/* AI Core Animation - Cinematic Upgrade */
.ai-core-container {
    width: 320px;
    height: 320px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-core-ring {
    position: absolute;
    border: 2px solid var(--primary-glow);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
    mask-image: radial-gradient(circle, black 50%, transparent 100%);
}

.ai-core-ring:nth-child(2) {
    border-color: var(--secondary-glow);
    animation-direction: reverse;
}

.ai-core-inner {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary-bright) 0%, rgba(0, 106, 78, 0.5) 40%, transparent 80%);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 60px var(--primary-glow), 0 0 30px var(--secondary-glow), inset 0 0 20px rgba(0, 106, 78, 0.3);
}

.neural-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 1px solid var(--primary);
    border-radius: 50%;
    animation: neuralPulse 4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

@keyframes neuralPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(3.5);
        opacity: 0;
    }
}

@media (max-width: 1024px) {
    .split-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

/* Footer & Link Fixes */
a {
    color: inherit;
    text-decoration: none;
}

footer a {
    color: var(--text-secondary);
    transition: var(--transition);
}


footer ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
}

footer ul li a i,
footer ul li a img {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 6px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.03);
}


/* Neural Agent ChatBot Styles */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    max-width: calc(100vw - 60px);
    height: 550px;
    max-height: 70vh;
    background: rgba(10, 10, 25, 0.9);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    z-index: 10001;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), 0 0 20px var(--primary-glow);
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-container.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.chatbot-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1001;
}

.agent-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--primary-glow);
    position: relative;
}

.agent-avatar::after {
    content: "";
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border: 2px solid #0a0a19;
    border-radius: 50%;
}

.agent-info h4 {
    font-size: 1rem;
    margin: 0;
}

.agent-info span {
    font-size: 0.7rem;
    opacity: 0.6;
    display: block;
}

.close-chat {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.close-chat:hover {
    opacity: 1;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-msg {
    max-width: 80%;
    padding: 0.8rem 1.2rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.msg-agent {
    background: rgba(255, 255, 255, 0.05);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--glass-border);
}

.msg-user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.faq-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.faq-chip {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--primary-glow);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}


.chatbot-input {
    padding: 1.2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
}

.chatbot-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: white;
    outline: none;
    font-size: 0.9rem;
}

.chatbot-input button {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}


.typing-indicator {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-bottom: 5px;
    display: none;
}

.close-chat {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
}


/* Purchase Modal Styles */
#purchase-modal .glass-card {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2), 0 0 40px var(--primary-glow);
}

#purchase-modal input:focus,
#purchase-modal select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

#purchase-modal button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.purchase-form-row {
    display: grid;
    gap: 1rem;
}

@media (max-width: 600px) {
    #purchase-modal .glass-card {
        padding: 1.5rem !important;
    }

    .purchase-form-row>div {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Auth Modal Styles */
#auth-modal .glass-card {
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2), 0 0 50px var(--primary-glow);
}

/* Enhanced Auth Modal Styles */
.auth-card {
    display: flex;
    flex-direction: column;
    border-color: rgba(139, 92, 246, 0.2) !important;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.15) !important;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.auth-card::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab-btn {
    flex: 1;
    padding: 1.2rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.auth-tab-btn.active {
    color: white;
}

.auth-tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-bright));
    transition: left 0.3s ease;
}

.auth-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    color: white;
    outline: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.auth-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary) !important;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-password-input {
    padding-right: 2.8rem !important;
}

.auth-password-toggle {
    position: absolute;
    right: 1rem;
    top: 2.4rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.auth-password-toggle:hover {
    color: var(--primary);
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    font-size: 0.95rem;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.auth-tab-btn-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

.auth-tab-btn-link:hover {
    color: var(--primary-bright);
}

.auth-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-close-btn {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.auth-close-btn:hover {
    opacity: 1;
}

#auth-modal input:focus {
    border-color: var(--primary) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Admin Dashboard Styles */
#admin-dashboard {
    background: #010106;
}

#admin-dashboard table th {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Space Grotesk', monospace;
}

#admin-dashboard table tr {
    transition: background 0.3s;
}

#admin-dashboard table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

#admin-dashboard .glass-card {
    border-width: 1px;
}

#admin-login-modal input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Success Animation */
#purchase-success i {
    animation: successPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

/* --- Redesigned User Dashboard & User Info Styles --- */

/* User Dashboard Overlay */
.dashboard-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 1, 6, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 50000;
    overflow-y: auto;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dashboard-modal-overlay::-webkit-scrollbar {
    display: none;
}

.dashboard-container {
    max-width: 900px;
    width: 100%;
    margin: 40px auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}


.dashboard-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 2.5rem;
}

.dashboard-profile-summary {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.dashboard-avatar-wrapper {
    position: relative;
    width: 75px;
    height: 75px;
}

.dashboard-avatar-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    animation: rotateRing 8s linear infinite;
}

.dashboard-avatar {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--accent);
    border: 2px solid var(--bg-amoled);
}

.dashboard-username {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dashboard-email {
    font-size: 0.95rem;
    color: var(--text-secondary);
    opacity: 0.65;
}

.dashboard-meta-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.dashboard-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: pulseDot 1.5s infinite;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.dashboard-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
}

.dashboard-stat-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.stat-icon {
    font-size: 1.8rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    margin-top: 2px;
}

.dashboard-panel {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
}

.dashboard-panel-header {
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-panel-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.dashboard-packages-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Dynamic Packages Items */
.package-card-dynamic {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 1.8rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.package-card-dynamic:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.02);
}

.package-progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 12px;
}

.package-progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* User Info Overlay & Card */
.info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 1, 6, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 60000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.info-card {
    max-width: 480px;
    width: 100%;
    padding: 3.5rem 2.5rem;
    position: relative;
    border-color: var(--secondary);
    border-radius: var(--border-radius);
    background: var(--bg-card);
}

.info-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    cursor: pointer;
    opacity: 0.5;
    font-size: 1.2rem;
    transition: var(--transition);
    color: var(--text-muted);
}

.info-close-btn:hover {
    opacity: 1;
    color: var(--secondary);
    transform: rotate(90deg);
}

.info-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.info-avatar-wrapper {
    position: relative;
    width: 85px;
    height: 85px;
    margin: 0 auto 1.25rem;
}

.info-avatar-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: var(--secondary);
    opacity: 0.35;
    filter: blur(10px);
}

.info-avatar {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    border: 2px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    color: var(--secondary);
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-item {
    background: rgba(255, 255, 255, 0.015);
    padding: 1.2rem 1.4rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
}

.info-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.02);
}

.info-item-icon {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-top: 2px;
}

.info-item-content {
    flex-grow: 1;
}

.info-item-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-item-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.info-copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.info-copy-btn:hover {
    color: var(--secondary);
    transform: scale(1.15);
}

/* Animations */
@keyframes rotateRing {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(34, 211, 238, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
    }
}

.dashboard-close-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.25rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    z-index: 50010;
}

.dashboard-close-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
    transform: rotate(90deg);
}

/* User Name Text Sizing Overrides to prevent layout overlaps */
#info-modal-name {
    font-size: 1.8rem !important;
    margin: 10px 0 5px !important;
    line-height: 1.2 !important;
    word-break: break-all !important;
}

#dashboard-user-name {
    font-size: 1.8rem !important;
    margin: 5px 0 0 !important;
    line-height: 1.2 !important;
    word-break: break-all !important;
}

/* Hide floating items when modal overlays are active */
body.modal-active #comm-dock,
body.modal-active #comm-trigger,
body.modal-active #chat-trigger-btn,
body.modal-active #chatbot {
    display: none !important;
}

/* Chatbot Gate Overlay for Logged-out state */
.chatbot-gate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 1, 6, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border-radius: 24px;
    transition: var(--transition);
}

/* Hide scrollbar for modals while keeping them scrollable */
.modal-overlay .glass-card::-webkit-scrollbar,
.dashboard-modal-overlay .dashboard-container::-webkit-scrollbar {
    display: none !important;
}

.modal-overlay .glass-card,
.dashboard-modal-overlay .dashboard-container {
    scrollbar-width: none !important;
    /* Firefox */
    -ms-overflow-style: none !important;
    /* IE and Edge */
}

/* MFS Select Card Hover */
.mfs-card:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}