/* ============================================
   Vibinno API — Premium Dark Theme
   ============================================ */

:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(20, 20, 35, 0.8);
    --bg-card-hover: rgba(25, 25, 45, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(99, 102, 241, 0.3);

    --text-primary: #f0f0f5;
    --text-secondary: #8b8b9e;
    --text-muted: #5a5a6e;

    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    --accent-glow: rgba(99, 102, 241, 0.15);

    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);

    --bkash-pink: #e2136e;
    --bkash-gradient: linear-gradient(135deg, #e2136e, #d4145a);

    /* Spacing */
    --sidebar-width: 260px;
    --header-height: 64px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--accent-secondary);
}

img { max-width: 100%; }

code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: var(--bg-glass);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { background: #dc2626; color: white; transform: translateY(-1px); }

.btn-warning { background: var(--warning); color: #000; }
.btn-warning:hover { background: #d97706; transform: translateY(-1px); }

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; color: white; transform: translateY(-1px); }

.btn-bkash {
    background: var(--bkash-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(226, 19, 110, 0.3);
}

.btn-bkash:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(226, 19, 110, 0.4);
    color: white;
}

.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-md); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================
   Landing Page
   ============================================ */
.landing-body {
    background: var(--bg-primary);
}

.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.landing-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.landing-logo:hover { color: var(--text-primary); }

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

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

.nav-links a { color: var(--text-secondary); font-weight: 500; font-size: 14px; }
.nav-links a:hover { color: var(--text-primary); }

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: -100px;
    left: -100px;
    animation-delay: -3s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: #a855f7;
    top: 50%;
    left: 50%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

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

/* Code Preview */
.code-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: left;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border-color);
}

.code-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.code-tab {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

.code-body {
    padding: 20px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.code-body code { font-size: 13px; }
.code-method { color: #10b981; font-weight: 700; }
.code-string { color: #f59e0b; }
.code-key { color: #6366f1; }
.code-bool { color: #10b981; }
.code-num { color: #3b82f6; }
.code-comment { color: var(--text-muted); font-style: italic; }

/* Features */
.features, .how-it-works, .pricing {
    padding: 100px 0;
    position: relative;
}

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

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 20px;
    margin-bottom: 16px;
}

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

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

/* Steps */
.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    flex: 1;
    max-width: 280px;
    transition: var(--transition);
}

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

.step-number {
    font-size: 48px;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.step-card h3 { font-size: 16px; margin-bottom: 8px; }
.step-card p { color: var(--text-secondary); font-size: 14px; }

.step-connector {
    color: var(--text-muted);
    font-size: 20px;
}

/* Pricing */
.pricing-card-single {
    max-width: 450px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card-single::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

.pricing-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-glow);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

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

.pricing-amount .currency {
    font-size: 24px;
    font-weight: 700;
    vertical-align: top;
    color: var(--text-secondary);
}

.pricing-amount .price {
    font-size: 64px;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-amount .per {
    font-size: 16px;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i { color: var(--success); }

/* CTA */
.cta {
    padding: 80px 0;
    text-align: center;
}

.cta-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0.05;
}

.cta h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}

.cta p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    position: relative;
}

.cta .btn { position: relative; }

/* Footer */
.landing-footer {
    padding: 60px 0 24px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 12px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 4px 0;
}

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

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

/* ============================================
   API Showcase Grid (Landing Page)
   ============================================ */
.available-apis {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(99, 102, 241, 0.03) 50%, var(--bg-primary) 100%);
}

.api-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.api-showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.api-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
}

.api-showcase-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.api-showcase-card:hover::before {
    opacity: 1;
}

.api-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 22px;
    color: var(--accent-primary);
}

.api-showcase-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.api-showcase-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 44px;
}

.api-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.api-card-footer code {
    color: var(--accent-primary);
    font-size: 12px;
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.api-card-rate {
    font-size: 14px;
    font-weight: 700;
    color: var(--success);
}

/* Coming Soon Card */
.api-card-coming-soon {
    border-style: dashed;
    opacity: 0.6;
}

.api-card-coming-soon:hover {
    opacity: 0.8;
    transform: none;
}

.api-card-coming-soon .api-card-icon {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.api-card-coming-soon h3 {
    color: var(--text-secondary);
}

.api-card-coming-soon .api-card-footer code {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* ============================================
   Auth Pages
   ============================================ */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
}

.auth-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

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

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

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

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

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

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================
   Sidebar Layout
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: var(--transition);
}

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

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

.logo-text {
    font-size: 18px;
    font-weight: 800;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-link:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--accent-glow);
    color: var(--accent-primary);
}

.nav-link i { width: 20px; text-align: center; }

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

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

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

.user-balance {
    font-size: 12px;
    color: var(--success);
    font-weight: 600;
}

.logout-link {
    color: var(--error) !important;
    font-size: 13px;
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}

.content-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 20px;
    font-weight: 700;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
}

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

