/* ==========================================================================
   STORMVIEW EMBED API — DEEP BLUE, SKY & AMBER DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #10303d;
    --bg-card: rgba(8, 30, 39, 0.68);
    --bg-card-hover: rgba(12, 40, 52, 0.9);
    --bg-surface: #0c2530;
    --border: rgba(170, 220, 240, 0.14);
    --border-accent: rgba(98, 197, 226, 0.45);
    --border-glow: rgba(98, 197, 226, 0.6);

    --text: #eaf4f8;
    --text-muted: #9fb8c2;
    --text-dim: #7a949e;

    --accent: #62c5e2;
    --accent-glow: #8fdcf2;
    --accent-dark: #2f9fc4;
    --cyan: #e9b12c;
    --cyan-glow: #f5c766;
    --green: #22b98f;
    --green-glow: rgba(34, 185, 143, 0.2);
    --red: #f25977;
    --amber: #e9b12c;

    --sidebar-w: 270px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Atmospheric Mesh & Glows */
body::before {
    content: '';
    position: fixed;
    top: -200px;
    left: 15%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(98, 197, 226, 0.18) 0%, rgba(47, 159, 196, 0.06) 50%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    animation: aura-drift 18s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    bottom: -150px;
    right: 5%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(233, 177, 44, 0.12) 0%, rgba(98, 197, 226, 0.06) 50%, transparent 70%);
    filter: blur(90px);
    z-index: -1;
    pointer-events: none;
    animation: aura-drift-alt 22s ease-in-out infinite alternate;
}

@keyframes aura-drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 60px) scale(1.15); }
}

@keyframes aura-drift-alt {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-60px, -50px) scale(1.1); }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: rgba(170, 220, 240, 0.18);
    border-radius: 999px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Typography & Links */
a { color: var(--accent-glow); text-decoration: none; transition: color .15s ease; }
a:hover { color: #fff; text-decoration: none; }

code, .mono {
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    font-size: 13px;
}

/* ==========================================================================
   LAYOUT & SIDEBAR
   ========================================================================== */

.layout { display: flex; min-height: 100vh; position: relative; }

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: rgba(9, 32, 42, 0.86);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--border);
    padding: 24px 0 20px;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(170, 220, 240, 0.08);
    margin-bottom: 16px;
    text-decoration: none;
}

.logo-img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(98, 197, 226, 0.45);
    border: 1px solid rgba(98, 197, 226, 0.45);
    flex-shrink: 0;
    transition: transform .3s ease, box-shadow .3s ease;
}

.sidebar-logo:hover .logo-img {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 0 28px rgba(233, 177, 44, 0.6);
}

.sidebar-logo-text {
    display: flex;
    flex-direction: column;
}

.sidebar-brand-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #ffffff 35%, var(--accent-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-brand-badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--cyan);
}

.sidebar nav {
    flex: 1;
    padding: 0 12px;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 3px;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all .2s ease;
    position: relative;
}

.sidebar nav a::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: transparent;
    transition: all .2s ease;
}

.sidebar nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar nav a:hover::before {
    background: var(--accent-glow);
    box-shadow: 0 0 8px var(--accent);
}

.sidebar nav a.active {
    color: #fff;
    font-weight: 600;
    background: linear-gradient(90deg, rgba(98, 197, 226, 0.18) 0%, rgba(233, 177, 44, 0.05) 100%);
    border: 1px solid rgba(98, 197, 226, 0.32);
}

.sidebar nav a.active::before {
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.sidebar-footer {
    padding: 16px 20px 0;
    border-top: 1px solid rgba(170, 220, 240, 0.08);
    margin-top: auto;
}

.sidebar-status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: rgba(233, 177, 44, 0.1);
    border: 1px solid rgba(233, 177, 44, 0.28);
    border-radius: 999px;
    font-size: 11px;
    color: var(--cyan-glow);
    font-weight: 500;
}

