/* =====================================================================
   myoffers.live — تسجيل متجر جديد (صفحة عامة)
   نفس هوية التطبيق: برتقالي MyOffers، تجاوبي، عربي RTL.
   ===================================================================== */

/* يغطّي الزوار الذين لم يحفظوا تفضيلاً بعد ويعتمدون على إعداد الجهاز فقط.
   الزائر الذي حفظ تفضيلاً (myoffers_theme) يُحسم عبر data-theme في <head> فوراً،
   دون انتظار تحميل هذه الورقة — راجع السكربت المضمّن في create/index.html. */


body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font);
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
}

.wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(32px + env(safe-area-inset-top)) 20px calc(40px + env(safe-area-inset-bottom));
    max-width: 480px;
    margin: 0 auto;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.brand-ar {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.brand-en {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-text);
    margin-top: 2px;
}

.card {
    background: var(--bg-card);
    width: 100%;
    padding: 28px 24px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    border: 1px solid var(--border-color);
}

.step {
    display: none;
}

.step.active {
    display: block;
}

h1 {
    font-size: 22px;
    margin-bottom: 8px;
    text-align: center;
}

.lead {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 22px;
    line-height: 1.7;
}

.lead a {
    color: var(--brand-text);
    font-weight: 700;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
    margin-top: 16px;
}

.field-label:first-of-type {
    margin-top: 0;
}

.field-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.6;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-card);
    text-align: start;
}

textarea {
    resize: vertical;
    min-height: 72px;
    line-height: 1.6;
}

select {
    cursor: pointer;
}

.ltr-field {
    direction: ltr;
    text-align: left;
}

.password-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    left: 8px;
    top: 8px;
    width: auto;
    padding: 6px 10px;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    border: none;
}

.primary-btn,
#send-code-btn,
#confirm-code-btn,
#check-verify-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.15s ease;
}

.primary-btn:hover:not(:disabled),
#send-code-btn:hover:not(:disabled),
#confirm-code-btn:hover:not(:disabled),
#check-verify-btn:hover:not(:disabled) {
    background: var(--accent-dark);
}

.primary-btn:disabled,
#send-code-btn:disabled,
#confirm-code-btn:disabled,
#check-verify-btn:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: progress;
}

.ghost-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-top: 10px;
}

.link-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--brand-text);
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    padding: 10px;
    margin-top: 4px;
}


.method-btn {
    flex: 1;
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}

.method-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.error {
    margin-top: 14px;
    color: var(--danger);
    text-align: center;
    font-size: 14px;
    min-height: 20px;
}

.switch-note {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.done-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #dcfce7;
    color: var(--success);
    font-size: 32px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translate(-50%, 20px);
    max-width: min(92vw, 460px);
    padding: 14px 20px;
    border-radius: var(--radius);
    background: var(--text-primary);
    color: var(--bg-card);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}

.toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.toast-success {
    background: var(--success);
    color: #fff;
}

.toast-error {
    background: var(--danger);
    color: #fff;
}


.lang-switch {
    display: flex;
    gap: 6px;
    width: 100%;
    max-width: 480px;
    margin-bottom: 14px;
}

.lang-btn {
    flex: 1;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 6px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}

.lang-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.icon-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--brand-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}

.theme-home-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 14px;
}