/* ==========================================================================
   CSS VARIABLES & RESET
   ========================================================================== */
:root {
    --bg-main: #FFFFFF;
    --bg-alt: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F1F5F9;

    --color-text: #0F172A;
    --color-text-muted: #475569;

    --accent-success: #22C55E;
    --accent-trust: #4F46E5;
    --accent-gaming: #6366F1;
    --accent-highlight: #F59E0B;
    --accent-danger: #EF4444;

    --border-color: #E2E8F0;
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);

    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Poppins', sans-serif;

    --transition: all 0.3s ease;
    --border-radius: 16px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 10px 30px -5px rgba(79, 70, 229, 0.3);
    
    --glow-trust: 0 0 20px rgba(79, 70, 229, 0.4);
    --glow-success: 0 0 20px rgba(34, 197, 94, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    width: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: clip;
}

/* Global Background Elements */
.bg-blob {
    position: absolute;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.bg-blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
}

.bg-blob-2 {
    bottom: 20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.glitch {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    position: relative;
    color: var(--color-text);
}

.accent-trust {
    color: var(--accent-trust);
}

.highlight {
    color: var(--accent-gaming);
}

.text-success {
    color: var(--accent-success);
}

.danger-title {
    color: var(--accent-danger);
}

.success-title {
    color: var(--accent-success);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--color-text);
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* BUTTONS */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-login,
.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-trust), var(--accent-gaming));
    color: white;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--accent-gaming), var(--accent-trust));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px -5px rgba(79, 70, 229, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: white;
    color: var(--color-text);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-trust);
    color: var(--accent-trust);
}

.btn-outline:hover {
    background: rgba(79, 70, 229, 0.05);
    transform: translateY(-2px);
}

.btn-login {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}

.btn-login:hover {
    background: white;
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-google {
    background: white;
    color: var(--color-text);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-google:hover {
    background: white;
    border-color: var(--accent-trust);
    color: var(--accent-trust);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
    border-radius: 40px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px !important;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    color: var(--accent-trust);
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--accent-trust), var(--accent-gaming));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-tagline {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    margin-top: -2px;
}

.nav-links {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent-trust);
    background: rgba(79, 70, 229, 0.05);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-trust), var(--accent-gaming), #10B981, var(--accent-trust));
    background-size: 300% 100%;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 70%;
}

.nav-links a.active::after {
    animation: navGradientMove 3s infinite linear;
}

.nav-links a.active {
    color: var(--accent-trust);
    background: rgba(79, 70, 229, 0.08);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.1), inset 0 0 0 1px rgba(79, 70, 229, 0.15);
    animation: activeTabPulse 2.5s infinite ease-in-out;
}

@keyframes navGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes activeTabPulse {
    0% {
        box-shadow: 0 4px 15px rgba(79, 70, 229, 0.05), inset 0 0 0 1px rgba(79, 70, 229, 0.1);
        background: rgba(79, 70, 229, 0.06);
    }
    50% {
        box-shadow: 0 6px 20px rgba(79, 70, 229, 0.15), inset 0 0 0 1px rgba(79, 70, 229, 0.25);
        background: rgba(79, 70, 229, 0.12);
    }
    100% {
        box-shadow: 0 4px 15px rgba(79, 70, 229, 0.05), inset 0 0 0 1px rgba(79, 70, 229, 0.1);
        background: rgba(79, 70, 229, 0.06);
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    height: auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 160px;
    padding-bottom: 80px;
    background-color: var(--bg-main);
    overflow: hidden;
}

.hero-bg-right {
    position: absolute;
    top: 0;
    right: max(0px, calc(50vw - 600px));
    left: calc(50vw + 20px);
    width: auto;
    height: 100%;
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 50%, #4f46e5 100%), url('https://images.unsplash.com/photo-1542751371-adc38448a05e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    background-blend-mode: overlay;
    clip-path: polygon(150px 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
    border-radius: 0 0 40px 40px;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    padding-right: 40px;
}

.trust-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}

.hero h1 {
    font-size: 3.6rem;
    line-height: 1.15;
    margin-bottom: 25px;
    color: #020617; /* Very dark slate */
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-trust), var(--accent-gaming));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subheadline {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 35px;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-google {
    background: white;
    color: var(--color-text);
}

.btn-google:hover {
    background: #f8fafc;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.badge i {
    color: var(--accent-trust);
    font-size: 1rem;
}

/* Hero Right Side Composition */
.hero-illustration {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-shield {
    position: relative;
    font-size: 14rem;
    color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 40px rgba(99, 102, 241, 0.6));
    animation: float 6s infinite ease-in-out;
    z-index: 2;
}

.floating-shield .inner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    color: white;
    -webkit-text-fill-color: white;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}

.floating-coin {
    position: absolute;
    font-size: 3rem;
    color: var(--accent-highlight); /* Gold/Orange */
    filter: drop-shadow(0 5px 15px rgba(245, 158, 11, 0.4));
    z-index: 3;
    animation: floatCoins 8s infinite ease-in-out;
}

.c1 { top: 10%; left: 20%; animation-delay: 0s; font-size: 4rem; }
.c2 { bottom: 30%; right: 10%; animation-delay: 2s; font-size: 2.5rem; }
.c3 { top: 30%; right: 15%; animation-delay: 4s; font-size: 2rem; opacity: 0.8; }

.escrow-process-card {
    position: absolute;
    bottom: 0px;
    left: 0; 
    background: white;
    border-radius: 20px;
    padding: 25px 35px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 10;
    width: 100%;
    border: 1px solid var(--border-color);
}

.epc-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 1px;
}

.epc-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.epc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.epc-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 10px;
    background: var(--bg-alt);
    box-shadow: var(--shadow-sm);
}

.epc-step strong {
    font-size: 0.9rem;
    color: var(--color-text);
}

.epc-step small {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.epc-arrow {
    color: var(--color-text-muted);
    font-size: 1rem;
    opacity: 0.5;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes floatCoins {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(15deg); }
}

/* ==========================================================================
   THE PROBLEM SECTION
   ========================================================================== */
.problem-section {
    background: var(--bg-alt);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.problem-card {
    background: white;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-danger);
}

.problem-icon {
    font-size: 2.5rem;
    color: var(--accent-danger);
    margin-bottom: 20px;
}

/* ==========================================================================
   THE SOLUTION SECTION
   ========================================================================== */
.solution-section {
    background: var(--bg-main);
}

.solution-flow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
}

