:root {
    --black: #050508;
    --card-bg: rgba(18, 16, 26, 0.85);
    --gold: #dfb239;
    --gold-light: #fceabb;
    --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
    --gold-glow: rgba(223, 178, 57, 0.4);
    --white: #ffffff;
    --safe-bottom: env(safe-area-inset-bottom, 20px);
    --safe-top: env(safe-area-inset-top, 20px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    background: var(--black);
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    padding-bottom: var(--safe-bottom);
    position: relative;
    min-height: 100vh;
}

body.modal-open {
    overflow: hidden;
}

/* الخلفية السوداء واللمسات الذهبية الفاخرة */
.background-wrapper {
    position: fixed;
    overflow: hidden;
    isolation: isolate;
    pointer-events: none;
    inset: 0;
    z-index: 0;
    background-color: #050508;
    background-image: 
        radial-gradient(circle at 50% 15%, rgba(223, 178, 57, 0.18) 0%, transparent 60%),
        radial-gradient(circle at 10% 85%, rgba(180, 130, 30, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 85%, rgba(220, 180, 60, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #030205 0%, #050508 50%, #030205 100%);
}
.background-wrapper::before, .background-wrapper::after {
    content: ''; position: absolute; inset: -50%; pointer-events: none;
    background-image: radial-gradient(2px 2px at 40px 60px, rgba(252,234,187,.9) 50%, transparent 100%), radial-gradient(1px 1px at 120px 180px, rgba(223,178,57,.8) 50%, transparent 100%), radial-gradient(2px 2px at 220px 90px, rgba(255,255,255,.7) 50%, transparent 100%), radial-gradient(1px 1px at 300px 250px, rgba(223,178,57,.8) 50%, transparent 100%);
    background-size: 360px 300px; opacity: .45; animation: starDrift 90s linear infinite;
}
.background-wrapper::after { background-size: 510px 420px; opacity: .28; animation-duration: 140s; animation-direction: reverse; }
@keyframes starDrift { to { transform: translate3d(180px, 260px, 0); } }
@media (prefers-reduced-motion: reduce) { .background-wrapper::before, .background-wrapper::after { animation: none; } }

button, input, textarea, select {
    font-family: inherit;
    outline: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1200px, 92%);
    margin: auto;
    position: relative;
    z-index: 2;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: rgba(5, 5, 8, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(223, 178, 57, 0.3);
    padding-top: var(--safe-top);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.navbar {
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-img-wrapper {
    position: relative;
    padding: 2px;
    border-radius: 50%;
    background: var(--gold-gradient);
    box-shadow: 0 0 15px var(--gold-glow);
}

.logo img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    background: #000;
}

.logo-text {
    font-size: 19px;
    letter-spacing: 0.5px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    line-height: 1.2;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: #e0e0e0;
    font-size: 15px;
    font-weight: 600;
    transition: all .3s;
}

.nav-links a:hover {
    color: var(--gold-light);
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid var(--gold);
    transition: all .35s ease;
    font-size: 14px;
}

.btn-gold {
    color: #0d0a03;
    background: var(--gold-gradient);
    border: none;
    box-shadow: 0 6px 25px rgba(223, 178, 57, 0.4);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(223, 178, 57, 0.6);
}

.btn-outline {
    background: rgba(223, 178, 57, 0.06);
    color: var(--gold-light);
    border: 1px solid rgba(223, 178, 57, 0.5);
}

.btn-danger {
    background: #c0392b;
    color: #fff;
    border: none;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
}

/* HERO */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: calc(110px + var(--safe-top) + var(--announcement-height, 0px));
    padding-bottom: 50px;
}

/* شريط الإعلان الذهبي أعلى الموقع */
.announcement-bar {
    position: fixed; inset: env(safe-area-inset-top, 0px) 0 auto; z-index: 1002; min-height: 46px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    overflow: hidden; padding: 6px 16px; color: #211707; text-align: center;
    font-size: 15px; font-weight: 800; line-height: 1.5;
    background: linear-gradient(105deg, #9b711f 0%, #ead08a 22%, #fff8df 42%, #c39a43 62%, #f5e8c3 80%, #9b711f 100%);
    background-size: 220% 100%; box-shadow: 0 2px 16px rgba(219,181,88,.2);
    animation: announcementShimmer 9s ease-in-out infinite;
}
.announcement-bar[hidden] { display: none; }
.announcement-bar::after {
    content: ""; position: absolute; inset: -30% auto -30% -35%; width: 22%;
    transform: skewX(-22deg); pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
    animation: announcementSweep 8s ease-in-out infinite;
}
.announcement-bar span {
    position: relative; z-index: 1; flex: 0 0 auto; white-space: nowrap;
    animation: announcementTravel 22s linear infinite;
}
@keyframes announcementShimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes announcementSweep { 0%,35% { left: -35%; opacity: 0; } 55% { opacity: .7; } 85%,100% { left: 115%; opacity: 0; } }
@keyframes announcementTravel { from { transform: translateX(calc(-100% - 100vw)); } to { transform: translateX(100vw); } }
header { top: calc(var(--announcement-height, 0px) + env(safe-area-inset-top, 0px)); }
@media (max-width: 760px) { .announcement-bar { min-height: 42px; padding: 6px 12px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .announcement-bar, .announcement-bar::after, .announcement-bar span { animation: none; } }

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.badge-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(223, 178, 57, 0.12);
    border: 1px solid rgba(223, 178, 57, 0.4);
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.25;
    margin-bottom: 20px;
    font-weight: 900;
}

.hero h1 span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: #b5b5c3;
    font-size: 16px;
    max-width: 580px;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 14px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(223, 178, 57, 0.3), rgba(15, 12, 25, 0.9));
    border: 1px solid rgba(223, 178, 57, 0.6);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.hero-image-wrapper img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 20px;
    cursor: pointer;
    background: rgba(5, 5, 8, 0.8);
}

/* SECTIONS */
section {
    padding: 80px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 50px;
}

.section-head h2 {
    font-size: 34px;
    margin-bottom: 12px;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-head p {
    color: #a0a0b0;
    font-size: 15px;
}

/* PRODUCTS */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(223, 178, 57, 0.35);
    border-radius: 22px;
    overflow: hidden;
    transition: all 0.4s;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(223, 178, 57, 0.9);
}

.card-image {
    height: 240px;
    background: #08070d;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.image-overlay-icon {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 8, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: var(--gold-light);
    font-size: 28px;
}

.card-image:hover .image-overlay-icon,
.gallery-item:hover .image-overlay-icon {
    opacity: 1;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    color: var(--gold-light);
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 800;
}

.card-body p {
    color: #9090a0;
    font-size: 13px;
    flex-grow: 1;
    margin-bottom: 16px;
}

.price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 22px;
    color: #fff;
    font-weight: 900;
}

.currency-symbol {
    color: var(--gold);
    font-size: 18px;
    margin-right: 2px;
}

/* GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-card {
    background: var(--card-bg);
    border: 1px solid rgba(223, 178, 57, 0.35);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.35s ease;
}

.gallery-item {
    height: 230px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-info {
    padding: 14px;
    text-align: right;
}

.gallery-info h4 {
    color: var(--gold-light);
    font-size: 15px;
    font-weight: 700;
}

/* FOOTER */
footer {
    padding: 60px 0 25px;
    border-top: 1px solid rgba(223, 178, 57, 0.35);
    background: rgba(5, 4, 8, 0.95);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
    margin-bottom: 35px;
}

.footer-brand p {
    color: #9090a0;
    margin-top: 12px;
    font-size: 14px;
}

footer h3 {
    color: var(--gold-light);
    margin-bottom: 16px;
    font-size: 17px;
    font-weight: 800;
}

.social-icons-footer {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}

.social-icons-footer a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(223, 178, 57, 0.35);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    transition: all .35s;
}

.social-icons-footer a:hover {
    background: var(--gold-gradient);
    color: #0d0a03;
    transform: translateY(-4px);
}

.copy {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    text-align: center;
    color: #707080;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-trigger-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(223, 178, 57, 0.4);
    color: var(--gold-light);
    padding: 8px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

/* MODALS & PANELS */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(2, 2, 5, 0.92);
    backdrop-filter: blur(20px);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-box {
    background: rgba(18, 16, 26, 0.96);
    border: 1px solid rgba(223, 178, 57, 0.5);
    border-radius: 24px;
    width: min(800px, 100%);
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.95);
}

.admin-panel {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(3, 2, 8, 0.97);
    backdrop-filter: blur(25px);
    overflow-y: auto;
    padding: max(20px, var(--safe-top)) 20px max(30px, var(--safe-bottom));
}

.admin-inner {
    width: min(900px, 100%);
    margin: 0 auto;
    background: rgba(16, 14, 22, 0.96);
    border: 1px solid rgba(223, 178, 57, 0.5);
    border-radius: 22px;
    padding: 25px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    border-bottom: 1px solid #222;
    padding-bottom: 14px;
}

.admin-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 22px;
    border-bottom: 1px solid #222;
}

