/* ==========================================================================
   GGRoute - Premium Gamer Aesthetic Styling System (Vanilla CSS)
   ========================================================================== */

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

:root {
    /* Color Tokens (Tailored HSL / Neon Theme) */
    --bg-main: oklch(10% 0.02 260); /* Deep midnight navy/black */
    --bg-card: rgba(18, 18, 30, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 242, 254, 0.4);

    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --primary: #00f2fe; /* Cyber Cyan */
    --secondary: #4facfe; /* Electric Blue */
    --accent: #ec008c; /* Neon Magenta */
    --accent-glow: rgba(0, 242, 254, 0.15);

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Gradation */
    --grad-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --grad-glow: linear-gradient(135deg, rgba(0, 242, 254, 0.4) 0%, rgba(236, 0, 140, 0.4) 100%);
    --grad-text: linear-gradient(to right, #00f2fe, #4facfe, #ec008c);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --site-max-width: 1200px;
    --readable-max-width: 920px;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden; /* 防止横向溢出，放在 html 上避免影响 body 滚动 */
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* 注意：不在 body 上设置 overflow-x: hidden + position: relative 的组合 */
    /* 这个组合在 CSS 规范中会导致 body 的滚动上下文异常，造成页面无法滚动 */
}

/* Decorative Background Glows - 使用 position: fixed 避免撑高 body */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    right: 0;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(236, 0, 140, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

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

p {
    line-height: 1.6;
    color: var(--text-secondary);
}

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

/* Header */
.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: var(--site-max-width);
    width: 100%;
    margin: 0 auto;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.logo-accent {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
}

.logo-arrow {
    margin-left: 0.25rem;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.6)) drop-shadow(0 0 3px rgba(236, 0, 140, 0.4));
    display: inline-block;
    vertical-align: middle;
    transition: var(--transition-smooth);
}

.logo-arrow:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.8)) drop-shadow(0 0 5px rgba(236, 0, 140, 0.6));
}

.logo-arrow-mini {
    margin-right: 0.4rem;
    filter: drop-shadow(0 0 4px rgba(0, 242, 254, 0.6));
    vertical-align: middle;
}

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

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    color: #8fa0b5; /* Muted silver-blue from screenshot */
    position: relative;
    padding: 0.4rem 0;
    transition: var(--transition-smooth);
}

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

.nav-link.active {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
}

/* Underline active indicator with glow */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary), 0 0 5px var(--primary);
    border-radius: 2px;
}

.nav-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-nav-auth {
    background-color: var(--primary);
    color: #060b13;
    padding: 0.6rem 1.6rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-nav-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.8);
    background-color: #33f5ff;
}

.btn-primary {
    background: var(--grad-primary);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}

.btn-submit {
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(0, 242, 254, 0.05);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
    transform: translateY(-2px);
}

.btn-trial {
    background: linear-gradient(135deg, #ec008c 0%, #00f2fe 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(236, 0, 140, 0.3);
    padding: 0.8rem 2.2rem;
    font-size: 1rem;
    border-radius: 50px;
}

.btn-trial:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 242, 254, 0.5);
}

.btn-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 0.5rem 1rem;
}

.btn-link:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}

