:root {
    --primary: #E88EA5;
    --primary-hover: #d45b78;
    --primary-light: #fff0f3;
    --primary-border: #f8c2cf;
    --primary-glow: rgba(232, 142, 165, 0.12);
    
    --bg-page: #faf7f8;
    --bg-card: #ffffff;
    --bg-card-subtle: #fdf8f9;
    --bg-input: #ffffff;
    
    --text-title: #1e293b;
    --text-body: #475569;
    --text-muted: #94a3b8;
    --text-dim: #cbd5e1;
    
    --border-color: #f1dde2;
    --border-focus: #E88EA5;
    
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    
    --radius: 12px;
    --radius-sm: 8px;
    --radius-pill: 9999px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
    --primary: #E88EA5;
    --primary-hover: #f0a3b6;
    --primary-light: #25161b;
    --primary-border: #44222b;
    --primary-glow: rgba(232, 142, 165, 0.15);
    
    --bg-page: #0a0b10;
    --bg-card: #12131a;
    --bg-card-subtle: #171822;
    --bg-input: #171924;
    
    --text-title: #ffffff;
    --text-body: #d1d5db;
    --text-muted: #8b92a5;
    --text-dim: #4b5268;
    
    --border-color: #272838;
    --border-focus: #E88EA5;
    
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* Route Anti-Flash Rules */
html.is-dashboard-route #viewLanding {
    display: none !important;
}

html.is-landing-route #viewDashboard,
html.is-landing-route #authScreen {
    display: none !important;
}

html, body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

#app {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    padding: 0 !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body {
    background-color: var(--bg-page);
    color: var(--text-body);
    min-height: 100vh;
}

/* =========================================================
   CUSTOM SLEEK MINIMALIST SCROLLBAR (Black/White Theme Adaptive)
   ========================================================= */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.22);
    border-radius: 9999px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.45);
    border: 2px solid transparent;
    background-clip: padding-box;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border: 2px solid transparent;
    background-clip: padding-box;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.48);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* Firefox standard scrollbars */
html, * {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
}

[data-theme="dark"], [data-theme="dark"] * {
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

/* NAVBAR - ALWAYS 100% FULL-WIDTH EDGE-TO-EDGE */
.navbar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    height: 72px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    z-index: 200;
    box-sizing: border-box !important;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
}

.brand-logo-img {
    height: 38px;
    width: auto;
    max-height: 40px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s;
}

.nav-brand:hover .brand-logo-img {
    transform: scale(1.05);
}

.brand-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-title);
    letter-spacing: -0.3px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    transform: translateY(-1.5px);
}

.brand-text span {
    color: var(--primary-hover);
    margin-left: 6px;
}

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

.nav-link {
    color: var(--text-body);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* THEME TOGGLE BUTTON */
.theme-toggle-btn {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-body);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
}

.theme-toggle-btn:hover {
    background: var(--primary-light);
    color: var(--primary-hover);
    border-color: var(--primary-border);
}

/* PILLS & BADGES */
.badge {
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pink {
    background: var(--primary-light);
    color: var(--primary-hover);
    border: 1px solid var(--primary-border);
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-admin {
    background: #fdf2f8;
    color: #db2777;
    border: 1px solid #fbcfe8;
}

.user-pill {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-title);
    display: flex;
    align-items: center;
    gap: 6px;
}

.balance-pill {
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    color: var(--primary-hover);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.balance-pill:hover {
    transform: translateY(-1px);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 3px 10px rgba(232, 142, 165, 0.25);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-body);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-subtle);
    border-color: var(--primary);
    color: var(--primary-hover);
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 13px 24px;
    font-size: 15px;
    border-radius: var(--radius);
}

.btn-block {
    width: 100%;
}

/* LANDING PAGE */
.landing-view {
    flex: 1;
}

.hero-section {
    padding: 70px 20px 50px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    color: var(--primary-hover);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 50px;
    font-weight: 900;
    color: var(--text-title);
    line-height: 1.15;
    letter-spacing: -1.2px;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #E88EA5 0%, #db2777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-body);
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    gap: 16px;
}