.flow-step {
    text-align: center;
    width: 150px;
    z-index: 2;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    font-size: 2rem;
    color: var(--accent-trust);
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.flow-step:hover .step-icon {
    border-color: var(--accent-trust);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.highlight-step .step-icon {
    border-color: var(--accent-success);
    color: var(--accent-success);
}

.flow-connector {
    flex: 1;
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.connector-line {
    width: 100%;
    height: 2px;
    background: dashed 2px var(--border-color);
    position: relative;
}

.connector-line::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent-trust);
    border-radius: 50%;
    animation: moveDot 3s infinite linear;
}

@keyframes moveDot {
    0% {
        left: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* ==========================================================================
/* ==========================================================================
   INTERACTIVE PROCESS TIMELINE  (pt-* system)
   ========================================================================== */

.pt-section {
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

/* ---- Outer wrapper: relative for popup positioning ---- */
.pt-wrapper {
    position: relative;
    margin-top: 56px;
    padding-bottom: 12px;
}

/* ---- Steps row ---- */
.pt-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    position: relative;
    z-index: 2;
}

/* ---- Horizontal connector rail ---- */
.pt-rail {
    position: absolute;
    top: 30px;          /* centre of the 60px node */
    left: calc(100% / 12);  /* from first node centre */
    right: calc(100% / 12); /* to last node centre */
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    z-index: 0;
    overflow: hidden;
}

.pt-rail-fill {
    position: absolute;
    inset: 0;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-trust), var(--accent-gaming));
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- Individual step button ---- */
.pt-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 4px;
    text-align: center;
    position: relative;
    z-index: 2;
    outline: none;
}

.pt-step:focus-visible .pt-step-node {
    outline: 3px solid var(--accent-trust);
    outline-offset: 3px;
}

/* ---- Step node (circle) ---- */
.pt-step-node {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

/* Number (shown by default) */
.pt-step-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-muted);
    box-shadow: 0 0 0 8px var(--bg-alt);
    transition: all 0.35s ease;
    z-index: 2;
}

/* Icon (hidden until hovered/active) */
.pt-step-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.4rem;
    color: white;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    z-index: 3;
}

/* Pulsing outer ring */
.pt-step-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

/* Hover state */
.pt-step:hover .pt-step-num {
    border-color: var(--accent-trust);
    color: var(--accent-trust);
    transform: scale(1.05);
}

/* Active (clicked) state */
.pt-step.pt-active .pt-step-num {
    background: linear-gradient(135deg, var(--accent-trust), var(--accent-gaming));
    border-color: transparent;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 8px var(--bg-alt), 0 8px 20px rgba(79, 70, 229, 0.35);
}

.pt-step.pt-active .pt-step-icon {
    opacity: 1;
    transform: scale(1);
}

.pt-step.pt-active .pt-step-ring {
    border-color: rgba(79, 70, 229, 0.3);
    animation: pt-ring-pulse 1.6s ease-in-out infinite;
}

@keyframes pt-ring-pulse {
    0%, 100% { transform: scale(1);   opacity: 0.6; }
    50%       { transform: scale(1.2); opacity: 0;   }
}

/* ---- Step label ---- */
.pt-step-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.pt-step-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--accent-gaming);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.pt-step-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.25;
    transition: color 0.2s ease;
}

.pt-step.pt-active .pt-step-title {
    color: var(--accent-trust);
}

/* ========================================
   POPUP CARD
   ======================================== */

.pt-popup {
    position: absolute;
    top: 100px;   /* JS overrides this */
    left: 50%;    /* JS overrides this */
    transform: translateX(-50%) translateY(8px);
    width: 320px;
    background: var(--bg-card);
    border: 1px solid rgba(79, 70, 229, 0.25);
    border-radius: 16px;
    padding: 22px 22px 18px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(79, 70, 229, 0.08);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.pt-popup[hidden] {
    display: block !important; /* override hidden so transitions work */
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(14px);
}

.pt-popup.pt-popup-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Arrow pointer (upward triangle) */
.pt-popup-arrow {
    position: absolute;
    top: -8px;
    left: 50%;   /* JS overrides this */
    transform: translateX(-50%);
    width: 16px;
    height: 8px;
    overflow: hidden;
}

.pt-popup-arrow::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--bg-card);
    border: 1px solid rgba(79, 70, 229, 0.25);
    border-radius: 2px;
    top: 2px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}

.pt-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-alt);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.pt-popup-close:hover {
    background: var(--accent-trust);
    color: white;
    border-color: transparent;
}

.pt-popup-step-num {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--accent-trust);
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.18);
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.pt-popup-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 10px;
    line-height: 1.2;
    padding-right: 20px;
}

.pt-popup-body {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0 0 14px;
}

.pt-popup-tip {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-gaming);
    background: rgba(124, 58, 237, 0.07);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    line-height: 1.4;
}

/* ========================================
   MOBILE / VERTICAL LAYOUT  (≤768px)
   ======================================== */

@media (max-width: 768px) {

    .pt-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .pt-rail {
        top: 0;
        bottom: 0;
        left: 29px;     /* centre of 60px node */
        right: auto;
        width: 4px;
        height: auto;
    }

    .pt-rail-fill {
        width: 100% !important; /* fill managed by JS height instead */
        height: 0%;
        transition: height 0.5s ease;
    }

    .pt-step {
        flex-direction: row;
        align-items: flex-start;
        gap: 18px;
        text-align: left;
        padding: 16px 0;
        width: 100%;
    }

    .pt-step-label {
        align-items: flex-start;
        padding-top: 6px;
    }

    /* On mobile popup is inline below the step — JS sets it to static flow */
    .pt-popup {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin: 0 0 8px 78px;
        box-sizing: border-box;
        border-radius: 12px;
    }

    .pt-popup-arrow {
        display: none;
    }

    .pt-wrapper {
        margin-top: 36px;
    }
}

/* ========================================
   TABLET fallback (768–960px)
   ======================================== */
@media (min-width: 769px) and (max-width: 960px) {
    .pt-step-title {
        font-size: 0.74rem;
    }
}


/* ==========================================================================
   PLATFORM FEATURES
   ========================================================================== */
/* ==========================================================================
   FEATURE CARDS — Unified FC System
   ========================================================================== */

.features-section {
    background: var(--bg-alt);
    position: relative;
}

/* 4-col auto-fit grid */
.fc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 48px;
}

/* ---- Individual card ---- */
.fc-card {
    --fc-accent: 79, 70, 229;          /* override per-card via inline style */
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    overflow: hidden;
    cursor: default;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}

.fc-card:hover {
    transform: translateY(-9px);
    box-shadow: 0 20px 45px -10px rgba(var(--fc-accent), 0.22),
                var(--shadow-md);
    border-color: rgba(var(--fc-accent), 0.35);
}

/* Animated top accent bar */
.fc-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(
        90deg,
        rgba(var(--fc-accent), 0.7),
        rgba(var(--fc-accent), 1)
    );
    border-radius: 0 2px 2px 0;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fc-card:hover .fc-top-bar {
    width: 100%;
}

/* Radial glow from bottom-right */
.fc-glow {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(var(--fc-accent), 0.12) 0%,
        transparent 70%
    );
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.4s ease, transform 0.5s ease;
    pointer-events: none;
}

.fc-card:hover .fc-glow {
    opacity: 1;
    transform: scale(1.4);
}

/* Icon orb */
.fc-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    background: rgba(var(--fc-accent), 0.1);
    border: 1px solid rgba(var(--fc-accent), 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    color: rgb(var(--fc-accent));
    margin-bottom: 20px;
    flex-shrink: 0;
    transition: background 0.35s ease,
                transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease,
                color 0.25s ease;
}

.fc-card:hover .fc-icon-wrap {
    background: linear-gradient(
        135deg,
        rgba(var(--fc-accent), 0.9),
        rgba(var(--fc-accent), 1)
    );
    color: white;
    border-color: transparent;
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 10px 25px -5px rgba(var(--fc-accent), 0.45);
}

/* Body: tag + title + description */
.fc-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* Category tag pill */
.fc-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgb(var(--fc-accent));
    background: rgba(var(--fc-accent), 0.08);
    border: 1px solid rgba(var(--fc-accent), 0.2);
    padding: 3px 9px;
    border-radius: 20px;
    width: fit-content;
    transition: background 0.3s ease;
}

