/* ===== FLOWCASH LANDING PAGE ===== */
:root {
    --bg: #0d1b2a;
    --bg-alt: #111d2e;
    --card: #1a2332;
    --border: #1e3a5f;
    --accent: #00d4aa;
    --accent-glow: rgba(0,212,170,0.15);
    --text: #c9d1d9;
    --text-muted: #8b949e;
    --white: #ffffff;
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; transition: color .3s; }
a:hover { color: #33e0be; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 10px; font-weight: 600; font-size: 15px; font-family: inherit; cursor: pointer; border: none; transition: all .35s; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, #00d4aa, #00b894); color: #0d1b2a; box-shadow: 0 4px 20px rgba(0,212,170,.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,212,170,.35); color: #0d1b2a; }
.btn-secondary { background: rgba(0,212,170,.12); color: var(--accent); border: 1px solid rgba(0,212,170,.3); }
.btn-secondary:hover { background: rgba(0,212,170,.2); transform: translateY(-2px); color: var(--accent); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ===== FADE ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== NAVIGATION ===== */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0 30px; transition: all .4s; background: transparent; }
.site-nav.scrolled { background: rgba(13,27,42,.92); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); box-shadow: 0 4px 30px rgba(0,0,0,.3); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-brand { font-size: 22px; font-weight: 800; color: var(--white); text-decoration: none; }
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { color: var(--text-muted); padding: 8px 14px; font-size: 14px; font-weight: 500; border-radius: 8px; transition: all .3s; text-decoration: none; }
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.05); }
.nav-cta { background: linear-gradient(135deg, #00d4aa, #00b894) !important; color: #0d1b2a !important; font-weight: 600 !important; box-shadow: 0 2px 15px rgba(0,212,170,.2); }
.nav-cta:hover { box-shadow: 0 4px 25px rgba(0,212,170,.35) !important; transform: translateY(-1px); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all .3s; }
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 998; opacity: 0; pointer-events: none; transition: opacity .3s; }
.mobile-overlay.active { opacity: 1; pointer-events: all; }

/* ===== HERO ===== */
.hero { position: relative; padding: 160px 0 100px; overflow: hidden; min-height: 85vh; display: flex; align-items: center; }
.hero-glow { position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(0,212,170,.12) 0%, transparent 70%); pointer-events: none; animation: pulse 6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.2); opacity: 1; } }
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,212,170,.1); border: 1px solid rgba(0,212,170,.25); padding: 8px 18px; border-radius: 50px; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 24px; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 20px; letter-spacing: -1px; }
.hero-desc { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto 35px; line-height: 1.8; }
.hero-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.payment-icons { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--text-muted); }
.payment-icon { font-size: 18px; color: var(--accent); margin-left: 8px; }
.payment-name { margin-right: 6px; }