.metric-item {
    text-align: center;
}

.metric-number {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-hover);
    letter-spacing: -0.5px;
}

.metric-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.section {
    padding: 70px 20px;
    max-width: 1140px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

.section-tag {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-hover);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-title);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.feature-icon-box {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: var(--primary-hover);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 18px;
}

.feature-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
}

/* PRICING CALCULATOR CARD */
.pricing-card-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 36px;
    max-width: 720px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    text-align: center;
}

.pricing-rate-large {
    font-size: 50px;
    font-weight: 900;
    color: var(--primary-hover);
    margin-bottom: 4px;
}

.pricing-rate-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.calc-slider-box {
    margin: 30px 0 26px 0;
    position: relative;
    padding: 4px 0;
}

.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 9999px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

[data-theme="dark"] .range-slider {
    background: #27272a;
}

/* Slider Thumb - WebKit */
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 2.5px solid #0f172a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: grab;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s ease, border-color 0.15s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.18);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.range-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.06);
}

/* Slider Thumb - Dark Mode WebKit */
[data-theme="dark"] .range-slider::-webkit-slider-thumb {
    background: #09090b;
    border: 2.5px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.18);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

/* Slider Thumb - Firefox */
.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 2.5px solid #0f172a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.18);
}

[data-theme="dark"] .range-slider::-moz-range-thumb {
    background: #09090b;
    border: 2.5px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* Slider Track - Firefox */
.range-slider::-moz-range-track {
    height: 6px;
    border-radius: 9999px;
    background: #e2e8f0;
}

[data-theme="dark"] .range-slider::-moz-range-track {
    background: #27272a;
}

.calc-output-row {
    display: flex;
    justify-content: space-between;
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-title);
    margin: 20px 0;
}

/* FAQ */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
}

.faq-question {
    padding: 18px 22px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-title);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 22px 18px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-body);
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

/* FOOTER */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: auto;
}

/* =============================================================
   DASHBOARD LAYOUT (dashboard.nyanproxy.com)
   ============================================================= */
.dashboard-view {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 72px);
    align-items: stretch;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.sidebar {
    width: 250px;
    min-height: 100%;
    flex-shrink: 0;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 16px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-item {
    background: none;
    border: none;
    outline: none;
    color: var(--text-body);
    font-size: 14px;
    font-weight: 600;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    width: 100%;
}

.sidebar-item:hover {
    background: var(--primary-light);
    color: var(--primary-hover);
}

.sidebar-item.active {
    background: var(--primary);
    color: #ffffff;
}

.sidebar-item.admin-tab {
    color: #db2777;
    background: #fdf2f8;
    border: 1px dashed #f472b6;
    margin-top: 10px;
}

[data-theme="dark"] .sidebar-item.admin-tab {
    background: #25121b;
    border-color: #701a40;
    color: #f472b6;
}

.sidebar-item.admin-tab:hover {
    background: #fbcfe8;
}

[data-theme="dark"] .sidebar-item.admin-tab:hover {
    background: #3b1327;
}

.sidebar-item.admin-tab.active {
    background: #db2777;
    color: white;
}

.dash-content {
    flex: 1;
    padding: 32px 40px;
    overflow-y: auto;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.pane {
    display: none;
    animation: fadeIn 0.15s ease-in-out;
}

.pane.active {
    display: block;
}

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

.pane-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.pane-title-row h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-title);
}

.pane-title-row p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* =========================================================
   DASHBOARD TAB: OVERVIEW, TELEMETRY & STATS
   ========================================================= */
.dash-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.dash-metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.dash-metric-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 14px;
}

.dash-metric-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

.dash-metric-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-title);
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 4px;
}

.dash-metric-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.dash-metric-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-hover);
    text-decoration: none;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dash-metric-link:hover {
    text-decoration: underline;
}

.dash-progress-track {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 8px;
}

.dash-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #E88EA5, #f472b6);
    border-radius: 9999px;
    transition: width 0.4s ease;
}