.status-dot-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    animation: status-pulse 2s infinite ease-in-out;
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */

.main {
    min-width: 0;
    width: 100%;
    overflow-wrap: anywhere;
    margin-left: var(--sidebar-w);
    flex: 1;
    padding: 0 54px 100px;
    max-width: 1020px;
}

/* Hero Section */
.hero {
    padding: 72px 0 44px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
    position: relative;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(98, 197, 226, 0.12);
    border: 1px solid rgba(98, 197, 226, 0.32);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-glow);
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(98, 197, 226, 0.16);
}

.hero-pill-badge span.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan);
}

.hero-title-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.hero-logo-img {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 0 35px rgba(98, 197, 226, 0.45), 0 0 15px rgba(233, 177, 44, 0.3);
    border: 1.5px solid rgba(98, 197, 226, 0.45);
    flex-shrink: 0;
    animation: hero-logo-float 4s ease-in-out infinite alternate;
}

@keyframes hero-logo-float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

.hero h1 {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff 15%, #8fdcf2 60%, #f5c766 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 680px;
    line-height: 1.65;
    margin-bottom: 28px;
}

/* Feature Quick Highlight Cards */
.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 10px;
}

.highlight-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    transition: all .25s ease;
}

.highlight-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.highlight-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(98, 197, 226, 0.16);
    color: var(--accent-glow);
}

.highlight-card h4 {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
}

.highlight-card p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
}

/* Info Banner */
.info-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, rgba(98, 197, 226, 0.12) 0%, rgba(233, 177, 44, 0.08) 100%);
    border: 1px solid rgba(98, 197, 226, 0.32);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    margin-bottom: 36px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
}

.info-banner-icon {
    color: var(--accent-glow);
    flex-shrink: 0;
    margin-top: 2px;
    filter: drop-shadow(0 0 8px rgba(98, 197, 226, 0.45));
}

.info-banner-content h4 {
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 5px;
}

.info-banner-content p {
    color: var(--text-muted);
    font-size: 13.5px;
    margin: 0;
    line-height: 1.55;
}

/* ==========================================================================
   SECTIONS & GENERAL COMPONENTS
   ========================================================================== */

section { margin-bottom: 64px; scroll-margin-top: 32px; }

section h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.6px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

section h2::before {
    content: '';
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--cyan) 100%);
    border-radius: 4px;
}

section h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 28px 0 12px;
    color: var(--accent-glow);
    display: flex;
    align-items: center;
    gap: 8px;
}

p, li { color: var(--text-muted); margin-bottom: 12px; font-size: 14.5px; }
ul { padding-left: 20px; }

/* Cards & Notes */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    transition: border-color .2s ease;
}

.card:hover {
    border-color: rgba(170, 220, 240, 0.22);
}

.note {
    background: rgba(98, 197, 226, 0.1);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 14px;
    border-top: 1px solid rgba(98, 197, 226, 0.18);
    border-right: 1px solid rgba(98, 197, 226, 0.18);
    border-bottom: 1px solid rgba(98, 197, 226, 0.18);
}
.note strong { color: var(--accent-glow); }

/* Endpoints */
.endpoint {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(7, 26, 34, 0.85);
    border: 1px solid rgba(170, 220, 240, 0.13);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin: 18px 0;
    color: var(--text);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.method {
    background: rgba(34, 185, 143, 0.16);
    color: #3fd1a4;
    border: 1px solid rgba(34, 185, 143, 0.32);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(34, 185, 143, 0.18);
}

/* ==========================================================================
   INTERACTIVE BUILDER & PLAYER FRAME MOCKUP
   ========================================================================== */

.builder-preview-top {
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.preview-size-toggle {
    display: inline-flex;
    background: rgba(9, 32, 42, 0.9);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.preview-size-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-muted);
    transition: all .2s ease;
}

.preview-size-btn svg { width: 15px; height: 15px; }

.preview-size-btn:hover { color: #fff; }

.preview-size-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-dark) 0%, #1b7f9f 100%);
    box-shadow: 0 2px 10px rgba(98, 197, 226, 0.4);
}

