@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    --font-family: 'Tajawal', sans-serif;
}

[data-theme="dark"] {
    --primary-color: #d4af37; /* Ø°Ù‡Ø¨ÙŠ */
    --primary-hover: #b5952f;
    --bg-dark: #1e1e1e; /* Ø±ØµØ§ØµÙŠ Ø¯Ø§ÙƒÙ† */
    --card-bg: #f4f3ed; /* Ø§ÙˆÙ ÙˆØ§ÙŠØª (Off-white) Ù„Ù„Ø¨Ø·Ø§Ù‚Ø© */
    --card-border: #e6e4dc;
    --text-main: #ffffff;
    --text-muted: #cccccc;
    --bg-overlay: rgba(30, 30, 30, 0.85);
}

[data-theme="light"] {
    --primary-color: #d4af37; /* ذهبي نقي */
    --primary-hover: #b5952f;
    --bg-dark: #dfdcd5; /* أوف وايت داكن */
    --card-bg: #e0e0e0; /* رصاصي للبطاقة */
    --card-border: #cccccc;
    --text-main: #2c2c2c;
    --text-muted: #666666;
    --bg-overlay: rgba(223, 220, 213, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; /* قفل السحب يمنة ويسرى */
    width: 100%;
    position: relative;
    overscroll-behavior-y: none;
    touch-action: pan-y;
}

input, textarea, select {
    font-size: 16px !important;
}

@font-face {
    font-family: 'Fatima';
    src: url('fatima.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Fatima', 'Tajawal', 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    background-image: radial-gradient(circle at 50% 0%, rgba(197, 160, 89, 0.08) 0%, transparent 60%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: background-color 0.3s, color 0.3s;
    min-height: 100vh;
}

/* Advanced Background Decorations */
.bg-decorations {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}
.bg-letter {
    position: absolute;
    font-family: 'Fatima', 'Amiri', serif;
    color: var(--primary-color);
    opacity: 0.04;
}
.bg-letter.l-1 {
    top: 5%;
    right: -2%;
    font-size: 35vw;
    transform: rotate(-15deg);
}
.bg-letter.l-2 {
    bottom: 5%;
    left: -2%;
    font-size: 40vw;
    transform: rotate(20deg);
}
.bg-letter.l-3 {
    top: 40%;
    left: -10%;
    font-size: 25vw;
    transform: rotate(-30deg);
}
.bg-letter.l-4 {
    bottom: -10%;
    right: 15%;
    font-size: 30vw;
    transform: rotate(10deg);
}
.bg-letter.l-5 {
    top: -5%;
    left: 20%;
    font-size: 20vw;
    transform: rotate(45deg);
}
.bg-letter.l-6 {
    top: 60%;
    right: -10%;
    font-size: 28vw;
    transform: rotate(-40deg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Entrance Animations */
@keyframes slideDownFader {
    0% { opacity: 0; transform: translateY(-40px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes slideUpFader {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Header Navbar */
.top-navbar {
    background: transparent;
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
    padding: 15px 0;
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 900;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}
.nav-start { justify-content: flex-start; }
.nav-end { justify-content: flex-end; }

.nav-btn, .nav-btn-icon {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-main);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
}
.nav-btn:hover, .nav-btn-icon:hover {
    background: rgba(255,255,255,0.1);
}
.nav-btn {
    padding: 6px 12px;
    gap: 8px;
    font-size: 0.9rem;
}
.nav-btn-icon {
    width: 34px; height: 34px;
    border-radius: 50%;
}
.nav-msg {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
    white-space: nowrap;
}
.contact-btn {
    padding: 6px 16px;
    border-color: rgba(255,255,255,0.15);
}
.nav-logo-small {
    width: 38px; height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(197, 160, 89, 0.4);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 0;
    opacity: 0;
}
body.play-animations .hero {
    animation: slideDownFader 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
/* Luxury Hero Styling */
.luxury-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.hero-logo-wrapper {
    position: relative;
    padding: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), transparent 60%);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    margin-bottom: 25px;
}
.hero-logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: contain;
    display: block;
    border: 3px solid var(--bg-dark);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    animation: luxuryFloat 4s ease-in-out infinite;
}
@keyframes luxuryFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}
#hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
    letter-spacing: 2px;
    text-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
#hero-desc {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-top: 5px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
    font-family: 'Fatima', 'Tajawal', sans-serif;
}

/* Categories */
.categories {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 30px;
    padding-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.categories::-webkit-scrollbar { display: none; }
.category-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.3s;
}
.category-wrapper:hover .category-img-box {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.4);
    border-color: var(--primary-color);
}
.category-img-box {
    width: 150px;
    height: 150px;
    border-radius: 24px;
    background-color: rgba(63, 53, 44, 0.6);
    border: 2px solid transparent;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    background-size: cover;
    background-position: center;
    transition: 0.3s ease;
}
.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
}

.back-to-sections-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
    transition: 0.3s;
    font-family: inherit;
    grid-column: 1 / -1;
    justify-self: start;
}
.back-to-sections-btn:hover {
    background: rgba(184, 141, 91, 0.1);
}

.fade-in-up-animation {
    animation: fadeInUpProduct 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes fadeInUpProduct {
    0% { opacity: 0; transform: translateY(30px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding-bottom: 100px;
}

/* Product Card */
.product-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    color: #000000;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 60%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
    z-index: 5;
    pointer-events: none;
}
.product-card:hover::before {
    left: 200%;
    transition: all 0.7s ease;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(197, 160, 89, 0.25);
    border-color: var(--primary-color);
}
.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #fff;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product-card:hover .card-image {
    transform: scale(1.12);
}
.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.card-title {
    font-size: 1.2rem;
    font-weight: 700;
}
.card-price {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
}
.card-add-btn {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    margin-top: auto;
}
.card-add-btn:hover {
    background: rgba(184, 141, 91, 0.1);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-overlay);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}
.modal-overlay.active {
    opacity: 1; pointer-events: auto;
}
.modal-content {
    background: var(--card-bg);
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: 0.3s;
    color: #000000;
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.6);
    border: none;
    color: var(--text-main);
    width: 45px; height: 45px;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.modal-close:hover {
    background: rgba(231, 76, 60, 0.8);
    transform: scale(1.1);
}
.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #fff;
}
.modal-body {
    padding: 20px;
    overflow-y: auto;
}
.modal-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-title { font-size: 1.4rem; font-weight: 700; }
.modal-price { color: var(--primary-color); font-size: 1.2rem; font-weight: 700; }