.fc-card:hover .fc-tag {
    background: rgba(var(--fc-accent), 0.14);
}

/* Title */
.fc-body h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    line-height: 1.25;
    transition: color 0.25s ease;
}

.fc-card:hover .fc-body h3 {
    color: rgb(var(--fc-accent));
}

/* Description */
.fc-body p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* Arrow: slides in on hover */
.fc-arrow {
    display: flex;
    align-items: center;
    margin-top: 18px;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgb(var(--fc-accent));
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}

.fc-card:hover .fc-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .fc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .fc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .fc-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fc-card {
        padding: 22px 20px 20px;
    }
}

/* --- Legacy glass-card kept for any other sections that still use it --- */
.glass-card {
    background: var(--bg-card);
    border: var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 35px 30px;
    border-radius: var(--border-radius);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   LIVE TRANSACTION DEMO
   ========================================================================== */
.demo-section {
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.95)), url('https://images.unsplash.com/photo-1620641788421-7a1c342ea42e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    position: relative;
}

.demo-section .section-header h2,
.demo-section .section-header p {
    color: white;
}

.demo-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.demo-header {
    background: var(--bg-main);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.tx-id {
    color: var(--accent-trust);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.demo-price {
    font-size: 1.5rem;
    color: var(--accent-success);
    font-weight: 700;
}

.demo-body {
    padding: 40px 30px;
}

.demo-status-list {
    list-style: none;
    position: relative;
}

.demo-status-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 19px;
    width: 2px;
    height: 100%;
    background: var(--border-color);
    z-index: 1;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-item.active {
    opacity: 1;
}

.status-item.pending {
    opacity: 1;
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    color: var(--border-color);
    transition: all 0.3s ease;
}

.status-item.active .status-icon {
    background: var(--bg-main);
    border-color: var(--accent-success);
    color: var(--accent-success);
}

.status-item.pending .status-icon {
    background: var(--bg-main);
    border-color: var(--accent-trust);
    color: var(--accent-trust);
}

.status-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.status-item.active .status-text {
    color: var(--color-text);
}

.demo-progress-bar {
    height: 4px;
    background: var(--border-color);
    width: 100%;
}

.demo-progress-fill {
    height: 100%;
    width: 16%;
    background: var(--accent-success);
    transition: width 0.5s ease;
}

/* ==========================================================================
   SECURITY SECTION
   ========================================================================== */
.security-section {
    background: var(--bg-main);
}

.system-status-bar {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 15px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--accent-success);
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--accent-success);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.status-metrics {
    display: flex;
    gap: 20px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.metric i {
    color: var(--accent-trust);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.security-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.security-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-success);
}

.compliance-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.comp-badge {
    background: white;
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.comp-badge i {
    color: var(--accent-success);
    font-size: 1.1rem;
}

.comp-badge:hover {
    transform: translateY(-3px);
    border-color: var(--accent-trust);
    color: var(--color-text);
}

.sec-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.security-card:nth-child(1) .sec-icon {
    color: var(--accent-gaming);
}

.security-card:nth-child(2) .sec-icon {
    color: var(--accent-trust);
}

.security-card:nth-child(3) .sec-icon {
    color: var(--accent-success);
}

.security-card:nth-child(4) .sec-icon {
    color: var(--accent-highlight);
}

.security-card:nth-child(5) .sec-icon {
    color: var(--accent-danger);
}

.security-card:nth-child(6) .sec-icon {
    color: #6366F1;
}

/* ==========================================================================
   DISPUTE RESOLUTION
   ========================================================================== */
.dispute-section {
    background: var(--bg-alt);
}

.dispute-layout {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 30px;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.dispute-side {
    flex: 1;
    background: var(--bg-main);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.buyer-side {
    border-top: 3px solid var(--accent-danger);
}

.seller-side {
    border-top: 3px solid var(--accent-highlight);
}

.side-header {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.dispute-center {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.admin-shield {
    background: white;
    border: 2px solid var(--accent-success);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.admin-shield i {
    font-size: 2.5rem;
    color: var(--accent-success);
    margin-bottom: 5px;
}

.admin-shield span {
    font-weight: 700;
    font-size: 0.9rem;
}

.admin-checks {
    list-style: none;
    display: flex;
    gap: 20px;
}

.admin-checks li {
    background: var(--bg-main);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   STATS COUNTER
   ========================================================================== */
.stats-section {
    background: transparent;
    position: relative;
    z-index: 10;
    margin-top: -60px; /* Pull it slightly up into the hero */
}

/* ==========================================================================
   PLATFORM STATISTICS SECTION  (replaces old .stat-box design)
   ========================================================================== */

/* Section background */
.stats-section {
    position: relative;
    overflow: hidden;
}

.stats-section .section-header {
    display: block; /* override old hide rule */
}

.stats-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(79, 70, 229, 0.06) 0%,
        rgba(99, 102, 241, 0.04) 40%,
        rgba(124, 58, 237, 0.06) 100%);
    pointer-events: none;
}

/* Six-column grid → responsive */
.stats-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ---- Individual Card ---- */
.stat-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 28px 28px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -8px rgba(79, 70, 229, 0.18), var(--shadow-md);
    border-color: rgba(var(--ring-color, 79, 70, 229), 0.4);
}

/* Decorative corner ring */
.stat-card-ring {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 2.5px solid rgba(var(--ring-color, 79, 70, 229), 0.18);
    pointer-events: none;
    transition: border-color 0.35s ease, transform 0.5s ease;
}

.stat-card:hover .stat-card-ring {
    border-color: rgba(var(--ring-color, 79, 70, 229), 0.4);
    transform: scale(1.15);
}

/* Shimmer sweep on hover */
.stat-card-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.45) 50%,
        transparent 60%);
    transform: translateX(-100%);
    transition: transform 0s;
    pointer-events: none;
}

.stat-card:hover .stat-card-shimmer {
    transform: translateX(100%);
    transition: transform 0.55s ease;
}

/* Icon orb */
.stat-card-icon {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover .stat-card-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

/* Body */
.stat-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* The animated number */
.stat-card-number {
    line-height: 1;
    margin-bottom: 2px;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -1px;
    display: inline-block;
    transition: transform 0.2s ease;
}

/* Pop micro-animation when value updates */
.stat-val.stat-pop {
    animation: stat-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes stat-pop {
    0%   { transform: scale(0.85); opacity: 0.5; }
    60%  { transform: scale(1.07); }
    100% { transform: scale(1); opacity: 1; }
}

.stat-card-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.1px;
}

.stat-card-sub {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    font-weight: 500;
}

/* Loading placeholder dash */
.stat-val-loading {
    display: inline-block;
    width: 70px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 400px 100%;
    animation: stat-shimmer 1.3s linear infinite;
    vertical-align: middle;
}

@keyframes stat-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .stats-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-grid-new {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 24px 20px;
    }

    .stat-val {
        font-size: 1.9rem;
    }
}

/* --- Keep legacy stat-box classes for any other uses --- */
.stat-box {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 30px 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition);
}


/* ==========================================================================
   GAMING CATEGORIES
   ========================================================================== */
.games-section {
    background: var(--bg-alt);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.game-card {
    height: 320px;
    border-radius: var(--border-radius);
    background-image: var(--bg-url);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.2) 100%);
    transition: var(--transition);
}

