/* ==========================================================================
   Piedev Tech Solutions - Modern Web Public Portal Stylesheet
   Executive Light Theme & Rich Curated Color Palette
   ========================================================================== */

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

:root {
    color-scheme: dark;

    /* Velora UI Signature Brand Ramp (Indigo -> Violet -> Cyan) */
    --brand: #6366f1;
    --brand-from: #6366f1;
    --brand-via: #8b5cf6;
    --brand-to: #06b6d4;
    --brand-glow: rgba(99, 102, 241, 0.25);

    /* Deep Obsidian & Glass Surface System */
    --bg-main: #070b14;
    --bg-surface: #0c1222;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-card-hover: rgba(22, 33, 62, 0.85);
    --bg-input: #0f172a;
    --bg-subtle: #111827;

    --border-color: rgba(255, 255, 255, 0.09);
    --border-color-hover: rgba(99, 102, 241, 0.4);
    --border-subtle: rgba(255, 255, 255, 0.05);

    /* Accents */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.15);
    --primary-border: rgba(99, 102, 241, 0.35);
    --primary-glow: rgba(99, 102, 241, 0.35);
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);

    --cyan: #38bdf8;
    --cyan-light: rgba(56, 189, 248, 0.12);
    --cyan-border: rgba(56, 189, 248, 0.3);
    --cyan-text: #7dd3fc;

    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.12);
    --success-border: rgba(16, 185, 129, 0.3);
    --success-text: #6ee7b7;

    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.12);
    --warning-border: rgba(245, 158, 11, 0.3);
    --warning-text: #fcd34d;

    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.12);
    --danger-border: rgba(239, 68, 68, 0.3);
    --danger-text: #fca5a5;

    --purple: #a855f7;
    --purple-light: rgba(168, 85, 247, 0.12);
    --purple-border: rgba(168, 85, 247, 0.3);
    --purple-text: #d8b4fe;

    /* Text System - High Contrast Accessible */
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --text-dim: #94a3b8;

    /* Geometry */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Depth & Glowing Elevation */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.4);
    --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.07);
    --shadow-hover: 0 14px 34px -4px rgba(0, 0, 0, 0.6), 0 0 25px -2px rgba(99, 102, 241, 0.25);
    --shadow-modal: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);

    /* Fonts */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Scrollbar */
    --scrollbar-thumb: #334155;
    --scrollbar-track: #070b14;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    scrollbar-width: thin;
}

@supports not (scrollbar-color: auto) {
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    ::-webkit-scrollbar-thumb {
        background: var(--scrollbar-thumb);
        border-radius: 4px;
    }
    ::-webkit-scrollbar-track {
        background: var(--scrollbar-track);
    }
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
    letter-spacing: -0.025em;
    color: var(--text-main);
    font-weight: 700;
}

p, blockquote, li, .pretty-text {
    text-wrap: pretty;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-muted);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(79, 70, 229, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 85% 60%, rgba(2, 132, 199, 0.04) 0%, transparent 40%);
    background-attachment: fixed;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}
a:hover {
    color: var(--primary-hover);
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Sticky Header */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}
.brand img {
    filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.2));
    transition: transform 0.25s ease;
}
.brand:hover img {
    transform: scale(1.05);
}
.brand-sub {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.nav-link {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}
.nav-link:hover {
    color: var(--text-main);
    background: #f1f5f9;
}

/* Hero Section */
.hero {
    padding: 4.5rem 0 3rem;
    text-align: center;
    position: relative;
}
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 1rem;
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.hero-desc {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-dim);
    max-width: 650px;
    margin: 0 auto 2.25rem;
    line-height: 1.6;
}

/* Search Bar */
.search-wrapper {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}
.search-input {
    width: 100%;
    background: rgba(11, 17, 32, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    padding: 0.85rem 1.5rem;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow), var(--shadow-md);
}
.search-input::placeholder {
    color: #94a3b8;
}