/* macOS Browser Window Frame */
.browser-window-frame {
    width: 100%;
    max-width: min(960px, 100%);
    margin: 0 auto;
    border-radius: var(--radius-lg);
    background: #0a2029;
    border: 1px solid rgba(170, 220, 240, 0.16);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(98, 197, 226, 0.12);
    overflow: hidden;
    transition: max-width .35s cubic-bezier(0.4, 0, 0.2, 1);
}

.browser-header-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: rgba(18, 32, 42, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.window-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.window-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.browser-address-bar {
    flex: 1;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 5px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    color: var(--cyan-glow);
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.browser-address-bar svg { flex-shrink: 0; color: #9fb2bc; }

.preview-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 280px;
    background: #000;
    overflow: hidden;
}

/* Mobile Portrait Mode */
.browser-window-frame--mobile {
    max-width: min(390px, 100%);
    border-radius: 36px;
    border: 3px solid rgba(98, 197, 226, 0.35);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 50px rgba(233, 177, 44, 0.2);
}

.browser-window-frame--mobile .browser-header-bar {
    padding: 14px 20px 10px;
}

.browser-window-frame--mobile .preview-wrap {
    aspect-ratio: 9 / 16;
    border-radius: 0 0 32px 32px;
}

.preview-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}

/* Preview Standby & Mock Screen */
.preview-mock-screen {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    background: radial-gradient(ellipse at center, #10303d 0%, #08080f 85%);
}

.preview-mock-logo-wrap {
    position: relative;
    margin-bottom: 18px;
}

.preview-mock-logo-wrap::before {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent), var(--cyan), var(--accent));
    filter: blur(14px);
    opacity: 0.7;
    animation: spin 10s linear infinite;
    z-index: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.preview-mock-logo {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(98, 197, 226, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.preview-mock-badge {
    color: var(--cyan-glow);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-mock-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.preview-mock-desc {
    color: #a7b6be;
    font-size: 14px;
    max-width: 440px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.preview-mock-params {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 6px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #e4e4e7;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Audio Visualizer Waves (CSS animation) */
.audio-visualizer {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 20px;
}

.audio-bar {
    width: 3px;
    height: 6px;
    background: linear-gradient(180deg, var(--cyan) 0%, var(--accent) 100%);
    border-radius: 99px;
    animation: bar-pulse 1.2s infinite ease-in-out;
}

.audio-bar:nth-child(1) { animation-delay: 0.1s; }
.audio-bar:nth-child(2) { animation-delay: 0.3s; }
.audio-bar:nth-child(3) { animation-delay: 0.2s; }
.audio-bar:nth-child(4) { animation-delay: 0.4s; }
.audio-bar:nth-child(5) { animation-delay: 0.15s; }

@keyframes bar-pulse {
    0%, 100% { height: 4px; }
    50% { height: 18px; }
}

/* ==========================================================================
   FORM CONTROLS & BUTTONS
   ========================================================================== */

.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    color: #dbe9ef;
}

.form-group label svg { color: var(--accent-glow); width: 14px; height: 14px; }

.form-input-wrap {
    position: relative;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 11px 14px;
    background: #0a2530;
    border: 1px solid rgba(170, 220, 240, 0.16);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    transition: all .2s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(98, 197, 226, 0.2), 0 0 15px rgba(98, 197, 226, 0.22);
    background: #0c2a35;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all .2s ease;
    letter-spacing: -0.2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-dark) 0%, #1b7f9f 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(98, 197, 226, 0.35);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(98, 197, 226, 0.5);
    filter: brightness(1.08);
}
.btn-primary:active { transform: translateY(1px); }

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    backdrop-filter: blur(10px);
}
.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(98, 197, 226, 0.14);
    box-shadow: 0 0 15px rgba(98, 197, 226, 0.2);
}

.btn-group { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* Status Badges */
.avail-badges { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.avail-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.avail-yes {
    background: rgba(34, 185, 143, 0.14);
    color: #3fd1a4;
    border: 1px solid rgba(34, 185, 143, 0.35);
    box-shadow: 0 0 10px rgba(34, 185, 143, 0.18);
}
.avail-no {
    background: rgba(242, 89, 119, 0.14);
    color: #fb7185;
    border: 1px solid rgba(242, 89, 119, 0.35);
}
.avail-pending {
    background: rgba(233, 177, 44, 0.14);
    color: var(--cyan-glow);
    border: 1px solid rgba(233, 177, 44, 0.35);
}

/* ==========================================================================
   CODE BLOCKS & TERMINALS
   ========================================================================== */

.code-block {
    position: relative;
    margin: 18px 0;
    background: #081c25;
    border: 1px solid rgba(170, 220, 240, 0.14);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.code-header-lang {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--cyan-glow);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.code-block pre {
    padding: 16px 20px;
    overflow-x: auto;
    color: #e6edf2;
    line-height: 1.6;
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s ease;
}

.copy-btn svg { width: 13px; height: 13px; }

.copy-btn:hover {
    color: #fff;
    border-color: var(--accent);
    background: rgba(98, 197, 226, 0.16);
}

.copy-btn.copied {
    color: #3fd1a4;
    border-color: rgba(34, 185, 143, 0.4);
    background: rgba(34, 185, 143, 0.15);
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(170, 220, 240, 0.1);
}

th {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, 0.03); }

td code {
    color: var(--accent-glow);
    background: rgba(98, 197, 226, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12.5px;
}

/* JSON Output Response */
.json-response {
    background: #081c25;
    border: 1px solid rgba(170, 220, 240, 0.14);
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 12.5px;
    color: #a7b6be;
    margin-top: 16px;
    white-space: pre-wrap;
    word-break: break-all;
    display: none;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.55;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
    .hero-highlights { grid-template-columns: 1fr; }
    .form-grid-2col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main { margin-left: 0; padding: 0 20px 80px; }
    .hero { padding: 48px 0 32px; }
    .hero h1 { font-size: 34px; }
    .hero-title-wrap { gap: 14px; }
    .hero-logo-img { width: 50px; height: 50px; }
}

/* ==========================================================================
   SPLASH LOADER
   ========================================================================== */

body.is-loading { overflow: hidden; }

.splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: radial-gradient(ellipse at center, #10303d 0%, #081a22 82%);
    transition: opacity .6s ease, visibility .6s ease;
}

.splash.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: splash-enter .7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.splash-logo-wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    margin-bottom: 22px;
}

.splash-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    border-right-color: var(--cyan);
    filter: drop-shadow(0 0 6px rgba(98, 197, 226, 0.55));
    animation: splash-spin 1.1s linear infinite;
}

.splash-logo {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    object-fit: cover;
    border: 1px solid rgba(98, 197, 226, 0.45);
    box-shadow: 0 0 40px rgba(98, 197, 226, 0.45);
    animation: splash-pulse 2.2s ease-in-out infinite;
}

.splash-brand {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 15%, #8fdcf2 65%, #f5c766 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.splash-sub {
    margin-top: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.splash-bar {
    width: 220px;
    height: 3px;
    margin-top: 26px;
    background: rgba(170, 220, 240, 0.14);
    border-radius: 999px;
    overflow: hidden;
}

.splash-bar-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    box-shadow: 0 0 12px rgba(98, 197, 226, 0.6);
    transition: width .2s ease;
}

.splash-percent {
    margin-top: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

@keyframes splash-spin {
    to { transform: rotate(360deg); }
}

@keyframes splash-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.045); }
}

@keyframes splash-enter {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