.game-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.game-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    z-index: 3;
}

.game-badge.hot {
    background: var(--accent-danger);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.4);
}

.game-badge.new {
    background: var(--accent-trust);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.4);
}

.game-card h3 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.game-stats {
    font-size: 0.9rem;
    color: #94A3B8;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.game-btn {
    display: inline-block;
    background: var(--accent-gaming);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    max-height: 0;
    padding: 0 20px;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -5px rgba(109, 40, 217, 0.25);
}

.game-card:hover .game-overlay {
    background: linear-gradient(to top, rgba(109, 40, 217, 0.95) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.game-card:hover .game-stats {
    max-height: 30px;
    opacity: 1;
    margin-top: 5px;
}

.game-card:hover .game-btn {
    max-height: 50px;
    opacity: 1;
    margin-top: 15px;
    padding: 10px 20px;
}

.game-btn:hover {
    background: white;
    color: var(--accent-gaming);
}

/* ==========================================================================
/* Legacy .how-it-works aliases kept for other sections that may use them */
.how-it-works {
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}


/* ==========================================================================
   FEATURE GRID
   ========================================================================== */
/* Feature card legacy aliases (fc-* system above is the primary) */

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */
.pricing-section {
    background: var(--bg-main);
    position: relative;
    overflow: hidden;
}

.pricing-card-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 20px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.3);
    border-color: rgba(79, 70, 229, 0.5);
}

.pricing-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.15), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.pricing-header {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.pricing-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-trust), var(--accent-gaming));
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.pricing-header h3 {
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 10px;
}

.pricing-rate {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.pricing-rate span {
    font-size: 2rem;
    color: var(--accent-gaming);
    vertical-align: super;
}

.pricing-sub {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 35px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.pricing-features li:last-child {
    margin-bottom: 0;
}

.pricing-features li i {
    color: var(--accent-success);
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.pricing-features li strong {
    color: var(--color-text);
}


/* ==========================================================================
   LIVE DEMO & SECURITY
   ========================================================================== */
.demo-section, .security-section, .dispute-section {
    background: var(--bg-alt);
}

.demo-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.demo-info h4 {
    margin: 5px 0 0;
    font-size: 1.2rem;
    color: var(--color-text);
}

.tx-id {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.demo-price {
    font-size: 1.5rem;
    color: var(--accent-success);
    font-weight: 700;
}

.demo-status-list {
    list-style: none;
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 10px;
}

.demo-status-list::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 5%;
    width: 90%;
    height: 3px;
    background: var(--border-color);
    z-index: 0;
}

.demo-status-list::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 5%;
    width: 35%; /* Represents progress */
    height: 3px;
    background: linear-gradient(90deg, var(--accent-success), var(--accent-trust));
    z-index: 1;
    transition: width 1s ease;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
    padding: 0 5px;
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    border: 2px solid var(--border-color);
    font-size: 1rem;
    transition: var(--transition);
}

.status-item.active .status-icon {
    background: var(--accent-success);
    color: white;
    border-color: var(--accent-success);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.status-item.pending .status-icon {
    background: var(--accent-trust);
    color: white;
    border-color: var(--accent-trust);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
}

.status-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    line-height: 1.3;
}

.status-item.active .status-text {
    color: var(--color-text);
}

.demo-progress-bar {
    display: none;
}

/* Dispute Section */
.dispute-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.dispute-side {
    flex: 1;
    text-align: center;
    padding: 20px;
    border-radius: var(--border-radius);
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
}

.side-header {
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.dispute-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--accent-danger);
    font-size: 3rem;
}

.dispute-center span {
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 10px;
}

/* Security Bar */
.system-status-bar {
    background: white;
    padding: 20px 40px;
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin: 0 auto;
    max-width: 800px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--accent-success);
}

.status-indicator i {
    font-size: 1.2rem;
}

/* ==========================================================================
   TESTIMONIALS (tm-* CAROUSEL)
   ========================================================================== */
.testimonials-section {
    background: var(--bg-main);
    position: relative;
    overflow: hidden;
}

.tm-carousel-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-carousel-viewport {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.tm-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.tm-card {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    position: relative;
    opacity: 0.4;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-align: center;
}

.tm-card.active {
    opacity: 1;
    transform: scale(1);
}

.tm-card-glow {
    position: absolute;
    inset: 15px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: -1;
    transition: all 0.4s ease;
}

.tm-card.active .tm-card-glow {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--tm-color);
}

.tm-quote-icon {
    font-size: 2.5rem;
    color: var(--border-color);
    margin-bottom: 20px;
    transition: color 0.4s ease;
}

.tm-card.active .tm-quote-icon {
    color: var(--tm-color);
    opacity: 0.3;
}

.tm-stars {
    color: var(--accent-highlight);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.tm-text {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 30px;
    font-style: italic;
    padding: 0 20px;
}

.tm-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.tm-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    object-fit: cover;
    transition: border-color 0.4s ease;
}

.tm-card.active .tm-avatar {
    border-color: var(--tm-color);
}

.tm-author-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--color-text);
}

.tm-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-trust);
    background: rgba(79, 70, 229, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.tm-card:nth-child(2) .tm-badge { color: var(--accent-success); background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.2); }
.tm-card:nth-child(3) .tm-badge { color: var(--accent-gaming); background: rgba(124, 58, 237, 0.1); border-color: rgba(124, 58, 237, 0.2); }
.tm-card:nth-child(4) .tm-badge { color: var(--accent-danger); background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.2); }


/* Arrows */
.tm-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.tm-arrow:hover {
    background: var(--accent-trust);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.tm-prev { left: -25px; }
.tm-next { right: -25px; }

@media (max-width: 960px) {
    .tm-prev { left: 10px; }
    .tm-next { right: 10px; }
}

/* Dots */
.tm-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.tm-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.tm-dot.active {
    width: 24px;
    border-radius: 5px;
    background: var(--accent-trust);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-section {
    background: var(--bg-alt);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-main);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
    color: var(--accent-trust);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: white;
}

.faq-answer p {
    color: var(--color-text-muted);
    padding-bottom: 20px;
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final-cta-section {
    position: relative;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-trust) 0%, var(--accent-gaming) 100%);
    padding: 120px 0;
    color: white;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 60%),
                      radial-gradient(circle at 80% 50%, rgba(0,0,0,0.15) 0%, transparent 60%);
    display: block;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 4rem;
    margin-bottom: 25px;
    color: white;
    line-height: 1.1;
    text-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.cta-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 45px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.final-cta-section .btn-primary {
    background: white;
    color: var(--accent-trust);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.final-cta-section .btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.final-cta-section .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.final-cta-section .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-5px);
}

/* ==========================================================================
   PREMIUM FOOTER
   ========================================================================== */
