/* ── OneSpace Cloud CSS ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --navy: #0f1b2d;
    --blue: #1a5276;
    --accent: #22c55e;
    --accent2: #16a34a;
    --light: #f0f4f8;
    --white: #fff;
    --gray: #64748b;
    --dark: #1e293b;
    --card: #fff;
    --radius: 12px;
    --sidebar-width: 260px;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Plus Jakarta Sans', sans-serif; }

a { color: inherit; text-decoration: none; }

/* ── Landing page nav ──────────────────────────────────────────────── */
nav.landing-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 14px 0; transition: all .3s;
}
nav.landing-nav.scrolled {
    background: rgba(15,27,45,.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0,0,0,.15);
}
.nav-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 32px;
}
.logo {
    font-family: 'Plus Jakarta Sans'; font-weight: 800;
    font-size: 22px; color: var(--white); letter-spacing: -.5px;
}
.logo span { color: var(--accent); }
nav.landing-nav a { color: rgba(255,255,255,.7); font-size: 14px; font-weight: 500; transition: color .2s; }
nav.landing-nav a:hover { color: #fff; }
.nav-spacer { flex: 1; }
.btn-nav {
    background: var(--accent); color: var(--navy) !important;
    padding: 8px 20px; border-radius: 8px; font-weight: 700; font-size: 13px; transition: all .2s;
}
.btn-nav:hover { background: var(--accent2); transform: translateY(-1px); }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 50%, #0f2b4a 100%);
    min-height: 100vh; display: flex; align-items: center;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(34,197,94,.08) 0%, transparent 70%);
    top: -100px; right: -100px; border-radius: 50%;
}
.hero::after {
    content: ''; position: absolute; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(26,82,118,.2) 0%, transparent 70%);
    bottom: -50px; left: -50px; border-radius: 50%;
}
.hero-inner {
    max-width: 1100px; margin: 0 auto; padding: 120px 24px 80px;
    display: flex; align-items: center; gap: 60px; position: relative; z-index: 1;
}
.hero-text { flex: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.25);
    border-radius: 20px; padding: 5px 14px; font-size: 12px;
    color: var(--accent); font-weight: 500; margin-bottom: 20px;
}
.hero-badge .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero h1 {
    font-size: clamp(32px,5vw,52px); color: var(--white);
    line-height: 1.1; margin-bottom: 18px; letter-spacing: -.5px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
    font-size: 18px; color: rgba(255,255,255,.6);
    line-height: 1.6; margin-bottom: 30px; max-width: 480px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { flex: 1; max-width: 480px; }
.hero-mockup {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px; padding: 12px; backdrop-filter: blur(10px);
}
.mockup-bar {
    height: 24px; background: rgba(255,255,255,.04);
    border-radius: 8px 8px 0 0; display: flex;
    align-items: center; padding: 0 10px; gap: 5px; margin-bottom: 8px;
}
.mockup-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.15); }
.mockup-content { display: flex; gap: 8px; height: 280px; }
.mockup-sidebar-demo {
    width: 120px; background: rgba(26,82,118,.5);
    border-radius: 8px; padding: 8px;
}
.mockup-side-item { height: 18px; background: rgba(255,255,255,.08); border-radius: 4px; margin-bottom: 4px; }
.mockup-side-item.active { background: rgba(34,197,94,.3); }
.mockup-main {
    flex: 1; background: rgba(255,255,255,.03);
    border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 6px;
}
.mockup-row { height: 20px; background: rgba(255,255,255,.05); border-radius: 4px; }
.mockup-row.highlight { background: rgba(34,197,94,.15); }
.mockup-stat { display: flex; gap: 6px; margin-bottom: 6px; }
.mockup-stat-card { flex: 1; height: 40px; background: rgba(255,255,255,.05); border-radius: 6px; }

