/* ============================================
   Ibdaa - Interior Decoration & Finishing Theme
   Pure CSS - No build step required
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
    --black: #0a0a0a;
    --dark: #111111;
    --dark-card: #1a1a1a;
    --gold-300: #e8d5a3;
    --gold-400: #c8a45c;
    --gold-500: #c8a45c;
    --gold-600: #a8883e;
    --gold-700: #8a6e2f;
    --gold-900: #3d2e05;
    --white: #ffffff;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: 0.3s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    background: var(--black);
    color: var(--white);
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

::selection { background: rgba(200,164,92,0.3); color: #fff; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-500); border-radius: 3px; }

/* ---- Typography ---- */
.font-display { font-family: 'Playfair Display', 'Tajawal', serif; }

.luxury-text-gradient {
    background: linear-gradient(135deg, var(--gold-300), var(--gold-500), var(--gold-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow-luxury { text-shadow: 0 0 20px rgba(200,164,92,0.3); }

/* ---- Layout ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 768px; margin: 0 auto; padding: 0 1rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }

.w-full { width: 100%; }
.min-w-0 { min-width: 0; }
.min-h-screen { min-height: 100vh; }
.h-screen { height: 100vh; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-60 { z-index: 60; }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-7xl { font-size: 4.5rem; }
.text-8xl { font-size: 6rem; }

.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.2em; }
.uppercase { text-transform: uppercase; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leading-relaxed { line-height: 1.75; }
.leading-tight { line-height: 1.25; }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: 9999px; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

/* ---- Spacing ---- */
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-28 { padding-top: 7rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-16 { padding-bottom: 4rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---- Colors ---- */
.bg-black { background: var(--black); }
.bg-dark { background: var(--dark); }
.bg-dark-card { background: var(--dark-card); }
.text-white { color: var(--white); }
.text-white-80 { color: rgba(255,255,255,0.8); }
.text-white-60 { color: rgba(255,255,255,0.6); }
.text-white-50 { color: rgba(255,255,255,0.5); }
.text-white-40 { color: rgba(255,255,255,0.4); }
.text-white-30 { color: rgba(255,255,255,0.3); }
.text-white-20 { color: rgba(255,255,255,0.2); }
.text-gold { color: var(--gold-500); }
.text-gold-400 { color: var(--gold-400); }
.text-red { color: #f87171; }
.text-green { color: #4ade80; }
.text-yellow { color: #facc15; }

/* ---- Components ---- */

/* Luxury Gradient */
.luxury-gradient {
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 50%, var(--gold-700) 100%);
}

/* Glass Effect */
.glass-effect {
    background: rgba(26,26,26,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(200,164,92,0.15);
}

.glass-light {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Fashion Card */
.fashion-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    transition: all 0.5s ease;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border: 1px solid rgba(200,164,92,0.1);
}

.fashion-card:hover {
    border-color: rgba(200,164,92,0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(200,164,92,0.1);
}

/* Buttons */
.btn-luxury {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: var(--black);
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-luxury:hover::before { left: 100%; }
.btn-luxury:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(200,164,92,0.3);
}
.btn-luxury:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-outline-luxury {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--gold-500);
    border: 2px solid var(--gold-500);
    cursor: pointer;
}

.btn-outline-luxury:hover {
    background: var(--gold-500);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(200,164,92,0.3);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.75rem; }
.btn-icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.4);
    transition: all 0.2s;
}
.btn-icon:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.btn-icon-danger:hover { background: rgba(239,68,68,0.1); color: #f87171; }
.btn-icon-gold:hover { color: var(--gold-400); }

/* Section Divider */
.section-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
    margin: 0 auto;
}

/* Image Shine */
.image-shine { position: relative; overflow: hidden; }
.image-shine::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(to bottom right, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 60%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg);
    transition: transform 0.7s;
}
.image-shine:hover::after { transform: rotate(30deg) translate(50%, 50%); }

/* Form Inputs */
.form-input {
    width: 100%;
    background: var(--black);
    border: 1px solid rgba(200,164,92,0.2);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    color: var(--white);
    font-size: 0.875rem;
    transition: border-color 0.3s;
    outline: none;
}
.form-input:focus { border-color: var(--gold-500); }
.form-input::placeholder { color: rgba(255,255,255,0.3); }

.form-label {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-checkbox {
    width: 1rem;
    height: 1rem;
    accent-color: var(--gold-500);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c8a45c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    padding-left: 2.5rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 500;
}
.badge-green { background: rgba(74,222,128,0.1); color: #4ade80; }
.badge-yellow { background: rgba(250,204,21,0.1); color: #facc15; }
.badge-gold { background: rgba(200,164,92,0.1); color: var(--gold-400); }

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    transition: all 0.5s ease;
    padding: 1.5rem 0;
}
.navbar.scrolled {
    background: rgba(26,26,26,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200,164,92,0.15);
    padding: 0.75rem 0;
}
.navbar .nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.navbar .logo-icon {
    width: 2rem; height: 2rem;
    color: var(--gold-500);
    transition: transform 0.5s;
}
.navbar .logo:hover .logo-icon { transform: rotate(15deg) scale(1.1); }
.navbar .logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}
.navbar .logo-text p {
    font-size: 0.625rem;
    color: var(--gold-400);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}
.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.navbar .nav-links a {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    transition: color 0.3s;
    position: relative;
}
.navbar .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 1px;
    background: var(--gold-500);
    transition: width 0.3s;
}
.navbar .nav-links a:hover { color: var(--gold-400); }
.navbar .nav-links a:hover::after { width: 100%; }
.navbar .nav-links a.active { color: var(--gold-400); }
.navbar .nav-links a.active::after { width: 100%; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold-500);
    padding: 0.5rem;
}
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(200,164,92,0.2);
    margin-top: 1rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    padding: 0.5rem 0;
    transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--gold-400); }

/* ---- Hero Section ---- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--black);
}
.hero-gradient {
    position: absolute;
    inset: 0;
    transition: opacity 1s ease;
    opacity: 0;
}
.hero-gradient.active { opacity: 1; }
.hero-gradient-1 { background: linear-gradient(to bottom, rgba(60,40,10,0.5), rgba(10,10,10,0.6), var(--black)); }
.hero-gradient-2 { background: linear-gradient(to bottom, rgba(40,55,30,0.4), rgba(10,10,10,0.6), var(--black)); }
.hero-gradient-3 { background: linear-gradient(to bottom, rgba(80,50,20,0.4), rgba(10,10,10,0.6), var(--black)); }

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: float 6s ease-in-out infinite;
}
.hero-orb-1 { top: 25%; right: 25%; width: 24rem; height: 24rem; background: rgba(200,164,92,0.05); }
.hero-orb-2 { bottom: 25%; left: 25%; width: 20rem; height: 20rem; background: rgba(168,136,62,0.05); animation-delay: 1.5s; }
.hero-orb-3 { top: 50%; left: 50%; width: 16rem; height: 16rem; background: rgba(100,80,40,0.05); animation-delay: 3s; }

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: linear-gradient(rgba(200,164,92,0.3) 1px, transparent 1px), linear-gradient(90deg, rgba(200,164,92,0.3) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1rem;
    max-width: 56rem;
    margin: 0 auto;
}
.hero-top-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease;
}
.hero-top-line .line { width: 3rem; height: 1px; background: var(--gold-500); }
.hero-top-line span {
    color: var(--gold-500);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
}

.hero-slide {
    transition: all 0.7s ease;
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(2rem);
}
.hero-slide.active {
    opacity: 1;
    transform: translateY(0);
}
.hero-slide h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}
.hero-slide p {
    color: rgba(255,255,255,0.6);
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.75;
}

.hero-spacer { height: 10rem; }

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    animation: slideUp 1s ease 0.3s both;
}

.hero-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 3rem;
}
.hero-indicator {
    border: none;
    border-radius: 9999px;
    transition: all 0.5s;
    cursor: pointer;
    width: 0.5rem;
    height: 0.5rem;
    background: rgba(255,255,255,0.2);
}
.hero-indicator:hover { background: rgba(255,255,255,0.4); }
.hero-indicator.active {
    width: 2rem;
    height: 0.5rem;
    background: var(--gold-500);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: rgba(200,164,92,0.5);
}

.hero-side-text {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
    font-size: 0.625rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.5em;
    text-transform: uppercase;
}

/* ---- Design Card ---- */
.design-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border: 1px solid rgba(200,164,92,0.1);
    transition: all 0.5s ease;
}
.design-card:hover {
    border-color: rgba(200,164,92,0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(200,164,92,0.1);
}
.design-card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--dark);
}
.design-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s, transform 0.5s;
}
.design-card:hover .design-card-image img { transform: scale(1.05); }
.design-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.8), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}
.design-card:hover .design-card-overlay { opacity: 1; }
.design-card-info {
    padding: 1rem;
}
.design-card-category {
    font-size: 0.625rem;
    color: var(--gold-500);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}
