/* ================================================================
   LIQUID GLASS DESIGN SYSTEM - Ultra Premium API Management Panel
   Full glassmorphism + aurora animations + micro-interactions
================================================================ */

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

/* ================================================================
   THEME 1: iOS DARK OLED - Apple Liquid Glass
================================================================ */
:root, [data-theme="ios-oled"] {
    --bg-base:          #000000;
    --bg-surface:       #0a0c14;
    --bg-glass:         rgba(255, 255, 255, 0.04);
    --bg-glass-hover:   rgba(255, 255, 255, 0.08);
    --bg-glass-input:   rgba(255, 255, 255, 0.05);
    --bg-modal:         rgba(10, 12, 24, 0.92);

    --border-glass:       rgba(255, 255, 255, 0.10);
    --border-glass-hover: rgba(255, 255, 255, 0.28);
    --border-glow:        rgba(0, 122, 255, 0.5);

    --accent:           #007aff;
    --accent-glow:      rgba(0, 122, 255, 0.4);
    --accent-gradient:  linear-gradient(135deg, #007aff 0%, #5e5ce6 100%);
    --accent-secondary: #5e5ce6;

    --ios-green:  #30d158;
    --ios-amber:  #ffd60a;
    --ios-red:    #ff453a;
    --ios-teal:   #64d2ff;

    --text-primary:   #ffffff;
    --text-secondary: rgba(255,255,255,0.55);
    --text-tertiary:  rgba(255,255,255,0.30);

    --font-heading: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    --font-body:    -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    --card-radius: 22px;
    --card-border: 1px solid var(--border-glass);
    --card-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    --card-clip:   none;
    --btn-radius:  14px;
    --radius-xl:   22px;
    --radius-md:   14px;
    --radius-sm:   10px;

    --aurora-1: rgba(0, 122, 255, 0.22);
    --aurora-2: rgba(94, 92, 230, 0.18);
    --aurora-3: rgba(48, 209, 88, 0.08);
}

/* ================================================================
   THEME 2: CYBERPUNK HUD
================================================================ */
[data-theme="cyberpunk"] {
    --bg-base:          #06020c;
    --bg-surface:       #0e041c;
    --bg-glass:         rgba(244, 63, 94, 0.04);
    --bg-glass-hover:   rgba(244, 63, 94, 0.08);
    --bg-glass-input:   rgba(16, 5, 30, 0.7);
    --bg-modal:         rgba(12, 4, 24, 0.95);

    --border-glass:       rgba(244, 63, 94, 0.25);
    --border-glass-hover: rgba(6, 182, 212, 0.55);
    --border-glow:        rgba(6, 182, 212, 0.6);

    --accent:           #f43f5e;
    --accent-glow:      rgba(244, 63, 94, 0.5);
    --accent-gradient:  linear-gradient(135deg, #f43f5e 0%, #a855f7 50%, #06b6d4 100%);
    --accent-secondary: #06b6d4;

    --ios-green: #00ffaa;
    --ios-amber: #f59e0b;
    --ios-red:   #f43f5e;
    --ios-teal:  #00e5ff;

    --text-primary:   #ffffff;
    --text-secondary: rgba(179, 157, 219, 0.8);
    --text-tertiary:  rgba(126, 87, 194, 0.7);

    --font-heading: 'JetBrains Mono', monospace;
    --font-body:    'Inter', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    --card-radius: 4px;
    --card-border: 1px solid rgba(244, 63, 94, 0.35);
    --card-shadow: 0 0 30px rgba(244, 63, 94, 0.12), inset 0 0 20px rgba(6, 182, 212, 0.04);
    --card-clip:   polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    --btn-radius:  4px;
    --radius-xl:   8px;
    --radius-md:   4px;
    --radius-sm:   4px;

    --aurora-1: rgba(244, 63, 94, 0.2);
    --aurora-2: rgba(168, 85, 247, 0.15);
    --aurora-3: rgba(6, 182, 212, 0.1);
}

/* ================================================================
   THEME 3: MATRIX TERMINAL
================================================================ */
[data-theme="emerald"] {
    --bg-base:          #010804;
    --bg-surface:       #03140a;
    --bg-glass:         rgba(0, 255, 102, 0.03);
    --bg-glass-hover:   rgba(0, 255, 102, 0.07);
    --bg-glass-input:   rgba(2, 18, 8, 0.8);
    --bg-modal:         rgba(3, 16, 8, 0.97);

    --border-glass:       rgba(0, 255, 102, 0.20);
    --border-glass-hover: rgba(0, 255, 102, 0.55);
    --border-glow:        rgba(0, 255, 102, 0.6);

    --accent:           #00ff66;
    --accent-glow:      rgba(0, 255, 102, 0.45);
    --accent-gradient:  linear-gradient(135deg, #00ff66 0%, #059669 100%);
    --accent-secondary: #34d399;

    --ios-green: #00ff66;
    --ios-amber: #fbbf24;
    --ios-red:   #ff3366;
    --ios-teal:  #00ffcc;

    --text-primary:   #e6ffed;
    --text-secondary: rgba(74, 222, 128, 0.75);
    --text-tertiary:  rgba(22, 101, 52, 0.9);

    --font-heading: 'JetBrains Mono', monospace;
    --font-body:    'JetBrains Mono', monospace;
    --font-mono:    'JetBrains Mono', monospace;

    --card-radius: 2px;
    --card-border: 1px solid rgba(0, 255, 102, 0.25);
    --card-shadow: 0 0 20px rgba(0, 255, 102, 0.08), inset 0 0 12px rgba(0, 255, 102, 0.03);
    --card-clip:   none;
    --btn-radius:  2px;
    --radius-xl:   6px;
    --radius-md:   2px;
    --radius-sm:   2px;

    --aurora-1: rgba(0, 255, 102, 0.15);
    --aurora-2: rgba(0, 255, 204, 0.10);
    --aurora-3: rgba(52, 211, 153, 0.08);
}

/* ================================================================
   THEME 4: OBSIDIAN GOLD
================================================================ */
[data-theme="sunset"] {
    --bg-base:          #0a0600;
    --bg-surface:       #150c04;
    --bg-glass:         rgba(245, 158, 11, 0.04);
    --bg-glass-hover:   rgba(245, 158, 11, 0.08);
    --bg-glass-input:   rgba(20, 10, 2, 0.75);
    --bg-modal:         rgba(18, 10, 3, 0.97);

    --border-glass:       rgba(245, 158, 11, 0.20);
    --border-glass-hover: rgba(251, 191, 36, 0.50);
    --border-glow:        rgba(245, 158, 11, 0.6);

    --accent:           #f59e0b;
    --accent-glow:      rgba(245, 158, 11, 0.4);
    --accent-gradient:  linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fcd34d 100%);
    --accent-secondary: #fbbf24;

    --ios-green: #10b981;
    --ios-amber: #f59e0b;
    --ios-red:   #ef4444;
    --ios-teal:  #38bdf8;

    --text-primary:   #fffbeb;
    --text-secondary: rgba(217, 119, 6, 0.9);
    --text-tertiary:  rgba(120, 53, 15, 0.9);

    --font-heading: 'Cinzel', serif;
    --font-body:    'Inter', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    --card-radius: 12px;
    --card-border: 1px solid rgba(245, 158, 11, 0.25);
    --card-shadow: 0 12px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(251, 191, 36, 0.3);
    --card-clip:   none;
    --btn-radius:  8px;
    --radius-xl:   16px;
    --radius-md:   8px;
    --radius-sm:   6px;

    --aurora-1: rgba(245, 158, 11, 0.18);
    --aurora-2: rgba(217, 119, 6, 0.12);
    --aurora-3: rgba(251, 191, 36, 0.08);
}

/* ================================================================
   THEME 5: NORDIC FROST
================================================================ */
[data-theme="ice"] {
    --bg-base:          #020814;
    --bg-surface:       #051226;
    --bg-glass:         rgba(56, 189, 248, 0.04);
    --bg-glass-hover:   rgba(56, 189, 248, 0.09);
    --bg-glass-input:   rgba(5, 18, 40, 0.7);
    --bg-modal:         rgba(6, 18, 44, 0.97);

    --border-glass:       rgba(56, 189, 248, 0.15);
    --border-glass-hover: rgba(56, 189, 248, 0.45);
    --border-glow:        rgba(56, 189, 248, 0.55);

    --accent:           #0284c7;
    --accent-glow:      rgba(2, 132, 199, 0.4);
    --accent-gradient:  linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    --accent-secondary: #38bdf8;

    --ios-green: #34d399;
    --ios-amber: #fbbf24;
    --ios-red:   #f87171;
    --ios-teal:  #38bdf8;

    --text-primary:   #f0f9ff;
    --text-secondary: rgba(125, 211, 252, 0.8);
    --text-tertiary:  rgba(3, 105, 161, 0.9);

    --font-heading: 'Inter', sans-serif;
    --font-body:    'Inter', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    --card-radius: 20px;
    --card-border: 1px solid rgba(56, 189, 248, 0.18);
    --card-shadow: 0 10px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
    --card-clip:   none;
    --btn-radius:  30px;
    --radius-xl:   24px;
    --radius-md:   18px;
    --radius-sm:   12px;

    --aurora-1: rgba(2, 132, 199, 0.20);
    --aurora-2: rgba(56, 189, 248, 0.15);
    --aurora-3: rgba(125, 211, 252, 0.08);
}

/* ================================================================
   THEME 6: CRIMSON VELVET
================================================================ */
[data-theme="ruby"] {
    --bg-base:          #0c0104;
    --bg-surface:       #180309;
    --bg-glass:         rgba(225, 29, 72, 0.04);
    --bg-glass-hover:   rgba(225, 29, 72, 0.08);
    --bg-glass-input:   rgba(22, 3, 10, 0.75);
    --bg-modal:         rgba(20, 4, 12, 0.97);

    --border-glass:       rgba(225, 29, 72, 0.22);
    --border-glass-hover: rgba(244, 63, 94, 0.55);
    --border-glow:        rgba(225, 29, 72, 0.6);

    --accent:           #e11d48;
    --accent-glow:      rgba(225, 29, 72, 0.45);
    --accent-gradient:  linear-gradient(135deg, #be123c 0%, #e11d48 50%, #f43f5e 100%);
    --accent-secondary: #f43f5e;

    --ios-green: #10b981;
    --ios-amber: #fbbf24;
    --ios-red:   #f43f5e;
    --ios-teal:  #38bdf8;

    --text-primary:   #fff1f2;
    --text-secondary: rgba(253, 164, 175, 0.8);
    --text-tertiary:  rgba(159, 18, 57, 0.9);

    --font-heading: 'Inter', sans-serif;
    --font-body:    'Inter', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    --card-radius: 8px;
    --card-border: 1px solid rgba(225, 29, 72, 0.30);
    --card-shadow: 0 0 30px rgba(225, 29, 72, 0.15), inset 0 0 15px rgba(225, 29, 72, 0.05);
    --card-clip:   none;
    --btn-radius:  6px;
    --radius-xl:   12px;
    --radius-md:   6px;
    --radius-sm:   4px;

    --aurora-1: rgba(225, 29, 72, 0.20);
    --aurora-2: rgba(159, 18, 57, 0.14);
    --aurora-3: rgba(244, 63, 94, 0.08);
}

/* ================================================================
   GLOBAL RESET & BASE
================================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, .page-title h1, .stat-value, .api-name {
    font-family: var(--font-heading);
}

/* ================================================================
   ANIMATED AURORA BACKGROUND CANVAS
================================================================ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background: var(--bg-base);
    pointer-events: none;
}

/* Aurora Layer 1 */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, var(--aurora-1) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 110%, var(--aurora-2) 0%, transparent 55%),
        radial-gradient(ellipse 40% 30% at 50% 50%, var(--aurora-3) 0%, transparent 50%);
    animation: auroraShift 18s ease-in-out infinite alternate;
}

@keyframes auroraShift {
    0%   { transform: scale(1) rotate(0deg);   opacity: 1; }
    33%  { transform: scale(1.08) rotate(2deg); opacity: 0.85; }
    66%  { transform: scale(0.95) rotate(-1deg); opacity: 0.95; }
    100% { transform: scale(1.05) rotate(1deg); opacity: 0.9; }
}

/* ================================================================
   ANIMATED FLOATING ORBS
================================================================ */
.orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    will-change: transform;
}