.footer {
    background: var(--bg-main);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-glow {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.relative {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* Brand Column */
.footer-brand-col .footer-logo {
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-desc {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 0.95rem;
    max-width: 90%;
}

.footer-newsletter h4 {
    color: var(--color-text);
    font-size: 1rem;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 350px;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--color-text);
    font-family: inherit;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-trust);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-form .btn-primary {
    padding: 0 20px;
    border-radius: 8px;
}

/* Links Columns */
.footer-links-col h4 {
    color: var(--color-text);
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-links-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 25px;
    height: 2px;
    background: var(--accent-trust);
    border-radius: 2px;
}

.footer-links-col a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    text-decoration: none;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links-col a i {
    font-size: 0.7rem;
    color: var(--accent-trust);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-links-col a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links-col a:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--accent-gaming);
    color: white;
    border-color: var(--accent-gaming);
    transform: translateY(-3px);
}

/* ==========================================================================
   ANIMATIONS & RESPONSIVE
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .trust-badges {
        justify-content: center;
    }

    .hero-illustration {
        max-width: 500px;
        margin: 50px auto 0;
    }

    .dispute-layout {
        flex-direction: column;
    }

    .system-status-bar {
        flex-direction: column;
        gap: 15px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

.mobile-auth-buttons {
    display: none;
}
@media (max-width: 768px) {
    .logo {
        font-size: 1.3rem !important;
    }
    .logo-tagline {
        font-size: 0.65rem !important;
    }
    .nav-links {
        display: none;
    }
    .nav-actions {
        display: flex;
        margin-left: auto;
        margin-right: 8px;
        align-items: center;
        gap: 0px;
    }
    .nav-actions .btn-primary {
        display: none !important;
    }
    .nav-actions .btn-login {
        display: none !important;
    }

    .mobile-auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-top: 15px;
        padding-top: 20px;
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    .navbar.mobile-open .nav-links .mobile-auth-buttons a.btn-login {
        border: 1px solid var(--border-color);
        background: transparent !important;
        color: var(--color-text) !important;
        padding: 12px !important;
        text-align: center;
        border-radius: 12px;
    }

    .navbar.mobile-open .nav-links .mobile-auth-buttons a.btn-primary {
        background: var(--accent-trust) !important;
        color: white !important;
        padding: 12px !important;
        text-align: center;
        border-radius: 12px;
    }

    .navbar.mobile-open {
        background: white !important;
        height: auto !important;
        overflow-y: visible !important;
        padding-bottom: 24px !important;
    }

    .navbar.mobile-open .nav-container {
        flex-wrap: wrap;
        height: auto;
    }

    .navbar.mobile-open .nav-links {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        text-align: center;
        order: 3;
        margin-top: 30px;
        gap: 10px !important;
    }

    .navbar.mobile-open .nav-links a {
        display: block;
        width: 100%;
        padding: 12px 20px;
        font-size: 1.1rem;
        color: var(--color-text) !important;
        border-radius: 12px;
        transition: background 0.2s;
    }

    .navbar.mobile-open .nav-links a:hover,
    .navbar.mobile-open .nav-links a.active {
        background: rgba(79, 70, 229, 0.05);
        color: var(--accent-trust) !important;
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 990;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .navbar.mobile-open ~ .mobile-menu-overlay {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .glitch {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .timeline {
        flex-direction: column;
        gap: 40px;
        margin-top: 40px;
    }

    .timeline::before,
    .timeline::after {
        left: 30px;
        top: 0;
        width: 4px;
        height: 100%;
    }

    .timeline::after {
        height: 50%;
        animation: none;
    }

    .timeline-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding-left: 80px;
        padding-right: 0;
    }

    .timeline-header {
        margin-top: 0;
        position: absolute;
        left: 0;
        top: 0;
    }

    .timeline-content {
        align-items: flex-start;
        width: 100%;
    }

    .demo-status-list {
        flex-direction: column;
        gap: 20px;
    }

    .demo-status-list::before,
    .demo-status-list::after {
        left: 20px;
        top: 0;
        width: 3px;
        height: 100%;
    }

    .demo-status-list::after {
        height: 35%;
    }

    .status-item {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .status-icon {
        margin-bottom: 0;
        margin-right: 15px;
        min-width: 40px;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }
}

/* ==========================================================================
   AUTHENTICATED NAVBAR & NOTIFICATIONS
   ========================================================================== */

/* Notification Bell Button */
.notification-bell {
    background: transparent;
    border: none;
    color: var(--color-text);
    position: relative;
    font-size: 20px;
    margin-right: 16px;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    padding: 5px;
}

.notification-bell:hover {
    color: var(--accent-trust);
}

.notification-bell .badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background: var(--accent-danger);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px var(--bg-card);
}

/* Notification Drawer Slide Panel */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.notification-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: var(--bg-card);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border-left: 1px solid var(--border-color);
}

/* Open states */
.notification-drawer.open {
    right: 0;
}

.notification-drawer.open ~ .notification-overlay, /* If overlay comes after */
.notification-overlay:has(+ .notification-drawer.open) /* If overlay comes before */ {
    opacity: 1;
    visibility: visible;
}

/* Drawer Header */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.drawer-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-text);
}

.close-drawer {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 5px;
}

.close-drawer:hover {
    color: var(--accent-danger);
}

/* Drawer Actions (Mark Read) */
.drawer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.unread-count {
    font-weight: 600;
    color: var(--accent-trust);
}

.btn-mark-read {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-mark-read:hover {
    color: var(--color-text);
}

/* Drawer Body & Items */
.drawer-body {
    flex: 1;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 15px;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.notification-item:hover {
    background: var(--bg-main);
}

.notification-item.unread {
    background: rgba(79, 70, 229, 0.05);
}

.notification-item.unread:hover {
    background: rgba(79, 70, 229, 0.08);
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-trust), var(--accent-gaming));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
}

.notif-content p {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.4;
}

.notification-item.unread .notif-content p {
    font-weight: 600;
}

.notif-time {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Empty State */
.empty-notif {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    color: var(--color-text-muted);
    text-align: center;
}

.empty-notif-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.empty-notif p {
    font-size: 1.1rem;
    margin: 0;
}

/* Drawer Footer */
.drawer-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

.btn-view-all {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: var(--bg-main);
    border-color: var(--accent-trust);
    color: var(--accent-trust);
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: default;
}

.profile-dropdown.active .profile-dropdown-overlay {
    opacity: 1;
    visibility: visible;
}

.profile-dropdown.active .profile-toggle {
    position: relative;
    z-index: 1001;
}

.profile-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 30px;
    transition: background 0.3s ease;
}

.profile-toggle:hover {
    background: rgba(0,0,0,0.05);
}

.profile-toggle .avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--accent-trust), var(--accent-gaming));
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.profile-name {
    font-weight: 600;
    color: var(--color-text);
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    width: 260px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 10px 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.profile-dropdown.active .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(0,0,0,0.03);
}

.dropdown-menu a i {
    width: 16px;
    text-align: center;
    color: var(--color-text-muted);
}

.dropdown-divider {
    height: 1px;
    background: rgba(0,0,0,0.05);
    margin: 8px 0;
}

.text-danger {
    color: var(--accent-danger) !important;
}

.text-danger i {
    color: var(--accent-danger) !important;
}



.notification-bell {
    color: var(--color-text);
    position: relative;
    font-size: 20px;
    margin-right: 16px;
    transition: color 0.2s ease;
}

.notification-bell:hover {
    color: var(--accent-trust);
}

.notification-bell .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--accent-danger);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button Loading State styling */
.btn-loading-state {
    pointer-events: none;
    opacity: 0.85;
    position: relative;
}

/* ==========================================================================
   POPULAR GAMES SLIDER SECTION
   ========================================================================== */

.popular-games-section {
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-main) 100%);
    overflow: hidden;
}

