:root {
    --bg:            #080808;
    --surface:       #0f0f0f;
    --surface-2:     #161616;
    --border:        rgba(255,255,255,0.06);
    --border-strong: rgba(255,255,255,0.12);
    --accent:        #e8a33d;
    --accent-dim:    rgba(232,163,61,0.10);
    --accent-glow:   rgba(232,163,61,0.35);
    --success:       #2dd4aa;
    --success-dim:   rgba(45,212,170,0.10);
    --negative:      #e05a5a;
    --negative-dim:  rgba(224,90,90,0.10);
    --text:          #f0f0f0;
    --text-2:        #888;
    --text-3:        #444;
    --radius:        10px;
    --radius-sm:     6px;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card {
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
}

.title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px;
}

.sub {
    font-size: 12px;
    color: var(--text-2);
    margin: 0 0 24px;
}

.products {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.product-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.product-btn:hover {
    border-color: var(--border-strong);
    background: #1a1a1a;
}

.product-btn .amount {
    color: var(--accent);
    font-weight: 600;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-3);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

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

.custom-row input {
    flex: 1;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    padding: 12px 14px;
}

.custom-row input:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-primary {
    background: var(--accent);
    color: #1a1206;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.footnote {
    margin-top: 20px;
    font-size: 11px;
    color: var(--text-3);
    text-align: center;
}

.status-card {
    text-align: center;
}

.status-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 22px;
}

.status-icon.success { background: var(--success-dim); color: var(--success); }
.status-icon.cancel { background: var(--negative-dim); color: var(--negative); }

.status-detail {
    color: var(--text-2);
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
}

.receipt-card {
    max-width: 420px;
}

.receipt {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px 16px;
}

.receipt-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.receipt-row:last-child {
    border-bottom: none;
}

.receipt-row span:first-child {
    color: var(--text-2);
}

.receipt-row span:last-child {
    color: var(--text);
    font-weight: 500;
    text-align: right;
}

.receipt-row-main {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-strong);
}

.receipt-row-main span:first-child {
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
}

.receipt-amount {
    color: var(--accent) !important;
    font-weight: 700 !important;
    font-size: 17px !important;
}
