﻿@import url('theme.css');
/* =============================================
   NAVBAR
   ============================================= */
.custom-navbar {
    overflow-x: clip;
    padding: 0;
    border-bottom: 1px solid var(--border);
}

    .custom-navbar .container {
        min-height: 72px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        padding-top: .6rem;
        padding-bottom: .6rem;
    }

.logo {
    height: 48px;
}

.navbar-nav {
    gap: 4px;
}

    .navbar-nav .nav-link {
        font-size: .92rem;
        font-weight: 500;
        color: #3E342E;
        padding: .6rem 1rem;
        border-radius: 8px;
        transition: color .15s, background .15s;
    }

        .navbar-nav .nav-link:hover {
            color: var(--primary);
            background: #FAF3EC;
        }

    .navbar-nav .dropdown-toggle::after {
        margin-right: 5px;
        margin-left: 0;
        vertical-align: 2px;
    }

.auth-area {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.auth-link {
    white-space: nowrap;
    text-decoration: none;
    color: #6B6055;
    font-size: .88rem;
    font-weight: 500;
    transition: color .15s;
}

    .auth-link:hover {
        color: var(--primary);
    }

.dropdown-menu {
    max-width: 220px;
    white-space: normal;
    overflow-wrap: break-word;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(43,37,32,.08);
    padding: .5rem;
    margin-top: 8px;
}

.dropdown-item {
    font-size: .88rem;
    color: #3E342E;
    padding: .55rem .75rem;
    border-radius: 6px;
    transition: background .12s, color .12s;
}

    .dropdown-item:hover {
        background-color: #FAF3EC;
        color: var(--primary);
    }

.dropdown-menu-end {
    right: 0;
    left: auto;
}

html[dir="rtl"] .auth-area {
    margin-right: auto;
}

html[dir="ltr"] .auth-area {
    margin-left: auto;
}

/* Mobile Auth */
.auth-mobile {
    padding: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .auth-mobile a {
        color: #3E342E;
        text-decoration: none;
        font-size: .9rem;
    }

@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        flex: 1;
        align-items: center;
    }
}

/* =============================================
   LOGIN - BASE STYLES (مشترک همه صفحات لاگین)
   ============================================= */
.login-page {
    min-height: 100vh;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    font-family: inherit;
}

.login-card {
    background: #fff;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(28,25,23,.10);
}

.login-top {
    background: #2B2520;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
}

.login-logo {
    font-size: 2.2rem;
    margin-bottom: .75rem;
}

.login-brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: #F5EFE8;
    letter-spacing: .02em;
}

.login-tagline {
    font-size: .78rem;
    color: #9c877a;
    margin-top: .3rem;
}

.login-body {
    padding: 2rem;
}

.login-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
}

.login-subtitle {
    font-size: .8rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.6;
}

/* Form */
.login-group {
    margin-bottom: 1.1rem;
}

.login-label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: .35rem;
}

.login-input {
    width: 100%;
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    padding: .6rem .9rem;
    font-size: .9rem;
    color: var(--text-dark);
    background: var(--bg-light);
    font-family: inherit;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

    .login-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(201,125,79,.12);
        background: #fff;
    }

    .login-input:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

/* Error & Success */
.login-error {
    background: #fef2f2;
    border: 0.5px solid #fecaca;
    color: #dc2626;
    border-radius: 10px;
    padding: .65rem 1rem;
    font-size: .82rem;
    text-align: center;
}

.login-success {
    background: #EEF4EE;
    border: 0.5px solid #C4D9C5;
    color: var(--green-dark);
    border-radius: 10px;
    padding: .65rem 1rem;
    font-size: .82rem;
    text-align: center;
}