/* Wrapper holds arrows + viewport together */
.pg-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 50px;
}

/* Viewport clips the track */
.pg-slider-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: var(--border-radius);
}

/* Track scrolls horizontally */
.pg-slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ---- Card ---- */
.pg-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 280px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.pg-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    border-color: var(--accent-gaming);
}

/* Verified Badge */
.pg-verified-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #22C55E, #16A34A);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 5px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
    z-index: 2;
    white-space: nowrap;
}

.pg-verified-badge i {
    font-size: 0.78rem;
}

/* Logo Area */
.pg-card-logo-wrap {
    height: 170px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.pg-card-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pg-card:hover .pg-card-logo-img {
    transform: scale(1.06);
}

.pg-card-logo-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-trust), var(--accent-gaming));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--glow-trust);
}

/* Card Body */
.pg-card-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.pg-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    line-height: 1.3;
}

/* Stats Row */
.pg-card-stats {
    display: flex;
    gap: 16px;
}

.pg-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    background: var(--bg-alt);
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.pg-card:hover .pg-stat {
    background: rgba(79, 70, 229, 0.05);
    border-color: rgba(79, 70, 229, 0.2);
}

.pg-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-trust), var(--accent-gaming));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.pg-stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pg-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
}

.pg-stat-label {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    line-height: 1;
    font-weight: 500;
}

/* View Listings Button */
.pg-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--accent-trust), var(--accent-gaming));
    color: white;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    margin-top: auto;
}

.pg-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.45);
    color: white;
    text-decoration: none;
}

/* ---- Arrow Buttons ---- */
.pg-arrow {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--color-text);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.pg-arrow:hover {
    background: linear-gradient(135deg, var(--accent-trust), var(--accent-gaming));
    color: white;
    border-color: var(--accent-trust);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
    transform: scale(1.1);
}

.pg-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---- Dots ---- */
.pg-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.pg-dot.active {
    background: linear-gradient(135deg, var(--accent-trust), var(--accent-gaming));
    width: 26px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.5);
}

/* Empty state */
.pg-empty {
    width: 100%;
    padding: 60px 20px;
    text-align: center;
    color: var(--color-text-muted);
}

.pg-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
    display: block;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .pg-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .pg-card {
        flex: 0 0 calc(100% - 0px);
    }

    .pg-arrow {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .pg-card-stats {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .pg-slider-wrapper {
        gap: 8px;
    }

    .pg-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   LIVE MARKETPLACE PREVIEW SECTION
   ========================================================================== */

.marketplace-section {
    background: var(--bg-main);
    position: relative;
}

/* ---- Toolbar ---- */
.mp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.mp-live-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
}

.mp-refresh-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border: 1.5px solid var(--accent-trust);
    background: transparent;
    color: var(--accent-trust);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-sans);
}

.mp-refresh-btn:hover,
.mp-refresh-btn.spinning {
    background: var(--accent-trust);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.mp-refresh-btn.spinning i {
    animation: mp-spin 0.7s linear infinite;
}

@keyframes mp-spin {
    to { transform: rotate(360deg); }
}

/* ---- Grid ---- */
.mp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ---- Card ---- */
.mp-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    animation: mp-card-in 0.4s ease both;
}

.mp-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow), var(--shadow-md);
    border-color: var(--accent-gaming);
}

@keyframes mp-card-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Card: Game Banner / Logo area */
.mp-card-banner {
    height: 110px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-color);
}

.mp-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mp-card:hover .mp-card-banner img {
    transform: scale(1.07);
}

.mp-card-game-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-trust), var(--accent-gaming));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    box-shadow: var(--glow-trust);
}

/* Status pill in top-left of banner */
.mp-status-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.mp-status-pill.amber  { background: rgba(245, 158, 11, 0.18); color: #D97706; border: 1px solid rgba(245,158,11,0.4); }
.mp-status-pill.green  { background: rgba(34, 197, 94, 0.18);  color: #16A34A; border: 1px solid rgba(34,197,94,0.4); }
.mp-status-pill.blue   { background: rgba(79, 70, 229, 0.18);  color: var(--accent-trust); border: 1px solid rgba(79,70,229,0.4); }

/* Card Body */
.mp-card-body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.mp-game-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Price */
.mp-price {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-trust), var(--accent-gaming));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* Tags row: rank + inventory */
.mp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mp-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--bg-alt);
    color: var(--color-text-muted);
    border: 1px solid var(--border-color);
    white-space: nowrap;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-tag i {
    font-size: 0.65rem;
    flex-shrink: 0;
    color: var(--accent-trust);
}

/* Seller row */
.mp-seller-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mp-seller-name {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.mp-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    background: linear-gradient(135deg, #22C55E, #16A34A);
    color: white;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    flex-shrink: 0;
}

.mp-verified-badge i { font-size: 0.65rem; }

/* Posted time */
.mp-posted-time {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.mp-posted-time i { color: var(--accent-trust); font-size: 0.68rem; }

/* View Details button */
.mp-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--accent-trust), var(--accent-gaming));
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 9px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    margin-top: auto;
}

.mp-view-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
    color: white;
    text-decoration: none;
}

/* ---- Skeleton Loader ---- */
@keyframes mp-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.mp-skeleton {
    pointer-events: none;
}

.mp-sk-logo,
.mp-sk-line,
.mp-sk-btn {
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 800px 100%;
    animation: mp-shimmer 1.4s infinite linear;
}

/* Wrap skeleton elements inside card structure */
.mp-skeleton .mp-sk-logo {
    width: 100%;
    height: 110px;
    border-radius: 0;
    margin-bottom: 0;
}

.mp-skeleton .mp-sk-line {
    margin: 0 16px;
    height: 14px;
}

.mp-skeleton .mp-sk-lg { width: calc(100% - 32px); margin-top: 16px; height: 18px; }
.mp-skeleton .mp-sk-md { width: calc(60% - 32px); margin-top: 10px; }
.mp-skeleton .mp-sk-sm { width: calc(40% - 32px); margin-top: 8px; }

.mp-skeleton .mp-sk-btn {
    margin: 16px 16px 18px;
    height: 38px;
    border-radius: 9px;
}

/* ---- Empty State ---- */
.mp-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
}

.mp-empty-state i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
    opacity: 0.35;
}

.mp-empty-state h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--color-text);
}

.mp-empty-state p {
    margin-bottom: 24px;
}

/* ---- Footer CTA ---- */
.mp-footer-cta {
    text-align: center;
    margin-top: 36px;
}

.mp-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--accent-trust), var(--accent-gaming));
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.mp-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.45);
    color: white;
    text-decoration: none;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .mp-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .mp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .mp-grid {
        grid-template-columns: 1fr;
    }

    .mp-toolbar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: none !important;
    outline: none !important;
    padding: 10px 15px calc(10px + env(safe-area-inset-bottom));
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    transform: translateZ(0); /* Hardware acceleration */
}

.mobile-bottom-nav::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 50px;
    background: rgba(17, 24, 39, 0.95);
    pointer-events: none;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--accent-trust);
}

.mobile-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.mobile-nav-create {
    position: relative;
    top: -20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-create-btn {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-trust), var(--accent-gaming));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.mobile-create-btn:hover {
    transform: translateY(-3px) scale(1.05);
    color: white;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Ensure content is not hidden behind the fixed navbar on mobile */
    .footer {
        padding-bottom: 110px !important;
    }
}

