*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --bg: #04040a;
    --surface: #0f0f17;
    --card: #161622;
    --primary: #7c3aed;
    --primary2: #6d28d9;
    --glow: rgba(124, 58, 237, .35);
    --text: #f9fafb;
    --muted: #9ca3af;
    --border: rgba(255, 255, 255, .07);
    --border2: rgba(255, 255, 255, .12)
}

html,
body {
    height: 100%
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased
}

h1,
h2,
h3 {
    font-family: 'Space Grotesk', sans-serif
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer
}

input,
textarea,
button {
    font-family: inherit
}

.logo-q {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    box-shadow: 0 4px 12px var(--glow);
    flex-shrink: 0
}

.logo-lg {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    border-radius: 12px
}

.logo-sm {
    width: 28px;
    height: 28px;
    font-size: .85rem;
    border-radius: 7px
}

/* App nav */
.app-nav {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    border-bottom: 1px solid var(--border);
    background: rgba(4, 4, 10, .9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.05rem
}

.nav-user-area {
    display: flex;
    align-items: center;
    gap: .75rem
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    color: #fff
}

.sign-out-btn {
    background: none;
    border: 1px solid var(--border2);
    color: var(--muted);
    padding: .4rem .9rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: .82rem;
    transition: all .2s
}

.sign-out-btn:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, .2)
}

/* Auth */
.auth-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh
}

.auth-left {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.back-link {
    color: var(--muted);
    font-size: .875rem;
    margin-bottom: 3rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    transition: color .2s
}

.back-link:hover {
    color: var(--text)
}

.auth-branding {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 2.5rem
}

.auth-left h1 {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -.5px;
    margin-bottom: .5rem
}

.auth-left>p {
    color: var(--muted);
    margin-bottom: 2rem;
    font-size: .95rem
}

.auth-right {
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden
}

.auth-right::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, .15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none
}

.auth-quote {
    max-width: 340px;
    text-align: center;
    position: relative
}

.quote-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem
}

.auth-quote p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #c4b5fd;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-style: italic
}

.auth-switch {
    margin-top: 1.5rem;
    font-size: .875rem;
    color: var(--muted);
    text-align: center
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
    transition: color .2s
}

.auth-switch a:hover {
    color: var(--text)
}

.auth-section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1rem;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.auth-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.service-opts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-top: .5rem
}

.s-opt {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .75rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .85rem;
    cursor: pointer;
    transition: all .2s
}

.s-opt:hover {
    border-color: var(--border2);
    background: rgba(255, 255, 255, .05)
}

.s-opt input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px
}

.s-opt-info {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    line-height: 1.2
}

.s-opt-info strong {
    font-size: .9rem;
    color: var(--text)
}

.s-opt-info span {
    font-size: .7rem;
    color: var(--muted);
    margin-left: 0
}

.profile-section {
    background: rgba(255, 255, 255, .02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem
}

.profile-section-title {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem
}

.profile-form .field {
    margin-bottom: 1.25rem
}

.s-opt span {
    margin-left: auto;
    font-size: .75rem;
    color: var(--muted)
}

/* Fields */
.field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-bottom: 1rem
}

/* Inline field error */
.field-error {
    color: #f87171;
    font-size: .75rem;
    font-weight: 500;
    display: none;
    margin-top: .1rem;
    animation: fadeInDown .2s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Robot / CAPTCHA checkbox row */
.robot-check-label {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    padding: .75rem 1rem;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 500;
    transition: border-color .2s;
}

.robot-check-label:hover {
    border-color: rgba(255, 255, 255, .2);
}

.robot-checkbox-wrap {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, .25);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color .2s, background .2s;
    position: relative;
}

.robot-checkbox-wrap input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.robot-checkmark {
    color: #22c55e;
    font-size: 1rem;
    font-weight: 700;
    display: none;
    pointer-events: none;
}

#r-robot:checked~.robot-checkmark,
.robot-checkbox-wrap:has(input:checked) .robot-checkmark {
    display: block;
}

.robot-checkbox-wrap:has(input:checked) {
    border-color: #22c55e;
    background: rgba(34, 197, 94, .1);
}

.field label {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--muted)
}

input,
textarea {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border2);
    border-radius: 10px;
    padding: .8rem 1rem;
    color: var(--text);
    font-size: .95rem;
    transition: border .2s, box-shadow .2s;
    width: 100%
}

textarea {
    resize: vertical;
    min-height: 90px
}