/* Google Finance Style Time-Series Telemetry Chart */
.timeseries-chart-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 4px;
    overflow: visible;
}

.timeseries-chart-wrapper svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.ts-chart-tooltip {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    pointer-events: none;
    transform: translate(-50%, -100%);
    margin-top: -10px;
    z-index: 100;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.12s ease;
}

.ts-chart-tooltip.visible {
    opacity: 1;
}

/* Dashboard Split Grid (Recent Tx & Quick Plans) */
.dash-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dash-mini-tx-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-mini-tx-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.dash-mini-tx-item:hover {
    background: var(--bg-card);
    border-color: var(--primary-border);
}

.dash-quick-plan-card {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background 0.15s ease;
}

.dash-quick-plan-card:hover {
    background: var(--bg-card);
}

/* CARDS & FORMS */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-title);
    outline: none;
    transition: all 0.15s;
}

.form-input:focus {
    border-color: var(--border-focus);
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

.radio-group {
    display: flex;
    gap: 12px;
}

.radio-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-title);
    transition: all 0.15s;
}

.radio-pill input {
    accent-color: var(--primary);
}

/* PLANS SQUARE GRID */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.plan-card-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-title);
}

.plan-card-quota-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-card-subtle);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin: 8px 0;
    border: 1px solid var(--border-color);
}

.plan-card-quota-fill {
    height: 100%;
    background: linear-gradient(90deg, #E88EA5, #db2777);
    border-radius: var(--radius-pill);
    transition: width 0.3s ease;
}

.plan-token-box {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: monospace;
    font-size: 13px;
    color: var(--text-title);
}

.token-text {
    font-family: monospace;
    letter-spacing: 0.5px;
}

.plan-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* PLAN CARD 3-DOTS MENU & PLAN ID PILL */
.plan-id-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    font-family: monospace;
    border-radius: var(--radius-pill);
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.plan-dots-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s ease;
}

.plan-dots-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-color);
    color: var(--text-title);
}

.plan-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 100;
    min-width: 175px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.plan-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-title);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.plan-dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--primary-hover);
}

.plan-dropdown-item i {
    font-size: 13px;
    width: 14px;
    text-align: center;
}

/* CUSTOM SEARCHABLE DROPDOWN (NO FLAGS) */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown-trigger {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-title);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.custom-dropdown-trigger:hover {
    border-color: var(--border-focus);
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    z-index: 100;
    max-height: 280px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    contain: paint;
    transform: translateZ(0);
}

.custom-dropdown-search-box {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card-subtle);
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-dropdown-search-input {
    width: 100%;
    padding: 7px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-title);
    outline: none;
}

.custom-dropdown-options {
    overflow-y: auto;
    flex: 1;
    contain: content;
    scrollbar-width: thin;
    will-change: scroll-position;
}

.custom-dropdown-option {
    padding: 9px 12px;
    font-size: 13px;
    color: var(--text-title);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.country-tag {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-card-subtle);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.custom-dropdown-option:hover {
    background: var(--primary-light);
    color: var(--primary-hover);
}

.custom-dropdown-option.selected {
    background: var(--primary-light);
    color: var(--primary-hover);
    font-weight: 700;
}

/* PROXY TEXTAREA */
.proxy-textarea {
    width: 100%;
    min-height: 400px;
    height: 420px;
    padding: 16px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    color: var(--text-title);
    outline: none;
    resize: none;
    white-space: pre;
    overflow-x: auto;
    overflow-y: auto;
    line-height: 1.8;
}

/* TABLES */
.tx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.tx-table th {
    background: var(--bg-card-subtle);
    padding: 11px 14px;
    text-align: left;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.tx-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-title);
}

/* STANDALONE AUTH SCREEN FOR DASHBOARD.NYANPROXY.COM */
.auth-standalone-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: calc(100vh - 72px);
}

.auth-standalone-box {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-hover);
}

.auth-tabs-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
}

