/* ============ منصة الفروسية - الستايل الرئيسي ============ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Amiri:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* خلفيات الصفحة - أسود */
    --bg: #080808;
    --bg-2: #101010;
    --bg-light: #0a0a0a;

    /* الأسود والغامق - للنافبار والكروت */
    --black: #0f0b08;
    --dark: #1a1510;
    --dark-2: #201a14;
    --dark-3: #2a241d;

    /* الذهبي */
    --gold: #c9a227;
    --gold-light: #e5bf3d;
    --gold-dark: #8b7510;

    /* النصوص على الخلفية الفاتحة */
    --text-dark: #2d2720;
    --text-dark-muted: #6b6254;

    /* النصوص على الكروت الغامقة */
    --cream: #f5ede0;
    --white: #f8f3e9;
    --text: #e8ddcc;
    --text-muted: #a9a094;
    --gray: #8b8275;

    --red: #c0392b;
    --green: #5cb85c;
    --brown: #3a2e20;

    --shadow: 0 10px 30px rgba(58, 46, 32, 0.15);
    --shadow-gold: 0 10px 30px rgba(201, 162, 39, 0.2);
    --shadow-soft: 0 6px 20px rgba(58, 46, 32, 0.1);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.35);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    direction: rtl;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ الهيدر - Luxury Single-Row Navbar ============ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201,162,39,0.12);
}
.navbar::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229,191,61,0.7) 40%, rgba(229,191,61,0.7) 60%, transparent);
    pointer-events: none;
}

/* الحاوية الرئيسية */
.nav-wrapper {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
    height: 62px;
    gap: 0;
}

/* اللوجو */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    margin-left: 24px;
    transition: opacity 0.25s ease;
}
.logo:hover { opacity: 0.8; }

.logo-mark svg {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 0 8px rgba(201,162,39,0.55));
    transition: filter 0.3s ease;
}
.logo:hover .logo-mark svg { filter: drop-shadow(0 0 18px rgba(229,191,61,0.95)); }
.logo-icon { font-size: 32px; }

@keyframes logo-glow {
    from { filter: drop-shadow(0 0 10px rgba(229,191,61,.5)); }
    to   { filter: drop-shadow(0 0 20px rgba(229,191,61,1)); }
}

/* روابط التنقل */
.nav-menu {
    flex: 1;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    justify-content: center;
    align-items: stretch;
    height: 100%;
}
.nav-menu li a {
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: rgba(235,222,198,0.72);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color 0.22s ease;
    height: 100%;
}
.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e5bf3d, transparent);
    transition: width 0.28s ease;
}
.nav-menu li a:hover { color: #e8c84a; }
.nav-menu li a:hover::after { width: 80%; }
.nav-menu li a.active { color: #e5bf3d; }
.nav-menu li a.active::after { width: 80%; }

/* أزرار الأكشن */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* فاصل عمودي */
.nav-vdivider {
    width: 1px;
    height: 24px;
    background: rgba(201,162,39,0.2);
    margin: 0 2px;
    flex-shrink: 0;
}

/* أيقونات صغيرة (جرس، سلة، محادثة، ثيم) */
.nav-icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(201,162,39,0.14);
    background: rgba(201,162,39,0.03);
    color: rgba(229,191,61,0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.22s ease;
    flex-shrink: 0;
}
.nav-icon-btn:hover {
    background: rgba(201,162,39,0.1);
    border-color: rgba(201,162,39,0.4);
    color: #e5bf3d;
    transform: translateY(-1px);
}
.nav-icon-btn svg { color: inherit; }

/* badge للسلة والمحادثات */
.nav-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    background: #c0392b;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #000;
    line-height: 1;
}

/* legacy cart-icon for compatibility */
.cart-icon {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(201,162,39,0.14);
    background: rgba(201,162,39,0.03);
    color: rgba(229,191,61,0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.22s ease;
    flex-shrink: 0;
}
.cart-icon:hover {
    background: rgba(201,162,39,0.1);
    border-color: rgba(201,162,39,0.4);
    color: #e5bf3d;
    transform: translateY(-1px);
}
.cart-badge {
    position: absolute;
    top: -4px; left: -4px;
    background: var(--red);
    color: white;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #000;
}

/* أزرار الهيدر النصية */
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 36px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    flex-shrink: 0;
    border: none;
}
.nav-btn-outline {
    background: transparent;
    color: rgba(229,191,61,0.85);
    border: 1.5px solid rgba(201,162,39,0.35);
}
.nav-btn-outline:hover {
    background: rgba(201,162,39,0.08);
    border-color: rgba(229,191,61,0.6);
    color: #e5bf3d;
}
.nav-btn-gold {
    background: linear-gradient(135deg, #f0cc50 0%, #e5bf3d 50%, #c9a227 100%);
    color: #0d0a05;
    box-shadow: 0 3px 14px rgba(201,162,39,0.3);
}
.nav-btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(201,162,39,0.5);
    background: linear-gradient(135deg, #f4d45a 0%, #eac840 50%, #d4ab2c 100%);
    color: #0d0a05;
}
.nav-btn-ghost {
    background: rgba(201,162,39,0.07);
    color: #e5bf3d;
    border: 1px solid rgba(201,162,39,0.2);
    padding: 0 10px;
}
.nav-btn-ghost:hover { background: rgba(201,162,39,0.14); }

/* Button icons (legacy) */
.btn .btn-icon { width: 16px; height: 16px; flex-shrink: 0; stroke-width: 2.2; }
.btn-primary .btn-icon { color: #1a1510; }
.btn-outline .btn-icon { color: var(--gold-light); }

/* — زر الهامبرغر — */
.nav-toggle {
    display: none;
    background: rgba(201,162,39,0.05);
    border: 1px solid rgba(201,162,39,0.2);
    color: #e5bf3d;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: all 0.22s ease;
    flex-shrink: 0;
    margin-right: 8px;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #e5bf3d;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle:hover { background: rgba(201,162,39,0.12); border-color: rgba(201,162,39,0.4); }
.navbar.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    border: none;
    font-size: 15px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* أزرار الهيدر أصغر قليلاً لتخفيف ارتفاعه */
.nav-actions .btn {
    padding: 8px 18px;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #f1d063 0%, #e5bf3d 45%, #c9a227 100%);
    color: var(--black);
    box-shadow: 0 6px 22px rgba(229, 191, 61, 0.42),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(229, 191, 61, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background: rgba(229, 191, 61, 0.04);
    color: var(--gold-light);
    border: 1.5px solid rgba(229, 191, 61, 0.55);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(229, 191, 61, 0.1);
    border-color: var(--gold-light);
    color: var(--gold-light);
    box-shadow: 0 0 22px rgba(229, 191, 61, 0.4);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
}

/* ============ الهيرو ============ */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(270deg, rgba(15,11,8,0.95) 0%, rgba(15,11,8,0.55) 55%, rgba(15,11,8,0.25) 100%),
        url('../images/hero.jpg') center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 65%, var(--bg) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 40px;
    animation: slide-up 1s ease-out;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
    padding: 9px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 22px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 22px;
    color: var(--cream);
    letter-spacing: -1px;
}

.hero h1 span {
    display: block;
    font-family: 'Amiri', serif;
    font-style: italic;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 5px;
}

.hero p {
    font-size: 18px;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 38px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ============ الأقسام العامة ============ */
.section {
    padding: 80px 0;
    position: relative;
}

.section-alt {
    background: linear-gradient(180deg, transparent 0%, rgba(38, 32, 26, 0.4) 50%, transparent 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 55px;
}

.section-title .eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 12px;
    padding: 6px 16px;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.section-title h2 {
    font-size: 42px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 14px;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-title p {
    font-size: 16px;
    color: var(--text-dark-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============ بطاقات الفئات ============ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--dark);
    padding: 32px 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(201, 162, 39, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.category-icon {
    font-size: 50px;
    margin-bottom: 15px;
    display: block;
}

.category-card h3 {
    font-size: 17px;
    color: var(--white);
}

/* ============ بطاقات المنتجات ============ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--dark);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.15);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-card .product-name {
    color: var(--cream);
}

.product-card .product-name a {
    color: var(--cream);
}

.product-card .product-name a:hover {
    color: var(--gold);
}

.product-image {
    height: 240px;
    overflow: hidden;
    position: relative;
    background: var(--dark-2);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--red);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.product-badge.featured {
    background: var(--gold);
    color: var(--black);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 8px;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 10px;
    min-height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
}

.product-rating {
    color: var(--gold);
    font-size: 14px;
    margin-bottom: 12px;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-current {
    font-size: 22px;
    font-weight: 900;
    color: var(--gold);
}

.price-old {
    font-size: 14px;
    color: var(--gray);
    text-decoration: line-through;
}

.currency {
    font-size: 13px;
    color: var(--gray);
}

.btn-add-cart {
    background: var(--gold);
    color: var(--black);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background: var(--gold-light);
    transform: rotate(90deg);
}

/* ============ استمارات ============ */
.auth-wrapper {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background:
        linear-gradient(135deg, rgba(15,11,8,0.94) 0%, rgba(31,26,20,0.82) 100%),
        url('../images/auth-bg.jpg') center/cover fixed;
}

.auth-card {
    background: linear-gradient(145deg, rgba(38, 32, 26, 0.95) 0%, rgba(21, 17, 13, 0.98) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 24px;
    padding: 50px 45px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow), var(--shadow-gold);
    animation: slide-up 0.8s ease-out;
}

.auth-head {
    text-align: center;
    margin-bottom: 35px;
}

.auth-head .icon {
    font-size: 60px;
    display: block;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
}

.auth-head h2 {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 8px;
}

.auth-head p {
    color: var(--gray);
    font-size: 15px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--white);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(15, 11, 8, 0.65);
    color: var(--text);
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
    background: rgba(15, 11, 8, 0.9);
}

.form-control::placeholder {
    color: #8a8275;
    opacity: 1;
}

/* التيمة الفاتحة: حقول النماذج */
[data-theme='light'] .form-group label {
    color: var(--text-dark);
}
[data-theme='light'] .form-control,
[data-theme='light'] select.form-control,
[data-theme='light'] textarea.form-control {
    background: #ffffff;
    color: var(--text-dark);
    border-color: rgba(201, 162, 39, 0.35);
}
[data-theme='light'] .form-control:focus {
    background: #ffffff;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}
[data-theme='light'] .form-control::placeholder {
    color: #a9a094;
}
[data-theme='light'] select.form-control option {
    background: #ffffff;
    color: var(--text-dark);
}

select.form-control {
    cursor: pointer;
}

select.form-control option {
    background: var(--dark);
    color: var(--white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--gray);
    font-size: 14px;
}

.auth-footer a {
    color: var(--gold);
    font-weight: 700;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ============ الرسائل ============ */
.alert {
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: rgba(192, 57, 43, 0.15);
    border: 1px solid rgba(192, 57, 43, 0.5);
    color: #ff6b5b;
}

.alert-success {
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.5);
    color: #2ecc71;
}

/* ============ الفوتر ============ */
.footer {
    background: var(--black);
    padding: 60px 0 20px;
    border-top: 3px solid var(--gold);
    margin-top: 60px;
    color: var(--text);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    color: var(--gold);
    font-size: 17px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer p, .footer li {
    color: var(--gray);
    font-size: 14px;
    line-height: 2;
}

.footer ul {
    list-style: none;
}

.footer ul a:hover {
    color: var(--gold);
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.social-icons a:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: var(--gray);
    font-size: 13px;
}

/* ============ صفحة المنتج ============ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 50px 0;
}

.product-gallery {
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.product-gallery img {
    width: 100%;
    height: 550px;
    object-fit: cover;
}

.product-details h1 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 900;
}

.product-details .product-category {
    color: var(--gold-dark);
    font-weight: 700;
}

.product-details .product-rating {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--gold);
}

.product-details .product-rating span {
    color: var(--text-dark-muted) !important;
}

.product-details .price-current {
    font-size: 40px;
    color: var(--gold-dark);
}

.product-details .price-old {
    color: var(--text-dark-muted) !important;
}

.product-details .description {
    color: var(--text-dark);
    line-height: 2;
    margin: 25px 0;
    font-size: 16px;
    background: var(--bg-2);
    padding: 20px;
    border-radius: 12px;
    border-right: 3px solid var(--gold);
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 25px 0;
}

.qty-control button {
    width: 40px;
    height: 40px;
    background: var(--dark);
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
}

.qty-control input {
    width: 70px;
    text-align: center;
    padding: 10px;
    background: var(--bg-2);
    border: 1px solid rgba(201, 162, 39, 0.4);
    color: var(--text-dark);
    border-radius: 10px;
    font-size: 18px;
    font-weight: 900;
}

/* ============ السلة ============ */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 18px;
    background: var(--dark);
    border: 1px solid rgba(201, 162, 39, 0.15);
    border-radius: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.cart-item:hover {
    border-color: var(--gold);
    transform: translateX(-3px);
}

.cart-item-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.cart-item-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 10px;
}

.cart-item-name {
    font-weight: 800;
    color: var(--white);
    font-size: 17px;
    line-height: 1.4;
}

.cart-item-name:hover {
    color: var(--gold);
}

.cart-item-cat {
    color: var(--gold);
    font-size: 12px;
    margin-bottom: 4px;
}

.cart-item-price-unit {
    color: var(--gray);
    font-size: 13px;
}

.cart-item-price-unit strong {
    color: var(--gold);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
}

.qty-selector {
    display: inline-flex;
    align-items: center;
    background: var(--dark-2);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.qty-selector button {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-selector button:hover {
    background: rgba(212, 175, 55, 0.15);
}

.qty-selector button:disabled {
    color: var(--gray);
    cursor: not-allowed;
}

.qty-selector .qty-value {
    min-width: 40px;
    text-align: center;
    color: var(--white);
    font-weight: 800;
    font-size: 16px;
    padding: 0 8px;
}

.cart-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    min-height: 110px;
}

.cart-item-total {
    font-size: 22px;
    font-weight: 900;
    color: var(--gold);
}

.cart-item-total small {
    color: var(--gray);
    font-size: 11px;
    font-weight: 400;
    display: block;
}

.cart-remove-btn {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-remove-btn:hover {
    background: #e74c3c;
    color: white;
}

.cart-remove {
    background: transparent;
    border: none;
    color: var(--red);
    cursor: pointer;
    font-size: 20px;
}

/* ============ Checkout ============ */
.checkout-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark);
    border: 2px solid rgba(212, 175, 55, 0.2);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    transition: all 0.3s;
}

.step.active .step-circle {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.step.done .step-circle {
    background: #2ecc71;
    color: white;
    border-color: #2ecc71;
}

.step-label {
    color: var(--gray);
    font-size: 14px;
    font-weight: 600;
}

.step.active .step-label {
    color: var(--gold);
}

.step.done .step-label {
    color: #2ecc71;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: rgba(212, 175, 55, 0.2);
}

.step-connector.done {
    background: #2ecc71;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.checkout-section {
    background: var(--dark);
    padding: 28px;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    margin-bottom: 20px;
}

.section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.section-head .num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
}

.section-head h3 {
    color: var(--white);
    font-size: 18px;
    margin: 0;
}

.payment-options {
    display: grid;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: var(--dark-2);
    border: 2px solid rgba(212, 175, 55, 0.12);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: rgba(212, 175, 55, 0.35);
}

.payment-option.selected {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

.payment-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--gold);
}

.payment-option .icon {
    font-size: 32px;
    width: 50px;
    text-align: center;
}

.payment-option .info strong {
    color: var(--white);
    display: block;
    font-size: 15px;
    margin-bottom: 3px;
}

.payment-option .info span {
    color: var(--gray);
    font-size: 12px;
}

.checkout-summary {
    background: var(--dark);
    padding: 28px;
    border-radius: 18px;
    border: 1px solid rgba(201, 162, 39, 0.25);
    position: sticky;
    top: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.order-items-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    max-height: 300px;
    overflow-y: auto;
}

.order-item-mini {
    display: grid;
    grid-template-columns: 55px 1fr auto;
    gap: 12px;
    align-items: center;
}

.order-item-mini img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 10px;
}

.order-item-mini .name {
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.order-item-mini .meta {
    color: var(--gray);
    font-size: 11px;
    margin-top: 3px;
}

.order-item-mini .line-total {
    color: var(--gold);
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
}

/* ============ Order Success ============ */
.success-wrapper {
    text-align: center;
    padding: 60px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.success-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    animation: bounce-in 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 15px 50px rgba(46, 204, 113, 0.4);
}

@keyframes bounce-in {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-wrapper h1 {
    color: var(--gold);
    font-size: 38px;
    margin-bottom: 15px;
}

.success-wrapper p {
    color: #ccc;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 25px;
}

.order-number-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px dashed var(--gold);
    padding: 20px;
    border-radius: 15px;
    margin: 25px auto;
    max-width: 400px;
}

.order-number-box .lbl {
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 5px;
}

.order-number-box .num {
    color: var(--gold);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
    font-family: monospace;
}

.order-status-timeline {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    position: relative;
}

.order-status-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 30px;
    left: 30px;
    height: 2px;
    background: rgba(212, 175, 55, 0.15);
}

.timeline-step {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.timeline-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark-2);
    border: 2px solid rgba(212, 175, 55, 0.2);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.timeline-step.active .timeline-circle {
    background: var(--gold);
    border-color: var(--gold);
}

.timeline-step .lbl {
    font-size: 12px;
    color: var(--gray);
}

.timeline-step.active .lbl {
    color: var(--gold);
    font-weight: 700;
}

/* ============ Order Detail ============ */
.order-detail-card {
    background: var(--dark);
    padding: 30px;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    margin-bottom: 20px;
}

.order-head-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.order-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}

.order-row:last-child { border-bottom: none; }

.order-row img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

/* ============ Toast ============ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #1e1e1e 0%, #0f0f0f 100%);
    border: 1px solid var(--gold);
    border-right: 4px solid var(--gold);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 420px;
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-content strong {
    display: block;
    color: var(--gold);
    font-size: 15px;
    margin-bottom: 2px;
}

.toast-content span {
    color: #ccc;
    font-size: 13px;
    font-weight: 400;
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
}

.toast-close:hover {
    color: var(--red);
}

.toast.error {
    border-color: #e74c3c;
    border-right-color: #e74c3c;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(231, 76, 60, 0.3);
}

.toast.error .toast-content strong { color: #e74c3c; }

.cart-summary {
    background: var(--dark);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #d0d0d0;
}

.summary-row.total {
    padding-top: 15px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 22px;
    color: var(--gold);
    font-weight: 900;
}

/* ============ ستات ============ */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.stat-box {
    text-align: center;
    padding: 32px 24px;
    background: var(--dark);
    border-radius: 16px;
    border: 1px solid rgba(201, 162, 39, 0.15);
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-box .num {
    font-size: 48px;
    font-weight: 900;
    color: var(--gold);
    display: block;
}

.stat-box .lbl {
    color: var(--gray);
    margin-top: 10px;
    font-size: 15px;
}

/* ============ صفحة الحساب ============ */
.account-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 40px 0;
}

.account-sidebar {
    background: var(--dark);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    height: fit-content;
}

.avatar-big {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--black);
    margin: 0 auto 20px;
    font-weight: 900;
    border: 3px solid var(--gold);
    box-shadow: var(--shadow-gold);
}

.account-sidebar h3 {
    text-align: center;
    color: var(--white);
    margin-bottom: 5px;
}

.account-sidebar .email {
    text-align: center;
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 25px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    color: var(--white);
    font-weight: 600;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
}

.account-content {
    background: var(--dark);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.account-content h2 {
    color: var(--gold);
    margin-bottom: 30px;
    font-size: 28px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-item {
    background: var(--dark-2);
    padding: 20px;
    border-radius: 12px;
    border-right: 3px solid var(--gold);
}

.info-item label {
    color: var(--gray);
    font-size: 13px;
    display: block;
    margin-bottom: 6px;
}

.info-item .val {
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
}

/* ============ الفلاتر ============ */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    padding: 40px 0;
}

.filter-sidebar {
    background: var(--dark);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-sidebar h3 {
    color: var(--gold);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.filter-sidebar ul {
    list-style: none;
}

.filter-sidebar li a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #ccc;
    margin-bottom: 5px;
}

.filter-sidebar li a:hover, .filter-sidebar li a.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
}

.page-header {
    padding: 65px 0 45px;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(15,11,8,0.92) 0%, rgba(26,21,16,0.85) 100%),
        url('../images/page-header.jpg') center/cover;
    border-bottom: 3px solid var(--gold);
    color: var(--cream);
}

.page-header h1 {
    font-size: 44px;
    color: var(--gold-light);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    font-weight: 900;
}

.page-header p {
    color: var(--text);
    font-size: 16px;
}

.empty-state {
    text-align: center;
    padding: 60px 30px;
    color: var(--text-dark-muted);
    background: var(--bg-light);
    border-radius: 20px;
    border: 1px dashed rgba(201, 162, 39, 0.3);
}

.empty-state h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-state .big-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.6;
}

/* ============ بطاقات المراكز ============ */
.centers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.center-card {
    background: var(--dark);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.4s;
    position: relative;
}

.center-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.center-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.center-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.center-card:hover .center-image img {
    transform: scale(1.08);
}

.center-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 60%);
}

.center-city-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(10, 10, 10, 0.85);
    color: var(--gold);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    z-index: 2;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.center-featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold);
    color: var(--black);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 900;
    z-index: 2;
}

