/* ==========================================================================
      1. DESIGN TOKENS (100% Matched with My Azizam Homepage)
   ========================================================================== */
:root {
    --navy: #1b2a38;
    --navy-deep: #111c26;
    --paper: #f7f3eb;
    --paper-dark: #ede8dc;
    --white: #ffffff;
    --rose: #b8254b;
    --rose-hover: #961b3b;
    --rose-soft: #fdf2f5;
    --teal: #1e6b65;
    --teal-deep: #134b46;
    --teal-soft: #e6f2f0;
    --line: #dcd8ce;
    --line-focus: #1b2a38;
    --muted: #556068;
    --gold: #d4af7a;
    --gold-light: #e5c899;
    --danger: #c92a2a;
    --danger-soft: #fff5f5;
    --danger-border: #e03131;
    --warning-bg: #fff9db;
    --warning-border: #f08c00;
    --warning-text: #7c4a03;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-card: 0 20px 46px rgba(17, 28, 38, 0.08);
    --shadow-btn: 0 8px 20px -4px rgba(184, 37, 75, 0.4);
    --font-sans: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: linear-gradient(180deg, #f7f3eb 0%, #efece2 100%);
    color: var(--navy);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--rose); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--rose-hover); text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4, p { margin: 0; }

/* ==========================================================================
   2. DEVELOPER PREVIEW TOOLBAR (Remove in Final Laravel Production)
========================================================================== */
.dev-toolbar {
    background: var(--navy-deep);
    color: #f0eee6;
    padding: 10px 16px;
    font-size: 12px;
    border-bottom: 1px solid rgba(212, 175, 122, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}
.dev-toolbar-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.dev-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.dev-tab {
    background: rgba(255, 255, 255, 0.08);
    color: #d5dce0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.dev-tab:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.dev-tab.active {
    background: var(--gold);
    color: var(--navy-deep);
    border-color: var(--gold);
    font-weight: 700;
}
.dev-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.dev-btn {
    background: transparent;
    border: 1px solid rgba(229, 200, 153, 0.45);
    color: var(--gold-light);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}
.dev-btn.active-err {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

/* ==========================================================================
   3. MINIMAL HEADER & APP SHELL LAYOUT
========================================================================== */
.site-header {
    background: rgba(247, 243, 235, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 14px 20px;
}
.header-inner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font: 28px var(--font-serif);
    letter-spacing: -0.8px;
    color: var(--navy-deep);
    text-decoration: none !important;
    direction: ltr;
    display: inline-block;
}
.logo em { font-style: normal; color: var(--rose); font-weight: 700; }
.header-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--teal);
    background: var(--teal-soft);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.app-shell {
    max-width: 680px;
    margin: 28px auto 64px;
    padding: 0 16px;
}
.app-shell.narrow {
    max-width: 480px;
}

/* View Switching Logic */
.screen-view { display: none; animation: fadeIn 0.28s ease; }
.screen-view.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   4. PROGRESS BAR COMPONENT (Wizard Top Bar)
========================================================================== */
.wizard-progress-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(27, 42, 56, 0.04);
}
.progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
}
.progress-step-title {
    font-weight: 700;
    color: var(--navy-deep);
    display: flex;
    align-items: center;
    gap: 8px;
}
.progress-step-title span.step-badge {
    background: var(--rose-soft);
    color: var(--rose);
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}
.progress-pct {
    font-size: 12px;
    font-weight: 700;
    color: var(--teal);
}
.progress-track {
    width: 100%;
    height: 8px;
    background: #ebe7de;
    border-radius: 10px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal) 0%, var(--rose) 100%);
    border-radius: 10px;
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress-dots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 10px;
    font-size: 11px;
    color: var(--muted);
    text-align: center;
}
.progress-dots span.done { color: var(--teal); font-weight: 700; }
.progress-dots span.current { color: var(--rose); font-weight: 700; }

