/* ==========================================================================
   SNIP — NEXT-GEN MINIMALIST DESIGN SYSTEM (Awwwards / Aceternity Inspired)
   ========================================================================== */

:root {
    --bg-main: #040407;
    --bg-surface: #0a0a10;
    --bg-card: rgba(13, 13, 20, 0.65);
    --bg-card-hover: rgba(20, 20, 32, 0.85);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.22);
    --text-primary: #f5f5f7;
    --text-secondary: #888999;
    --text-muted: #555666;
    --accent-white: #ffffff;
    --accent-emerald: #10b981;
    --accent-blue: #3b82f6;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Geist Mono', 'JetBrains Mono', monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.02em;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: radial-gradient(circle at 50% 0%, rgba(30, 30, 55, 0.25) 0%, transparent 60%),
                var(--bg-main);
}

/* --- Interactive Canvas Background --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

#main-app {
    position: relative;
    z-index: 1;
}

/* --- Sleek Hardware-Accelerated Cursor --- */
#cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    margin: -3px 0 0 -3px;
    will-change: transform;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

#cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    margin: -16px 0 0 -16px;
    will-change: transform;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                margin 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                background 0.25s ease, 
                border-color 0.25s ease;
}

#cursor-ring.cursor-hover {
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(1px);
}

#cursor-ring.cursor-text {
    width: 22px;
    height: 30px;
    margin: -15px 0 0 -11px;
    border-radius: 4px;
    border-color: rgba(255, 255, 255, 0.5);
    background: transparent;
}