.orb-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -150px;
    background: radial-gradient(circle at 40% 40%, var(--aurora-1) 0%, transparent 65%);
    filter: blur(60px);
    animation: orbDrift1 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -100px;
    background: radial-gradient(circle at 60% 60%, var(--aurora-2) 0%, transparent 65%);
    filter: blur(60px);
    animation: orbDrift2 24s ease-in-out infinite;
    animation-delay: -8s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--aurora-3) 0%, transparent 70%);
    filter: blur(80px);
    animation: orbDrift3 30s ease-in-out infinite;
    animation-delay: -14s;
}

@keyframes orbDrift1 {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(60px, 40px) scale(1.08); }
    50%  { transform: translate(-30px, 80px) scale(0.95); }
    75%  { transform: translate(50px, -30px) scale(1.04); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes orbDrift2 {
    0%   { transform: translate(0, 0) scale(1); }
    30%  { transform: translate(-50px, -40px) scale(1.1); }
    60%  { transform: translate(30px, -60px) scale(0.93); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes orbDrift3 {
    0%   { transform: translate(-50%, -50%) scale(1); }
    50%  { transform: translate(calc(-50% + 80px), calc(-50% - 60px)) scale(1.15); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* ================================================================
   NOISE TEXTURE OVERLAY (adds depth/texture to glass)
================================================================ */
.app-layout::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.018;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ================================================================
   MASTER LAYOUT
================================================================ */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ================================================================
   LIQUID GLASS SIDEBAR
================================================================ */
.sidebar {
    width: 264px;
    background: var(--bg-glass);
    backdrop-filter: blur(40px) saturate(200%) brightness(1.05);
    -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.05);
    border-right: 1px solid var(--border-glass);
    box-shadow: 4px 0 30px rgba(0,0,0,0.3), inset -1px 0 0 rgba(255,255,255,0.06);
    padding: 26px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

/* Sidebar shimmer line */
.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmerLine 4s ease-in-out infinite;
}

@keyframes shimmerLine {
    0%, 100% { opacity: 0; transform: translateX(-100%); }
    50%       { opacity: 1; transform: translateX(100%); }
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 20px;
    position: relative;
}

.sidebar-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--btn-radius);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25);
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
    animation: logoShimmer 3s ease-in-out infinite;
}

@keyframes logoShimmer {
    0%, 100% { transform: rotate(0deg); opacity: 0; }
    50%       { transform: rotate(180deg); opacity: 1; }
}

.sidebar-logo:hover {
    transform: rotate(-5deg) scale(1.08);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.sidebar-title h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.sidebar-title span {
    font-size: 0.68rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--btn-radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--accent-glow), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    border-color: var(--border-glass);
    transform: translateX(4px);
}

.nav-link:hover::before {
    opacity: 0.3;
}

.nav-link.active {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 20px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateX(0);
}

.nav-link.active::before {
    opacity: 0;
}

/* Active nav indicator */
.nav-link.active::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 0 8px rgba(255,255,255,0.6);
    animation: navDot 2s ease-in-out infinite;
}