/* ── Sections ──────────────────────────────────────────────────────── */
section { padding: 80px 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-label {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(34,197,94,.08); color: var(--accent2);
    padding: 5px 14px; border-radius: 20px; font-size: 12px;
    font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px;
}
.section-title {
    font-size: clamp(28px,4vw,40px); line-height: 1.15;
    margin-bottom: 14px; letter-spacing: -.3px;
}
.section-desc {
    font-size: 16px; color: var(--gray); line-height: 1.6;
    max-width: 560px; margin-bottom: 40px;
}

/* ── Features ──────────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feature-card {
    background: var(--light); border-radius: var(--radius); padding: 28px 24px;
    border: 1px solid #e2e8f0; transition: all .3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.08); border-color: var(--accent); }
.feature-icon {
    width: 44px; height: 44px; background: linear-gradient(135deg,var(--accent),var(--accent2));
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 14px; color: var(--white);
}
.feature-card h3 { font-size: 16px; margin-bottom: 8px; font-weight: 700; }
.feature-card p { font-size: 13px; color: var(--gray); line-height: 1.5; }

/* ── How it works ──────────────────────────────────────────────────── */
.how-section { background: var(--navy); }
.how-section .section-title,
.how-section .section-desc { color: var(--white); }
.how-section .section-desc { color: rgba(255,255,255,.5); }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; position: relative; }
.steps::before {
    content: ''; position: absolute; top: 32px; left: 40px; right: 40px;
    height: 2px; background: linear-gradient(90deg,var(--accent),rgba(34,197,94,.2));
}
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(34,197,94,.12); border: 2px solid var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Plus Jakarta Sans'; font-size: 24px; font-weight: 800;
    color: var(--accent); margin: 0 auto 16px;
}
.step h3 { color: var(--white); font-size: 15px; margin-bottom: 6px; }
.step p { color: rgba(255,255,255,.45); font-size: 12px; line-height: 1.5; }

