:root {
    color-scheme: light;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f4f7fb;
    color: #1f2933;
    line-height: 1.6;
}
a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}
a:hover {
    text-decoration: underline;
}
.brand a,
.brand a:visited {
    color: inherit;
    text-decoration: none;
}
.topbar nav a,
.topbar nav a:visited {
    color: #1f2933;
    text-decoration: none;
}
.topbar nav a:hover {
    text-decoration: none;
}
.auth-shell {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem 4rem;
    background: radial-gradient(circle at top, rgba(254, 215, 170, 0.45), rgba(244, 244, 249, 0)), #f4f7fb;
}
body.auth-page {
    background: radial-gradient(circle at top, rgba(255, 237, 213, 0.7), rgba(244, 247, 251, 0.85)), #fff8ef;
}
body.auth-page .topbar {
    box-shadow: none;
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
}
body.auth-page .topbar-content {
    max-width: 1080px;
    width: min(1080px, calc(100% - 2rem));
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}
body.auth-page .brand {
    flex: 0 0 auto;
    text-align: center;
}
body.auth-page .topbar nav {
    justify-content: flex-end;
    flex-wrap: nowrap;
    flex: 1;
    gap: 1.25rem;
}
body.auth-page .auth-shell {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(1.25rem, 4vw, 3rem) 1.5rem 3rem;
    align-items: flex-start;
}
body.auth-page .container-auth {
    width: 100%;
    margin: 0 auto;
}
.container-auth {
    width: min(540px, 100%);
    padding: 3rem 3rem;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(226, 232, 240, 0.6);
}
.container-auth h1 {
    font-size: 2rem;
    margin-bottom: 1.75rem;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.auth-links {
    margin-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.95rem;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.auth-form .form-field {
    width: 100%;
}
.auth-form input,
.auth-form select {
    font-size: 1rem;
    line-height: 1.4;
    padding: 0.9rem 1rem;
}
.auth-form textarea {
    font-size: 1rem;
}
.auth-form button {
    width: 100%;
    margin-top: 0.5rem;
}
.btn-primary {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}
.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
}
.card h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
table th,
table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}
.table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.table-actions form {
    margin: 0;
}
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.page-header .btn-primary {
    flex: 0 0 auto;
}
.page-header--stack {
    align-items: flex-start;
    gap: 1.25rem;
}
.filter-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.filter-form input,
.filter-form select {
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    border: 1px solid #cbd5f5;
    background: #fff;
    font-size: 0.95rem;
    min-width: 180px;
}
.filter-form button {
    margin-top: 0;
}
.btn-table {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
    color: #1f2937;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-table:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(148, 163, 184, 0.3);
    background: #ffffff;
}
.btn-table--accent {
    background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
    color: #ffffff !important;
    border: none !important;
}
.btn-table--accent:hover {
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
    background: linear-gradient(135deg, #0c8ad1, #1d4ed8) !important;
    color: #ffffff !important;
}
.btn-table--edit {
    background-color: #22c55e !important;
    color: #ffffff !important;
    border: 1px solid #15803d !important;
}
.btn-table--edit:hover {
    box-shadow: 0 8px 22px rgba(34, 197, 94, 0.35);
    background-color: #16a34a !important;
    color: #ffffff !important;
}
.btn-table--danger {
    background: linear-gradient(135deg, #f87171, #ef4444) !important;
    color: #ffffff !important;
    border: none !important;
}
.btn-table--danger:hover {
    box-shadow: 0 8px 22px rgba(239, 68, 68, 0.35);
}
.btn-table--warning {
    background-color: #f59e0b !important;
    color: #ffffff !important;
    border: 1px solid #b45309 !important;
}
.btn-table--warning:hover {
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.35);
    background-color: #d97706 !important;
    color: #ffffff !important;
}
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-success {
    background: #22c55e;
    color: #fff;
}
.badge-warning {
    background: #f59e0b;
    color: #fff;
}
.badge-danger {
    background: #ef4444;
    color: #fff;
}
.topbar {
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    color: #1f2933;
    padding: 1rem 0;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}
.topbar-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.brand a {
    font-weight: 700;
    font-size: 1.15rem;
    color: inherit;
    text-decoration: none;
}
.topbar nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.topbar-menu-toggle {
    display: none;
}
.topbar-menu-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.15);
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}
.topbar-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 3px 0;
    background: #0f172a;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.topbar-menu__form {
    display: inline;
}
.topbar nav a,
.link {
    font-weight: 600;
    color: #1f2933;
    text-decoration: none;
    position: relative;
}
.topbar nav a::after,
.link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 100%;
    height: 2px;
    background: rgba(31, 41, 51, 0.6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}