@keyframes navDot {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50%       { opacity: 0.5; transform: translateY(-50%) scale(0.7); }
}

.nav-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    transition: transform 0.25s ease;
}

.nav-link:hover i {
    transform: scale(1.15);
}

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

.user-profile-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--btn-radius);
    backdrop-filter: blur(20px);
    transition: all 0.25s ease;
}

.user-profile-badge:hover {
    border-color: var(--border-glass-hover);
    background: var(--bg-glass-hover);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 0.85rem;
    box-shadow: 0 2px 10px var(--accent-glow);
    flex-shrink: 0;
}

.user-meta {
    flex: 1;
    margin-left: 10px;
    overflow: hidden;
}

.user-meta-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-meta-role {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-top: 1px;
}

.btn-logout {
    color: var(--ios-red);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.btn-logout:hover {
    background: rgba(255, 69, 58, 0.15);
    transform: scale(1.1);
}

/* ================================================================
   MAIN CONTENT AREA
================================================================ */
.main-content {
    margin-left: 264px;
    flex: 1;
    padding: 28px 32px 60px;
    min-width: 0;
}

/* ================================================================
   GLASS TOP HEADER
================================================================ */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

/* Header shimmer */
.top-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: headerShimmer 6s ease-in-out infinite;
}

@keyframes headerShimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