.center-info {
    padding: 25px;
}

.center-info h3 {
    font-size: 21px;
    color: var(--white);
    margin-bottom: 8px;
}

.center-info .desc {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.center-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.center-rating {
    color: var(--gold);
    font-weight: 700;
    font-size: 14px;
}

.center-rating small {
    color: var(--gray);
    font-weight: 400;
}

/* ============ صفحة المركز ============ */
.center-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
    margin-bottom: 30px;
}

.center-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.center-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.3) 100%);
}

.center-hero-info {
    position: absolute;
    bottom: 30px;
    right: 40px;
    z-index: 2;
}

.center-hero-info h1 {
    font-size: 42px;
    color: var(--gold);
    margin-bottom: 10px;
}

.center-hero-info .meta {
    color: var(--white);
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 15px;
}

.center-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 20px 0 50px;
}

.services-list {
    display: grid;
    gap: 15px;
}

.service-item {
    background: var(--dark);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 15px;
    align-items: center;
    transition: all 0.3s;
}

.service-item:hover {
    border-color: var(--gold);
    background: var(--dark-2);
}

.service-icon {
    font-size: 36px;
    text-align: center;
}

.service-info h4 {
    color: var(--white);
    font-size: 17px;
    margin-bottom: 5px;
}

.service-info p {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.6;
}

.service-info .duration {
    color: var(--gold);
    font-size: 12px;
    margin-top: 5px;
}

.service-price {
    text-align: left;
}

.service-price .price {
    font-size: 22px;
    font-weight: 900;
    color: var(--gold);
}

.service-price .btn {
    margin-top: 8px;
    padding: 8px 16px;
    font-size: 13px;
}