.options-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.option-row {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.option-checkbox {
    margin-inline-end: 15px;
    width: 18px; height: 18px;
    accent-color: var(--primary-color);
}
.option-name { flex: 1; font-size: 1rem; }
.option-price { color: var(--primary-color); font-size: 0.95rem; }

.quantity-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}
.quantity-controls {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    background: #e0e0e0;
    border: none;
    border-radius: 30px;
    padding: 0 5px;
    height: 40px;
}
.qty-btn {
    background: transparent !important;
    border: none !important;
    color: #000000 !important;
    font-size: 1.5rem !important;
    cursor: pointer;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}
.qty-value {
    margin: 0 15px !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
    color: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding-top: 3px;
}

.modal-add-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--text-main);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: inherit;
}

/* Floating Cart */
.floating-cart {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
    cursor: pointer;
    z-index: 100;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    animation: floatingCartPulse 2s infinite;
}
@keyframes floatingCartPulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}
.floating-cart:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.7);
    border-color: rgba(255, 255, 255, 0.8);
}
[dir="ltr"] .floating-cart {
    left: auto; right: 30px;
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}
.custom-checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid var(--bg-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Footer Styling */
.luxury-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}
.luxury-footer p {
    margin: 0;
}
.privex-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}
.privex-link:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-color);
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0; left: -450px;
    width: 450px; max-width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 1001;
    transition: left 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex; flex-direction: column;
    box-shadow: 5px 0 30px rgba(0,0,0,0.5);
}
.modal-overlay.active .cart-drawer { left: 0; }
[dir="ltr"] .cart-drawer { left: auto; right: -450px; box-shadow: -5px 0 30px rgba(0,0,0,0.5); }
[dir="ltr"] .modal-overlay.active .cart-drawer { right: 0; }

.cart-header { padding: 25px; border-bottom: 1px solid var(--card-border); display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.02); }
.cart-header h2 { font-size: 1.5rem; font-weight: 700; color: var(--text-main); }
.cart-items { flex: 1; overflow-y: auto; padding: 25px; }
.cart-footer { padding: 25px; border-top: 1px solid var(--card-border); background: rgba(0,0,0,0.02); }
.cart-item { display: flex; margin-bottom: 20px; padding: 15px; background: transparent; border: 1px solid var(--card-border); border-radius: 16px; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.03); transition: transform 0.3s; }
.cart-item:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.cart-item img { width: 75px; height: 75px; object-fit: cover; border-radius: 12px; margin-inline-end: 15px; }
.cart-item-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 5px; color: var(--text-main); }
.cart-item-price { color: var(--primary-color); font-weight: bold; }

.cart-remove-btn {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}
.cart-remove-btn:hover {
    background: #e74c3c;
    color: var(--text-main);
}
.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    border-radius: 50%;
}
.icon-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--primary-color);
}

/* Settings Switch Toggle */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch .slider {
    background-color: #333;
}
.switch .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
.switch input:checked + .slider {
    background-color: var(--primary-color);
}
.switch input:checked + .slider:before {
    transform: translateX(26px);
}

