/* Stripe Billing Kit — Base Styles
   Override or extend in your project. */

:root {
    --brand-primary: #6366f1;
    --brand-dark:    #4f46e5;
    --brand-light:   #eef2ff;
    --text-muted:    #6b7280;
}

/* ── Pricing cards ──────────────────────────────────────────────────────────── */
.pricing-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 32px 28px;
    background: #fff;
    transition: box-shadow .2s, transform .2s;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
    transform: translateY(-3px);
}
.pricing-card.featured {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px var(--brand-primary), 0 8px 30px rgba(99,102,241,.15);
}

.plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 3px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.plan-name  { font-size: 1.2rem; font-weight: 700; color: #111827; }
.plan-tagline { font-size: .83rem; color: var(--text-muted); margin-bottom: 20px; }
.plan-price { font-size: 2.6rem; font-weight: 800; color: #111827; line-height: 1; }
.plan-price sup { font-size: 1.2rem; vertical-align: super; font-weight: 600; }
.plan-price .interval { font-size: .9rem; font-weight: 400; color: var(--text-muted); }

.plan-features { list-style: none; padding: 0; margin: 24px 0; flex: 1; }
.plan-features li {
    padding: 6px 0;
    font-size: .88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
}
.plan-features li .check   { color: #22c55e; font-weight: 700; }
.plan-features li .cross   { color: #d1d5db; }
.plan-features li.disabled { color: #9ca3af; }

.btn-plan {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity .15s;
}
.btn-plan:hover { opacity: .88; }
.btn-plan-primary { background: var(--brand-primary); color: #fff; }
.btn-plan-outline { background: #fff; color: var(--brand-primary); border: 2px solid var(--brand-primary); }

/* ── Subscribe / Success pages ───────────────────────────────────────────────── */
.auth-card {
    max-width: 480px;
    width: 100%;
    background: #fff;
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

/* ── Admin ───────────────────────────────────────────────────────────────────── */
.admin-sidebar {
    width: 220px;
    min-height: 100vh;
    background: #1e1b4b;
    color: #c7d2fe;
    flex-shrink: 0;
}
.admin-sidebar .brand {
    padding: 20px 20px 12px;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    border-bottom: 1px solid #312e81;
    margin-bottom: 8px;
}
.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #a5b4fc;
    text-decoration: none;
    font-size: .875rem;
    border-radius: 0;
    transition: background .15s, color .15s;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background: #312e81;
    color: #fff;
}
.admin-content { flex: 1; background: #f8f9fa; padding: 32px; }
.admin-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}
.stat-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.stat-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.si-blue   { background: #eff6ff; color: #3b82f6; }
.si-green  { background: #f0fdf4; color: #22c55e; }
.si-purple { background: #f5f3ff; color: #8b5cf6; }
.si-orange { background: #fff7ed; color: #f97316; }
.stat-val  { font-size: 1.6rem; font-weight: 700; color: #111827; line-height: 1; }
.stat-lbl  { font-size: .78rem; color: #6b7280; margin-top: 2px; }

.table-kit { width: 100%; border-collapse: collapse; }
.table-kit th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; padding: 10px 14px; border-bottom: 2px solid #e5e7eb; }
.table-kit td { padding: 12px 14px; border-bottom: 1px solid #f3f4f6; font-size: .875rem; vertical-align: middle; }
.table-kit tr:hover td { background: #f9fafb; }

.badge-active    { background: #dcfce7; color: #166534; padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 600; }
.badge-inactive  { background: #f3f4f6; color: #6b7280; padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 600; }
.badge-featured  { background: #ede9fe; color: #6d28d9; padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 600; }

.btn-kit         { padding: 8px 16px; border-radius: 7px; font-size: .875rem; font-weight: 500; border: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-kit-primary { background: var(--brand-primary); color: #fff; }
.btn-kit-outline { background: #fff; color: #374151; border: 1px solid #d1d5db; }
.btn-kit-danger  { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.btn-kit:hover   { opacity: .88; }