/* ==========================================================================
   5. MAIN CARD & FORM ELEMENTS (Inputs, Selects, Radios, Checkboxes, Errors)
========================================================================== */
.auth-card {
    background: var(--white);
    border: 1px solid #d5d0c5;
    border-top: 4px solid var(--rose);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    box-shadow: var(--shadow-card);
}
.card-head {
    margin-bottom: 24px;
}
.card-eyebrow {
    font-size: 11px;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}
.card-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy-deep);
    line-height: 1.3;
}
.card-subtitle {
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.65;
}

/* Form Groups & Labels */
.form-group {
    margin-bottom: 20px;
    position: relative;
}
.form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy-deep);
    margin-bottom: 8px;
}
.form-label .optional {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
}

/* Standard Text / Tel / Password / Select Inputs */
.form-control, .form-select {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    font-size: 14.5px;
    color: var(--navy-deep);
    background-color: var(--paper);
    border: 1.5px solid #c9c5ba;
    border-radius: var(--radius-sm);
    transition: all 0.18s ease;
    outline: none;
}
.form-control::placeholder { color: #8c969e; font-size: 13.5px; }
.form-control:focus, .form-select:focus {
    background-color: var(--white);
    border-color: var(--navy-deep);
    box-shadow: 0 0 0 3px rgba(27, 42, 56, 0.1);
}
.input-ltr {
    direction: ltr;
    text-align: left;
    font-family: var(--font-sans);
    letter-spacing: 0.5px;
}

/* Custom Select Arrow */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231b2a38' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 40px;
    cursor: pointer;
}

/* Password Field with Eye Button */
.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrap .form-control {
    padding-left: 46px;
}
.btn-eye {
    position: absolute;
    left: 8px;
    background: none;
    border: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    border-radius: 6px;
    cursor: pointer;
}
.btn-eye:hover { color: var(--navy-deep); background: rgba(0,0,0,0.04); }

/* Error States (.is-invalid & .invalid-feedback) */
.form-control.is-invalid,
.form-select.is-invalid,
.otp-box.is-invalid,
.choice-group.is-invalid {
    border-color: var(--danger-border) !important;
    background-color: var(--danger-soft) !important;
}
.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(201, 42, 42, 0.15) !important;
}
.text-danger.invalid-feedback {
    display: none;
    color: var(--danger);
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    line-height: 1.45;
    align-items: center;
    gap: 5px;
}
.text-danger.invalid-feedback::before {
    content: '⚠';
    font-size: 13px;
}
/* Show error when parent has .has-error or input has .is-invalid */
.is-invalid ~ .invalid-feedback,
.has-error .invalid-feedback {
    display: flex;
}

/* ==========================================================================
   6. MASTER REUSABLE COMPONENTS FOR BACKEND LOOPS (Radio, Checkbox, Cards)
========================================================================== */
/* Component A: Large Gender Selection Radio Cards (Step 1) */
.gender-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.gender-card {
    position: relative;
    cursor: pointer;
}
.gender-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.gender-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
    background: var(--paper);
    border: 2px solid #c9c5ba;
    border-radius: var(--radius-md);
    transition: all 0.18s ease;
    text-align: center;
}
.gender-emoji {
    font-size: 32px;
    line-height: 1;
    background: var(--white);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}