/* ===== TRUST BAR ===== */
.trust-bar { padding: 50px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.trust-item h3 { font-size: 36px; font-weight: 800; color: var(--accent); margin-bottom: 5px; }
.trust-item p { font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* ===== SECTIONS ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: #060e18; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 50px; }
.section-label { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); background: rgba(0,212,170,.1); padding: 6px 14px; border-radius: 30px; margin-bottom: 14px; }
.section-header h2 { font-size: 34px; font-weight: 800; color: var(--white); margin-bottom: 12px; letter-spacing: -.5px; }
.section-header p { font-size: 16px; color: var(--text-muted); }
.section-label--light { background: rgba(255,255,255,.1); color: var(--white); }
.section-title--light { color: var(--white) !important; }
.section-desc--light { color: rgba(255,255,255,.7) !important; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img img { border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.about-text h2 { font-size: 30px; color: var(--white); margin-bottom: 16px; }
.about-text p { margin-bottom: 16px; }
.highlight-line { display: flex; gap: 16px; margin-top: 20px; padding: 16px; background: var(--card); border-radius: 10px; border: 1px solid var(--border); }
.hl-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(0,212,170,.12); border-radius: 10px; color: var(--accent); font-size: 18px; flex-shrink: 0; }
.highlight-line strong { color: var(--white); display: block; margin-bottom: 3px; font-size: 14px; }
.highlight-line span { font-size: 13px; color: var(--text-muted); }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; transition: all .4s; position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), #00b894); transform: scaleX(0); transition: transform .4s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,.3); border-color: rgba(0,212,170,.3); }
.feature-card:hover::before { transform: scaleX(1); }
.fc-icon { width: 52px; height: 52px; background: rgba(0,212,170,.12); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--accent); margin-bottom: 18px; }
.feature-card h4 { color: var(--white); font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ===== CODE BLOCK ===== */
.code-block { background: #161b22; border: 1px solid #30363d; border-radius: 10px; padding: 24px 28px; overflow-x: auto; font-size: 14px; line-height: 1.7; max-width: 700px; margin: 0 auto; }
.code-block pre { color: var(--text); font-family: 'JetBrains Mono', 'Fira Code', monospace; }
.code-block .cm { color: #8b949e; }
.code-block .kw { color: #ff7b72; }
.code-block .str { color: #a5d6ff; }

/* ===== PROCESS STEPS ===== */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.step { text-align: center; padding: 30px 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); position: relative; transition: all .4s; }
.step:hover { transform: translateY(-5px); border-color: rgba(0,212,170,.3); }
.step-num { width: 48px; height: 48px; background: linear-gradient(135deg, #00d4aa, #00b894); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: #0d1b2a; margin: 0 auto 16px; }
.step h4 { color: var(--white); margin-bottom: 8px; font-size: 16px; }
.step p { font-size: 13px; color: var(--text-muted); }

/* ===== WHY US ===== */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-img img { border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.why-title { font-size: 30px; color: var(--white); margin-bottom: 24px; }
.why-list { display: flex; flex-direction: column; gap: 16px; }
.why-item { display: flex; gap: 14px; padding: 14px; border-radius: 10px; transition: background .3s; }
.why-item:hover { background: rgba(255,255,255,.03); }
.w-check { width: 28px; height: 28px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.w-check svg { width: 14px; height: 14px; }
.why-item h4 { color: var(--white); font-size: 15px; margin-bottom: 3px; }
.why-item p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ===== ASSET CAROUSEL ===== */
.carousel-section { overflow: hidden; padding-bottom: 0; }
.carousel-section .container { margin-bottom: 32px; }
.ticker-track-wrap {
    width: 100%; overflow: hidden; position: relative;
    /* soft fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    padding: 14px 0;
}
.ticker-track {
    display: flex; gap: 12px; width: max-content;
    animation: ticker-scroll 32s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* exactly half = one set of duplicated items */
}
.tc-item {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px; padding: 10px 16px; flex-shrink: 0;
    white-space: nowrap; cursor: default; transition: border-color .2s, background .2s;
}
.tc-item:hover { background: rgba(0,212,170,.07); border-color: rgba(0,212,170,.3); }
.tc-icon {
    width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0;
}
.tc-icon.crypto { background: rgba(0,212,170,.15); color: #00d4aa; }
.tc-icon.stock  { background: rgba(51,154,240,.15); color: #339af0; }
.tc-icon.forex  { background: rgba(255,173,8,.15); color: #ffad08; }
.tc-sym  { font-size: 13px; font-weight: 700; color: var(--white); }
.tc-chg  { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.tc-chg.pos { background: rgba(0,212,170,.15); color: #00d4aa; }
.tc-chg.neg { background: rgba(255,71,87,.15); color: #ff4757; }

/* ===== TRADING TIPS ===== */
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tip-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 28px; transition: all .35s;
}
.tip-card:hover { transform: translateY(-5px); border-color: rgba(0,212,170,.35); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.tip-icon {
    width: 50px; height: 50px; border-radius: 14px; display: flex;
    align-items: center; justify-content: center; font-size: 20px; margin-bottom: 18px;
}
.tip-card h4 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.tip-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.tip-card p em { font-style: italic; color: var(--accent); }

/* ===== RESPONSIBLE TRADING ===== */
.responsible-section { }
.responsible-grid {
    display: grid; grid-template-columns: 180px 1fr; gap: 48px; align-items: start;
}
.resp-icon-col { display: flex; justify-content: center; padding-top: 8px; }
.resp-shield {
    width: 120px; height: 120px; background: linear-gradient(135deg, rgba(0,212,170,.2), rgba(0,212,170,.05));
    border: 2px solid rgba(0,212,170,.3); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 48px; color: #00d4aa;
    box-shadow: 0 0 60px rgba(0,212,170,.15);
}
.resp-intro { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 24px; }
.resp-list { display: flex; flex-direction: column; gap: 14px; }
.resp-item { display: flex; align-items: flex-start; gap: 14px; font-size: 14px; color: var(--text); line-height: 1.65; }
.resp-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.resp-item strong { color: var(--white); }

/* ===== FAQ ===== */
.faq-grid { max-width: 750px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; background: var(--card); }
.faq-q { padding: 18px 22px; font-size: 15px; font-weight: 600; color: var(--white); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background .3s; user-select: none; }
.faq-q:hover { background: rgba(255,255,255,.03); }
.faq-q i { color: var(--text-muted); font-size: 13px; transition: transform .35s; }
.faq-q.active i { transform: rotate(180deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a.open { max-height: 300px; }
.faq-a div { padding: 0 22px 18px; font-size: 14px; color: var(--text-muted); line-height: 1.8; }

/* ===== CTA BAND ===== */
.cta-band { padding: 80px 0; background: linear-gradient(135deg, #00d4aa, #00b894); text-align: center; position: relative; overflow: hidden; }
.cta-shape { position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-shape-1 { width: 300px; height: 300px; top: -100px; left: -80px; }
.cta-shape-2 { width: 200px; height: 200px; bottom: -60px; right: 10%; }
.cta-shape-3 { width: 120px; height: 120px; top: 20%; right: -30px; }
.cta-band h2 { font-size: 34px; font-weight: 800; color: #0d1b2a; margin-bottom: 12px; position: relative; }
.cta-band p { font-size: 16px; color: rgba(13,27,42,.7); margin-bottom: 30px; position: relative; }
.cta-band .btn-primary { background: #0d1b2a; color: var(--white); box-shadow: 0 6px 25px rgba(0,0,0,.3); }
.cta-band .btn-primary:hover { background: #162840; }

/* ===== CONTACT ===== */
.contact-container { max-width: 800px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 24px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; text-decoration: none; transition: all .3s; }
.contact-card:hover { background: rgba(255,255,255,.07); border-color: rgba(0,212,170,.3); transform: translateY(-3px); }
.contact-icon { width: 48px; height: 48px; background: rgba(0,212,170,.12); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 20px; flex-shrink: 0; }
.contact-label { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.contact-value { font-size: 14px; color: var(--white); font-weight: 600; }

/* ===== FOOTER ===== */
.site-footer { background: #060e18; padding: 60px 0 30px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-brand span { color: var(--accent); }
.footer-col p { font-size: 14px; color: var(--text-muted); line-height: 1.8; }
.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: var(--text-muted); font-size: 14px; transition: color .3s; text-decoration: none; }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }

/* ===== BACK TO TOP ===== */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px; background: var(--accent); color: #0d1b2a; border: none; border-radius: 50%; font-size: 16px; cursor: pointer; opacity: 0; transform: translateY(20px); transition: all .35s; z-index: 99; box-shadow: 0 4px 15px rgba(0,212,170,.3); }
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 6px 25px rgba(0,212,170,.4); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .tips-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .nav-links { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: #111d2e; flex-direction: column; padding: 80px 30px 30px; gap: 4px; z-index: 999; transition: right .35s ease; border-left: 1px solid var(--border); box-shadow: -10px 0 30px rgba(0,0,0,.4); }
    .nav-links.open { right: 0; }
    .nav-links a { padding: 12px 16px; font-size: 15px; width: 100%; border-radius: 8px; }

    .hero { padding: 130px 0 70px; min-height: auto; }
    .hero h1 { font-size: 30px; }
    .hero-desc { font-size: 15px; }

    .about-grid, .why-grid, .responsible-grid { grid-template-columns: 1fr; gap: 30px; }
    .about-img { order: -1; }
    .why-img { display: none; }
    .resp-icon-col { display: none; }

    .features-grid, .tips-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .trust-inner { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .section { padding: 60px 0; }
    .section-header h2 { font-size: 26px; }
    /* Carousel: speed up on mobile */
    .ticker-track { animation-duration: 22s; }
}

@media (max-width: 480px) {
    .trust-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
    .trust-item h3 { font-size: 28px; }
    .hero-btns { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
}


/* ===== FLOWCASH AUTH + DASHBOARD CSS ===== */
:root {
    --bg: #0d1b2a;
    --bg-alt: #111d2e;
    --card: #1a2332;
    --border: #1e3a5f;
    --accent: #00d4aa;
    --accent-hover: #00b894;
    --accent-glow: rgba(0,212,170,0.15);
    --text: #c9d1d9;
    --text-muted: #8b949e;
    --white: #ffffff;
    --danger: #f85149;
    --warning: #d29922;
    --success: #3fb950;
    --input-bg: #0d1117;
    --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #33e0be; text-decoration: none; }
ul { list-style: none; }

/* =============================================
   AUTH PAGES (Login, Register, Forgot, Reset)
   ============================================= */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #0d1b2a 0%, #162640 50%, #0d1b2a 100%);
    position: relative;
    overflow: hidden;
}
.auth-wrapper::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,212,170,.08) 0%, transparent 70%);
    pointer-events: none;
}
.auth-wrapper::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30,58,95,.3) 0%, transparent 70%);
    pointer-events: none;
}
.auth-container {
    width: 100%;
    max-width: 440px;
    background: rgba(17,29,46,.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0,0,0,.4);
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: fadeIn .5s ease;
}
.auth-container.wide { max-width: 560px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.auth-header {
    text-align: center;
    padding: 36px 36px 0;
}
.auth-header .brand {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}
.auth-header .brand span { color: var(--accent); }
.auth-header h2 {
    font-size: 22px;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 6px;
}
.auth-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.auth-body { padding: 30px 36px; }
.auth-footer {
    padding: 0 36px 30px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}
.auth-footer a { font-weight: 600; }
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.form-group label i {
    margin-right: 4px;
    color: var(--accent);
    font-size: 12px;
}
.form-control,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--input-bg);
    border: 1.5px solid #30363d;
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color .25s, box-shadow .25s;
}
.form-control:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,212,170,.1);
}
.form-control::placeholder,
.form-group input::placeholder { color: #484f58; }
.form-group input:disabled,
.form-group input[readonly] {
    opacity: .5;
    cursor: not-allowed;
}
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b949e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}
.form-row {
    display: flex;
    gap: 16px;
}
.form-row .form-group { flex: 1; min-width: 0; }

/* Form options (login) */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 8px;
}
.form-options a { font-weight: 600; }

/* Auth logo */
.auth-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    display: inline-block;
    margin-bottom: 8px;
    text-decoration: none;
}
.auth-logo:hover { color: var(--white); text-decoration: none; }
.auth-logo span { color: var(--accent); }

/* Page action bar */
.page-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: wrap;
}

/* Password wrapper */
.password-wrapper {
    position: relative;
}
.password-wrapper input { padding-right: 44px; }
.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 15px;
    transition: color .2s;
}
.password-toggle:hover { color: var(--accent); }

/* Password strength */
.password-strength {
    margin-top: 8px;
    height: 4px;
    background: #30363d;
    border-radius: 4px;
    overflow: hidden;
}
.password-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width .35s, background .35s;
}
.strength-weak { width: 25%; background: var(--danger); }
.strength-fair { width: 50%; background: var(--warning); }
.strength-good { width: 75%; background: #58a6ff; }
.strength-strong { width: 100%; background: var(--success); }
.password-strength-text {
    font-size: 11px;
    margin-top: 4px;
    color: var(--text-muted);
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-muted);
}
.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    flex-shrink: 0;
}
.form-check a { font-weight: 600; }

/* Auth button */
.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #0d1b2a;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,212,170,.3);
}
.auth-btn:active { transform: translateY(0); }

/* =============================================
   ALERTS
   ============================================= */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn .3s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.alert-success { background: rgba(63,185,80,.1); border: 1px solid rgba(63,185,80,.25); color: var(--success); }
.alert-error { background: rgba(248,81,73,.1); border: 1px solid rgba(248,81,73,.25); color: var(--danger); }
.alert-warning { background: rgba(210,153,34,.1); border: 1px solid rgba(210,153,34,.25); color: var(--warning); }
.alert-info { background: rgba(0,212,170,.08); border: 1px solid rgba(0,212,170,.2); color: var(--accent); }

/* Auth-specific alerts */
.auth-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin: 0 36px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn .3s ease;
    word-break: break-word;
}
.auth-alert-error { background: rgba(248,81,73,.1); border: 1px solid rgba(248,81,73,.25); color: var(--danger); }
.auth-alert-success { background: rgba(63,185,80,.1); border: 1px solid rgba(63,185,80,.25); color: var(--success); }

/* =============================================
   DASHBOARD LAYOUT
   ============================================= */
.dash-wrapper { display: flex; min-height: 100vh; overflow-x: hidden; }

/* Sidebar */
.dash-sidebar {
    width: 260px;
    background: var(--bg-alt);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 50;
    transition: transform .3s ease;
}
.sidebar-brand {
    display: block;
    padding: 24px 24px 20px;
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}
.sidebar-brand:hover { text-decoration: none; color: var(--white); }
.sidebar-brand span { color: var(--accent); }

.sidebar-menu {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}
.sidebar-menu li { margin-bottom: 2px; }
.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all .2s;
    text-decoration: none;
}
.sidebar-menu a:hover {
    background: rgba(0,212,170,.06);
    color: var(--text);
    text-decoration: none;
}
.sidebar-menu a.active {
    background: var(--accent-glow);
    color: var(--accent);
}
.sidebar-menu a i { width: 20px; text-align: center; font-size: 15px; }

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}
.user-info {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}
.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s;
}
.logout-btn:hover { color: var(--danger); text-decoration: none; }

/* Sidebar overlay (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 49;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.sidebar-overlay.show { opacity: 1; pointer-events: auto; }

/* Main content */
.dash-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    overflow-x: hidden;
}
.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
    position: sticky;
    top: 0;
    z-index: 40;
}
.dash-topbar h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.greeting { font-size: 14px; color: var(--text-muted); }
.notif-icon { color: var(--text-muted); font-size: 16px; cursor: pointer; transition: color .2s; }
.notif-icon:hover { color: var(--accent); }
.mobile-toggle-dash {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.mobile-toggle-dash:hover { border-color: var(--accent); color: var(--accent); }

.dash-content {
    padding: 32px;
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border: none;
    transition: all .25s;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #0d1b2a; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(0,212,170,.25); color: #0d1b2a; }
.btn-secondary { background: rgba(30,58,95,.5); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(30,58,95,.8); border-color: #2a5a8f; color: var(--white); }
.btn-danger { background: rgba(248,81,73,.15); color: var(--danger); border: 1px solid rgba(248,81,73,.25); }
.btn-danger:hover { background: var(--danger); color: var(--white); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 6px; }
.btn-icon {
    width: 34px; height: 34px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 6px; border: 1px solid var(--border);
    background: transparent; color: var(--text-muted); cursor: pointer;
    font-size: 13px; transition: all .2s;
}
.btn-icon:hover { border-color: var(--accent); color: var(--accent); }
.btn-icon.btn-delete:hover { border-color: var(--danger); color: var(--danger); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ===== STAT CARDS ===== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: all .3s;
}
.stat-card:hover { border-color: rgba(0,212,170,.3); transform: translateY(-2px); }
.stat-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
    background: rgba(88,166,255,.12);
    color: #58a6ff;
}
.stat-icon.green, .stat-icon.success { background: rgba(0,212,170,.12); color: var(--accent); }
.stat-icon.blue { background: rgba(88,166,255,.12); color: #58a6ff; }
.stat-icon.red, .stat-icon.danger { background: rgba(248,81,73,.12); color: var(--danger); }
.stat-icon.yellow, .stat-icon.warning { background: rgba(210,153,34,.12); color: var(--warning); }
.stat-value { font-size: 26px; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-muted); }

/* ===== CARDS ===== */
.dash-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
    max-width: 100%;
}
.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.card-header h3 i { color: var(--accent); font-size: 14px; }
.card-body { padding: 24px; }

.card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; max-width: 100%; }
.card .card-header { padding: 18px 24px; border-bottom: 1px solid var(--border); }
.card .card-body { padding: 24px; }
.card-danger { border-color: rgba(248,81,73,.25); }
.card-danger .card-header { border-bottom-color: rgba(248,81,73,.25); }
.card-danger .card-header h3 { color: var(--danger); }
.card-danger .card-header h3 i { color: var(--danger); }

/* ===== ACCOUNT CARDS ===== */
.account-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    transition: all .3s;
}
.account-card:hover { border-color: rgba(0,212,170,.25); }
.account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.account-header h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
}
.account-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
}
.detail-item {
    min-width: 160px;
}
.detail-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 600;
}
.detail-value {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}
.api-key-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--input-bg);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #30363d;
}
.api-key-masked {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text-muted);
    word-break: break-all;
}
.copy-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all .2s;
    flex-shrink: 0;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }

