/* 
 * Seniya Topup Developer API - Modern Design System
 * Theme: Dark Neo-Glassmorphism with Seniya Orange Glow
 */

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

:root {
    --bg-dark: #080c14;
    --bg-card: #0f1523;
    --bg-card-hover: #141c2e;
    --bg-surface: #182238;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(255, 122, 0, 0.3);
    
    --primary: #ff7a00;
    --primary-hover: #ff9124;
    --primary-dark: #e05e00;
    --primary-glow: rgba(255, 122, 0, 0.25);
    
    --accent-blue: #38bdf8;
    --accent-emerald: #10b981;
    --accent-purple: #a855f7;
    --accent-rose: #f43f5e;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 25px rgba(255, 122, 0, 0.35);
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Chrome, Safari, Edge, Opera */
*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar,
::-webkit-scrollbar {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
    background: transparent !important;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Background ambient glows */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.ambient-blob-1 {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.12) 0%, rgba(255, 69, 0, 0.03) 60%, transparent 75%);
    filter: blur(80px);
}

.ambient-blob-2 {
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
    filter: blur(100px);
}

/* Grid overlay */
.bg-grid {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
}

.brand-badge {
    background: linear-gradient(135deg, #ff7a00, #ff4500);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff7a00, #ff4500);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(255, 122, 0, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff8c1a, #ff5714);
    box-shadow: 0 6px 24px rgba(255, 122, 0, 0.5);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: rgba(255, 122, 0, 0.1);
    color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 17px;
    border-radius: var(--radius-md);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Hero Section */
.hero-section {
    padding: 160px 0 90px;
    text-align: center;
    position: relative;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(255, 122, 0, 0.1);
    border: 1px solid rgba(255, 122, 0, 0.3);
    color: #ff9124;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff7a00;
    box-shadow: 0 0 10px #ff7a00;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    line-height: 1.15;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 40%, #ff9124 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-orange {
    color: #ff7a00;
}

.hero-desc {
    max-width: 720px;
    margin: 0 auto 40px;
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

/* Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
}

.stat-num {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 17px;
}

/* Pricing Section */
.pricing-section {
    padding: 90px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-6px);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, #161e30 0%, #0f1523 100%);
    box-shadow: 0 10px 40px -10px rgba(255, 122, 0, 0.25);
    transform: scale(1.03);
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-6px);
}

.pricing-badge-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff7a00, #ff4500);
    color: #fff;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.4);
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-plan-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-plan-desc {
    font-size: 14px;
    color: var(--text-secondary);
    min-height: 42px;
}

.pricing-price-wrap {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-currency {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
}

.pricing-amount {
    font-size: 46px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.pricing-period {
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin-bottom: 36px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.pricing-features li i {
    color: #10b981;
    margin-top: 4px;
}

/* Packages Grid */
.packages-section {
    padding: 90px 0;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    transition: var(--transition);
}

.package-card:hover {
    border-color: rgba(255, 122, 0, 0.4);
    transform: translateY(-3px);
    background: var(--bg-card-hover);
}

.package-code {
    display: inline-block;
    background: rgba(255, 122, 0, 0.1);
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.package-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.package-category {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Code Snippet Box */
.code-preview-box {
    background: #0d121c;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    text-align: left;
    max-width: 800px;
    margin: 40px auto 0;
}

.code-header {
    background: #131a29;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.code-title {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.code-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: #e2e8f0;
    overflow-x: auto;
    line-height: 1.6;
}

/* Floating WhatsApp Button */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.whatsapp-floating:hover {
    background: #20ba59;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
    color: #ffffff;
}

.whatsapp-icon {
    font-size: 22px;
}

/* Flash alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.alert-danger {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fb7185;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

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

.form-control {
    width: 100%;
    background: #0d121c;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.15);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-danger { background: rgba(244, 63, 94, 0.15); color: #f43f5e; }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-info { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }

/* Mobile Navigation & App Experience */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #ffffff;
    font-size: 18px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: rgba(255, 122, 0, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

.mobile-only-action {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-6px); }
    .hero-title { font-size: 44px; }
    .stats-grid { grid-template-columns: 1fr; }
    
    .mobile-menu-btn {
        display: flex;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only-action {
        display: block;
        width: 100%;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(11, 15, 25, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        padding: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
        animation: slideDown 0.25s ease;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-link {
        font-size: 16px;
        font-weight: 600;
        padding: 8px 0;
        width: 100%;
    }
}

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

@media (max-width: 600px) {
    .hero-title { font-size: 32px; line-height: 1.25; }
    .hero-cta { flex-direction: column; width: 100%; gap: 12px; }
    .hero-cta .btn { width: 100%; text-align: center; justify-content: center; }
    .hero-desc { font-size: 14px; }
    .container { padding: 0 14px; }
    .code-preview-box { margin: 20px -6px 0; border-radius: 12px; }
    .code-body { padding: 14px; font-size: 11px; }
    .whatsapp-floating span { display: none; }
    .whatsapp-floating { padding: 14px; border-radius: 50%; bottom: 80px; right: 16px; }
    .hero-actions { flex-direction: column; width: 100%; gap: 10px; }
    .hero-actions .btn { width: 100%; }
}

/* Footer Responsive Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* Docs Responsive Layout */
.docs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .docs-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .docs-sidebar {
        position: static !important;
        margin-bottom: 20px;
    }
}

/* Global mobile overflow prevention */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

@media (max-width: 900px) {
    .docs-mobile-jump {
        display: block !important;
    }
}

/* Mobile Navigation Drawer & Hamburger Menu */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 122, 0, 0.5);
}

.mobile-only-action {
    display: none;
}

@media (max-width: 900px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .mobile-only-action {
        display: block !important;
        width: 100%;
        padding-top: 10px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(9, 13, 22, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        padding: 24px 20px 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        z-index: 99999;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-links.show {
        display: flex !important;
        animation: mobileNavSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links .nav-link {
        display: block;
        padding: 12px 14px;
        font-size: 16px;
        font-weight: 600;
        color: #e2e8f0;
        border-radius: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
        box-sizing: border-box;
    }

    .nav-links .nav-link:hover {
        background: rgba(255, 122, 0, 0.1);
        color: #ff7a00;
    }
}

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