.gender-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy-deep);
}
.gender-sub {
    font-size: 11.5px;
    color: var(--muted);
}
.gender-card input[type="radio"]:checked + .gender-card-body {
    background: var(--rose-soft);
    border-color: var(--rose);
    box-shadow: 0 8px 20px rgba(184, 37, 75, 0.12);
}
.gender-card input[type="radio"]:checked + .gender-card-body .gender-title {
    color: var(--rose);
}
.gender-card input[type="radio"]:checked + .gender-card-body .gender-emoji {
    border-color: var(--rose);
    transform: scale(1.05);
}
.gender-card input[type="radio"]:focus-visible + .gender-card-body {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

/* Component B: Inline Pill/Tag Radio Buttons (Single Select in Loop) */
.pills-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pill-item {
    position: relative;
    cursor: pointer;
    user-select: none;
}
.pill-item input[type="radio"],
.pill-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.pill-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 16px;
    background: var(--paper);
    border: 1.5px solid #c9c5ba;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy);
    transition: all 0.15s ease;
}
.pill-item:hover .pill-label {
    border-color: var(--navy);
    background: var(--white);
}
/* Radio Checked State (Rose Accent) */
.pill-item input[type="radio"]:checked + .pill-label {
    background: var(--rose-soft);
    border-color: var(--rose);
    color: var(--rose);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(184, 37, 75, 0.12);
}
.pill-item input[type="radio"]:checked + .pill-label::before {
    content: '●';
    font-size: 10px;
    color: var(--rose);
}

/* Component C: Inline Pill/Tag Checkboxes (Multi-Select Array in Loop) */
.pill-item input[type="checkbox"]:checked + .pill-label {
    background: var(--teal-soft);
    border-color: var(--teal);
    color: var(--teal-deep);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(30, 107, 101, 0.12);
}
.pill-item input[type="checkbox"]:checked + .pill-label::before {
    content: '✓';
    font-size: 12px;
    font-weight: 800;
    color: var(--teal);
}

/* Standard Checkbox (Terms & Privacy) */
.custom-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--navy);
    user-select: none;
}
.custom-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--rose);
    cursor: pointer;
    flex-shrink: 0;
}

/* ==========================================================================
   7. BUTTONS & LOADING SPINNER STATES
========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 14px 26px;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--rose);
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-btn);
    transition: all 0.2s ease;
    width: 100%;
    text-decoration: none !important;
}
.btn:hover:not(:disabled) {
    background: var(--rose-hover);
    transform: translateY(-1px);
}
.btn:disabled, .btn.is-loading {
    opacity: 0.82;
    cursor: not-allowed;
    transform: none;
}
.btn-outline {
    background: var(--white);
    color: var(--navy-deep);
    border-color: var(--navy);
    box-shadow: none;
}
.btn-outline:hover:not(:disabled) {
    background: var(--rose-soft);
    border-color: var(--rose);
    color: var(--rose);
}

/* Loading Spinner inside Buttons */
.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}
.btn-outline .spinner {
    border-color: rgba(27, 42, 56, 0.25);
    border-top-color: var(--navy-deep);
}
.btn.is-loading .spinner {
    display: inline-block;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Wizard Bottom Navigation Bar (Prev / Next) */
.wizard-nav {
    display: grid;
    grid-template-columns: 0.42fr 0.58fr;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.wizard-nav.single {
    grid-template-columns: 1fr;
}

/* ==========================================================================
   8. PAGE-SPECIFIC STYLES (Auth Tabs, Accordion, OTP, Categories, Upload)
========================================================================== */
/* Page 1: Segmented Auth Mode Switcher & Referral Accordion */
.auth-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--paper);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    margin-bottom: 22px;
}
.auth-mode-btn {
    background: transparent;
    border: 0;
    padding: 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--muted);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.auth-mode-btn.active {
    background: var(--white);
    color: var(--rose);
    box-shadow: 0 2px 8px rgba(27, 42, 56, 0.08);
}

.referral-accordion {
    border: 1px dashed #c9c5ba;
    background: #faf8f3;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    overflow: hidden;
}
.referral-accordion summary {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--teal);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.referral-accordion summary::-webkit-details-marker { display: none; }
.referral-accordion summary::after {
    content: '+';
    font-size: 18px;
    font-weight: 700;
}
.referral-accordion[open] summary::after { content: '−'; }
.referral-body {
    padding: 4px 16px 16px;
}