/* Luxury Language Flags */
.lang-flags-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 40px;
    padding: 6px 12px;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}
.lang-flag-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    border: 2px solid transparent;
}
.lang-flag-btn img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.lang-flag-btn:hover {
    opacity: 0.8;
}
.lang-flag-btn.active {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
    transform: scale(1.1);
}

/* Gear Animation for Maintenance */
.gear-anim {
    animation: spin-slow 5s linear infinite;
}
@keyframes spin-slow {
    100% { transform: rotate(360deg); }
}

html[lang="ar"] .en-text { display: none; }
html[lang="en"] .ar-text { display: none; }

/* Dashboard Styles */
.dashboard-layout {
    --bg-dark: #000000; /* خلفية الداشبورد */
    --card-bg: #111111; /* لون البطاقات بالداشبورد */
    --card-border: #333333;
    --text-main: #d4af37; /* اللون الذهبي أو الافتراضي */
    
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-dark);
    color: var(--text-main);
}
.sidebar {
    width: 280px;
    background: var(--card-bg);
    border-inline-end: 1px solid var(--card-border);
    padding: 30px 20px;
    overflow-y: auto;
}
.sidebar h2 {
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 1.8rem;
    text-align: center;
}
.nav-links {
    list-style: none;
    padding: 0;
}
.nav-links li {
    margin-bottom: 15px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    display: block;
    padding: 12px 20px;
    border-radius: 12px;
    transition: 0.3s;
    font-size: 1.1rem;
    font-weight: 500;
}
.nav-links a:hover, .nav-links a.active {
    background: var(--primary-color);
    color: #000;
}
.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}
.main-content h1 {
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--text-main);
}
.form-group {
    margin-bottom: 25px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-main);
}
.form-control {
    width: 100%;
    max-width: 600px;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.1);
}
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}
.admin-btn {
    padding: 12px 30px;
    background: var(--primary-color);
    color: #000000;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
}
.admin-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}
.admin-list {
    margin-top: 40px;
    display: grid;
    gap: 15px;
}
.admin-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-item-title {
    font-size: 1.2rem;
    font-weight: 700;
}
.admin-item-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 5px;
}
.admin-item-actions button {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
    font-weight: 600;
}
.admin-item-actions button:hover {
    background: #e74c3c;
    color: white;
}
.badge {
    background: rgba(184, 141, 91, 0.2);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-inline-end: 10px;
    border: 1px solid var(--primary-color);
}

/* Celebration Mode Emoji Animation */
.emoji-flake {
    position: fixed;
    top: -50px;
    z-index: 1000;
    font-size: 24px;
    user-select: none;
    pointer-events: none;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
    }
}

/* Theme Toggle Button Animation */
.theme__icon {
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: 12px;
  background-color: transparent;
  border: 1px solid rgba(197, 160, 89, 0.3);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
}
.theme__icon:hover {
  background: rgba(255,255,255,0.05);
}

.theme__icon > :nth-child(1) {
  width: 16px;
  height: 16px;
  border-radius: 24px;
  border: 3px solid var(--primary-color);
  background-color: var(--bg-dark);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: width .4s, height .4s, border .4s, background-color .4s;
  z-index: 10;
}

.theme__icon:hover > :nth-child(1) {
  width: 20px;
  height: 20px;
  border: 1px solid var(--text-main);
  background-color: var(--text-main);
}

.theme__icon > :nth-child(3) {
  width: 4px;
  height: 4px;
  border-radius: 9px;
  background-color: var(--primary-color);
  position: absolute;
  top: 4px;
  right: 4px;
  transition: width .6s, height .6s;
  transition-delay: .08s;
  z-index: 10;
}

.theme__icon:hover > :nth-child(3) {
  width: 18px;
  height: 18px;
}

.theme__icon > :nth-child(2) {
  width: 24px;
  height: 24px;
  border-radius: 24px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform .4s;
}

.theme__icon:hover > :nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg) scale(.8);
}

.theme__icon > :nth-child(2) span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--text-main);
  position: relative;
}

.theme__icon > :nth-child(2) > :nth-child(1) {
  top: calc(50% - 1px);
}

.theme__icon > :nth-child(2) > :nth-child(2) {
  top: calc(50% - 3px);
  transform: rotate(90deg);
}

.theme__icon > :nth-child(2) > :nth-child(3) {
  top: calc(50% - 5px);
  transform: rotate(45deg);
}

.theme__icon > :nth-child(2) > :nth-child(4) {
  top: calc(50% - 7px);
  transform: rotate(-45deg);
}

/* Premium Language Button */
.lang-toggle {
    position: relative;
    background: rgba(197, 160, 89, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.4);
    color: var(--text-main);
    padding: 8px 18px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: inherit;
}