.center-sidebar {
    background: var(--dark);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.center-sidebar h3 {
    color: var(--gold);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    color: #ccc;
    font-size: 14px;
}

.contact-row:last-child { border-bottom: none; }

.contact-row .icon {
    font-size: 20px;
    width: 32px;
}

/* ============ فعاليات ============ */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.event-card {
    background: var(--dark);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.4s;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.event-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.event-type-badge.competition { background: #e74c3c; color: white; }
.event-type-badge.event { background: var(--gold); color: var(--black); }
.event-type-badge.workshop { background: #3498db; color: white; }

.event-date-box {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(10,10,10,0.9);
    color: var(--gold);
    padding: 10px 15px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 2;
}

.event-date-box .day {
    font-size: 24px;
    font-weight: 900;
    display: block;
    line-height: 1;
}

.event-date-box .month {
    font-size: 12px;
    color: var(--white);
    margin-top: 4px;
}

.event-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-info h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 10px;
}

.event-info .desc {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #ccc;
    font-size: 13px;
    margin-bottom: 15px;
}

.event-meta div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.event-price {
    color: var(--gold);
    font-size: 20px;
    font-weight: 900;
}

.event-price.free {
    color: #2ecc71;
}

/* ============ العروض ============ */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.offer-card {
    background: var(--dark);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.15);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.offer-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.offer-image {
    height: 100%;
    min-height: 220px;
    overflow: hidden;
    position: relative;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-discount {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--red);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    border: 3px solid var(--gold);
    z-index: 2;
}

.offer-discount .pct {
    font-size: 22px;
    line-height: 1;
}

.offer-discount .lbl {
    font-size: 10px;
    margin-top: 2px;
}

.offer-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.offer-content h3 {
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.offer-content p {
    color: #ccc;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.offer-expiry {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 12px;
}

.offer-expiry strong {
    color: var(--white);
}

/* ============ نموذج الحجز ============ */
.booking-card {
    background: var(--dark);
    padding: 35px;
    border-radius: 22px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    max-width: 650px;
    margin: 30px auto;
}

.booking-summary {
    background: var(--dark-2);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border-right: 4px solid var(--gold);
}

.booking-summary h4 {
    color: var(--gold);
    margin-bottom: 10px;
}

.booking-summary p {
    color: #ccc;
    margin-bottom: 5px;
    font-size: 14px;
}

/* ============ تبويبات ============ */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding-bottom: 0;
}

.tabs .tab {
    padding: 12px 22px;
    color: var(--gray);
    font-weight: 700;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.3s;
}

.tabs .tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.tabs .tab:hover {
    color: var(--gold);
}

/* ============ جدول الحجوزات ============ */
.bookings-table {
    width: 100%;
    background: var(--dark-2);
    border-radius: 15px;
    overflow: hidden;
    border-collapse: collapse;
}

.bookings-table th {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    padding: 15px;
    text-align: right;
    font-weight: 700;
}

.bookings-table td {
    padding: 15px;
    color: #ccc;
    border-top: 1px solid rgba(212, 175, 55, 0.08);
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.status-pending { background: rgba(241, 196, 15, 0.2); color: #f39c12; }
.status-confirmed { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.status-completed { background: rgba(52, 152, 219, 0.2); color: #3498db; }
.status-cancelled { background: rgba(231, 76, 60, 0.2); color: #e74c3c; }

/* ============ الاستجابة ============ */

/* شاشات متوسطة — ضغط النصوص */
@media (max-width: 1280px) {
    .nav-menu li a { padding: 0 9px; font-size: 12.5px; }
}
@media (max-width: 1100px) {
    .nav-wrapper { padding: 0 20px; }
    .nav-menu li a { padding: 0 7px; font-size: 12px; }
    .nav-btn span { display: none; }
    .nav-btn { padding: 0 10px; }
    .nav-vdivider { display: none; }
}

/* موبايل — هامبرغر */
@media (max-width: 900px) {
    .hero h1 { font-size: 42px; }
    .nav-wrapper { padding: 0 16px; height: 58px; }
    .nav-toggle { display: inline-flex; }
    .logo { margin-left: 0; }
    .logo-mark svg { width: 34px; height: 34px; }
    .logo-text-main { font-size: 19px; letter-spacing: 4px; }
    .logo-text-sub { display: none; }

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        background: rgba(0, 0, 0, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(201,162,39,0.15);
        border-bottom: 1px solid rgba(201,162,39,0.15);
        padding: 0 16px;
        gap: 2px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.34s ease, padding 0.34s ease;
        box-shadow: 0 12px 28px rgba(0,0,0,0.6);
        z-index: 998;
        justify-content: flex-start;
    }
    .navbar.open .nav-menu {
        max-height: 620px;
        padding: 10px 16px 16px;
    }
    .nav-menu li a {
        height: auto;
        padding: 11px 14px;
        border-radius: 8px;
        font-size: 14px;
        white-space: normal;
        width: 100%;
    }
    .nav-menu li a:hover,
    .nav-menu li a.active { background: rgba(201,162,39,0.07); }
    .nav-menu li a::after { display: none; }

    .nav-btn span { display: inline; }
    .nav-btn { padding: 0 13px; }
    .nav-vdivider { display: flex; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .product-detail { grid-template-columns: 1fr; }
    .shop-layout, .account-wrapper, .center-layout { grid-template-columns: 1fr; }
    .info-grid, .form-row { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 80px 1fr; }
    .section-title h2 { font-size: 32px; }
    .offer-card { grid-template-columns: 1fr; }
    .center-hero-info h1 { font-size: 28px; }
    .center-hero-info { right: 20px; }
}
@media (max-width: 560px) {
    .nav-actions { gap: 5px; }
    .nav-actions .noti-wrapper,
    .nav-icon-btn[id="themeToggle"] { display: none; }
    .nav-btn-outline { display: none; }
    .logo-text-main { font-size: 17px; letter-spacing: 3px; }
    .logo-mark svg { width: 30px; height: 30px; }
}

/* ============ صفحة المحادثات ============ */
.chat-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 20px;
    height: calc(100vh - 180px);
    min-height: 600px;
    max-height: 800px;
}

/* قائمة المحادثات */
.chat-list-panel {
    background: var(--dark);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-list-header {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--black);
}

.chat-list-header h3 {
    color: var(--gold);
    font-size: 18px;
    margin: 0;
}

.chat-list-count {
    background: var(--gold);
    color: var(--dark);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.chat-list {
    flex: 1;
    overflow-y: auto;
}

.chat-list::-webkit-scrollbar { width: 6px; }
.chat-list::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

.chat-list-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.08);
    color: var(--cream);
    transition: background 0.2s;
    align-items: center;
}

.chat-list-item:hover {
    background: rgba(201, 162, 39, 0.08);
}

.chat-list-item.active {
    background: rgba(201, 162, 39, 0.15);
    border-right: 3px solid var(--gold);
}

.chat-list-item img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    flex-shrink: 0;
}

.chat-list-item-info {
    flex: 1;
    min-width: 0;
}

.chat-list-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.chat-list-item-top strong {
    color: var(--gold);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.chat-unread-badge {
    background: var(--red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-list-item-preview {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.chat-empty-list {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}

.chat-empty-list p {
    margin: 15px 0;
}

/* نافذة المحادثة الرئيسية */
.chat-main-panel {
    background: var(--bg-2);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-dark-muted);
    padding: 40px;
    text-align: center;
}

.chat-empty-state h2 {
    color: var(--text-dark);
    margin: 20px 0 10px;
}

.chat-conv-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--dark);
    border-bottom: 2px solid var(--gold);
    color: var(--cream);
}

.chat-conv-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.chat-conv-header h3 {
    color: var(--gold);
    margin: 0;
    font-size: 17px;
}

.chat-conv-header small {
    color: var(--text-muted);
    font-size: 12px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

.chat-no-messages {
    text-align: center;
    color: var(--text-dark-muted);
    padding: 40px;
}

.chat-msg {
    display: flex;
    max-width: 75%;
}

.chat-msg.mine {
    align-self: flex-start;
}

.chat-msg.theirs {
    align-self: flex-end;
}

.chat-bubble {
    padding: 10px 14px 22px;
    border-radius: 14px;
    line-height: 1.6;
    font-size: 14px;
    word-wrap: break-word;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.chat-msg.mine .chat-bubble {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--dark);
    font-weight: 600;
    border-bottom-right-radius: 4px;
}

.chat-msg.theirs .chat-bubble {
    background: var(--bg);
    color: var(--text-dark);
    border: 1px solid #e8e0d0;
    border-bottom-left-radius: 4px;
}

.chat-time {
    position: absolute;
    bottom: 5px;
    left: 10px;
    font-size: 10px;
    opacity: 0.7;
}

.chat-msg.mine .chat-time { color: rgba(0,0,0,0.6); }
.chat-msg.theirs .chat-time { color: var(--text-dark-muted); }

.chat-form {
    display: flex;
    gap: 10px;
    padding: 14px;
    background: var(--bg);
    border-top: 1px solid #e8e0d0;
    align-items: flex-end;
}

#chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d4cab5;
    border-radius: 16px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    outline: none;
    background: var(--bg-2);
    color: var(--text-dark);
    resize: none;
    min-height: 42px;
    max-height: 120px;
    line-height: 1.5;
    transition: border-color 0.2s;
}

#chat-input:focus { border-color: var(--gold); }

.chat-form .btn {
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .chat-layout {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
    }
    .chat-list-panel {
        max-height: 300px;
    }
    .chat-main-panel {
        min-height: 500px;
    }
    .chat-msg {
        max-width: 90%;
    }
}

/* ============ ميزات الدكتور: خيول/عيادات/مقالات ============ */

/* كروت الخيول */
.horses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.horse-card {
    background: var(--dark);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 16px;
    overflow: hidden;
    color: var(--cream);
    transition: transform 0.3s, box-shadow 0.3s;
}

.horse-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
    border-color: var(--gold);
}

.horse-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-2);
}

.horse-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.horse-badge-pure {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--dark);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(201,162,39,0.4);
}

.horse-card-body {
    padding: 18px;
}

.horse-card-body h3 {
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 20px;
}

.horse-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 15px;
}

.horse-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(201,162,39,0.15);
}

.horse-stat {
    text-align: center;
}

.horse-stat strong {
    display: block;
    color: var(--gold);
    font-size: 20px;
    font-weight: 900;
}

.horse-stat small {
    color: var(--text-muted);
    font-size: 11px;
}

/* هيرو صفحة الخيل */
.horse-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--black) 100%);
    padding: 40px 0;
    border-bottom: 3px solid var(--gold);
}

.horse-hero-inner {
    display: flex;
    gap: 30px;
    align-items: center;
}

.horse-hero-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold);
    box-shadow: var(--shadow-gold);
}

.horse-hero-info h1 {
    color: var(--gold);
    font-size: 36px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.horse-hero-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    color: var(--cream);
    margin-top: 10px;
    font-size: 15px;
}

/* تبويبات */
.horse-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    border-bottom: 2px solid rgba(201,162,39,0.2);
    padding-bottom: 2px;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--gold);
}

.tab-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fade-in 0.3s;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* كروت المعلومات */
.info-card {
    background: var(--bg);
    border: 1px solid rgba(201,162,39,0.15);
    border-radius: 14px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
}

.info-card h3 {
    color: var(--gold);
    margin-bottom: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    color: var(--text-dark);
}

.info-grid > div {
    padding: 10px 14px;
    background: var(--bg-2);
    border-radius: 8px;
}

/* نموذج inline للإضافة */
.inline-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    align-items: end;
}

.inline-form textarea,
.inline-form input,
.inline-form select {
    grid-column: span 2;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d4cab5;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    background: var(--bg-2);
    color: var(--text-dark);
}

.inline-form > input,
.inline-form > select {
    grid-column: span 1;
}

.inline-form textarea {
    grid-column: 1 / -1;
    min-height: 60px;
    resize: vertical;
}

.inline-form button {
    grid-column: 1 / -1;
    justify-self: start;
}

/* سجل سجلات */
.records-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.record-card {
    background: var(--bg);
    border: 1px solid rgba(201,162,39,0.15);
    border-radius: 12px;
    padding: 16px;
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 15px;
    align-items: start;
    box-shadow: var(--shadow-soft);
}

.record-type {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    padding: 5px;
}

.record-body h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.record-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    color: var(--text-dark-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.record-body p {
    color: var(--text-dark);
    line-height: 1.7;
}

.btn-icon-delete {
    background: transparent;
    border: 1px solid var(--red);
    color: var(--red);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-delete:hover {
    background: var(--red);
    color: white;
}

.empty-small {
    text-align: center;
    padding: 30px;
    color: var(--text-dark-muted);
    background: var(--bg-2);
    border-radius: 10px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dark-muted);
}

.empty-state h2 {
    color: var(--text-dark);
    margin: 15px 0 10px;
}

.empty-state p {
    margin-bottom: 20px;
}

/* عيادات */
.clinics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.clinic-card {
    background: var(--bg);
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-soft);
}

.clinic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--gold);
}

.clinic-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--bg-2);
}

.clinic-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clinic-badge {
    position: absolute;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

.clinic-badge-emergency {
    top: 10px;
    right: 10px;
    background: var(--red);
}

.clinic-badge-home {
    top: 10px;
    left: 10px;
    background: var(--green);
}

.clinic-card-body {
    padding: 18px;
}

.clinic-card-body h3 {
    color: var(--text-dark);
    margin-bottom: 8px;
}

.clinic-vet, .clinic-spec {
    color: var(--text-dark-muted);
    font-size: 13px;
    margin-bottom: 5px;
}

.clinic-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-dark-muted);
    font-size: 12px;
    margin: 10px 0;
}

.clinic-fee {
    padding: 10px;
    background: rgba(201,162,39,0.08);
    border-radius: 8px;
    color: var(--text-dark);
    text-align: center;
    margin: 10px 0;
    font-size: 14px;
}

.clinic-fee strong {
    color: var(--gold);
}

.clinic-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

/* صفحة تفاصيل العيادة */
.clinic-hero {
    position: relative;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.clinic-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.clinic-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--black) 0%, transparent 60%);
    z-index: 1;
}

.clinic-hero-inner {
    position: relative;
    z-index: 2;
    padding-bottom: 30px;
    color: var(--cream);
}

.clinic-hero-inner h1 {
    color: var(--gold);
    font-size: 36px;
    margin-bottom: 10px;
}

.clinic-hero-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 15px;
}

.clinic-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 25px;
}

/* فلترة */
.filter-bar {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg-2);
    border-radius: 12px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-bar select,
.filter-bar input {
    padding: 10px 14px;
    border: 1px solid #d4cab5;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    background: var(--bg);
    color: var(--text-dark);
}

.filter-count {
    color: var(--gold);
    font-weight: 700;
    margin-right: auto;
}

/* المواعيد */
.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.appointment-card {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 20px;
    padding: 20px;
    background: var(--bg);
    border-radius: 14px;
    border: 1px solid rgba(201,162,39,0.15);
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.appointment-date {
    text-align: center;
    background: var(--dark);
    color: var(--gold);
    border-radius: 12px;
    padding: 14px 10px;
}

.app-day {
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.app-month {
    font-size: 12px;
    color: var(--cream);
    margin-top: 5px;
}

.app-time {
    font-size: 11px;
    color: var(--cream);
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(201,162,39,0.3);
}

.appointment-info h3 {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

/* المقالات */
.article-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.article-cat {
    background: var(--bg);
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
    color: var(--text-dark);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.article-cat:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: var(--shadow-soft);
}

.article-cat.active {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--dark);
    border-color: var(--gold);
}

.article-cat .cat-icon {
    font-size: 28px;
}

.article-cat strong {
    font-size: 14px;
}

.article-cat small {
    font-size: 11px;
    opacity: 0.8;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.article-card {
    background: var(--bg);
    border: 1px solid rgba(201,162,39,0.15);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--gold);
}

.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--bg-2);
}

.article-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-badge {
    display: inline-block;
    background: rgba(201,162,39,0.15);
    color: var(--gold-dark);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    width: fit-content;
}

.article-card h3 {
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.article-card p {
    color: var(--text-dark-muted);
    font-size: 13px;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 10px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-dark-muted);
    padding-top: 10px;
    border-top: 1px solid rgba(201,162,39,0.1);
}

.article-read {
    color: var(--gold);
    font-weight: 700;
}

/* مقال كامل */
.article-full {
    background: var(--bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.article-full-meta {
    display: flex;
    gap: 20px;
    color: var(--text-dark-muted);
    font-size: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-full-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 25px;
}

.article-excerpt {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-dark);
    padding: 20px;
    background: rgba(201,162,39,0.08);
    border-right: 4px solid var(--gold);
    border-radius: 10px;
    margin-bottom: 25px;
}

.article-content {
    font-size: 16px;
    line-height: 2;
    color: var(--text-dark);
}

/* Page header */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--black) 100%);
    padding: 50px 0;
    text-align: center;
    border-bottom: 3px solid var(--gold);
}

.page-header h1 {
    color: var(--gold);
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--cream);
    font-size: 16px;
}

/* نموذج بطاقة */
.form-card {
    background: var(--bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(201,162,39,0.15);
}

.form-card .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.form-card .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-card label {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

.form-card input,
.form-card select,
.form-card textarea {
    padding: 10px 14px;
    border: 1px solid #d4cab5;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    background: var(--bg-2);
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    border-color: var(--gold);
}

.booking-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.booking-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.booking-form label {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    padding: 10px 14px;
    border: 1px solid #d4cab5;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    background: var(--bg-2);
    outline: none;
}

.booking-form input:focus,
.booking-form textarea:focus,
.booking-form select:focus { border-color: var(--gold); }

/* Alerts */
.alert {
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-error { background: #fee; color: var(--red); border: 1px solid var(--red); }
.alert-success { background: #efe; color: var(--green); border: 1px solid var(--green); }
.alert-info { background: #eef5ff; color: #2c5aa0; border: 1px solid #2c5aa0; }

@media (max-width: 768px) {
    .horse-hero-inner { flex-direction: column; text-align: center; }
    .clinic-layout { grid-template-columns: 1fr; }
    .appointment-card { grid-template-columns: 1fr; }
    .article-categories { grid-template-columns: repeat(3, 1fr); }
    .record-card { grid-template-columns: 50px 1fr; }
    .record-card > form { grid-column: 1 / -1; justify-self: end; }
}

/* ============ سوق الخيول ============ */
.horses-market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

.market-horse-card {
    background: var(--bg);
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: 16px;
    overflow: hidden;
    color: var(--text-dark);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    box-shadow: var(--shadow-soft);
}

.market-horse-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--gold);
}

.market-horse-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-2);
}

.market-horse-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.market-horse-card:hover .market-horse-image img {
    transform: scale(1.08);
}

.market-horse-price {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--dark);
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.market-horse-body {
    padding: 18px;
}

.market-horse-body h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 19px;
}

.market-horse-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(201,162,39,0.1);
}