input::placeholder,
textarea::placeholder {
    color: rgba(148, 163, 184, .4)
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .18)
}

/* Buttons */
.cta {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .875rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 6px 20px rgba(124, 58, 237, .3)
}

.cta:hover {
    background: var(--primary2);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(124, 58, 237, .4)
}

.cta.cta-sm {
    width: auto;
    padding: .6rem 1.2rem;
    font-size: .875rem;
    border-radius: 9px
}

.cta svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round
}

.ghost-btn {
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border2);
    color: var(--muted);
    padding: .6rem 1.2rem;
    border-radius: 9px;
    cursor: pointer;
    font-size: .875rem;
    transition: all .2s
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, .1);
    color: var(--text)
}

/* Dashboard */
.dash {
    display: flex;
    min-height: calc(100vh - 0px)
}

.sidebar {
    width: 200px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh
}

.sb-brand {
    padding: .25rem .5rem 2rem
}

.sb-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .25rem
}

.sb-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .9rem;
    border-radius: 9px;
    color: var(--muted);
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s
}

.sb-item svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0
}

.sb-item:hover,
.sb-item.active {
    background: rgba(124, 58, 237, .1);
    color: #c4b5fd
}

.sb-out {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .9rem;
    border-radius: 9px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: .875rem;
    cursor: pointer;
    transition: all .15s
}

.sb-out svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

.sb-out:hover {
    background: rgba(255, 255, 255, .05);
    color: var(--text)
}

.dash-body {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto
}

.dash-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    gap: 1rem;
    flex-wrap: wrap
}

.dash-title {
    font-size: 1.5rem;
    font-weight: 700
}

.dash-sub {
    color: var(--muted);
    font-size: .875rem;
    margin-top: .2rem
}

.vgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
    gap: 1.5rem
}

/* VehicleCard */
.vcard {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s
}

.vcard:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, .25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5)
}

.vc-top {
    padding: 1.25rem 1.25rem 0;
    display: flex;
    align-items: center;
    gap: .75rem
}

.vc-car-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(124, 58, 237, .15);
    border: 1px solid rgba(124, 58, 237, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem
}

.vc-name {
    font-weight: 600;
    font-size: .95rem
}

.vc-id {
    font-size: .7rem;
    color: var(--muted);
    font-family: monospace;
    margin-top: .1rem
}

.vc-qr {
    margin: 1.25rem;
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem
}

.vc-qr-wrap {
    position: relative
}

.vc-qr-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 6px;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15)
}

.vc-scan-lbl {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #374151;
    text-align: center
}

.vc-scan-sub {
    font-size: .6rem;
    color: #9ca3af;
    text-align: center
}

.vc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 0 1.25rem 1.25rem
}

.vc-btn {
    flex: 1 1 calc(50% - .5rem);
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: .55rem .4rem;
    border-radius: 9px;
    border: 1px solid var(--border2);
    background: var(--surface);
    color: var(--text);
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s
}

.vc-btn:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .2)
}

.vc-btn.solid {
    background: var(--primary);
    border-color: transparent
}

.vc-btn.solid:hover {
    background: var(--primary2)
}

/* Edit button – accent violet outline */
.vc-btn.edit-btn {
    border-color: rgba(124, 58, 237, .4);
    color: #c4b5fd
}

.vc-btn.edit-btn:hover {
    background: rgba(124, 58, 237, .12);
    border-color: var(--primary)
}

/* Order button - Marketing visibility */
.vc-btn.order-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    font-weight: 700;
    letter-spacing: 0.01em
}

.vc-btn.order-btn:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.5)
}

.vc-sub-date {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.4rem;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 20px;
    font-size: 0.58rem;
    color: #c4b5fd;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.vc-sub-date span {
    font-size: 0.8rem;
    filter: drop-shadow(0 0 4px rgba(124, 58, 237, 0.5));
}

.vc-sub-date.expired {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

/* Delete button – red danger */
.vc-btn.danger-btn {
    border-color: rgba(239, 68, 68, .35);
    color: #fca5a5
}

.vc-btn.danger-btn:hover {
    background: rgba(239, 68, 68, .12);
    border-color: rgba(239, 68, 68, .6)
}

.classic-danger-btn {
    background: none;
    border: 1px solid rgba(239, 68, 68, .3);
    color: #fca5a5;
    padding: .5rem 1rem;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    width: auto !important;
    margin: 0 auto;
}

.classic-danger-btn:hover {
    background: rgba(239, 68, 68, .1);
    border-color: rgba(239, 68, 68, .6);
    color: #ef4444;
}

.emergency-situations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.sit-card {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.sit-card:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

.sit-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    display: block;
}

.sit-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fca5a5;
}