.balance-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    color: var(--success);
    font-weight: 700;
    font-size: 14px;
}

.content-body {
    padding: 32px;
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin: 16px 32px 0;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

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

.alert-success {
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.alert-error {
    background: var(--error-bg);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
}

.alert-close:hover { opacity: 1; }

/* ============================================
   Stats Cards
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
}

.stat-balance::before { background: var(--success); }
.stat-keys::before { background: var(--accent-primary); }
.stat-requests::before { background: var(--info); }
.stat-success::before { background: #a855f7; }
.stat-today::before { background: var(--warning); }
.stat-cost::before { background: var(--bkash-pink); }

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

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.stat-balance .stat-icon { background: var(--success-bg); color: var(--success); }
.stat-keys .stat-icon { background: var(--accent-glow); color: var(--accent-primary); }
.stat-requests .stat-icon { background: var(--info-bg); color: var(--info); }
.stat-today .stat-icon { background: var(--warning-bg); color: var(--warning); }
.stat-cost .stat-icon { background: rgba(226, 19, 110, 0.1); color: var(--bkash-pink); }

.stat-value {
    font-size: 24px;
    font-weight: 800;
}

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

.stat-action {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: var(--accent-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 12px;
    transition: var(--transition);
}

.stat-action:hover {
    background: var(--accent-primary);
    color: white;
}

/* ============================================
   Section Blocks
   ============================================ */
.section-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.section-block-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-block-title i {
    color: var(--accent-primary);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.quick-action-card i {
    font-size: 24px;
    color: var(--accent-primary);
}

.quick-action-card:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    background: var(--accent-glow);
}

/* ============================================
   Tables
   ============================================ */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

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

.data-table td {
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr {
    transition: var(--transition-fast);
}

.data-table tbody tr:hover {
    background: var(--bg-glass);
}

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

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-error { background: var(--error-bg); color: var(--error); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info { background: var(--info-bg); color: var(--info); }

.text-success { color: var(--success); }
.text-danger { color: var(--error); }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.3;
}

.empty-state p { font-size: 14px; }

/* ============================================
   API Keys Cards
   ============================================ */
.api-keys-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.api-key-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
}

.api-key-card:hover { border-color: var(--border-glow); }

.api-key-card.disabled { opacity: 0.5; }

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

.key-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.key-date {
    font-size: 12px;
    color: var(--text-muted);
}

.key-value-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.key-value {
    flex: 1;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--accent-primary);
    word-break: break-all;
}

.copy-btn:hover { color: var(--success); }

.key-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 16px;
}

.key-stat-value {
    font-size: 18px;
    font-weight: 700;
    display: block;
}

.key-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.key-actions {
    display: flex;
    gap: 8px;
}

.key-snippet {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent-primary);
}

.inline-form { display: inline; }

/* ============================================
   Recharge Page
   ============================================ */
.recharge-container {
    max-width: 500px;
}

.bkash-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(226, 19, 110, 0.05);
    border: 1px solid rgba(226, 19, 110, 0.15);
    border-radius: var(--radius-md);
}

.bkash-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.bkash-text h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--bkash-pink);
}

.bkash-text p {
    font-size: 13px;
    color: var(--text-secondary);
}

.amount-input {
    font-size: 24px !important;
    font-weight: 700 !important;
    text-align: center;
    padding: 16px !important;
}

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

.quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.quick-amount-btn {
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.quick-amount-btn:hover,
.quick-amount-btn.active {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-glow);
}