.topbar nav a:hover::after,
.link:hover::after {
    transform: scaleX(1);
}
.link {
    color: #2563eb;
}
.link-button {
    background: none;
    border: none;
    color: #1f2933;
    font-weight: 600;
    cursor: pointer;
}
.page {
    width: min(1100px, 100%);
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 0 clamp(1rem, 4vw, 1.5rem) 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}
.section {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.6);
    width: 100%;
    box-sizing: border-box;
}
.section h1,
.section h2 {
    margin-top: 0;
    font-size: 1.8rem;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.section-subtitle {
    margin: 0.4rem 0 1.8rem;
    color: #64748b;
    font-size: 1rem;
}
.form {
    display: flex;
    flex-direction: column;
}
.form-section {
    display: block;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    margin-top: 1.5rem;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.form-section:first-of-type {
    margin-top: 0.5rem;
}
.form-section__summary {
    list-style: none;
    padding: 1.25rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}
.form-section__summary::-webkit-details-marker {
    display: none;
}
.form-section__summary-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.form-section__summary-text strong {
    font-size: 1.05rem;
    color: #0f172a;
    word-break: break-word;
}
.form-section__summary-text small {
    color: #64748b;
    font-size: 0.85rem;
    word-break: break-word;
}
.form-section__summary-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.form-section__summary-icon::before,
.form-section__summary-icon::after {
    content: '';
    position: absolute;
    background: #0f172a;
    transition: transform 0.2s ease;
}
.form-section__summary-icon::before {
    width: 10px;
    height: 2px;
}
.form-section__summary-icon::after {
    width: 2px;
    height: 10px;
}
.form-section[open] .form-section__summary {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.form-section[open] .form-section__summary-icon::after {
    transform: scaleY(0);
}
.form-section__body {
    padding: 1.6rem;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
}
.form-section__body > .form-grid {
    margin-top: 0;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: start;
}
.form-grid.full-width {
    grid-template-columns: 1fr;
}
.form-field-full {
    grid-column: 1 / -1;
}
.form-grid--single {
    grid-template-columns: 1fr;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-field label {
    font-weight: 600;
    color: #334155;
}
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    line-height: 1.4;
    background: rgba(248, 250, 252, 0.9);
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-field textarea {
    min-height: 80px;
    resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22);
    background: #fff;
}
.form-actions {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 500;
    color: #475569;
}
.checkbox-field input {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.5);
}
.checkbox-field input:checked {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border-color: transparent;
}

}




.alert {
    display: inline-flex;
    padding: 0.9rem 1.4rem;
    border-radius: 12px;
    font-weight: 500;
    margin: 0 auto 1rem;
    max-width: min(720px, calc(100% - 2rem));
    width: auto;
    text-align: center;
    align-items: center;
    justify-content: center;
    align-self: center;
    box-sizing: border-box;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
}
.flash-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}
.flash-wrapper .alert {
    position: relative;
    left: 0;
    transform: none;
}
.alert-success {
    background: rgba(34, 197, 94, 0.15);
    color: #047857;
}
.alert-error {
    background: rgba(239, 68, 68, 0.18);
    color: #b91c1c;
}
.footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    color: #64748b;
}
@media (max-width: 600px) {
    table,
    .card,
    .topbar,
    body {
        box-shadow: none;
    }
    .topbar-content {
        flex-direction: column;
        align-items: stretch;
    }
    .topbar-menu-button {
        display: inline-flex;
        margin-left: auto;
    }
    .topbar nav {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        padding-top: 1rem;
        display: none;
    }
    .topbar-menu-toggle:checked + .topbar-menu-button span:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }
    .topbar-menu-toggle:checked + .topbar-menu-button span:nth-child(2) {
        opacity: 0;
    }
    .topbar-menu-toggle:checked + .topbar-menu-button span:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }
    .topbar-menu-toggle:checked ~ nav {
        display: flex;
    }
    .topbar nav a,
    .topbar nav .link-button {
        width: 100%;
    }
    .topbar-menu__form {
        width: 100%;
    }
    .topbar-menu__form .link-button {
        width: 100%;
        text-align: left;
        padding: 0.45rem 0;
    }
    .page {
        width: 100%;
        max-width: 100%;
        padding: 0 0.85rem 2rem;
    }
    .form-actions {
        justify-content: flex-start;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .form-section {
        border-radius: 16px;
        box-shadow: none;
        margin-top: 1rem;
    }
    .form-section__summary {
        padding: 0.9rem 1rem;
    }
    .form-section__body {
        padding: 1rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .form-actions .btn-primary {
        width: 100%;
        text-align: center;
    }
    .table-actions {
        gap: 0.65rem;
    }
    .table-actions a,
    .table-actions .btn-table,
    .table-actions form {
        width: 100%;
    }
    .table-actions a {
        display: flex;
    }
    .table-actions form {
        display: flex;
    }
    .table-actions .btn-table {
        flex: 1;
        text-align: center;
    }
    .form-section {
        border-radius: 18px;
    }
    .form-section__summary {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.1rem;
    }
    .form-section__summary-icon {
        align-self: flex-end;
        margin-top: 0.5rem;
    }
    .form-section__body {
        padding: 1.1rem;
    }
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    .page-header .btn-primary {
        width: 100%;
        text-align: center;
    }
    .checkbox-field {
        justify-content: flex-start;
    }
}
.payment-summary { margin-top: 1.5rem; }
.payment-summary__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1rem; }
.payment-box { border: 1px solid #e2e2e2; border-radius: 8px; padding: 1rem; background: #fff; }
.payment-box__code { width: 100%; font-family: 'Courier New', Courier, monospace; font-size: 0.95rem; margin-bottom: 0.5rem; }
.payment-box__actions { margin-top: 0.75rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.payment-box__qr { max-width: 220px; width: 100%; height: auto; border: 1px solid #dddddd; padding: 0.5rem; background: #fafafa; }
.payment-box--raw { margin-top: 1rem; }
.payment-box--raw pre { white-space: pre-wrap; max-height: 280px; overflow: auto; background: #1f2933; color: #f1f5f9; padding: 1rem; border-radius: 6px; }


.payment-summary__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.payment-box { border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.5rem; background: #ffffff; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05); display: flex; flex-direction: column; gap: 0.75rem; }
.payment-box h3 { margin: 0; font-size: 1.1rem; color: #1e293b; }
.payment-box__code { width: 100%; min-height: 52px; padding: 0.75rem; border-radius: 8px; border: 1px dashed #94a3b8; background: #f8fafc; font-family: 'Fira Code', 'Courier New', Courier, monospace; font-size: 0.95rem; color: #0f172a; }
.payment-box__actions { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.payment-box__actions .btn-secondary { background: linear-gradient(135deg, #0284c7, #0ea5e9); color: #fff; padding: 0.65rem 1.2rem; border-radius: 999px; font-weight: 600; letter-spacing: 0.02em; box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.payment-box__actions .btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35); }
.payment-box__qr { max-width: 260px; width: 100%; align-self: center; border: 1px solid #cbd5f5; border-radius: 12px; padding: 0.75rem; background: #f8fafc; box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.04); }
.payment-summary__grid .payment-box p { margin: 0; color: #475569; line-height: 1.5; }
.payment-summary__grid .payment-box strong { color: #0f172a; }
.payment-summary__note { margin-top: 1.25rem; padding: 0.9rem 1.1rem; background: #f1f5f9; border-left: 3px solid #0ea5e9; border-radius: 8px; color: #334155; font-size: 0.95rem; line-height: 1.5; }
.payment-box--raw { margin-top: 2rem; border-style: dashed; }
.payment-box--raw summary { cursor: pointer; font-weight: 600; color: #0ea5e9; }
.payment-box--raw pre { margin-top: 0.75rem; border-radius: 10px; background: #0f172a; color: #f8fafc; padding: 1.25rem; box-shadow: inset 0 4px 12px rgba(15, 23, 42, 0.45); }
@media (max-width: 768px) { .payment-box { padding: 1.25rem; } .payment-box__actions .btn-secondary { width: 100%; justify-content: center; } }

.page--payment { display: flex; flex-direction: column; gap: 1.75rem; }
.payment-hero { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #1d4ed8, #0ea5e9); padding: 2rem; border-radius: 18px; color: #f8fafc; box-shadow: 0 18px 35px rgba(14, 165, 233, 0.25); }
.payment-hero h1 { margin: 0 0 0.5rem; font-size: 1.95rem; font-weight: 700; }
.payment-hero p { margin: 0; font-size: 1rem; line-height: 1.5; max-width: 520px; }
.payment-hero__badge { display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, 0.18); padding: 0.75rem 1.25rem; border-radius: 999px; font-weight: 600; letter-spacing: 0.03em; }
.payment-hero__badge span { display: inline-block; color: #e2f3ff; }

.payment-mode header { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.payment-mode header h2 { margin: 0; font-size: 1.45rem; color: #0f172a; }
.payment-mode header p { margin: 0; color: #475569; }
.payment-mode__form { display: flex; flex-direction: column; gap: 1.5rem; }
.mode-selector { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.mode-card { position: relative; cursor: pointer; }
.mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.mode-card__content { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.25rem; border-radius: 14px; border: 2px solid #e2e8f0; background: #fff; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease; min-height: 100%; }
.mode-card__chip { align-self: flex-start; background: #e2e8f0; color: #1e293b; font-size: 0.75rem; padding: 0.3rem 0.65rem; border-radius: 999px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.mode-card__chip--accent { background: rgba(14, 165, 233, 0.15); color: #0c4a6e; }
.mode-card strong { font-size: 1.05rem; color: #0f172a; }
.mode-card small { color: #475569; line-height: 1.5; }
.mode-card:focus-within .mode-card__content,
.mode-card input:checked + .mode-card__content { border-color: #0ea5e9; box-shadow: 0 12px 28px rgba(14, 165, 233, 0.25); transform: translateY(-2px); }

.btn-primary--large { padding: 0.9rem 2.4rem; font-size: 1rem; }

.payment-summary { display: flex; flex-direction: column; gap: 1.75rem; }
.payment-summary__header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.payment-summary__tag { display: inline-flex; align-items: center; padding: 0.35rem 0.9rem; border-radius: 999px; background: rgba(59, 130, 246, 0.15); color: #1d4ed8; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.75rem; }
.payment-summary__header h2 { margin: 0.35rem 0 0; font-size: 1.6rem; color: #0f172a; }
.payment-summary__id { display: flex; flex-direction: column; background: #f8fafc; padding: 0.75rem 1.25rem; border-radius: 12px; border: 1px solid #e2e8f0; }
.payment-summary__id span { font-size: 0.75rem; text-transform: uppercase; color: #64748b; letter-spacing: 0.05em; }
.payment-summary__id strong { font-size: 1.05rem; color: #0f172a; }
.payment-summary__intro { margin: 0; color: #475569; max-width: 720px; }
.payment-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.payment-card { display: flex; flex-direction: column; gap: 0.9rem; padding: 1.5rem; border-radius: 18px; border: 1px solid rgba(148, 163, 184, 0.25); background: #ffffff; box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.payment-card header { display: flex; align-items: center; gap: 0.75rem; }
.payment-card__icon { font-size: 1.8rem; }
.payment-card h3 { margin: 0; font-size: 1.25rem; color: #0f172a; }
.payment-card p { margin: 0; color: #475569; line-height: 1.6; }
.payment-card__info { margin-top: auto; font-weight: 600; color: #0f172a; }
.payment-card__codes { display: flex; flex-direction: column; gap: 0.65rem; }
.payment-card__codes label { font-size: 0.8rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; }
.payment-card__codes textarea { width: 100%; min-height: 52px; padding: 0.75rem; border-radius: 10px; border: 1px dashed #94a3b8; background: #f8fafc; font-family: 'Fira Code', 'Courier New', Courier, monospace; font-size: 0.95rem; color: #0f172a; }
.payment-card textarea { width: 100%; min-height: 52px; padding: 0.75rem; border-radius: 10px; border: 1px dashed #94a3b8; background: #f8fafc; font-family: 'Fira Code', 'Courier New', Courier, monospace; font-size: 0.95rem; color: #0f172a; }
.payment-card__qr { display: flex; align-items: center; justify-content: center; padding: 0.75rem; background: #f1f5f9; border-radius: 14px; border: 1px dashed #94a3b8; }
.payment-card__qr img { max-width: 220px; width: 100%; height: auto; }
.payment-card__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: auto; }
.payment-card__hint { display: inline-block; color: #64748b; font-size: 0.85rem; }
.payment-card:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(15, 23, 42, 0.12); }

@media (max-width: 768px) {
    .payment-hero { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .payment-hero__badge { align-self: flex-start; }
    .mode-selector { grid-template-columns: 1fr; }
    .payment-summary__header h2 { font-size: 1.35rem; }
    .payment-menu { grid-template-columns: 1fr; }
}

.btn-inline-help { font-size: 0.9rem; color: #0f172a; }

body.payment-theme {
    background: linear-gradient(180deg, #ffb347 0%, #ffcc33 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.payment-theme .topbar {
    background: transparent;
    box-shadow: none;
    color: #ffffff;
}
body.payment-theme .topbar nav a,
body.payment-theme .topbar nav a:visited,
body.payment-theme .brand a,
body.payment-theme .link-button {
    color: #ffffff;
}
body.payment-theme .topbar nav a::after {
    background: rgba(255, 255, 255, 0.8);
}

.payment-selection {
    width: min(760px, 100%);
    margin: 4rem auto 3rem;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    text-align: center;
}

.payment-selection__header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 2.5vw + 1rem, 2.7rem);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.payment-selection__header p {
    margin: 0.5rem 0 0;
    color: rgba(255, 255, 255, 0.9);
}

.payment-selection__order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #5c2a00;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.payment-selection__card {
    width: 100%;
    background: #fff8f0;
    border-radius: 26px;
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(243, 156, 18, 0.35);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: left;
}

.payment-selection__section h2 {
    margin: 0 0 0.75rem;
    color: #d35400;
    font-size: 1.35rem;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 0.5rem;
}

.payment-selection__section p {
    margin: 0 0 1.5rem;
    color: #7a4510;
}

.payment-selection__options {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.payment-selection__option {
    margin: 0;
}

.payment-selection__button {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 14px;
    border: 1px solid #f39c12;
    background: #ffe2b6;
    color: #5c3300;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    font: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
.payment-selection__button:hover,
.payment-selection__button:focus-visible {
    background: linear-gradient(135deg, #f6a219, #f1b60d);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(214, 127, 19, 0.28);
}

.payment-selection__label {
    font-weight: 600;
    font-size: 1.05rem;
}

.payment-selection__description {
    font-size: 0.9rem;
    opacity: 0.9;
}

.payment-selection__footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    font-size: 0.95rem;
    padding-bottom: 2rem;
}

.payment-selection__footer a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

.payment-result-page {
    width: min(900px, 100%);
    margin: 3.5rem auto 3rem;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    color: #5c2a00;
}

.payment-result-page__header {
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.payment-result-page__header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 2.2vw + 1rem, 2.6rem);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.payment-result-page__header p {
    margin: 0;
}

.payment-result-page__order {
    display: inline-flex;
    align-self: center;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #5c2a00;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.payment-result-page__tag {
    display: inline-flex;
    align-self: center;
    padding: 0.3rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    color: #603100;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.payment-result-card {
    background: rgba(255, 248, 240, 0.95);
    border-radius: 26px;
    padding: 2.5rem 2rem;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(243, 156, 18, 0.35);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.payment-result-card__intro {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-result-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.9rem;
}

.payment-result-card__grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .payment-result-card__grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

.payment-result-card__block {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid rgba(243, 156, 18, 0.3);
    box-shadow: 0 18px 40px rgba(214, 127, 19, 0.18);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-result-card__block h2 {
    margin: 0;
    color: #c04b00;
    font-size: 1.2rem;
}

.payment-result-card__block p {
    margin: 0;
    line-height: 1.5;
}

.payment-result-card__block textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px dashed rgba(243, 156, 18, 0.6);
    padding: 0.75rem;
    background: rgba(255, 236, 207, 0.5);
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    color: #5c2a00;
    resize: none;
}

.payment-result-card__qr {
    padding: 0.75rem;
    border-radius: 14px;
    border: 1px dashed rgba(243, 156, 18, 0.5);
    background: rgba(255, 236, 207, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-result-card__qr img {
    max-width: 220px;
    width: 100%;
    height: auto;
}

.payment-result-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #b24b00;
    font-weight: 600;
    text-decoration: none;
}

.payment-result-card__link:hover {
    text-decoration: underline;
}

.payment-result-card__details {
    background: rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    border: 1px solid rgba(243, 156, 18, 0.25);
    padding: 1rem 1.25rem;
}

.payment-result-card__details summary {
    cursor: pointer;
    font-weight: 600;
    color: #a24a00;
}

.payment-result-card__details pre {
    margin-top: 1rem;
    padding: 1rem;
    background: #0f172a;
    color: #f8fafc;
    border-radius: 12px;
    overflow: auto;
}

.payment-result-card__actions {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.payment-result-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f39c12, #f1b600);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.payment-result-card__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(214, 127, 19, 0.3);
}

@media (max-width: 640px) {
    .payment-selection {
        margin-top: 3rem;
        padding: 0 1rem;
    }
    .payment-selection__card {
        padding: 2rem 1.25rem;
    }
    .payment-result-page {
        padding: 0 1rem;
    }
    .payment-result-card {
        padding: 2rem 1.5rem;
    }
}


.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.page-header .btn-primary {
    flex: 0 0 auto;
}