.page-title h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-title p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

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

/* ================================================================
   TAB PANELS
================================================================ */
.tab-content {
    display: none;
    animation: tabFadeIn 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.tab-content.active {
    display: block;
}

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

/* ================================================================
   LIQUID GLASS BUTTONS
================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--btn-radius);
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    outline: none;
    user-select: none;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

/* Button shimmer on hover */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.4s ease;
}

.btn:hover::after {
    left: 100%;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 18px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
    box-shadow: 0 8px 28px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-glass-hover);
    transform: translateY(-1px);
}

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

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
}

/* ================================================================
   LIQUID GLASS STAT CARDS
================================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid var(--border-glass);
    border-radius: var(--card-radius);
    clip-path: var(--card-clip);
    padding: 22px 20px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    cursor: default;
}

/* Glass highlight on top edge */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: opacity 0.3s ease;
}

/* Accent glow blob */
.stat-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--card-accent, var(--accent-glow)) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--border-glass-hover);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}

.stat-card:hover::after {
    opacity: 0.9;
    transform: scale(1.3);
}

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

.stat-title {
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.stat-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--btn-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: var(--bg-glass-hover);
    color: var(--card-accent, var(--accent));
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    background: var(--accent-glow);
    border-color: var(--accent);
    transform: rotate(-5deg) scale(1.1);
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-value {
    transform: scale(1.04);
}

.stat-sub {
    font-size: 0.72rem;
    color: var(--text-tertiary);
}

/* ================================================================
   CHART CARDS
================================================================ */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

@media (max-width: 1100px) {
    .charts-grid { grid-template-columns: 1fr; }
}

.chart-card {
    background: var(--bg-glass);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: var(--card-radius);
    clip-path: var(--card-clip);
    padding: 22px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.chart-card:hover {
    border-color: var(--border-glass-hover);
    box-shadow: 0 16px 48px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}

.chart-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.chart-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-canvas-wrap {
    height: 240px;
    position: relative;
}

/* ================================================================
   CONTROL BAR
================================================================ */
.control-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--bg-glass);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: var(--card-radius);
    clip-path: var(--card-clip);
    padding: 12px 18px;
    margin-bottom: 22px;
    box-shadow: var(--card-shadow);
    flex-wrap: wrap;
    transition: border-color 0.3s ease;
}

