/* ============================================================
   Quote Request Plugin – Frontend Styles
   ============================================================ */

/* ── Add to Quote Button ─────────────────────────────────── */
.qr-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a3a5c;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s, transform 0.15s;
    font-family: inherit;
}
.qr-add-btn:hover { background: #245082; transform: translateY(-1px); }
.qr-add-btn.qr-adding { opacity: .7; pointer-events: none; }
.qr-add-btn.qr-added  { background: #27ae60; }

.qr-select-options-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1a3a5c;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.15s;
    font-family: inherit;
}
.qr-select-options-btn:hover { background: #245082; color: #fff !important; transform: translateY(-1px); }

.qr-btn-loop {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 4px;
    justify-content: center;
}

/* ── Floating Widget ──────────────────────────────────────── */
#qr-widget {
    position: fixed !important;
    bottom: 32px !important;
    right: 20px !important;
    left: auto !important;
    transform: none !important;
    z-index: 999999 !important;
    font-family: 'Segoe UI', Arial, sans-serif;
    direction: rtl;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Bubble – floating circle icon (right side) */
#qr-bubble {
    width: 56px !important;
    height: 56px !important;
    background: #1a3a5c !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 18px rgba(0,0,0,.28) !important;
    transition: background .2s, transform .15s;
    position: relative !important;
}
#qr-bubble::before { content: none; }
#qr-bubble:hover { background: #245082 !important; transform: scale(1.08); }

#qr-count {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #fff;
    transition: transform 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
#qr-count.bump { transform: scale(1.4); }

/* Pulse ring when has items */
#qr-widget.has-items #qr-bubble::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2.5px solid rgba(26,58,92,.5);
    animation: qr-ring 2s ease-out infinite;
}
@keyframes qr-ring {
    0%   { transform: scale(1);   opacity: .8; }
    100% { transform: scale(1.6); opacity: 0;  }
}

/* Panel – pops up above and to the left of the icon */
#qr-panel {
    position: absolute;
    bottom: 68px;
    right: 0;
    left: auto;
    width: 320px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    overflow: hidden;
    transform: translateY(12px) scale(.95);
    transform-origin: bottom right;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    max-height: 70vh;
    overflow-y: auto;
}
#qr-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Panel header */
.qr-panel-header {
    background: #1a3a5c;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#qr-close-panel {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    opacity: .7;
    transition: opacity .15s;
}
#qr-close-panel:hover { opacity: 1; }

/* Items list */
#qr-items-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 8px 0;
}
.qr-empty { padding: 20px; text-align: center; color: #999; font-size: 13px; margin: 0; }

.qr-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background .15s;
}
.qr-item:last-child { border-bottom: none; }
.qr-item:hover { background: #fafafa; }
.qr-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
    flex-shrink: 0;
}
.qr-item-info { flex: 1; min-width: 0; }
.qr-item-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 6px;
}
.qr-qty-wrap { display: flex; align-items: center; gap: 4px; }
.qr-qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}
.qr-qty-btn:hover { background: #f0f0f0; }
.qr-qty-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 13px;
}
.qr-remove-item {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    opacity: .5;
    transition: opacity .15s;
    padding: 0;
    margin-right: 4px;
}
.qr-remove-item:hover { opacity: 1; }