/* Software Catalog Cards Grid */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.75rem;
    margin-bottom: 4.5rem;
}
@media (max-width: 480px) {
    .software-grid {
        grid-template-columns: 1fr;
    }
}
.software-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.software-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.software-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-hover);
}
.software-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    margin-bottom: 1rem;
}
.card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    flex-shrink: 0;
}
.card-title-group h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main);
}
.card-tagline {
    font-size: 0.85rem;
    color: var(--cyan-text);
    font-weight: 600;
    margin-top: 0.15rem;
}
.card-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}
.card-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    font-size: 0.82rem;
    color: var(--text-dim);
}
.platform-badges {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.platform-tag {
    padding: 0.2rem 0.55rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: var(--shadow-xs);
    line-height: 1.4;
}
.btn:active {
    transform: scale(0.98);
}
.btn-primary {
    background: var(--primary);
    color: #ffffff !important;
    border-color: #4338ca;
}
.btn-primary:hover {
    background: var(--primary-hover);
    border-color: #3730a3;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    color: #ffffff !important;
    transform: translateY(-1px);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: var(--text-muted) !important;
    border: 1px solid var(--border-color);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
    background: var(--primary-light);
}
.btn-lg {
    padding: 0.85rem 1.85rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

/* Product Detail Page */
.product-hero {
    padding: 2.5rem 0;
}
.product-hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.75rem;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    box-shadow: var(--shadow-card);
    position: relative;
}
@media (max-width: 960px) {
    .product-hero-card {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }
}
.download-box {
    background: rgba(11, 17, 32, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 90px;
}
.download-box .version-label {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
}
.download-box .btn-download {
    width: 100%;
    margin: 1.25rem 0 0.75rem;
    padding: 0.95rem 1.5rem;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
}
.download-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(7, 11, 20, 0.6);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.info-label {
    color: var(--text-dim);
}
.info-val {
    color: var(--text-main);
    font-weight: 600;
}

/* SHA256 Checksum Box */
.checksum-box {
    background: rgba(7, 11, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--text-muted);
}
.btn-copy {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.btn-copy:hover {
    background: var(--primary-light);
    border-color: var(--primary-border);
    color: var(--primary);
    transform: translateY(-1px);
}

/* Releases Table */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 3rem 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-main);
}
.table-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    margin-bottom: 3.5rem;
    box-shadow: var(--shadow-sm);
}
.table {
    width: 100%;
    min-width: 660px;
    border-collapse: collapse;
    text-align: left;
}
.table th {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.85rem 1.25rem;
    font-size: 0.78rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}
.table td {
    padding: 1rem 1.25rem;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}
.table tr:last-child td {
    border-bottom: none;
}
.table tr:hover td {
    background: rgba(99, 102, 241, 0.08);
    color: #ffffff;
}

/* Channel & Package Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-stable {
    background: var(--success-light);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}
.badge-beta {
    background: var(--warning-light);
    color: var(--warning-text);
    border: 1px solid var(--warning-border);
}
.badge-nightly {
    background: var(--purple-light);
    color: var(--purple-text);
    border: 1px solid var(--purple-border);
}
.badge-pkg-installer {
    background: var(--cyan-light);
    color: var(--cyan-text);
    border: 1px solid var(--cyan-border);
}
.badge-pkg-portable {
    background: var(--warning-light);
    color: var(--warning-text);
    border: 1px solid var(--warning-border);
}
.badge-pkg-archive {
    background: var(--purple-light);
    color: var(--purple-text);
    border: 1px solid var(--purple-border);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.2s ease-out;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-box {
    background: rgba(11, 17, 32, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.96);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-box {
    transform: scale(1);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.modal-close:hover {
    color: var(--danger);
    background: var(--danger-light);
    border-color: var(--danger-border);
}
.changelog-content {
    white-space: pre-wrap;
    font-size: 0.94rem;
    color: #cbd5e1;
    line-height: 1.7;
}

/* Footer */
.footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 11, 20, 0.85);
    padding: 2.25rem 0;
    font-size: 0.88rem;
    color: var(--text-dim);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
}

/* Official App Stores & 3rd-Party Marketplace Badges */
.store-badges-container {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.store-badge {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    border: 1px solid transparent;
}
.store-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.store-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.store-badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    flex-grow: 1;
    text-align: left;
}
.store-badge-caption {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
    font-weight: 600;
}
.store-badge-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.store-badge-arrow {
    font-size: 0.85rem;
    opacity: 0.6;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.store-badge:hover .store-badge-arrow {
    transform: translate(2px, -2px);
    opacity: 1;
}

/* Microsoft Store */
.store-badge-ms {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0369a1 !important;
}
.store-badge-ms:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

/* Google Play Store */
.store-badge-play {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46 !important;
}
.store-badge-play:hover {
    background: #d1fae5;
    border-color: #6ee7b7;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

/* Apple Mac App Store */
.store-badge-apple {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}
.store-badge-apple:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
}

/* Steam */
.store-badge-steam {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f8fafc !important;
}
.store-badge-steam:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Linux / Flathub / Snap */
.store-badge-linux {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: #a5b4fc !important;
}
.store-badge-linux:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.3);
}

/* GitHub */
.store-badge-github {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}
.store-badge-github:hover {
    background: #334155;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Custom Marketplace */
.store-badge-custom {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f8fafc !important;
}
.store-badge-custom:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
    color: #ffffff !important;
}