.url-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--input-bg);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #30363d;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent);
    word-break: break-all;
}

.account-actions {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}
.badge-active, .badge-success { background: rgba(63,185,80,.12); color: var(--success); }
.badge-inactive { background: rgba(248,81,73,.12); color: var(--danger); }
.badge-pending { background: rgba(210,153,34,.12); color: var(--warning); }
.badge-failed { background: rgba(248,81,73,.12); color: var(--danger); }
.badge-cancelled { background: rgba(139,148,158,.12); color: var(--text-muted); }
.badge-type { background: rgba(88,166,255,.12); color: #58a6ff; }

/* ===== TABLES ===== */
.table-responsive, .table-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; max-width: calc(100% + 48px); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left;
    padding: 12px 16px;
    background: rgba(30,58,95,.2);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}
.data-table td {
    padding: 14px 16px;
    border-top: 1px solid rgba(30,58,95,.4);
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
}
.data-table tbody tr { transition: background .2s; }
.data-table tbody tr:hover { background: rgba(0,212,170,.03); }

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.filter-bar select,
.filter-bar input {
    padding: 9px 14px;
    background: var(--input-bg);
    border: 1px solid #30363d;
    border-radius: 6px;
    color: var(--text);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    outline: none;
}
.filter-bar select:focus,
.filter-bar input:focus { border-color: var(--accent); }
.filter-bar select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b949e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    cursor: pointer;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all .2s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .active-page {
    background: var(--accent);
    color: #0d1b2a;
    border-color: var(--accent);
    font-weight: 700;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 24px;
}
.empty-state i {
    font-size: 52px;
    color: var(--border);
    margin-bottom: 16px;
    display: block;
}
.empty-state h3 {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 8px;
}
.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
}
.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}
.modal {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 14px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(.97);
    transition: transform .3s;
    box-shadow: 0 25px 80px rgba(0,0,0,.5);
}
.modal-overlay.show .modal { transform: translateY(0) scale(1); }
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.modal-header h3 i { color: var(--accent); }
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    transition: color .2s;
    padding: 0 4px;
}
.modal-close:hover { color: var(--white); }
.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ===== PLAN CARDS (Activation) ===== */
.plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.plan-card {
    background: var(--input-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    cursor: pointer;
    transition: all .3s;
}
.plan-card:hover, .plan-card.selected {
    border-color: var(--accent);
    background: rgba(0,212,170,.05);
}
.plan-card h4 {
    font-size: 15px;
    color: var(--white);
    margin-bottom: 6px;
}
.plan-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}
.plan-period {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== INFO BOX ===== */
.info-box {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    background: rgba(0,212,170,.06);
    border: 1px solid rgba(0,212,170,.2);
    color: var(--accent);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}
.info-box i { margin-top: 3px; flex-shrink: 0; }

/* ===== CODE PREVIEW ===== */
.code-preview {
    background: var(--input-bg);
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 18px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text);
    overflow-x: auto;
    white-space: pre;
    max-width: 100%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .plan-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Sidebar: slide from left */
    .dash-sidebar {
        transform: translateX(-100%);
        position: fixed;
        width: 260px;
        z-index: 60;
    }
    .dash-sidebar.open { transform: translateX(0); }
    .sidebar-overlay { display: block; }
    .sidebar-overlay.show { display: block; }

    /* Main layout */
    .dash-main { margin-left: 0; }
    .dash-content { padding: 20px; }
    .mobile-toggle-dash { display: flex; }

    /* Topbar */
    .dash-topbar {
        padding: 14px 20px;
        flex-wrap: wrap;
        gap: 10px;
    }
    .dash-topbar h1 { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .topbar-left { min-width: 0; flex: 1; }
    .topbar-right { gap: 10px; flex-shrink: 0; }
    .topbar-right .greeting { font-size: 13px; }

    /* Stat cards */
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

    /* Forms */
    .form-row { flex-direction: column; gap: 0; }
    .plan-grid { grid-template-columns: 1fr; }

    /* Account cards */
    .account-detail { flex-direction: column; gap: 10px; }
    .account-actions { flex-wrap: wrap; }
    .api-key-wrapper { flex-wrap: wrap; }
    .url-copy { flex-wrap: wrap; word-break: break-all; }
    .url-copy span { word-break: break-all; min-width: 0; }

    /* Filter bar responsive */
    .filter-bar {
        flex-direction: column;
        gap: 8px;
    }
    .filter-bar .form-group { width: 100%; margin-bottom: 4px; }
    .filter-bar select,
    .filter-bar input { width: 100%; }
    .filter-bar .btn { width: 100%; justify-content: center; }
    .filter-bar .filter-spacer { display: none; }
    .filter-bar .filter-actions { margin-bottom: 0; }

    /* Table responsive */
    .table-responsive,
    .table-wrap {
        margin: 0 -20px;
        padding: 0 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .data-table td,
    .data-table th { padding: 10px 12px; font-size: 12px; }
    .url-cell { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .actions-cell { white-space: nowrap; }

    /* Modals */
    .modal { max-width: 95vw; margin: 10px; }
    .modal-body { padding: 16px; }
    .modal-footer { padding: 12px 16px; flex-wrap: wrap; }
    .modal-footer .btn { flex: 1; min-width: 120px; justify-content: center; }

    /* Info box */
    .info-box { font-size: 13px; }

    /* Code preview */
    .code-preview { font-size: 11px; padding: 12px; }

    /* Auth pages */
    .auth-container { margin: 10px; }
    .auth-container.wide { max-width: 95vw; }
    .auth-body { padding: 24px; }
    .auth-header { padding: 28px 24px 0; }
    .auth-header h2 { font-size: 20px; }
    .auth-footer { padding: 0 24px 24px; }
    .auth-logo { font-size: 24px; }

    /* Auth alerts */
    .auth-alert { font-size: 13px; word-break: break-word; margin: 0 24px 0; }

    /* Page action bar */
    .page-action-bar { flex-direction: column; align-items: stretch; }
    .page-action-bar .btn { justify-content: center; }

    /* Pagination */
    .pagination { flex-wrap: wrap; gap: 6px; }

    /* Dashboard linked accounts inline flex */
    .card-body > div[style*="display:flex"] {
        flex-wrap: wrap;
        gap: 20px !important;
    }
}

@media (max-width: 480px) {
    /* Stat cards single column */
    .stat-grid { grid-template-columns: 1fr; }
    .stat-card { padding: 16px; }
    .stat-value { font-size: 22px; }

    /* Dashboard layout */
    .dash-content { padding: 14px; }
    .dash-topbar h1 { font-size: 15px; }
    .dash-topbar h1 i { display: none; }
    .topbar-right .greeting { display: none; }
    .topbar-right .btn { font-size: 12px; padding: 7px 10px; }
    .dash-topbar .btn { font-size: 12px; padding: 8px 12px; }

    /* Buttons */
    .btn { padding: 8px 14px; font-size: 13px; }

    /* Cards */
    .card-header { padding: 14px 16px; flex-wrap: wrap; gap: 8px; }
    .card-header h3 { font-size: 14px; }
    .card-header .btn { font-size: 12px; padding: 6px 10px; }
    .card-body { padding: 16px; }

    /* Tables */
    .table-responsive,
    .table-wrap {
        margin: 0 -14px;
        padding: 0 14px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .data-table { min-width: 500px; }
    .data-table td,
    .data-table th { padding: 8px 10px; font-size: 11px; }
    .url-cell { max-width: 120px; }

    /* Account cards */
    .account-card { padding: 16px; }
    .account-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .account-header h4 { font-size: 15px; }
    .detail-item { min-width: 100%; }
    .detail-label { font-size: 10px; }
    .detail-value { font-size: 13px; }
    .api-key-wrapper {
        padding: 6px 8px;
        gap: 6px;
        overflow-x: auto;
    }
    .api-key-masked { font-size: 10px; }
    .url-copy {
        padding: 6px 8px;
        font-size: 11px;
        overflow-x: auto;
    }
    .copy-btn { width: 28px; height: 28px; font-size: 12px; }
    .account-actions { gap: 8px; }
    .account-actions .btn { font-size: 12px; padding: 6px 10px; }

    /* Empty state */
    .empty-state { padding: 40px 16px; }
    .empty-state i { font-size: 40px; }
    .empty-state h3 { font-size: 16px; }
    .empty-state p { font-size: 13px; }

    /* Auth pages */
    .auth-wrapper { padding: 20px 10px; }
    .auth-wrapper::before,
    .auth-wrapper::after { display: none; }
    .auth-container { margin: 0; border-radius: 12px; }
    .auth-container.wide { max-width: 100%; }
    .auth-body { padding: 20px 16px; }
    .auth-header { padding: 24px 16px 0; }
    .auth-header h2 { font-size: 18px; }
    .auth-header p { font-size: 13px; }
    .auth-footer { padding: 0 16px 20px; font-size: 13px; }
    .auth-logo { font-size: 24px; }
    .auth-btn { padding: 12px; font-size: 14px; }
    .auth-alert { font-size: 12px; padding: 10px 14px; margin: 0 16px 0; }
    .auth-alert a { font-size: 11px; }
    .form-group label { font-size: 12px; margin-bottom: 6px; }
    .form-group input,
    .form-group select,
    .form-group textarea { padding: 11px 14px; font-size: 13px; }
    .form-options { font-size: 12px; }
    .form-check { font-size: 12px; }
    .password-toggle { font-size: 14px; right: 12px; }

    /* Plan cards */
    .plan-price { font-size: 26px; }
    .plan-card { padding: 20px 16px; }
    .plan-card h4 { font-size: 14px; }
    .plan-period { font-size: 12px; }

    /* Modal footer buttons stack */
    .modal-overlay { padding: 10px; }
    .modal { border-radius: 12px; }
    .modal-header { padding: 16px; }
    .modal-header h3 { font-size: 15px; }
    .modal-body { padding: 14px; }
    .modal-footer { flex-direction: column; padding: 12px 14px; }
    .modal-footer .btn { width: 100%; justify-content: center; }

    /* Alerts */
    .alert { font-size: 13px; padding: 10px 14px; }

    /* Info box */
    .info-box { font-size: 12px; padding: 10px 14px; gap: 8px; }

    /* Code preview */
    .code-preview { font-size: 10px; padding: 10px; line-height: 1.5; }

    /* Filter bar */
    .filter-bar { padding: 12px 14px; }

    /* Pagination */
    .pagination a,
    .pagination span { min-width: 32px; height: 32px; font-size: 12px; padding: 0 8px; }

    /* Settings page cards */
    .card-danger .card-body p { font-size: 13px; }
}

@media (max-width: 360px) {
    .auth-wrapper { padding: 10px 6px; }
    .auth-body { padding: 16px 12px; }
    .auth-header { padding: 20px 12px 0; }
    .auth-header h2 { font-size: 17px; }
    .auth-footer { padding: 0 12px 16px; }
    .auth-logo { font-size: 22px; }
    .auth-btn { font-size: 13px; padding: 11px; }

    .dash-content { padding: 10px; }
    .dash-topbar { padding: 12px 14px; }
    .dash-topbar h1 { font-size: 14px; }

    .stat-card { padding: 14px; }
    .stat-value { font-size: 20px; }
    .stat-label { font-size: 12px; }
    .stat-icon { width: 36px; height: 36px; font-size: 16px; margin-bottom: 10px; }

    .card-header { padding: 12px 14px; }
    .card-body { padding: 14px; }

    .account-card { padding: 14px; }
    .api-key-masked { font-size: 9px; }

    .plan-price { font-size: 22px; }
    .plan-card { padding: 16px 12px; }

    .btn { padding: 7px 12px; font-size: 12px; }
    .btn-sm { padding: 6px 10px; font-size: 11px; }

    .modal-header h3 { font-size: 14px; }
    .modal-body { padding: 12px; }

    .filter-bar { padding: 10px 12px; }

    .table-responsive,
    .table-wrap { margin: 0 -10px; padding: 0 10px; }
    .data-table { min-width: 460px; }
}