﻿@font-face {
    font-family: "dana-fanum-regular";
    src: url("../fonts/dana-fanum-regular.woff2");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "dana-fanum-regular", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

    body.vendor-register-body {
        direction: rtl;
        background: #f3f7fc;
        color: #0f172a;
        overflow-x: hidden;
    }

.vendor-register-shell {
    width: 100%;
    max-width: 680px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 18px 16px 110px;
}

.register-topbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0 20px;
}

.register-logo img {
    width: 145px;
    height: auto;
    display: block;
}

.vendor-onboarding {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 24px 60px rgba(0, 82, 212, .10);
}

.onboarding-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.onboarding-back {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #eef6ff;
    color: #0052D4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
}

.onboarding-header h1 {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 4px;
}

.onboarding-header span {
    font-size: 11px;
    color: #64748b;
}

.onboarding-progress {
    width: 100%;
    height: 6px;
    background: #e8eef7;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 26px;
}

.onboarding-progress-fill {
    width: 14%;
    height: 100%;
    background: linear-gradient(135deg, #0052D4, #4364F7, #6FB1FC);
    border-radius: 20px;
    transition: width .35s ease;
}

.onboarding-page {
    display: none;
    animation: pageFade .25s ease;
}

    .onboarding-page.active {
        display: block;
    }

@keyframes pageFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-title {
    margin-bottom: 22px;
}

    .page-title h2 {
        font-size: 24px;
        font-weight: 900;
        color: #0f172a;
        line-height: 1.7;
        margin-bottom: 8px;
    }

    .page-title p {
        font-size: 13px;
        color: #64748b;
        line-height: 1.9;
    }

.single-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

    .single-form input,
    .single-form select,
    .single-form textarea {
        width: 100%;
        border: 1px solid transparent;
        background: #f6f9fd;
        color: #0f172a;
        border-radius: 18px;
        padding: 15px 16px;
        font-size: 14px;
        transition: all .25s ease;
    }

    .single-form textarea {
        min-height: 135px;
        resize: vertical;
        line-height: 2;
    }

        .single-form input:focus,
        .single-form select:focus,
        .single-form textarea:focus {
            outline: none;
            background: #fff;
            border-color: #0052D4;
            box-shadow: 0 0 0 4px rgba(0, 82, 212, .10);
        }

    .single-form select:disabled {
        opacity: .65;
        cursor: not-allowed;
    }

.field-error {
    border-color: #ef4444 !important;
    background: #fff5f5 !important;
}

.input-counter {
    text-align: left;
    font-size: 11px;
    color: #94a3b8;
    margin-top: -7px;
}

.inline-action-btn {
    width: 100%;
    border: none;
    background: linear-gradient(135deg, #0052D4, #4364F7);
    color: #fff;
    padding: 15px 16px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

    .inline-action-btn.secondary-action {
        background: #eef6ff;
        color: #0052D4;
    }

    .inline-action-btn:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.example-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0;
}

.example-card {
    border-radius: 20px;
    padding: 15px;
    border: 1px solid #e2e8f0;
}

    .example-card strong {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 12px;
        margin-bottom: 10px;
    }

    .example-card b {
        display: block;
        font-size: 15px;
        margin-bottom: 6px;
    }

    .example-card span {
        font-size: 11px;
        color: #64748b;
    }

    .example-card.good {
        background: #f0fdf4;
        border-color: #bbf7d0;
    }

        .example-card.good strong,
        .example-card.good i {
            color: #16a34a;
        }

    .example-card.bad {
        background: #fff7f7;
        border-color: #fecaca;
    }

        .example-card.bad strong,
        .example-card.bad i {
            color: #ef4444;
        }

.smart-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #eef6ff;
    border: 1px dashed rgba(0, 82, 212, .35);
    border-radius: 20px;
    padding: 14px;
    margin-top: 20px;
    color: #31577c;
    font-size: 12px;
    line-height: 1.9;
}

    .smart-tip i {
        color: #0052D4;
        font-size: 16px;
        margin-top: 3px;
    }

.success-tip {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

    .success-tip i {
        color: #16a34a;
    }

.error-tip {
    background: #fff7f7;
    border-color: #fecaca;
    color: #991b1b;
}

    .error-tip i {
        color: #ef4444;
    }

.review-card {
    background: #f6f9fd;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    overflow: hidden;
}

.review-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
}

    .review-row:last-child {
        border-bottom: none;
    }

    .review-row span {
        color: #64748b;
    }

    .review-row strong {
        color: #0f172a;
        text-align: left;
    }

.confirm-rule {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 14px;
    font-size: 12px;
    color: #334155;
}

    .confirm-rule input {
        width: 18px;
        height: 18px;
    }

.wizard-bottom-bar {
    position: fixed;
    right: 50%;
    bottom: 0;
    transform: translateX(50%);
    width: 100%;
    max-width: 680px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
    border-top: 1px solid #e2e8f0;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    display: flex;
    gap: 12px;
    z-index: 9999;
    box-shadow: 0 -12px 35px rgba(15, 23, 42, .08);
}

.wizard-bottom-btn {
    flex: 1;
    min-height: 50px;
    border: none;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: all .2s ease;
}

    .wizard-bottom-btn.primary {
        background: linear-gradient(135deg, #0052D4, #4364F7);
        color: #fff;
    }

    .wizard-bottom-btn.secondary {
        background: #eef6ff;
        color: #0052D4;
    }

    .wizard-bottom-btn:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

    .wizard-bottom-btn:active,
    .inline-action-btn:active,
    .onboarding-back:active {
        transform: scale(.97);
    }

body.dark.vendor-register-body {
    background: #020617;
    color: #e2e8f0;
}

body.dark .vendor-onboarding {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: none;
}

body.dark .onboarding-header h1,
body.dark .page-title h2,
body.dark .review-row strong {
    color: #f8fafc;
}

body.dark .onboarding-header span,
body.dark .page-title p,
body.dark .example-card span {
    color: #94a3b8;
}

body.dark .onboarding-progress {
    background: #1e293b;
}

body.dark .onboarding-back,
body.dark .wizard-bottom-btn.secondary,
body.dark .inline-action-btn.secondary-action {
    background: #1e293b;
    color: #6FB1FC;
}

body.dark .single-form input,
body.dark .single-form select,
body.dark .single-form textarea {
    background: #111827;
    color: #e2e8f0;
}

    body.dark .single-form input:focus,
    body.dark .single-form select:focus,
    body.dark .single-form textarea:focus {
        background: #020617;
        border-color: #6FB1FC;
    }

body.dark .smart-tip {
    background: rgba(0, 82, 212, .14);
    color: #bfdbfe;
    border-color: rgba(111, 177, 252, .35);
}

body.dark .review-card {
    background: #111827;
    border-color: #1e293b;
}

body.dark .review-row {
    border-color: #1e293b;
}

body.dark .confirm-rule {
    background: #111827;
    border-color: #1e293b;
    color: #e2e8f0;
}

body.dark .wizard-bottom-bar {
    background: rgba(15, 23, 42, .92);
    border-color: #1e293b;
}

@media (min-width: 560px) {
    .example-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 420px) {
    .vendor-register-shell {
        padding: 14px 12px 105px;
    }

    .vendor-onboarding {
        border-radius: 26px;
        padding: 18px;
    }

    .page-title h2 {
        font-size: 22px;
    }

    .wizard-bottom-bar {
        padding-left: 12px;
        padding-right: 12px;
    }

    .wizard-bottom-btn {
        min-height: 48px;
        border-radius: 16px;
    }
}

.rules-link {
    border: none;
    background: transparent;
    color: #0052D4;
    font-weight: 900;
    cursor: pointer;
    padding: 0;
}

.rules-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

    .rules-modal-overlay.active {
        display: flex;
    }

.rules-modal {
    width: 100%;
    max-width: 680px;
    max-height: 82vh;
    background: #fff;
    border-radius: 28px 28px 0 0;
    overflow: hidden;
    animation: rulesModalUp .25s ease;
}

@keyframes rulesModalUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.rules-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 18px 12px;
    border-bottom: 1px solid #e2e8f0;
}

    .rules-modal-header h3 {
        font-size: 17px;
        font-weight: 900;
        color: #0f172a;
    }

    .rules-modal-header button {
        width: 38px;
        height: 38px;
        border: none;
        border-radius: 50%;
        background: #eef6ff;
        color: #0052D4;
        cursor: pointer;
    }

.rules-modal-body {
    padding: 18px;
    overflow-y: auto;
    max-height: calc(82vh - 130px);
}

    .rules-modal-body h4 {
        font-size: 14px;
        font-weight: 900;
        color: #0052D4;
        margin: 18px 0 8px;
    }

    .rules-modal-body p {
        font-size: 13px;
        line-height: 2;
        color: #475569;
    }

.rules-modal-footer {
    padding: 14px 18px 18px;
    border-top: 1px solid #e2e8f0;
}

    .rules-modal-footer button {
        width: 100%;
        border: none;
        border-radius: 18px;
        padding: 15px;
        background: linear-gradient(135deg, #0052D4, #4364F7);
        color: #fff;
        font-weight: 900;
        cursor: pointer;
    }

body.dark .rules-modal {
    background: #0f172a;
}

body.dark .rules-modal-header,
body.dark .rules-modal-footer {
    border-color: #1e293b;
}

    body.dark .rules-modal-header h3 {
        color: #f8fafc;
    }

body.dark .rules-modal-body p {
    color: #cbd5e1;
}