/* ==========================================================================
   MULTI-STEP WIZARD (Create Transaction)
   ========================================================================== */
.create-tx-page {
    /* Base wrapper handled inline */
}

.wizard-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
    padding: 0;
}

/* Progress Bar */
.wizard-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
}

.wizard-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-trust), var(--accent-gaming));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Steps Header */
.wizard-steps-header {
    display: flex;
    justify-content: space-between;
    padding: 24px 40px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

.wizard-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    position: relative;
    z-index: 1;
    flex: 1;
}

.wizard-step-dot::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: -1;
}

.wizard-step-dot:last-child::before {
    display: none;
}

.wizard-step-dot span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.wizard-step-dot small {
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wizard-step-dot.active span {
    background: var(--bg-main);
    border-color: var(--accent-trust);
    color: var(--accent-trust);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

.wizard-step-dot.active small {
    color: var(--accent-trust);
}

.wizard-step-dot.completed span {
    background: var(--accent-trust);
    border-color: var(--accent-trust);
    color: white;
}

.wizard-step-dot.completed::before {
    background: var(--accent-trust);
}

/* Wizard Form & Steps */
.wizard-form {
    position: relative;
}

.wizard-step {
    display: none;
    padding: 40px;
    animation: fadeInStep 0.4s ease forwards;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-step-title {
    margin-bottom: 8px;
    font-size: 1.4rem;
    color: var(--color-text);
}

.wizard-step-desc {
    color: var(--color-text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-trust);
    background: rgba(255, 255, 255, 0.08);
}

.form-control.is-invalid {
    border-color: var(--accent-danger);
    background: rgba(239, 68, 68, 0.05);
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: var(--color-text-muted);
}

.input-group .form-control {
    border-radius: 0 8px 8px 0;
}

.secure-vault-box {
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 24px;
    border-top: 3px solid var(--accent-danger);
}

.secure-vault-box h4 {
    color: var(--accent-danger);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.wizard-dropzone {
    border: 2px dashed var(--accent-trust);
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.02);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wizard-dropzone:hover {
    background: rgba(79, 70, 229, 0.05);
    border-color: var(--accent-gaming);
}

.review-card {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
}

.review-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 0.95rem;
}

.review-row.highlight {
    background: rgba(34, 197, 94, 0.05);
    padding: 16px;
    border-radius: 8px;
    margin-top: 8px;
}

.review-label {
    color: var(--color-text-muted);
}

.review-value {
    color: var(--color-text);
    font-weight: 500;
}

.review-divider {
    border-color: rgba(255, 255, 255, 0.05);
    margin: 16px 0;
}

.wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
}

.processing-spinner {
    font-size: 4rem;
    color: var(--accent-trust);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .wizard-steps-header {
        padding: 20px 10px;
    }
    .wizard-step-dot small {
        display: none;
    }
    .wizard-step-dot::before {
        top: 15px;
    }
    .wizard-step {
        padding: 24px 20px;
    }
}

/* ==========================================================================
   TRANSACTIONS INDEX (My Transactions)
   ========================================================================== */
.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}
.status-draft { background: rgba(75, 85, 99, 0.1); color: #4b5563; }
.status-pending { background: rgba(217, 119, 6, 0.1); color: #d97706; }
.status-active { background: rgba(79, 70, 229, 0.1); color: var(--accent-trust); }
.status-completed { background: rgba(16, 185, 129, 0.1); color: var(--accent-success); }
.status-disputed { background: rgba(220, 38, 38, 0.1); color: var(--accent-danger); }
.status-cancelled { background: rgba(156, 163, 175, 0.1); color: #9ca3af; }

.tx-row:hover { background-color: rgba(79, 70, 229, 0.02); }
.tx-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(79, 70, 229, 0.3); }

.d-none { display: none !important; }

/* ==========================================================================
   PROFILE PAGE (Settings Dashboard)
   ========================================================================== */
.profile-nav-item {
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}
.profile-nav-item i {
    width: 24px;
    text-align: center;
    margin-right: 8px;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}
.profile-nav-item:hover {
    background: var(--bg-alt);
    color: var(--color-text) !important;
}
.profile-nav-item.active {
    background: rgba(79, 70, 229, 0.1);
    color: var(--accent-trust) !important;
}
.profile-nav-item.active i {
    color: var(--accent-trust);
}
.profile-nav-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger) !important;
}

.profile-tab-pane {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.profile-tab-pane.active {
    opacity: 1;
    transform: translateY(0);
}

.completion-list li {
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(0,0,0,0.02);
}
.completion-list li.completed {
    background: rgba(16, 185, 129, 0.05);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.toggle-switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
input:checked + .toggle-slider {
    background-color: var(--accent-trust);
}
input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* ==========================================================================
   SECURITY CENTER
   ========================================================================== */
.score-progress {
    transition: stroke-dashoffset 1.5s ease-out;
}
.safeguard-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.safeguard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md) !important;
}

/* ==========================================================================
   USER SETTINGS DASHBOARD
   ========================================================================== */
.settings-nav-item {
    display: block;
    padding: 12px;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}
.settings-nav-item i {
    width: 24px;
    text-align: center;
    margin-right: 8px;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}
.settings-nav-item:hover {
    background: var(--bg-alt);
}
.settings-nav-item.active {
    background: rgba(79, 70, 229, 0.1);
    color: var(--accent-trust) !important;
}
.settings-nav-item.active i {
    color: var(--accent-trust);
}

.settings-tab-pane {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.settings-tab-pane.active {
    opacity: 1;
    transform: translateY(0);
}

/* Theme Cards */
.theme-card {
    cursor: pointer;
}
.theme-card-inner {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    transition: all 0.2s;
    background: white;
}
.theme-card:hover .theme-card-inner {
    border-color: rgba(79, 70, 229, 0.4);
}
.theme-card.active .theme-card-inner {
    border-color: var(--accent-trust);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}
.theme-preview {
    height: 100px;
    border-radius: 8px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
}
.light-preview { background: #f8fafc; }
.dark-preview { background: #1e1e1e; }

.tp-header {
    height: 20px;
    width: 100%;
    background: rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.dark-preview .tp-header { background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }

.tp-body {
    position: absolute;
    top: 30px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.dark-preview .tp-body { background: #2d2d2d; }

.theme-info {
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text);
}
.theme-card.active .theme-info {
    color: var(--accent-trust);
}

/* ==========================================================================
   GAME SEARCH SECTION — GAME CARDS
   ========================================================================== */
.game-search-section {
    background: var(--bg-main);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.game-card {
    display: block;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    aspect-ratio: 3 / 4;
    position: relative;
}

.game-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.game-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.game-logo {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1e1b4b;
}

.game-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 12px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.games-grid-wrapper {
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-text);
}

.search-input {
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus {
    border-color: var(--accent-trust) !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* ==========================================================================
   SHARED PAGE HERO — used by all dedicated public pages
   ========================================================================== */
.page-hero {
    padding: 130px 0 70px;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    color: white;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 110px 0 50px;
    }
    .page-hero h1 {
        font-size: 2.2rem !important;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   PREMIUM GAME CARDS
   ========================================================================== */
.premium-game-card {
    display: block;
    text-decoration: none;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3 / 4;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 50%, var(--game-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

.premium-game-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px -15px var(--game-color);
    border-color: transparent;
}

.premium-game-card:hover::before {
    opacity: 1;
}

.premium-game-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.game-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--game-color);
    filter: blur(80px);
    opacity: 0.15;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.premium-game-card:hover .game-glow {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1.2);
}

.game-icon-wrapper {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 0 20px var(--game-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
}

.premium-game-card:hover .game-icon-wrapper {
    transform: scale(1.2) translateY(-10px);
    color: var(--game-color);
    text-shadow: 0 0 30px var(--game-color);
}

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    text-align: center;
    z-index: 2;
    transition: transform 0.3s ease;
}

.premium-game-card:hover .game-info {
    transform: translateY(-5px);
}

.game-info .game-name {
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.game-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--game-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.premium-game-card:hover .game-action {
    opacity: 1;
    transform: translateY(0);
}

.game-action i {
    transition: transform 0.3s ease;
}

.premium-game-card:hover .game-action i {
    transform: translateX(5px);
}

/* ==========================================================================
   MODE SWITCH & ONBOARDING MODAL
   ========================================================================== */
.mode-switch {
    display: inline-flex;
    align-items: center;
    background: var(--bg-alt); /* Light grey/off-white background */
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 4px;
    position: relative;
    width: 180px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02);
}

.mode-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, var(--accent-trust), var(--accent-gaming));
    border-radius: 26px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.mode-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 0;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mode-btn:hover {
    color: var(--color-text);
}

.mode-btn.active {
    color: white;
}

.onboarding-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.onboarding-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.onboarding-modal {
    background: var(--bg-card);
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    text-align: center;
}

.onboarding-modal-overlay.show .onboarding-modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--color-text);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(124, 58, 237, 0.2));
    color: var(--accent-gaming);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.2);
}

.onboarding-modal h2 {
    margin: 0 0 10px 0;
    font-size: 1.6rem;
}

.onboarding-modal p {
    color: var(--color-text-muted);
    margin: 0 0 30px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================================================
   STAMP WATERMARK OVERLAYS
   ========================================================================== */
.status-stamp {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: 8px 24px;
    border-radius: 12px;
    pointer-events: none;
    z-index: 4;
    letter-spacing: 5px;
    user-select: none;
    border: 6px double currentColor;
    opacity: 0.16;
    background: transparent;
    text-align: center;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}
.status-stamp-completed {
    color: #10B981;
}
.status-stamp-paid {
    color: #4F46E5;
}
.status-stamp-disputed {
    color: #EF4444;
}
.status-stamp-cancelled {
    color: #6B7280;
}

/* Premium Responsive Unified Pagination Styles */
.st-pagination-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 18px;
    margin-top: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.04), 0 1px 4px -1px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
    width: 100%;
}
.st-pagination-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #64748b;
}
.st-pagination-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #4F46E5;
    background: rgba(79, 70, 229, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: -0.01em;
}
.st-pagination-count {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
}
.st-pagination-count strong {
    color: #0f172a;
    font-weight: 700;
}
.st-pagination-nav-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}
.st-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    user-select: none;
}
.st-page-btn:not(.disabled):hover,
.st-page-btn:not(.disabled):active {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #4F46E5;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
}
.st-page-btn.disabled {
    opacity: 0.45;
    background: #f8fafc;
    border-color: #f1f5f9;
    color: #94a3b8;
    pointer-events: none;
    box-shadow: none;
}
.st-pagination-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px;
    flex-wrap: wrap;
}
.st-pagination-numbers::-webkit-scrollbar {
    display: none;
}
.st-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid transparent;
}
.st-page-num:not(.active):not(.dots):hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #e2e8f0;
}
.st-page-num.active {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 3px 8px -1px rgba(79, 70, 229, 0.4);
    border-color: #4F46E5;
}
.st-page-num.dots {
    width: 20px;
    min-width: 20px;
    color: #94a3b8;
    pointer-events: none;
    font-size: 14px;
}