/* Panel footer */
.qr-panel-footer { padding: 12px 14px; background: #f7f9fc; border-top: 1px solid #eee; }
.qr-goto-btn {
    display: block;
    background: #27ae60;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background .2s;
}
.qr-goto-btn:hover { background: #219a52; color: #fff; }

/* Toast notification */
#qr-toast {
    position: fixed;
    bottom: 100px;
    right: 20px;
    left: auto;
    background: #1a3a5c;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 999999;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    direction: rtl;
}
#qr-toast.show { transform: translateY(0); opacity: 1; }

/* ── Quote Form Page ──────────────────────────────────────── */
.qr-form-wrap { direction: rtl; max-width: 800px; }
.qr-form-wrap h2 {
    font-size: 20px;
    color: #1a3a5c;
    border-bottom: 2px solid #1a3a5c;
    padding-bottom: 8px;
    margin: 24px 0 16px;
}

.qr-products-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}
.qr-products-table th {
    background: #1a3a5c;
    color: #fff;
    padding: 10px 14px;
    text-align: right;
}
.qr-products-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
}
.qr-products-table tr:last-child td { border-bottom: none; }
.qr-products-table a { color: #1a3a5c; text-decoration: none; font-weight: 600; }

.qr-contact-form { max-width: 680px; }
.qr-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.qr-field { display: flex; flex-direction: column; gap: 6px; }
.qr-field label { font-weight: 600; font-size: 14px; color: #333; }
.qr-field input, .qr-field textarea {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s;
    width: 100%;
    box-sizing: border-box;
}
.qr-field input:focus, .qr-field textarea:focus {
    outline: none;
    border-color: #1a3a5c;
    box-shadow: 0 0 0 3px rgba(26,58,92,.1);
}
.qr-field { margin-bottom: 16px; }

.qr-submit-btn {
    background: #1a3a5c;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background .2s, transform .15s;
    font-family: inherit;
    margin-top: 8px;
}
.qr-submit-btn:hover { background: #245082; transform: translateY(-1px); }

/* Notices */
.qr-notice {
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}
.qr-notice-success { background: #e8f5e9; border: 1px solid #a5d6a7; color: #2e7d32; }
.qr-notice-info    { background: #e3f2fd; border: 1px solid #90caf9; color: #1565c0; }
.qr-notice-error   { background: #ffebee; border: 1px solid #ef9a9a; color: #c62828; }
.qr-notice h3      { margin: 0 0 8px; }
.qr-notice a       { color: inherit; font-weight: bold; }

/* ── Responsive ────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 900px) {
    #qr-widget { width: 300px !important; }
    #qr-bubble { height: 46px !important; font-size: 13px !important; }
    #qr-bubble::before { font-size: 12px; }
    #qr-panel { max-height: 60vh; }
}

/* Mobile */
@media (max-width: 600px) {
    .qr-field-row { grid-template-columns: 1fr; }

    #qr-widget {
        right: 14px !important;
        bottom: 20px !important;
    }
    #qr-bubble {
        width: 50px !important;
        height: 50px !important;
    }
    #qr-panel {
        width: 290px !important;
        right: 0 !important;
    }
    #qr-items-list { max-height: 45vh; }
    .qr-item { padding: 8px 12px; }
    .qr-item img { width: 36px; height: 36px; }
    .qr-item-name { font-size: 12px; }
}

/* Small mobile */
@media (max-width: 380px) {
    #qr-panel { width: 260px !important; }
    #qr-bubble { width: 46px !important; height: 46px !important; }
}

/* ── Download PDF Button ─────────────────────────────────── */
.qr-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    color: #2E8B7A;
    border: 2px solid #2E8B7A;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-decoration: none;
}
.qr-download-btn:hover {
    background: #2E8B7A;
    color: #fff;
}
.qr-download-btn.qr-loading {
    opacity: .65;
    pointer-events: none;
}
.qr-download-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* Widget panel download btn */
#qr-download-widget-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    justify-content: center;
    font-size: 12px;
    padding: 7px 12px;
    border-radius: 5px;
}

/* Section header with download button */
.qr-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 12px;
}
.qr-section-header h2 {
    margin: 0;
    border-bottom: none;
}