.control-bar:hover {
    border-color: var(--border-glass-hover);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-glass-input);
    border: 1px solid var(--border-glass);
    border-radius: var(--btn-radius);
    padding: 8px 14px;
    flex: 1;
    min-width: 220px;
    transition: all 0.25s ease;
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-glass-hover);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    width: 100%;
}

.search-box input::placeholder {
    color: var(--text-tertiary);
}

.filter-tabs {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(0,0,0,0.3);
    padding: 3px;
    border-radius: var(--btn-radius);
    border: 1px solid var(--border-glass);
}

.filter-btn {
    padding: 6px 14px;
    font-size: 0.77rem;
    font-weight: 600;
    border-radius: var(--btn-radius);
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.filter-btn.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ================================================================
   LIQUID GLASS API CARDS
================================================================ */
.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 18px;
}

.api-card {
    background: var(--bg-glass);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid var(--border-glass);
    border-radius: var(--card-radius);
    clip-path: var(--card-clip);
    padding: 22px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

/* Iridescent glass top highlight */
.api-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 40%, rgba(255,255,255,0.1) 70%, transparent 100%);
    z-index: 1;
}

/* Liquid glow blob on hover */
.api-card::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.api-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-5px) scale(1.005);
    box-shadow: 0 24px 60px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}

.api-card:hover::after {
    opacity: 0.6;
    transform: scale(1.2);
}

/* Card entry animation */
.api-card {
    animation: cardReveal 0.4s cubic-bezier(0.32, 0.72, 0, 1) both;
}

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

.api-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.api-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.api-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--btn-radius);
    background: var(--accent-glow);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.api-icon-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 60%);
}

.api-card:hover .api-icon-wrap {
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.api-name {
    font-size: 1.02rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.api-slug {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ================================================================
   BADGES
================================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--btn-radius);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.badge-active {
    background: rgba(48, 209, 88, 0.15);
    color: var(--ios-green);
    border: 1px solid rgba(48, 209, 88, 0.3);
    box-shadow: 0 0 12px rgba(48, 209, 88, 0.15);
}

.badge-inactive {
    background: rgba(142, 142, 147, 0.12);
    color: var(--text-secondary);
    border: 1px solid rgba(142, 142, 147, 0.2);
}

.badge-limit_reached {
    background: rgba(255, 214, 10, 0.12);
    color: var(--ios-amber);
    border: 1px solid rgba(255, 214, 10, 0.28);
    box-shadow: 0 0 12px rgba(255, 214, 10, 0.12);
}

.badge-expired {
    background: rgba(255, 69, 58, 0.12);
    color: var(--ios-red);
    border: 1px solid rgba(255, 69, 58, 0.28);
    box-shadow: 0 0 12px rgba(255, 69, 58, 0.12);
}

/* Animated status dot */
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.pulse-dot {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1);   box-shadow: 0 0 0 0 currentColor; }
    50%       { opacity: 0.7; transform: scale(1.3); box-shadow: 0 0 0 4px transparent; }
}

/* ================================================================
   ENDPOINT PREVIEW BOX (Glassmorphic Code Box)
================================================================ */
.endpoint-preview-box {
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--border-glass);
    border-radius: var(--btn-radius);
    padding: 10px 12px;
    margin: 10px 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.endpoint-preview-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 210, 255, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.endpoint-preview-box:hover {
    border-color: var(--ios-teal);
}

.endpoint-preview-box:hover::before {
    opacity: 1;
}

.endpoint-text {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--ios-teal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: all;
}

.copy-icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.copy-icon-btn:hover {
    color: var(--ios-teal);
    background: rgba(100, 210, 255, 0.1);
    transform: scale(1.15);
}

/* ================================================================
   CARD DETAILS GRID
================================================================ */
.card-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.detail-item {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--btn-radius);
    padding: 8px 10px;
    transition: all 0.2s ease;
}

.detail-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--border-glass-hover);
}

.detail-label {
    color: var(--text-tertiary);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-val {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8rem;
}

.detail-val.key-masked {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: rgba(203, 213, 225, 0.8);
}

/* ================================================================
   QUOTA PROGRESS BAR
================================================================ */
.quota-progress-container {
    margin-bottom: 16px;
}

.quota-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.quota-bar-bg {
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.07);
    border-radius: 10px;
    overflow: hidden;
}

.quota-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: var(--accent-gradient);
    transition: width 0.6s cubic-bezier(0.32, 0.72, 0, 1);
    position: relative;
    overflow: hidden;
}

