:root {
    --bg-main: #070a12;
    --bg-sidebar: #05070d;
    --bg-card: rgba(15, 22, 36, 0.7);
    --bg-card-hover: rgba(22, 32, 54, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-active: rgba(99, 102, 241, 0.5);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-primary: #6366f1;
    --accent-primary-hover: #4f46e5;
    --accent-success: #10b981;
    --accent-danger: #ef4444;
    --accent-warning: #f59e0b;
    --accent-cyan: #06b6d4;

    --ok: #16a34a;
    --ok-soft: #f1fbf5;
    --ok-border: #cdebd7;
    --err: #dc2626;
    --err-soft: #fef5f4;
    --err-border: #f7cfcb;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
}

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

body {
    font-family: 'Plus Jakarta Sans', 'Inter', 'Noto Color Emoji', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

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

/* Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.09) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(6, 182, 212, 0.07) 0%, transparent 40%);
}

/* ==========================================================================
   OFFICIAL SHOWCASE LANDING PAGE (WHEN CLOUDFLARE IS OFF)
   ========================================================================== */
.main-public-view {
    min-height: 100vh;
}

.landing-nav {
    border-bottom: 1px solid var(--border-color);
    background: rgba(7, 10, 18, 0.85);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.landing-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.landing-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.landing-nav-links a:hover {
    color: var(--text-primary);
}

.landing-hero {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 24px 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 99px;
    color: #a5b4fc;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 720px;
    line-height: 1.6;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 900px;
}

.hero-metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    backdrop-filter: blur(8px);
}

.hero-metric-val {
    font-size: 26px;
    font-weight: 800;
    color: #38bdf8;
    font-family: 'JetBrains Mono', monospace;
}

.hero-metric-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.landing-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

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

.landing-section-header h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.landing-section-header p {
    font-size: 15px;
    color: var(--text-secondary);
}

.landing-feature-card {
    padding: 24px;
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 16px;
}

.landing-feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.landing-feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.landing-code-box {
    background: #040711;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.code-box-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.landing-footer {
    border-top: 1px solid var(--border-color);
    padding: 32px 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   SIDEBAR & DASHBOARD CORE STYLES
   ========================================================================== */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-glow);
}

.brand-text h2 {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin: 16px 8px 8px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.18);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.35);
}

.service-status-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

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

.pulse-green {
    background: #10b981;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4338ca;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* Main Content */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.top-header {
    height: 75px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: rgba(7, 10, 18, 0.75);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-title h1 {
    font-size: 18px;
    font-weight: 800;
}

.header-title p {
    font-size: 12px;
    color: var(--text-secondary);
}

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

.content-wrapper {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Tab Views */
.tab-view {
    display: none;
    flex-direction: column;
    gap: 24px;
}

.tab-view.active {
    display: flex;
}

/* Grid & Cards */
.grid-cards-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.grid-cards-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

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

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-active);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.icon-cyan { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.icon-green { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.icon-purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.icon-yellow { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.stat-info h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    margin: 4px 0;
}

.stat-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.section-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 16px;
    font-weight: 700;
}

.section-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   ORIGINAL CLOUDFLARE EDITOR FORM STYLES (100% PERSIS REPO)
   ========================================================================== */
.cf-master-toggle-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cf-editor-card {
    background: #0d121f;
    border: 1px solid var(--border-color);
    max-height: 800px;
    overflow-y: auto;
}

.app-header-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.app-header__icon-mini {
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml;utf8,%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2048%2048%22%3E%3Ccircle%20cx%3D%2224%22%20cy%3D%2224%22%20r%3D%2223.4815%22%20style%3D%22fill%3A%20%239bca3e%3B%22/%3E%3Cpolyline%20points%3D%2217.453%2024.9841%2021.7183%2030.4504%2030.2076%2016.8537%22%20style%3D%22fill%3A%20none%3B%20stroke%3A%20%23fff%3B%20stroke-linecap%3A%20round%3B%20stroke-linejoin%3A%20round%3B%20stroke-width%3A%204px%3B%22/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.cf-editor-hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 12px 0;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.form-row > label {
    min-width: 6.5rem;
    max-width: 10rem;
    margin-bottom: 0;
    font-weight: 500;
    font-size: 12px;
    color: var(--text-secondary);
}

.form-row > .control {
    flex: 1;
}

.section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.status-block {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}

.status-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.status-block-header strong {
    font-size: 13px;
}

.status-radio-label {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.status-ok {
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.35) !important;
}

.status-error {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.35) !important;
}

.status-ok .status-block-header strong::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    background: var(--ok);
}

.status-error .status-block-header strong::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    background: var(--err);
}