/* Page 2: 6-Box OTP Input & Countdown */
.phone-edit-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 22px;
    font-size: 13.5px;
}
.phone-edit-bar strong {
    font-family: var(--font-sans);
    direction: ltr;
    display: inline-block;
    color: var(--navy-deep);
    font-size: 15px;
}
.btn-edit-phone {
    background: none;
    border: 0;
    color: var(--rose);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}
.btn-edit-phone:hover { background: var(--rose-soft); }

.otp-boxes {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    direction: ltr;
    margin-bottom: 8px;
}
.otp-box {
    width: 100%;
    aspect-ratio: 1;
    max-height: 60px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    font-family: var(--font-serif);
    color: var(--navy-deep);
    background: var(--paper);
    border: 1.5px solid #c9c5ba;
    border-radius: var(--radius-sm);
    outline: none;
    transition: all 0.15s ease;
}
.otp-box:focus {
    background: var(--white);
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(184, 37, 75, 0.14);
    transform: translateY(-2px);
}
.otp-timer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0 24px;
    font-size: 13px;
    color: var(--muted);
}
.timer-badge {
    font-weight: 700;
    color: var(--teal);
    background: var(--teal-soft);
    padding: 4px 12px;
    border-radius: 20px;
    direction: ltr;
}
.btn-resend {
    background: none;
    border: 0;
    color: var(--rose);
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    display: none;
}

/* Page 3: 3-Column Date of Birth & 2-Column Location Grid */
.dob-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1.1fr;
    gap: 10px;
}
.loc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Page 4: Dynamic Category Cards Grid */
.category-cards {
    display: grid;
    gap: 20px;
}
.category-card {
    background: #faf8f3;
    border: 1px solid var(--line);
    border-right: 4px solid var(--teal);
    border-radius: var(--radius-md);
    padding: 22px 20px;
}
.category-card:nth-child(2) { border-right-color: var(--rose); }
.category-card:nth-child(3) { border-right-color: var(--gold); }
.category-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6e2d8;
}
.category-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.category-head h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy-deep);
}
.attr-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Page 5: Textareas with Character Counter & Alert Box */
.textarea-control {
    min-height: 135px;
    resize: vertical;
    line-height: 1.75;
}
.char-counter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}
.char-badge {
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 12px;
    background: #ede9df;
    color: var(--muted);
    transition: all 0.2s;
}
.char-badge.valid {
    background: var(--teal-soft);
    color: var(--teal);
}
.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.6;
    margin: 18px 0;
}
.alert-warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-right: 4px solid var(--warning-border);
    color: var(--warning-text);
}
.alert-info {
    background: var(--teal-soft);
    border: 1px solid #b7dbd6;
    border-right: 4px solid var(--teal);
    color: var(--navy-deep);
}

/* Page 6: Avatar Uploader, Cropper & 4-Slot Gallery */
.avatar-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 26px 20px;
    background: var(--paper);
    border: 1.5px dashed #b8b3a6;
    border-radius: var(--radius-md);
    margin-bottom: 22px;
}
.avatar-circle {
    width: 136px;
    height: 136px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--rose);
    box-shadow: 0 12px 28px rgba(184, 37, 75, 0.15);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.avatar-circle:hover { transform: scale(1.03); }
.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
.avatar-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--rose);
}
.avatar-placeholder span.cam-icon { font-size: 30px; line-height: 1; }
.avatar-placeholder small { font-size: 11px; font-weight: 700; color: var(--navy-deep); }
.avatar-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}
.btn-sm {
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--navy-deep);
    cursor: pointer;
}
.btn-sm:hover { border-color: var(--rose); color: var(--rose); }

/* Gallery 4 Dashed Boxes */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 8px;
}
.gallery-slot {
    aspect-ratio: 1;
    border: 2px dashed #c2bdb0;
    background: var(--paper);
    border-radius: var(--radius-sm);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: all 0.15s ease;
}
.gallery-slot:hover {
    border-color: var(--teal);
    background: var(--teal-soft);
    color: var(--teal);
}
.gallery-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
.gallery-slot .slot-plus { font-size: 24px; font-weight: 400; line-height: 1; }
.gallery-slot small { font-size: 10px; margin-top: 4px; font-weight: 600; }
.gallery-remove {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(17, 28, 38, 0.8);
    color: #fff;
    border: 0;
    font-size: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}