/* Pill badge for catalog cards */
.store-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    background: #f1f5f9;
    color: var(--text-muted);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.15s ease;
}
.store-pill-badge:hover {
    background: #e2e8f0;
    color: var(--text-main) !important;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* ==========================================================================
   Public Mobile Responsive Architecture
   ========================================================================== */

/* Global Mobile Overflow & Touch Prevention */
html, body {
    width: 100%;
    max-width: 100%;
    -webkit-tap-highlight-color: transparent;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

/* Tablet & Mobile Screens (<= 960px) */
@media (max-width: 960px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .product-hero-card {
        grid-template-columns: 1fr;
        padding: 1.75rem 1.25rem;
        gap: 1.75rem;
    }

    .download-box {
        position: static;
        top: auto;
        padding: 1.75rem 1.25rem;
    }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
    .header {
        position: sticky;
        top: 0;
        z-index: 50;
    }

    .hero {
        padding: 2.75rem 0 1.75rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        line-height: 1.2;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .search-wrapper {
        max-width: 100%;
    }

    .software-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .software-card {
        padding: 1.35rem 1.25rem;
    }

    .card-header {
        gap: 1rem;
    }

    .card-title-group h3 {
        font-size: 1.15rem;
    }
}

/* Narrow Mobile Screens (<= 640px) */
@media (max-width: 640px) {
    .header-inner {
        padding: 0.65rem 0.5rem;
        gap: 0.5rem;
    }

    .brand {
        gap: 0.6rem;
    }

    .brand img {
        width: 32px;
        height: 32px;
    }

    .brand > div > div:first-child {
        font-size: 0.95rem;
        font-weight: 700;
    }

    .brand-sub {
        font-size: 0.62rem;
        letter-spacing: 0.5px;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-link {
        display: none; /* Hide extraneous external link on small mobile to avoid header overflow */
    }

    .nav-links .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .card-icon {
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
    }

    .product-hero-card h1 {
        font-size: 1.45rem !important;
        line-height: 1.25;
    }

    .checksum-box {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        text-align: center;
        padding: 0.65rem 0.75rem;
    }

    .checksum-box span {
        max-width: 100% !important;
        word-break: break-all;
        white-space: normal !important;
        font-size: 0.72rem;
    }

    .checksum-box .btn-copy {
        width: 100%;
        padding: 0.45rem 1rem;
    }

    .download-box .btn-download {
        font-size: 0.95rem;
        padding: 0.85rem 1.25rem;
    }

    .store-badge {
        padding: 0.55rem 0.85rem;
    }

    .store-badge-title {
        font-size: 0.88rem;
    }

    .store-badge-caption {
        font-size: 0.58rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.85rem;
        padding: 0.5rem 0;
    }

    .modal-card {
        padding: 1.25rem;
        max-height: 90vh;
    }
}

/* ==========================================================================
   Developer API & Integration Documentation Portal
   ========================================================================== */
.integration-docs {
    padding-bottom: 4rem;
}

.docs-hero {
    background: transparent !important;
    color: var(--text-main);
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: visible !important;
    z-index: 45;
}

.docs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(12px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.docs-hero-title {
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.docs-hero-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 820px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.software-picker-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
    max-width: 820px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
}

.software-picker-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.software-picker-hint {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

.docs-main-container {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

.docs-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
    position: relative;
}

.docs-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 5rem;
    align-self: start;
    height: fit-content;
    max-height: calc(100vh - 6.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
    z-index: 30;
}

.docs-sidebar::-webkit-scrollbar {
    width: 4px;
}
.docs-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.docs-sidebar::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.25);
    border-radius: 4px;
}
.docs-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

.docs-mobile-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.15s ease;
}

.docs-mobile-chip:hover, .docs-mobile-chip.active {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.docs-nav-card {
    background: rgba(11, 17, 33, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: relative;
}

.docs-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.docs-nav-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.75px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.docs-nav-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
    letter-spacing: 0.3px;
    font-family: var(--font-mono);
}

.docs-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
}

.docs-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.58rem 0.85rem 0.58rem 1rem;
    font-size: 0.84rem;
    font-weight: 500;
    color: #94a3b8;
    border-radius: 0.65rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.docs-nav-item .nav-indicator {
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-nav-item:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.docs-nav-item.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0.04) 100%);
    border-color: rgba(99, 102, 241, 0.35);
    font-weight: 700;
    box-shadow: 0 4px 15px -3px rgba(99, 102, 241, 0.25);
    transform: translateX(3px);
}

.docs-nav-item.active .nav-indicator {
    background: linear-gradient(180deg, #6366f1, #38bdf8);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
}

.docs-sidebar-footer {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.docs-sidebar-action-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.18s ease;
    text-decoration: none;
}

.docs-sidebar-action-btn:hover {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

.docs-content {
    min-width: 0;
}

.docs-section {
    margin-bottom: 3.5rem;
    scroll-margin-top: 5rem;
}

.docs-section h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.docs-section p {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.docs-callout {
    position: relative;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    margin: 1.5rem 0;
    font-size: 0.925rem;
    line-height: 1.65;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.docs-callout strong, 
.docs-callout b {
    color: #f8fafc;
    font-weight: 600;
}

.docs-callout code {
    font-family: 'JetBrains Mono', var(--font-mono, monospace);
    font-size: 0.82rem;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.18);
    color: #a5b4fc;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.docs-callout-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.docs-callout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.docs-callout-list {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    color: #cbd5e1;
}

.docs-callout-list li {
    line-height: 1.6;
}

.docs-callout-info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.06) 100%), rgba(11, 17, 33, 0.88);
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-left: 4px solid #6366f1;
    color: #cbd5e1;
    box-shadow: 0 12px 30px -8px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.docs-callout-info .docs-callout-title {
    color: #818cf8;
}

.docs-callout-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.05) 100%), rgba(11, 17, 33, 0.88);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-left: 4px solid #10b981;
    color: #cbd5e1;
    box-shadow: 0 12px 30px -8px rgba(16, 185, 129, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.docs-callout-success .docs-callout-title {
    color: #34d399;
}

.docs-callout-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.05) 100%), rgba(11, 17, 33, 0.88);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-left: 4px solid #f59e0b;
    color: #cbd5e1;
    box-shadow: 0 12px 30px -8px rgba(245, 158, 11, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.docs-callout-warning .docs-callout-title {
    color: #fbbf24;
}

.docs-callout-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(220, 38, 38, 0.05) 100%), rgba(11, 17, 33, 0.88);
    border: 1px solid rgba(239, 68, 68, 0.28);
    border-left: 4px solid #ef4444;
    color: #cbd5e1;
    box-shadow: 0 12px 30px -8px rgba(239, 68, 68, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.docs-callout-danger .docs-callout-title {
    color: #f87171;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #0f172a;
    border: 1px solid #1e293b;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    color: #f8fafc;
    flex-wrap: wrap;
    margin: 1.25rem 0;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.12);
}