/* Animated shimmer on bar */
.quota-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: barShimmer 2.5s ease-in-out infinite;
}

@keyframes barShimmer {
    0%   { left: -60%; }
    100% { left: 160%; }
}

.quota-bar-fill.fill-warn {
    background: linear-gradient(90deg, var(--ios-amber), #ff9500);
}

.quota-bar-fill.fill-danger {
    background: linear-gradient(90deg, var(--ios-red), #ff6b6b);
}

/* ================================================================
   CARD ACTIONS
================================================================ */
.api-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border-glass);
}

.action-btn-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ================================================================
   LIQUID GLASS TABLE CARD
================================================================ */
.glass-table-card {
    background: var(--bg-glass);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: var(--card-radius);
    clip-path: var(--card-clip);
    padding: 22px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.glass-table-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.table-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.glass-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: left;
}

.glass-table th {
    background: rgba(255,255,255,0.03);
    padding: 11px 14px;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-glass);
    white-space: nowrap;
}

.glass-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--text-primary);
    transition: background 0.2s ease;
}

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

.glass-table tr:last-child td {
    border-bottom: none;
}

.logs-table-container {
    overflow-x: auto;
    max-height: 520px;
    overflow-y: auto;
}

/* ================================================================
   THEME STUDIO CARDS
================================================================ */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.theme-card {
    background: var(--bg-glass);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border-glass);
    border-radius: var(--card-radius);
    padding: 18px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.theme-card:hover::before {
    opacity: 1;
}

.theme-card.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 8px 30px var(--accent-glow);
}

.theme-preview-box {
    height: 80px;
    border-radius: var(--btn-radius);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.theme-preview-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    border-radius: var(--btn-radius) var(--btn-radius) 0 0;
}

.theme-card:hover .theme-preview-box {
    transform: scale(1.03);
}

.theme-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.theme-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
}

/* ================================================================
   LIQUID GLASS MODALS
================================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-modal);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    border: 1px solid var(--border-glass-hover);
    border-radius: var(--card-radius);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.7),
        0 0 0 1px rgba(255,255,255,0.06),
        inset 0 1px 0 rgba(255,255,255,0.12);
    width: 100%;
    max-width: 640px;
    max-height: 92vh;
    overflow-y: auto;
    transform: scale(0.93) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    position: relative;
}

/* Modal top highlight */
.modal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    border-radius: 0 0 100% 100%;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-container.modal-lg {
    max-width: 860px;
}

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

.modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.modal-close {
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.modal-close:hover {
    background: rgba(255, 69, 58, 0.2);
    color: var(--ios-red);
    border-color: rgba(255,69,58,0.4);
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 24px 26px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 26px;
    border-top: 1px solid var(--border-glass);
    background: rgba(0,0,0,0.2);
}

/* ================================================================
   GLASS FORMS
================================================================ */
.form-group {
    margin-bottom: 18px;
}

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

.form-label span.req {
    color: var(--ios-red);
    margin-left: 2px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background: var(--bg-glass-input);
    border: 1px solid var(--border-glass);
    border-radius: var(--btn-radius);
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent);
    background: var(--bg-glass-hover);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-select option {
    background: #111422;
    color: #fff;
}

.input-with-btn {
    display: flex;
    gap: 8px;
}

.input-with-btn .form-input {
    flex: 1;
}

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

.form-help {
    font-size: 0.71rem;
    color: var(--text-tertiary);
    margin-top: 5px;
    line-height: 1.4;
}

/* ================================================================
   API TESTER CONSOLE
================================================================ */
.tester-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 720px) {
    .tester-grid { grid-template-columns: 1fr; }
}

.console-box {
    background: rgba(0, 4, 16, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: var(--btn-radius);
    padding: 16px;
    height: 360px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.77rem;
    color: var(--ios-teal);
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.6;
    position: relative;
}

/* Scanline effect on console */
.console-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.04) 2px,
        rgba(0, 0, 0, 0.04) 4px
    );
    pointer-events: none;
    border-radius: var(--btn-radius);
}

/* ================================================================
   TOAST NOTIFICATIONS
================================================================ */
.toast-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--bg-modal);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid var(--border-glass-hover);
    border-radius: var(--btn-radius);
    padding: 13px 20px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: toastIn 0.4s cubic-bezier(0.32, 0.72, 0, 1) both;
    min-width: 260px;
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

/* Toast shimmer */
.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px) scale(0.94); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

.toast.toast-success {
    border-left: 3px solid var(--ios-green);
}

.toast.toast-success i {
    color: var(--ios-green);
}

.toast.toast-error {
    border-left: 3px solid var(--ios-red);
}