.tab-btn {
    background: #121018;
    color: #aaa;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid #252230;
    white-space: nowrap;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.tab-btn.active {
    background: var(--gold-gradient);
    color: #0d0a03;
    border: none;
    font-weight: 800;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.admin-stats-heading { margin: 0 0 16px; color: var(--gold); }
.visit-counter-card {
    display: flex; align-items: center; gap: 16px; padding: 20px;
    border: 1px solid rgba(223, 178, 57, .28); border-radius: 16px;
    background: linear-gradient(135deg, rgba(223, 178, 57, .09), rgba(18, 16, 24, .96) 58%);
}
.visit-counter-icon {
    display: grid; place-items: center; flex: 0 0 50px; width: 50px; height: 50px;
    border: 1px solid rgba(223, 178, 57, .4); border-radius: 14px;
    color: var(--gold-light); font-size: 19px;
}
.visit-counter-copy { display: grid; gap: 5px; min-width: 0; }
.visit-counter-label { color: #c9c5d0; font-size: 13px; }
.visit-counter-copy strong { color: var(--gold-light); font-size: clamp(28px, 6vw, 42px); line-height: 1.1; }
.visit-counter-today { color: #aaa; font-size: 13px; }
.visit-counter-today b { color: #f4e6b4; }
.visit-counter-refresh { margin-inline-start: auto; flex: 0 0 auto; }
.visit-counter-note, .visit-counter-status { margin: 12px 2px 0; color: #a9a5b0; font-size: 12px; line-height: 1.8; }
.visit-counter-status:not(:empty) { color: #f0c969; }
@media (max-width: 520px) {
    .visit-counter-card { align-items: flex-start; gap: 11px; padding: 14px; flex-wrap: wrap; }
    .visit-counter-icon { flex-basis: 42px; width: 42px; height: 42px; }
    .visit-counter-copy { flex: 1; }
    .visit-counter-refresh { margin-inline-start: auto; }
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--gold-light);
    margin-bottom: 8px;
    font-weight: 700;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 14px;
    background: #08070d;
    border: 1px solid #2d2938;
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
}

.image-preview-box {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    border: 1px dashed var(--gold);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.image-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.whatsapp-float {
    position: fixed;
    left: 22px;
    bottom: calc(22px + var(--safe-bottom));
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.admin-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #121018;
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #222;
}

.admin-item-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-item-info img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

#toastAlert {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gold-gradient);
    color: #0d0a03;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
}

/* لمسات فاخرة: هالة الشعار، لمعان ذهبي، وتفاصيل راقية متناسقة */
.logo-img-wrapper {
    isolation: isolate;
    box-shadow: 0 0 16px rgba(223,178,57,.42), 0 0 38px rgba(223,178,57,.14);
    animation: logoAura 4.5s ease-in-out infinite;
}
.logo-img-wrapper::before {
    content: ""; position: absolute; inset: -4px; border-radius: inherit; z-index: -1;
    background: conic-gradient(from 0deg, #8b6418, #fceabb, #b38728, #fff6ce, #916717, #8b6418);
    animation: logoColorOrbit 5s linear infinite;
}
.logo img { border: 2px solid #08070b; }
.logo-text { filter: drop-shadow(0 0 10px rgba(223,178,57,.18)); }
@keyframes logoColorOrbit { to { transform: rotate(360deg); } }
@keyframes logoAura { 50% { box-shadow: 0 0 24px rgba(223,178,57,.65), 0 0 52px rgba(223,178,57,.2); } }
header { background: rgba(5,5,8,.78); border-bottom-color: rgba(223,178,57,.24); }
.nav-links a { position: relative; padding: 8px 0; }
.nav-links a::after { content: ""; position: absolute; right: 0; bottom: 0; width: 0; height: 1px; background: var(--gold-gradient); transition: width .3s ease; }
.nav-links a:hover::after { width: 100%; }
.hero { position: relative; }
.hero::before { content: "✦"; position: absolute; inset-inline-start: 7%; top: 30%; color: rgba(252,234,187,.62); font-size: 22px; text-shadow: 0 0 18px var(--gold); animation: starPulse 3s ease-in-out infinite; }
.hero-image-wrapper { box-shadow: 0 20px 70px rgba(0,0,0,.72), 0 0 38px rgba(223,178,57,.12); }
.hero-image-wrapper::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(252,234,187,.23); border-radius: 21px; pointer-events: none; }
@keyframes starPulse { 50% { opacity: .35; transform: scale(.8) rotate(35deg); } }
.section-head h2 { text-shadow: 0 0 28px rgba(223,178,57,.16); }
.section-head::after { content: "✦  ━━━━━━━━━  ✦"; display: block; margin: 12px auto 0; width: max-content; color: rgba(223,178,57,.58); font-size: 10px; letter-spacing: 3px; }
.card, .gallery-card { backdrop-filter: blur(12px); box-shadow: 0 14px 42px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.025); }
.card:hover, .gallery-card:hover { transform: translateY(-7px); box-shadow: 0 20px 48px rgba(0,0,0,.58), 0 0 24px rgba(223,178,57,.1); }
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after { content: ""; position: absolute; top: -60%; left: -45%; width: 30%; height: 220%; transform: rotate(25deg); background: rgba(255,255,255,.3); transition: left .55s ease; }
.btn-gold:hover::after { left: 125%; }
footer { border-top-color: rgba(223,178,57,.22); box-shadow: 0 -22px 60px rgba(0,0,0,.22); }
@keyframes starDrift { to { transform: translate3d(180px, 260px, 0); } }
@media (max-width: 760px) {
    .hero::before { inset-inline-start: 4%; top: 18%; }
    .navbar { gap: 10px; }
    .logo { gap: 9px; }
    .logo img { width: 42px; height: 42px; }
    .logo-text { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .logo-img-wrapper, .logo-img-wrapper::before, .logo-text, .hero::before { animation: none; }
    .btn-gold::after { display: none; }
}


/* طبقة المجرة الذهبية والتفاصيل السينمائية */
.background-wrapper {
    background-image:
      radial-gradient(ellipse at 50% 7%, rgba(223,178,57,.16), transparent 36%),
      radial-gradient(ellipse at 7% 42%, rgba(159,111,28,.10), transparent 35%),
      radial-gradient(ellipse at 94% 60%, rgba(223,178,57,.09), transparent 34%),
      radial-gradient(circle at 50% 15%, rgba(223,178,57,.12) 0%, transparent 60%),
      linear-gradient(180deg, #030205 0%, #050508 50%, #030205 100%);
}
header::before { content:""; display:block; position:absolute; top:0; left:0; right:0; height:1px; background:linear-gradient(90deg,transparent,rgba(252,234,187,.75),var(--gold),transparent); opacity:.72; }
.hero { isolation:isolate; }
.hero::after { content:""; position:absolute; z-index:-1; width:min(70vw,760px); aspect-ratio:1; border-radius:50%; left:50%; top:50%; transform:translate(-50%,-48%); background:radial-gradient(circle,rgba(164,117,31,.12),rgba(49,35,10,.07) 34%,transparent 68%); filter:blur(16px); pointer-events:none; }
.hero-image-stage { position:relative; isolation:isolate; }
.hero-image-stage::before { content:""; position:absolute; z-index:-1; inset:-8% -4%; border:1px solid rgba(223,178,57,.16); border-radius:50%; transform:rotate(-12deg); box-shadow:0 0 50px rgba(223,178,57,.08), inset 0 0 35px rgba(223,178,57,.04); animation:orbitFloat 12s ease-in-out infinite alternate; }
.hero-image-stage::after { content:"✦"; position:absolute; z-index:2; right:5%; top:9%; color:#fceabb; font-size:17px; text-shadow:0 0 18px #dfb239; animation:starPulse 3.6s ease-in-out infinite; pointer-events:none; }
@keyframes orbitFloat { to { transform:rotate(-5deg) scale(1.025); opacity:.65; } }
.hero h1 span { filter:drop-shadow(0 0 16px rgba(223,178,57,.19)); }
.badge-gold { box-shadow:0 0 24px rgba(223,178,57,.08),inset 0 0 18px rgba(223,178,57,.05); }
.section-head { position:relative; }
.section-head h2 { position:relative; display:inline-block; }
.section-head h2::before, .section-head h2::after { content:"✦"; position:absolute; top:50%; color:rgba(252,234,187,.62); font-size:13px; text-shadow:0 0 14px rgba(223,178,57,.75); animation:starPulse 4s ease-in-out infinite; }
.section-head h2::before { right:calc(100% + 18px); }
.section-head h2::after { left:calc(100% + 18px); }
.card, .gallery-card { position:relative; isolation:isolate; }
.card::before, .gallery-card::before { content:""; position:absolute; inset:0; padding:1px; border-radius:inherit; background:linear-gradient(135deg,rgba(252,234,187,.38),transparent 27%,transparent 70%,rgba(223,178,57,.3)); -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude; pointer-events:none; z-index:3; opacity:.65; transition:opacity .35s ease; }
.card:hover::before, .gallery-card:hover::before { opacity:1; }
.card-image::after, .gallery-item::after { content:""; position:absolute; inset:45% 0 0; background:linear-gradient(transparent,rgba(5,5,8,.28)); pointer-events:none; }
.price { text-shadow:0 0 16px rgba(223,178,57,.14); }
.admin-trigger-btn:hover { box-shadow:0 0 22px rgba(223,178,57,.16); border-color:rgba(252,234,187,.72); }
.whatsapp-float { transition:transform .25s ease, box-shadow .25s ease; }
.whatsapp-float:hover { transform:translateY(-4px) scale(1.05); box-shadow:0 12px 34px rgba(37,211,102,.55); }
.copy { border-color:rgba(223,178,57,.13); }
@media (max-width:760px) {
    .hero-image-stage::before { inset:-5% -1%; }
    .section-head h2::before { right:calc(100% + 8px); }
    .section-head h2::after { left:calc(100% + 8px); }
}
@media (prefers-reduced-motion:reduce) {
    .hero-image-stage::before, .hero-image-stage::after, .section-head h2::before, .section-head h2::after { animation:none; }
}

/* تخطيط مرن للهواتف والأجهزة اللوحية */
html, body { width: 100%; max-width: 100%; }
body { overflow-x: clip; }
.logo-img-wrapper { flex: 0 0 auto; }
.logo-img-wrapper {
    position: relative; isolation: isolate; overflow: visible;
    width: 48px; height: 48px; flex: 0 0 48px; padding: 2px;
    border: 1px solid rgba(244,226,184,.72); border-radius: 50%;
    background: linear-gradient(145deg, #fff8df 0%, #c69a42 28%, #e5e9ef 52%, #d5ad52 76%, #8d6418 100%);
    box-shadow: 0 0 0 1px rgba(218,190,130,.2), 0 0 12px rgba(213,190,145,.2), 0 0 23px rgba(205,169,88,.11);
    animation: logoAura 6s ease-in-out infinite;
}
.logo-img-wrapper::before {
    display: block; content: ""; position: absolute; z-index: 0; inset: -2px;
    border-radius: inherit;
    background: conic-gradient(from 0deg, #aa8131, #f8e8b9, #cbd0d8, #fffdf4, #c69a42, #e8eaf0, #aa8131);
    opacity: .88; filter: blur(.7px);
    animation: logoColorOrbit 12s linear infinite;
}
.logo .logo-img-wrapper img {
    position: relative; z-index: 1; display: block; visibility: visible; opacity: 1;
    width: 100%; height: 100%; padding: 2px; border: 0; border-radius: 50%;
    object-fit: contain; object-position: center; background: #050508;
}
.logo-text {
    font-size: clamp(16px, 1.4vw, 20px); font-weight: 800; letter-spacing: .055em;
    line-height: 1.25; white-space: nowrap;
    background: linear-gradient(110deg, #bd8f32 0%, #fff0b9 22%, #cbd0d8 43%, #fffdf5 52%, #d5aa4c 72%, #f5e6bd 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 8px rgba(205,180,125,.2));
    animation: logoTextFlow 8s ease-in-out infinite;
}
@keyframes logoTextFlow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes logoAura {
    50% { box-shadow: 0 0 0 1px rgba(240,225,190,.3), 0 0 15px rgba(219,205,171,.3), 0 0 27px rgba(203,164,81,.15); }
}
img { height: auto; }
button, .btn, .social-icons-footer a { touch-action: manipulation; }

@media (max-width: 760px) {
    :root { --safe-bottom: env(safe-area-inset-bottom, 0px); }
    .container { width: min(100% - 28px, 600px); }
    header { padding-top: 0; }
    .navbar {
        min-height: 0; padding: 9px 0 8px; display: grid;
        grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px;
    }
    .logo { min-width: 0; gap: 9px; }
    .logo-img-wrapper { width: 44px; height: 44px; flex: 0 0 44px; }
    .logo .logo-img-wrapper img { width: 100%; height: 100%; }
    .logo-text { min-width: 0; font-size: clamp(12px, 3.7vw, 16px); letter-spacing: .015em; overflow-wrap: normal; }
    .navbar > .btn { grid-column: 2; grid-row: 1; padding: 9px 13px; min-height: 42px; font-size: 12px; white-space: nowrap; }
    .nav-links {
        grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0;
        justify-content: flex-start; gap: clamp(14px, 5vw, 24px);
        overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none;
        padding: 1px 1px 3px; white-space: nowrap;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links a { flex: 0 0 auto; padding: 4px 0; font-size: 13px; }
    .hero {
        min-height: 0; padding-top: calc(142px + env(safe-area-inset-top, 0px) + var(--announcement-height, 0px));
        padding-bottom: 30px;
    }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; text-align: center; }
    .hero-text { min-width: 0; }
    .badge-gold { max-width: 100%; justify-content: center; margin-bottom: 15px; font-size: 12px; }
    .hero h1 { font-size: clamp(29px, 8vw, 42px); margin-bottom: 14px; }
    .hero p { margin: 0 auto 22px; font-size: 15px; }
    .hero-buttons { justify-content: center; gap: 10px; }
    .hero-buttons .btn { min-height: 46px; padding: 11px 16px; }
    .hero-image-wrapper { padding: 8px; border-radius: 20px; }
    .hero-image-wrapper::after { inset: 5px; border-radius: 15px; }
    .hero-image-wrapper img { max-height: min(62vh, 390px); border-radius: 14px; }
    section { padding: 52px 0; }
    .section-head { margin-bottom: 28px; padding-inline: 8px; }
    .section-head h2 { font-size: clamp(25px, 7vw, 32px); }
    .section-head p { font-size: 13px; }
    .section-head h2::before { right: calc(100% + 8px); }
    .section-head h2::after { left: calc(100% + 8px); }
    .product-grid, .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .card, .gallery-card { width: 100%; border-radius: 18px; }
    .card:hover, .gallery-card:hover { transform: none; }
    .card-image { height: clamp(220px, 66vw, 330px); }
    .card-body { padding: 16px; }
    .card-body h3 { font-size: 17px; }
    .card-body p { font-size: 13px; }
    .price { font-size: 20px; }
    .gallery-item { height: clamp(220px, 65vw, 340px); }
    footer { padding: 42px 0 20px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 25px; margin-bottom: 24px; }
    .copy { justify-content: center; text-align: center; font-size: 12px; }
    .admin-trigger-btn { min-height: 42px; padding: 9px 16px; }
    .whatsapp-float { width: 54px; height: 54px; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); font-size: 26px; }
    #toastAlert { right: 14px; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); text-align: center; padding: 12px 16px; }
    .modal-overlay { padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px)); align-items: flex-start; }
    .modal-box { margin: auto 0; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; border-radius: 18px; }
    .admin-panel { padding: max(12px, env(safe-area-inset-top, 0px)) 10px max(12px, env(safe-area-inset-bottom, 0px)); }
    .admin-inner { padding: 16px; border-radius: 17px; }
    .admin-header { align-items: flex-start; gap: 12px; }
    .admin-header h3 { font-size: 17px; }
    .admin-header .btn { padding: 8px 10px; font-size: 11px; }
    .admin-tabs { gap: 8px; }
    .tab-btn { padding: 9px 13px; font-size: 13px; }
    .admin-item-row { gap: 10px; padding: 10px; }
    .admin-item-info { min-width: 0; gap: 9px; }
    .admin-item-info > div { min-width: 0; overflow-wrap: anywhere; }
}

@media (max-width: 380px) {
    .container { width: min(100% - 22px, 600px); }
    .navbar { column-gap: 7px; }
    .logo { gap: 7px; }
    .logo-img-wrapper { width: 40px; height: 40px; flex-basis: 40px; }
    .logo .logo-img-wrapper img { width: 100%; height: 100%; }
    .logo-text { font-size: 12px; }
    .navbar > .btn { padding: 8px 10px; font-size: 11px; }
    .nav-links { gap: 13px; }
    .nav-links a { font-size: 12px; }
    .price-box { gap: 8px; }
    .price-box .btn { padding: 8px 10px; }
}

@media (min-width: 761px) and (max-width: 1020px) {
    .container { width: min(94%, 920px); }
    .navbar { gap: 12px; }
    .nav-links { gap: 15px; }
    .nav-links a { font-size: 13px; }
    .hero-grid { gap: 30px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (orientation: landscape) and (max-width: 900px) {
    .hero { min-height: 0; padding-top: calc(130px + var(--announcement-height, 0px)); }
    .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); text-align: right; }
    .hero-image-wrapper img { max-height: 55vh; }
}
@media (prefers-reduced-motion: reduce) {
    .logo-img-wrapper, .logo-img-wrapper::before, .logo-text { animation: none; }
}