.gallery-slot.has-img .gallery-remove,
.gallery-slot.has-img img { display: flex; }
.gallery-slot.has-img .slot-plus,
.gallery-slot.has-img small { display: none; }

/* ==========================================================================
   9. INTERACTIVE JS IMAGE CROPPER MODAL
========================================================================== */
.crop-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 28, 38, 0.78);
    backdrop-filter: blur(6px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.crop-modal-backdrop.open { display: flex; }
.crop-modal {
    background: var(--white);
    border-radius: var(--radius-md);
    max-width: 420px;
    width: 100%;
    padding: 22px;
    box-shadow: 0 28px 60px rgba(0,0,0,0.4);
    text-align: center;
}
.crop-canvas-wrap {
    width: 260px;
    height: 260px;
    margin: 16px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--rose);
    background: #111c26;
    position: relative;
    cursor: grab;
    touch-action: none;
}
.crop-canvas-wrap:active { cursor: grabbing; }
.crop-canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.crop-zoom-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 20px;
    font-size: 12px;
    color: var(--muted);
}
.crop-zoom-bar input[type="range"] {
    flex: 1;
    accent-color: var(--rose);
}
.crop-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ==========================================================================
   10. MOBILE-FIRST RESPONSIVE BREAKPOINTS
========================================================================== */
@media (max-width: 640px) {
    .app-shell { margin: 14px auto 90px; padding: 0 12px; }
    .auth-card { padding: 22px 18px; }
    .card-title { font-size: 20px; }
    .attr-grid-2, .loc-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .otp-boxes { gap: 6px; }
    .otp-box { font-size: 19px; }
    /* App-like sticky bottom action bar on mobile for wizard steps */
    .wizard-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
        padding: 12px 16px;
        margin: 0;
        border-top: 1px solid var(--line);
        box-shadow: 0 -8px 24px rgba(17, 28, 38, 0.08);
        z-index: 40;
    }
}

/*just login page start*/
/* Input with Icons */
.input-icon-wrap { position: relative; display: flex; align-items: center; }
.input-icon-wrap .form-control { padding-right: 42px; }
.input-icon-wrap .input-icon { position: absolute; right: 12px; color: #8c969e; display: flex; }
.input-icon-wrap .btn-eye { position: absolute; left: 8px; background: none; border: 0; color: #8c969e; cursor: pointer; padding: 6px; border-radius: 4px; display: flex; }
.input-icon-wrap .btn-eye:hover { color: #111c26; background: rgba(0,0,0,0.05); }

/* OTP 6-Boxes */
.otp-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; direction: ltr; margin-bottom: 15px; }
.otp-box { width: 100%; aspect-ratio: 1; max-height: 56px; text-align: center; font-size: 24px; font-weight: 800; color: #111c26; background: #f7f3eb; border: 1.5px solid #c9c5ba; border-radius: 6px; outline: none; transition: all 0.2s; }
.otp-box:focus { background: #fff; border-color: #b8254b; box-shadow: 0 0 0 3px rgba(184, 37, 75, 0.14); transform: translateY(-2px); }

/* Timer Row */
.otp-timer-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 20px; }
.timer-badge { font-weight: 700; color: #1e6b65; background: #e6f2f0; padding: 4px 12px; border-radius: 20px; direction: ltr; }
.btn-resend { background: none; border: 0; color: #b8254b; font-weight: 700; cursor: pointer; font-size: 13px; display: none; }
.btn-resend:hover { text-decoration: underline; }

/* Honeypot Trap */
.honeypot-trap { opacity: 0; position: absolute; top: 0; left: 0; height: 0; width: 0; z-index: -1; }
/*just login page end*/