.http-method-badge {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.method-get {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

.endpoint-url-text {
    font-family: 'JetBrains Mono', 'Fira Code', var(--font-mono, monospace);
    font-size: 0.9rem;
    color: #38bdf8;
    background: #090d16;
    border: 1px solid #1e293b;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    flex: 1;
    word-break: break-all;
    font-weight: 500;
}

/* Pristine Documentation Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.25rem 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 17, 32, 0.7);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.04);
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
    min-width: 600px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
}

.docs-table thead {
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-table th {
    padding: 0.85rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.docs-table td {
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    vertical-align: middle;
    line-height: 1.6;
}

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

.docs-table tbody tr:hover td {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #ffffff !important;
}

.docs-table code {
    font-family: 'JetBrains Mono', var(--font-mono, monospace);
    font-size: 0.82rem;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-req {
    display: inline-block;
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}

.badge-opt {
    display: inline-block;
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* High-Contrast Modern Dark IDE Code Blocks */
.code-block-container {
    background: #090d16;
    border: 1px solid #1e293b;
    border-radius: 14px;
    margin: 1.5rem 0;
    overflow: hidden;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.15), 0 2px 6px -1px rgba(15, 23, 42, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.code-block-container:hover {
    border-color: #334155;
    box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.22);
}

.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #131b2e;
    padding: 0.65rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    border-bottom: 1px solid #1e293b;
}

.code-block-header .code-header-left {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.terminal-dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.copy-code-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.copy-code-btn:hover {
    background: #334155;
    color: #ffffff;
    border-color: #475569;
}

.copy-code-btn.copied {
    background: #059669;
    color: #ffffff;
    border-color: #10b981;
}

.code-pre {
    margin: 0;
    padding: 1.25rem 1.5rem;
    background: #090d16;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', 'Fira Code', var(--font-mono, monospace);
    font-size: 0.88rem;
    line-height: 1.7;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    tab-size: 4;
}

.code-pre code {
    background: transparent;
    color: #f1f5f9;
    padding: 0;
    border: none;
    font-family: inherit;
    font-size: inherit;
}

/* Modern Pill Tabs for Schema & Language Snippets */
.schema-tabs, .lang-tabs {
    display: flex;
    gap: 0.6rem;
    margin: 1.25rem 0;
    padding-bottom: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.schema-tab, .lang-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.schema-tab:hover, .lang-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.schema-tab.active, .lang-tab.active {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.schema-tab-content, .lang-content {
    display: none;
}

.schema-tab-content.active, .lang-content.active {
    display: block;
}


.docs-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.docs-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 1.35rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.docs-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.15);
}

@media (max-width: 1023px) {
    .docs-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .docs-sidebar {
        display: none;
    }
    .tester-controls-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .tester-controls-grid {
        grid-template-columns: 1fr;
    }
    .endpoint-header {
        flex-direction: column;
        align-items: stretch;
    }
    .docs-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Piedev Toast Notification System & Offline Connection Banner
   ========================================================================== */
#piedev-toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: 400px;
    width: calc(100vw - 2.5rem);
    pointer-events: none;
}

.piedev-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: rgba(11, 17, 32, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    color: #f8fafc;
    font-size: 0.9rem;
    line-height: 1.45;
    animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.2s ease;
}

.piedev-toast.toast-hiding {
    animation: toastSlideOut 0.25s ease forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.96);
    }
}