.design-card-title {
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    transition: color 0.3s;
}
.design-card:hover .design-card-title { color: var(--gold-400); }
.design-card-price {
    color: var(--gold-500);
    font-size: 0.875rem;
    font-weight: 700;
}

/* ---- Design Viewer ---- */
.design-viewer { position: relative; }
.design-viewer-main {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--dark);
}
.design-viewer-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s, transform 0.5s;
}
.design-viewer-main img.transitioning { opacity: 0; transform: scale(1.05); }
.design-viewer-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.6), transparent, transparent);
    pointer-events: none;
}
.design-viewer-controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}
.design-viewer:hover .design-viewer-controls { opacity: 1; }
@media (hover: none) {
    .design-viewer-controls { opacity: 1; }
}
.viewer-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(26,26,26,0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(200,164,92,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: color 0.3s;
    cursor: pointer;
}
.viewer-btn:hover { color: var(--gold-400); }

.design-viewer-bottom {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s;
}
.design-viewer:hover .design-viewer-bottom { opacity: 1; }
@media (hover: none) {
    .design-viewer-bottom { opacity: 1; }
}
.viewer-counter {
    background: rgba(26,26,26,0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(200,164,92,0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
}
.viewer-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255,255,255,0.1);
}
.viewer-progress-bar {
    height: 100%;
    background: var(--gold-500);
    transition: width 0.3s;
}

.viewer-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}
.viewer-thumb {
    position: relative;
    width: 4rem;
    height: 5rem;
    flex-shrink: 0;
    border-radius: 0.25rem;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all 0.3s;
    cursor: pointer;
    background: none;
    padding: 0;
}
.viewer-thumb:hover { opacity: 0.8; }
.viewer-thumb.active { border-color: var(--gold-500); opacity: 1; }
.viewer-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Footer ---- */
.footer {
    background: var(--dark);
    border-top: 1px solid rgba(200,164,92,0.1);
    padding: 4rem 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}