@media (min-width: 768px) {
    .st-pagination-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
    }
    .st-pagination-info {
        width: auto;
    }
    .st-pagination-nav-list {
        width: auto;
        justify-content: flex-end;
    }
    .st-pagination-badge {
        display: none;
    }
}

/* Fallback & Legacy pagination classes */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    justify-content: center;
    gap: 6px;
    margin: 0;
    flex-wrap: wrap;
}
.page-item .page-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px !important;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 13.5px;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}
.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    border-color: #4F46E5;
    box-shadow: 0 3px 8px -1px rgba(79, 70, 229, 0.35);
}
.page-item.disabled .page-link {
    color: #9ca3af;
    pointer-events: none;
    background-color: #f9fafb;
    border-color: #f1f5f9;
    box-shadow: none;
    opacity: 0.5;
}
.page-item .page-link:hover {
    z-index: 2;
    color: #4F46E5;
    background-color: #f8fafc;
    border-color: #cbd5e1;
}
.pagination p {
    display: none;
}

/* Utility classes */
.d-none { display: none !important; }
@media (min-width: 576px) {
    .d-sm-flex { display: flex !important; }
    .d-sm-none { display: none !important; }
}

/* ==========================================================================
   GLOBAL UTILITIES: DEMO POPOVER & PASSWORD TOGGLE (P4)
   ========================================================================== */
html.no-scroll, body.no-scroll {
    overflow: hidden !important;
}

html {
    scroll-padding-bottom: 150px !important;
    scroll-padding-top: 100px !important;
}

.premium-demo-popover {
    z-index: 2147483647 !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
    border: 2px solid rgba(99, 102, 241, 0.5) !important;
    background: #ffffff !important;
    max-width: 320px !important;
}
.premium-demo-popover .driver-popover-title {
    font-family: var(--font-heading, 'Inter', sans-serif) !important;
    font-weight: 800 !important;
    font-size: 1.15rem !important;
    color: #1e293b !important;
    margin-bottom: 10px !important;
    line-height: 1.3 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
}
.premium-demo-popover .driver-popover-description {
    font-family: var(--font-sans, 'Inter', sans-serif) !important;
    font-size: 0.9rem !important;
    color: #64748b !important;
    line-height: 1.5 !important;
}
.premium-demo-popover .driver-popover-footer button {
    border-radius: 8px !important;
    font-weight: 700 !important;
    padding: 6px 14px !important;
    font-size: 0.85rem !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.premium-demo-popover .driver-popover-next-btn {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    color: white !important;
    text-shadow: none !important;
    border: none !important;
}
.premium-demo-popover .driver-popover-next-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}
.premium-demo-popover .driver-popover-prev-btn {
    background: white !important;
    color: #4f46e5 !important;
    border: 1px solid #cbd5e1 !important;
    text-shadow: none !important;
    cursor: pointer !important;
}
.premium-demo-popover .driver-popover-prev-btn:hover {
    background: #f8fafc !important;
    color: #4338ca !important;
    border-color: #94a3b8 !important;
}

.demo-step-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.password-input-wrapper input {
    padding-right: 42px !important;
}
.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    color: var(--color-text-muted, #64748b);
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    z-index: 5;
    transition: color 0.2s ease, transform 0.1s ease;
}
.password-toggle-btn:hover {
    color: var(--accent-trust, #4F46E5);
}
.password-toggle-btn:active {
    transform: translateY(-50%) scale(0.92);
}