/* --- Floating Blur Navbar --- */
.nav-floating {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    padding: 12px 28px;
    background: rgba(10, 10, 16, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-floating:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

/* --- Premium Modern Brand Logo --- */
.logo-minimal {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease;
}

.logo-minimal:hover {
    opacity: 1;
}

/* White Tile Housing the Animated Scissors */
.brand-symbol {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #ffffff;
    color: #040407;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
}

.brand-symbol .scissors-icon {
    width: 17px;
    height: 17px;
    stroke: #040407;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
    display: block;
}

/* Scissors Blade Pivot System */
.brand-symbol .blade-top,
.brand-symbol .blade-bottom {
    transform-box: view-box;
    transform-origin: 12px 12px;
}

.brand-symbol .blade-top {
    animation: idleSnipTop 4.2s ease-in-out infinite;
}

.brand-symbol .blade-bottom {
    animation: idleSnipBottom 4.2s ease-in-out infinite;
}

.brand-symbol .scissor-spark {
    opacity: 0;
    stroke: #10b981;
}

/* Idle Ready Snip Pulse */
@keyframes idleSnipTop {
    0%, 80%, 100% { transform: rotate(0deg); }
    86% { transform: rotate(18deg); }
    92% { transform: rotate(0deg); }
}

@keyframes idleSnipBottom {
    0%, 80%, 100% { transform: rotate(0deg); }
    86% { transform: rotate(-18deg); }
    92% { transform: rotate(0deg); }
}

/* Crazy Double-Snip Cut on Hover */
@keyframes crazySnipTop {
    0% { transform: rotate(0deg); }
    18% { transform: rotate(34deg); }
    32% { transform: rotate(4deg); }
    48% { transform: rotate(36deg); }
    65% { transform: rotate(2deg); }
    80% { transform: rotate(18deg); }
    100% { transform: rotate(0deg); }
}

@keyframes crazySnipBottom {
    0% { transform: rotate(0deg); }
    18% { transform: rotate(-34deg); }
    32% { transform: rotate(-4deg); }
    48% { transform: rotate(-36deg); }
    65% { transform: rotate(-2deg); }
    80% { transform: rotate(-18deg); }
    100% { transform: rotate(0deg); }
}

@keyframes sparkFlash {
    0%, 14% { opacity: 0; stroke-dasharray: 0 10; }
    18%, 28% { opacity: 1; stroke: #10b981; stroke-dasharray: 6 0; }
    32%, 44% { opacity: 0; }
    48%, 58% { opacity: 1; stroke: #040407; stroke-dasharray: 6 0; }
    68%, 100% { opacity: 0; }
}

.logo-minimal:hover .brand-symbol {
    transform: scale(1.12) rotate(-8deg);
    box-shadow: 0 0 32px rgba(255, 255, 255, 0.75);
}

.logo-minimal:hover .blade-top {
    animation: crazySnipTop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}

.logo-minimal:hover .blade-bottom {
    animation: crazySnipBottom 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}

.logo-minimal:hover .scissor-spark {
    animation: sparkFlash 0.6s ease forwards;
}

/* Brand Text with Old White Dot that brightens on hover */
.brand-text {
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.04em;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
}

.logo-minimal .dot {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    margin-left: 2px;
    margin-top: 5px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    animation: pulseDot 2.5s infinite ease-in-out;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    flex-shrink: 0;
}

.logo-minimal:hover .dot {
    background-color: #ffffff;
    box-shadow: 0 0 16px #ffffff, 0 0 32px rgba(255, 255, 255, 1);
    transform: scale(1.75);
    filter: drop-shadow(0 0 8px #ffffff);
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 0.85; box-shadow: 0 0 6px rgba(255, 255, 255, 0.7); }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px rgba(255, 255, 255, 1); }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-cta {
    background: #ffffff;
    color: #040407;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.nav-cta:hover {
    transform: scale(1.04);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
}

/* --- Hero Typography & Badges --- */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-heading {
    font-size: clamp(3.2rem, 8vw, 7.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.045em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, 0.38) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 48px;
    line-height: 1.6;
    font-weight: 400;
}

/* --- Aceternity Spotlight / Border-Beam Input Container --- */
.border-beam-box {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    background: rgba(12, 12, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 10px 10px 10px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.7),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.border-beam-box:focus-within {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.9),
                0 0 40px rgba(255, 255, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.input-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.input-hero {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font-sans);
    font-weight: 400;
}

.input-hero::placeholder {
    color: var(--text-muted);
}

.btn-snip {
    background: #ffffff;
    color: #040407;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    flex-shrink: 0;
}

.btn-snip:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.btn-snip:active {
    transform: scale(0.98);
}

/* Feature badges under input */
.input-features {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.feature-pill span.check {
    color: var(--accent-emerald);
    font-weight: 700;
}

/* --- Shortened Result Card --- */
.result-card-modern {
    max-width: 780px;
    margin: 32px auto 0;
    background: rgba(14, 14, 22, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.result-url {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-mono);
    word-break: break-all;
}

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

.btn-copy {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--border-hover);
}

.btn-copy.copied {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--accent-emerald);
}

/* --- Infinite Marquee with Blur Fade Edges --- */
.marquee-wrapper {
    margin: 120px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 35s linear infinite;
}

.marquee-track.reverse {
    animation: marqueeScrollRev 40s linear infinite;
    margin-top: 18px;
}

.marquee-item {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    padding: 0 30px;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: rgba(255, 255, 255, 0.9);
    user-select: none;
    transition: var(--transition);
}

.marquee-icon {
    width: clamp(26px, 3.5vw, 40px);
    height: clamp(26px, 3.5vw, 40px);
    stroke: currentColor;
    stroke-width: 2.2;
    flex-shrink: 0;
    opacity: 0.88;
}

.marquee-item.outline {
    color: var(--bg-main);
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.32);
    paint-order: stroke fill;
    transition: var(--transition);
}

.marquee-item.outline .marquee-icon {
    stroke: rgba(255, 255, 255, 0.32);
    transition: var(--transition);
}

.marquee-item.outline:hover {
    color: var(--bg-main);
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

.marquee-item.outline:hover .marquee-icon {
    stroke: rgba(255, 255, 255, 0.85);
}

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

.marquee-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

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

@keyframes marqueeScrollRev {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

/* --- Interactive Bento Grid Section --- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.bento-cell {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.bento-cell:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.bento-span-8 { grid-column: span 8; }
.bento-span-4 { grid-column: span 4; }
.bento-span-6 { grid-column: span 6; }
.bento-span-12 { grid-column: span 12; }

@media (max-width: 900px) {
    .bento-span-8, .bento-span-4, .bento-span-6 { grid-column: span 12; }
    .bento-cell { padding: 28px; }
}

.bento-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bento-headline {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.bento-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 420px;
}

/* Radar Scan Widget in Bento */
.radar-box {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 1px solid rgba(16, 185, 129, 0.25);
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(16, 185, 129, 0.35) 60deg, transparent 65deg);
    animation: radarSpin 3s linear infinite;
}

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

.radar-ping {
    width: 8px;
    height: 8px;
    background: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-emerald);
    position: relative;
    z-index: 2;
}

/* Metrics Sparkline Widget in Bento */
.sparkline-svg {
    width: 100%;
    height: 90px;
    margin-top: 24px;
    overflow: visible;
}

.sparkline-line {
    fill: none;
    stroke: var(--accent-white);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.sparkline-fill {
    fill: url(#sparkline-gradient);
    opacity: 0.15;
}

/* Latency Grid in Bento */
.latency-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.latency-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.latency-city {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.latency-ms {
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-emerald);
}

/* --- Stats Counter Banner --- */
.stats-banner {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 60px 0;
    margin: 120px 0;
    background: rgba(10, 10, 16, 0.4);
}

.stats-grid-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

@media (max-width: 768px) {
    .stats-grid-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

.stat-num {
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Footer --- */
.footer-cta {
    padding: 120px 32px 80px;
    text-align: center;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #040407;
    padding: 20px 48px;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.footer-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 13px;
    color: var(--text-muted);
}

/* --- Flash Messages --- */
.flash-container {
    max-width: 600px;
    margin: 20px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 2000;
}

.flash-msg {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
}

.flash-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.flash-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* --- Forms & Buttons for Auth Pages --- */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(12, 12, 18, 0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7);
}

.auth-card:hover {
    border-color: var(--border-hover);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.btn-primary {
    width: 100%;
    background: #ffffff;
    color: #040407;
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
}

/* Dashboard Global Preview Image */
.global-swipeimage {
    position: fixed;
    top: 0;
    left: 0;
    width: 360px;
    height: 202px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateX(-50%) translateY(-50%);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: var(--bg-main);
}

.destination-preview-trigger {
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
    cursor: pointer;
}

.destination-preview-trigger:hover {
    color: #ffffff !important;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 3px;
}

/* --- Interactive Action Buttons in Dashboard --- */
.btn-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    flex-shrink: 0;
}

.btn-action-icon:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: var(--border-hover);
    transform: scale(1.05);
}

.btn-action-delete {
    color: var(--text-muted);
}

.btn-action-delete:hover {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #ef4444 !important;
    transform: scale(1.08);
}

/* --- Sleek iOS / Vercel Switch Toggle --- */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    vertical-align: middle;
    cursor: pointer;
}

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

.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 20px;
}

.switch-slider::before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.switch-toggle input:checked + .switch-slider {
    background-color: var(--accent-emerald);
    border-color: var(--accent-emerald);
}

.switch-toggle input:checked + .switch-slider::before {
    transform: translateX(16px);
    background-color: #040407;
}

/* --- Badges & Pills --- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.pill-ads-on {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.pill-ads-off {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.pill-ad-custom {
    background: rgba(168, 85, 247, 0.14);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.28);
}

.ad-mode-option {
    transition: all 0.2s ease;
}

.ad-mode-option:hover {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.ad-mode-option.selected {
    background: rgba(255, 255, 255, 0.06) !important;
}

.pill-clean {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pill-flagged {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* --- Interstitial Gateway (Sponsored Transit) --- */
.transit-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.transit-card {
    width: 100%;
    max-width: 520px;
    background: rgba(12, 12, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.8),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(24px);
    position: relative;
    overflow: hidden;
}

.transit-halo {
    position: relative;
    width: 124px;
    height: 124px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.transit-svg-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
    background: transparent;
}

.transit-count-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-primary);
    user-select: none;
    pointer-events: none;
}

.pause-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin: -8px auto 16px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
    animation: pausePulse 1.8s infinite ease-in-out;
}

@keyframes pausePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(0.98); }
}