.toast.toast-error i {
    color: var(--ios-red);
}

/* ================================================================
   EMPTY STATE
================================================================ */
.empty-state {
    text-align: center;
    padding: 70px 20px;
    grid-column: 1 / -1;
    background: var(--bg-glass);
    backdrop-filter: blur(30px);
    border: 1px dashed var(--border-glass-hover);
    border-radius: var(--card-radius);
    animation: tabFadeIn 0.4s ease both;
}

.empty-icon {
    font-size: 3rem;
    color: var(--text-tertiary);
    margin-bottom: 14px;
    display: block;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.empty-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    max-width: 380px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

/* ================================================================
   MOBILE SIDEBAR OVERLAY
================================================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 199;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
}

.mobile-nav-toggle {
    display: none;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--btn-radius);
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.mobile-nav-toggle:hover {
    border-color: var(--border-glass-hover);
    background: var(--bg-glass-hover);
}

/* ================================================================
   CUSTOM SCROLLBARS
================================================================ */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ================================================================
   GLOBAL TRANSITIONS (applied to theme-switching elements)
================================================================ */
.sidebar, .stat-card, .api-card, .chart-card, .glass-table-card,
.control-bar, .theme-card, .modal-container, .top-header,
.nav-link, .badge, .btn {
    transition-property: background, border-color, box-shadow, color, transform, opacity;
    transition-duration: 0.28s;
    transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
}

/* Override for cards that need their own specific transitions */
.api-card, .stat-card, .theme-card {
    transition: all 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

/* ================================================================
   RESPONSIVE - TABLET & MOBILE
================================================================ */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 16px;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .api-grid {
        grid-template-columns: 1fr;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .control-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-tabs {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-title h1 {
        font-size: 1.2rem;
    }

    .top-header {
        padding: 10px 14px;
    }
}

/* ================================================================
   SPECIAL ELEMENT: Animated Metric Counter
================================================================ */
@keyframes countUp {
    from { transform: translateY(10px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.stat-value {
    animation: countUp 0.5s cubic-bezier(0.32, 0.72, 0, 1) both;
}

/* ================================================================
   API CARD STAGGER DELAYS
================================================================ */
.api-card:nth-child(1)  { animation-delay: 0.04s; }
.api-card:nth-child(2)  { animation-delay: 0.08s; }
.api-card:nth-child(3)  { animation-delay: 0.12s; }
.api-card:nth-child(4)  { animation-delay: 0.16s; }
.api-card:nth-child(5)  { animation-delay: 0.20s; }
.api-card:nth-child(6)  { animation-delay: 0.24s; }
.api-card:nth-child(7)  { animation-delay: 0.28s; }
.api-card:nth-child(8)  { animation-delay: 0.32s; }
.api-card:nth-child(9)  { animation-delay: 0.36s; }
.api-card:nth-child(10) { animation-delay: 0.40s; }

/* ================================================================
   SMOOTH TAB SWITCH ANIMATION FOR ADMIN PANEL
================================================================ */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-content.active {
    display: block !important;
    animation: tabSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tabSlideIn {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.975);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* ================================================================
   FULLSCREEN ANIMATED "X API PANEL" SPLASH INTRO OVERLAY
================================================================ */
.x-splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: radial-gradient(circle at center, rgba(12, 18, 35, 0.98) 0%, rgba(4, 7, 16, 0.99) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.x-splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.08);
    pointer-events: none;
}

.x-splash-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 44px 56px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 32px;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 242, 254, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: splashPopIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    overflow: hidden;
}

.x-splash-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.1) 0%, transparent 60%);
    animation: splashGlowRotate 8s linear infinite;
    pointer-events: none;
}

@keyframes splashGlowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes splashPopIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
        filter: blur(14px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.x-splash-logo {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.x-glow-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px stroke transparent;
    pointer-events: none;
}

.x-glow-ring.ring-1 {
    width: 130px;
    height: 130px;
    border: 2px dashed rgba(0, 242, 254, 0.4);
    animation: splashRingRotate1 10s linear infinite;
}

.x-glow-ring.ring-2 {
    width: 150px;
    height: 150px;
    border: 1px dotted rgba(112, 0, 255, 0.4);
    animation: splashRingRotate2 14s linear infinite reverse;
}

@keyframes splashRingRotate1 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes splashRingRotate2 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.x-svg-logo {
    width: 96px;
    height: 96px;
    z-index: 2;
    animation: splashLogoPulse 2.5s ease-in-out infinite alternate;
}

@keyframes splashLogoPulse {
    0% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.6)); }
    100% { transform: scale(1.08) rotate(4deg); filter: drop-shadow(0 0 25px rgba(0, 242, 254, 0.9)); }
}