/* Buttons */
.btn-login-primary,
.btn-login-green {
    width: 100%;
    border: none;
    border-radius: var(--radius);
    padding: .72rem;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.btn-login-primary {
    background: var(--primary);
    color: #fff;
}

    .btn-login-primary:hover:not(:disabled) {
        background: var(--primary-dark);
    }

.btn-login-green {
    background: var(--green);
    color: #fff;
    margin-bottom: 1.25rem;
}

    .btn-login-green:hover:not(:disabled) {
        background: var(--green-dark);
    }

.btn-login-secondary {
    width: 100%;
    background: transparent;
    color: var(--primary);
    border: 0.5px solid var(--primary);
    border-radius: var(--radius);
    padding: .65rem;
    font-size: .88rem;
    font-weight: 600;
    margin-top: .75rem;
}

    .btn-login-secondary:hover {
        background: #FDF5EF;
    }

.btn-login-primary:active:not(:disabled),
.btn-login-green:active:not(:disabled) {
    transform: scale(.98);
}

button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Spinner */
.login-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================
   VARIATIONS (تفاوت‌های هر صفحه)
   ============================================= */

/* صفحه با انتخاب نقش (Role) */
.login-page--role .role-group {
    display: flex;
    gap: .6rem;
}

.login-page--role .role-card {
    position: relative;
    flex: 1;
}

    .login-page--role .role-card input {
        position: absolute;
        opacity: 0;
        inset: 0;
        margin: 0;
        cursor: pointer;
    }

.login-page--role .role-card-inner {
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    padding: .85rem .75rem;
    text-align: center;
    background: var(--bg-light);
    transition: all .15s;
    pointer-events: none;
}

.login-page--role .role-card input:checked + .role-card-inner {
    border-color: var(--primary);
    background: #FDF5EF;
}

    .login-page--role .role-card input:checked + .role-card-inner .role-card-label {
        color: #A8622D;
    }

/* صفحه با شماره تلفن */
.login-page--phone .login-card,
.login-page--otp .login-card {
    max-width: 420px;
}

.login-phone-wrap {
    display: flex;
    gap: .5rem;
}

.login-country {
    width: 110px;
    flex-shrink: 0;
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    padding: .6rem .5rem;
    font-size: .82rem;
    background: var(--bg-light);
    outline: none;
    cursor: pointer;
}

    .login-country:focus {
        border-color: var(--primary);
    }

/* صفحه OTP */
.otp-input {
    text-align: center;
    letter-spacing: .2em;
    font-size: 1.1rem;
}

.otp-group {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 1.75rem;
}

.otp-box {
    width: 46px;
    height: 54px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    background: var(--bg-light);
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    outline: none;
}

    .otp-box:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(201,125,79,.12);
        background: #fff;
    }

.otp-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 0.5px solid #F5F0EB;
}

.otp-link-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: .8rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .35rem;
}

    .otp-link-btn:hover {
        text-decoration: underline;
    }

.otp-cooldown {
    font-size: .78rem;
    color: var(--text-light);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--text-light);
    font-size: .72rem;
    margin: 1.25rem 0;
}

    .login-divider::before,
    .login-divider::after {
        content: '';
        flex: 1;
        height: 0.5px;
        background: var(--border);
    }

.login-switch, .login-footer {
    text-align: center;
    font-size: .8rem;
    color: var(--text-light);
}

    .login-switch a, .login-footer a {
        color: var(--primary);
        font-weight: 600;
        text-decoration: none;
    }

        .login-switch a:hover,
        .login-footer a:hover {
            text-decoration: underline;
        }




/********************Employee***************************/
.bk-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ---- Steps ---- */
.bk-steps {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 1.5rem 0 2rem;
}

.bk-step {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-light);
}

.bk-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border);
    color: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .74rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}

.bk-step.active .bk-step-num {
    background: var(--primary);
    color: #fff;
}

.bk-step.active {
    color: var(--text-dark);
}

.bk-step.done .bk-step-num {
    background: var(--green);
    color: #fff;
}

.bk-step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    max-width: 60px;
}

/* ---- Date section ---- */
.bk-date-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
}

.bk-section-label {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: .4rem;
}

.bk-cal-toggle {
    background: none;
    border: none;
    color: var(--primary);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

    .bk-cal-toggle:hover {
        text-decoration: underline;
    }

.bk-date-chips {
    display: flex;
    gap: .55rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    margin-bottom: 1.75rem;
    scrollbar-width: thin;
}

.bk-date-chip {
    flex-shrink: 0;
    min-width: 62px;
    border: 0.5px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    padding: .6rem .5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .1s;
}

    .bk-date-chip:active {
        transform: scale(.97);
    }

    .bk-date-chip.active {
        background: var(--primary);
        border-color: var(--primary);
    }

.bk-date-chip-day {
    display: block;
    font-size: .72rem;
    color: var(--text-light);
    margin-bottom: .3rem;
}

.bk-date-chip.active .bk-date-chip-day {
    color: rgba(255,255,255,.8);
}

.bk-date-chip-num {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.bk-date-chip.active .bk-date-chip-num {
    color: #fff;
}

.bk-full-calendar {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.75rem;
}

/* ---- Employees ---- */
.employee-swiper {
    margin-bottom: 2rem;
    padding-bottom: .5rem !important;
}

.employee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    width: 96px;
}

.employee-card {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 2px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-light);
    transition: border-color .2s, box-shadow .2s;
}

    .employee-card.selected {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-light);
    }