.auth-tab-btn.active {
    color: var(--primary-hover);
    border-bottom-color: var(--primary);
}

/* MODAL OVERLAY */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-hover);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-box-wide {
    max-width: 1020px;
    width: 95vw;
}

.modal-generator-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
}

@media (max-width: 860px) {
    .modal-generator-grid {
        grid-template-columns: 1fr;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--danger);
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 4px;
}

.modal-header p {
    font-size: 13px;
    color: var(--text-muted);
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-title);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    z-index: 1000;
    animation: slideUp 0.25s ease;
}

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

.hidden {
    display: none !important;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.admin-user-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
    background: var(--bg-card);
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.admin-user-lists-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.sidebar-footer {
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

.tx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    white-space: nowrap;
}

/* =============================================================
   RESPONSIVE DESIGN (MOBILE, TABLET, DESKTOP & TV)
   ============================================================= */

/* TABLETS & SMALL LAPTOPS (<= 992px) */
@media (max-width: 992px) {
    .navbar {
        padding: 0 20px;
    }
    .nav-center-links {
        display: none !important;
    }
    .hero-title {
        font-size: 38px;
        letter-spacing: -0.8px;
    }
    .hero-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 18px;
    }
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 18px;
    }
    .dashboard-view {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 10px 16px;
        position: sticky;
        top: 72px;
        z-index: 100;
    }
    .sidebar-footer {
        display: none;
    }
    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }
    .sidebar-menu::-webkit-scrollbar {
        display: none;
    }
    .sidebar-item {
        white-space: nowrap;
        flex-shrink: 0;
        width: auto;
        padding: 8px 14px;
        font-size: 13px;
        border-radius: var(--radius-pill);
        margin: 0 !important;
    }
    .dash-content {
        padding: 24px 20px;
    }
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .dash-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .dash-split-grid {
        grid-template-columns: 1fr;
    }
    .admin-user-details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .admin-user-lists-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* SMARTPHONES & MOBILE SCREENS (<= 640px) */
