/* CleanPay — AngelSix Licensing Platform */

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

body {
    font-family: 'Outfit', sans-serif;
    background: #0d1117;
    color: #d1d5db;
    font-size: 15px;
    line-height: 1.6;
}

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

/* ─── Nav ─────────────────────────────────────────────────── */
.cp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 56px;
    border-bottom: 1px solid #161b22;
    position: sticky;
    top: 0;
    background: rgba(13,17,23,0.92);
    backdrop-filter: blur(8px);
    z-index: 10;
}

.nav-logo {
    font-size: 15px;
    font-weight: 600;
    color: #f0f6fc;
    letter-spacing: -0.01em;
}

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

.btn-ghost {
    background: none;
    border: none;
    font: inherit;
    font-size: 13px;
    color: #8b949e;
    cursor: pointer;
    padding: 7px 14px;
    border-radius: 6px;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-block;
}
.btn-ghost:hover { color: #f0f6fc; background: #161b22; }

.btn-cta {
    background: #f0f6fc;
    color: #0d1117;
    border: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.15s;
    text-decoration: none;
    display: inline-block;
}
.btn-cta:hover { opacity: 0.88; color: #0d1117; }
.env-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
}
.env-badge.live {
    color: #9fd6b3;
    background: rgba(63,185,80,0.12);
    border-color: rgba(63,185,80,0.2);
}
.env-badge.test {
    color: #9bc9ff;
    background: rgba(31,111,235,0.14);
    border-color: rgba(31,111,235,0.24);
}

/* ─── Notice Bar ──────────────────────────────────────────── */
.notice {
    background: #0d1117;
    border-bottom: 1px solid #161b22;
    padding: 9px 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}
.notice-inner { display: flex; align-items: center; gap: 10px; }
.n-badge {
    background: #6e4f00;
    color: #e3b341;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 100px;
    letter-spacing: 0.04em;
}
.n-badge-blue {
    background: rgba(31,111,235,0.15);
    color: #58a6ff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 100px;
    letter-spacing: 0.04em;
}
.notice p { font-size: 12px; color: #8b949e; }
.notice a { font-size: 12px; color: #58a6ff; text-decoration: none; }
.notice a:hover { text-decoration: underline; }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
    padding: 80px 48px 0;
    max-width: 1060px;
    margin: 0 auto;
    text-align: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #161b22;
    border: 1px solid #21262d;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 12px;
    color: #8b949e;
    margin-bottom: 28px;
}
.hero-eyebrow span { color: #58a6ff; font-weight: 500; }

.hero h1 {
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #f0f6fc;
    margin-bottom: 20px;
}

.hero p {
    font-size: 16px;
    color: #8b949e;
    max-width: 500px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-cta { display: flex; gap: 12px; justify-content: center; align-items: center; margin-bottom: 64px; flex-wrap: wrap; }

.btn-cta-lg {
    background: #f0f6fc;
    color: #0d1117;
    border: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.15s;
}
.btn-cta-lg:hover { opacity: 0.88; color: #0d1117; }

.btn-outline-lg {
    background: none;
    border: 1px solid #30363d;
    font: inherit;
    font-size: 14px;
    color: #d1d5db;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s;
    text-decoration: none;
    display: inline-block;
}
.btn-outline-lg:hover { border-color: #8b949e; color: #d1d5db; }

/* ─── Hero Card ───────────────────────────────────────────── */
.hero-card {
    background: #161b22;
    border: 1px solid #21262d;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    max-width: 780px;
    margin: 0 auto;
}

.card-bar {
    background: #0d1117;
    border-bottom: 1px solid #21262d;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-dot { width: 10px; height: 10px; border-radius: 50%; }

.card-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #21262d;
}

.card-cell { background: #161b22; padding: 24px 20px; }
.cell-label { font-size: 10px; color: #484f58; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; margin-bottom: 8px; }
.cell-val { font-size: 18px; font-weight: 600; color: #f0f6fc; margin-bottom: 4px; }
.cell-val.ok { color: #3fb950; }
.cell-sub { font-size: 11px; color: #484f58; line-height: 1.4; }

/* ─── Divider ─────────────────────────────────────────────── */
.divider { height: 1px; background: #161b22; margin: 56px 48px 0; }

/* ─── Features ────────────────────────────────────────────── */
.features {
    max-width: 1060px;
    margin: 0 auto;
    padding: 48px 48px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.feat-n { font-size: 10px; color: #30363d; font-weight: 600; letter-spacing: 0.08em; margin-bottom: 12px; }
.feat-t { font-size: 14px; font-weight: 500; color: #d1d5db; margin-bottom: 6px; }
.feat-b { font-size: 13px; color: #484f58; line-height: 1.6; }

/* ─── How It Works ────────────────────────────────────────── */
.how {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 48px 72px;
}
.how-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-top: 8px;
}
.how-head h2 { font-size: 16px; font-weight: 600; color: #f0f6fc; }
.how-head span { font-size: 12px; color: #484f58; }

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

.step {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 8px;
    padding: 24px;
}
.step-n { font-size: 11px; color: #30363d; font-weight: 600; margin-bottom: 14px; letter-spacing: 0.06em; }
.step h3 { font-size: 14px; font-weight: 500; color: #d1d5db; margin-bottom: 8px; }
.step p { font-size: 13px; color: #484f58; line-height: 1.6; }
.step-tag {
    display: inline-block;
    margin-top: 12px;
    font-size: 11px;
    color: #3fb950;
    background: rgba(63,185,80,0.1);
    border: 1px solid rgba(63,185,80,0.15);
    padding: 3px 9px;
    border-radius: 100px;
}

/* ─── Footer ──────────────────────────────────────────────── */
footer, .site-footer {
    border-top: 1px solid #161b22;
    padding: 20px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
footer span, .site-footer span { font-size: 12px; color: #484f58; }

/* ─── Admin Layout ────────────────────────────────────────── */
.admin-layout { display: flex; min-height: calc(100vh - 56px); }

.admin-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #0d1117;
    border-right: 1px solid #161b22;
    padding: 24px 0;
}

.sidebar-brand {
    font-size: 14px;
    font-weight: 600;
    color: #f0f6fc;
    padding: 0 20px 20px;
    letter-spacing: -0.01em;
    display: block;
    border-bottom: 1px solid #161b22;
    margin-bottom: 16px;
}

.sidebar-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #484f58;
    padding: 0 20px;
    margin: 16px 0 4px;
    display: block;
}

.sidebar-link {
    display: block;
    padding: 6px 20px;
    font-size: 13px;
    color: #8b949e;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.12s;
    border-left: 2px solid transparent;
}
.sidebar-link:hover { color: #f0f6fc; background: #161b22; }
.sidebar-link.active { color: #f0f6fc; border-left-color: #58a6ff; background: rgba(31,111,235,0.06); }

.admin-main { flex: 1; padding: 40px 48px; overflow-y: auto; background: #0d1117; }

/* ─── Admin Page Header ───────────────────────────────────── */
.page-title { font-size: 22px; font-weight: 600; color: #f0f6fc; margin-bottom: 6px; letter-spacing: -0.02em; }
.page-subtitle { font-size: 14px; color: #484f58; margin-bottom: 32px; }

/* ─── Cards ───────────────────────────────────────────────── */
.cp-card {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}
.cp-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #21262d;
}
.cp-card-header h2, .cp-card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #f0f6fc;
    margin: 0;
}

/* ─── Stats ───────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.stat-card { background: #161b22; border: 1px solid #21262d; border-radius: 8px; padding: 20px; }
.stat-value { font-size: 24px; font-weight: 600; color: #f0f6fc; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 11px; color: #484f58; }

/* ─── Tables ──────────────────────────────────────────────── */
.cp-table { width: 100%; border-collapse: collapse; }
.cp-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #484f58;
    padding: 8px 12px;
    border-bottom: 1px solid #21262d;
}
.cp-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(33,38,45,0.6);
    font-size: 13px;
    color: #d1d5db;
    vertical-align: middle;
}
.cp-table tr:hover td { background: rgba(22,27,34,0.5); }
.cp-table tr:last-child td { border-bottom: none; }

/* ─── Badges ──────────────────────────────────────────────── */
.badge-success { background: rgba(63,185,80,0.1);  color: #3fb950; padding: 2px 8px; border-radius: 100px; font-size: 11px; font-weight: 500; border: 1px solid rgba(63,185,80,0.15); }
.badge-muted   { background: rgba(72,79,88,0.15);  color: #6e7681; padding: 2px 8px; border-radius: 100px; font-size: 11px; font-weight: 500; border: 1px solid #21262d; }
.badge-warning { background: rgba(187,128,9,0.15); color: #d29922; padding: 2px 8px; border-radius: 100px; font-size: 11px; font-weight: 500; border: 1px solid rgba(187,128,9,0.2); }
.badge-danger  { background: rgba(248,81,73,0.1);  color: #f85149; padding: 2px 8px; border-radius: 100px; font-size: 11px; font-weight: 500; border: 1px solid rgba(248,81,73,0.15); }

/* ─── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 24px; }

.form-label-cp {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 8px;
}

.form-control-cp {
    display: block;
    width: 100%;
    background: #0d1117;
    border: 1px solid #30363d;
    color: #f0f6fc;
    padding: 10px 14px;
    font: inherit;
    font-size: 14px;
    border-radius: 6px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control-cp:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(31,111,235,0.15);
}
.form-control-cp::placeholder { color: #484f58; }

.form-control, .form-select {
    background-color: #0d1117 !important;
    border-color: #30363d !important;
    color: #f0f6fc !important;
    border-radius: 6px !important;
    font-size: 13px !important;
}
.form-control:focus, .form-select:focus {
    border-color: #58a6ff !important;
    box-shadow: 0 0 0 3px rgba(31,111,235,0.15) !important;
    background-color: #0d1117 !important;
}

/* ─── Alerts ──────────────────────────────────────────────── */
.alert-cp-success { background: rgba(63,185,80,0.1);  border: 1px solid rgba(63,185,80,0.2);  color: #3fb950; border-radius: 6px; padding: 12px 16px; margin-bottom: 16px; font-size: 13px; }
.alert-cp-danger  { background: rgba(248,81,73,0.1);  border: 1px solid rgba(248,81,73,0.2);  color: #f85149; border-radius: 6px; padding: 12px 16px; margin-bottom: 16px; font-size: 13px; }
.alert-cp-info    { background: rgba(31,111,235,0.1); border: 1px solid rgba(31,111,235,0.2); color: #58a6ff; border-radius: 6px; padding: 12px 16px; margin-bottom: 16px; font-size: 13px; }

/* ─── Admin Buttons ───────────────────────────────────────── */
.btn-cp-primary {
    display: inline-block;
    background: #f0f6fc;
    color: #0d1117;
    border: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.15s;
    text-decoration: none;
}
.btn-cp-primary:hover { opacity: 0.88; color: #0d1117; }
.btn-cp-primary.btn-sm { padding: 5px 12px; font-size: 12px; }

.btn-cp-secondary {
    display: inline-block;
    background: none;
    border: 1px solid #30363d;
    font: inherit;
    font-size: 13px;
    color: #d1d5db;
    padding: 7px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s;
    text-decoration: none;
}
.btn-cp-secondary:hover { border-color: #8b949e; color: #d1d5db; }

.btn-cp-danger {
    display: inline-block;
    background: rgba(248,81,73,0.1);
    border: 1px solid rgba(248,81,73,0.2);
    font: inherit;
    font-size: 12px;
    color: #f85149;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}
.btn-cp-danger:hover { background: rgba(248,81,73,0.18); color: #f85149; }

.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ─── Auth ────────────────────────────────────────────────── */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.auth-card {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 8px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
}
.auth-logo {
    font-size: 15px;
    font-weight: 600;
    color: #f0f6fc;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}
.auth-title {
    font-size: 16px;
    font-weight: 600;
    color: #f0f6fc;
    text-align: center;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.auth-subtitle { font-size: 13px; color: #8b949e; text-align: center; margin-bottom: 24px; }

/* ─── Purchase Result ─────────────────────────────────────── */
.result-container { min-height: calc(100vh - 56px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.result-card { background: #161b22; border: 1px solid #21262d; border-radius: 8px; padding: 40px; text-align: center; max-width: 480px; width: 100%; }
.result-icon { font-size: 2rem; margin-bottom: 20px; display: block; line-height: 1; }
.result-card h2 { font-size: 18px; font-weight: 600; color: #f0f6fc; margin-bottom: 12px; letter-spacing: -0.02em; }
.result-card p { font-size: 13px; color: #8b949e; line-height: 1.7; }

/* ─── Key Display ─────────────────────────────────────────── */
.key-text {
    font-family: 'SF Mono', 'Fira Mono', 'Consolas', monospace;
    font-size: 12px;
    color: #58a6ff;
    background: rgba(31,111,235,0.1);
    border: 1px solid rgba(31,111,235,0.15);
    padding: 2px 6px;
    border-radius: 4px;
    word-break: break-all;
}

.config-note {
    font-size: 13px;
    color: #8b949e;
    margin-top: 8px;
    line-height: 1.6;
}

.mode-toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mode-toggle-card {
    display: block;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.02);
    cursor: pointer;
}

.mode-toggle-card.active {
    border-color: #58a6ff;
    box-shadow: 0 0 0 1px rgba(88,166,255,0.22) inset;
}

.mode-toggle-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #f0f6fc;
    margin: 4px 0 6px;
}

.mode-toggle-body {
    display: block;
    color: #8b949e;
    font-size: 13px;
    line-height: 1.6;
}

.checklist-block {
    padding-left: 22px;
    color: #d1d5db;
    display: grid;
    gap: 12px;
}

.checklist-block li {
    line-height: 1.7;
}

.sandbox-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
}

.sandbox-status-band {
    display: grid;
    gap: 4px;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.sandbox-status-band.live {
    background: rgba(63,185,80,0.12);
    border: 1px solid rgba(63,185,80,0.2);
    color: #b6f0c7;
}

.sandbox-status-band.test {
    background: rgba(31,111,235,0.12);
    border: 1px solid rgba(31,111,235,0.2);
    color: #b4d9ff;
}

.sandbox-status-band span {
    color: #8b949e;
    font-size: 13px;
}

.sandbox-checklist {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.sandbox-check-item {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    border: 1px solid #30363d;
}

.sandbox-check-item.ok {
    color: #b6f0c7;
    background: rgba(63,185,80,0.08);
}

.sandbox-check-item.warn {
    color: #f2cc60;
    background: rgba(187,128,9,0.08);
}

.sim-app-shell {
    display: grid;
    gap: 16px;
}

.sim-app-toolbar,
.sim-device-panel,
.sim-feature-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sim-app-title {
    font-size: 19px;
    color: #f0f6fc;
    font-weight: 600;
}

.sim-app-subtitle {
    color: #8b949e;
    margin-top: 4px;
    font-size: 13px;
}

.sim-app-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sim-device-panel {
    border: 1px solid #30363d;
    background: linear-gradient(135deg, rgba(88,166,255,0.08), rgba(63,185,80,0.05));
    border-radius: 14px;
    padding: 16px;
}

.sim-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8b949e;
    margin-bottom: 6px;
}

.sim-device-id {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #f0f6fc;
}

.sim-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.sim-feature-card {
    border: 1px solid #30363d;
    border-radius: 14px;
    padding: 16px;
    background: rgba(255,255,255,0.02);
    display: grid;
    gap: 12px;
}

.sim-feature-card p {
    color: #8b949e;
    line-height: 1.6;
    font-size: 13px;
}

.tier-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    border: 1px solid #30363d;
    color: #8b949e;
}

.tier-pill.owned {
    color: #b6f0c7;
    border-color: rgba(63,185,80,0.25);
    background: rgba(63,185,80,0.1);
}

.sim-key-block {
    min-height: 76px;
    border-radius: 10px;
    border: 1px dashed #30363d;
    padding: 12px;
    color: #d1d5db;
    background: rgba(13,17,23,0.65);
    word-break: break-all;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
}

.sim-log-line {
    border-top: 1px solid #21262d;
    padding-top: 14px;
    color: #8b949e;
    font-size: 13px;
}

/* ─── Utilities ───────────────────────────────────────────── */
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.w-100 { width: 100%; }
.text-muted { color: #484f58 !important; }
.text-success { color: #3fb950 !important; }
.text-danger { color: #f85149 !important; }
.fw-bold { font-weight: 600; }
.small { font-size: 12px; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav { padding: 0 20px; }
    .admin-sidebar { display: none; }
    .admin-main { padding: 20px; }
    .features { grid-template-columns: repeat(2, 1fr); padding: 32px 20px; }
    .steps { grid-template-columns: 1fr; }
    .sandbox-grid { grid-template-columns: 1fr; }
    .sim-feature-grid { grid-template-columns: 1fr; }
    .mode-toggle-grid { grid-template-columns: 1fr; }
    .sim-app-toolbar, .sim-device-panel { flex-direction: column; align-items: flex-start; }
    .hero { padding: 48px 20px 0; }
    .divider { margin: 32px 20px 0; }
    .how { padding: 0 20px 48px; }
    .card-inner { grid-template-columns: repeat(2, 1fr); }
    footer, .site-footer { padding: 16px 20px; flex-direction: column; gap: 4px; text-align: center; }
    .notice { padding: 9px 20px; }
}