.footer-brand p {
    color: rgba(255,255,255,0.5);
    line-height: 1.75;
    max-width: 28rem;
}
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(200,164,92,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-500);
    transition: all 0.3s;
}
.footer-social a:hover {
    background: var(--gold-500);
    color: var(--black);
}
.footer-heading {
    color: var(--gold-500);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold-400); }
.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.875rem;
    margin-top: 3rem;
    padding-top: 2rem;
}

/* ---- Admin Layout ---- */
.admin-layout {
    display: flex;
    min-height: 100vh;
    direction: rtl;
}
.admin-sidebar {
    width: 16rem;
    background: var(--dark);
    border-left: 1px solid rgba(200,164,92,0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    transition: transform 0.3s;
}
.admin-sidebar-logo {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(200,164,92,0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.admin-sidebar-logo h1 { font-size: 1.125rem; font-weight: 700; }
.admin-sidebar-logo p { font-size: 0.625rem; color: var(--gold-400); letter-spacing: 0.05em; }

.admin-nav {
    flex: 1;
    padding: 1rem;
    list-style: none;
}
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}
.admin-nav a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.admin-nav a.active {
    background: rgba(200,164,92,0.1);
    color: var(--gold-400);
    border: 1px solid rgba(200,164,92,0.2);
}
.admin-nav a svg { width: 1.25rem; height: 1.25rem; }

.admin-logout {
    padding: 1rem;
    border-top: 1px solid rgba(200,164,92,0.1);
}
.admin-logout a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: #f87171;
    transition: all 0.2s;
}
.admin-logout a:hover { background: rgba(239,68,68,0.1); }

.admin-main {
    flex: 1;
    margin-right: 16rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.admin-topbar {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: rgba(26,26,26,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200,164,92,0.15);
}
.admin-topbar .domain { font-size: 0.875rem; color: rgba(255,255,255,0.4); }
.admin-topbar .admin-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold-500);
    padding: 0.5rem;
    cursor: pointer;
}
.admin-content { flex: 1; padding: 1.5rem; }