.recharge-estimate {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.estimate-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.estimate-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.estimate-total {
    font-weight: 700;
    color: var(--success);
    font-size: 16px;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    gap: 4px;
    margin-top: 20px;
    justify-content: center;
}

.page-link {
    padding: 8px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.page-link:hover,
.page-link.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
}

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

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

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

.modal-body { padding: 24px; }
.modal-body .form-group { margin-bottom: 16px; }
.modal-body p { margin-bottom: 16px; color: var(--text-secondary); font-size: 14px; }

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   Docs Page
   ============================================ */
.docs-body {
    background: var(--bg-primary);
}

.docs-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.docs-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.docs-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 24px 60px;
}

.docs-section {
    margin-bottom: 48px;
}

.docs-section h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.docs-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 32px;
}

.docs-section h2 i { color: var(--accent-primary); }

.docs-section h3 { font-size: 16px; margin: 20px 0 12px; }
.docs-section h4 { font-size: 14px; margin: 16px 0 8px; color: var(--text-secondary); }

.docs-intro {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.docs-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
}

.docs-info-card h3 {
    font-size: 14px;
    margin: 0 0 8px;
}

.code-block {
    display: block;
    padding: 10px 14px;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--accent-primary);
}

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

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

.method-badge {
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.method-get { background: var(--success-bg); color: var(--success); }
.method-post { background: var(--info-bg); color: var(--info); }

.endpoint-header code {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.docs-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-glass);
}

.docs-table td {
    padding: 10px 14px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}

.docs-info-card ul {
    list-style: none;
    padding: 0;
}

.docs-info-card li {
    padding: 4px 0;
    color: var(--text-secondary);
}

/* ============================================
   Settings Page
   ============================================ */
.settings-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-row:last-of-type { border-bottom: none; }

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

.setting-value {
    font-size: 14px;
    font-weight: 600;
}

.setting-note {
    margin-top: 16px;
    padding: 12px;
    background: var(--info-bg);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--info);
}

.actions-cell {
    display: flex;
    gap: 4px;
}

/* ============================================
   Warning Alert
   ============================================ */
.alert-warning {
    background: var(--warning-bg);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

/* ============================================
   API Endpoints Management
   ============================================ */
.section-header-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.api-name-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.api-name-cell small {
    color: var(--text-muted);
    font-size: 11px;
}

.slug-code {
    padding: 4px 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    font-size: 12px;
    color: var(--accent-primary);
    white-space: nowrap;
}

.text-muted { color: var(--text-muted); }
.small { font-size: 13px; }

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.info-item:hover {
    border-color: var(--border-glow);
}

.info-item i {
    font-size: 20px;
    color: var(--accent-primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.info-item p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.info-item code {
    padding: 2px 6px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 3px;
    font-size: 12px;
    color: var(--accent-primary);
}

/* Modal Large */
.modal-lg {
    max-width: 600px;
}

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

/* ============================================
   Settings Page — Form Styles
   ============================================ */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-save-bar {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

/* Toggle Switch */
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

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

.toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
    background: var(--accent-primary);
}

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

/* ============================================
   Rate Management Cards
   ============================================ */
.rate-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.rate-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: var(--transition);
}

.rate-card:hover {
    border-color: var(--border-glow);
}

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

.rate-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rate-card-info strong {
    font-size: 14px;
}

.rate-card-info small {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.rate-card-body {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rate-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.rate-input-group {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}

.rate-currency {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 14px;
}

.rate-input {
    flex: 1;
    padding: 8px 12px !important;
    border-radius: 0 !important;
    border: 1px solid var(--border-color) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--text-primary) !important;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    min-width: 80px;
}

.rate-input:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.rate-input-group .btn {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 8px 14px;
}

.rate-status {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 60px;
}

.rate-status.rate-custom {
    color: var(--accent-primary);
}

.rate-reset-all {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
    .api-showcase-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

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

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .content-body { padding: 16px; }
    .content-header { padding: 12px 16px; }
    .alert { margin: 12px 16px 0; }

    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .stats-grid-2 { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
    .api-showcase-grid { grid-template-columns: 1fr; }

    .steps-grid { flex-direction: column; }
    .step-connector { transform: rotate(90deg); }

    .hero-title { font-size: 32px; }
    .hero-actions { flex-direction: column; align-items: center; }

    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 16px;
        gap: 12px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .key-header { flex-direction: column; align-items: flex-start; gap: 4px; }
    .key-actions { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .hero { padding-top: 60px; }
    .hero-title { font-size: 28px; }
    .pricing-card-single { padding: 24px; }
    .pricing-amount .price { font-size: 48px; }
}