.employee-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-initial {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
}

.employee-name {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

.employee-availability {
    text-align: center;
}

.avail-badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 600;
    padding: .18rem .5rem;
    border-radius: 20px;
    white-space: nowrap;
}

    .avail-badge.ok {
        background: var(--green-light);
        color: var(--green-dark);
        border: 0.5px solid var(--green-border);
    }

    .avail-badge.none {
        background: var(--border-light);
        color: var(--text-light);
        border: 0.5px solid var(--border);
    }

/* ---- Time slots ---- */
.bk-slots-panel {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.bk-slot-group-title {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-light);
    margin: 1rem 0 .6rem;
}

    .bk-slot-group-title:first-child {
        margin-top: 0;
    }

.bk-slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.btnSchedule {
    border: 0.5px solid var(--border);
    background: var(--bg-light);
    color: var(--text-dark);
    border-radius: 20px;
    padding: .5rem 1.1rem;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}

    .btnSchedule:hover:not(:disabled) {
        border-color: var(--primary);
        background: var(--primary-light);
    }

    .btnSchedule.picked {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }

    .btnSchedule:disabled {
        background: var(--border-light);
        color: var(--text-light);
        text-decoration: line-through;
        cursor: not-allowed;
    }

.bk-empty-slots {
    background: #FFFBEB;
    border: 0.5px solid #FDE68A;
    color: #D97706;
    border-radius: var(--radius);
    padding: .75rem 1rem;
    font-size: .85rem;
}

/* ---- Sticky confirm bar ---- */
.bk-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    border-top: 0.5px solid var(--border);
    box-shadow: 0 -8px 24px rgba(28,25,23,.08);
    padding: .85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 40;
    animation: bk-slide-up .2s ease;
}

@@keyframes bk-slide-up {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.bk-sticky-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bk-sticky-name {
    font-size: .82rem;
    font-weight: 700;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bk-sticky-time {
    font-size: .76rem;
    color: var(--text-light);
}

.btn-confirm {
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: .65rem 1.5rem;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s;
}

    .btn-confirm:hover {
        background: var(--green-dark);
    }

.bk-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: bk-spin .7s linear infinite;
    margin: 0 auto;
}

@keyframes bk-spin {
    to {
        transform: rotate(360deg);
    }
}
/**************************Summary Reservation***********************************/
.rs-container {
    max-width: 460px;
    margin: 0 auto;
}

.rs-card {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-top: 1.25rem;
}

.rs-card-head {
    padding: 1.5rem 1.5rem 1rem;
    text-align: center;
}

.rs-card-eyebrow {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: .35rem;
}

.rs-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* ---- Info rows ---- */
.rs-rows {
    padding: .25rem 1.5rem 1.25rem;
}

.rs-row {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .8rem 0;
    border-bottom: 0.5px solid var(--border-light);
}

    .rs-row:last-child {
        border-bottom: none;
    }

.rs-row-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.rs-row-body {
    min-width: 0;
}

.rs-row-label {
    font-size: .72rem;
    color: var(--text-light);
    margin-bottom: 1px;
}

.rs-row-value {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Price bar ---- */
.rs-price-bar {
    background: var(--primary-light);
    border-top: 0.5px solid var(--primary-border);
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rs-price-label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.rs-price-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-dark);
}

/* ---- Actions ---- */
.rs-actions {
    padding: 1.25rem 1.5rem 1.5rem;
}

.btn-reserve {
    width: 100%;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: .85rem;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    transition: background .15s, transform .1s;
}

    .btn-reserve:hover:not(:disabled) {
        background: var(--green-dark);
    }

    .btn-reserve:active:not(:disabled) {
        transform: scale(.98);
    }

    .btn-reserve:disabled {
        opacity: .65;
        cursor: not-allowed;
    }

.rs-btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rs-spin .7s linear infinite;
    flex-shrink: 0;
}

@keyframes rs-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---- Error alert ---- */
.rs-alert-error {
    background: var(--danger-light);
    border: 0.5px solid var(--danger-border);
    color: var(--danger);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    font-size: .84rem;
    margin: 0 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.rs-alert-actions {
    display: flex;
    gap: .6rem;
}

.btn-retry {
    background: #fff;
    color: var(--danger);
    border: 0.5px solid var(--danger-border);
    border-radius: 8px;
    padding: .4rem .9rem;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}

    .btn-retry:hover {
        background: var(--danger-light);
    }

/* ---- Success state ---- */
.rs-success {
    text-align: center;
    padding: 3rem 1.5rem 2.5rem;
}

.rs-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--green-light);
    border: 0.5px solid var(--green-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--green-dark);
    margin: 0 auto 1.25rem;
}