.lang-toggle::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    z-index: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[dir="ltr"] .lang-toggle::before {
    transform-origin: left;
}

.lang-toggle:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}
[dir="ltr"] .lang-toggle:hover::before {
    transform-origin: right;
}

.lang-toggle span, .lang-toggle svg {
    position: relative;
    z-index: 1;
    transition: color 0.4s ease, transform 0.4s ease;
}

.lang-toggle:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.3);
}

.lang-toggle:hover span, .lang-toggle:hover svg {
    color: #ffffff; 
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
    font-weight: 600;
}
.admin-item-actions button:hover {
    background: #e74c3c;
    color: white;
}
.badge {
    background: rgba(184, 141, 91, 0.2);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-inline-end: 10px;
    border: 1px solid var(--primary-color);
}

/* Celebration Mode Emoji Animation */
.emoji-flake {
    position: fixed;
    top: -50px;
    z-index: 1000;
    font-size: 24px;
    user-select: none;
    pointer-events: none;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
    }
}

/* Theme Toggle Button Animation */
.theme__icon {
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: 12px;
  background-color: transparent;
  border: 1px solid rgba(197, 160, 89, 0.3);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
}
.theme__icon:hover {
  background: rgba(255,255,255,0.05);
}

.theme__icon > :nth-child(1) {
  width: 16px;
  height: 16px;
  border-radius: 24px;
  border: 3px solid var(--primary-color);
  background-color: var(--bg-dark);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: width .4s, height .4s, border .4s, background-color .4s;
  z-index: 10;
}

.theme__icon:hover > :nth-child(1) {
  width: 20px;
  height: 20px;
  border: 1px solid var(--text-main);
  background-color: var(--text-main);
}

.theme__icon > :nth-child(3) {
  width: 4px;
  height: 4px;
  border-radius: 9px;
  background-color: var(--primary-color);
  position: absolute;
  top: 4px;
  right: 4px;
  transition: width .6s, height .6s;
  transition-delay: .08s;
  z-index: 10;
}

.theme__icon:hover > :nth-child(3) {
  width: 18px;
  height: 18px;
}

.theme__icon > :nth-child(2) {
  width: 24px;
  height: 24px;
  border-radius: 24px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform .4s;
}

.theme__icon:hover > :nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg) scale(.8);
}

.theme__icon > :nth-child(2) span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--text-main);
  position: relative;
}

.theme__icon > :nth-child(2) > :nth-child(1) {
  top: calc(50% - 1px);
}

.theme__icon > :nth-child(2) > :nth-child(2) {
  top: calc(50% - 3px);
  transform: rotate(90deg);
}

.theme__icon > :nth-child(2) > :nth-child(3) {
  top: calc(50% - 5px);
  transform: rotate(45deg);
}

.theme__icon > :nth-child(2) > :nth-child(4) {
  top: calc(50% - 7px);
  transform: rotate(-45deg);
}

/* Premium Language Button */
.lang-toggle {
    position: relative;
    background: rgba(197, 160, 89, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.4);
    color: var(--text-main);
    padding: 8px 18px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: inherit;
}

.lang-toggle::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    z-index: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[dir="ltr"] .lang-toggle::before {
    transform-origin: left;
}

.lang-toggle:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}
[dir="ltr"] .lang-toggle:hover::before {
    transform-origin: right;
}

.lang-toggle span, .lang-toggle svg {
    position: relative;
    z-index: 1;
    transition: color 0.4s ease, transform 0.4s ease;
}

.lang-toggle:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.3);
}

.lang-toggle:hover span, .lang-toggle:hover svg {
    color: #ffffff; 
}
.lang-toggle:active span, .lang-toggle:active svg {
    transform: scale(0.95);
}

/* Entrance Splash Screen */
.splash-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: #111111; 
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.8, 0, 0.2, 1), transform 0.8s cubic-bezier(0.8, 0, 0.2, 1), visibility 0.8s;
}
.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}
.splash-logo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: contain;
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.5);
    animation: pulseGlow 1.5s infinite alternate;
}
.splash-title {
    margin-top: 30px;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 2px;
    animation: splashFadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes pulseGlow {
    from { transform: scale(0.95); box-shadow: 0 0 20px rgba(197, 160, 89, 0.3); }
    to { transform: scale(1.05); box-shadow: 0 0 50px rgba(197, 160, 89, 0.7); }
}
@keyframes splashFadeInUp {
    to { opacity: 1; transform: translateY(0); }
}


/* Celebration Mode Container Background (Light Mode) */
[data-theme=""light""] body.celeb-mode-active .hero.container,
[data-theme=""light""] body.celeb-mode-active main.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
[data-theme=""light""] body.celeb-mode-active .hero.container {
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 20px;
}
[data-theme=""light""] body.celeb-mode-active main.container {
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