.piedev-toast-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.piedev-toast-content {
    flex: 1;
    min-width: 0;
}

.piedev-toast-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
    margin-bottom: 0.15rem;
}

.piedev-toast-message {
    font-size: 0.84rem;
    color: #475569;
}

.piedev-toast-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    margin-left: 0.25rem;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.piedev-toast-close:hover {
    color: #0f172a;
}

.piedev-toast.toast-success {
    border-left: 4px solid #10b981;
}

.piedev-toast.toast-error {
    border-left: 4px solid #ef4444;
}

.piedev-toast.toast-warning {
    border-left: 4px solid #f59e0b;
}

.piedev-toast.toast-info {
    border-left: 4px solid #3b82f6;
}

/* Offline Banner */
#piedev-offline-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99998;
    background: #0f172a;
    color: #ffffff;
    padding: 0.65rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.86rem;
    font-weight: 600;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    display: none;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
}

#piedev-offline-banner.banner-visible {
    display: flex;
    animation: toastSlideIn 0.3s ease forwards;
}

#piedev-offline-banner.banner-online {
    background: #059669;
}

/* ==========================================================================
   Velora UI Design System (Colorlib Velora-UI Integration)
   ========================================================================== */

/* 1. Velora Aurora Background Effect */
.velora-aurora-wrapper {
    position: relative;
    overflow: hidden;
}

/* Ensure sections containing custom dropdowns can overflow visible without clipping */
.docs-hero.velora-aurora-wrapper,
.velora-aurora-wrapper:has(.velora-custom-select-wrapper),
.velora-aurora-wrapper:has(.allow-dropdown) {
    overflow: visible !important;
    z-index: 45;
}

.velora-aurora-backdrop {
    pointer-events: none;
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.45;
    z-index: 0;
}

.velora-aurora-blob-1 {
    position: absolute;
    top: -20%;
    left: 15%;
    width: 38rem;
    height: 38rem;
    border-radius: 9999px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    filter: blur(100px);
    animation: veloraAurora1 14s ease-in-out infinite alternate;
    will-change: transform;
}

.velora-aurora-blob-2 {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 34rem;
    height: 34rem;
    border-radius: 9999px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    filter: blur(110px);
    animation: veloraAurora2 18s ease-in-out infinite alternate;
    will-change: transform;
}

.velora-aurora-blob-3 {
    position: absolute;
    bottom: -15%;
    left: 35%;
    width: 36rem;
    height: 36rem;
    border-radius: 9999px;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    filter: blur(120px);
    animation: veloraAurora3 22s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes veloraAurora1 {
    0% { transform: translate(-8%, -10%) scale(1); }
    50% { transform: translate(10%, 6%) scale(1.2); }
    100% { transform: translate(-5%, 12%) scale(0.95); }
}

@keyframes veloraAurora2 {
    0% { transform: translate(10%, 8%) scale(1.1); }
    50% { transform: translate(-12%, -5%) scale(0.9); }
    100% { transform: translate(6%, -10%) scale(1.15); }
}

@keyframes veloraAurora3 {
    0% { transform: translate(0%, 12%) scale(0.95); }
    50% { transform: translate(8%, -8%) scale(1.1); }
    100% { transform: translate(-10%, 3%) scale(1); }
}

/* 2. Velora Masked Grid Pattern */
.velora-grid-pattern {
    pointer-events: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 20%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 20%, #000 30%, transparent 80%);
    opacity: 0.65;
    z-index: 1;
}

/* 3. Velora Animated Gradient Text */
.velora-gradient-text {
    background: linear-gradient(90deg, #6366f1 0%, #a855f7 35%, #06b6d4 70%, #6366f1 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: veloraGradientSweep 6s ease infinite;
}

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

/* 4. Velora Spotlight Card */
.velora-spotlight-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s ease,
                box-shadow 0.25s ease;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.velora-spotlight-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.7),
                0 0 25px -2px rgba(99, 102, 241, 0.3);
}

.velora-spotlight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.35s ease;
    background: radial-gradient(420px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(99, 102, 241, 0.16), transparent 70%);
    z-index: 1;
}

.velora-spotlight-card:hover::before {
    opacity: 1;
}