/* Main Container */
.container, .main-content {
    max-width: var(--site-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    flex: 1;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 0;
    gap: 2.5rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    max-width: 800px;
}

.hero-tag {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(0, 242, 254, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 242, 254, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}

.section-header .hero-tag {
    align-self: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(to right, #ffffff, #d1d5db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 242, 254, 0.1);
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

/* Showcase Container */
.showcase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    background: rgba(20, 20, 35, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    margin: 1rem auto 0;
}

.showcase-card {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.sylvanas-card {
    padding: 0;
    border: 2px solid rgba(236, 0, 140, 0.25);
    box-shadow: 0 0 25px rgba(236, 0, 140, 0.15);
    aspect-ratio: 1;
    position: relative;
}

.sylvanas-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.visualizer-card {
    justify-content: space-between;
    gap: 1rem;
}

.visualizer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
}

.visualizer-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.visualizer-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Latency comparison list */
.latency-bars {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin: 0.5rem 0;
}

.latency-row {
    display: grid;
    grid-template-columns: 100px 1fr 60px;
    align-items: center;
    gap: 1rem;
}

.latency-label-bar {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.latency-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.latency-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.latency-bar-container {
    height: 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.latency-bar {
    height: 100%;
    border-radius: 50px;
    transition: width 1s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.latency-bar.direct {
    background: var(--danger);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.latency-bar.accelerated {
    background: var(--grad-primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.latency-ms-value {
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: right;
}

.latency-ms-value.direct-ms {
    color: var(--danger);
}

.latency-ms-value.accelerated-ms {
    color: var(--primary);
}

/* Jitter Vertical Chart */
.jitter-chart {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 70px;
    padding: 0 0.5rem;
}

.chart-bar {
    width: 6px;
    background: linear-gradient(to top, rgba(0, 242, 254, 0.1) 0%, var(--primary) 100%);
    border-radius: 3px 3px 0 0;
    transition: height 0.5s ease;
}

.chart-bar.peak {
    background: linear-gradient(to top, rgba(239, 68, 68, 0.2) 0%, var(--danger) 100%);
}

.chart-bar.real-time {
    background: linear-gradient(to top, rgba(16, 185, 129, 0.2) 0%, var(--success) 100%);
}

.chart-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0 0.5rem;
}

.chart-legend span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

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

.legend-dot.peak {
    background-color: var(--danger);
}

.legend-dot.real {
    background-color: var(--success);
}

/* Features Grid Section */
.features-section {
    padding: 5rem 0;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Glass Card System */
.glass-card {
    background: rgba(20, 20, 35, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0, 242, 254, 0.12), 0 0 25px rgba(236, 0, 140, 0.05);
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.feature-desc {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 0;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 430px;
    overflow: hidden;
}

.pricing-card-featured {
    border-color: rgba(0, 242, 254, 0.35);
    box-shadow: 0 20px 45px rgba(0, 242, 254, 0.12), 0 0 30px rgba(236, 0, 140, 0.08);
}

.pricing-ribbon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #06111c;
    background: var(--grad-primary);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.pricing-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-right: 3.5rem;
}

.pricing-code {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.pricing-name {
    font-size: 1.35rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin-top: 0.25rem;
}

.pricing-price span {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
}

.pricing-price small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex: 1;
}

.pricing-features li {
    position: relative;
    padding-left: 1.35rem;
    line-height: 1.5;
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.pricing-action {
    justify-content: center;
    width: 100%;
    min-height: 44px;
}

.pricing-empty {
    grid-column: 1 / -1;
    text-align: center;
}

.pricing-alert {
    margin-bottom: 1.5rem;
}

.pricing-policy-note {
    max-width: var(--readable-max-width);
    margin: 1.5rem auto 0;
    text-align: center;
}

.pricing-policy-note p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pricing-policy-note a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Live Node Status */
.nodes-section {
    padding: 2rem 0 5rem;
}

.nodes-panel {
    max-width: 800px;
    margin: 0 auto;
}

.nodes-section-header {
    max-width: 100%;
    margin: 0 0 1rem;
    text-align: left;
}

.nodes-section-header p {
    font-size: 0.9rem;
}

.nodes-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.node-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.node-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 242, 254, 0.2);
}

.node-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.node-status-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
}

.node-name {
    font-weight: 500;
}

.node-region {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--text-secondary);
}

.node-ping {
    font-family: monospace;
    font-weight: 600;
    color: var(--success);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: auto;
    background: rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link:hover {
    color: var(--text-secondary);
}

.nav-logout-form {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .showcase-container {
        grid-template-columns: 1fr;
    }
    
    .sylvanas-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .header-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 991px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* ==========================================================================
   GGRoute - Auth and Dashboard Core Styles Extensions
   ========================================================================== */

/* Helper Utilities */
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.w-full {
    width: 100%;
}
.text-center {
    text-align: center;
}

/* Auth Cards */
.auth-card {
    max-width: 480px;
    width: 100%;
    margin: 4rem auto;
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: rgba(20, 20, 35, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 242, 254, 0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.form-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .password-input {
    width: 100%;
    padding-right: 4.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 6px;
    color: var(--primary);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.password-toggle-icon {
    width: 1.2rem;
    height: 1.2rem;
}

.password-toggle:hover,
.password-toggle:focus {
    outline: none;
    background: rgba(0, 242, 254, 0.12);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.remember-me input {
    accent-color: var(--primary);
    cursor: pointer;
}

.forgot-password {
    color: var(--primary);
    font-weight: 500;
}

.forgot-password:hover {
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-heading);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider:not(:empty)::before {
    margin-right: .75em;
}

.auth-divider:not(:empty)::after {
    margin-left: .75em;
}

.google-signin-wrapper {
    margin-top: 1rem;
    justify-content: center;
}

.faq-section {
    margin: 4rem 0;
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    padding: 1.5rem;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.5rem;
    color: var(--primary);
    font-size: 1.15rem;
}

.faq-answer {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.support-page-hero {
    padding-bottom: 1.5rem;
}

.support-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    padding: 1rem 0 5rem;
}

.support-contact-card {
    position: sticky;
    top: 1.5rem;
    display: grid;
    gap: 0.8rem;
}

.support-contact-card h2 {
    font-size: 1.35rem;
}

.support-email {
    color: var(--primary);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.support-contact-divider {
    height: 1px;
    margin: 0.5rem 0;
    background: var(--border-color);
}

.support-faq-module {
    min-width: 0;
}

.support-section-header {
    max-width: var(--readable-max-width);
    margin: 0 0 1.5rem;
    text-align: left;
}

.support-section-header .hero-tag {
    align-self: flex-start;
}

.support-faq-grid {
    max-width: none;
    grid-template-columns: 1fr;
}

/* Alert Boxes */
.alert {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #86efac;
}

.alert ul {
    list-style: none;
    padding-left: 0;
}

/* Dashboard Welcomer */
.dashboard-welcome-widget {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(20, 20, 35, 0.6) 0%, rgba(10, 10, 20, 0.6) 100%);
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.welcome-user-info h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-user-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.welcome-user-plan {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.plan-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.plan-badge-active {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.15);
}

.plan-badge-expired {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.15);
}

.plan-expiry {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.connection-widget, .stats-summary-widget {
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(20, 20, 35, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--primary);
    padding-left: 0.8rem;
}

.connection-item {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.subscription-meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.subscription-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
}

.subscription-meta-label {
    color: var(--text-muted);
}

.subscription-status-valid {
    color: #10b981;
    font-weight: 600;
}

.subscription-status-invalid {
    color: #ef4444;
    font-weight: 600;
}

.connection-instructions {
    margin-top: 1.5rem;
}

.connection-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.copy-input-group {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.3rem;
}

.copy-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.5rem;
    font-family: monospace;
    font-size: 0.9rem;
}

.copy-input:focus {
    outline: none;
}

.subscription-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
}

.subscription-empty-copy {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.dashboard-purchase-action {
    margin-top: 0.75rem;
}

.service-status-ok {
    color: #10b981;
}

.service-status-muted,
.chart-muted {
    color: var(--text-muted);
}

.link-speed-chart {
    margin-top: 1.5rem;
}

.btn-copy {
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
}

.token-highlight {
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.token-warning {
    font-size: 0.8rem;
    color: var(--warning);
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 0.8rem;
    border-radius: 6px;
    margin-top: 0.8rem;
    line-height: 1.5;
}

.token-status {
    font-size: 0.85rem;
    font-weight: 500;
}

.status-active {
    color: var(--success);
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.status-inactive {
    color: var(--text-muted);
}

.connection-instructions h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.connection-instructions p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

/* Stats Summary Box */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

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

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

.link-speed-chart {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.bandwidth-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    overflow: hidden;
}

.bandwidth-bar {
    height: 100%;
    background: var(--grad-primary);
    border-radius: 50px;
    box-shadow: 0 0 10px var(--primary);
}

/* Dashboard Tables */
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.dashboard-table th, .dashboard-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.01);
}

.dashboard-table tbody tr {
    transition: var(--transition-smooth);
}

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

.node-name-td {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: rgba(0, 242, 254, 0.05);
}

.badge-status {
    color: var(--success);
    font-weight: 600;
    font-size: 0.8rem;
}

.dashboard-node-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.2rem;
}

.dashboard-nodes-panel {
    max-width: 100%;
    margin-top: 2rem;
}

.dashboard-empty {
    padding: 2rem 0;
    color: var(--text-muted);
    text-align: center;
}

.dashboard-node-card {
    display: grid;
    align-items: center;
    gap: 0.5rem;
    min-height: 4.25rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.dashboard-node-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 242, 254, 0.2);
}

.dashboard-node-main,
.node-load-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dashboard-node-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(8rem, 42%);
    align-items: center;
    height: 1.75rem;
}

.dashboard-node-main .node-info {
    align-items: center;
    min-width: 0;
    height: 100%;
    line-height: 1.75rem;
}

.dashboard-node-main .node-name {
    font-size: 0.95rem;
    line-height: 1.75rem;
}

.node-load-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.node-load-percent {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.75rem;
    align-self: center;
}

.node-load-inline {
    display: grid;
    grid-template-columns: minmax(5rem, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    height: 100%;
}

.node-load-track {
    flex: 1;
    align-self: center;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.node-load-fill {
    height: 100%;
    min-width: 4px;
    border-radius: inherit;
}

.node-load-fill-low {
    background: linear-gradient(90deg, #22c55e, #86efac);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.35);
}

.node-load-fill-high {
    background: linear-gradient(90deg, #f59e0b, #facc15);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.node-load-fill-unknown {
    background: rgba(148, 163, 184, 0.45);
}

.node-load-detail {
    color: var(--text-muted);
    font-size: 0.72rem;
}

/* responsive media dashboard query */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-node-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-welcome-widget {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .welcome-user-plan {
        align-items: flex-start;
    }
}

/* Standalone pages */
.page-hero {
    padding: 3.5rem 2rem 1rem;
    text-align: center;
}

.page-hero .hero-content {
    min-height: auto;
    padding: 1.5rem 0 0;
    margin: 0 auto;
    text-align: center;
}

.news-page-hero {
    padding-bottom: 1.5rem;
}

.news-shell {
    width: 100%;
    margin: 0 auto;
    padding: 1rem 0 5rem;
}

.news-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.news-tab {
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    font-weight: 700;
}

.news-tab:hover,
.news-tab.active {
    color: var(--primary);
    border-color: rgba(0, 242, 254, 0.45);
    background: rgba(0, 242, 254, 0.08);
}

.news-list {
    display: grid;
    gap: 1rem;
}

.news-card,
.news-empty,
.news-detail {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(18, 18, 30, 0.65);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.news-card {
    display: grid;
    gap: 0.75rem;
    padding: 1.35rem;
}

.news-card:hover {
    border-color: rgba(0, 242, 254, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.news-category {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 4px;
    color: var(--primary);
    background: rgba(0, 242, 254, 0.08);
    font-weight: 800;
}

.news-card-title {
    font-size: 1.45rem;
}

.news-card-title a:hover {
    color: var(--primary);
}

.news-card-summary {
    color: var(--text-secondary);
}

.news-card-link,
.news-back-link {
    width: fit-content;
    color: var(--primary);
    font-weight: 800;
}

.news-card-link:hover,
.news-back-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.45);
}

.news-empty {
    padding: 2rem;
    text-align: center;
}

.news-empty h2 {
    margin-bottom: 0.5rem;
}

.news-detail {
    width: 100%;
    margin: 3rem auto 5rem;
    padding: 2.5rem;
}

.news-detail-header {
    display: grid;
    gap: 1rem;
    max-width: var(--readable-max-width);
    margin: 0 auto;
    padding: 1rem 0 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.news-detail-header h1 {
    font-size: 2.4rem;
}

.news-detail-body {
    max-width: var(--readable-max-width);
    margin: 0 auto;
    padding-top: 1.75rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.news-detail-body > * + * {
    margin-top: 1rem;
}

.news-detail-body h2,
.news-detail-body h3,
.news-detail-body h4 {
    color: var(--text-primary);
    margin-top: 1.75rem;
}

.news-detail-body ul,
.news-detail-body ol {
    padding-left: 1.4rem;
}

.news-detail-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-pagination {
    margin-top: 1.5rem;
}

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

.checkout-section {
    padding-top: 0;
}

.checkout-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem;
}

.checkout-title {
    margin: 0 0 1rem;
    color: var(--text-primary);
}

.checkout-copy {
    color: var(--text-secondary);
    line-height: 1.8;
}

.checkout-session {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.checkout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.legal-section {
    padding-top: 4rem;
    padding-bottom: 5rem;
}

.legal-card {
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-card);
}

.legal-card > .hero-tag,
.legal-card > .legal-title,
.legal-card > .legal-content {
    max-width: var(--readable-max-width);
    margin-left: auto;
    margin-right: auto;
}

.legal-title {
    margin: 1rem 0 2rem;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
}

.legal-content {
    display: grid;
    gap: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.legal-content h2 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.15rem;
}

.legal-content strong {
    color: var(--text-primary);
}

.legal-content ul,
.legal-content ol {
    display: grid;
    gap: 0.65rem;
    padding-left: 1.35rem;
}

.legal-content li {
    color: var(--text-secondary);
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 2.5rem 1.25rem 0;
    }

    .legal-section {
        padding-top: 3rem;
        padding-bottom: 4rem;
    }

    .legal-card {
        padding: 1.25rem;
    }

    .legal-title {
        font-size: 2rem;
    }

    .news-shell {
        padding: 1rem 0 4rem;
    }

    .news-card,
    .news-detail {
        padding: 1.25rem;
    }

    .news-detail {
        margin-top: 2rem;
    }

    .news-detail-header h1 {
        font-size: 1.8rem;
    }
}