.x-splash-title {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: #ffffff;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #ffffff 0%, #00f2fe 50%, #7000ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 242, 254, 0.4);
    z-index: 2;
}

.x-splash-sub {
    font-size: 0.88rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 28px 0;
    text-transform: uppercase;
    z-index: 2;
}

.x-user-highlight {
    color: var(--ios-cyan);
    font-weight: 700;
}

.x-splash-loader {
    width: 260px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 14px;
    z-index: 2;
}

.x-splash-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00f2fe, #7000ff, #ff007f);
    border-radius: 10px;
    animation: splashFill 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes splashFill {
    0% { width: 0%; }
    40% { width: 65%; }
    100% { width: 100%; }
}

.x-splash-status {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'JetBrains Mono', monospace;
    z-index: 2;
}

/* Telegram Clickable Link Styling */
.tele-link {
    color: var(--ios-cyan, #00f2fe);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tele-link:hover {
    color: #ffffff;
    text-shadow: 0 0 14px rgba(0, 242, 254, 0.9);
    transform: translateY(-1px);
}

/* ================================================================
   API RESELLER HUB STYLING - LIQUID iOS 18 PREMIUM GLASS
================================================================ */
.resell-hero-banner {
    background: radial-gradient(circle at 90% 10%, rgba(0, 242, 254, 0.14) 0%, transparent 60%),
                radial-gradient(circle at 10% 90%, rgba(112, 0, 255, 0.12) 0%, transparent 60%),
                rgba(13, 17, 28, 0.75);
    backdrop-filter: blur(35px) saturate(190%);
    -webkit-backdrop-filter: blur(35px) saturate(190%);
    border: 1px solid rgba(0, 242, 254, 0.22);
    border-radius: 20px;
    padding: 26px 30px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.resell-hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.4), transparent);
}

.resell-hero-info {
    max-width: 680px;
    z-index: 1;
}

.resell-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--ios-cyan);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ios-green);
    box-shadow: 0 0 10px var(--ios-green);
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.resell-hero-info h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 40%, #a5f3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.resell-hero-info p {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

.resell-hero-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    z-index: 1;
}

.btn-glow {
    background: linear-gradient(135deg, #007aff 0%, #00f2fe 100%) !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.4) !important;
    font-weight: 700 !important;
}

.btn-glow:hover {
    box-shadow: 0 6px 26px rgba(0, 242, 254, 0.6) !important;
    transform: translateY(-2px);
}

/* Enhanced Stat Cards */
.resell-stat-card {
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.resell-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
}

/* iOS 18 Segmented Control Bar */
.resell-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 14px;
}

.resell-nav-segments {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 5px;
    gap: 6px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}

.resell-nav-btn {
    border: none;
    outline: none;
    background: transparent;
    color: #94a3b8;
    padding: 9px 20px;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: all 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}

.resell-nav-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.resell-nav-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #007aff 0%, #00c6ff 100%);
    box-shadow: 0 4px 18px rgba(0, 122, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

.segment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 7px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.28);
    color: #ffffff;
}

.resell-nav-btn:not(.active) .segment-badge {
    background: rgba(255, 255, 255, 0.09);
    color: #cbd5e1;
}

.resell-client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
}

.resell-client-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--card-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    position: relative;
    backdrop-filter: blur(16px);
}

.resell-client-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.resell-client-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.resell-client-name {
    font-size: 1.08rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resell-client-contact {
    font-size: 0.76rem;
    color: var(--ios-cyan);
    font-family: var(--font-mono);
}

.resell-key-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #ffd60a;
    margin: 12px 0;
}

.resell-apis-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.resell-tag {
    font-size: 0.68rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(0, 242, 254, 0.1);
    color: var(--ios-cyan);
    border: 1px solid rgba(0, 242, 254, 0.25);
    font-weight: 600;
}

.resell-progress-container {
    margin: 12px 0;
}

.resell-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.74rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.resell-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.resell-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f2fe, #30d158);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.resell-progress-fill.fill-warn {
    background: linear-gradient(90deg, #ffd60a, #ff9f0a);
}

.resell-progress-fill.fill-danger {
    background: linear-gradient(90deg, #ff453a, #ff007f);
}

.resell-footer-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    flex-wrap: wrap;
}

.resell-apis-picker {
    max-height: 200px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.resell-picker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 7px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.resell-picker-item:hover {
    background: rgba(0, 242, 254, 0.08);
}

.resell-picker-item input[type="checkbox"] {
    accent-color: var(--ios-cyan);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.resell-picker-label {
    font-size: 0.82rem;
    color: #ffffff;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resell-txt-preview-box {
    background: #05060b;
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #a7f3d0;
    white-space: pre-wrap;
    max-height: 320px;
    overflow-y: auto;
    line-height: 1.45;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}