.market-badge {
    display: inline-block;
    background: rgba(201,162,39,0.15);
    color: var(--gold-dark);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.market-badge-big {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--dark);
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(201,162,39,0.3);
}

/* صفحة الخيل العامة */
.horse-public-hero {
    background: linear-gradient(180deg, var(--dark) 0%, var(--black) 100%);
    padding: 40px 0;
    border-bottom: 3px solid var(--gold);
    color: var(--cream);
}

.horse-public-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.horse-public-gallery {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-gold);
    border: 3px solid var(--gold);
}

.horse-public-gallery img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.horse-public-info h1 {
    color: var(--gold);
    font-size: 40px;
    margin-bottom: 15px;
}

.horse-public-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 15px;
    margin-bottom: 20px;
}

.horse-price-box {
    background: rgba(201,162,39,0.15);
    border: 2px solid var(--gold);
    border-radius: 14px;
    padding: 18px 22px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.horse-price-box span {
    font-size: 14px;
    color: var(--cream);
}

.horse-price-box strong {
    font-size: 32px;
    color: var(--gold);
    font-weight: 900;
}

.horse-contact-box {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(201,162,39,0.3);
    border-radius: 14px;
    padding: 18px 22px;
    margin-top: 15px;
}

.horse-contact-box h3 {
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 16px;
}

.horse-contact-box a {
    color: var(--gold-light);
}

/* شهادات في الصفحة العامة */
.certs-public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.cert-public-card {
    background: var(--bg-2);
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cert-public-type {
    padding: 10px 14px;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.cert-public-body {
    padding: 15px;
    color: var(--text-dark);
}

.cert-public-body h4 {
    color: var(--text-dark);
    margin-bottom: 8px;
}

.cert-public-body > div {
    font-size: 13px;
    color: var(--text-dark-muted);
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .horse-public-hero-grid { grid-template-columns: 1fr; }
    .horse-public-gallery img { height: 280px; }
    .horse-public-info h1 { font-size: 28px; }
}

/* ============ KHYOL — اللوغو ============ */
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 18px rgba(229, 191, 61, 0.6));
    animation: logo-glow 3.4s ease-in-out infinite alternate;
}
.logo-mark svg {
    width: 36px;
    height: 36px;
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 4px;
}
.logo-text-main {
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    letter-spacing: 6px;
    font-size: 25px;
    background: linear-gradient(135deg, #f1d063 0%, #e5bf3d 55%, #c9a227 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-text-sub {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 10.5px;
    color: rgba(201,162,39,0.62);
    letter-spacing: 6px;
    margin-top: 0;
}
.footer .logo-text-main { font-size: 20px; }
.footer .logo-text-sub { font-size: 10px; }
.footer .logo-mark svg { width: 38px; height: 38px; }

/* ============ زر تبديل المظهر ============ */
.theme-toggle {
    background: rgba(201,162,39,0.04);
    border: 1px solid rgba(201,162,39,0.18);
    color: rgba(229,191,61,0.78);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    position: relative;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: rgba(201,162,39,0.1);
    border-color: rgba(201,162,39,0.42);
    color: #e5bf3d;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(201,162,39,0.18);
}
.theme-icon { display: none; }
[data-theme='dark'] .theme-icon-light { display: inline; }
[data-theme='light'] .theme-icon-dark { display: inline; }

/* ============ زر الإشعارات + الدروب-داون ============ */
.noti-wrapper { position: relative; }
.noti-btn {
    background: rgba(201,162,39,0.04);
    border: 1px solid rgba(201,162,39,0.18);
    color: rgba(229,191,61,0.78);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    position: relative;
    flex-shrink: 0;
}
.noti-btn:hover {
    background: rgba(201,162,39,0.1);
    border-color: rgba(201,162,39,0.42);
    color: #e5bf3d;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(201,162,39,0.18);
}
.noti-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #060402;
    line-height: 1;
}
.noti-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 340px;
    max-height: 460px;
    background: var(--dark);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 16px;
    box-shadow: var(--shadow-dark);
    overflow: hidden;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    animation: noti-pop 0.18s ease-out;
}
.noti-dropdown[hidden] { display: none; }
@keyframes noti-pop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.noti-dropdown-head {
    padding: 14px 18px;
    background: var(--dark-2);
    border-bottom: 1px solid rgba(212,175,55,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--cream);
}
.noti-mark {
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
}
.noti-dropdown-list {
    overflow-y: auto;
    flex: 1;
}
.noti-empty {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}
.noti-item {
    display: flex;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(212,175,55,0.08);
    color: var(--text);
    transition: background 0.2s;
}
.noti-item:hover { background: rgba(212,175,55,0.06); }
.noti-item.unread { background: rgba(212,175,55,0.05); border-right: 3px solid var(--gold); }
.noti-item-icon { font-size: 22px; flex-shrink: 0; }
.noti-item-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.noti-item-body strong { color: var(--cream); font-size: 14px; }
.noti-item-body small { color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.noti-item-body em { color: var(--gold); font-size: 11px; font-style: normal; margin-top: 2px; }

/* ============ كروت الإشعارات العائمة على الهيرو ============ */
.hero { position: relative; }
.hero-floating-notis {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 40px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 280px;
    pointer-events: none;
}
.hero-noti-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(15,11,8,0.78);
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 30px;
    color: var(--cream);
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-dark);
    pointer-events: auto;
    width: fit-content;
    animation: noti-float 5.5s ease-in-out infinite;
}
.hero-noti-card:nth-child(2) { animation-delay: 0.4s; }
.hero-noti-card:nth-child(3) { animation-delay: 0.8s; }
.hero-noti-card:nth-child(4) { animation-delay: 1.2s; }
.hero-noti-card .noti-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse-dot 1.8s ease-in-out infinite;
}
.hero-noti-card .noti-emoji { font-size: 18px; }
@keyframes noti-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}
@media (max-width: 1100px) {
    .hero-floating-notis { display: none; }
}