/* Emergency Modal Refinement */
.emergency-modal {
    max-width: 380px;
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.em-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.em-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 0.75rem;
}

.em-desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.em-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.call-btn {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.call-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Payment Modal */
.payment-modal {
    max-width: 480px;
    padding: 0;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.pm-header {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    padding: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.pm-body {
    padding: 2rem;
    overflow-y: scroll;
    flex: 1;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.5) rgba(255, 255, 255, 0.04);
}

.pm-body::-webkit-scrollbar {
    width: 6px;
}

.pm-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.pm-body::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.5);
    border-radius: 10px;
}

.pm-body::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.8);
}

#payment-element {
    margin-bottom: 24px;
}

.pm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid var(--border);
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

#payment-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 12px;
    text-align: center;
}

/* ── Profile Form ────────────────────────────────────────────────────── */
.profile-form {
    max-width: 560px
}

.profile-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.25rem
}

.profile-section-title {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: .6rem
}

.optional-tag {
    font-size: .7rem;
    font-weight: 500;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--border2);
    border-radius: 6px;
    padding: .15rem .5rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .4px
}

/* Empty */
.empty {
    text-align: center;
    padding: 5rem 2rem
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem
}

.empty h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .4rem
}

.empty p {
    color: var(--muted);
    font-size: .9rem
}

/* Modal */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 1.5rem
}

.modal {
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: 18px;
    width: 100%;
    max-width: 440px;
    padding: 2rem
}

.modal-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem
}

.modal-hdr span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700
}

.modal-x {
    background: rgba(255, 255, 255, .07);
    border: none;
    color: var(--muted);
    width: 30px;
    height: 30px;
    border-radius: 7px;
    cursor: pointer;
    transition: all .15s
}

.modal-x:hover {
    background: rgba(255, 255, 255, .14);
    color: var(--text)
}

/* Contact */
.contact-page {
    min-height: 100vh;
    background: radial-gradient(ellipse 70% 60% at 20% 0%, rgba(109, 40, 217, .18), transparent), var(--bg);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1.5rem 5rem
}

.cp-card {
    width: 100%;
    max-width: 470px;
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: 20px;
    padding: 2.5rem
}

.cp-header {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .75rem
}

.cp-label {
    font-size: .75rem;
    font-weight: 700;
    color: #a78bfa;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: .25rem
}

.cp-vehicle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700
}

.cp-sub {
    color: var(--muted);
    font-size: .875rem;
    margin-bottom: 2rem;
    line-height: 1.6
}

.method-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .6rem;
    margin-bottom: 2rem
}

.mtab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    padding: 1.1rem .25rem;
    border-radius: 14px;
    border: 2px solid var(--border);
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
    cursor: pointer;
    transition: all .2s
}

.mtab span {
    font-size: 1.6rem;
    line-height: 1
}

.mtab {
    font-size: .8rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif
}

.mtab:hover {
    border-color: rgba(124, 58, 237, .3)
}

.mtab.active {
    background: rgba(124, 58, 237, .12);
    border-color: var(--primary);
    color: #c4b5fd
}

.info-box {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    background: rgba(124, 58, 237, .07);
    border: 1px solid rgba(124, 58, 237, .18);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.1rem;
    font-size: .875rem
}

.info-box>div:first-child {
    font-size: 1.75rem;
    flex-shrink: 0
}

.info-box strong {
    display: block;
    margin-bottom: .3rem
}

.sent-ok {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .25);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.25rem;
    font-size: .9rem
}

.sent-ok strong {
    color: #4ade80
}

.sent-check {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0
}

/* Toast */
#toasts {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    z-index: 9999
}

.toast {
    background: #18181f;
    border: 1px solid var(--border2);
    border-radius: 10px;
    padding: .8rem 1.25rem;
    font-size: .875rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
    animation: tin .3s ease-out
}

.toast.err {
    border-color: rgba(239, 68, 68, .4);
    color: #fca5a5
}

@keyframes tin {
    from {
        opacity: 0;
        transform: translateX(14px)
    }
}

/* Animate in */
@keyframes up {
    from {
        opacity: 0;
        transform: translateY(10px)
    }
}

.fade-up {
    animation: up .35s ease-out
}