@media (max-width: 640px) {
    /* Navbar */
    .navbar {
        height: 60px;
        padding: 0 12px;
    }
    .brand-logo-img {
        height: 32px;
        max-height: 34px;
    }
    .brand-text {
        font-size: 16px;
    }
    .nav-right {
        gap: 6px;
    }
    .theme-toggle-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .btn-sm {
        padding: 5px 9px;
        font-size: 11px;
    }
    #navUserBadge {
        max-width: 82px;
        padding: 4px 8px;
        font-size: 11px;
    }
    #navUsernameDisplay {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        max-width: 48px;
        vertical-align: bottom;
    }
    .balance-pill {
        padding: 4px 8px;
        font-size: 11px;
        gap: 4px;
    }
    #navDashboardBtn {
        padding: 5px 8px;
        font-size: 11px;
    }

    /* Landing Hero */
    .hero-section {
        padding: 32px 14px 24px;
    }
    .hero-badge {
        font-size: 11px;
        padding: 5px 12px;
        white-space: normal;
        line-height: 1.4;
        margin-bottom: 16px;
    }
    .hero-title {
        font-size: 26px;
        letter-spacing: -0.4px;
        line-height: 1.22;
        margin-bottom: 14px;
    }
    .hero-desc {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 22px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-bottom: 30px;
    }
    .hero-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .hero-metrics {
        grid-template-columns: 1fr 1fr;
        padding: 12px 8px;
        gap: 8px;
    }
    .metric-number {
        font-size: 20px;
    }
    .metric-label {
        font-size: 10px;
    }

    /* Landing Sections */
    .section {
        padding: 44px 14px;
    }
    .section-title {
        font-size: 22px;
    }
    .section-subtitle {
        font-size: 13px;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .feature-card {
        padding: 18px 16px;
    }

    /* Pricing Calculator */
    .pricing-card-wrap {
        padding: 20px 14px;
    }
    .pricing-rate-large {
        font-size: 34px;
    }
    .calc-output-row {
        flex-direction: column;
        gap: 6px;
        padding: 10px 12px;
        text-align: center;
    }

    /* Dashboard Sidebar */
    .sidebar {
        top: 60px;
        padding: 8px 10px;
    }
    .sidebar-item {
        padding: 7px 11px;
        font-size: 12px;
        gap: 6px;
    }

    /* Dashboard Content */
    .dash-content {
        padding: 16px 12px 36px;
    }
    .pane-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 16px;
    }
    .pane-title-row h1 {
        font-size: 20px;
    }
    .pane-title-row p {
        font-size: 12px;
    }
    .pane-title-row .btn {
        width: 100%;
        justify-content: center;
    }

    /* Plans Grid */
    .dash-metrics-grid {
        grid-template-columns: 1fr;
    }
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .plan-card {
        padding: 16px 14px;
    }
    .plan-card-name {
        font-size: 15px;
    }
    .plan-token-box {
        flex-wrap: wrap;
        gap: 8px;
    }
    .token-text {
        font-size: 12px;
    }
    .plan-card-actions {
        flex-direction: row;
        gap: 8px;
    }
    .plan-card-actions .btn {
        flex: 1;
        justify-content: center;
    }

    /* Forms on Mobile (Prevent iOS Safari auto-zoom with 16px font) */
    .form-input {
        font-size: 16px !important;
        padding: 10px 12px;
    }
    .radio-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .radio-pill {
        flex: 1;
        min-width: 120px;
        text-align: center;
        padding: 9px 12px;
    }

    /* Modals on Mobile */
    .modal-overlay {
        padding: 6px;
    }
    .modal-box {
        padding: 18px 14px;
        max-height: 96vh;
        border-radius: var(--radius-sm);
        width: 100%;
    }
    .modal-header h2 {
        font-size: 18px;
    }
    .modal-header p {
        font-size: 12px;
    }
    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 22px;
        padding: 6px;
    }
    .proxy-textarea {
        min-height: 190px;
        height: 220px;
        font-size: 11px;
        padding: 10px;
        line-height: 1.5;
    }
    .custom-dropdown-menu {
        max-height: 220px;
    }

    /* Standalone Auth Screen */
    .auth-standalone-container {
        padding: 18px 10px;
        min-height: calc(100vh - 60px);
    }
    .auth-standalone-box {
        padding: 22px 16px;
        width: 100%;
        max-width: 100%;
        border-radius: var(--radius-sm);
    }
    .auth-tab-btn {
        font-size: 13px;
        padding: 9px;
    }

    /* Admin Panel */
    .dash-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .dash-split-grid {
        grid-template-columns: 1fr;
    }
    .admin-user-details-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    /* Footer */
    .footer {
        padding: 24px 14px;
        font-size: 12px;
    }
}

/* TV & ULTRA-WIDE SCREENS (>= 1600px) */
@media (min-width: 1600px) {
    .section,
    .hero-section {
        max-width: 1440px;
        margin-left: auto;
        margin-right: auto;
    }
    .navbar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        margin: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }
}


/* =============================================================
   SUPPORT SECTION CARDS
   ============================================================= */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.support-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.support-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.support-icon {
    font-size: 36px;
    color: var(--primary-hover);
    margin-bottom: 16px;
}
.support-card.discord-card .support-icon {
    color: #5865F2;
}
.support-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-title);
}
.support-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
}
.support-card .btn {
    width: 100%;
}

/* =============================================================
   MODERN MULTI-COLUMN FOOTER (FlameProxies / LegionProxy Style)
   ============================================================= */
.modern-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 60px 24px 32px;
    color: var(--text-color);
    margin-top: auto;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
}
.footer-logo-row .brand-logo-img {
    height: 36px;
    width: auto;
}
.footer-logo-row .brand-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-title);
}
.footer-tagline {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 320px;
}
.footer-email-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-email-link:hover {
    color: var(--primary-hover);
}
.footer-social-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.footer-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.footer-social-btn.discord {
    background: #5865F2;
    color: #ffffff;
}
.footer-social-btn.discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}
.footer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.footer-status-pill:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}
.footer-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.footer-col-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-title);
    margin-bottom: 16px;
}
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links-list a {
    color: var(--text-muted);
    font-size: 13.5px;
    text-decoration: none;
    transition: color 0.2s, transform 0.15s;
    display: inline-block;
    cursor: pointer;
}
.footer-links-list a:hover {
    color: var(--primary-hover);
    transform: translateX(2px);
}