/* ── Pricing ───────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.price-card {
    background: var(--card); border: 1px solid #e2e8f0;
    border-radius: var(--radius); padding: 32px 24px; transition: all .3s;
}
.price-card.popular {
    border-color: var(--accent); box-shadow: 0 8px 32px rgba(34,197,94,.12); position: relative;
}
.price-card.popular::before {
    content: 'Най-популярен'; position: absolute; top: -12px; left: 50%;
    transform: translateX(-50%); background: var(--accent); color: var(--navy);
    padding: 3px 14px; border-radius: 12px; font-size: 11px; font-weight: 700;
}
.price-name { font-size: 14px; font-weight: 600; color: var(--gray); margin-bottom: 8px; }
.price-amount { font-size: 36px; font-weight: 800; font-family: 'Plus Jakarta Sans'; margin-bottom: 4px; }
.price-amount span { font-size: 14px; font-weight: 400; color: var(--gray); }
.price-desc {
    font-size: 12px; color: var(--gray); margin-bottom: 20px;
    padding-bottom: 20px; border-bottom: 1px solid #e2e8f0;
}
.price-features { list-style: none; margin-bottom: 24px; }
.price-features li { font-size: 13px; padding: 5px 0; display: flex; align-items: center; gap: 8px; }
.price-features li::before { content: '\2713'; color: var(--accent); font-weight: 700; font-size: 14px; }
.price-btn {
    display: block; text-align: center; padding: 12px; border-radius: 8px;
    font-weight: 700; font-size: 14px; transition: all .2s;
}
.price-btn-outline { border: 1.5px solid #e2e8f0; color: var(--dark); }
.price-btn-outline:hover { border-color: var(--accent); color: var(--accent2); }
.price-btn-fill { background: var(--accent); color: var(--navy); border: none; }
.price-btn-fill:hover { background: var(--accent2); transform: translateY(-1px); }

/* ── CTA ───────────────────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg,var(--navy),#1a3a5c);
    text-align: center; padding: 80px 24px;
}
.cta-section h2 { color: var(--white); font-size: clamp(26px,4vw,36px); margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,.5); font-size: 16px; margin-bottom: 28px; }
.cta-url {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px; padding: 10px 20px; color: rgba(255,255,255,.4);
    font-size: 14px; margin-bottom: 24px; font-family: monospace;
}
.cta-url b { color: var(--accent); font-family: 'DM Sans'; }

/* ── Footer ────────────────────────────────────────────────────────── */
footer.landing-footer {
    background: var(--dark); padding: 40px 0 20px;
    color: rgba(255,255,255,.4); font-size: 12px;
}
.footer-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.footer-logo {
    font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 18px; color: var(--white);
}
.footer-logo span { color: var(--accent); }
footer.landing-footer a { color: rgba(255,255,255,.4); }
footer.landing-footer a:hover { color: rgba(255,255,255,.7); }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 10px; font-size: 15px;
    font-weight: 700; transition: all .25s; cursor: pointer; border: none;
}
.btn-primary { background: #22c55e; color: #0f1b2d; font-weight: 600; }
.btn-primary:hover { background: #16a34a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34,197,94,.3); }
.btn-outline { background: transparent; color: #1e293b; border: 1.5px solid #dce0e5; }
.btn-outline:hover { border-color: #94a3b8; background: #f0f4f8; }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }
/* Landing page overrides (dark background) */
.hero .btn-outline, .cta-section .btn-outline { color: #0f1b2d !important; border-color: #fff !important; background: #fff !important; }
.hero .btn-outline:hover, .cta-section .btn-outline:hover { background: #e2e8f0 !important; }
.btn-secondary { background: var(--light); color: var(--dark); border: 1px solid #e2e8f0; }
.btn-secondary:hover { border-color: var(--accent); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--navy); }

/* ── Sidebar (authenticated) ───────────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-width); background: var(--navy);
    display: flex; flex-direction: column; position: fixed;
    top: 0; left: 0; bottom: 0; z-index: 50;
}
.sidebar-logo {
    font-family: 'Plus Jakarta Sans'; font-weight: 800;
    font-size: 22px; color: var(--white); letter-spacing: -.5px;
    padding: 24px 24px 20px; display: block;
}
.sidebar-logo span { color: var(--accent); }
.sidebar-nav { flex: 1; padding: 0 12px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 8px;
    color: rgba(255,255,255,.6); font-size: 14px; font-weight: 500;
    transition: all .2s;
}
.sidebar-link:hover { background: rgba(255,255,255,.06); color: var(--white); }
.sidebar-link.active { background: rgba(34,197,94,.12); color: var(--accent); }
.sidebar-icon { font-size: 18px; width: 24px; text-align: center; }
.sidebar-divider { height: 1px; background: rgba(255,255,255,.08); margin: 12px 0; }
.sidebar-section-title {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .5px; color: rgba(255,255,255,.3);
    padding: 4px 12px; margin-bottom: 4px;
}
.sidebar-footer {
    padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-user { margin-bottom: 8px; }
.sidebar-user-name {
    display: block; font-size: 13px; font-weight: 600; color: var(--white);
}
.sidebar-user-email {
    display: block; font-size: 11px; color: rgba(255,255,255,.4);
}
.sidebar-logout {
    background: none; border: none; color: rgba(255,255,255,.4);
    font-size: 12px; cursor: pointer; padding: 4px 0;
}
.sidebar-logout:hover { color: #ef4444; }

/* ── Main content area ─────────────────────────────────────────────── */
.main-content {
    margin-left: var(--sidebar-width); flex: 1;
    padding: 32px 40px; background: var(--light); min-height: 100vh;
}

/* ── Cards ──────────────────────────────────────────────────────────── */
.card {
    background: var(--white); border-radius: var(--radius);
    border: 1px solid #e2e8f0; padding: 28px; margin-bottom: 20px;
}
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #e2e8f0;
}
.card-title {
    font-size: 18px; font-weight: 700; color: var(--dark);
}

/* ── Forms ──────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--dark); margin-bottom: 6px;
}
.form-control {
    width: 100%; padding: 10px 14px; border: 1.5px solid #e2e8f0;
    border-radius: 8px; font-size: 14px; font-family: inherit;
    transition: border-color .2s; background: var(--white); color: var(--dark);
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,197,94,.1); }
.form-control::placeholder { color: #94a3b8; }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 11px; color: var(--gray); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check {
    display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] { cursor: pointer; accent-color: var(--accent); }

/* ── Radio group for plans ─────────────────────────────────────────── */
.plan-radio-group { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 8px; }
.plan-radio {
    border: 2px solid #e2e8f0; border-radius: 10px; padding: 16px;
    text-align: center; cursor: pointer; transition: all .2s; position: relative;
}
.plan-radio:hover { border-color: var(--accent); }
.plan-radio input { position: absolute; opacity: 0; }
.plan-radio.selected,
.plan-radio:has(input:checked) { border-color: var(--accent); background: rgba(34,197,94,.04); }
.plan-radio .plan-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.plan-radio .plan-price { font-size: 12px; color: var(--gray); }

/* ── Tables ────────────────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
    padding: 10px 14px; text-align: left; font-size: 13px;
    border-bottom: 1px solid #e2e8f0;
}
.table th { font-weight: 600; color: var(--gray); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.table tr:hover td { background: rgba(34,197,94,.02); }

/* ── Status badges ─────────────────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-under-review { background: #dbeafe; color: #1e40af; }
.badge-approved { background: #dcfce7; color: #166534; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-active { background: #dcfce7; color: #166534; }
.badge-trial { background: #e0e7ff; color: #3730a3; }

/* ── Progress bars ─────────────────────────────────────────────────── */
.progress { height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.progress-bar {
    height: 100%; background: var(--accent); border-radius: 4px; transition: width .3s;
}
.progress-bar.warning { background: #f59e0b; }
.progress-bar.danger { background: #ef4444; }

/* ── Info / stat items ─────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat-item {
    background: var(--light); border-radius: 10px; padding: 18px;
}
.stat-label { font-size: 12px; color: var(--gray); margin-bottom: 4px; }
.stat-value { font-size: 20px; font-weight: 700; color: var(--dark); }

/* ── Timeline ──────────────────────────────────────────────────────── */
.timeline { display: flex; align-items: center; gap: 0; margin: 24px 0; }
.timeline-step {
    display: flex; flex-direction: column; align-items: center; flex: 1; position: relative;
}
.timeline-step::after {
    content: ''; position: absolute; top: 16px; left: 50%; width: 100%;
    height: 2px; background: #e2e8f0;
}
.timeline-step:last-child::after { display: none; }
.timeline-step.completed::after { background: var(--accent); }
.timeline-dot {
    width: 32px; height: 32px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 14px;
    font-weight: 700; position: relative; z-index: 1;
    background: #e2e8f0; color: var(--gray);
}
.timeline-step.completed .timeline-dot { background: var(--accent); color: var(--white); }
.timeline-step.active .timeline-dot {
    background: var(--white); border: 2px solid var(--accent); color: var(--accent);
}
.timeline-step.rejected .timeline-dot { background: #ef4444; color: var(--white); }
.timeline-label { font-size: 11px; color: var(--gray); margin-top: 8px; text-align: center; }

/* ── API Key display ───────────────────────────────────────────────── */
.key-display {
    display: flex; align-items: center; gap: 10px;
    background: var(--light); border: 1px solid #e2e8f0; border-radius: 8px;
    padding: 10px 14px; font-family: monospace; font-size: 13px;
}
.key-value { flex: 1; word-break: break-all; }
.key-btn {
    background: var(--dark); color: var(--white); border: none;
    padding: 6px 12px; border-radius: 6px; font-size: 11px;
    cursor: pointer; white-space: nowrap;
}
.key-btn:hover { background: var(--navy); }

/* ── Alert/messages ────────────────────────────────────────────────── */
.alert {
    padding: 14px 18px; border-radius: 10px; font-size: 13px;
    margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Quick links ───────────────────────────────────────────────────── */
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.quick-link {
    display: flex; align-items: center; gap: 12px;
    padding: 16px; border-radius: 10px; background: var(--white);
    border: 1px solid #e2e8f0; transition: all .2s;
}
.quick-link:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.quick-link-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; background: rgba(34,197,94,.08);
}
.quick-link-text { font-size: 14px; font-weight: 600; }
.quick-link-desc { font-size: 11px; color: var(--gray); }

/* ── CTA Card ──────────────────────────────────────────────────────── */
.cta-card {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
    border-radius: var(--radius); padding: 32px; text-align: center;
    margin-bottom: 20px;
}
.cta-card h3 { color: var(--white); font-size: 20px; margin-bottom: 8px; }
.cta-card p { color: rgba(255,255,255,.5); font-size: 14px; margin-bottom: 20px; }

/* ── Auth pages ────────────────────────────────────────────────────── */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 50%, #0f2b4a 100%);
    padding: 24px;
}
.auth-card {
    background: var(--white); border-radius: 16px; padding: 40px;
    width: 100%; max-width: 440px; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.auth-logo {
    font-family: 'Plus Jakarta Sans'; font-weight: 800;
    font-size: 28px; color: var(--navy); text-align: center; margin-bottom: 8px;
}
.auth-logo span { color: var(--accent); }
.auth-subtitle {
    text-align: center; font-size: 14px; color: var(--gray); margin-bottom: 28px;
}
.auth-footer {
    text-align: center; font-size: 13px; color: var(--gray); margin-top: 20px;
}
.auth-footer a { color: var(--accent2); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ── Info rows ─────────────────────────────────────────────────────── */
.info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid #f1f5f9;
}
.info-row:last-child { border-bottom: none; }
.info-label { font-size: 13px; color: var(--gray); }
.info-value { font-size: 13px; font-weight: 600; color: var(--dark); }

/* ── Validation ────────────────────────────────────────────────────── */
.text-danger { color: #dc2626; font-size: 12px; }
.validation-summary-errors ul { list-style: none; padding: 0; }
.validation-summary-errors ul li { color: #dc2626; font-size: 12px; margin-bottom: 4px; }

/* ── Page header ───────────────────────────────────────────────────── */
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.page-header p { font-size: 14px; color: var(--gray); }

/* ── Responsive ────────────────────────────────────────────────────── */
/* ── Admin Panel ──────────────────────────────────────────────────── */
.admin-page { max-width: 1200px; }

.page-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 24px; flex-wrap: wrap;
}
.page-header h1 { font-size: 24px; font-weight: 800; margin-bottom: 0; }

.header-badges { display: flex; gap: 8px; flex-wrap: wrap; }

.count-badge {
    display: inline-flex; align-items: center;
    padding: 4px 12px; border-radius: 20px; font-size: 12px;
    font-weight: 600; background: var(--light); color: var(--dark);
    border: 1px solid #e2e8f0;
}
.count-badge.badge-warning { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.count-badge.badge-success { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.count-badge.badge-danger { background: #fee2e2; color: #991b1b; border-color: #fecaca; }

/* ── Filter Tabs ──────────────────────────────────────────────────── */
.filter-tabs {
    display: flex; gap: 4px; margin-bottom: 20px;
    background: var(--white); border: 1px solid #e2e8f0;
    border-radius: 10px; padding: 4px; width: fit-content;
}
.filter-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 8px; font-size: 13px;
    font-weight: 600; color: var(--gray); transition: all .2s;
    cursor: pointer;
}
.filter-tab:hover { background: var(--light); color: var(--dark); }
.filter-tab.active { background: var(--navy); color: var(--white); }
.filter-tab.active.filter-warning { background: #f59e0b; color: #fff; }
.filter-tab.active.filter-success { background: var(--accent); color: var(--navy); }
.filter-tab.active.filter-danger { background: #ef4444; color: #fff; }
.tab-count {
    background: rgba(0,0,0,.1); padding: 1px 7px; border-radius: 10px; font-size: 11px;
}
.filter-tab.active .tab-count { background: rgba(255,255,255,.2); }

/* ── Admin Table ──────────────────────────────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
    padding: 12px 16px; text-align: left; font-size: 13px;
    border-bottom: 1px solid #f1f5f9;
}
.admin-table th {
    font-weight: 600; color: var(--gray); font-size: 11px;
    text-transform: uppercase; letter-spacing: .5px;
    background: var(--light); position: sticky; top: 0;
}
.admin-table tbody tr { transition: background .15s; }
.admin-table tbody tr:hover { background: rgba(34,197,94,.03); }
.admin-table td strong { color: var(--dark); }
.empty-state {
    text-align: center; padding: 40px 20px; color: var(--gray);
    font-size: 14px;
}

/* ── Status Badges ────────────────────────────────────────────────── */
.status-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-review { background: #dbeafe; color: #1e40af; }
.status-approved { background: #dcfce7; color: #166534; }
.status-rejected { background: #fee2e2; color: #991b1b; }

/* ── Direction Badges ─────────────────────────────────────────────── */
.direction-badge {
    display: inline-flex; padding: 3px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 600;
}
.direction-pull { background: #dbeafe; color: #1e40af; }
.direction-push { background: #e0e7ff; color: #4338ca; }

/* ── Back Link ────────────────────────────────────────────────────── */
.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--gray);
    margin-bottom: 20px; transition: color .2s;
}
.back-link:hover { color: var(--accent2); }

/* ── Info Grid ────────────────────────────────────────────────────── */
.info-grid { margin-bottom: 8px; }

/* ── Action Cards ─────────────────────────────────────────────────── */
.action-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card-approve { border-top: 3px solid var(--accent); }
.card-reject { border-top: 3px solid #ef4444; }

/* ── Card Actions ─────────────────────────────────────────────────── */
.card-actions { margin-top: 16px; padding-top: 16px; border-top: 1px solid #f1f5f9; }

/* ── Buttons (admin extensions) ───────────────────────────────────── */
.btn-full { width: 100%; justify-content: center; }
.btn-success { background: #22c55e !important; color: #0f1b2d !important; font-weight: 600; }
.btn-success:hover { background: #16a34a !important; }
.btn-warning { background: #f59e0b !important; color: #fff !important; font-weight: 600; }
.btn-warning:hover { background: #d97706 !important; }
.btn-primary { background: #22c55e !important; color: #0f1b2d !important; font-weight: 600; }
.btn-primary:hover { background: #16a34a !important; }
.btn-danger { background: #dc2626 !important; color: #fff !important; font-weight: 600; }
.btn-danger:hover { background: #b91c1c !important; }
.btn-outline { background: transparent !important; color: #1e293b !important; border: 1px solid #dce0e5 !important; }
.btn-outline:hover { background: #f0f4f8 !important; }
.btn-icon {
    background: none; border: none; cursor: pointer; font-size: 16px;
    padding: 4px 6px; border-radius: 4px; transition: background .2s;
}
.btn-icon:hover { background: var(--light); }

/* ── Monospace ─────────────────────────────────────────────────────── */
.monospace { font-family: 'Courier New', monospace; font-size: 12px; }
.masked-value { letter-spacing: .5px; }

/* ── Edit Section (details/summary) ───────────────────────────────── */
.edit-section { margin-top: 16px; }
.edit-section summary { cursor: pointer; list-style: none; display: inline-flex; }
.edit-section summary::-webkit-details-marker { display: none; }
.edit-section[open] summary { margin-bottom: 16px; }
.edit-form { padding: 16px; background: var(--light); border-radius: 10px; }

/* ── Inline Edit Form (subscriptions table) ───────────────────────── */
.edit-row td { background: var(--light) !important; }
.inline-edit-form { padding: 12px 0; }
.inline-edit-form .form-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px; margin-bottom: 12px;
}
.inline-edit-form .form-group { margin-bottom: 0; }
.form-actions { display: flex; gap: 8px; }

/* ── Timeline (admin override for horizontal display) ─────────────── */
.admin-page .timeline {
    display: flex; align-items: flex-start; gap: 0;
    padding: 8px 0; justify-content: flex-start;
}
.admin-page .timeline-step {
    display: flex; flex-direction: column; align-items: center;
    min-width: 120px; flex: 0 0 auto;
}
.admin-page .timeline-line {
    flex: 0 0 60px; height: 2px; background: #e2e8f0;
    align-self: center; margin-top: 14px;
}
.admin-page .timeline-line.completed { background: var(--accent); }
.admin-page .timeline-step .timeline-dot {
    width: 30px; height: 30px; border-radius: 50%;
    background: #e2e8f0; display: flex; align-items: center;
    justify-content: center; margin-bottom: 8px; flex-shrink: 0;
}
.admin-page .timeline-step.completed .timeline-dot {
    background: var(--accent); color: #fff;
}
.admin-page .timeline-step.completed.rejected .timeline-dot {
    background: #ef4444; color: #fff;
}
.admin-page .timeline-content {
    text-align: center; font-size: 13px;
}
.admin-page .timeline-content strong { display: block; margin-bottom: 2px; }
.admin-page .timeline-date { font-size: 11px; color: var(--gray); }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-inner { flex-direction: column; text-align: center; padding-top: 100px; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { max-width: 100%; }
    .features-grid, .pricing-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2,1fr); }
    .steps::before { display: none; }
    .sidebar { transform: translateX(-100%); transition: transform .3s; }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 20px; }
    .form-row { grid-template-columns: 1fr; }
    .plan-radio-group { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr; }
    .action-cards { grid-template-columns: 1fr; }
    .filter-tabs { flex-wrap: wrap; }
    .admin-table { font-size: 12px; }
    .admin-table th, .admin-table td { padding: 8px 10px; }
}