@media(max-width:768px) {
    .auth-page {
        grid-template-columns: 1fr
    }

    .auth-right {
        display: none
    }

    .auth-left {
        padding: 2.5rem 1.5rem
    }

    .dash {
        flex-direction: column
    }

    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: .75rem 1rem;
        position: sticky;
        top: 0;
        z-index: 10;
        border-right: none;
        border-bottom: 1px solid var(--border)
    }

    .sb-brand {
        display: none
    }

    .sb-nav {
        flex-direction: row;
        flex: 1
    }

    .sb-out {
        border-left: 1px solid var(--border);
        padding-left: 1rem
    }

    .dash-body {
        padding: 1.5rem
    }

    .cp-card {
        padding: 1.75rem
    }

    .method-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: .6rem
    }
}

/* Marketing Badge in Modal */
.marketing-badge {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #f59e0b;
    padding: .5rem .75rem;
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.25rem;
    display: inline-block;
    width: 100%
}

/* Modal Order CTA */
.cta.order-btn-modal {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3)
}

.cta.order-btn-modal:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-1px)
}

/* ── Payment modal loading state ─────────────────────────────── */
.payment-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2.5rem 1rem;
    min-height: 140px;
}

.payment-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(124, 58, 237, 0.2);
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: spin-stripe 0.75s linear infinite;
}

@keyframes spin-stripe {
    to {
        transform: rotate(360deg);
    }
}

.payment-loading-text {
    font-size: 0.85rem;
    color: #9ca3af;
    letter-spacing: 0.02em;
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* --- New SPA Restriction UI (v3) --- */
.spa-blocked-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    background: rgba(15, 15, 25, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    margin: 1rem;
    animation: spaFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.spa-blocked-icon-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.spa-blocked-icon {
    width: 88px;
    height: 88px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ef4444;
    position: relative;
    z-index: 2;
}

.spa-blocked-icon-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.2);
    animation: spaPulse 2s infinite;
    z-index: 1;
}

@keyframes spaPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.spa-blocked-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.spa-blocked-message {
    font-size: 1rem;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 320px;
    margin-bottom: 2.5rem;
}

.spa-blocked-timer-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin-bottom: 3rem;
}

.spa-blocked-timer-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.spa-blocked-timer-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: #ef4444;
    font-weight: 600;
}

.spa-blocked-footer {
    font-size: 0.875rem;
    color: #475569;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.spa-blocked-footer a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.spa-blocked-footer a:hover {
    color: #a78bfa;
}

@keyframes spaFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vc-services {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0 1.25rem;
}

.vcs-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.vcs-tag.active {
    background: rgba(124, 58, 237, 0.1);
    color: #a78bfa;
    border-color: rgba(124, 58, 237, 0.2);
}

.vcs-tag.active.paid {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
}

.vcs-tag.active::before {
    content: '•';
    margin-right: 4px;
    font-size: 1rem;
    line-height: 0;
    vertical-align: middle;
}

.s-opt-small {
    padding: 0.75rem !important;
    font-size: 0.85rem;
}

.s-opt-small .s-opt-info strong {
    font-size: 0.85rem;
}

.s-opt-small .s-opt-info span {
    font-size: 0.7rem;
}

/* Modal Adjustments */
#edit-modal .modal,
#modal .modal {
    max-width: 480px;
}

.modal-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-hdr span {
    font-size: 1.4rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.modal-x-box {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-x-box:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.modal-body {
    max-height: calc(85vh - 160px);
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-right: -0.5rem;
}

/* Custom Scrollbar */
.modal-body::-webkit-scrollbar {
    width: 5px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.3);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.5);
}

.s-caps {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
    margin-bottom: 0.8rem;
    display: block;
}

/* Tag Type Selection Grid */
.type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.t-btn {
    background: #14141f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.t-btn span {
    font-size: 0.55rem;
    font-weight: 700;
    color: #9ca3af;
    font-family: 'Inter', sans-serif;
}

.t-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: #1c1c2e;
}

.t-btn.active {
    background: #1c1c2e;
    border: 2px solid #7c3aed;
    color: #fff;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.25);
}

.t-btn.active span {
    color: #fff;
}

@media (max-width: 480px) {
    .type-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Toggle Switch Styling */
.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: #9ca3af;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.4);
}

input:checked+.slider:before {
    transform: translateX(18px);
    background-color: #7c3aed;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.switch-label-group {
    display: flex;
    flex-direction: column;
}

.switch-main-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.switch-desc {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.2rem;
}