/* ============ التيمة الفاتحة ============ */
[data-theme='light'] {
    --bg: #ffffff;
    --bg-2: #f6f1e6;
    --bg-light: #ffffff;
    --black: #f6f1e6;
    --dark: #ffffff;
    --dark-2: #f6f1e6;
    --dark-3: #ece3cf;
    --cream: #2d2720;
    --white: #2d2720;
    --text: #2d2720;
    --text-muted: #6b6254;
    --gray: #8b8275;
    --text-dark: #2d2720;
    --text-dark-muted: #6b6254;
    --shadow-dark: 0 10px 30px rgba(58, 46, 32, 0.18);
}
[data-theme='light'] body { background: #fbf8f0; }
[data-theme='light'] .navbar {
    background: rgba(255, 252, 245, 0.95);
    border-bottom-color: rgba(201,162,39,0.35);
    box-shadow: 0 2px 16px rgba(58,46,32,0.08);
}
[data-theme='light'] .nav-menu li a { color: #3a2e20; }
[data-theme='light'] .nav-menu li a:hover,
[data-theme='light'] .nav-menu li a.active { color: var(--gold-dark); }
[data-theme='light'] .nav-icon-btn,
[data-theme='light'] .cart-icon,
[data-theme='light'] .theme-toggle,
[data-theme='light'] .noti-btn {
    color: #5a4a30;
    border-color: rgba(201,162,39,0.3);
    background: rgba(201,162,39,0.04);
}
[data-theme='light'] .nav-icon-btn:hover,
[data-theme='light'] .cart-icon:hover,
[data-theme='light'] .noti-btn:hover {
    background: rgba(201,162,39,0.1);
    color: var(--gold-dark);
}
[data-theme='light'] .nav-btn-outline { color: #5a4a30; border-color: rgba(201,162,39,0.4); }
[data-theme='light'] .nav-btn-outline:hover { background: rgba(201,162,39,0.08); color: var(--gold-dark); }
[data-theme='light'] .nav-toggle span { background: #3a2e20; }
[data-theme='light'] .nav-toggle { border-color: rgba(58,46,32,0.25); background: rgba(58,46,32,0.04); }
[data-theme='light'] .noti-dropdown {
    background: #ffffff;
    border-color: rgba(201,162,39,0.35);
    box-shadow: 0 20px 40px rgba(58,46,32,0.18);
}
[data-theme='light'] .noti-dropdown-head { background: #f6f1e6; color: #2d2720; }
[data-theme='light'] .noti-item-body strong { color: #2d2720; }
[data-theme='light'] .footer { background: #f6f1e6; color: #2d2720; }
[data-theme='light'] .hero-noti-card {
    background: rgba(255,255,255,0.9);
    color: #2d2720;
    border-color: rgba(201,162,39,0.5);
    box-shadow: 0 8px 22px rgba(58,46,32,0.12);
}
[data-theme='light'] .category-card,
[data-theme='light'] .center-card,
[data-theme='light'] .horse-card,
[data-theme='light'] .clinic-card,
[data-theme='light'] .product-card,
[data-theme='light'] .event-card { background: #ffffff; border-color: rgba(201,162,39,0.2); }
[data-theme='light'] .category-card h3,
[data-theme='light'] .center-info h3,
[data-theme='light'] .horse-info h3,
[data-theme='light'] .product-name a { color: #2d2720; }

/* تمييز الرابط النشط في النافبار */
.nav-menu li a.active { color: var(--gold); }
.nav-menu li a.active::after { width: 80%; }
.btn-admin { border-color: #e74c3c !important; color: #e74c3c !important; }
[data-theme='light'] .btn-admin { color: #c0392b !important; }

/* ============ نموذج الحجز المُحسّن ============ */
.level-pills, .skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.skills-grid { gap: 8px; }
.level-pill, .skill-chip {
    cursor: pointer;
    user-select: none;
}
.level-pill input, .skill-chip input { display: none; }
.level-pill span, .skill-chip span {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 30px;
    border: 1.5px solid rgba(201,162,39,0.35);
    background: rgba(201,162,39,0.05);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
}
.level-pill.active span, .skill-chip.active span {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--black);
    border-color: var(--gold);
    box-shadow: 0 4px 12px rgba(201,162,39,0.35);
    transform: translateY(-1px);
}
.level-pill:hover span, .skill-chip:hover span { border-color: var(--gold); }
.weather-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(46, 134, 222, 0.06);
    border: 1px solid rgba(46, 134, 222, 0.25);
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-dark);
    font-weight: 600;
}
.weather-opt input { width: 18px; height: 18px; accent-color: var(--gold); }
.booking-card {
    max-width: 760px;
    margin: 30px auto;
    padding: 35px;
    background: var(--dark);
    border-radius: 20px;
    border: 1px solid rgba(201, 162, 39, 0.25);
    box-shadow: var(--shadow-dark);
}

/* بطاقة المزايا */
.perks-card {
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 35px;
    background: var(--dark);
    border-radius: 20px;
    border: 1px solid rgba(201, 162, 39, 0.25);
    box-shadow: var(--shadow-dark);
}
.perks-card h2 {
    color: var(--gold);
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
}
.perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.perk {
    text-align: center;
    padding: 20px 15px;
    background: rgba(201, 162, 39, 0.06);
    border: 1px solid rgba(201, 162, 39, 0.15);
    border-radius: 14px;
    transition: all 0.3s ease;
}
.perk:hover {
    background: rgba(201, 162, 39, 0.1);
    border-color: rgba(201, 162, 39, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
.perk-emoji { font-size: 45px; margin-bottom: 10px; line-height: 1; }
.perk h4 {
    color: var(--cream);
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
}
.perk p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}
[data-theme='light'] .perks-card {
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}
[data-theme='light'] .perk h4 { color: var(--text-dark); }
[data-theme='light'] .perk p { color: var(--text-dark-muted); }
[data-theme='light'] .perk {
    background: rgba(201, 162, 39, 0.05);
    border-color: rgba(201, 162, 39, 0.2);
}
[data-theme='light'] .booking-card {
    background: #ffffff;
    border-color: rgba(201, 162, 39, 0.25);
    box-shadow: var(--shadow-soft);
}
.booking-summary {
    background: var(--dark-2);
    color: var(--text);
    padding: 20px 22px;
    border-radius: 14px;
    border: 1px solid rgba(201,162,39,0.25);
    margin-bottom: 25px;
}
.booking-summary h4 { color: var(--gold); margin-bottom: 8px; font-size: 18px; }
.booking-summary p { margin: 4px 0; color: var(--text); }
[data-theme='light'] .booking-summary { background: #f6f1e6; color: #2d2720; border-color: rgba(201,162,39,0.3); }
[data-theme='light'] .booking-summary p { color: #2d2720; }

/* ============ ويدجت الطقس ============ */
.weather-widget {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(46, 134, 222, 0.08);
    border: 1px solid rgba(46, 134, 222, 0.25);
    border-radius: 12px;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
}
.weather-widget .w-emoji { font-size: 20px; }
.weather-widget .w-temp { color: #2e86de; font-weight: 800; font-size: 16px; }
.weather-loading { opacity: 0.6; font-style: italic; }

/* ============ كروت الحجوزات (account.php) ============ */
.bookings-cards { display: flex; flex-direction: column; gap: 16px; }
.booking-card-v2 {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 20px;
    background: #ffffff;
    border: 1px solid rgba(201,162,39,0.18);
    border-radius: 16px;
    padding: 20px;
    align-items: center;
    box-shadow: var(--shadow-soft);
}
.booking-card-v2.upcoming { border-right: 4px solid var(--gold); }
[data-theme='light'] .booking-card-v2 { background: #ffffff; }
[data-theme='dark'] .booking-card-v2,
:root .booking-card-v2 { background: var(--bg-2); }
.bc-date {
    text-align: center;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--black);
    padding: 14px 8px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bc-day { font-size: 30px; font-weight: 900; line-height: 1; }
.bc-month { font-size: 14px; font-weight: 700; }
.bc-time { font-size: 13px; font-weight: 700; margin-top: 4px; opacity: 0.9; }
.bc-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.bc-head h3 { color: var(--text-dark); font-size: 18px; margin: 0; }
.bc-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--text-dark-muted); font-size: 14px; }
.bc-meta strong { color: var(--text-dark); }
.skill-tag {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(201,162,39,0.12);
    border-radius: 12px;
    font-size: 12px;
    color: var(--gold-dark);
    font-weight: 700;
    margin: 0 2px;
}
.bc-weather { margin-top: 4px; }
.bc-actions { align-self: stretch; display: flex; align-items: center; }
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.status-pending { background: rgba(243,156,18,0.15); color: #c87f0a; }
.status-confirmed { background: rgba(92,184,92,0.15); color: #2e7d32; }
.status-completed { background: rgba(52,152,219,0.15); color: #1565c0; }
.status-cancelled { background: rgba(192,57,43,0.15); color: #c0392b; }
@media (max-width: 760px) {
    .booking-card-v2 { grid-template-columns: 1fr; }
    .bc-date { flex-direction: row; justify-content: center; gap: 12px; padding: 10px; }
    .bc-day { font-size: 22px; }
}

/* ============ ملخص الحالة الصحية للفرس ============ */
.health-summary-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    background: var(--bg-2);
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
}
.hs-status {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 16px;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
}
.hs-body { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; align-content: center; color: var(--text-dark); }
.hs-body strong { color: var(--gold-dark); margin-left: 6px; }
[data-theme='dark'] .hs-body strong { color: var(--gold); }
@media (max-width: 720px) {
    .health-summary-card { grid-template-columns: 1fr; }
    .hs-body { grid-template-columns: 1fr; }
}

/* ============ معرض الصور ============ */
.horse-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(201,162,39,0.2);
    background: #000;
    aspect-ratio: 1;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-del {
    position: absolute;
    top: 6px;
    left: 6px;
    margin: 0;
}
.gallery-del .btn-icon-delete {
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 50%;
    cursor: pointer;
}

/* ============ معرض الفيديو ============ */
.horse-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 14px;
}
.video-item {
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(201,162,39,0.2);
}
.video-item video {
    width: 100%;
    display: block;
    background: #000;
}
.video-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-2);
    color: var(--text-dark);
}

/* ============ باقات جلسات التصوير ============ */
.photoshoot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.photoshoot-card {
    background: var(--bg-2);
    border: 1px solid rgba(201,162,39,0.15);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-soft);
}
.photoshoot-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-gold);
}
.ps-image { position: relative; height: 220px; overflow: hidden; }
.ps-image img { width: 100%; height: 100%; object-fit: cover; }
.ps-price {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--black);
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
}
.ps-body { padding: 18px 20px 22px; }
.ps-body h3 { color: var(--text-dark); margin-bottom: 6px; font-size: 19px; }
.ps-meta { color: var(--text-dark-muted); font-size: 13px; margin-bottom: 8px; }
.ps-desc { color: var(--text-dark); line-height: 1.7; font-size: 14px; margin-bottom: 14px; }
.ps-features { display: flex; gap: 14px; color: var(--text-dark-muted); font-size: 13px; margin-bottom: 12px; }
.ps-free {
    background: rgba(201,162,39,0.08);
    border: 1px dashed var(--gold);
    color: var(--gold-dark);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 14px;
}
[data-theme='dark'] .ps-free { color: var(--gold-light); }

/* ============ المزادات (قائمة) ============ */
.auctions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.auction-card {
    background: var(--dark);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(201,162,39,0.18);
    box-shadow: var(--shadow-dark);
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    color: var(--text);
}
[data-theme='light'] .auction-card { background: #ffffff; color: #2d2720; border-color: rgba(201,162,39,0.25); }
.auction-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-gold); }
.auction-card.live { border-color: var(--green); }
.auction-card.ended { opacity: 0.85; }
.ac-image { position: relative; height: 200px; overflow: hidden; background: #000; }
.ac-image img { width: 100%; height: 100%; object-fit: cover; }
.ac-badge-live, .ac-badge-upcoming, .ac-badge-ended {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 18px;
    font-weight: 800;
    font-size: 12px;
    z-index: 2;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.ac-badge-live { background: linear-gradient(135deg, #2ecc71, #27ae60); animation: pulse-dot 1.6s ease-in-out infinite; }
.ac-badge-upcoming { background: linear-gradient(135deg, #f39c12, #d35400); }
.ac-badge-ended { background: linear-gradient(135deg, #7f8c8d, #34495e); }
.ac-countdown {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.78);
    color: var(--gold-light);
    padding: 6px 12px;
    border-radius: 12px;
    font-family: monospace;
    font-weight: 800;
    font-size: 14px;
    border: 1px solid rgba(201,162,39,0.4);
    z-index: 2;
}
.ac-body { padding: 16px 18px 18px; }
.ac-body h3 { color: var(--cream); font-size: 17px; margin-bottom: 6px; line-height: 1.4; }
[data-theme='light'] .ac-body h3 { color: #2d2720; }
.ac-bids { color: var(--text-muted); font-size: 13px; margin-bottom: 12px; }
.ac-price-row { display: flex; justify-content: space-between; align-items: flex-end; }
.ac-current { display: flex; flex-direction: column; }
.ac-current small { color: var(--text-muted); font-size: 11px; }
.ac-current strong { color: var(--gold); font-size: 22px; font-weight: 900; }
.ac-cta { color: var(--gold); font-weight: 800; font-size: 14px; }

/* ============ غرفة المزاد المباشر ============ */
.auction-room {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
    margin-top: 20px;
}
.ar-image-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-dark);
}
.ar-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.ar-details {
    margin-top: 20px;
    background: var(--bg-2);
    padding: 22px;
    border-radius: 16px;
    border: 1px solid rgba(201,162,39,0.15);
}
.ar-details h2 { color: var(--text-dark); margin-bottom: 12px; font-size: 24px; }
.ar-horse-info, .ar-seller {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(201,162,39,0.06);
    border-radius: 10px;
    color: var(--text-dark);
    font-size: 14px;
}

/* عداد تنازلي كبير */
.ar-countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #1a1510, #0f0b08);
    color: var(--gold);
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(201,162,39,0.3);
    margin-bottom: 18px;
    box-shadow: var(--shadow-dark);
}
.cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(201,162,39,0.08);
    border: 1px solid rgba(201,162,39,0.25);
    border-radius: 10px;
    padding: 8px 14px;
    min-width: 60px;
}
.cd-num {
    font-family: 'Cairo', monospace;
    font-size: 28px;
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
}
.cd-block small { color: var(--text-muted); font-size: 11px; margin-top: 4px; }
.cd-sep { color: var(--gold); font-size: 24px; font-weight: 900; }

/* صندوق المزايدة */
.ar-bid-box {
    background: var(--bg-2);
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-soft);
}
.ar-bid-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}
.ar-bid-stats > div {
    background: rgba(201,162,39,0.06);
    padding: 12px 14px;
    border-radius: 12px;
    border-right: 3px solid var(--gold);
}
.ar-bid-stats small { color: var(--text-dark-muted); font-size: 12px; display: block; }
.ar-bid-stats strong { color: var(--text-dark); font-size: 22px; font-weight: 900; }
.ar-bid-stats > div:first-child strong { color: var(--gold-dark); font-size: 26px; }
[data-theme='dark'] .ar-bid-stats > div:first-child strong { color: var(--gold-light); }
.ar-custom-bid {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.ar-custom-bid input { flex: 1; }

/* سجل المزايدات */
.ar-bids-history {
    background: var(--bg-2);
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
}
.ar-bids-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(201,162,39,0.15);
    padding-bottom: 10px;
}
.ar-bids-list {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ar-bid-item {
    display: grid;
    grid-template-columns: 36px 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(201,162,39,0.04);
    border: 1px solid rgba(201,162,39,0.08);
    color: var(--text-dark);
    font-size: 14px;
}
.ar-bid-item.ar-bid-new { animation: bid-pop 1s ease-out; background: rgba(46, 204, 113, 0.1); border-color: rgba(46, 204, 113, 0.3); }
@keyframes bid-pop {
    0% { transform: translateY(-10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.ar-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.ar-name { font-weight: 700; color: var(--text-dark); }
.ar-amt { color: var(--gold-dark); font-weight: 800; font-size: 15px; }
[data-theme='dark'] .ar-amt { color: var(--gold-light); }
.ar-time { color: var(--text-dark-muted); font-size: 12px; }
.ar-buyout { grid-column: 1/-1; background: linear-gradient(135deg,#e74c3c,#c0392b); color: white; text-align: center; padding: 4px; border-radius: 6px; font-size: 11px; font-weight: 800; }
.ar-bid-empty { color: var(--text-dark-muted); text-align: center; padding: 20px; }

@media (max-width: 900px) {
    .auction-room { grid-template-columns: 1fr; }
    .cd-num { font-size: 22px; }
    .cd-block { min-width: 48px; padding: 6px 10px; }
}

/* ============ ميديا في الشات ============ */
.chat-tools {
    display: flex;
    gap: 6px;
    align-items: center;
}
.chat-tool-btn {
    background: rgba(201,162,39,0.08);
    border: 1px solid rgba(201,162,39,0.3);
    color: var(--gold);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}
.chat-tool-btn:hover { background: var(--gold); color: var(--black); }
.chat-att-image {
    max-width: 280px;
    max-height: 280px;
    border-radius: 10px;
    display: block;
    margin-bottom: 6px;
}
.chat-att-video {
    max-width: 320px;
    border-radius: 10px;
    display: block;
    margin-bottom: 6px;
    background: #000;
}
.chat-att-audio {
    max-width: 280px;
    height: 36px;
    margin-bottom: 6px;
}
.chat-att-file {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(201,162,39,0.12);
    border: 1px solid rgba(201,162,39,0.3);
    border-radius: 8px;
    color: var(--gold-dark);
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 6px;
}
.chat-text { line-height: 1.6; word-break: break-word; }
.chat-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(201,162,39,0.08);
    border: 1px dashed var(--gold);
    border-radius: 10px;
    margin-top: 8px;
    color: var(--text-dark);
}
.chat-recording {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(231,76,60,0.1);
    border: 1px solid rgba(231,76,60,0.4);
    border-radius: 10px;
    margin-top: 8px;
    color: var(--red);
    font-weight: 700;
}
.rec-dot {
    width: 12px;
    height: 12px;
    background: var(--red);
    border-radius: 50%;
    animation: pulse-dot 1s ease-in-out infinite;
}

/* ============ أمراض الخيل والعناية ============ */
.d-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.d-tab {
    padding: 12px 22px;
    background: var(--bg-2);
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: 30px;
    font-weight: 700;
    color: var(--text-dark);
    transition: all 0.2s;
}
.d-tab:hover { border-color: var(--gold); color: var(--gold-dark); }
.d-tab.active { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--black); border-color: var(--gold); }
.d-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.d-filter {
    padding: 6px 14px;
    background: var(--bg-2);
    border: 1px solid rgba(201,162,39,0.15);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.2s;
}
.d-filter:hover { border-color: var(--gold); }
.d-filter.active { background: var(--gold); color: var(--black); }

.diseases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.disease-card {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 14px;
    align-items: center;
    background: var(--bg-2);
    border: 1px solid rgba(201,162,39,0.15);
    border-radius: 16px;
    padding: 16px 18px;
    color: var(--text-dark);
    transition: all 0.25s;
    box-shadow: var(--shadow-soft);
}
.disease-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}
.dc-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--black);
}
.dc-body { min-width: 0; }
.dc-body h3 { color: var(--text-dark); font-size: 17px; margin-bottom: 4px; }
.dc-body p { color: var(--text-dark-muted); font-size: 13px; line-height: 1.6; margin-bottom: 6px; }
.dc-sev {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 11px;
}
.dc-arrow { font-size: 22px; color: var(--gold); font-weight: 900; }

.disease-section {
    background: var(--bg-2);
    padding: 22px;
    border-radius: 14px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-soft);
}
.disease-section h3 { margin-bottom: 14px; font-size: 20px; }
.disease-text {
    color: var(--text-dark);
    line-height: 2;
    white-space: pre-line;
    font-size: 15px;
}
.info-card {
    background: var(--bg-2);
    padding: 22px;
    border-radius: 14px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(201,162,39,0.12);
}
.info-card h3 { margin-bottom: 12px; }

/* ============ شريط الخدمات على الرئيسية ============ */
.services-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    background: var(--dark);
    border: 1px solid rgba(201,162,39,0.25);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow-dark);
}
[data-theme='light'] .services-strip { background: #fff; box-shadow: 0 12px 30px rgba(58,46,32,0.1); }
.srv-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(201,162,39,0.06);
    border: 1px solid rgba(201,162,39,0.15);
    border-radius: 14px;
    color: var(--cream);
    transition: all 0.25s;
}
[data-theme='light'] .srv-card { color: #2d2720; background: #faf6ec; }
.srv-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 8px 20px rgba(201,162,39,0.25);
}
.srv-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--black);
    flex-shrink: 0;
}
.srv-card strong { display: block; font-size: 15px; }
.srv-card small { color: var(--text-muted); font-size: 12px; }
[data-theme='light'] .srv-card small { color: #6b6254; }
@media (max-width: 900px) {
    .services-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .services-strip { grid-template-columns: 1fr; }
}

/* ============ بانر المزاد المباشر على الرئيسية ============ */
.live-auction-banner {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 25px;
    background: linear-gradient(135deg, #1a1510, #0f0b08);
    border: 1px solid rgba(201,162,39,0.4);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
    align-items: center;
}
.lab-image { position: relative; height: 280px; }
.lab-image img { width: 100%; height: 100%; object-fit: cover; }
.lab-body { padding: 25px; color: var(--cream); }
.lab-body h2 { color: var(--cream); font-size: 26px; margin: 8px 0 16px; }
.lab-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.lab-stats > div {
    background: rgba(201,162,39,0.1);
    padding: 10px 14px;
    border-radius: 10px;
    border-right: 3px solid var(--gold);
}
.lab-stats small { color: var(--text-muted); font-size: 11px; display: block; }
.lab-stats strong { color: var(--gold-light); font-size: 22px; font-weight: 900; }
.lab-cd { font-family: monospace; }
@media (max-width: 800px) {
    .live-auction-banner { grid-template-columns: 1fr; }
    .lab-image { height: 220px; }
}

/* ============================================================
   صفحة إنشاء الحساب — تصميم عصري (Two-column shell)
   ============================================================ */
.register-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background:
        radial-gradient(1100px 600px at 80% -10%, rgba(201,162,39,0.12), transparent 70%),
        radial-gradient(900px 500px at 0% 100%, rgba(201,162,39,0.08), transparent 65%),
        linear-gradient(180deg, #0c0907 0%, #15110d 100%);
    position: relative;
    overflow: hidden;
}
.register-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/auth-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.06;
    filter: grayscale(40%) blur(2px);
    pointer-events: none;
}
[data-theme='light'] .register-page {
    background:
        radial-gradient(1000px 500px at 80% 0%, rgba(201,162,39,0.12), transparent 70%),
        linear-gradient(180deg, #fbf8f0 0%, #f5ede0 100%);
}
[data-theme='light'] .register-page::before { opacity: 0.04; }

.register-shell {
    width: 100%;
    max-width: 1080px;
    background: rgba(20, 16, 12, 0.78);
    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    border: 1px solid rgba(201,162,39,0.22);
    border-radius: 28px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.5),
        0 0 0 1px rgba(201,162,39,0.1) inset;
    animation: shellRise 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}
[data-theme='light'] .register-shell {
    background: rgba(255,255,255,0.96);
    border-color: rgba(201,162,39,0.25);
    box-shadow: 0 30px 70px rgba(58,46,32,0.18);
}
@keyframes shellRise {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== جانب الهوية (يسار في RTL = right physical) ===== */
.register-brand {
    padding: 44px 38px;
    background:
        radial-gradient(400px 300px at 30% 10%, rgba(201,162,39,0.18), transparent 70%),
        linear-gradient(160deg, #1a1510 0%, #0f0b08 100%);
    color: #f5ede0;
    display: flex;
    flex-direction: column;
    gap: 22px;
    border-left: 1px solid rgba(201,162,39,0.15);
    position: relative;
}
.rb-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.rb-logo svg { filter: drop-shadow(0 0 18px rgba(212,175,55,0.45)); }
.rb-text {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}
.rb-name {
    font-weight: 900;
    letter-spacing: 5px;
    font-size: 26px;
    background: linear-gradient(135deg, #e5bf3d, #c9a227);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.rb-sub {
    font-family: 'Amiri', serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-muted, #b8a06a);
    letter-spacing: 7px;
    margin-top: 4px;
}
.rb-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.15;
    margin-top: 12px;
    color: #f5ede0;
    letter-spacing: -0.5px;
}
.rb-title span {
    font-family: 'Amiri', serif;
    font-style: italic;
    font-weight: 700;
    background: linear-gradient(135deg, #e5bf3d, #c9a227 60%, #8b7510);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.rb-tagline {
    color: #c2b8a3;
    line-height: 1.85;
    font-size: 14px;
}
.rb-perks {
    list-style: none;
    padding: 0;
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rb-perks li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d8ceb7;
    font-size: 14px;
    font-weight: 600;
}
.rb-perks li span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e5bf3d, #c9a227);
    color: #0f0b08;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
}
.rb-foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(201,162,39,0.15);
    color: #a9a094;
    font-size: 13px;
}
.rb-foot a {
    color: #e5bf3d;
    font-weight: 700;
    margin-right: 6px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.rb-foot a:hover { border-bottom-color: #e5bf3d; }

/* ===== جانب الفورم ===== */
.register-form-side {
    padding: 44px 42px;
    background: var(--bg);
    color: var(--text-dark);
    overflow-y: auto;
    max-height: 90vh;
}
[data-theme='dark'] .register-form-side,
:root .register-form-side {
    background: #fbf8f0;
    color: #2d2720;
}
[data-theme='light'] .register-form-side { background: #ffffff; color: #2d2720; }

.rf-head { margin-bottom: 22px; }
.rf-head h2 {
    font-size: 26px;
    font-weight: 900;
    color: #2d2720;
    margin-bottom: 4px;
}
.rf-head p { color: #6b6254; font-size: 14px; }

/* ===== كروت نوع الحساب ===== */
.acc-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}
.acc-card {
    --acc-color: #c9a227;
    appearance: none;
    background: #fff;
    border: 1.5px solid #e8e0cf;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: right;
    font-family: inherit;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s, background 0.18s;
    position: relative;
    color: #2d2720;
}
.acc-card:hover {
    transform: translateY(-2px);
    border-color: var(--acc-color);
    box-shadow: 0 6px 16px rgba(201,162,39,0.12);
}
.acc-card.is-active {
    border-color: var(--acc-color);
    background: linear-gradient(135deg, rgba(201,162,39,0.06), rgba(255,255,255,1));
    box-shadow:
        0 0 0 2px var(--acc-color) inset,
        0 8px 22px rgba(201,162,39,0.18);
}
.acc-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--acc-color) 12%, transparent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: all 0.2s;
}
.acc-card.is-active .acc-card-icon {
    background: var(--acc-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--acc-color) 40%, transparent);
}
.acc-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.acc-card-text strong {
    font-size: 14.5px;
    font-weight: 800;
    color: #2d2720;
    line-height: 1.2;
}
.acc-card-text small {
    font-size: 11.5px;
    color: #6b6254;
    line-height: 1.5;
}
.acc-card-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #d6cdb8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    flex-shrink: 0;
    transition: all 0.2s;
}
.acc-card.is-active .acc-card-check {
    border-color: var(--acc-color);
    background: var(--acc-color);
    color: #fff;
}

.rf-hint {
    text-align: center;
    color: #6b6254;
    font-size: 12.5px;
    background: rgba(201,162,39,0.07);
    border: 1px dashed rgba(201,162,39,0.3);
    padding: 8px 14px;
    border-radius: 10px;
    margin-bottom: 22px;
}

/* ===== رسالة الخطأ ===== */
.rf-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-right: 4px solid #dc2626;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 18px;
    color: #991b1b;
}
.rf-error strong { display: block; margin-bottom: 6px; font-size: 14px; }
.rf-error ul { margin: 0; padding-right: 18px; font-size: 13px; line-height: 1.8; }

/* ===== حقول الفورم ===== */
.rf-form { display: flex; flex-direction: column; gap: 16px; }
.rf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.rf-field { display: flex; flex-direction: column; gap: 6px; }
.rf-field label {
    font-size: 13px;
    font-weight: 700;
    color: #4a3f2f;
    margin-right: 2px;
}
.rf-field input,
.rf-field select {
    height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1.5px solid #e8e0cf;
    background: #fff;
    color: #2d2720;
    font-family: 'Cairo', sans-serif;
    font-size: 14.5px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    width: 100%;
}
.rf-field input::placeholder { color: #b3a896; }
.rf-field input:hover,
.rf-field select:hover { border-color: #c9a227; }
.rf-field input:focus,
.rf-field select:focus {
    outline: none;
    border-color: #c9a227;
    box-shadow: 0 0 0 4px rgba(201,162,39,0.15);
    background: #fff;
}
.rf-field select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6254' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: left 16px center; padding-left: 40px; }

/* ===== زر الإرسال ===== */
.rf-submit {
    margin-top: 6px;
    height: 52px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #e5bf3d 0%, #c9a227 50%, #8b7510 100%);
    color: #0f0b08;
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow:
        0 8px 22px rgba(201,162,39,0.35),
        0 1px 0 rgba(255,255,255,0.3) inset;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    position: relative;
    overflow: hidden;
}
.rf-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
    transform: translateX(100%);
    transition: transform 0.5s;
}
.rf-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(201,162,39,0.5), 0 1px 0 rgba(255,255,255,0.3) inset;
    filter: brightness(1.04);
}
.rf-submit:hover::before { transform: translateX(-100%); }
.rf-submit:active { transform: translateY(0); }
.rf-submit svg { transition: transform 0.25s; }
.rf-submit:hover svg { transform: translateX(-4px); }

.rf-terms {
    text-align: center;
    color: #8b8275;
    font-size: 12px;
    margin-top: 8px;
    line-height: 1.7;
}
.rf-terms a { color: #c9a227; font-weight: 700; }
.rf-terms a:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .register-shell { grid-template-columns: 1fr; max-width: 560px; }
    .register-brand {
        border-left: none;
        border-bottom: 1px solid rgba(201,162,39,0.2);
        padding: 32px;
    }
    .rb-title { font-size: 28px; }
    .register-form-side { padding: 32px; max-height: none; }
}
@media (max-width: 540px) {
    .register-page { padding: 24px 12px; }
    .register-brand, .register-form-side { padding: 26px 22px; }
    .acc-cards { grid-template-columns: 1fr; }
    .rf-row { grid-template-columns: 1fr; }
    .rb-title { font-size: 24px; }
    .rf-head h2 { font-size: 22px; }
}

.sidebar-divider {
    margin-top: 14px;
    padding: 6px 14px;
    color: var(--text-dark-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-top: 1px solid rgba(201,162,39,0.1);
    pointer-events: none;
}

/* ============ بطاقات المصوّرين ============ */
.photographers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}
.photographer-card {
    background: var(--bg-2);
    border: 1px solid rgba(201,162,39,0.15);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s;
}
.photographer-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-gold);
    border-color: var(--gold);
}
.pg-image { position: relative; height: 220px; overflow: hidden; background: #000; }
.pg-image img { width: 100%; height: 100%; object-fit: cover; }
.pg-featured, .pg-verified {
    position: absolute;
    top: 10px;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 800;
    color: white;
    z-index: 2;
}
.pg-featured { right: 10px; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--black); }
.pg-verified { left: 10px; background: linear-gradient(135deg, #2ecc71, #27ae60); }
.pg-body { padding: 16px 18px 18px; }
.pg-body h3 { color: var(--text-dark); font-size: 18px; margin-bottom: 4px; }
.pg-meta { color: var(--text-dark-muted); font-size: 13px; margin-bottom: 8px; }
.pg-desc { color: var(--text-dark); line-height: 1.7; font-size: 13px; margin-bottom: 12px; }
.pg-stats { display: flex; gap: 14px; color: var(--text-dark-muted); font-size: 13px; margin-bottom: 12px; }

/* ============================================================
   لوحة تحكم المركز — my-center.php
   ============================================================ */
.mc-wrap {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    align-items: flex-start;
}

/* السايدبار */
.mc-sidebar {
    background: var(--dark);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 18px;
    padding: 20px;
    position: sticky;
    top: 90px;
    box-shadow: var(--shadow-dark);
}
[data-theme='light'] .mc-sidebar { background: #ffffff; box-shadow: var(--shadow-soft); }

.mc-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}
.mc-brand img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--gold);
}
.mc-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f1d063, #c9a227 70%, #8b7510);
    color: var(--black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 4px 14px rgba(201,162,39,0.45), inset 0 1px 0 rgba(255,255,255,0.3);
    flex-shrink: 0;
}
.mc-brand strong { color: var(--cream); font-size: 15px; display: block; line-height: 1.3; }
.mc-brand small { color: var(--text-muted); font-size: 12px; }
[data-theme='light'] .mc-brand strong { color: var(--text-dark); }

.mc-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mc-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}
.mc-nav a span { font-size: 16px; }
.mc-nav a:hover {
    background: rgba(201, 162, 39, 0.08);
    color: var(--gold-light);
}
.mc-nav a.active {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.18), rgba(201, 162, 39, 0.06));
    color: var(--gold-light);
    border-right: 3px solid var(--gold);
}
[data-theme='light'] .mc-nav a { color: var(--text-dark); }
[data-theme='light'] .mc-nav a:hover { background: rgba(201, 162, 39, 0.08); color: var(--gold-dark); }
[data-theme='light'] .mc-nav a.active { color: var(--gold-dark); }