/* Ensure contents stay above spotlight */
.velora-spotlight-card > * {
    position: relative;
    z-index: 2;
}

/* 5. Velora Shimmer Button */
.velora-shimmer-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.7rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 22px -3px rgba(99, 102, 241, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.velora-shimmer-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 32px -1px rgba(99, 102, 241, 0.75), 0 8px 20px rgba(0, 0, 0, 0.4);
    color: #ffffff !important;
}

.velora-shimmer-btn:active {
    transform: scale(0.98);
}

.velora-shimmer-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.4) 50%, transparent 75%);
    background-size: 250% 100%;
    animation: veloraShimmerSweep 3s infinite linear;
    pointer-events: none;
}

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

/* 6. Velora Secondary Glass Button */
.velora-glass-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.65rem 1.4rem;
    backdrop-filter: blur(12px);
    transition: all 0.2s ease;
    text-decoration: none !important;
    cursor: pointer;
}

.velora-glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* 7. Velora Highlight Card Container */
.velora-border-beam-box {
    position: relative;
    border-radius: var(--radius-xl);
}

/* 8. Velora Bento Grid Layout */
.velora-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.velora-bento-col-12 { grid-column: span 12; }
.velora-bento-col-8  { grid-column: span 8; }
.velora-bento-col-7  { grid-column: span 7; }
.velora-bento-col-6  { grid-column: span 6; }
.velora-bento-col-5  { grid-column: span 5; }
.velora-bento-col-4  { grid-column: span 4; }

@media (max-width: 1024px) {
    .velora-bento-col-8,
    .velora-bento-col-7,
    .velora-bento-col-5,
    .velora-bento-col-4 {
        grid-column: span 12;
    }
}

/* Dark UI Overrides for Existing Components */
body {
    background-color: var(--bg-main) !important;
    color: var(--text-main) !important;
}

.header {
    background: rgba(11, 17, 32, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

.footer {
    background: #080c17 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-dim) !important;
}

.software-card {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

.card-icon {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.product-hero-card {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    backdrop-filter: blur(20px) !important;
}

.download-box {
    background: rgba(15, 23, 42, 0.9) !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.7), 0 0 25px rgba(99, 102, 241, 0.15) !important;
}

.store-pill-badge {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
}
.store-pill-badge:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
}

/* Velora Click Ripple Wave Effect */
.btn, .velora-glass-btn, .velora-shimmer-btn, .btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
}
.velora-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(99, 102, 241, 0.25) 60%, transparent 100%);
    pointer-events: none;
    transform: scale(0);
    z-index: 10;
}

/* Clean Professional Flat Card Interactions (No 3D Tilt) */
.velora-spotlight-card, .admin-card, .product-hero-card {
    transform: none;
}

/* Header Scroll Glass Blur Depth */
.header.nav-scrolled {
    background: rgba(7, 11, 20, 0.92) !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.7);
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Floating Badge Pulse */
@keyframes veloraFloatBadge {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}
.hero .inline-flex {
    animation: veloraFloatBadge 3.5s ease-in-out infinite;
}

/* ==========================================================================
   Velora UI - Premium Text Animation Suite (11 Components)
   ========================================================================== */

/* 1. Animated Gradient Text */
.velora-animated-gradient-text {
    display: inline-block;
    background-size: 300% 300%;
    background-image: linear-gradient(
        -45deg,
        #6366f1 0%,
        #a855f7 25%,
        #ec4899 50%,
        #38bdf8 75%,
        #6366f1 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: veloraGradientFlow 6s ease infinite;
}

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

/* 2. Text Reveal */
.velora-text-reveal {
    display: inline;
}
.velora-reveal-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    margin-right: 0.28em;
}
.velora-reveal-inner {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    filter: blur(8px);
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.65s ease,
                filter 0.65s ease;
}
.velora-reveal-inner.revealed {
    opacity: 1;
    transform: translateY(0%);
    filter: blur(0px);
}

/* 3. Typewriter */
.velora-typewriter {
    display: inline-block;
    color: #38bdf8;
    font-weight: 600;
}
.velora-typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.15em;
    background: #6366f1;
    margin-left: 2px;
    vertical-align: -0.15em;
    animation: veloraBlinkCursor 0.8s infinite;
    box-shadow: 0 0 8px #6366f1;
}
@keyframes veloraBlinkCursor {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* 4. Flip Words */
.velora-flip-words {
    display: inline-block;
    position: relative;
    perspective: 1000px;
    vertical-align: top;
    font-weight: 700;
    color: #a855f7;
    min-height: 1.2em;
}
.velora-flip-word {
    display: inline-block;
    transform-origin: 50% 50%;
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
}

/* 5. Sparkles Text */
.velora-sparkles-text {
    position: relative;
    display: inline-block;
}
.velora-sparkle-star {
    position: absolute;
    pointer-events: none;
    z-index: 20;
    transform: scale(0);
    will-change: transform, opacity;
}
.velora-sparkle-star svg {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.7));
}