.footer-bottom-row {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}
.footer-crypto-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.crypto-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-title);
    letter-spacing: 0.3px;
}

/* =============================================================
   SYSTEM STATUS PAGE (/status)
   ============================================================= */
.status-view-container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}
.status-hero-header {
    text-align: center;
    margin-bottom: 28px;
}
.status-hero-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 8px;
}
.status-hero-header p {
    font-size: 15px;
    color: var(--text-muted);
}

.status-overall-banner {
    background: var(--bg-card);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(16, 185, 129, 0.08);
}
.status-banner-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.status-pulse-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 12px #10b981;
    position: relative;
    flex-shrink: 0;
}
.status-pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.4);
    animation: pulseGlow 2s infinite ease-out;
}
@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}
.status-banner-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-title);
}
.status-banner-subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 2px;
}
.status-banner-time {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'SF Mono', Consolas, Monaco, monospace;
}

.status-services-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.status-service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s;
    position: relative;
}
.status-service-card:hover {
    border-color: rgba(232, 142, 165, 0.4);
}
.status-service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.status-service-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-title);
}
.status-service-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    flex-shrink: 0;
}
.status-service-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}
.status-uptime-pct {
    font-size: 13px;
    color: var(--text-muted);
    font-family: 'SF Mono', Consolas, Monaco, monospace;
}
.status-operational-pill {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 3px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
}
.status-pill-danger {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
    padding: 3px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
}
.status-pill-warning {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #f59e0b;
    padding: 3px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
}

/* Status Banner Variants */
.status-overall-banner.status-banner-danger {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 4px 24px rgba(239, 68, 68, 0.15);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, var(--bg-card) 100%);
}
.status-overall-banner.status-banner-warning {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 4px 24px rgba(245, 158, 11, 0.15);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, var(--bg-card) 100%);
}

/* Pulse Dot Variants */
.status-pulse-dot.pulse-danger {
    background: #ef4444;
    box-shadow: 0 0 12px #ef4444;
}
.status-pulse-dot.pulse-danger::after {
    background: rgba(239, 68, 68, 0.45);
}
.status-pulse-dot.pulse-warning {
    background: #f59e0b;
    box-shadow: 0 0 12px #f59e0b;
}
.status-pulse-dot.pulse-warning::after {
    background: rgba(245, 158, 11, 0.45);
}

/* Service Dot Variants */
.status-service-dot.dot-danger {
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}
.status-service-dot.dot-warning {
    background: #f59e0b;
    box-shadow: 0 0 6px #f59e0b;
}

/* 90-Day Vertical Bars matching user screenshots media_1794656106608_00cc215f.png */
.status-bars-container {
    position: relative;
    margin-bottom: 6px;
}
.status-bars-track {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 38px;
    width: 100%;
}
.status-bar-pill {
    flex: 1;
    height: 34px;
    min-width: 2px;
    border-radius: 3px;
    background: #10b981;
    transition: transform 0.15s, background-color 0.15s;
    cursor: pointer;
}
.status-bar-pill:hover {
    background: #34d399;
    transform: scaleY(1.18);
}
.status-bar-pill.pill-outage {
    background: #ef4444;
}
.status-bar-pill.pill-outage:hover {
    background: #f87171;
    transform: scaleY(1.18);
}
.status-bar-pill.pill-degraded {
    background: #f59e0b;
}
.status-bar-pill.pill-degraded:hover {
    background: #fbbf24;
    transform: scaleY(1.18);
}
.status-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Tooltip on Hover matching user screenshot media_1794656137992_e03ab0e4.png */
.status-tooltip-bubble {
    position: absolute;
    bottom: calc(100% + 8px);
    background: #18181b;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    transform: translateX(-50%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 100;
    transition: opacity 0.15s;
}
.status-tooltip-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #18181b transparent transparent transparent;
}

