*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-body: #020617;
    --bg-surface: #f3f4f6;
    --text-main: #0f172a;
    --muted: #6b7280;
    --primary: #4f46e5;
    --primary-soft: #6366f1;
    --accent: #06b6d4;
}

/* Landing */

.landing-body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Roboto", sans-serif;
    background: radial-gradient(circle at top left, #4f46e5 0, #020617 50%, #000000 100%);
    color: #e5e7eb;
    min-height: 100vh;
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.75), transparent);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.landing-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 16px;
}

.landing-header .landing-inner {
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: conic-gradient(from 140deg, #22c55e, #06b6d4, #4f46e5, #22c55e);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.7);
}

.brand-name {
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 14px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 18px;
    font-size: 13px;
}

.nav-links a {
    color: #cbd5f5;
    text-decoration: none;
    opacity: 0.85;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-actions .btn-ghost-small {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.65);
    color: #e5e7eb;
    text-decoration: none;
}

/* Hero */

.hero {
    padding: 42px 0 32px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.hero-text h1 {
    font-size: 34px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 14px;
    color: #cbd5f5;
    max-width: 480px;
    margin-bottom: 18px;
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-primary-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.7);
}

.btn-ghost-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    text-decoration: none;
    color: #e5e7eb;
    font-size: 14px;
}

.hero-footnote {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
}

.eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #a5b4fc;
    margin-bottom: 6px;
}

/* Hero card */

.hero-card {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.1), rgba(15, 23, 42, 0.96));
    border-radius: 22px;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(148, 163, 184, 0.4);
    overflow: hidden;
    color: #e5e7eb;
}

.hero-card-top {
    padding: 16px 18px 6px;
    border-bottom: 1px solid rgba(30, 64, 175, 0.7);
}

.hero-card-title-row {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.pill {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
}

.pill-green {
    background: rgba(22, 163, 74, 0.25);
    color: #bbf7d0;
}

.pill-soft {
    background: rgba(129, 140, 248, 0.2);
    color: #e0e7ff;
}

.hero-card-top h2 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
}

.hero-card-sub {
    font-size: 12px;
    color: #9ca3af;
}

.hero-card-body {
    padding: 14px 18px 16px;
    font-size: 13px;
}

.hero-mock-balance {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
}

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

.hero-mock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 16px;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
}

.hero-countdown .mono {
    font-weight: 500;
}

.hero-mock-log {
    margin: 10px 0 12px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(55, 65, 81, 0.9);
}

.log-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 4px;
}

.log-line:last-child {
    margin-bottom: 0;
}

.log-muted {
    color: #6b7280;
}

.log-tag {
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.2);
    font-size: 11px;
}

.hero-card-foot {
    padding: 8px 18px 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.9);
    font-size: 11px;
    color: #9ca3af;
}

/* Sections */

.section {
    padding: 40px 0 28px;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617 60%, #000000 100%);
    color: #e5e7eb;
}

.section-alt {
    background: #020617;
}

.section-title {
    font-size: 22px;
    margin-bottom: 6px;
}

.section-subtitle {
    font-size: 13px;
    color: #9ca3af;
    max-width: 540px;
}

/* Steps */

.steps {
    list-style: none;
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.steps li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* Features */

.features-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.feature-card {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), rgba(15, 23, 42, 0.98));
    font-size: 13px;
}

.feature-card h3 {
    font-size: 14px;
    margin-bottom: 4px;
}

/* Pricing */

.pricing-block {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pricing-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 18px;
    background: radial-gradient(circle at top left, rgba(52, 211, 153, 0.1), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(34, 197, 94, 0.4);
    padding: 14px 18px;
}

.pricing-label {
    font-size: 12px;
    color: #a7f3d0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.pricing-value {
    font-size: 24px;
    font-weight: 600;
}

.pricing-note {
    font-size: 12px;
    color: #bbf7d0;
}

/* Footer */

.landing-footer {
    border-top: 1px solid rgba(30, 64, 175, 0.5);
    padding: 12px 0 16px;
    background: #020617;
    color: #6b7280;
    font-size: 12px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* App pages */

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Roboto", sans-serif;
    color: var(--text-main);
}

.bg-gradient {
    min-height: 100vh;
    background: radial-gradient(circle at top left, var(--primary) 0, #0f172a 40%, #020617 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-surface {
    min-height: 100vh;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

/* Topbar */

.topbar {
    height: 60px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-text {
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 14px;
    text-transform: uppercase;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #475569;
}

/* Layout */

.page {
    max-width: 960px;
    margin: 24px auto 40px;
    padding: 0 16px;
}

.grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

/* Cards */

.card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(148, 163, 184, 0.15);
    overflow: hidden;
}

.card-header {
    padding: 14px 18px 8px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.card-header h2 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #6b7280;
}

.card-body {
    padding: 16px 18px 18px;
    font-size: 14px;
}

/* Balance */

.balance-amount {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* Buttons */

.btn-primary-full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
    width: 100%;
}

.btn-primary-full:disabled {
    opacity: 0.6;
    cursor: default;
    box-shadow: none;
}

.btn-primary-full:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.4);
}

/* Login */

.center-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 16px;
}

.login-card {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(30, 64, 175, 0.4);
    color: #e5e7eb;
}

.login-card .title {
    font-size: 20px;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 4px;
    text-align: center;
    color: #f9fafb;
}

.subtitle {
    text-align: center;
    font-size: 13px;
    color: #cbd5f5;
    margin-bottom: 16px;
}

.logo-circle {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px auto 2px;
    font-size: 24px;
    background: radial-gradient(circle at 30% 0%, #a855f7, #4f46e5);
    color: white;
}

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

.field-label {
    font-size: 12px;
    font-weight: 500;
    color: #e5e7eb;
    margin-top: 4px;
}

.input {
    width: 100%;
    padding: 9px 11px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    font-size: 14px;
    outline: none;
    background: rgba(15, 23, 42, 0.8);
    color: #f9fafb;
}

.input:focus {
    border-color: #e5e7eb;
}

/* Alerts */

.alert {
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 12px;
    margin-bottom: 8px;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Status chips */

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
}

.status-pending {
    background: #fef9c3;
    color: #92400e;
}

.status-received {
    background: #dcfce7;
    color: #166534;
}

.status-expired {
    background: #fee2e2;
    color: #b91c1c;
}

/* Helpers */

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

.small-muted {
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
}

.link:hover {
    text-decoration: underline;
}

.user-email {
    font-weight: 500;
}

/* Responsive */

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .features-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .landing-header .landing-inner {
        justify-content: space-between;
    }
    .nav-links {
        display: none;
    }
    .footer-inner {
        flex-direction: column;
    }
}

/* Tables for sessions & history */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.session-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.session-table th,
.session-table td {
    padding: 7px 8px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    text-align: left;
    white-space: nowrap;
}

.session-table th {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.session-table td.sms-cell {
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sessions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.link-small {
    font-size: 12px;
    text-decoration: none;
    color: #4f46e5;
}

.link-small:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.page-link {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    text-decoration: none;
    color: #374151;
    background: #f9fafb;
}

.page-link:hover {
    background: #e5e7eb;
}

.page-current {
    color: #6b7280;
}