/* 6. Text Shimmer */
.velora-text-shimmer {
    display: inline-block;
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 255, 255, 0.45) 35%,
        #ffffff 50%,
        rgba(255, 255, 255, 0.45) 65%,
        rgba(255, 255, 255, 0.45) 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: veloraTextShimmer 3.5s ease-in-out infinite;
}
@keyframes veloraTextShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* 7. Number Ticker */
.velora-number-ticker {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

/* 8. Word Rotate */
.velora-word-rotate {
    display: inline-flex;
    overflow: hidden;
    position: relative;
    vertical-align: top;
    height: 1.25em;
    font-weight: 700;
}
.velora-word-rotate-inner {
    display: flex;
    flex-direction: column;
    will-change: transform;
}
.velora-word-rotate-item {
    display: flex;
    align-items: center;
    height: 1.25em;
    white-space: nowrap;
}

/* 9. Hyper Text */
.velora-hyper-text {
    display: inline-block;
    font-family: inherit;
    cursor: default;
    transition: color 0.2s ease;
}
.velora-hyper-text:hover {
    color: #38bdf8;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* 10. Text Highlighter */
.velora-text-highlighter {
    position: relative;
    display: inline-block;
    z-index: 1;
}
.velora-text-highlighter::before {
    content: '';
    position: absolute;
    bottom: 8%;
    left: -4px;
    right: -4px;
    height: 42%;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.45), rgba(168, 85, 247, 0.5));
    border-radius: 4px;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.velora-text-highlighter.active::before,
.velora-text-highlighter:hover::before {
    transform: scaleX(1);
}
.velora-text-highlighter-amber::before {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.45), rgba(251, 191, 36, 0.55));
}
.velora-text-highlighter-emerald::before {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.4), rgba(52, 211, 153, 0.5));
}
.velora-text-highlighter-cyan::before {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.4), rgba(56, 189, 248, 0.5));
}

/* 11. Morphing Text */
.velora-morphing-text {
    position: relative;
    display: inline-block;
    min-height: 1.25em;
    min-width: 140px;
}
.velora-morph-word {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    opacity: 0;
    filter: blur(12px);
    transform: scale(1.05);
    transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.velora-morph-word.active {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1);
}

/* ==========================================================================
   Velora UI - Custom Select & Combobox Component
   Replaces basic native browser selects with dark obsidian glassmorphic UI
   ========================================================================== */

.velora-custom-select-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
}

.velora-custom-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1.1rem;
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.velora-custom-select-trigger:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 8px 25px -4px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.25);
}

.velora-custom-select-trigger:focus,
.velora-custom-select-wrapper.open .velora-custom-select-trigger {
    border-color: #6366f1;
    background: rgba(15, 23, 42, 1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35), 0 10px 30px rgba(0, 0, 0, 0.7);
}

.velora-custom-select-selected {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
}

.velora-custom-select-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

.velora-custom-select-text {
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.velora-custom-select-badge {
    font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #a5b4fc;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.velora-custom-select-arrow {
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
    flex-shrink: 0;
}

.velora-custom-select-wrapper.open .velora-custom-select-arrow {
    transform: rotate(180deg);
    color: #818cf8;
}

/* Dropdown Menu Panel */
.velora-custom-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(11, 17, 32, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 
                0 0 35px -5px rgba(99, 102, 241, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-height: 380px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.22s ease;
}

.velora-custom-select-wrapper.open .velora-custom-select-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Search & Filter Header inside Custom Select */
.velora-custom-select-search-wrap {
    position: relative;
    padding: 0.25rem 0.25rem 0.5rem 0.25rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.velora-custom-select-search-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.5rem 0.75rem 0.5rem 2.2rem;
    font-size: 0.825rem;
    color: #f8fafc;
    outline: none;
    transition: all 0.2s ease;
}

.velora-custom-select-search-input::placeholder {
    color: #64748b;
    font-weight: 400;
}

.velora-custom-select-search-input:focus {
    border-color: rgba(99, 102, 241, 0.6);
    background: rgba(15, 23, 42, 1);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.velora-custom-select-search-icon {
    position: absolute;
    left: 1rem;
    top: 46%;
    transform: translateY(-50%);
    color: #818cf8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.velora-custom-select-options-list {
    flex: 1;
    max-height: 290px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.4) transparent;
    padding-right: 2px;
}

.velora-custom-select-options-list::-webkit-scrollbar {
    width: 5px;
}

.velora-custom-select-options-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.35);
    border-radius: 9999px;
}