/* Admin Login */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    direction: rtl;
}
.admin-login-box { width: 100%; max-width: 28rem; }
.admin-login-header { text-align: center; margin-bottom: 2rem; }
.admin-login-header h1 { font-size: 1.875rem; font-weight: 700; }
.admin-login-header p { color: rgba(255,255,255,0.4); font-size: 0.875rem; margin-top: 0.5rem; }

/* Stat Card */
.stat-card {
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    background: rgba(200,164,92,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-500);
}
.stat-value { font-size: 1.5rem; font-weight: 700; color: var(--white); }
.stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.4); }

/* Upload Zone */
.upload-zone {
    border: 2px dashed rgba(200,164,92,0.2);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: rgba(200,164,92,0.4);
    background: rgba(200,164,92,0.02);
}
.upload-zone.has-preview {
    border-style: solid;
    border-color: rgba(200,164,92,0.4);
}
.upload-preview {
    position: relative;
    width: 100%;
}
.upload-preview img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--radius-lg);
}
.upload-preview .remove-btn {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #ef4444;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ---- Admin Design List ---- */
.design-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.design-list-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}
@media (max-width: 639px) {
    .design-list-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .design-list-actions {
        justify-content: space-between;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(200,164,92,0.08);
    }
}

/* ---- Animations ---- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(2rem); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-spin { animation: spin 1s linear infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* Loader */
.loader {
    width: 2rem;
    height: 2rem;
    border: 2px solid rgba(200,164,92,0.2);
    border-top-color: var(--gold-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
    .sm-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .sm-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .sm-flex { display: flex; }
    .sm-hidden { display: none; }
}

@media (min-width: 768px) {
    .md-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .md-flex { display: flex; }
    .md-hidden { display: none; }
    .md-block { display: block; }
    .hero-slide h1 { font-size: 4.5rem; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 1024px) {
    .lg-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg-block { display: block; }
    .lg-hidden { display: none; }
    .hero-slide h1 { font-size: 6rem; }
    .hero-side-text { display: block; }
}

@media (max-width: 1023px) {
    .admin-sidebar { transform: translateX(100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-right: 0; }
    .admin-topbar { justify-content: space-between; }
    .admin-topbar .admin-sidebar-toggle { display: flex; }
}

@media (max-width: 767px) {
    .navbar .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-side-text { display: none; }
    .admin-content { padding: 1rem; }
    .container { padding: 0 0.75rem; }
    .mobile-menu {
        background: rgba(26,26,26,0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    .stat-card { padding: 1rem; }
    .fashion-card.p-4 { padding: 0.75rem; }
    .upload-zone { min-height: 280px; padding: 1.5rem; }
    .design-card-info { padding: 0.75rem; }
}

@media (max-width: 639px) {
    .hero-slide h1 { font-size: 2rem; }
    .hero-slide p { font-size: 0.95rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn-luxury,
    .hero-cta .btn-outline-luxury { width: 100%; }
    .text-4xl { font-size: 1.75rem; }
    .admin-content { padding: 0.75rem; }
    .admin-topbar { padding: 0.75rem 1rem; }
}

@media (max-width: 374px) {
    .hero-slide h1 { font-size: 1.75rem; }
    .btn-luxury, .btn-outline-luxury { padding: 0.6rem 1.25rem; font-size: 0.75rem; }
}