/* --- Ad Transit Box & Showcase --- */
.ad-transit-box {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 24px 0;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.ad-transit-box:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.035);
}

.ad-transit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.pill-ad-status {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-ad-here {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-ad-here:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--accent-emerald);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* Custom Ad Styling */
.custom-ad-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-ad-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-ad-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.custom-ad-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.custom-ad-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.custom-ad-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-visit-custom-ad {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #040407;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-visit-custom-ad:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.custom-ad-domain {
    font-size: 11.5px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

/* Network Ad Placeholder */
.network-ad-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ad-network-placeholder {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ad-placeholder-graphic {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #a1a1aa;
}

.ad-headline {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.ad-subtext {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.btn-network-promo {
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-network-promo:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--text-primary);
}

.btn-transit {
    width: 100%;
    padding: 16px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: #ffffff;
    color: #040407;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-transit.locked {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

.btn-transit:not(.locked):hover {
    transform: scale(1.03);
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.45);
}

/* Modal Styling */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    width: 100%;
    max-width: 500px;
    background: #0f0f14;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pricing-feature-pill {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 14px 18px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-bottom: 20px;
}

.feature-price {
    font-size: 28px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--accent-emerald);
}

.feature-per {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.ad-perks-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ad-perk-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ad-perk-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.ad-perk-item strong {
    display: block;
    font-size: 13.5px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.ad-perk-item span {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}


/* --- QR Studio Shape Selector Cards (2 per row) --- */
.shape-selector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .shape-selector-grid {
        grid-template-columns: 1fr;
    }
}

.shape-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    width: 100%;
    color: var(--text-primary);
}

.shape-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.shape-card.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.shape-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.shape-card.active .shape-icon-box {
    background: #ffffff;
    border-color: #ffffff;
    color: #040407;
}

.shape-card.active .shape-icon-box svg {
    stroke: #040407;
    fill: #040407;
}

.shape-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.shape-card-sub {
    font-size: 11px;
    color: var(--text-secondary);
}


