/*
 * THEME: Midnight Gold
 * Dark, premium, gold-on-charcoal.
 * Shared by index.php (landing) and payment.php (checkout).
 * File name must match a `css` path registered in themes.php.
 */

:root {
    --bg: #050608;
    --card-bg: #12141a;
    --accent: #f4b41a;
    --accent-soft: #f4b41a22;
    --text: #f8f9fc;
    --muted: #9aa0b5;
    --danger: #ff4d4f;
    --border: #232733;
    --radius-lg: 18px;
    --field-bg: #0b0d13;
    --green: #2ee06b;
    --btn-bg: linear-gradient(135deg, #f4b41a, #ffdd55);
    --btn-text: #442400;
    --success-bg: #123019;
    --success-border: #1f4a2c;
    --gcash-bg: #0067a2;
    --gcash-border: #0a86cc;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #20263b 0, var(--bg) 55%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 16px;
}

.page {
    width: 100%;
    max-width: 480px;
}

.card {
    background: linear-gradient(145deg, #181b27, #10121a);
    border-radius: 24px;
    padding: 18px 18px 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 10px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

h1 {
    font-size: 20px;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}

.product-media {
    border-radius: 20px;
    background: radial-gradient(circle at top, #f4b41a33, #11131b);
    height: 190px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-media span {
    font-size: 26px;
    font-weight: 600;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px;
}

.pill {
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--border);
}

.price-big {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.form-section {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.form-row {
    margin-bottom: 10px;
}

label {
    font-size: 12px;
    margin-bottom: 4px;
    display: block;
    color: var(--muted);
}

input,
select,
textarea {
    width: 100%;
    padding: 9px 10px;
    border-radius: 12px;
    background: var(--field-bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.inline-row {
    display: flex;
    gap: 8px;
}

.inline-row .form-row {
    flex: 1;
    margin-bottom: 0;
}

.summary {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: var(--field-bg);
    border: 1px solid var(--border);
    font-size: 13px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.summary-row.total {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed var(--border);
    font-weight: 600;
}

.btn-primary {
    width: 100%;
    padding: 11px 14px;
    margin-top: 12px;
    border: none;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-text);
    font-weight: 700;
    cursor: pointer;
}

.note {
    margin-top: 8px;
    font-size: 11px;
    color: var(--muted);
    text-align: center;
}

/* ---- payment.php specifics ---- */
.success {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--success-bg);
    color: var(--green);
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--success-border);
    font-size: 13px;
    margin-bottom: 14px;
}

.row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.row .label {
    color: var(--muted);
}

.row .value {
    font-weight: 600;
    text-align: right;
    color: var(--text);
}

.section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--accent);
    margin: 16px 0 8px;
    font-weight: 700;
}

.total-box {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-box .amt {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
}

.gcash {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--gcash-bg);
    border: 1px solid var(--gcash-border);
    color: #fff;
}

.gcash .big {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
}

.steps {
    list-style: none;
    counter-reset: step;
    margin-top: 8px;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 10px 34px;
    font-size: 13px;
    color: var(--muted);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--field-bg);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.info b {
    color: var(--text);
}

.msg {
    color: var(--accent);
    word-break: break-word;
}

.footer {
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    margin-top: 14px;
}

/* Theme preview banner (shown only when active via ?theme=...) */
.theme-preview-note {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--accent-soft);
    border: 1px dashed var(--accent);
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.theme-preview-note b {
    color: var(--accent);
}

.theme-preview-note a {
    color: var(--accent);
    text-decoration: underline;
}