/* Past Incidents Card */
.status-incidents-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 32px;
    box-shadow: var(--shadow-sm);
}
.status-incidents-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 12px;
}
.status-incidents-text {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =============================================================
   FREE TOOLS COMMON STYLING
   ============================================================= */
.tool-page-container {
    max-width: 950px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}
.tool-hero-header {
    text-align: center;
    margin-bottom: 32px;
}
.tool-hero-header .hero-badge {
    margin-bottom: 12px;
    display: inline-flex;
}
.tool-hero-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 10px;
}
.tool-hero-header p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* PROXY TESTER */
.tester-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.tester-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-muted);
}
.tester-formats-tip {
    font-size: 12px;
    color: var(--primary-hover);
    font-family: 'SF Mono', Consolas, Monaco, monospace;
}
.tester-textarea {
    width: 100%;
    min-height: 160px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    font-family: 'SF Mono', Consolas, Monaco, monospace;
    font-size: 13px;
    color: var(--text-title);
    resize: vertical;
    outline: none;
    line-height: 1.5;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.tester-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 142, 165, 0.15);
}
.tester-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
}
.tester-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 20px;
}
@media (max-width: 600px) {
    .tester-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.tester-stat-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}
.tester-stat-num {
    font-size: 24px;
    font-weight: 800;
    font-family: 'SF Mono', Consolas, Monaco, monospace;
    margin-bottom: 4px;
}
.tester-stat-num.alive { color: #10b981; }
.tester-stat-num.dead { color: #ef4444; }
.tester-stat-label {
    font-size: 11.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tester-results-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.tester-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}
.tester-table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.tester-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}
.tester-table th {
    background: var(--bg-input);
    padding: 12px 14px;
    font-weight: 700;
    color: var(--text-title);
    border-bottom: 1px solid var(--border-color);
}
.tester-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}
.tester-table tr:last-child td {
    border-bottom: none;
}
.tester-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
}
.tester-badge.alive {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.tester-badge.dead {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* WHAT'S MY IP */
.myip-main-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.myip-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-hover);
    margin-bottom: 10px;
}
.myip-address-display {
    font-size: 42px;
    font-weight: 800;
    font-family: 'SF Mono', Consolas, Monaco, monospace;
    color: var(--text-title);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    word-break: break-all;
}
@media (max-width: 600px) {
    .myip-address-display {
        font-size: 28px;
    }
}
.myip-actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.myip-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
@media (max-width: 768px) {
    .myip-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .myip-details-grid {
        grid-template-columns: 1fr;
    }
}
.myip-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.myip-info-icon {
    font-size: 20px;
    color: var(--primary-hover);
    margin-bottom: 4px;
}
.myip-info-label {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.myip-info-val {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-title);
}

.myip-cta-box {
    background: linear-gradient(135deg, rgba(232, 142, 165, 0.12) 0%, rgba(244, 114, 182, 0.08) 100%);
    border: 1px solid rgba(232, 142, 165, 0.3);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}
.myip-cta-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 8px;
}
.myip-cta-desc {
    font-size: 14.5px;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

/* =========================================================
   RESELLER PLAN & PROGRESS AESTHETICS
   ========================================================= */
.reseller-glow-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(232, 142, 165, 0.08) 0%, rgba(20, 20, 30, 0.95) 100%);
    border: 1px solid rgba(232, 142, 165, 0.3);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.reseller-progress-fill-glow {
    height: 100%;
    background: linear-gradient(90deg, #E88EA5, #f472b6, #fb7185, #f59e0b);
    background-size: 200% 100%;
    border-radius: 9999px;
    box-shadow: 0 0 16px rgba(232, 142, 165, 0.6);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: shimmerProgress 3s linear infinite;
}

@keyframes shimmerProgress {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