.velora-custom-select-empty {
    padding: 1.75rem 1rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.velora-spotlight-card:has(.velora-custom-select-wrapper),
.velora-spotlight-card.allow-dropdown {
    overflow: visible !important;
    position: relative !important;
    z-index: 50 !important;
}

.docs-hero .container {
    overflow: visible !important;
    position: relative !important;
    z-index: 50 !important;
}

/* Global native select & option fallback dark theme */
select option {
    background-color: #0b1120 !important;
    color: #f8fafc !important;
}

/* Dropdown Option Row */
.velora-custom-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s ease;
    border: 1px solid transparent;
    margin-bottom: 2px;
}

.velora-custom-select-option:hover,
.velora-custom-select-option.highlighted {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.22) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
    transform: translateX(3px);
}

.velora-custom-select-option.selected {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
}

.velora-custom-select-option-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
}

.velora-custom-select-option-icon {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.velora-custom-select-option:hover .velora-custom-select-option-icon {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.2);
}

.velora-custom-select-option-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.velora-custom-select-option:hover .velora-custom-select-option-name {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.velora-custom-select-option-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.velora-custom-select-option-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    font-size: 0.75rem;
    font-weight: bold;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.2s ease;
}

.velora-custom-select-option.selected .velora-custom-select-option-check {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   Mobile Responsiveness & Viewport Optimization (Down to 320px)
   ========================================================================== */
html, body {
    max-width: 100vw;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (max-width: 640px) {
    /* Header brand and spacing */
    .header-inner {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    /* Hero Typography */
    .docs-hero, .hero {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .docs-hero h1, .hero h1 {
        font-size: 1.65rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.75rem !important;
        word-break: break-word;
    }

    .docs-hero p, .hero p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.25rem !important;
    }

    /* Custom Software Select Trigger */
    .velora-custom-select-trigger {
        padding: 0.6rem 0.75rem !important;
        gap: 0.5rem !important;
        border-radius: 12px !important;
    }

    .velora-custom-select-icon {
        width: 1.75rem !important;
        height: 1.75rem !important;
        font-size: 0.85rem !important;
        border-radius: 8px !important;
    }

    .velora-custom-select-text {
        font-size: 0.85rem !important;
    }

    #customSelectCurrentSlug {
        display: none !important;
    }

    /* Custom Dropdown Menu Panel */
    .velora-custom-select-menu {
        padding: 0.4rem !important;
        border-radius: 12px !important;
        max-height: 320px !important;
    }

    .velora-custom-select-search-wrap {
        padding: 0.2rem 0.2rem 0.4rem !important;
    }

    .velora-custom-select-search-input {
        font-size: 0.78rem !important;
        padding: 0.45rem 0.55rem 0.45rem 1.85rem !important;
    }

    .velora-custom-select-search-icon {
        left: 0.65rem !important;
    }

    .velora-custom-select-option {
        padding: 0.5rem 0.6rem !important;
        gap: 0.4rem !important;
        border-radius: 8px !important;
    }

    .velora-custom-select-option-icon {
        width: 1.6rem !important;
        height: 1.6rem !important;
        font-size: 0.8rem !important;
        border-radius: 6px !important;
    }

    .velora-custom-select-option-name {
        font-size: 0.8rem !important;
    }

    .velora-custom-select-option .velora-custom-select-badge {
        display: none !important;
    }

    .velora-spotlight-card.allow-dropdown {
        padding: 0.85rem 1rem !important;
    }

    /* Software Catalog Cards */
    .software-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .velora-spotlight-card {
        padding: 1.15rem !important;
        border-radius: 16px !important;
    }

    .card-header .w-14 {
        width: 3rem !important;
        height: 3rem !important;
        border-radius: 12px !important;
    }

    .card-header h3 {
        font-size: 1.05rem !important;
    }

    .velora-shimmer-btn {
        font-size: 0.75rem !important;
        padding: 0.6rem 0.85rem !important;
    }

    .velora-glass-btn {
        font-size: 0.75rem !important;
        padding: 0.55rem 0.85rem !important;
    }
}

/* Custom React API Tester Dropdown Styles */
.react-custom-dropdown-menu {
    animation: veloraDropdownPop 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: top center;
}

@keyframes veloraDropdownPop {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Custom Sleek Dark Scrollbars for Dropdowns */
.velora-dropdown-scroll::-webkit-scrollbar {
    width: 6px;
}
.velora-dropdown-scroll::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 9999px;
}
.velora-dropdown-scroll::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.35);
    border-radius: 9999px;
}
.velora-dropdown-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.65);
}

/* Release Archive Table & Channel Filter Styles */
.release-table-row {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.release-table-row.row-fade-in {
    animation: veloraRowFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.channel-tab-btn {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.channel-tab-btn.active {
    background: rgba(99, 102, 241, 0.25) !important;
    border-color: rgba(99, 102, 241, 0.6) !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}