.mc-badge {
    background: var(--red);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: auto;
}
.mc-divider {
    height: 1px;
    background: rgba(201, 162, 39, 0.12);
    margin: 10px 4px;
}

/* روابط خاصة بالسايدبار */
.mc-admin-link {
    background: linear-gradient(135deg, rgba(231,76,60,0.18), rgba(231,76,60,0.05)) !important;
    color: #e74c3c !important;
    font-weight: 900 !important;
}
.mc-admin-link:hover { background: linear-gradient(135deg, rgba(231,76,60,0.3), rgba(231,76,60,0.1)) !important; }

.mc-biz-link { font-weight: 700; }
.mc-biz-link.gold { color: var(--gold-light) !important; }
.mc-biz-link.blue { color: #4eaef0 !important; }
.mc-biz-link.purple { color: #b87adf !important; }
.mc-biz-link:hover { background: color-mix(in srgb, currentColor 12%, transparent) !important; }

.mc-logout { color: var(--red) !important; }
.mc-logout:hover { background: rgba(192,57,43,0.12) !important; color: #e74c3c !important; }

/* المحتوى الرئيسي */
.mc-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.mc-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    border: 1px solid rgba(201, 162, 39, 0.3);
    padding: 24px 28px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
}
.mc-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(229, 191, 61, 0.18), transparent 55%);
    pointer-events: none;
}
.mc-header > * { position: relative; }
.mc-breadcrumb { font-size: 12px; color: var(--gold-light); margin-bottom: 6px; font-weight: 600; opacity: 0.85; }
.mc-header h1 {
    color: transparent;
    background: linear-gradient(135deg, #f1d063, #e5bf3d, #c9a227);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 24px;
    margin: 0 0 8px;
}
.mc-header p { color: var(--text); margin: 0; font-size: 14px; line-height: 1.7; }
[data-theme='light'] .mc-header {
    background: linear-gradient(135deg, #ffffff 0%, #f6f1e6 100%);
    box-shadow: var(--shadow-soft);
}
[data-theme='light'] .mc-header p { color: var(--text-dark); }
[data-theme='light'] .mc-breadcrumb { color: var(--gold-dark); }

/* Alerts */
.mc-alert {
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
}
.mc-alert.success { background: rgba(46,204,113,0.12); color: #2ecc71; border: 1px solid rgba(46,204,113,0.3); }
.mc-alert.error { background: rgba(231,76,60,0.12); color: #e74c3c; border: 1px solid rgba(231,76,60,0.3); }
.mc-alert ul { margin: 6px 20px 0; }

/* بطاقات الإحصائيات */
.mc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}
.mc-stat {
    background: var(--dark);
    border: 1px solid rgba(201, 162, 39, 0.18);
    border-right: 3px solid var(--c, var(--gold));
    border-radius: 14px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    transition: transform 0.2s ease;
}
.mc-stat:hover { transform: translateY(-2px); }
.mc-stat-ic { font-size: 32px; opacity: 0.9; }
.mc-stat b { color: var(--c, var(--gold)); font-size: 24px; display: block; line-height: 1; }
.mc-stat small { color: var(--text-muted); font-size: 12px; display: block; margin-top: 4px; }
[data-theme='light'] .mc-stat { background: #ffffff; box-shadow: var(--shadow-soft); }

/* Panels */
.mc-panel {
    background: var(--dark);
    border: 1px solid rgba(201, 162, 39, 0.18);
    border-radius: 16px;
    padding: 22px;
}
.mc-panel.warn {
    background: linear-gradient(135deg, var(--dark) 0%, rgba(243,156,18,0.1) 100%);
    border: 1px solid rgba(243,156,18,0.45);
    box-shadow: 0 0 0 1px rgba(243,156,18,0.15) inset, var(--shadow-dark);
}
.mc-panel.warn h3 { color: #f39c12; font-size: 18px; }
.mc-panel.warn p { color: var(--text); margin: 10px 0 16px; line-height: 1.7; }
[data-theme='light'] .mc-panel { background: #ffffff; box-shadow: var(--shadow-soft); }
[data-theme='light'] .mc-panel.warn {
    background: linear-gradient(135deg, #ffffff 0%, rgba(243,156,18,0.08) 100%);
    box-shadow: var(--shadow-soft);
}
[data-theme='light'] .mc-panel.warn p { color: var(--text-dark); }

.mc-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.12);
}
.mc-panel-head h3 { color: var(--gold); font-size: 17px; margin: 0; }
.mc-link { color: var(--gold); font-weight: 700; font-size: 13px; text-decoration: none; }
.mc-link:hover { text-decoration: underline; }

/* Mini rows (overview pending bookings) */
.mc-mini-row {
    display: grid;
    grid-template-columns: 1.5fr auto auto;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(201, 162, 39, 0.08);
}
.mc-mini-row:last-child { border-bottom: none; }
.mc-mini-row strong { color: var(--cream); display: block; }
.mc-mini-row small { color: var(--text-muted); font-size: 12px; }
.mc-mini-actions { display: flex; gap: 6px; }
[data-theme='light'] .mc-mini-row strong { color: var(--text-dark); }

/* Buttons */
.mc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    background: rgba(201,162,39,0.08);
    color: var(--gold-light);
    border: 1px solid rgba(201,162,39,0.3);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mc-btn:hover { background: rgba(201,162,39,0.18); transform: translateY(-1px); }
.mc-btn.primary {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--black);
    border: none;
    box-shadow: 0 4px 14px rgba(201,162,39,0.35);
}
.mc-btn.primary:hover { box-shadow: 0 6px 20px rgba(201,162,39,0.55); }
.mc-btn.ok { background: rgba(46,204,113,0.15); color: #2ecc71; border-color: rgba(46,204,113,0.4); }
.mc-btn.ok:hover { background: #2ecc71; color: white; }
.mc-btn.no { background: rgba(231,76,60,0.15); color: #e74c3c; border-color: rgba(231,76,60,0.4); }
.mc-btn.no:hover { background: #e74c3c; color: white; }
.mc-btn.sm { padding: 5px 10px; font-size: 12px; }
.mc-btn.lg { padding: 12px 24px; font-size: 15px; }

/* Filters */
.mc-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 4px 0;
}
.mc-chip {
    padding: 7px 14px;
    border-radius: 20px;
    background: rgba(201,162,39,0.06);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(201,162,39,0.2);
    text-decoration: none;
    transition: all 0.2s ease;
}
.mc-chip:hover { background: rgba(201,162,39,0.12); }
.mc-chip.active {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--black);
    border-color: var(--gold);
}
[data-theme='light'] .mc-chip { color: var(--text-dark); }

/* Empty state */
.mc-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
    font-size: 40px;
}
.mc-empty p { font-size: 14px; margin-top: 10px; }

/* Table */
.mc-table-wrap {
    overflow-x: auto;
    background: var(--dark);
    border: 1px solid rgba(201,162,39,0.18);
    border-radius: 14px;
}
[data-theme='light'] .mc-table-wrap { background: #ffffff; box-shadow: var(--shadow-soft); }
.mc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.mc-table th {
    background: var(--dark-2);
    color: var(--gold);
    padding: 12px 14px;
    text-align: right;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    border-bottom: 1px solid rgba(201,162,39,0.2);
}
[data-theme='light'] .mc-table th { background: #f6f1e6; }
.mc-table td {
    padding: 12px 14px;
    color: var(--text);
    border-bottom: 1px solid rgba(201,162,39,0.08);
    vertical-align: top;
}
[data-theme='light'] .mc-table td { color: var(--text-dark); }
.mc-table tbody tr:hover { background: rgba(201,162,39,0.04); }
.mc-table td strong { display: block; color: var(--cream); }
.mc-table td small { display: block; color: var(--text-muted); font-size: 11px; margin-top: 2px; }
[data-theme='light'] .mc-table td strong { color: var(--text-dark); }
.mc-row-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.mc-note-row td {
    background: rgba(201,162,39,0.04);
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px 18px;
}

.mc-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: color-mix(in srgb, var(--c, #999) 18%, transparent);
    color: var(--c, #999);
    border: 1px solid color-mix(in srgb, var(--c, #999) 35%, transparent);
    white-space: nowrap;
}

/* Form */
.mc-form { display: flex; flex-direction: column; gap: 16px; }
.mc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.mc-form-grid .full { grid-column: 1 / -1; }

/* الإنبوتات داخل لوحات التحكم: تباين أوضح */
.mc-panel .form-group label,
.mc-form .form-group label {
    color: var(--cream);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.mc-panel .form-control,
.mc-form .form-control {
    background: var(--dark-2);
    border-color: rgba(229, 191, 61, 0.25);
    color: var(--cream);
}
.mc-panel .form-control:focus,
.mc-form .form-control:focus {
    background: var(--dark-3);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(229, 191, 61, 0.15);
}
.mc-panel .form-control::placeholder,
.mc-form .form-control::placeholder { color: var(--text-muted); }

/* التيمة الفاتحة داخل اللوحات */
[data-theme='light'] .mc-panel .form-group label,
[data-theme='light'] .mc-form .form-group label { color: var(--text-dark); }
[data-theme='light'] .mc-panel .form-control,
[data-theme='light'] .mc-form .form-control {
    background: #ffffff;
    border-color: rgba(201, 162, 39, 0.3);
    color: var(--text-dark);
}
[data-theme='light'] .mc-panel .form-control:focus,
[data-theme='light'] .mc-form .form-control:focus {
    background: #ffffff;
    border-color: var(--gold);
}

/* Services grid */
.mc-svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.mc-svc-card {
    background: var(--dark-2);
    border: 1px solid rgba(201,162,39,0.15);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
[data-theme='light'] .mc-svc-card { background: #fbf8f0; }
.mc-svc-ic { font-size: 32px; }
.mc-svc-card h4 { color: var(--gold); font-size: 16px; margin: 0; }
.mc-svc-card p { color: var(--text); font-size: 13px; line-height: 1.6; margin: 0; }
[data-theme='light'] .mc-svc-card p { color: var(--text-dark); }
.mc-svc-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(201,162,39,0.12);
    margin-top: auto;
    font-size: 13px;
    color: var(--text-muted);
}
.mc-svc-meta strong { color: var(--gold); font-size: 16px; }
.mc-svc-actions { display: flex; gap: 6px; margin-top: 4px; }

/* معرض الصور (Studio gallery + session deliveries) */
.mc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.mc-gallery-item {
    position: relative;
    background: var(--dark-2);
    border: 1px solid rgba(201, 162, 39, 0.15);
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
}
[data-theme='light'] .mc-gallery-item { background: #fbf8f0; }
.mc-gallery-item img,
.mc-gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mc-gallery-item small {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #fff;
    padding: 20px 10px 8px;
    font-size: 11px;
    font-weight: 600;
}
.mc-del-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(231, 76, 60, 0.85);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.mc-gallery-item:hover .mc-del-btn { opacity: 1; }

/* Events list */
.mc-ev-list { display: flex; flex-direction: column; gap: 10px; }
.mc-ev-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 14px;
    align-items: center;
    background: var(--dark-2);
    border: 1px solid rgba(201,162,39,0.15);
    border-radius: 12px;
    padding: 12px;
    transition: border-color 0.2s ease;
}
.mc-ev-row:hover { border-color: rgba(201,162,39,0.35); }
.mc-ev-row.past { opacity: 0.55; }
.mc-ev-row img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }
.mc-ev-info h4 { color: var(--cream); font-size: 16px; margin: 4px 0; }
[data-theme='light'] .mc-ev-row { background: #fbf8f0; }
[data-theme='light'] .mc-ev-info h4 { color: var(--text-dark); }
.mc-ev-meta { color: var(--gold); font-size: 12px; font-weight: 700; }
.mc-ev-info small { color: var(--text-muted); font-size: 12px; }
.mc-ev-actions { display: flex; gap: 4px; }

/* شبكة معلومات (key-value) */
.mc-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.mc-info {
    background: var(--dark-2);
    border: 1px solid rgba(201,162,39,0.12);
    border-radius: 12px;
    padding: 14px 16px;
}
[data-theme='light'] .mc-info { background: #fbf8f0; }
.mc-info label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 6px;
}
.mc-info > div {
    color: var(--cream);
    font-weight: 700;
    font-size: 15px;
}
[data-theme='light'] .mc-info > div { color: var(--text-dark); }

/* روابط سريعة للـoverview */
.mc-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}
.mc-quick {
    background: var(--dark);
    border: 1px solid rgba(201,162,39,0.18);
    border-radius: 14px;
    padding: 22px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--cream);
    transition: all 0.25s ease;
}
.mc-quick:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(201,162,39,0.25);
}
.mc-quick > div { font-size: 36px; margin-bottom: 8px; }
.mc-quick strong { color: var(--gold); font-size: 14px; display: block; }
[data-theme='light'] .mc-quick { background: #ffffff; color: var(--text-dark); box-shadow: var(--shadow-soft); }

/* صفوف الطلبات */
.mc-orders { display: flex; flex-direction: column; gap: 10px; }
.mc-order-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px;
    background: var(--dark);
    border: 1px solid rgba(201,162,39,0.15);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}
.mc-order-row:hover { border-color: var(--gold); transform: translateX(-4px); }
[data-theme='light'] .mc-order-row { background: #ffffff; box-shadow: var(--shadow-soft); }
.mc-order-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.mc-order-num {
    color: var(--gold);
    font-family: monospace;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 1px;
}
.mc-order-row small { color: var(--text-muted); font-size: 12px; display: block; margin-top: 2px; }
.mc-order-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(201,162,39,0.1);
    color: var(--text);
    font-size: 14px;
}
.mc-order-total { color: var(--gold); font-weight: 900; font-size: 19px; }
[data-theme='light'] .mc-order-body { color: var(--text-dark); }

/* Responsive */
@media (max-width: 900px) {
    .mc-wrap { grid-template-columns: 1fr; }
    .mc-sidebar { position: static; }
    .mc-nav { flex-direction: row; overflow-x: auto; gap: 6px; }
    .mc-nav a { white-space: nowrap; padding: 8px 12px; }
    .mc-nav .mc-divider { display: none; }
    .mc-form-grid { grid-template-columns: 1fr; }
    .mc-ev-row { grid-template-columns: 60px 1fr; }
    .mc-ev-row img { width: 60px; height: 60px; }
    .mc-ev-actions { grid-column: 1 / -1; }
    .mc-header h1 { font-size: 19px; }
}

/* ============================================================
   تيم: خلفية سوداء + كروت بيضاء
   ============================================================ */

/* كل الكروت والبانلات تصير بيضاء */
.category-card, .product-card, .cart-item,
.checkout-section, .checkout-summary, .cart-summary, .order-detail-card,
.stat-box, .account-sidebar, .account-content, .info-item,
.filter-sidebar, .center-card, .service-item, .center-sidebar,
.event-card, .offer-card, .booking-card, .perks-card,
.horse-card, .auction-card, .chat-list-panel, .services-strip,
.clinic-card, .appointment-card, .article-cat, .article-card,
.article-full, .form-card, .market-horse-card, .record-card,
.info-card, .disease-card, .disease-section, .photoshoot-card,
.health-summary-card, .ar-details, .ar-bid-box, .ar-bids-history,
.filter-bar, .booking-card-v2, .empty-state, .empty-small,
.cert-public-card, .photographer-card,
.mc-sidebar, .mc-panel, .mc-stat, .mc-table-wrap,
.mc-svc-card, .mc-gallery-item, .mc-ev-row, .mc-info,
.mc-quick, .mc-order-row, .mc-header,
.booking-summary, .payment-option, .qty-selector,
.bookings-table, .chat-list-header {
    background: #ffffff;
    --dark: #f5f3ef;
    --dark-2: #edeae3;
    --dark-3: #e5e0d8;
    --cream: #1a1510;
    --white: #1a1510;
    --text: #2d2720;
    --text-muted: #6b6254;
    --gray: #8b8275;
    border-color: rgba(201, 162, 39, 0.18);
    color: #2d2720;
}

/* تعديل شريط الخدمات */
.services-strip { background: #ffffff; }
.srv-card { background: #f5f3ef; color: #2d2720; }
.srv-card small { color: #6b6254 !important; }
.srv-card strong { color: #1a1510 !important; }

/* mc-header يبقى أبيض */
.mc-header {
    background: linear-gradient(135deg, #ffffff 0%, #f9f6ef 100%) !important;
    box-shadow: 0 6px 20px rgba(58,46,32,0.1) !important;
}
.mc-header h1 {
    color: transparent !important;
    background: linear-gradient(135deg, #c9a227, #8b7510) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.mc-header p { color: #2d2720 !important; }
.mc-breadcrumb { color: var(--gold-dark) !important; }

/* Chat */
.chat-list-header { background: #f0ede5 !important; }
.chat-list-item { color: #2d2720; }
.chat-list-item-preview { color: #6b6254; }
.chat-list-item-top strong { color: var(--gold-dark) !important; }
.chat-conv-header { background: #1a1510 !important; }
.chat-msg.theirs .chat-bubble {
    background: #f5f3ef !important;
    color: #2d2720 !important;
    border-color: #ddd8cc !important;
}
.chat-form { background: #f0ede5 !important; border-top-color: #ddd8cc !important; }
#chat-input { background: #ffffff !important; color: #2d2720 !important; border-color: #d4cab5 !important; }

/* نصوص داخل كروت الخدمات */
.service-info h4 { color: #1a1510 !important; }
.service-info p { color: #6b6254 !important; }
.service-info .duration { color: var(--gold-dark) !important; }

/* كروت المراكز */
.center-info h3 { color: #1a1510 !important; }
.center-info .desc { color: #6b6254 !important; }

/* كروت الفعاليات */
.event-info h3 { color: #1a1510 !important; }
.event-info .desc { color: #6b6254 !important; }
.event-meta { color: #6b6254 !important; }

/* كروت العروض */
.offer-content p { color: #6b6254; }
.offer-expiry strong { color: #1a1510; }

/* ستات */
.stat-box .lbl { color: #6b6254; }

/* الدفع */
.payment-option .info strong { color: #1a1510; }
.payment-option .info span { color: #6b6254; }

/* خيل */
.horse-card { color: #2d2720; }
.horse-meta { color: #6b6254 !important; }
.horse-stat small { color: #6b6254 !important; }

/* ملخص الحجز */
.booking-summary p { color: #2d2720 !important; }
.booking-summary h4 { color: var(--gold-dark) !important; }

/* السلة */
.cart-item-name { color: #1a1510 !important; }
.cart-item-price-unit { color: #6b6254 !important; }
.summary-row { color: #2d2720; }
.section-head h3 { color: #1a1510; }
.order-item-mini .name { color: #1a1510; }
.order-item-mini .meta { color: #6b6254; }

/* المزاد */
.auction-card { color: #2d2720; }
.ac-body h3 { color: #1a1510 !important; }
.ac-bids { color: #6b6254 !important; }
.ac-current small { color: #6b6254 !important; }

/* قائمة الحساب */
.sidebar-menu a { color: #2d2720 !important; }
.sidebar-menu a:hover, .sidebar-menu a.active {
    background: rgba(201,162,39,0.12) !important;
    color: var(--gold-dark) !important;
}

/* جداول */
.mc-table th { background: #f0ede5 !important; }
.mc-table td { color: #2d2720 !important; }
.mc-table td strong { color: #1a1510 !important; }
.mc-table td small { color: #6b6254 !important; }
.bookings-table th { background: #f0ede5 !important; }
.bookings-table td { color: #2d2720 !important; }

/* لوحة التحكم */
.mc-brand strong { color: #1a1510 !important; }
.mc-brand small { color: #6b6254 !important; }
.mc-nav a { color: #2d2720 !important; }
.mc-nav a:hover { background: rgba(201,162,39,0.08) !important; color: var(--gold-dark) !important; }
.mc-nav a.active { background: rgba(201,162,39,0.12) !important; color: var(--gold-dark) !important; border-right-color: var(--gold) !important; }
.mc-mini-row strong { color: #1a1510 !important; }
.mc-mini-row small { color: #6b6254 !important; }
.mc-chip { color: #2d2720 !important; }
.mc-ev-info h4 { color: #1a1510 !important; }
.mc-ev-info small { color: #6b6254 !important; }
.mc-info label { color: #6b6254 !important; }
.mc-info > div { color: #1a1510 !important; }
.mc-quick { color: #2d2720 !important; }
.mc-order-row small { color: #6b6254 !important; }
.mc-order-body { color: #2d2720 !important; }
.mc-svc-card h4 { color: var(--gold-dark) !important; }
.mc-svc-card p { color: #2d2720 !important; }
.mc-svc-meta { color: #6b6254 !important; }
.mc-panel .form-group label, .mc-form .form-group label { color: #2d2720 !important; }
.mc-panel .form-control, .mc-form .form-control {
    background: #f5f3ef !important;
    border-color: rgba(201,162,39,0.25) !important;
    color: #2d2720 !important;
}
.mc-panel .form-control::placeholder, .mc-form .form-control::placeholder { color: #a9a094 !important; }

/* حقول الفلتر والنماذج */
.filter-bar select, .filter-bar input {
    background: #ffffff !important;
    color: #2d2720 !important;
    border-color: rgba(201,162,39,0.3) !important;
}
.form-card input, .form-card select, .form-card textarea,
.booking-form input, .booking-form select, .booking-form textarea,
.inline-form input, .inline-form select, .inline-form textarea,
.booking-card .form-control, .booking-card input, .booking-card select, .booking-card textarea {
    background: #f5f3ef !important;
    color: #2d2720 !important;
    border-color: rgba(201,162,39,0.25) !important;
}

/* تبويبات الأمراض والعناية */
.d-tab { background: #f0ede5 !important; color: #2d2720 !important; }
.d-filter { background: #f0ede5 !important; color: #2d2720 !important; }

/* فيديو والمحتوى */
.video-foot { background: #f5f3ef !important; color: #2d2720 !important; }

/* تاريخ الموعد يبقى غامق */
.appointment-date { background: #1a1510 !important; color: var(--gold) !important; }
.app-month, .app-time { color: #f5ede0 !important; }

/* صندوق الإحصائيات الكبيرة في غرفة المزاد */
.ar-bid-stats > div { background: rgba(201,162,39,0.08) !important; }
.ar-bid-stats small { color: #6b6254 !important; }
.ar-bid-stats strong { color: #1a1510 !important; }
.ar-bid-stats > div:first-child strong { color: var(--gold-dark) !important; }

/* عنصر حجوزات السلة v2 */
:root .booking-card-v2 { background: #ffffff; }

/* صفحة المقالات */
.ps-body h3 { color: #1a1510 !important; }
.article-card h3 { color: #1a1510 !important; }
.article-card p { color: #6b6254 !important; }
.article-full-meta { color: #6b6254; }
.article-content { color: #2d2720; }

/* كروت الصحة والسجلات */
.record-body h4 { color: #1a1510; }
.record-body p { color: #2d2720; }
.cert-public-body h4 { color: #1a1510; }

/* empty state */
.empty-state { background: #f5f3ef; }
.empty-state h3, .empty-state h2 { color: #1a1510; }
.empty-small { background: #f5f3ef; }

/* ===================================================
   نصوص الصفحة العامة على الخلفية السوداء
   =================================================== */
body { color: #e8dece; }

/* عناوين الأقسام */
.section-title h2 { color: #f0e8d0 !important; }
.section-title p { color: #a9a094 !important; }
.section-title .eyebrow { color: var(--gold) !important; }

/* شريط التنقل الجانبي للحساب خارج الكارد */
.account-content h2 { color: var(--gold) !important; }

/* روابط عامة في الصفحة */
.contact-row { color: #d0c8b8 !important; }

/* نصوص صفحة المركز خارج الكارد */
.center-rating { color: var(--gold) !important; }
.center-rating small { color: #a9a094 !important; }

/* صفحة سوق الخيل - meta خارج الكارد */
.market-horse-body h3 { color: #f0e8d0; }

/* تأكيد: كل text-dark خارج بيئة الكارد يكون فاتح */
.filter-count { color: var(--gold) !important; }

/* ============================================================
   صفحة تفاصيل الفرس — تحسينات UI/UX
   ============================================================ */

/* هيرو */
.horse-hero {
    background: linear-gradient(160deg, #0f0b08 0%, #1a1208 50%, #0a0a0a 100%);
    padding: 44px 0 40px;
    border-bottom: 2px solid rgba(201, 162, 39, 0.25);
    position: relative;
    overflow: hidden;
}

.horse-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(201, 162, 39, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.horse-hero-inner {
    display: flex;
    gap: 28px;
    align-items: center;
}

.horse-hero-img {
    width: 160px;
    height: 160px;
    min-width: 160px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid rgba(201, 162, 39, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 162, 39, 0.12);
    transition: transform 0.3s, box-shadow 0.3s;
}

.horse-hero-img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(201, 162, 39, 0.2);
}

.horse-hero-info h1 {
    color: #f0e8d0;
    font-size: 30px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    line-height: 1.3;
    margin-bottom: 8px;
}

.horse-badge-pure {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.18), rgba(201, 162, 39, 0.06));
    border: 1px solid rgba(201, 162, 39, 0.4);
    color: #c9a227;
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.horse-hero-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.horse-hero-meta span {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #c8b99a;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* تبويبات */
.horse-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 22px;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-bottom: 1px solid rgba(201, 162, 39, 0.15);
    padding-bottom: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.horse-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
    background: transparent;
    border: none;
    padding: 11px 18px;
    font-family: 'Cairo', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #7a7060;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-btn:hover { color: #c9a227; }

.tab-btn.active {
    color: #c9a227;
    border-bottom-color: #c9a227;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeSlideIn 0.25s ease;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* بطاقة الحالة الصحية */
.health-summary-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    background: linear-gradient(135deg, #111 0%, #0d0d0d 100%);
    border: 1px solid rgba(201, 162, 39, 0.15);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hs-status {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 15px;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hs-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    align-content: center;
    color: #c8b99a;
    font-size: 13.5px;
    line-height: 1.6;
}

.hs-body strong { color: #c9a227; margin-left: 6px; }

/* كروت المعلومات */
.info-card {
    background: #0d0d0d;
    border: 1px solid rgba(201, 162, 39, 0.12);
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.info-card h3 {
    color: #c9a227;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

.info-card h4 {
    color: #c9a227;
    font-size: 14px;
    margin-bottom: 10px;
}

/* شبكة المعلومات */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    color: #c8b99a;
}

.info-grid > div {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 162, 39, 0.08);
    border-radius: 9px;
    font-size: 13.5px;
    line-height: 1.5;
    transition: border-color 0.2s;
}

.info-grid > div:hover {
    border-color: rgba(201, 162, 39, 0.2);
}

.info-grid > div strong {
    color: #9a8e7e;
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

/* نموذج الإضافة السريع */
.inline-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 10px;
    align-items: end;
}

.inline-form textarea,
.inline-form input,
.inline-form select {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid rgba(201, 162, 39, 0.18);
    border-radius: 9px;
    font-family: 'Cairo', sans-serif;
    font-size: 13.5px;
    background: rgba(255, 255, 255, 0.04);
    color: #e8dece;
    transition: border-color 0.18s, background 0.18s;
}

.inline-form textarea:focus,
.inline-form input:focus,
.inline-form select:focus {
    outline: none;
    border-color: #c9a227;
    background: rgba(201, 162, 39, 0.05);
}

.inline-form > input,
.inline-form > select {
    grid-column: span 1;
}

.inline-form textarea {
    grid-column: 1 / -1;
    min-height: 64px;
    resize: vertical;
}

.inline-form button {
    grid-column: 1 / -1;
    justify-self: start;
}

/* سجلات (صحة، لقاحات، شهادات) */
.records-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.record-card {
    background: #0d0d0d;
    border: 1px solid rgba(201, 162, 39, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 14px;
    align-items: start;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.record-card:hover {
    border-color: rgba(201, 162, 39, 0.22);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.record-type {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11.5px;
    font-weight: 700;
    text-align: center;
    padding: 4px;
    line-height: 1.3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.record-body h4 {
    color: #e8dece;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

.record-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: #7a7060;
    font-size: 12.5px;
    margin-bottom: 6px;
}

.record-body p {
    color: #9a9080;
    line-height: 1.7;
    font-size: 13.5px;
}

.btn-icon-delete {
    background: transparent;
    border: 1px solid rgba(192, 57, 43, 0.4);
    color: #c0392b;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.btn-icon-delete:hover {
    background: rgba(192, 57, 43, 0.12);
    border-color: #c0392b;
}

.empty-small {
    text-align: center;
    padding: 32px 20px;
    color: #7a7060;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(201, 162, 39, 0.12);
    border-radius: 10px;
    font-size: 14px;
}

/* معرض الصور */
.horse-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.15);
    background: #111;
    aspect-ratio: 1;
    transition: border-color 0.2s, transform 0.2s;
}

.gallery-item:hover { border-color: #c9a227; transform: scale(1.02); }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.3s;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-del {
    position: absolute;
    top: 6px;
    left: 6px;
}

/* فيديو */
.horse-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.video-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.15);
    background: #111;
}

.video-item video {
    width: 100%;
    display: block;
    max-height: 220px;
    object-fit: cover;
}

.video-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #0d0d0d;
    border-top: 1px solid rgba(201, 162, 39, 0.1);
}

.video-foot strong { color: #c8b99a; font-size: 13px; }

/* Responsive للصفحة */
@media (max-width: 768px) {
    .horse-hero-inner { flex-direction: column; text-align: center; }
    .horse-hero-img { width: 120px; height: 120px; min-width: 120px; }
    .horse-hero-info h1 { font-size: 24px; justify-content: center; }
    .horse-hero-meta { justify-content: center; }
    .health-summary-card { grid-template-columns: 1fr; }
    .hs-body { grid-template-columns: 1fr; }
    .record-card { grid-template-columns: 44px 1fr; }
    .record-card > form { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
    .info-grid { grid-template-columns: 1fr 1fr; }
    .inline-form { grid-template-columns: 1fr; }
    .inline-form textarea,
    .inline-form > input,
    .inline-form > select { grid-column: span 1; }
}

@media (max-width: 480px) {
    .info-grid { grid-template-columns: 1fr; }
    .horse-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .tab-btn { padding: 9px 13px; font-size: 12.5px; }
}
