.bill-wrap { max-width: 1080px; margin: 12px auto 28px; padding: 0 14px; }
.bill-wrap, .bill-wrap * { box-sizing: border-box; }
.bill-wrap.narrow { max-width: 760px; }
.bill-kicker {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 6px;
}
.bill-wrap h1 { font-size: 20px; letter-spacing: -0.03em; margin-bottom: 4px; }
.bill-lead { color: var(--text-secondary); font-size: 13px; line-height: 1.45; max-width: 720px; margin-bottom: 12px; }
.bill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bill-card {
    background: var(--bg-card);
    border: 1.5px solid var(--accent);
    border-radius: 0;
    padding: 12px 14px;
    box-shadow: 0 1px 2px rgba(91, 79, 255, 0.08);
    position: relative;
}
.bill-card.featured { border-color: var(--accent); box-shadow: 0 12px 40px rgba(91, 79, 255, 0.12); }
.bill-badge {
    position: absolute; top: 16px; right: 16px;
    background: var(--accent); color: #fff; font-size: 11px; font-weight: 800;
    letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px; border-radius: 0;
}
.bill-card h2 { font-size: 16px; margin-bottom: 4px; }
.bill-price { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; margin: 6px 0 4px; }
.bill-price span { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.bill-card ul { list-style: none; margin: 10px 0 12px; padding: 0; }
.bill-card li {
    display: flex; gap: 10px; align-items: flex-start;
    color: var(--text-secondary); font-size: 14px; line-height: 1.55; margin-bottom: 10px;
}
.bill-card li i { color: var(--success); margin-top: 3px; }
.bill-btn, .bill-btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 8px 12px; border-radius: 0; font-weight: 700; font-size: 13px;
    font-family: inherit; cursor: pointer; text-decoration: none; border: none;
}
.bill-btn { background: var(--accent); color: #fff; }
.bill-btn-ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--border-color); }
.bill-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.bill-form { max-width: 100%; }
.bill-form label { display: block; font-size: 13px; font-weight: 700; color: var(--text-secondary); margin-bottom: 6px; }
.bill-form input, .bill-form select, .bill-form textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 8px 10px;
    margin-bottom: 10px;
    border-radius: 0;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    font-family: inherit;
}
.bill-form textarea { min-height: 90px; resize: vertical; }
.bill-pay-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 10px; }
.bill-pay-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-bottom: 18px; }
.bill-pay-meta div { background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 0; padding: 12px 14px; }
.bill-pay-meta .k { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.bill-pay-meta .v { font-size: 16px; font-weight: 800; margin-top: 4px; }
.bill-qr {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
    padding: 18px; background: var(--bg-tertiary); border: 1px dashed var(--border-color); border-radius: 0; margin-bottom: 16px;
}
.bill-qr img { width: 220px; max-width: 100%; height: auto; border-radius: 0; background: #fff; padding: 8px; }
.bill-account {
    font-family: ui-monospace, Consolas, monospace; font-size: 18px; font-weight: 800;
    letter-spacing: 0.04em; word-break: break-all; margin-bottom: 16px;
}
.bill-note { color: var(--text-secondary); font-size: 13px; line-height: 1.6; margin-bottom: 14px; }
.bill-instructions-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    margin-bottom: 10px;
}
.bill-hesab-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}
.bill-status {
    text-align: center; padding: 24px 16px;
}
.bill-status .icon {
    width: 44px; height: 44px; border-radius: 0; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px; font-size: 18px;
}
.bill-status.wait .icon { background: rgba(245, 158, 11, 0.14); color: var(--warning); }
.bill-status.ok .icon { background: rgba(34, 197, 94, 0.14); color: var(--success); }
.bill-status.bad .icon { background: rgba(239, 68, 68, 0.14); color: var(--error); }
.bill-alert { display: none; margin-top: 12px; padding: 10px 12px; border-radius: 0; font-size: 13px; font-weight: 600; }
.bill-alert.show { display: block; }
.bill-alert.ok { background: rgba(34, 197, 94, 0.12); color: var(--success); }
.bill-alert.bad { background: rgba(239, 68, 68, 0.12); color: var(--error); }
.bill-back { display: inline-flex; gap: 8px; align-items: center; color: var(--text-secondary); text-decoration: none; margin-bottom: 18px; font-weight: 600; font-size: 14px; }
.bill-file { font-size: 13px; color: var(--text-secondary); margin: -6px 0 14px; }
@media (max-width: 820px) {
    .bill-grid, .bill-pay-grid, .bill-pay-meta { grid-template-columns: 1fr; }
    .bill-wrap { padding: 0 12px; margin: 16px auto 48px; }
    .bill-wrap h1 { font-size: 22px; }
    .bill-lead { font-size: 14px; margin-bottom: 18px; }
    .bill-card { padding: 18px 14px 16px; overflow-x: hidden; }
    .bill-pay-grid > :first-child { order: 2; }
    .bill-pay-grid > :last-child { order: 1; }
    .bill-form input,
    .bill-form select,
    .bill-form textarea {
        padding: 9px 10px;
        margin-bottom: 10px;
        font-size: 16px;
        border-radius: 0;
        min-height: 42px;
    }
    .bill-form textarea { min-height: 72px; }
    .bill-form label { font-size: 12px; line-height: 1.35; }
    .bill-form input[type="file"] { font-size: 13px; min-height: 0; padding: 6px 0; }
    .bill-btn, .bill-btn-ghost { padding: 11px 12px; font-size: 13px; }
    .bill-account { font-size: 15px; }
}


/* Billing pages (payment / status): accent borders with flow-motion */
html.flow-motion .bill-card {
    border: 1.5px solid var(--accent) !important;
    background: var(--bg-card) !important;
    box-shadow: 0 1px 2px rgba(91, 79, 255, 0.08) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html.flow-motion .bill-card.featured {
    box-shadow: 0 12px 40px rgba(91, 79, 255, 0.12) !important;
}

html[data-theme="dark"].flow-motion .bill-card {
    border-color: rgba(168, 168, 255, 0.45) !important;
}


/* PLATFORM SHARP CORNERS */
html body,
html body *,
html body *::before,
html body *::after {
    border-radius: 0 !important;
}
