body {
    font-family: Arial, sans-serif;
    background: #f7f8fa;
    margin: 0;
    padding: 0;
    color: #333;
}
header {
    background: #1d1f23;
    color: white;
    padding: 20px;
    text-align: center;
}
.logo, .logo-box {
    text-align: center;
    margin-bottom: 10px;
}
main {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}
h1 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 20px;
}
h2 {
    font-size: 20px;
    margin-bottom: 10px;
}
p {
    font-size: 16px;
    line-height: 1.6;
}
label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    text-align: left;
}
input, select, textarea, button {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}
button, .btn, .add-btn, .cta a, #editBtn, #editForm button {
    background: #5cb85c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 22px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}
button:hover, .btn:hover, .add-btn:hover, .cta a:hover, #editBtn:hover, #editForm button:hover {
    background: #4cae4c;
}
.success {
    color: green;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}
.back-link {
    display: inline-block;
    margin-top: 16px;
    color: #337ab7;
    text-decoration: none;
}
.back-link:hover {
    text-decoration: underline;
}
.shopid-info {
    background: #e9f5ff;
    border: 1px solid #b4e1ff;
    color: #055160;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: left;
}

/* Таблицы */
table, table.keys-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td, table.keys-table th, table.keys-table td {
    padding: 8px 10px;
    border: 1px solid #eee;
    text-align: left;
}
th, table.keys-table th {
    background: #f5f5f5;
}
.link-box {
    font-size: 14px;
    background: #f9f9f9;
    padding: 5px 7px;
    border-radius: 5px;
    word-break: break-all;
}
.actions button {
    padding: 4px 10px;
    border-radius: 4px;
    border: none;
    margin-right: 6px;
}
.edit { background: #4cae4c; color: white; }
.delete { background: #d9534f; color: white; }
.payment-link { font-size: 13px; color: #555; }
.add-btn {
    background: #5cb85c;
    color: white;
    padding: 10px 18px;
    font-size: 16px;
}
.add-btn:hover { background: #4cae4c; }
.sold-key { color: gray; }
.edit-form-inline {
    display: flex;
    gap: 6px;
    align-items: center;
}
.edit-form-inline input[type="text"] {
    width: 60%;
    margin: 0;
}
.edit-form-inline button {
    margin: 0;
    padding: 7px 14px;
    background: #337ab7;
    border-radius: 4px;
}
.edit-form-inline a {
    color: #337ab7;
    font-size: 14px;
    text-decoration: underline;
    margin-left: 8px;
}
.edit-btn, .del-btn {
    color: #337ab7;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: 15px;
}
.del-btn {
    color: #b72b2b;
}

/* Разное */
.cta {
    margin-top: 30px;
}
.cta a {
    padding: 12px 24px;
}
footer {
    text-align: center;
    padding: 20px;
    color: #aaa;
}
.edit-section {
    margin-top: 30px;
}
#editBtn {
    background: #337ab7;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
}
#editForm {
    display: none;
    margin-top: 16px;
}
#editForm input[type="text"] {
    width: 200px;
    margin-bottom: 10px;
}
#editForm button {
    padding: 10px 18px;
    background: #337ab7;
    color: #fff;
}
.qr-container { margin: 20px 0; }
.payment-info { font-size: 18px; }
.address-box {
    font-family: monospace;
    font-size: 15px;
    background: #f7f7f7;
    padding: 12px;
    border-radius: 8px;
    word-break: break-all;
    margin: 10px 0 4px;
    cursor: pointer;
    transition: background 0.15s;
}
.address-box:hover { background: #eef3ff; }
.copy-hint { color: #888; font-size: 12px; }
.status { margin-top: 22px; font-size: 18px; min-height: 28px; }
.status-waiting { color: #888; }
.status-ok { color: #4cae4c; font-size: 20px; font-weight: bold; }
.game-key {
    display: inline-block;
    font-size: 22px;
    color: #2a7a2a;
    background: #efffef;
    border: 1px solid #b0e0b0;
    border-radius: 6px;
    padding: 8px 18px;
    margin-top: 12px;
    word-break: break-all;
}

/* ── Payment step-by-step UI ───────────────────────────── */
.product-price {
    font-size: 20px;
    margin-bottom: 28px;
    color: #333;
}
.step-section {
    margin-bottom: 24px;
}
.step-label {
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #666;
    margin-bottom: 10px;
}
.choice-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.choice-btn {
    min-width: 130px;
    padding: 14px 20px;
    border: 2px solid #ccc;
    border-radius: 10px;
    background: #fff;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    margin-top: 0;
    width: auto;
}
.choice-btn:hover:not(.disabled):not([disabled]) {
    border-color: #5cb85c;
    background: #f0fff0;
}
.choice-btn.active {
    border-color: #5cb85c;
    background: #5cb85c;
    color: #fff;
}
.choice-btn.disabled,
.choice-btn[disabled] {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}
.choice-sub {
    font-size: 12px;
    font-weight: normal;
    opacity: .8;
}
.pay-button {
    margin-top: 30px;
    padding: 16px 36px;
    font-size: 18px;
    font-weight: bold;
    background: #5cb85c;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: auto;
    display: inline-block;
    transition: background 0.15s;
}
.pay-button:hover { background: #4cae4c; }

/* ── Countdown ─────────────────────────────────────────── */
.countdown-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1d1f23;
    color: #fff;
    border-radius: 10px;
    padding: 12px 24px;
    margin-bottom: 6px;
    font-size: 16px;
}
.countdown-label { opacity: .7; }
.countdown-value {
    font-size: 28px;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
}
.countdown-box.countdown-warn { background: #c0392b; }

/* ── Change method button ──────────────────────────────── */
.change-btn {
    margin-top: 24px;
    background: #888;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    width: auto;
    display: inline-block;
}
.change-btn:hover { background: #666; }