textarea.compact {
    min-height: 60px;
    resize: vertical;
}

.cf-preview-card {
    background: #0f1624;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.preview-header-bar {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.preview-inner-canvas {
    background: #fff;
    color: #404040;
    flex-grow: 1;
    overflow-y: auto;
    font-family: system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;
}

/* Category Filter Tabs */
.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.cat-btn {
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

/* ==========================================================================
   API FLOW SELECTOR (PLATFORM -> MODULE) & CATEGORY TABS
   ========================================================================== */
.api-flow-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.flow-pill {
    background: #101522;
    border: 1px solid #20293d;
    color: #94a3b8;
    padding: 7px 18px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.flow-pill:hover {
    background: #182033;
    border-color: #5865f2;
    color: #fff;
}

.flow-pill.active {
    background: #5865f2;
    border-color: #5865f2;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(88, 101, 242, 0.45);
}

.flow-arrow {
    color: #475569;
    font-size: 13px;
    font-weight: bold;
}

.cat-btn {
    background: #111726;
    border: 1px solid #232d45;
    color: #94a3b8;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cat-btn:hover {
    background: #1a2438;
    border-color: #5865f2;
    color: #f8fafc;
}

.cat-btn.active {
    background: #5865f2;
    color: #ffffff;
    border-color: #5865f2;
    box-shadow: 0 0 16px rgba(88, 101, 242, 0.5);
}

.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

/* Data Table */
.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    text-align: left;
    padding: 12px 14px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

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

/* Method Badges */
.badge-method {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.method-GET { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.method-POST { background: rgba(59, 130, 246, 0.18); color: #60a5fa; }
.method-PATCH { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }
.method-DELETE { background: rgba(239, 68, 68, 0.18); color: #f87171; }
.method-PUT { background: rgba(168, 85, 247, 0.18); color: #c084fc; }

/* Status Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
}

.badge-owner { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-pro { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; }

/* Switch Toggle UI */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #10b981;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-primary-hover);
}

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

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

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

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: #0f1624;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 480px;
    max-width: 90vw;
    padding: 24px;
    box-shadow: var(--shadow-subtle);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

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

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input, .form-group select, .form-group textarea,
.form-control, .form-select {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus,
.form-control:focus, .form-select:focus {
    border-color: var(--accent-primary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.key-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #040711;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    word-break: break-all;
}

/* ==========================================================================
   SPYGOD ALL-IN-ONE TOOLS 2-COLUMN LOGIN PORTAL (OBSIDIAN THEME)
   ========================================================================== */
.spygod-login-card {
    width: 1040px;
    max-width: 95vw;
    background: #08080a;
    border: 1px solid #1c1c24;
    border-radius: 24px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.98), 0 0 40px rgba(255, 255, 255, 0.03);
    padding: 38px 42px;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 40px;
    position: relative;
    animation: spygodScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

@keyframes spygodScaleUp {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* LEFT COLUMN: HERO SHOWCASE */
.spygod-hero-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.spygod-brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.spygod-logo-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #121218;
    border: 1px solid #272732;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.spygod-logo-badge .material-symbols-rounded {
    font-size: 22px;
}

.spygod-brand-info {
    display: flex;
    flex-direction: column;
}

.spygod-brand-name {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    line-height: 1.1;
}

.spygod-brand-tag {
    font-size: 9px;
    font-weight: 700;
    color: #71717a;
    letter-spacing: 1.2px;
}

.spygod-hero-badge {
    display: inline-block;
    background: #111116;
    border: 1px solid #24242e;
    color: #e4e4e7;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
    width: fit-content;
}

.spygod-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.spygod-hero-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
    max-width: 440px;
    margin-bottom: 22px;
}

/* 6 Feature Cards Grid */
.spygod-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}

.spygod-feat-card {
    background: #0d0d12;
    border: 1px solid #1a1a24;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: all 0.2s ease;
}

.spygod-feat-card:hover {
    border-color: #3f3f4e;
    background: #12121a;
    transform: translateY(-1px);
}

.feat-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #161620;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.feat-icon-box .material-symbols-rounded {
    font-size: 16px;
}

.feat-content h4 {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.feat-content p {
    font-size: 10px;
    color: #71717a;
    line-height: 1.35;
}

/* Bottom Stats Bar */
.spygod-stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #1a1a24;
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-ico {
    font-size: 16px;
    color: #a1a1aa;
}

.stat-main {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    display: block;
}

.stat-sub {
    font-size: 9px;
    color: #71717a;
    display: block;
}

.stat-divider {
    width: 1px;
    height: 20px;
    background: #242430;
}

.spygod-hero-footer {
    font-size: 11px;
    color: #52525b;
}

/* RIGHT COLUMN: AUTHENTICATION CARD */
.spygod-auth-col {
    background: #0d0d12;
    border: 1px solid #1e1e28;
    border-radius: 20px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.spygod-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.spygod-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fff;
}

.spygod-auth-header {
    margin-bottom: 22px;
}

.auth-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.4px;
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 13px;
    color: #71717a;
}

.spygod-input-group {
    margin-bottom: 12px;
}

.spygod-input-box {
    background: #13131a;
    border: 1px solid #232330;
    border-radius: 10px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.spygod-input-box:focus-within {
    border-color: #e4e4e7;
    background: #171722;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

.spygod-input-box .input-icon {
    font-size: 18px;
    color: #71717a;
}

.spygod-input-box input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    padding: 11px 0;
    font-size: 13px;
    outline: none;
    font-family: inherit;
}

.spygod-input-box input::placeholder {
    color: #52525b;
}

.btn-input-eye {
    background: transparent;
    border: none;
    color: #71717a;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 18px;
    transition: color 0.15s;
}

.btn-input-eye:hover {
    color: #fff;
}

.spygod-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0 16px 0;
    font-size: 12px;
    color: #71717a;
}

.spygod-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.spygod-checkbox-label input[type="checkbox"] {
    accent-color: #ffffff;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    cursor: pointer;
}

.spygod-forgot-link {
    font-size: 12px;
    color: #71717a;
    text-decoration: none;
    transition: color 0.15s;
}

.spygod-forgot-link:hover {
    color: #e4e4e7;
    text-decoration: underline;
}

.spygod-submit-btn {
    width: 100%;
    padding: 11px 20px;
    border-radius: 10px;
    background: #ffffff;
    color: #09090b;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.spygod-submit-btn:hover {
    background: #e4e4e7;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.spygod-submit-btn svg {
    stroke: #09090b;
}

.spygod-bottom-branding {
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.branding-title {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.branding-sub {
    font-size: 10px;
    font-weight: 500;
    color: #71717a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.branding-sub svg {
    stroke: #a1a1aa;
}

/* Dedicated Developer Key Modal Card */
.spygod-dev-card {
    width: 420px;
    max-width: 92vw;
    background: #0d0d12;
    border: 1px solid #1e1e28;
    border-radius: 20px;
    padding: 34px 30px;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95);
    animation: spygodScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Feedback Alert Boxes */
.login-feedback-box {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.login-feedback-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.login-feedback-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

/* Shake Animation on error */
.shake-error {
    animation: shake-anim 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake-anim {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

@media (max-width: 900px) {
    .spygod-login-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    .spygod-hero-col {
        display: none;
    }
}

