:root {
    --bg: #f2f4fb;
    --card: #ffffff;
    --border: #dfe4f2;
    --text: #111827;
    --muted: #6b7280;
    --primary: #6a4bff;
    --primary-soft: #f1edff;
    --green: #2fa24f;
    --yellow: #f0b90b;
    --blue: #41a5e8;
    --danger: #d33d5a;
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

code {
    background: #f1f5ff;
    border: 1px solid #d6def4;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 12px;
    color: #2d3f72;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

input,
select,
textarea,
button {
    font: inherit;
}

.install-body {
    min-height: 100vh;
    padding: 30px 14px;
    background: linear-gradient(145deg, #f7f9ff 0%, #eef2ff 100%);
}

.install-container {
    max-width: 1000px;
    margin: 0 auto;
}

.install-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(95, 72, 255, 0.08);
}

.install-card.narrow {
    max-width: 420px;
    margin: 60px auto;
}

.install-card p {
    margin-top: 8px;
    color: var(--muted);
}

.install-modern .install-container {
    max-width: 1120px;
}

.install-hero {
    margin-bottom: 12px;
}

.install-hero h1 {
    letter-spacing: -0.02em;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.02;
}

.install-hero p {
    margin-top: 8px;
    color: #677591;
}

.install-steps-modern {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.install-step {
    border: 1px solid #d7def1;
    border-radius: 999px;
    background: #fff;
    color: #8a93ab;
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    overflow: hidden;
}

.install-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #adb5c8;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
}

.install-step strong {
    display: block;
    text-align: center;
    font-size: 16px;
}

.install-step.active {
    border-color: #8f7cff;
    color: #6a4bff;
}

.install-step.active span {
    background: linear-gradient(90deg, #6a4bff 0%, #8a44ff 100%);
}

.install-modern .install-step,
.quickpay-body .quick-step {
    display: grid;
}

.install-card-modern {
    padding: 20px;
}

.install-form-modern {
    margin-top: 0;
}

.install-section {
    border: 1px solid #e5ebf9;
    border-radius: 14px;
    padding: 14px;
    background: #fcfdff;
    margin-top: 12px;
}

.install-section:first-of-type {
    margin-top: 0;
}

.install-section-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.install-section-head h3 {
    margin: 0;
    letter-spacing: -0.01em;
}

.install-section-head small {
    color: #7b88a6;
}

.install-submit-wrap {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.install-container-premium {
    max-width: 1260px;
}

.install-shell {
    display: grid;
    grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.install-side-panel {
    border: 1px solid #dce4f7;
    border-radius: 20px;
    background:
        radial-gradient(340px 220px at -10% -10%, rgba(138, 68, 255, 0.24) 0%, rgba(138, 68, 255, 0) 66%),
        radial-gradient(280px 180px at 100% 0%, rgba(82, 123, 255, 0.2) 0%, rgba(82, 123, 255, 0) 70%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 24px 20px;
    box-shadow: 0 18px 34px rgba(42, 58, 108, 0.09);
}

.install-kicker {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d7e0f7;
    background: #f7f9ff;
    color: #60739b;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.08em;
    font-weight: 700;
    padding: 7px 10px;
}

.install-side-panel h1 {
    margin-top: 14px;
    font-size: clamp(28px, 2.4vw, 40px);
    line-height: 1.07;
    letter-spacing: -0.02em;
    color: #1a2847;
}

.install-side-panel p {
    margin-top: 10px;
    color: #637394;
    line-height: 1.58;
}

.install-side-points {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.install-side-points article {
    border: 1px solid #e2e8f8;
    background: #ffffffd9;
    border-radius: 12px;
    padding: 11px 12px;
}

.install-side-points strong {
    display: block;
    color: #22345b;
    font-size: 14px;
}

.install-side-points small {
    display: block;
    margin-top: 4px;
    color: #7485a8;
    line-height: 1.45;
    font-size: 12px;
}

.install-side-hint {
    margin-top: 16px;
    border: 1px dashed #c8d4f2;
    background: #f8fbff;
    border-radius: 12px;
    padding: 10px 12px;
}

.install-side-hint strong {
    display: block;
    color: #2c406a;
    font-size: 13px;
}

.install-side-hint p {
    margin-top: 5px;
    font-size: 12px;
    color: #6f7f9f;
}

.install-main-panel {
    border: 1px solid #dce4f7;
    border-radius: 20px;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 16px 30px rgba(44, 62, 108, 0.08);
}

.install-modernized .install-hero {
    margin-bottom: 10px;
}

.install-modernized .install-hero h2 {
    margin: 0;
    font-size: clamp(26px, 2.1vw, 34px);
    letter-spacing: -0.02em;
    color: #1f2f52;
}

.install-modernized .install-hero p {
    margin-top: 6px;
    color: #6f7f9f;
}

.install-modernized .install-steps-modern {
    margin-bottom: 12px;
}

.install-modernized .install-card-modern {
    border: 1px solid #e0e8fa;
    border-radius: 16px;
    background: #fdfefe;
    box-shadow: inset 0 1px 0 #ffffff;
}

.auth-modern-body .install-container-premium {
    max-width: 1080px;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.auth-side-panel {
    border: 1px solid #dce4f7;
    border-radius: 20px;
    background:
        radial-gradient(300px 200px at 110% -10%, rgba(106, 75, 255, 0.2) 0%, rgba(106, 75, 255, 0) 70%),
        radial-gradient(260px 190px at -10% 110%, rgba(76, 134, 255, 0.2) 0%, rgba(76, 134, 255, 0) 72%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 24px 20px;
    box-shadow: 0 18px 34px rgba(42, 58, 108, 0.09);
}

.auth-side-panel h1 {
    margin-top: 14px;
    font-size: clamp(30px, 2.6vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #1b2a49;
}

.auth-side-panel p {
    margin-top: 10px;
    color: #667898;
    line-height: 1.58;
}

.auth-form-panel {
    border: 1px solid #dce4f7;
    border-radius: 20px;
    background: #ffffff;
    display: grid;
    place-items: center;
    padding: 16px;
    box-shadow: 0 16px 30px rgba(44, 62, 108, 0.08);
}

.auth-card {
    width: min(100%, 460px);
    border: 1px solid #e2e9f9;
    border-radius: 16px;
    background: #ffffff;
    padding: 24px;
    box-shadow: 0 12px 24px rgba(39, 56, 92, 0.07);
}

.auth-card h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    letter-spacing: -0.02em;
    color: #1f2f52;
}

.auth-card p {
    margin-top: 8px;
    color: #6e7e9f;
}

.auth-form {
    margin-top: 6px;
}

.auth-submit {
    margin-top: 14px;
    width: 100%;
    min-height: 46px;
}

.grid-form h3 {
    margin: 16px 0 10px;
}

.grid-col-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.grid-full {
    grid-column: 1 / -1;
}

.form-group {
    margin-top: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #313a4f;
    font-weight: 600;
}

.form-group label.inline-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    cursor: pointer;
}

.form-group label.inline-check input {
    width: 16px;
    height: 16px;
}

.form-group input,
.form-group select,
.form-group textarea,
.filter-form input,
.filter-form select,
.data-table input,
.data-table select {
    width: 100%;
    border: 1px solid #d6dcef;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    outline: none;
}

input[readonly] {
    background: #f7f9ff;
    color: #5d6d92;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.filter-form input:focus,
.filter-form select:focus,
.data-table input:focus,
.data-table select:focus {
    border-color: #a898ff;
    box-shadow: 0 0 0 3px rgba(95, 72, 255, 0.14);
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-danger {
    border: 0;
    border-radius: 10px;
    padding: 11px 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, #6a4bff 0%, #8a44ff 100%);
}

.btn-secondary {
    color: var(--primary);
    background: #eef1ff;
}

.btn-ghost {
    color: #35405a;
    border: 1px solid #ccd4ea;
    background: #fff;
}

.alert {
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 14px;
    font-size: 14px;
}

.alert-success {
    border: 1px solid #b9e5c7;
    background: #edf9f1;
    color: #1c7a37;
}

.alert-danger {
    border: 1px solid #f3c1cb;
    background: #fff1f3;
    color: #a52a46;
}

.payment-body {
    min-height: 100vh;
    padding: 28px 14px 34px;
    background:
        radial-gradient(900px 320px at 50% -10%, #edf3ff 0%, rgba(237, 243, 255, 0) 65%),
        linear-gradient(180deg, #f5f8fe 0%, #eff3fb 100%);
    position: relative;
    overflow-x: hidden;
}

.payment-body::before,
.payment-body::after {
    content: "";
    position: fixed;
    z-index: 0;
    border-radius: 999px;
    filter: blur(12px);
    pointer-events: none;
}

.payment-body::before {
    width: 320px;
    height: 320px;
    right: -120px;
    top: -80px;
    background: radial-gradient(circle, rgba(76, 103, 232, 0.18) 0%, rgba(76, 103, 232, 0) 70%);
}

.payment-body::after {
    width: 360px;
    height: 360px;
    left: -150px;
    bottom: -130px;
    background: radial-gradient(circle, rgba(73, 163, 244, 0.2) 0%, rgba(73, 163, 244, 0) 72%);
}

.payment-wrapper {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.payment-wrapper-wide {
    max-width: 1240px;
}

.quickpay-head {
    text-align: center;
    margin-bottom: 12px;
}

.quickpay-head h1 {
    letter-spacing: -0.02em;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.02;
    color: #172440;
}

.quickpay-head p {
    margin-top: 6px;
    color: #66758f;
}

.quick-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.quick-step {
    border: 1px solid #cfd7ed;
    border-radius: 999px;
    background: #fff;
    color: #8b95aa;
    display: grid;
    grid-template-columns: 68px 1fr;
    align-items: center;
    overflow: hidden;
    min-height: 62px;
}

.quick-step span {
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #aeb4c3;
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.quick-step strong {
    display: block;
    text-align: center;
    font-size: clamp(15px, 1.2vw, 22px);
    letter-spacing: -0.01em;
}

.quick-step.active {
    border-color: #7f68ff;
    color: #6a4bff;
}

.quick-step.active span {
    background: linear-gradient(90deg, #6a4bff 0%, #8a44ff 100%);
}

.quick-step.done {
    border-color: #bfc9e7;
    color: #5f6f93;
}

.quick-step.done span {
    background: #6f84ba;
}

.payment-card-wide {
    border-radius: 18px;
    padding: 18px;
}

.quick-pay-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.quick-pay-notes .min-payment-box,
.quick-pay-notes .link-source-pill {
    margin-top: 0;
}

.quickpay-form {
    margin-top: 0;
}

.is-hidden {
    display: none !important;
}

.quick-step-stage.is-hidden,
.quick-step-actions.is-hidden {
    display: none;
}

.quick-section {
    border: 1px solid #e4e9f8;
    border-radius: 14px;
    padding: 14px;
    background: #fbfcff;
    margin-top: 12px;
}

.quick-section:first-of-type {
    margin-top: 0;
}

.quick-section-head {
    margin-bottom: 10px;
}

.quick-section-head h2 {
    font-size: 18px;
    letter-spacing: -0.01em;
}

.quick-field-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.quick-field {
    position: relative;
}

.quick-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #6f7d99;
    font-weight: 600;
}

.quick-field input {
    width: 100%;
    border: 1px solid #d6dcef;
    background: #fff;
    border-radius: 999px;
    min-height: 54px;
    padding: 12px 18px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-field input:focus {
    border-color: #a898ff;
    box-shadow: 0 0 0 3px rgba(95, 72, 255, 0.14);
}

.quick-field small {
    display: block;
    margin-top: 6px;
}

.quick-field-wide {
    grid-column: 1 / -1;
}

.method-list-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.method-error {
    margin-top: 10px;
    border: 1px solid #f3c1cb;
    background: #fff1f3;
    color: #a52a46;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
}

.quick-step-actions {
    margin-top: 12px;
}

.quick-step-actions.dual {
    display: grid;
    grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.quick-step-actions .quick-back-btn {
    min-height: 48px;
}

.method-content-tile {
    min-height: 126px;
    align-items: flex-start;
}

.method-brand-lg {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    padding: 10px;
    border-color: #e2e8fb;
}

.method-content-tile .method-main strong {
    margin-top: 6px;
}

.method-content-tile .method-radio-dot {
    position: absolute;
    right: 12px;
    top: 12px;
}

.payment-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 86px;
    gap: 6px;
    color: #949cb6;
    font-size: 12px;
}

.step .step-dot {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #e8ecfb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step.active {
    color: #6a4bff;
}

.step.active .step-dot,
.step.done .step-dot {
    background: linear-gradient(145deg, #6a4bff 0%, #8a44ff 100%);
    color: #fff;
}

.step-line {
    height: 2px;
    flex: 1;
    background: #dde3f5;
}

.payment-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    border: 1px solid #dbe4f6;
    border-radius: 22px;
    padding: 24px 22px;
    box-shadow: 0 18px 36px rgba(33, 52, 95, 0.08);
    animation: payment-card-in 0.45s ease both;
}

.payment-card h1 {
    text-align: center;
    font-size: clamp(32px, 7.6vw, 44px);
    letter-spacing: -0.03em;
    color: #172440;
}

.payment-card p {
    margin-top: 8px;
    text-align: center;
    color: #667594;
    font-size: 16px;
}

.min-payment-box {
    margin-top: 16px;
    border: 1px solid #d6def4;
    color: #6a4bff;
    text-align: center;
    border-radius: 12px;
    padding: 12px 10px;
    background: linear-gradient(180deg, #f9fbff 0%, #f4f7ff 100%);
    font-weight: 700;
}

.payment-form {
    margin-top: 14px;
}

.method-list {
    display: grid;
    gap: 10px;
}

.method-option {
    display: block;
    cursor: pointer;
}

.method-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.method-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    position: relative;
    border: 1px solid #d8e0f2;
    background: #fff;
    border-radius: 14px;
    padding: 13px 14px;
    transition: all 0.2s ease;
}

.method-main {
    min-width: 0;
    flex: 1;
}

.method-main strong {
    display: block;
    font-size: 16px;
    color: #1b2540;
    letter-spacing: -0.01em;
}

.method-main small {
    display: block;
    margin-top: 4px;
    color: #7a86a6;
    font-size: 12px;
}

.method-brand {
    width: 74px;
    height: 28px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #edf1f8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 6px;
    flex-shrink: 0;
}

.method-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.method-radio-dot {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 2px solid #c8d2ec;
    background: #fff;
    position: relative;
    flex-shrink: 0;
}

.method-radio-dot::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 999px;
    background: #6a4bff;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.18s ease;
}

.method-option:hover .method-content {
    border-color: #aebee9;
    box-shadow: 0 10px 24px rgba(77, 103, 232, 0.1);
}

.method-option input:checked + .method-content {
    border-color: #90a6ea;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    box-shadow: 0 10px 24px rgba(77, 103, 232, 0.14);
}

.method-option input:checked + .method-content .method-radio-dot {
    border-color: #6a4bff;
}

.method-option input:checked + .method-content .method-radio-dot::after {
    opacity: 1;
    transform: scale(1);
}

.bank-preview {
    margin-top: 14px;
    border: 1px solid #d8e2f7;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 14px;
}

.bank-preview.is-hidden {
    display: none;
}

.bank-preview-head {
    margin-bottom: 10px;
}

.bank-preview-head strong {
    display: block;
    color: #223258;
}

.bank-preview-head small {
    display: block;
    margin-top: 4px;
    color: #7582a2;
}

.bank-preview-grid {
    display: grid;
    gap: 10px;
}

.bank-preview-card {
    border: 1px solid #dde5f4;
    border-radius: 14px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 10px 20px rgba(37, 57, 98, 0.05);
}

.bank-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.bank-card-top strong {
    font-size: 14px;
}

.bank-card-meta {
    display: grid;
    gap: 6px;
}

.bank-card-meta div {
    display: grid;
    grid-template-columns: 95px 1fr;
    gap: 8px;
    font-size: 12px;
}

.bank-card-meta span {
    color: #7a86a5;
}

.bank-card-meta b {
    color: #172440;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.copy-pill {
    border: 1px solid #cad7f6;
    background: #f7f9ff;
    color: #6a4bff;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.bank-empty {
    border: 1px dashed #d2dbef;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    color: #7784a3;
}

.payment-form .btn-primary {
    margin-top: 16px;
    width: 100%;
    border-radius: 12px;
    min-height: 48px;
    font-size: 17px;
    letter-spacing: -0.01em;
    background: linear-gradient(90deg, #6a4bff 0%, #8a44ff 100%);
    box-shadow: 0 12px 24px rgba(106, 75, 255, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.payment-form .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(106, 75, 255, 0.28);
}

.secure-note {
    margin-top: 14px;
    text-align: center;
    color: #7d89a6;
    font-size: 13px;
}

.contracts-box {
    margin-top: 12px;
    border: 1px solid #e2e8fa;
    border-radius: 12px;
    background: #fbfcff;
    padding: 12px;
}

.contracts-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contract-link {
    border: 1px solid #d4ddf3;
    background: #fff;
    color: #5f6f94;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
}

.contract-link:hover {
    border-color: #a995ff;
    color: #6a4bff;
}

.contracts-check {
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #5f6f92;
    font-size: 13px;
}

.contracts-check input {
    margin-top: 2px;
}

.contract-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 19, 36, 0.45);
    z-index: 200;
}

.contract-modal {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: grid;
    place-items: center;
    padding: 14px;
}

.contract-modal-card {
    width: min(900px, 100%);
    max-height: 80vh;
    border-radius: 16px;
    border: 1px solid #e0e8fb;
    background: #fff;
    box-shadow: 0 20px 40px rgba(18, 34, 68, 0.22);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.contract-modal-head {
    border-bottom: 1px solid #e9eefb;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.contract-modal-head h3 {
    letter-spacing: -0.01em;
}

.contract-modal-close {
    border: 1px solid #d6def3;
    background: #fff;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    color: #53668f;
}

.contract-modal-body {
    padding: 14px 16px 18px;
    max-height: calc(80vh - 68px);
    overflow: auto;
    color: #314264;
    line-height: 1.65;
}

body.modal-open {
    overflow: hidden;
}

.summary-list {
    margin: 14px 0;
    padding: 14px;
    border: 1px solid #dbe3f4;
    border-radius: 12px;
    background: #f8fbff;
    display: grid;
    gap: 6px;
}

.bank-list {
    margin: 14px 0;
}

.bank-list h3 {
    margin-bottom: 8px;
}

.bank-item {
    border: 1px solid #dce2f4;
    border-radius: 10px;
    padding: 10px;
    background: #fcfdff;
    margin-bottom: 8px;
}

.admin-body {
    background:
        radial-gradient(950px 420px at 100% -8%, #e8eeff 0%, rgba(232, 238, 255, 0) 62%),
        radial-gradient(900px 380px at -10% 110%, #ecf2ff 0%, rgba(236, 242, 255, 0) 66%),
        #f3f6fc;
}

.silva-admin-body {
    --sidebar-width: 288px;
    --sidebar-mini-width: 94px;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    transition: grid-template-columns 0.26s ease;
}

body.sidebar-mini .admin-shell {
    grid-template-columns: var(--sidebar-mini-width) minmax(0, 1fr);
}

.admin-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    border-right: 1px solid #e3e8f4;
    padding: 12px 10px 14px;
    box-shadow: inset -1px 0 0 #eef2fb;
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 40;
    transition: width 0.26s ease, padding 0.26s ease;
}

body.sidebar-mini .admin-sidebar {
    width: var(--sidebar-mini-width);
    padding-left: 9px;
    padding-right: 9px;
}

.app-sidebar-menu .h-100,
#sidebar-menu {
    height: 100%;
}

#sidebar-menu {
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 10px 14px;
    border-bottom: 1px solid #edf1f9;
    transition: padding 0.2s ease;
}

body.sidebar-mini .sidebar-brand {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

body.sidebar-mini .sidebar-brand > div {
    display: none;
}

.brand-glyph {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6a4bff 0%, #8a44ff 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.04em;
}

.sidebar-brand strong {
    display: block;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.sidebar-brand span {
    display: block;
    margin-top: 2px;
    color: #7b879f;
    font-size: 12px;
}

.sidebar-nav {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
    padding-right: 2px;
    min-height: 0;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #d6dff3;
    border-radius: 999px;
}

.sidebar-group {
    display: grid;
    gap: 2px;
}

.sidebar-link {
    border-radius: 10px;
    padding: 12px 11px;
    display: grid;
    grid-template-columns: 20px 1fr 18px;
    align-items: center;
    gap: 10px;
    color: #1f2f4c;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar-link:hover {
    background: #f5f8ff;
    color: #233861;
}

.sidebar-link.active {
    background: #efe9ff;
    color: #6a4bff;
}

.sidebar-link.active::before {
    content: "";
    position: absolute;
    left: -3px;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #6a4bff 0%, #8a44ff 100%);
}

.sidebar-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-icon svg,
.sidebar-chevron svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.sidebar-chevron {
    color: #8996b3;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-group.has-children .sidebar-chevron:hover {
    background: #edf2ff;
    color: #6273a9;
}

.sidebar-group.has-children .sidebar-chevron:focus-visible {
    outline: 2px solid #a59afc;
    outline-offset: 2px;
}

.sidebar-group.open .sidebar-chevron {
    transform: rotate(90deg);
}

.sidebar-subnav {
    display: none;
    margin-left: 34px;
    padding: 2px 0 6px;
    border-left: 1px dashed #d7deee;
}

.sidebar-group.open .sidebar-subnav {
    display: grid;
}

.sidebar-sublink {
    padding: 9px 12px;
    font-size: 14px;
    color: #697999;
    border-radius: 8px;
}

.sidebar-sublink.active {
    background: #f4f7ff;
    color: #6a4bff;
    font-weight: 600;
}

.sidebar-help {
    margin-top: auto;
    background: #f6f7fb;
    border: 1px solid #e5ebfa;
    border-radius: 14px;
    padding: 14px 12px;
}

.help-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    margin-bottom: 8px;
}

.help-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #e6edff;
    color: #6a4bff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.sidebar-help p {
    color: #657491;
    line-height: 1.45;
    font-size: 13px;
}

.help-button {
    margin-top: 12px;
    width: 100%;
    border-radius: 10px;
    background: linear-gradient(100deg, #6a4bff 0%, #8a44ff 100%);
    color: #fff;
    font-weight: 700;
    padding: 10px 12px;
    display: inline-flex;
    justify-content: center;
    font-size: 14px;
}

body.sidebar-mini .sidebar-label,
body.sidebar-mini .sidebar-chevron,
body.sidebar-mini .sidebar-subnav,
body.sidebar-mini .sidebar-help {
    display: none !important;
}

body.sidebar-mini .sidebar-link {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 12px 0;
}

body.sidebar-mini .sidebar-link.active::before {
    left: auto;
    right: 8px;
    width: 2px;
    top: 11px;
    bottom: 11px;
}

.admin-main {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.admin-topbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f5;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-radius: 0;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 72px;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 28;
}

.topbar-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.button-toggle-menu {
    border: 1px solid #d8dfef;
    background: #fff;
    color: #4c5f86;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.topbar-quick-jump {
    border: 1px solid #d8e0f2;
    background: #fff;
    border-radius: 11px;
    min-height: 40px;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    color: #334564;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.topbar-quick-jump strong {
    font-size: 13px;
    letter-spacing: -0.01em;
}

.topbar-quick-jump span {
    border: 1px solid #e5ebf8;
    background: #f7f9ff;
    border-radius: 999px;
    font-size: 11px;
    color: #7787a5;
    padding: 3px 8px;
}

.topbar-quick-jump:hover {
    border-color: #aebcf2;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(66, 92, 156, 0.12);
}

.topbar-user {
    position: relative;
    display: flex;
    align-items: center;
}

.topbar-user-trigger {
    border: 1px solid #e5ebf9;
    background: #f9fbff;
    border-radius: 999px;
    padding: 5px 7px 5px 9px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.topbar-user-trigger:hover {
    border-color: #cfdaef;
    box-shadow: 0 8px 16px rgba(42, 59, 93, 0.12);
}

.topbar-user.open .topbar-user-trigger {
    border-color: #b9c8eb;
    background: #f4f7ff;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eaf0ff;
    color: #3f5ce2;
    font-weight: 800;
}

.avatar.small {
    width: 34px;
    height: 34px;
    font-size: 14px;
}

.topbar-role {
    display: block;
    font-size: 11px;
    color: #8a95ad;
    margin-top: 1px;
}

.topbar-user-meta strong {
    display: block;
    line-height: 1.1;
}

.topbar-user-caret {
    width: 18px;
    height: 18px;
    color: #7f8daa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: rotate(90deg);
    transition: transform 0.2s ease;
}

.topbar-user-caret svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.topbar-user.open .topbar-user-caret {
    transform: rotate(270deg);
}

.topbar-user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 250px;
    border: 1px solid #e1e8f7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 36px rgba(19, 31, 53, 0.18);
    padding: 8px;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 70;
}

.topbar-user.open .topbar-user-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.topbar-user-dropdown-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 10px;
    border-bottom: 1px solid #edf2fb;
    margin-bottom: 6px;
}

.topbar-user-dropdown-head strong {
    display: block;
    line-height: 1.2;
}

.topbar-user-dropdown-head span {
    color: #74829d;
    font-size: 12px;
}

.topbar-user-dropdown a {
    display: block;
    border-radius: 9px;
    padding: 10px 11px;
    color: #334563;
    font-weight: 600;
    font-size: 14px;
}

.topbar-user-dropdown a:hover {
    background: #f5f8ff;
}

.topbar-user-dropdown a.danger {
    color: #c03d5e;
}

.topbar-user-dropdown a.danger:hover {
    background: #fff3f6;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 35;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(15, 23, 38, 0.42);
    backdrop-filter: blur(2px);
}

.sidebar-overlay.is-hidden {
    display: none;
}

.command-palette {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: start center;
    padding: 78px 14px 14px;
}

.command-palette-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(14, 22, 35, 0.42);
    backdrop-filter: blur(3px);
}

.command-palette-dialog {
    position: relative;
    width: min(720px, 100%);
    max-height: calc(100vh - 110px);
    border-radius: 16px;
    border: 1px solid #dde5f9;
    background: #ffffff;
    box-shadow: 0 24px 50px rgba(17, 27, 46, 0.26);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.command-palette-head {
    padding: 12px;
    border-bottom: 1px solid #edf2fb;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.command-palette-head input {
    width: 100%;
    border: 1px solid #d9e1f3;
    border-radius: 10px;
    min-height: 44px;
    padding: 10px 12px;
    outline: none;
    font-size: 15px;
}

.command-palette-head input:focus {
    border-color: #a898ff;
    box-shadow: 0 0 0 3px rgba(95, 72, 255, 0.14);
}

.command-palette-hint {
    border: 1px solid #dfe6f8;
    background: #f6f8ff;
    border-radius: 8px;
    color: #7786a2;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 8px;
}

.command-palette-list {
    padding: 10px;
    overflow: auto;
    display: grid;
    gap: 8px;
}

.command-palette-item {
    border: 1px solid #e7edf9;
    border-radius: 11px;
    background: #fcfdff;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.command-palette-item strong {
    color: #253652;
    letter-spacing: -0.01em;
}

.command-palette-item small {
    color: #7a89a6;
    font-size: 12px;
    font-weight: 600;
}

.command-palette-item:hover,
.command-palette-item.is-active {
    border-color: #b7c4eb;
    background: #f6f9ff;
    transform: translateY(-1px);
}

.command-palette-empty {
    padding: 14px 16px;
    color: #7383a1;
}

@media (min-width: 981px) {
    .sidebar-overlay {
        display: none !important;
    }
}

.admin-content-wrap {
    margin: 0;
    padding: 18px 18px 24px;
}

.admin-page-head {
    margin: 0 0 10px;
}

.admin-page-head h1 {
    font-size: clamp(34px, 4vw, 48px);
    letter-spacing: -0.02em;
    line-height: 1.06;
}

.admin-page-head p {
    margin-top: 6px;
    color: #71819e;
    font-size: 15px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e1e8f5;
    border-radius: 14px;
    padding: 15px;
    box-shadow: none;
    min-height: 112px;
}

.stat-card p {
    color: #6e7e9c;
    font-weight: 600;
}

.stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 27px;
    letter-spacing: -0.02em;
}

.stat-purple {
    border-bottom: 3px solid #5972f2;
}

.stat-green {
    border-bottom: 3px solid #41b981;
}

.stat-yellow {
    border-bottom: 3px solid #efc345;
}

.stat-blue {
    border-bottom: 3px solid #4ea7fb;
}

.panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.panel {
    background: #fff;
    border: 1px solid #e1e8f5;
    border-radius: 12px;
    margin-top: 14px;
    overflow: hidden;
    box-shadow: none;
    animation: surface-in 0.35s ease both;
}

.panel-wide,
.panel-narrow {
    margin-top: 0;
}

.panel-head {
    padding: 14px 16px;
    border-bottom: 1px solid #e8eef9;
    background: #ffffff;
}

.panel-head h2 {
    letter-spacing: -0.015em;
}

.panel-body {
    padding: 16px;
}

.panel-head.between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.line-chart {
    padding: 12px 16px 8px;
}

.line-chart svg {
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: linear-gradient(180deg, #fcfdff 0%, #f8fbff 100%);
}

.chart-area {
    fill: rgba(89, 114, 242, 0.16);
}

.chart-line {
    fill: none;
    stroke: #6a4bff;
    stroke-width: 2.5;
}

.chart-point {
    fill: #6a4bff;
}

.line-chart-labels {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    font-size: 12px;
    color: #7a87a3;
    margin-top: 9px;
    text-align: center;
}

.donut-wrap {
    padding: 16px;
}

.donut {
    width: 184px;
    height: 184px;
    border-radius: 999px;
    margin: 0 auto;
    position: relative;
}

.donut::after {
    content: "";
    position: absolute;
    inset: 30px;
    background: #fff;
    border-radius: 999px;
    border: 1px solid #edf1f8;
}

.legend-list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.legend-list li {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    gap: 8px;
    align-items: center;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid #edf2fb;
    vertical-align: middle;
}

.data-table th {
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #6e7c99;
    background: #f8fbff;
}

.data-table tr:hover td {
    background: #fcfdff;
}

.data-table td small {
    display: block;
    margin-top: 3px;
    color: #7b879f;
}

.table-link {
    color: #4963e7;
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.badge-success {
    background: #def7ea;
    color: #1e8a52;
}

.badge-warning {
    background: #fff4d2;
    color: #966f00;
}

.badge-danger {
    background: #ffe5eb;
    color: #b33252;
}

.badge-muted {
    background: #e9edf6;
    color: #54617b;
}

.muted {
    color: #7e8aa7;
}

.mt-8 {
    margin-top: 8px;
}

.filter-form {
    display: grid;
    grid-template-columns: 1fr 180px auto auto;
    gap: 10px;
    padding: 14px 16px;
}

.filter-form.single {
    grid-template-columns: 1fr auto auto;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
}

.detail-grid strong {
    font-size: 13px;
    color: #667290;
}

.detail-grid p {
    margin-top: 6px;
    font-weight: 600;
}

.integration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.integration-card {
    background: #fff;
    border: 1px solid #e1e8f5;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(38, 57, 91, 0.04);
}

.integration-card p {
    margin-top: 9px;
    margin-bottom: 10px;
    color: #6f7b97;
}

.integration-card .badge {
    margin-top: 8px;
}

.link-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.link-box input {
    width: 100%;
}

@keyframes surface-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes payment-card-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-danger {
    color: #fff;
    background: linear-gradient(90deg, #f05a5a 0%, #e03e63 100%);
}

.btn-danger:hover {
    filter: brightness(0.97);
}

.icon-btn {
    min-height: 40px;
    border-radius: 10px;
    white-space: nowrap;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.action-cell {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.truncate-token {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    margin-right: 8px;
}

.search-inline {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    width: min(100%, 380px);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.filter-full {
    grid-column: 1 / -1;
}

.filter-actions {
    grid-column: 1 / -1;
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-primary {
    background: #ede8ff;
    color: #6a4bff;
}

.panel-head small {
    color: #7a86a6;
    font-size: 12px;
    font-weight: 600;
}

.payment-logo-wrap {
    margin: 0 auto 10px;
    display: flex;
    justify-content: center;
}

.payment-logo {
    max-width: 180px;
    max-height: 56px;
    object-fit: contain;
}

.min-payment-box.alt {
    margin-top: 8px;
    background: #fbf9ff;
}

.link-source-pill {
    margin-top: 8px;
    padding: 8px 12px;
    border: 1px dashed #cfc4ff;
    border-radius: 10px;
    text-align: center;
    color: #6a4bff;
    font-size: 13px;
    background: #f7f4ff;
}

.bank-preview-card.selectable {
    position: relative;
    cursor: pointer;
    padding-left: 38px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bank-preview-card.selectable:hover {
    border-color: #c6bbff;
    transform: translateY(-1px);
}

.bank-select-input {
    position: absolute;
    left: 12px;
    top: 14px;
}

.bank-preview-card.selectable.is-selected {
    border-color: #a996ff;
    box-shadow: 0 12px 24px rgba(106, 75, 255, 0.12);
}

.integration-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 14px;
}

.info-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 7px;
    color: #36445f;
}

.warning-box {
    border: 1px solid #ffd88c;
    background: #fff8e8;
    color: #946a00;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
}

.instruction-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #33425f;
}

.payment-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.settings-card {
    border: 1px solid #e3e9f8;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
}

.settings-card h3 {
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.method-toggle-list {
    display: grid;
    gap: 10px;
}

.method-toggle-item {
    border: 1px solid #e4e9f7;
    border-radius: 12px;
    padding: 11px 12px;
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
    align-items: center;
}

.method-toggle-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.method-toggle-text strong,
.method-toggle-text small {
    display: block;
}

.method-toggle-text small {
    color: #7b87a5;
    font-size: 12px;
    margin-top: 2px;
}

.switch {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 24px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    inset: 0;
    background: #d4daea;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 7px rgba(12, 21, 36, 0.2);
}

.switch input:checked + .slider {
    background: linear-gradient(90deg, #6a4bff 0%, #8a44ff 100%);
}

.switch input:checked + .slider::before {
    transform: translateX(18px);
}

.api-section {
    margin-top: 14px;
    border: 1px solid #e7ecf8;
    border-radius: 12px;
    padding: 12px;
}

.api-section:first-child {
    margin-top: 0;
}

.api-section-head {
    margin-bottom: 8px;
}

.grid-col-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 14px;
}

.settings-form-grid > .form-actions-right {
    grid-column: 1 / -1;
}

.settings-left,
.settings-right {
    min-width: 0;
}

.logo-preview-box {
    width: 100%;
    min-height: 128px;
    border: 1px dashed #d8dff2;
    border-radius: 12px;
    background: #fbfcff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #7884a3;
}

.logo-preview-box.large {
    min-height: 160px;
}

.logo-preview-box img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}

.receipt-preview {
    min-height: 100%;
}

.receipt-card {
    border: 1px solid #e7ecf8;
    border-radius: 12px;
    background: #fbfcff;
    padding: 14px;
    display: grid;
    gap: 8px;
}

.receipt-logo {
    width: 180px;
    max-width: 100%;
    max-height: 58px;
    object-fit: contain;
}

.preview-area {
    min-height: 350px;
}

.result-preview {
    border-radius: 14px;
    border: 1px solid #e4e9f8;
    padding: 22px 16px;
    background: #fbfcff;
    text-align: center;
}

.result-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.result-preview.success .result-icon {
    background: #e4f7ec;
    color: #2f9d59;
}

.result-preview.failed .result-icon {
    background: #ffe8e1;
    color: #d35831;
}

.result-preview p {
    margin-top: 8px;
    margin-bottom: 14px;
    color: #647593;
}

.form-actions-right {
    display: flex;
    justify-content: flex-end;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 14px;
}

.profile-panel {
    overflow: hidden;
}

.profile-hero {
    border-radius: 14px 14px 0 0;
    background: linear-gradient(120deg, #6a4bff 0%, #8a44ff 100%);
    color: #fff;
    text-align: center;
    padding: 22px 14px;
}

.profile-avatar {
    width: 74px;
    height: 74px;
    border-radius: 999px;
    background: #fff;
    color: #6a4bff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 800;
}

.profile-hero h2 {
    margin-top: 10px;
    letter-spacing: -0.01em;
}

.profile-hero p {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.9);
}

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

.tab-link {
    padding: 8px 12px;
    border-radius: 8px;
    color: #6f7d99;
    font-weight: 600;
}

.tab-link.active {
    background: #f1edff;
    color: #6a4bff;
}

.result-state {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
}

.result-state.success {
    background: #e4f7ec;
    color: #2f9d59;
}

.result-state.failed {
    background: #ffe8e1;
    color: #d35831;
}

.result-state.pending {
    background: #eceeff;
    color: #6a4bff;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.report-item {
    border: 1px solid #e2e9f8;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

.report-item p {
    color: #6f7d99;
}

.report-item strong {
    display: block;
    margin-top: 6px;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.mini-bars {
    display: grid;
    gap: 10px;
}

.mini-bar-row {
    display: grid;
    grid-template-columns: minmax(120px, 190px) 1fr auto;
    gap: 10px;
    align-items: center;
}

.mini-bar-track {
    height: 10px;
    border-radius: 999px;
    background: #eef2fb;
    overflow: hidden;
}

.mini-bar-value {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #6a4bff 0%, #4c86ff 100%);
}

.context-preview {
    margin: 0;
    font-size: 12px;
    color: #657392;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

@media (max-width: 1320px) {
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .panel-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .method-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    body.sidebar-mini {
        --sidebar-mini-width: var(--sidebar-width);
    }

    .admin-shell {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .admin-sidebar {
        width: min(86vw, 300px);
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-108%);
        transition: transform 0.25s ease;
        max-height: none;
        height: 100vh;
        box-shadow: 0 18px 36px rgba(13, 23, 42, 0.14);
    }

    .sidebar-collapsed .admin-sidebar {
        transform: translateX(0);
    }

    .admin-main {
        padding: 0;
    }

    .admin-topbar {
        padding: 10px 14px;
    }

    .topbar-quick-jump span {
        display: none;
    }

    .topbar-user-dropdown {
        width: min(90vw, 250px);
    }

    .admin-content-wrap {
        padding: 14px;
    }

    .admin-page-head h1 {
        font-size: clamp(30px, 8vw, 42px);
    }

    .button-toggle-menu {
        display: inline-flex;
    }

    .sidebar-help {
        margin-top: 12px;
    }

    .filter-form,
    .filter-form.single,
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .payment-settings-grid,
    .settings-form-grid,
    .integration-layout-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .report-grid {
        grid-template-columns: 1fr;
    }

    .grid-col-3 {
        grid-template-columns: 1fr;
    }

    .search-inline {
        width: 100%;
    }

    .quick-steps {
        grid-template-columns: 1fr;
    }

    .quick-pay-notes {
        grid-template-columns: 1fr;
    }

    .quick-field-grid {
        grid-template-columns: 1fr 1fr;
    }

    .install-steps-modern {
        grid-template-columns: 1fr;
    }

    .install-shell,
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .install-main-panel,
    .auth-form-panel {
        padding: 12px;
    }
}

@media (max-width: 760px) {
    .grid-col-2 {
        grid-template-columns: 1fr;
    }

    .stat-grid,
    .integration-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-topbar {
        align-items: center;
    }

    .topbar-quick-jump {
        padding-left: 10px;
        padding-right: 10px;
    }

    .topbar-quick-jump strong {
        font-size: 12px;
    }

    .topbar-user-trigger {
        padding: 5px 6px 5px 6px;
    }

    .topbar-user-meta {
        display: none;
    }

    .payment-card h1 {
        font-size: 28px;
    }

    .payment-card {
        padding: 18px 15px;
        border-radius: 16px;
    }

    .payment-steps {
        gap: 6px;
    }

    .step {
        min-width: 70px;
        font-size: 11px;
    }

    .method-content {
        padding: 11px;
    }

    .method-main strong {
        font-size: 15px;
    }

    .method-brand {
        width: 62px;
        height: 24px;
        padding: 2px 5px;
    }

    .bank-card-meta div {
        grid-template-columns: 82px 1fr;
    }

    .quick-field-grid,
    .method-list-grid {
        grid-template-columns: 1fr;
    }

    .quick-step {
        min-height: 54px;
        grid-template-columns: 56px 1fr;
    }

    .quick-step span {
        font-size: 30px;
    }

    .quick-step-actions.dual {
        grid-template-columns: 1fr;
    }

    .install-side-panel,
    .auth-side-panel,
    .auth-card {
        padding: 16px;
    }

    .install-modernized .install-main-panel,
    .auth-form-panel {
        border-radius: 16px;
    }

    .contracts-links {
        flex-direction: column;
    }

    .contract-link {
        width: 100%;
        justify-content: center;
        display: inline-flex;
    }

    .report-grid {
        grid-template-columns: 1fr;
    }

    .mini-bar-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .action-cell {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions-right {
        justify-content: stretch;
    }

    .form-actions-right .btn-primary,
    .form-actions-right .btn-danger {
        width: 100%;
    }
}

/* Commercial Modern Refresh */
.admin-ui-modern {
    --surface-soft: #f9fbff;
    --surface-line: #e2e9f8;
    --surface-strong: #ffffff;
    --surface-shadow: 0 16px 32px rgba(33, 48, 82, 0.08);
}

.admin-ui-modern .admin-content-wrap {
    max-width: 1580px;
    margin-inline: auto;
    padding-top: 20px;
    padding-bottom: 28px;
}

.admin-ui-modern .admin-page-head h1 {
    font-size: clamp(30px, 3.4vw, 44px);
    color: #1a2949;
}

.admin-ui-modern .admin-page-head p {
    margin-top: 7px;
    font-size: 15px;
    color: #6f7f9f;
}

.admin-ui-modern .panel,
.admin-ui-modern .stat-card,
.admin-ui-modern .integration-card,
.admin-ui-modern .settings-card,
.admin-ui-modern .report-item {
    border: 1px solid var(--surface-line);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: var(--surface-shadow);
}

.admin-ui-modern .panel {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-ui-modern .panel:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(30, 44, 78, 0.12);
}

.admin-ui-modern .panel-head {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid #e9effb;
    padding: 15px 16px;
}

.admin-ui-modern .panel-head h2 {
    color: #243656;
    letter-spacing: -0.01em;
}

.admin-ui-modern .stat-card {
    min-height: 116px;
    border-radius: 16px;
}

.admin-ui-modern .stat-card strong {
    color: #1a2a4b;
}

.admin-ui-modern .report-item {
    border-radius: 14px;
}

.admin-ui-modern .report-item strong {
    color: #1b2b4d;
}

.admin-ui-modern .data-table {
    min-width: 880px;
}

.admin-ui-modern .data-table th {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #6f809f;
    background: #f7faff;
}

.admin-ui-modern .data-table tbody tr:nth-child(even) td {
    background: #fbfdff;
}

.admin-ui-modern .data-table tr:hover td {
    background: #f2f6ff;
}

.admin-ui-modern .form-group input,
.admin-ui-modern .form-group select,
.admin-ui-modern .form-group textarea,
.admin-ui-modern .filter-form input,
.admin-ui-modern .filter-form select {
    border-color: #d7e0f3;
    background: #ffffff;
    border-radius: 11px;
    min-height: 42px;
}

.admin-ui-modern .form-group textarea {
    min-height: 110px;
}

.admin-ui-modern .form-group input:focus,
.admin-ui-modern .form-group select:focus,
.admin-ui-modern .form-group textarea:focus,
.admin-ui-modern .filter-form input:focus,
.admin-ui-modern .filter-form select:focus {
    border-color: #9d8cff;
    box-shadow: 0 0 0 3px rgba(106, 75, 255, 0.14);
}

.admin-ui-modern .btn-primary,
.admin-ui-modern .btn-ghost,
.admin-ui-modern .btn-secondary {
    min-height: 40px;
    border-radius: 11px;
    font-weight: 700;
}

.admin-ui-modern .btn-primary {
    background: linear-gradient(90deg, #6a4bff 0%, #7f45ff 50%, #596dff 100%);
    box-shadow: 0 12px 24px rgba(90, 83, 246, 0.24);
}

.admin-ui-modern .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(90, 83, 246, 0.28);
}

.admin-ui-modern .btn-ghost {
    border: 1px solid #cfd8ee;
    color: #334a73;
    background: #ffffff;
}

.admin-ui-modern .btn-ghost:hover {
    border-color: #b7c6e9;
    background: #f8fbff;
}

.admin-ui-modern .badge {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 800;
}

.admin-ui-modern .badge-success {
    background: #dff8ec;
    color: #1d8b51;
}

.admin-ui-modern .badge-warning {
    background: #fff3cf;
    color: #9c7300;
}

.admin-ui-modern .badge-danger {
    background: #ffe6ed;
    color: #b53a58;
}

.admin-ui-modern .badge-muted {
    background: #e9edf7;
    color: #5a6884;
}

.install-modernized {
    background:
        radial-gradient(900px 380px at 100% -10%, rgba(122, 95, 255, 0.14) 0%, rgba(122, 95, 255, 0) 66%),
        radial-gradient(900px 400px at -10% 110%, rgba(74, 152, 255, 0.16) 0%, rgba(74, 152, 255, 0) 68%),
        linear-gradient(180deg, #f5f8ff 0%, #eef3ff 100%);
}

.install-modernized .install-main-panel,
.install-modernized .install-side-panel,
.auth-modern-body .auth-side-panel,
.auth-modern-body .auth-form-panel {
    box-shadow: 0 20px 36px rgba(34, 51, 89, 0.1);
}

.auth-modern-body .auth-card {
    border-color: #dfe8fa;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.auth-modern-body .auth-card .form-group input {
    min-height: 44px;
    border-radius: 11px;
}

.auth-modern-body .auth-submit {
    min-height: 48px;
}

@media (max-width: 980px) {
    .admin-ui-modern .panel:hover {
        transform: none;
    }

    .admin-ui-modern .admin-content-wrap {
        padding-top: 14px;
        padding-bottom: 20px;
    }
}
