/* إعدادات الموقع الإلكتروني (/settings/website) — منقول حرفيًا من <style> بـpanels/website/website-panel.html
   (Legacy)، كل محدِّد مقيَّد بـ.ws-root (أسماء عامة مثل .btn-primary/--bg-panel لا تتسرب لبقية التطبيق) —
   نفس سابقة dashboard.css/pos-legacy.css. مُستبعَد: reset العام لـhtml/body (تخطيط V2 يملكه). */
    /* ═══════════════════════════════════════════════════════════
       CSS VARIABLES
    ═══════════════════════════════════════════════════════════ */
    .ws-root {
        --bg-base:         var(--th-d-0);
        --bg-panel:        rgba(var(--th-n-900-rgb),0.52);
        --text-primary:    var(--th-n-200);
        --text-secondary:  var(--th-n-400);
        --text-muted:      var(--th-n-500);
        --text-heading:    #ffffff;
        --border-subtle:   rgba(255,255,255,0.05);
        --border-soft:     rgba(255,255,255,0.10);
        --scrollbar-thumb: rgba(255,255,255,0.09);
        --scrollbar-hover: rgba(var(--th-accent2-500-rgb),0.30);
        --accent:          var(--th-accent-500);
        --accent-light:    var(--th-accent-300);
        --success:         #10b981;
        --warning:         #f59e0b;
        --danger:          #ef4444;
        --input-bg:        rgba(255,255,255,0.04);
    }
    [data-theme="light"] .ws-root {
        --bg-base:         var(--th-l-1);
        --bg-panel:        rgba(255,255,255,0.80);
        --text-primary:    var(--th-n-800);
        --text-secondary:  var(--th-n-600);
        --text-muted:      var(--th-n-400);
        --text-heading:    var(--th-n-900);
        --border-subtle:   rgba(var(--th-n-900-rgb),0.07);
        --border-soft:     rgba(var(--th-n-900-rgb),0.13);
        --scrollbar-thumb: rgba(var(--th-accent-500-rgb),0.20);
        --scrollbar-hover: rgba(var(--th-accent-500-rgb),0.45);
        --accent:          var(--th-accent-600);
        --accent-light:    var(--th-accent-500);
        --input-bg:        #ffffff;
    }

    /* ═══ ROOT LAYOUT ═══ */
    .ws-root {
        display: flex;
        flex-direction: column;
        height: calc(100 * var(--vh));
        padding: 18px 22px;
        gap: 14px;
        overflow: hidden;
        transition: background 300ms ease;
    }

    /* ═══ HEADER ═══ */
    .ws-root .ws-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        flex-wrap: wrap;
        gap: 10px;
    }
    .ws-root .ws-header-left { display: flex; align-items: center; gap: 12px; }
    .ws-root .ws-header-icon {
        width: 42px; height: 42px;
        border-radius: 13px;
        background: linear-gradient(135deg, rgba(16,185,129,0.2) 0%, rgba(5,150,105,0.15) 100%);
        border: 1px solid rgba(16,185,129,0.28);
        display: flex; align-items: center; justify-content: center;
        flex-shrink: 0;
        box-shadow: 0 4px 14px rgba(16,185,129,0.15), inset 0 1px 0 rgba(255,255,255,0.06);
    }
    .ws-root .ws-header-icon svg { width: 19px; height: 19px; color: #34d399; }
    .ws-root .ws-header-title {
        font-size: 17px;
        font-weight: 900;
        color: var(--text-heading);
        letter-spacing: -0.01em;
    }
    .ws-root .ws-header-sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; font-weight: 500; }
    .ws-root .ws-header-actions { display: flex; align-items: center; gap: 8px; }

    /* ═══ BUTTONS ═══ */
    .ws-root .btn-primary {
        display: inline-flex; align-items: center; gap: 7px;
        padding: 8px 16px;
        background: linear-gradient(135deg, var(--th-accent-500) 0%, var(--th-accent2-500) 100%);
        border: none; border-radius: 10px;
        color: #fff;
        font-family: 'Cairo', sans-serif;
        font-size: 12.5px; font-weight: 800;
        cursor: pointer;
        transition: all 160ms;
        box-shadow: 0 4px 14px rgba(var(--th-accent-500-rgb),0.3);
        white-space: nowrap;
        flex-shrink: 0;
    }
    .ws-root .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(var(--th-accent-500-rgb),0.45); }
    .ws-root .btn-primary:active { transform: none; box-shadow: 0 2px 8px rgba(var(--th-accent-500-rgb),0.25); }
    .ws-root .btn-primary svg { width: 13px; height: 13px; flex-shrink: 0; }
    .ws-root .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

    .ws-root .btn-ghost {
        display: inline-flex; align-items: center; gap: 7px;
        padding: 7px 13px;
        background: rgba(255,255,255,0.04);
        border: 1px solid var(--border-soft);
        border-radius: 10px;
        color: var(--text-secondary);
        font-family: 'Cairo', sans-serif;
        font-size: 12.5px; font-weight: 700;
        cursor: pointer;
        transition: all 160ms;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .ws-root .btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
    [data-theme="light"] .ws-root .btn-ghost { background: rgba(var(--th-n-900-rgb),0.05); }
    [data-theme="light"] .ws-root .btn-ghost:hover { background: rgba(var(--th-n-900-rgb),0.09); }
    .ws-root .btn-ghost svg { width: 13px; height: 13px; flex-shrink: 0; }

    /* ═══ TABS NAV ═══ */
    .ws-root .ws-tabs-nav {
        display: flex;
        align-items: center;
        gap: 4px;
        background: var(--bg-panel);
        border: 1px solid var(--border-subtle);
        border-radius: 14px;
        padding: 5px;
        flex-shrink: 0;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        overflow-x: auto;
    }
    .ws-root .ws-tabs-nav::-webkit-scrollbar { height: 4px; }
    .ws-root .ws-tabs-nav::-webkit-scrollbar-track { background: transparent; }
    .ws-root .ws-tabs-nav::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 99px; }
    [data-theme="light"] .ws-root .ws-tabs-nav {
        background: rgba(255,255,255,0.85);
        border-color: rgba(var(--th-n-900-rgb),0.08);
        box-shadow: 0 1px 4px rgba(var(--th-n-900-rgb),0.05);
    }
    .ws-root .ws-tab-btn {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 8px 16px;
        border-radius: 10px;
        border: none;
        background: transparent;
        color: var(--text-muted);
        font-family: 'Cairo', sans-serif;
        font-size: 12.5px;
        font-weight: 700;
        cursor: pointer;
        transition: all 180ms;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .ws-root .ws-tab-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
    .ws-root .ws-tab-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
    [data-theme="light"] .ws-root .ws-tab-btn:hover { background: rgba(var(--th-n-900-rgb),0.05); }
    .ws-root .ws-tab-btn.active {
        background: linear-gradient(135deg, var(--th-accent-500) 0%, var(--th-accent2-500) 100%);
        color: #fff;
        box-shadow: 0 3px 12px rgba(var(--th-accent-500-rgb),0.35);
    }

    /* ═══ SCROLLABLE BODY ═══ */
    .ws-root .ws-body {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-right: 2px;
    }
    .ws-root .ws-body::-webkit-scrollbar { width: 4px; }
    .ws-root .ws-body::-webkit-scrollbar-track { background: transparent; }
    .ws-root .ws-body::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 99px; }
    .ws-root .ws-body::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); }

    /* ═══ TAB PANELS ═══ */
    .ws-root .ws-tab-panel { display: none; flex-direction: column; gap: 12px; }
    .ws-root .ws-tab-panel.active { display: flex; }

    /* ═══ CARDS ═══ */
    .ws-root .ws-card {
        background: var(--bg-panel);
        border: 1px solid var(--border-subtle);
        border-radius: 16px;
        padding: 20px 22px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-shrink: 0;
        transition: background 300ms ease, border-color 300ms ease;
    }
    [data-theme="light"] .ws-root .ws-card {
        background: rgba(255,255,255,0.92);
        border-color: rgba(var(--th-n-900-rgb),0.08);
        box-shadow: 0 1px 4px rgba(var(--th-n-900-rgb),0.05), 0 4px 16px rgba(var(--th-n-900-rgb),0.04);
    }
    .ws-root .ws-card-header {
        display: flex;
        align-items: flex-start;
        gap: 13px;
        margin-bottom: 18px;
    }
    .ws-root .ws-card-icon {
        width: 40px; height: 40px;
        border-radius: 12px;
        display: flex; align-items: center; justify-content: center;
        flex-shrink: 0;
    }
    .ws-root .ws-card-icon svg { width: 18px; height: 18px; }
    .ws-root .ws-card-title { font-size: 14px; font-weight: 800; color: var(--text-heading); }
    .ws-root .ws-card-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; font-weight: 500; }

    /* ═══ FORM FIELDS ═══ */
    .ws-root .ws-grid { display: grid; gap: 14px; }
    .ws-root .ws-grid-2 { grid-template-columns: 1fr 1fr; }
    .ws-root .ws-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
    @media (max-width: 768px) {
        .ws-root .ws-grid-2, .ws-root .ws-grid-3 { grid-template-columns: 1fr; }
    }
    .ws-root .ws-field { display: flex; flex-direction: column; gap: 5px; }
    .ws-root .ws-label {
        font-size: 11.5px;
        font-weight: 700;
        color: var(--text-secondary);
        display: flex; align-items: center; gap: 5px;
    }
    .ws-root .ws-label .req { color: var(--danger); }
    .ws-input,
    .ws-select,
    .ws-root .ws-textarea {
        padding: 9px 12px;
        background: var(--input-bg);
        border: 1px solid var(--border-soft);
        border-radius: 9px;
        color: var(--text-primary);
        font-family: 'Cairo', sans-serif;
        font-size: 12.5px;
        outline: none;
        transition: border-color 180ms, box-shadow 180ms, background 180ms;
        width: 100%;
    }
    .ws-input:focus,
    .ws-select:focus,
    .ws-root .ws-textarea:focus {
        border-color: rgba(var(--th-accent-500-rgb),0.5);
        background: rgba(255,255,255,0.06);
        box-shadow: 0 0 0 3px rgba(var(--th-accent-500-rgb),0.09);
    }
    [data-theme="light"] .ws-input:focus,
    [data-theme="light"] .ws-select:focus,
    [data-theme="light"] .ws-root .ws-textarea:focus {
        background: #fff;
        border-color: var(--th-accent-600);
        box-shadow: 0 0 0 3px rgba(var(--th-accent-600-rgb),0.10);
    }
    .ws-root .ws-textarea { min-height: 78px; resize: vertical; }
    .ws-root .ws-input::placeholder, .ws-root .ws-textarea::placeholder { color: var(--text-muted); opacity: 0.7; }
    .ws-root .ws-input[dir="ltr"], .ws-root .ws-textarea[dir="ltr"] { text-align: left; direction: ltr; }
    [data-theme="light"] .ws-input,
    [data-theme="light"] .ws-select,
    [data-theme="light"] .ws-root .ws-textarea {
        background: #ffffff;
        border-color: rgba(var(--th-n-900-rgb),0.15);
        color: var(--th-n-900);
    }

    /* ═══ TOGGLE ROWS ═══ */
    .ws-root .ws-toggle-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 13px 15px;
        background: rgba(255,255,255,0.02);
        border: 1px solid var(--border-subtle);
        border-radius: 11px;
        margin-bottom: 10px;
        transition: background 180ms;
    }
    .ws-root .ws-toggle-row:last-of-type { margin-bottom: 0; }
    .ws-root .ws-toggle-row:hover { background: rgba(255,255,255,0.04); }
    [data-theme="light"] .ws-root .ws-toggle-row { background: rgba(var(--th-n-50-rgb),0.9); border-color: rgba(var(--th-n-900-rgb),0.07); }
    [data-theme="light"] .ws-root .ws-toggle-row:hover { background: rgba(var(--th-n-100-rgb),1); }
    .ws-root .ws-toggle-info { flex: 1; min-width: 0; }
    .ws-root .ws-toggle-label {
        font-size: 12.5px;
        font-weight: 700;
        color: var(--text-heading);
        display: flex; align-items: center; gap: 6px;
    }
    .ws-root .ws-toggle-label svg { width: 14px; height: 14px; flex-shrink: 0; }
    .ws-root .ws-toggle-hint { font-size: 11px; color: var(--text-muted); margin-top: 2px; font-weight: 500; }

    /* ═══ SWITCH ═══ */
    .ws-root .ws-switch {
        position: relative;
        width: 44px; height: 24px;
        flex-shrink: 0;
        display: inline-block;
        margin-right: 4px;
    }
    .ws-root .ws-switch input { display: none; }
    .ws-root .ws-slider {
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,0.1);
        border-radius: 99px;
        cursor: pointer;
        transition: background 200ms;
        border: 1px solid rgba(255,255,255,0.08);
    }
    [data-theme="light"] .ws-root .ws-slider { background: var(--th-n-300); border-color: var(--th-n-300); }
    .ws-root .ws-slider::before {
        content: '';
        position: absolute;
        width: 18px; height: 18px;
        left: 3px; top: 2px;
        background: rgba(255,255,255,0.5);
        border-radius: 50%;
        transition: transform 200ms;
    }
    [data-theme="light"] .ws-root .ws-slider::before { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
    .ws-root .ws-switch input:checked + .ws-slider { background: var(--accent); border-color: var(--accent); }
    .ws-root .ws-switch input:checked + .ws-slider::before { transform: translateX(20px); background: #fff; }

    /* ═══ INFO BOX ═══ */
    .ws-root .ws-info-box {
        background: rgba(var(--th-accent-500-rgb),0.06);
        border: 1px solid rgba(var(--th-accent-500-rgb),0.15);
        border-radius: 10px;
        padding: 11px 13px;
        font-size: 11.5px;
        color: var(--text-secondary);
        display: flex;
        gap: 9px;
        align-items: flex-start;
        line-height: 1.6;
        margin-top: 10px;
    }
    .ws-root .ws-info-box svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; color: var(--accent-light); }
    [data-theme="light"] .ws-root .ws-info-box { background: rgba(var(--th-accent-500-rgb),0.05); border-color: rgba(var(--th-accent-500-rgb),0.18); }

    /* ═══ LOGO UPLOAD AREA ═══ */
    .ws-root .ws-logo-area {
        border: 2px dashed var(--border-soft);
        border-radius: 12px;
        padding: 26px;
        text-align: center;
        cursor: pointer;
        background: rgba(255,255,255,0.02);
        transition: all 200ms;
        position: relative;
    }
    .ws-root .ws-logo-area:hover { border-color: var(--accent); background: rgba(var(--th-accent-500-rgb),0.04); }
    .ws-root .ws-logo-area.drag-over { border-color: var(--accent); background: rgba(var(--th-accent-500-rgb),0.08); transform: scale(1.01); }
    [data-theme="light"] .ws-root .ws-logo-area { background: rgba(var(--th-n-50-rgb),0.9); border-color: rgba(var(--th-n-900-rgb),0.15); }
    [data-theme="light"] .ws-root .ws-logo-area:hover { background: rgba(var(--th-l-6-rgb),0.7); border-color: rgba(var(--th-accent-500-rgb),0.4); }
    .ws-root .ws-logo-preview {
        display: none;
        max-height: 80px; max-width: 240px;
        margin: 0 auto 12px;
        border-radius: 8px;
        object-fit: contain;
    }
    .ws-root .ws-logo-placeholder svg {
        width: 34px; height: 34px;
        color: var(--text-muted);
        margin: 0 auto 9px;
        display: block;
    }
    .ws-root .ws-logo-placeholder .ws-lp-title { font-size: 12.5px; color: var(--text-secondary); font-weight: 600; }
    .ws-root .ws-logo-placeholder .ws-lp-hint { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

    /* ═══ SECTION MINI LABEL ═══ */
    .ws-root .ws-sec-label {
        font-size: 10.5px;
        font-weight: 800;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 10px;
        margin-top: 18px;
    }
    .ws-root .ws-sec-label:first-child { margin-top: 0; }

    /* ═══ SAVE BAR ═══ */
    .ws-root .ws-save-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 11px 16px;
        background: var(--bg-panel);
        border: 1px solid var(--border-subtle);
        border-radius: 12px;
        gap: 10px;
        flex-shrink: 0;
        backdrop-filter: blur(12px);
    }
    [data-theme="light"] .ws-root .ws-save-bar {
        background: rgba(255,255,255,0.85);
        border-color: rgba(var(--th-n-900-rgb),0.08);
        box-shadow: 0 2px 8px rgba(var(--th-n-900-rgb),0.06);
    }
    .ws-root .ws-save-left { display: flex; align-items: center; gap: 8px; flex: 1; }
    .ws-root .ws-save-dot {
        width: 7px; height: 7px;
        border-radius: 50%;
        background: var(--danger);
        opacity: 0;
        transition: opacity 200ms;
        flex-shrink: 0;
    }
    .ws-root .ws-save-dot.show { opacity: 1; animation: wsPulse 1.5s ease-in-out infinite; }
    @keyframes wsPulse {
        0%, 100% { transform: scale(1); opacity: 1; }
        50%       { transform: scale(1.25); opacity: 0.6; }
    }
    .ws-root .ws-save-label { font-size: 11.5px; font-weight: 600; color: var(--text-muted); }
    .ws-root .ws-save-label.show { color: var(--danger); }
    .ws-root .ws-save-buttons { display: flex; gap: 8px; }

    /* ═══ TOAST ═══ */
    .ws-root .ws-toast {
        position: fixed;
        bottom: 60px;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        background: rgba(var(--th-d-8-rgb),0.92);
        border: 1px solid rgba(var(--th-accent-500-rgb),0.3);
        border-radius: 12px;
        padding: 11px 20px;
        display: flex; align-items: center; gap: 10px;
        color: #fff;
        font-size: 12.5px;
        font-weight: 700;
        backdrop-filter: blur(20px);
        box-shadow: 0 8px 32px rgba(0,0,0,0.5);
        z-index: 9999;
        opacity: 0;
        transition: all 300ms cubic-bezier(.34,1.56,.64,1);
        pointer-events: none;
        white-space: nowrap;
    }
    .ws-root .ws-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
    .ws-root .ws-toast.error { border-color: rgba(239,68,68,0.4); }
    .ws-root .ws-toast-icon {
        width: 18px; height: 18px;
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        flex-shrink: 0;
    }
    .ws-root .ws-toast-icon.success { background: rgba(16,185,129,0.2); color: #34d399; }
    .ws-root .ws-toast-icon.error { background: rgba(239,68,68,0.2);  color: #f87171; }
    .ws-root .ws-toast-icon svg { width: 11px; height: 11px; }

    /* ═══ ITEMS LIST (خدمات / ماركات / أسئلة) ═══ */
    .ws-root .ws-items-list { display: flex; flex-direction: column; gap: 12px; }

    .ws-root .ws-item-card {
        background: rgba(255,255,255,0.02);
        border: 1px solid var(--border-subtle);
        border-radius: 14px;
        padding: 16px 18px;
        position: relative;
        transition: background 200ms, border-color 200ms;
    }
    .ws-root .ws-item-card:hover { background: rgba(255,255,255,0.04); border-color: var(--border-soft); }
    [data-theme="light"] .ws-root .ws-item-card { background: rgba(var(--th-n-50-rgb),0.85); border-color: rgba(var(--th-n-900-rgb),0.08); }
    [data-theme="light"] .ws-root .ws-item-card:hover { background: rgba(var(--th-n-100-rgb),0.95); border-color: rgba(var(--th-n-900-rgb),0.12); }

    .ws-root .ws-item-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
    }
    .ws-root .ws-item-num {
        font-size: 11px;
        font-weight: 800;
        color: var(--accent-light);
        background: rgba(var(--th-accent-500-rgb),0.12);
        border: 1px solid rgba(var(--th-accent-500-rgb),0.2);
        border-radius: 6px;
        padding: 2px 8px;
        letter-spacing: 0.04em;
    }
    .ws-root .ws-item-actions { display: flex; gap: 6px; }
    .ws-root .ws-item-btn {
        width: 28px; height: 28px;
        border-radius: 8px;
        border: 1px solid var(--border-soft);
        background: rgba(255,255,255,0.04);
        color: var(--text-muted);
        display: flex; align-items: center; justify-content: center;
        cursor: pointer;
        transition: all 160ms;
        flex-shrink: 0;
    }
    .ws-root .ws-item-btn svg { width: 13px; height: 13px; }
    .ws-root .ws-item-btn:hover { color: var(--danger); border-color: rgba(239,68,68,0.35); background: rgba(239,68,68,0.08); }
    [data-theme="light"] .ws-root .ws-item-btn { background: rgba(var(--th-n-900-rgb),0.04); }

    .ws-root .ws-add-item-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px;
        border: 2px dashed var(--border-soft);
        border-radius: 12px;
        background: transparent;
        color: var(--text-muted);
        font-family: 'Cairo', sans-serif;
        font-size: 12.5px;
        font-weight: 700;
        cursor: pointer;
        transition: all 180ms;
        width: 100%;
        margin-top: 4px;
    }
    .ws-root .ws-add-item-btn svg { width: 14px; height: 14px; }
    .ws-root .ws-add-item-btn:hover {
        border-color: var(--accent);
        color: var(--accent-light);
        background: rgba(var(--th-accent-500-rgb),0.05);
    }

    /* ═══ SERVICE IMAGE UPLOAD ═══ */
    .ws-root .ws-service-img-area {
        border: 2px dashed var(--border-soft);
        border-radius: 10px;
        height: 90px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        background: rgba(255,255,255,0.02);
        transition: all 180ms;
        position: relative;
        overflow: hidden;
    }
    .ws-root .ws-service-img-area:hover { border-color: var(--accent); background: rgba(var(--th-accent-500-rgb),0.04); }
    .ws-root .ws-service-img-area img {
        position: absolute; inset: 0;
        width: 100%; height: 100%;
        object-fit: cover;
        border-radius: 8px;
        display: none;
    }
    .ws-root .ws-service-img-area svg { width: 22px; height: 22px; color: var(--text-muted); }
    .ws-root .ws-service-img-area span { font-size: 10.5px; color: var(--text-muted); margin-top: 5px; font-weight: 600; }
    [data-theme="light"] .ws-root .ws-service-img-area { background: rgba(var(--th-n-50-rgb),0.9); border-color: rgba(var(--th-n-900-rgb),0.14); }

    /* ═══ BRAND LOGO UPLOAD ═══ */
    .ws-root .ws-brand-logo-area {
        width: 72px; height: 72px;
        border: 2px dashed var(--border-soft);
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        background: rgba(255,255,255,0.02);
        transition: all 180ms;
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
    }
    .ws-root .ws-brand-logo-area:hover { border-color: var(--accent); background: rgba(var(--th-accent-500-rgb),0.05); }
    .ws-root .ws-brand-logo-area img {
        position: absolute; inset: 0;
        width: 100%; height: 100%;
        object-fit: contain;
        padding: 6px;
        display: none;
    }
    .ws-root .ws-brand-logo-area svg { width: 20px; height: 20px; color: var(--text-muted); }
    [data-theme="light"] .ws-root .ws-brand-logo-area { background: rgba(var(--th-n-50-rgb),0.9); border-color: rgba(var(--th-n-900-rgb),0.14); }

    /* ═══ SPIN ═══ */
    @keyframes spin { to { transform: rotate(360deg); } }

    /* ═══ RESPONSIVE ═══ */
    @media (max-width: 768px) {
        .ws-root { padding: 12px 14px; }
        .ws-card { padding: 16px; }
        .ws-toggle-row { padding: 11px 13px; }
        .ws-tab-btn span.tab-label { display: none; }
    }
    @media (max-width: 480px) {
        .ws-root .ws-toggle-row { flex-direction: column; align-items: flex-start; gap: 10px; }
        .ws-root .ws-switch { align-self: flex-end; }
        .ws-root .ws-tabs-nav { gap: 2px; padding: 4px; }
        .ws-root .ws-tab-btn { padding: 8px 10px; }
    }
/* ── تكييف V2: الصفحة داخل MainLayout (تمرير الصفحة نفسها) بدل calc(100 * var(--vh)) + تمرير داخلي بالقديم؛
   شريط الحفظ يبقى ملتصقًا بأسفل الشاشة بنفس مظهره. ── */
.ws-root { height: auto; overflow: visible; padding: 0; }
.ws-root .ws-body { overflow: visible; flex: none; }
.ws-root .ws-save-bar { position: sticky; bottom: 12px; z-index: 5; }
/* زر القائمة العام (.mobile-menu-btn، fixed أعلى اليمين 48px) — مساحة محجوزة له بصف الهيدر فقط. */
.ws-root .ws-header { padding-right: 62px; min-height: 48px; }
.ws-root .ws-tab-btn.soon { opacity: .55; }
.ws-root .ws-desc-counter { font-size:10.5px; color:var(--text-muted); text-align:left; margin-top:3px; font-weight:600; transition:color 200ms; }
.ws-root .ws-desc-counter.over { color: var(--danger); }
.ws-root .ws-badge-label { font-size:10.5px; font-weight:800; color:var(--text-muted); text-transform:uppercase; letter-spacing:.06em; margin-bottom:8px; }
.ws-root a.ws-link { color: var(--accent-light); font-weight: 700; text-decoration: none; }
.ws-root a.ws-link:hover { text-decoration: underline; }

/* ═══ SEO (2026-10-01): حقول + معاينة جوجل/واتساب حيّة ═══ */
.ws-root .seo-field { margin-bottom: 14px; }
.ws-root .seo-hint { font-size: 10.5px; color: var(--text-muted); font-weight: 600; margin-top: 2px; }
.ws-root .seo-hint.over { color: var(--warning, #f59e0b); }
.ws-root .seo-previews { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .ws-root .seo-previews { grid-template-columns: 1fr; } }
.ws-root .seo-prev-label { font-size: 10.5px; font-weight: 800; color: var(--text-muted); margin-bottom: 8px; letter-spacing: .04em; }
/* معاينة جوجل — ألوان جوجل الحقيقية على خلفية بيضا في الوضعين، عشان تبان زي ما الزبون هيشوفها */
.ws-root .seo-google { background: #fff; border: 1px solid rgba(var(--th-n-900-rgb),.12); border-radius: 12px; padding: 14px 16px; direction: rtl; font-family: Arial, 'Cairo', sans-serif; }
.ws-root .seo-g-site { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ws-root .seo-g-fav { width: 28px; height: 28px; border-radius: 50%; background: #f1f3f4; border: 1px solid #e3e3e3; overflow: hidden; flex-shrink: 0; display: flex; }
.ws-root .seo-g-fav img { width: 100%; height: 100%; object-fit: cover; }
.ws-root .seo-g-site b { display: block; font-size: 13px; font-weight: 400; color: #202124; }
.ws-root .seo-g-site small { display: block; font-size: 11.5px; color: #4d5156; }
.ws-root .seo-g-title { font-size: 18px; line-height: 1.3; color: #1a0dab; margin-bottom: 3px; }
.ws-root .seo-g-desc { font-size: 13px; line-height: 1.55; color: #4d5156; }
/* معاينة واتساب — فقاعة رسالة مُرسَلة */
.ws-root .seo-wa { background: #0b141a; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; align-items: flex-end; }
.ws-root .seo-wa-card, .ws-root .seo-wa-link { width: min(100%, 300px); background: #005c4b; }
.ws-root .seo-wa-card { border-radius: 8px 8px 0 0; padding: 4px 4px 0; overflow: hidden; }
.ws-root .seo-wa-card img { width: 100%; aspect-ratio: 1.91/1; object-fit: cover; display: block; border-radius: 6px 6px 0 0; }
.ws-root .seo-wa-text { background: rgba(0,0,0,.22); padding: 8px 10px; border-radius: 0 0 6px 6px; }
.ws-root .seo-wa-title { font-size: 13px; font-weight: 700; color: #e9edef; line-height: 1.35; }
.ws-root .seo-wa-desc { font-size: 11.5px; color: #c4cdd2; margin-top: 2px; line-height: 1.45; }
.ws-root .seo-wa-host { font-size: 10.5px; color: #8696a0; margin-top: 4px; text-align: right; }
.ws-root .seo-wa-link { border-radius: 0 0 8px 8px; padding: 6px 10px 8px; font-size: 12px; color: #53bdeb; word-break: break-all; text-align: left; }