.rs-success-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: .5rem;
}

.rs-success-sub {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.75rem;
}

.rs-success-actions {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.btn-success-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: .75rem;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

    .btn-success-primary:hover {
        background: var(--primary-dark);
    }

.btn-success-ghost {
    background: var(--border-light);
    color: var(--text-muted);
    border: none;
    border-radius: var(--radius);
    padding: .75rem;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

    .btn-success-ghost:hover {
        background: var(--border);
    }

.rs-loading-wrap {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-light);
}

/**************************Transaction*******************************/
.pay-container {
    max-width: 520px;
    margin: 0 auto;
}

.pay-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.pay-card {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 1.75rem;
    position: relative;
}

.pay-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.85);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    z-index: 5;
}

.pay-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: pay-spin .7s linear infinite;
}

@@keyframes pay-spin {
    to {
        transform: rotate(360deg);
    }
}

.pay-loading-text {
    font-size: .82rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ---- Field groups ---- */
.pay-group {
    margin-bottom: 1.25rem;
}

.pay-label {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: .5rem;
}

.pay-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pay-input {
    width: 100%;
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    padding: .65rem .9rem;
    font-size: .9rem;
    color: var(--text-dark);
    background: var(--bg-light);
    font-family: inherit;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

    .pay-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-light);
        background: var(--surface);
    }

/* ---- Transaction type toggle ---- */
.pay-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
}

.pay-type-option {
    position: relative;
}

    .pay-type-option input {
        position: absolute;
        opacity: 0;
        inset: 0;
        margin: 0;
        cursor: pointer;
    }

.pay-type-inner {
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    padding: .75rem .5rem;
    text-align: center;
    background: var(--bg-light);
    transition: border-color .15s, background .15s, color .15s;
    pointer-events: none;
}

.pay-type-icon {
    display: block;
    font-size: 1.1rem;
    margin-bottom: .25rem;
}

.pay-type-label {
    font-size: .82rem;
    font-weight: 700;
    color: var(--text-muted);
}

.pay-type-option.payment input:checked + .pay-type-inner {
    border-color: var(--green);
    background: var(--green-light);
}

    .pay-type-option.payment input:checked + .pay-type-inner .pay-type-label {
        color: var(--green-dark);
    }

.pay-type-option.refund input:checked + .pay-type-inner {
    border-color: var(--danger);
    background: var(--danger-light);
}

    .pay-type-option.refund input:checked + .pay-type-inner .pay-type-label {
        color: var(--danger);
    }

/* ---- Amount ---- */
.pay-amount-wrap {
    position: relative;
}

.pay-amount-input {
    width: 100%;
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    padding: .75rem 3.2rem .75rem .9rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    background: var(--bg-light);
    font-family: inherit;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

    .pay-amount-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-light);
        background: var(--surface);
    }

.pay-amount-suffix {
    position: absolute;
    inset-inline-end: .9rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: .78rem;
    color: var(--text-light);
    font-weight: 600;
    pointer-events: none;
}

/* ---- File upload ---- */
.pay-upload-box {
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    background: var(--bg-light);
    position: relative;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

    .pay-upload-box:hover {
        border-color: var(--primary);
        background: var(--primary-light);
    }

    .pay-upload-box input[type="file"] {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
    }

.pay-upload-icon {
    font-size: 1.4rem;
    margin-bottom: .35rem;
}

.pay-upload-text {
    font-size: .8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.pay-receipt-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .75rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    background: var(--primary-light);
    border: 0.5px solid var(--primary-border);
    border-radius: 20px;
    padding: .3rem .8rem;
}

    .pay-receipt-link:hover {
        background: #fbe6d4;
    }

/* ---- Actions ---- */
.pay-actions {
    display: flex;
    gap: .75rem;
    margin-top: 1.75rem;
}

.btn-pay-save {
    flex: 1;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: .75rem;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .1s;
}

    .btn-pay-save:hover:not(:disabled) {
        background: var(--green-dark);
    }

    .btn-pay-save:active:not(:disabled) {
        transform: scale(.98);
    }

    .btn-pay-save:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

.btn-pay-cancel {
    background: var(--border-light);
    color: var(--text-muted);
    border: none;
    border-radius: var(--radius);
    padding: .75rem 1.25rem;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

    .btn-pay-cancel:hover {
        background: var(--border);
    }

@@media (max-width: 480px) {
    .pay-row {
        grid-template-columns: 1fr;
    }
}