/* ═══════════════════════════════════════════════════════════════════════
   وتد الوقفية — موقع الزبائن (Public Site CSS)
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    --navy:        #0B1F3A;
    --navy-light:  #1e3a5f;
    --gold:        #C9A84C;     /* موحَّد مع admin_v2/main.css — ٣ مايو */
    --gold-light:  #e0c46e;     /* موحَّد مع admin_v2/main.css — ٣ مايو */
    --bg:          #f9fafb;
    --card:        #ffffff;
    --text:        #1f2937;
    --text-muted:  #6b7280;
    --text-light:  #9ca3af;
    --border:      #e5e7eb;
    --border-light:#f3f4f6;
    --success:     #16a34a;
    --warn:        #f59e0b;
    --danger:      #dc2626;
    --info:        #3b82f6;
    --radius:      12px;
    --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
    --shadow-md:   0 4px 12px rgba(0,0,0,.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Tajawal', 'Segoe UI', sans-serif;
    direction: rtl;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

/* ─── Header ─── */
.site-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
    display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800;
    font-size: 18px;
}
.brand-logo {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--gold); display: grid; place-items: center; font-size: 20px; font-weight: 800;
}
.brand-logo-img {
    width: 38px !important; height: 38px !important;
    object-fit: cover;
    border-radius: 50% !important;
    background: #fff;
    box-sizing: border-box;
    display: inline-block;
}
.main-nav {
    display: flex; gap: 4px; align-items: center; flex-wrap: wrap;
}
.main-nav a {
    padding: 8px 14px; border-radius: 8px; font-size: 14px; color: var(--text);
    transition: all .2s;
}
.main-nav a:hover, .main-nav a.active {
    background: var(--navy); color: var(--gold-light);
}
.auth-zone { display: flex; gap: 8px; align-items: center; }
.user-chip {
    display: flex; align-items: center; gap: 8px; padding: 6px 12px;
    background: var(--bg); border-radius: 20px; font-size: 13px;
}
.user-chip .ava {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--gold); color: var(--navy); display: grid; place-items: center;
    font-weight: 700; font-size: 12px;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 700;
    border: 1px solid transparent; cursor: pointer; transition: all .2s;
    font-family: inherit;
}
.btn-navy    { background: var(--navy); color: var(--gold-light); }
.btn-navy:hover { background: var(--navy-light); color: var(--gold); }
.btn-gold    { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { background: var(--bg); border-color: var(--navy); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger  { background: var(--danger);  color: #fff; }
.btn-block   { width: 100%; }
.btn-lg      { padding: 13px 24px; font-size: 16px; }

/* ─── Layout ─── */
main.site-main {
    flex: 1; max-width: 1200px; width: 100%; margin: 0 auto; padding: 24px 20px;
}

.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff; border-radius: 16px; padding: 50px 40px; text-align: center;
    position: relative; overflow: hidden; margin-bottom: 30px;
}
.hero::before {
    content: ''; position: absolute; top: -40%; right: -10%;
    width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(200,168,95,.2), transparent 70%);
}
.hero h1 { font-size: 34px; color: var(--gold); margin-bottom: 14px; position: relative; }
.hero p { font-size: 16px; opacity: .9; max-width: 700px; margin: 0 auto 24px; position: relative; }
.hero .cta { display: inline-flex; gap: 12px; position: relative; flex-wrap: wrap; justify-content: center; }

/* ─── Cards ─── */
.products-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px; margin: 24px 0;
}
.product-card {
    background: var(--card); border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: all .2s;
    display: flex; flex-direction: column; gap: 10px;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--gold); }
.product-card .icon {
    width: 52px; height: 52px; border-radius: 12px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--navy); display: grid; place-items: center; font-size: 26px;
}
.product-card h3 { color: var(--navy); font-size: 17px; }
.product-card p { color: var(--text-muted); font-size: 13px; flex: 1; }

/* ─── Section ─── */
.section-title {
    font-size: 22px; color: var(--navy); font-weight: 800; margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
}
.section-title::before {
    content: ''; width: 4px; height: 24px; background: var(--gold); border-radius: 2px;
}

/* ─── Forms ─── */
.form-card {
    background: var(--card); border-radius: var(--radius); padding: 30px;
    box-shadow: var(--shadow-sm); max-width: 480px; margin: 30px auto;
}
.form-card h2 { color: var(--navy); margin-bottom: 20px; text-align: center; }
.field { margin-bottom: 16px; }
.field label {
    display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--text);
}
.field input, .field textarea, .field select {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
    font-size: 14px; font-family: inherit; transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--navy);
}
.field .req { color: var(--danger); }
.field-help { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ─── Flash Messages ─── */
.flash {
    padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px;
    display: flex; align-items: center; gap: 10px;
}
.flash.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.flash.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash.warn    { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.flash.info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ─── Footer ─── */
.site-footer {
    background: var(--navy); color: #cbd5e1; padding: 30px 20px; margin-top: 40px;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto; text-align: center; font-size: 13px;
}
.footer-inner .brand-logo { margin: 0 auto 12px; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; gap: 10px; }
    .main-nav { width: 100%; justify-content: center; }
    .hero { padding: 30px 20px; }
    .hero h1 { font-size: 24px; }
}