/* ── Qty controls inside the form table ─────────────────── */
.qr-qty-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.qr-qty-inline .qr-qty-input {
    width: 52px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 13px;
}
.qr-qty-inline .qr-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}
.qr-qty-inline .qr-qty-btn:hover { background: #e0e0e0; }

/* Fix: SKU column min-width */
.qr-products-table td:nth-child(2),
.qr-products-table th:nth-child(2) {
    min-width: 90px;
}

/* ── Clear cart button ───────────────────────────────────── */
.qr-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    color: #c0392b;
    border: 1px solid #e74c3c;
    border-radius: 5px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    width: 100%;
    justify-content: center;
    margin-top: 6px;
}
.qr-clear-btn:hover { background: #e74c3c; color: #fff; }

.qr-panel-footer-btns {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}
.qr-panel-footer-btns .qr-download-btn {
    width: 100%;
    justify-content: center;
    font-size: 12px;
    padding: 7px 12px;
}

/* ── My Orders (logged-in) ───────────────────────────────── */
.qr-my-orders {
    margin-bottom: 32px;
    padding: 20px 24px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}
.qr-my-orders h3 {
    color: #1a3a5c;
    font-size: 16px;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a3a5c;
}
.qr-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}
.qr-status-pending   { background:#fff3cd; color:#856404; }
.qr-status-reviewing { background:#cce5ff; color:#004085; }
.qr-status-sent      { background:#d4edda; color:#155724; }
.qr-status-rejected  { background:#f8d7da; color:#721c24; }

/* ── Section title ───────────────────────────────────────── */
.qr-section-title {
    font-size: 20px;
    color: #1a3a5c;
    border-bottom: 2px solid #1a3a5c;
    padding-bottom: 8px;
    margin: 24px 0 16px;
}

/* ═══════════════════════════════════════════════════════════
   MY ACCOUNT – Quote Requests Tab
   ═══════════════════════════════════════════════════════════ */

.qr-account-wrap {
    direction: rtl;
    font-family: -apple-system, 'Segoe UI', Arial, sans-serif;
    max-width: 900px;
}

/* ── Stats row ─────────────────────────────────────────────── */
.qr-acc-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.qr-acc-stat {
    flex: 1;
    min-width: 120px;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-top: 3px solid #1a3a5c;
    border-radius: 10px;
    padding: 16px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.qr-acc-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #1a3a5c;
    line-height: 1.2;
}
.qr-acc-stat-lbl {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* ── Section title ─────────────────────────────────────────── */
.qr-acc-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8ecf0;
}

/* ── Empty state ───────────────────────────────────────────── */
.qr-acc-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #d0d7de;
}
.qr-acc-empty-icon { font-size: 48px; margin-bottom: 12px; }
.qr-acc-empty h3   { color: #1a3a5c; font-size: 20px; margin: 0 0 8px; }
.qr-acc-empty p    { color: #888; margin: 0 0 20px; font-size: 14px; }

/* ── Buttons ───────────────────────────────────────────────── */
.qr-acc-btn-primary {
    display: inline-block;
    background: #1a3a5c;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: background .2s;
}
.qr-acc-btn-primary:hover { background: #245082; }

.qr-acc-btn-secondary {
    display: inline-block;
    background: #fff;
    color: #1a3a5c !important;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid #1a3a5c;
    transition: all .2s;
}
.qr-acc-btn-secondary:hover { background: #f0f4f8; }

/* ── Request card ──────────────────────────────────────────── */
.qr-acc-requests {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.qr-acc-request-card {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: box-shadow .2s, transform .15s;
}
.qr-acc-request-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.qr-acc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #f8f9fa;
    border-bottom: 1px solid #e8ecf0;
}
.qr-acc-card-id { display: flex; align-items: center; gap: 12px; }
.qr-acc-ref  { font-weight: 700; color: #1a3a5c; font-size: 15px; }
.qr-acc-date { font-size: 12px; color: #888; }

.qr-acc-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.qr-acc-card-products {
    padding: 14px 18px;
}
.qr-acc-product-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.qr-acc-product-row:last-child { border-bottom: none; }

.qr-acc-product-img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #eee;
}
.qr-acc-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    color: #aaa;
    font-size: 20px;
}

.qr-acc-product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.qr-acc-product-name {
    font-weight: 600;
    font-size: 13px;
    color: #1a3a5c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.qr-acc-product-variant {
    font-size: 11px;
    color: #2E8B7A;
    font-weight: 500;
}
.qr-acc-product-sku {
    font-size: 11px;
    color: #aaa;
    font-family: monospace;
}
.qr-acc-product-qty {
    font-weight: 700;
    color: #1a3a5c;
    font-size: 14px;
    flex-shrink: 0;
    background: #e8f0f8;
    padding: 2px 10px;
    border-radius: 12px;
}

.qr-acc-more-products {
    font-size: 12px;
    color: #888;
    text-align: center;
    padding: 6px 0 0;
    font-style: italic;
}

.qr-acc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f8f9fa;
    border-top: 1px solid #e8ecf0;
    gap: 12px;
    flex-wrap: wrap;
}
.qr-acc-product-count { font-size: 13px; color: #888; }
.qr-acc-sent-note     { font-size: 12px; color: #27ae60; font-weight: 500; }

.qr-acc-view-btn {
    display: inline-block;
    background: #1a3a5c;
    color: #fff !important;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .2s;
    margin-right: auto;
}
.qr-acc-view-btn:hover { background: #245082; }

/* ── Single request view ────────────────────────────────────── */
.qr-acc-back { margin-bottom: 16px; }
.qr-acc-back a { color: #1a3a5c; text-decoration: none; font-weight: 500; font-size: 14px; }
.qr-acc-back a:hover { text-decoration: underline; }

.qr-acc-single-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e8ecf0;
}
.qr-acc-single-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 4px;
}
.qr-acc-single-title span { opacity: .6; }
.qr-acc-single-date { font-size: 13px; color: #888; margin: 0; }

.qr-acc-status-big {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.qr-acc-alert {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 4px;
}
.qr-acc-alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.qr-acc-alert-info    { background: #cce5ff; color: #004085; border: 1px solid #b8daff; }

.qr-acc-card {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.qr-acc-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8ecf0;
}

/* ── Products table in single view ─────────────────────────── */
.qr-acc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.qr-acc-table thead th {
    background: #1a3a5c;
    color: #fff;
    padding: 10px 12px;
    text-align: right;
    font-weight: 600;
    font-size: 12px;
}
.qr-acc-table tbody tr:nth-child(even) { background: #f8f9fa; }
.qr-acc-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #e8ecf0;
    vertical-align: middle;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
    .qr-acc-stats { gap: 10px; }
    .qr-acc-stat  { padding: 12px; }
    .qr-acc-stat-num { font-size: 22px; }
    .qr-acc-single-header { flex-direction: column; }
    .qr-acc-table { font-size: 12px; }
    .qr-acc-table thead th,
    .qr-acc-table tbody td { padding: 8px; }
}

/* ═══════════════════════════════════════════════════════════
   WATAN ACCOUNT PAGE – [watan_my_account] shortcode
   ═══════════════════════════════════════════════════════════ */

.watan-account {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    direction: rtl;
    font-family: -apple-system, 'Segoe UI', 'Tahoma', Arial, sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 0 40px;
    align-items: start;
}

/* ── Sidebar ───────────────────────────────────────────────── */
.watan-account-sidebar {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    position: sticky;
    top: 24px;
}

.watan-acc-user {
    background: linear-gradient(135deg, #1a3a5c 0%, #2E8B7A 100%);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
.watan-avatar-img {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    border: 3px solid rgba(255,255,255,.4) !important;
    display: block;
}
.watan-acc-user-info strong {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}
.watan-acc-user-info span {
    display: block;
    color: rgba(255,255,255,.7);
    font-size: 12px;
    margin-top: 3px;
    word-break: break-all;
}

.watan-acc-nav {
    padding: 8px 0;
}
.watan-acc-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #444 !important;
    text-decoration: none !important;
    transition: all .15s;
    border-right: 3px solid transparent;
}
.watan-acc-nav-item:hover {
    background: #f0f4f8;
    color: #1a3a5c !important;
}
.watan-acc-nav-item.active {
    background: #eef4ff;
    color: #1a3a5c !important;
    border-right-color: #1a3a5c;
    font-weight: 700;
}
.watan-nav-icon { font-size: 16px; flex-shrink: 0; }
.watan-nav-divider { border: none; border-top: 1px solid #e8ecf0; margin: 6px 0; }
.watan-logout { color: #dc2626 !important; }
.watan-logout:hover { background: #fef2f2 !important; color: #dc2626 !important; }

/* ── Content area ──────────────────────────────────────────── */
.watan-account-content { min-width: 0; }

/* ── Stats grid ────────────────────────────────────────────── */
.watan-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.watan-stat-box {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-top: 3px solid #1a3a5c;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.watan-stat-box.warning { border-top-color: #d97706; }
.watan-stat-box.success { border-top-color: #16a34a; }
.watan-stat-number {
    font-size: 30px;
    font-weight: 800;
    color: #1a3a5c;
    line-height: 1.1;
}
.watan-stat-box.warning .watan-stat-number { color: #d97706; }
.watan-stat-box.success .watan-stat-number { color: #16a34a; }
.watan-stat-label { font-size: 12px; color: #888; margin-top: 4px; }

/* ── Section header ────────────────────────────────────────── */
.watan-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}
.watan-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0;
}

/* ── Buttons ───────────────────────────────────────────────── */
.watan-btn-primary {
    display: inline-block;
    background: #1a3a5c;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background .2s;
}
.watan-btn-primary:hover { background: #245082; }
.watan-btn-sm { padding: 7px 16px; font-size: 13px; }

.watan-btn-outline {
    display: inline-block;
    background: transparent;
    color: #1a3a5c !important;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    border: 2px solid #1a3a5c;
    transition: all .2s;
}
.watan-btn-outline:hover { background: #f0f4f8; }

/* ── Empty state ───────────────────────────────────────────── */
.watan-empty-state {
    text-align: center;
    padding: 60px 24px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #d0d7de;
}
.watan-empty-icon { font-size: 52px; margin-bottom: 14px; }
.watan-empty-state h3 { color: #1a3a5c; margin: 0 0 8px; }
.watan-empty-state p  { color: #888; margin: 0 0 20px; }

/* ── Quote card ────────────────────────────────────────────── */
.watan-quotes-list { display: flex; flex-direction: column; gap: 14px; }

.watan-quote-card {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: box-shadow .2s, transform .15s;
}
.watan-quote-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.watan-quote-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e8ecf0;
}
.watan-quote-meta { display: flex; align-items: center; gap: 12px; }
.watan-quote-ref  { font-weight: 700; color: #1a3a5c; font-size: 15px; }
.watan-quote-date { font-size: 12px; color: #888; }

.watan-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.watan-quote-products { padding: 12px 16px; }
.watan-quote-product-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #f5f5f5;
}
.watan-quote-product-row:last-child { border-bottom: none; }
.watan-product-thumb {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #eee;
    flex-shrink: 0;
}
.watan-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    color: #aaa;
    font-size: 18px;
}
.watan-product-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.watan-product-name {
    font-weight: 600;
    font-size: 13px;
    color: #1a3a5c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.watan-product-variant { font-size: 11px; color: #2E8B7A; }
.watan-product-sku     { font-size: 11px; color: #aaa; font-family: monospace; }
.watan-product-qty {
    font-weight: 700;
    color: #1a3a5c;
    background: #eef4ff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    flex-shrink: 0;
}
.watan-more-products {
    text-align: center;
    font-size: 12px;
    color: #aaa;
    padding: 4px 0 0;
    font-style: italic;
}

.watan-quote-card-footer {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e8ecf0;
    gap: 12px;
}
.watan-quote-count { font-size: 13px; color: #888; }
.watan-sent-badge  { font-size: 12px; color: #16a34a; font-weight: 500; margin-right: auto; }

/* ── Quote detail ──────────────────────────────────────────── */
.watan-back-link {
    display: inline-block;
    color: #1a3a5c !important;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none !important;
    margin-bottom: 16px;
}
.watan-back-link:hover { text-decoration: underline !important; }

.watan-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e8ecf0;
}
.watan-detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 4px;
}
.watan-detail-ref  { opacity: .55; font-weight: 400; }
.watan-detail-date { font-size: 13px; color: #888; margin: 0; }

.watan-status-large {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

/* Alerts */
.watan-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}
.watan-alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.watan-alert-info    { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.watan-alert-warning { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.watan-alert-error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* Detail card */
.watan-detail-card {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.watan-card-accent { border-right: 4px solid #2E8B7A; }
.watan-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8ecf0;
}
.watan-notes-text { color: #555; line-height: 1.7; margin: 0; }

/* Detail table */
.watan-table-wrap { overflow-x: auto; }
.watan-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 500px;
}
.watan-detail-table thead th {
    background: #1a3a5c;
    color: #fff;
    padding: 10px 12px;
    text-align: right;
    font-weight: 600;
    font-size: 12px;
}
.watan-detail-table tbody tr:nth-child(even) { background: #f8f9fa; }
.watan-detail-table tbody td { padding: 10px 12px; border-bottom: 1px solid #e8ecf0; vertical-align: middle; }
.watan-product-cell { display: flex; align-items: center; gap: 10px; }
.watan-product-link { color: #1a3a5c !important; font-weight: 600; text-decoration: none !important; }
.watan-product-link:hover { text-decoration: underline !important; }
.watan-cat-cell     { color: #2E8B7A; font-size: 12px; font-weight: 600; }
.watan-variant-cell { color: #555; }
.watan-sku-cell     { font-family: monospace; font-size: 12px; color: #666; }
.watan-qty-cell     { font-weight: 700; color: #1a3a5c; text-align: center; }

.watan-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* ── Profile form ──────────────────────────────────────────── */
.watan-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.watan-form-field { display: flex; flex-direction: column; gap: 6px; }
.watan-form-field label { font-size: 13px; font-weight: 600; color: #444; }
.watan-form-field input {
    border: 1px solid #d0d7de;
    border-radius: 7px;
    padding: 9px 12px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .15s;
    width: 100%;
    box-sizing: border-box;
}
.watan-form-field input:focus {
    outline: none;
    border-color: #1a3a5c;
    box-shadow: 0 0 0 3px rgba(26,58,92,.1);
}
.watan-form-field small { font-size: 11px; color: #aaa; }

.watan-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.watan-info-grid > div { display: flex; flex-direction: column; gap: 2px; }
.watan-info-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .5px; }

/* ── Login prompt ──────────────────────────────────────────── */
.watan-login-prompt {
    text-align: center;
    padding: 60px 20px;
    max-width: 400px;
    margin: auto;
}
.watan-login-icon { font-size: 52px; margin-bottom: 16px; }
.watan-login-prompt h3 { color: #1a3a5c; margin: 0 0 10px; }
.watan-login-prompt p  { color: #888; margin: 0 0 24px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .watan-account { grid-template-columns: 1fr; }
    .watan-account-sidebar { position: static; }
    .watan-acc-user { flex-direction: row; text-align: right; }
    .watan-stats-grid { grid-template-columns: 1fr 1fr; }
    .watan-form-grid { grid-template-columns: 1fr; }
    .watan-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .watan-stats-grid { grid-template-columns: 1fr; }
    .watan-detail-header { flex-direction: column; }
}

/* ============================================================
   RFQ Form v3.5 — Watan Arabic form
   ============================================================ */
.qr-form-v35 {
    max-width: 980px;
    margin: 0 auto;
}
.qr-form-v35 .qr-section-subtitle {
    margin: 5px 0 0;
    color: #6b7280;
    font-size: 13px;
}
.qr-products-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 28px;
}
.qr-form-v35 .qr-products-table {
    min-width: 760px;
    margin-bottom: 0;
}
.qr-form-v35 .qr-form-product-image {
    object-fit: cover;
    border-radius: 6px;
    vertical-align: middle;
    margin-left: 10px;
}
.qr-form-v35 .qr-form-category {
    color: #2E8B7A;
    font-size: 12px;
    font-weight: 600;
}
.qr-form-v35 .qr-form-sku {
    font-family: monospace;
    font-size: 12px;
}
.qr-form-v35 .qr-contact-form {
    max-width: 760px;
    margin: 0 auto;
}
.qr-rfq-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px 26px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .05);
}
.qr-rfq-heading {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef0f3;
}
.qr-rfq-title {
    color: #1a3a5c;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}
.qr-rfq-help {
    margin-top: 4px;
    color: #7b8491;
    font-size: 12px;
}
.qr-rfq-form .qr-field-row {
    gap: 14px;
    margin-bottom: 0;
}
.qr-rfq-form .qr-field {
    margin-bottom: 15px;
    gap: 6px;
}
.qr-rfq-form .qr-field label {
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}
.qr-rfq-form .qr-field input,
.qr-rfq-form .qr-field select,
.qr-rfq-form .qr-field textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    border: 1px solid #d9dee6;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.qr-rfq-form .qr-field textarea {
    min-height: 105px;
    resize: vertical;
}
.qr-rfq-form .qr-field input:focus,
.qr-rfq-form .qr-field select:focus,
.qr-rfq-form .qr-field textarea:focus {
    outline: none;
    border-color: #2E8B7A;
    box-shadow: 0 0 0 3px rgba(46, 139, 122, .10);
}
.qr-rfq-form .qr-field input::placeholder,
.qr-rfq-form .qr-field textarea::placeholder {
    color: #a0a7b0;
}
.qr-file-control {
    border: 1px dashed #cfd6df;
    border-radius: 9px;
    padding: 12px;
    background: #fafbfc;
}
.qr-file-control input[type="file"] {
    min-height: auto;
    border: 0;
    padding: 0;
    background: transparent;
}
.qr-file-help {
    display: block;
    margin-top: 7px;
    color: #858e9a;
    font-size: 11px;
}
.qr-privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 3px 0 16px;
    color: #5d6672;
    font-size: 12px;
    line-height: 1.7;
    cursor: pointer;
}
.qr-privacy-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 3px 0 0;
    accent-color: #2E8B7A;
}
.qr-privacy-consent a,
.qr-privacy-note a {
    color: #1a3a5c;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.qr-submit-full {
    width: 100%;
    min-height: 48px;
    margin-top: 0;
    background: #1a3a5c;
}
.qr-submit-full:hover {
    background: #2E8B7A;
}
.qr-privacy-note {
    margin-top: 11px;
    color: #8a929d;
    font-size: 11px;
    text-align: center;
}
.qr-form-errors ul {
    margin: 8px 18px 0 0;
}
.qr-form-errors li {
    margin: 4px 0;
}

@media (max-width: 700px) {
    .qr-form-v35 .qr-contact-form { max-width: 100%; }
    .qr-rfq-card {
        padding: 18px 14px;
        border-radius: 10px;
    }
    .qr-rfq-form .qr-field-row { grid-template-columns: 1fr; }
    .qr-form-v35 .qr-section-header { align-items: flex-start; }
    .qr-form-v35 .qr-download-btn { width: 100%; justify-content: center; }
}
