@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  height: 100vh;
  background: #0b0b0f;
  overflow: hidden;
  color: white;
}

/* ============================================
   INTRO SECTION (لم يتم التعديل عليه)
   ============================================ */
.intro {
  position: fixed;
  inset: 0;
  background: #0b0b0f;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  overflow: hidden;
  animation: introHide 1s ease forwards;
  animation-delay: 4s;
}

@keyframes introHide {
  to {
    opacity: 0;
    filter: blur(20px);
    pointer-events: none;
  }
}

@keyframes glow {
  0% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  }
  50% {
    text-shadow:
      0 0 30px rgba(255, 255, 255, 0.9),
      0 0 60px rgba(255, 255, 255, 0.6);
  }
  100% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  }
}

@keyframes textIntro {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  30% {
    opacity: 1;
    transform: scale(1.3);
    text-shadow: 0 0 30px #f389c3;
  }
  70% {
    opacity: 1;
    transform: scale(1.3);
  }
  100% {
    opacity: 0;
    filter: blur(12px);
    transform: scale(1.6);
  }
}

/* ============================================
   BACKGROUND SLIDES
   ============================================ */
.fashion-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideShow 12s infinite;
}

.s1 {
  background-image: url("tt11.jpg");
  background-color: #1a1a2e;
}

.s2 {
  background-image: url("tt2.jpg");
  background-color: #16213e;
  animation-delay: 4s;
}

.s3 {
  background-image: url("t3.jpg");
  background-color: #0f3460;
  animation-delay: 8s;
}

@keyframes slideShow {
  0%, 100% { opacity: 0; }
  10%, 30% { opacity: 0.6; }
  40%, 60% { opacity: 0.8; }
  70%, 90% { opacity: 0.4; }
}

/* ============================================
   ✅ AUTH CONTAINER & CARD (معدل بالكامل)
   ============================================ */

.container-hidden {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.container-hidden.visible {
  opacity: 1;
  visibility: visible;
}

/* ✅ Card Container with Perspective */
.card-container {
  perspective: 1000px;
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

/* ✅ Main Card */
.card {
  width: 100%;
  min-height: 580px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card.flipped {
  transform: rotateY(180deg);
}

/* ✅ Form Containers */
.form-container {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.register-form {
  transform: rotateY(180deg);
}

/* ✅ Form Card Styling */
.form {
  width: 100%;
  background: rgba(20, 20, 35, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px 35px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: cardEnter 0.6s ease-out;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ✅ Form Icon */
.form-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  font-size: 28px;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.register .form-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4);
}

/* ✅ Headings */
.form h2 {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-bottom: 25px;
}

/* ✅ Input Groups */
.input-group {
  position: relative;
  margin-bottom: 16px;
}

.input-row {
  display: flex;
  gap: 12px;
}

.input-row .input-group {
  flex: 1;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  transition: color 0.3s;
  z-index: 2;
}

.input-group:focus-within .input-icon {
  color: #667eea;
}

.input-group input {
  width: 100%;
  padding: 14px 14px 14px 45px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 14px;
  transition: all 0.3s ease;
  outline: none;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.input-group input:focus {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.input-group input:focus + .toggle-password,
.input-group input:focus ~ .toggle-password {
  color: #667eea;
}

/* ✅ Toggle Password Eye */
.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 14px;
  transition: color 0.3s;
  z-index: 2;
}

.toggle-password:hover {
  color: #ffffff;
}

/* ✅ Forgot Password */
.forgot-pass {
  text-align: right;
  margin-bottom: 20px;
}

.forgot-pass a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.3s;
}

.forgot-pass a:hover {
  color: #667eea;
}

/* ✅ Buttons */
.login-btn, .register-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.login-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.login-btn:active {
  transform: translateY(0);
}

.register-btn {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 87, 108, 0.6);
}

.register-btn:active {
  transform: translateY(0);
}

/* ✅ Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 25px 0;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.divider span {
  padding: 0 15px;
}

/* ✅ Social Login */
.social-login {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
}

.social-btn.google:hover {
  background: #ea4335;
  border-color: #ea4335;
}

.social-btn.apple:hover {
  background: #000000;
  border-color: #000000;
}

.social-btn.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

/* ✅ Switch Form Text */
.switch-form {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 15px;
}

.switch-form span {
  color: #667eea;
  cursor: pointer;
  font-weight: 600;
  margin-left: 5px;
  transition: color 0.3s;
}

.switch-form span:hover {
  color: #764ba2;
  text-decoration: underline;
}

.register-form .switch-form span {
  color: #f5576c;
}

.register-form .switch-form span:hover {
  color: #f093fb;
}

/* ✅ Checkbox Group */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #667eea;
  cursor: pointer;
}

.checkbox-group label {
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-group label a {
  color: #667eea;
  text-decoration: none;
}

.checkbox-group label a:hover {
  text-decoration: underline;
}

/* ✅ Responsive Design */
@media (max-width: 480px) {
  .card-container {
    padding: 15px;
  }
  
  .form {
    padding: 30px 25px;
  }
  
  .input-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form h2 {
    font-size: 22px;
  }
}

/* ✅ Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

@keyframes inputGlow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2); }
  50% { box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.4); }
}

.input-group input:focus {
  animation: inputGlow 2s infinite;
}
  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: #0f0f0f;
            color: #f1f5f9;
            overflow-x: hidden;
        }

        body.light-mode {
            background-color: #f8fafc;
            color: #1e293b;
        }

        /* ================= CUSTOM SCROLLBAR ================= */
        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-track {
            background: #0f0f0f;
        }

        body.light-mode ::-webkit-scrollbar-track {
            background: #f8fafc;
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #6366f1, #4f46e5);
            border-radius: 5px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, #4f46e5, #6366f1);
        }

        /* ================= GLASSMORPHISM EFFECTS ================= */
        .glass {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        body.light-mode .glass {
            background: rgba(0, 0, 0, 0.03);
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        /* ================= CUTOUT CARD EFFECT ================= */
        .cutout-card {
            position: relative;
            background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
            border-radius: 24px;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        body.light-mode .cutout-card {
            background: linear-gradient(145deg, #ffffff, #f1f5f9);
        }

        .cutout-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 100%;
            background: linear-gradient(180deg, 
                rgba(99, 102, 241, 0.1) 0%, 
                transparent 50%, 
                transparent 100%);
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .cutout-card:hover::before {
            opacity: 1;
        }

        .cutout-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 30px 60px rgba(99, 102, 241, 0.3);
        }

        /* ================= PRODUCT IMAGE CUTOUT ================= */
        .product-image-container {
            position: relative;
            padding: 30px;
            text-align: center;
            overflow: hidden;
            background: radial-gradient(circle at center, 
                rgba(99, 102, 241, 0.1) 0%, 
                transparent 70%);
            border-radius: 20px 20px 0 0;
        }

        .product-image-container img {
            width: 100%;
            height: 250px;
            object-fit: contain;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
        }

        .cutout-card:hover .product-image-container img {
            transform: scale(1.15) translateY(-10px);
            filter: drop-shadow(0 30px 40px rgba(99, 102, 241, 0.4));
        }

        /* ================= GRADIENT TEXT ================= */
        .gradient-text {
            background: linear-gradient(135deg, #6366f1 0%, #f59e0b 50%, #10b981 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* ================= HERO SLIDE TRANSITIONS ================= */
        .hero-slide {
            opacity: 0;
            transition: all 1s ease;
            transform: scale(1.1);
        }

        .hero-slide.active {
            opacity: 1;
            transform: scale(1);
        }

        /* ================= REVEAL ANIMATION ================= */
        .reveal {
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* ================= CATEGORY CARD HOVER ================= */
        .category-card {
            position: relative;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .category-card::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, #6366f1, #4f46e5);
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .category-card:hover::after {
            opacity: 1;
        }

        .category-card:hover > * {
            position: relative;
            z-index: 1;
        }

        .category-card:hover i,
        .category-card:hover h3 {
            color: white !important;
        }

        /* ================= BUTTON HOVER EFFECTS ================= */
        .btn-glow {
            position: relative;
            overflow: hidden;
        }

        .btn-glow::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 ease;
        }

        .btn-glow:hover::before {
            left: 100%;
        }

        /* ================= OFFER CARD SHAPES ================= */
        .offer-card {
            position: relative;
            overflow: hidden;
        }

        .offer-card::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: pulse 4s ease-in-out infinite;
        }

        /* ================= PRODUCT BADGE ANIMATIONS ================= */
        .product-badge {
            animation: pulse-slow 2s ease-in-out infinite;
        }

        /* ================= NAVBAR EFFECTS ================= */
        .navbar {
            transition: all 0.3s ease;
        }

        .navbar.scrolled {
            padding: 12px 60px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        }

        /* ================= THEME TOGGLE ANIMATION ================= */
        .theme-toggle {
            position: relative;
            overflow: hidden;
        }

        .theme-toggle i {
            transition: transform 0.5s ease, color 0.3s ease;
        }

        /* ================= QUICK ACTION BUTTONS ================= */
        .quick-action-btn {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: white;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            color: #1e293b;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0;
            transform: translateY(20px);
        }

        .cutout-card:hover .quick-action-btn {
            opacity: 1;
            transform: translateY(0);
        }

        .quick-action-btn:nth-child(1) { transition-delay: 0s; }
        .quick-action-btn:nth-child(2) { transition-delay: 0.05s; }
        .quick-action-btn:nth-child(3) { transition-delay: 0.1s; }

        .quick-action-btn:hover {
            background: #6366f1;
            color: white;
            transform: scale(1.1) !important;
        }

        .quick-actions-container {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 10;
        }

        /* ================= PRODUCT DETAILS MODAL ================= */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(10px);
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            background: #1a1a1a;
            border-radius: 30px;
            max-width: 1200px;
            width: 95%;
            max-height: 90vh;
            overflow-y: auto;
            transform: scale(0.9) translateY(50px);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        body.light-mode .modal-content {
            background: #ffffff;
        }

        .modal-overlay.active .modal-content {
            transform: scale(1) translateY(0);
        }

        /* ================= COLOR SELECTION ================= */
        .color-option {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            border: 3px solid transparent;
            transition: all 0.3s ease;
            position: relative;
        }

        .color-option::before {
            content: '';
            position: absolute;
            inset: -4px;
            border-radius: 50%;
            background: linear-gradient(135deg, #6366f1, #f59e0b);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: -1;
        }

        .color-option:hover::before,
        .color-option.active::before {
            opacity: 1;
        }

        .color-option.active {
            transform: scale(1.1);
        }

        /* ================= QUANTITY SELECTOR ================= */
        .quantity-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        body.light-mode .quantity-btn {
            background: rgba(0, 0, 0, 0.05);
            border: 1px solid rgba(0, 0, 0, 0.1);
            color: #1e293b;
        }

        .quantity-btn:hover {
            background: #6366f1;
            color: white;
            border-color: #6366f1;
        }

        /* ================= FOOTER LINKS ================= */
        .footer-link {
            position: relative;
            transition: all 0.3s ease;
        }

        .footer-link::before {
            content: '';
            position: absolute;
            right: -20px;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 2px;
            background: #6366f1;
            transition: width 0.3s ease;
        }

        .footer-link:hover {
            padding-right: 5px;
            color: #6366f1;
        }

        .footer-link:hover::before {
            width: 15px;
        }

        /* ================= RESPONSIVE ================= */
        @media (max-width: 1200px) {
            .features-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 992px) {
            .navbar {
                padding: 15px 30px;
            }
            
            .nav-links {
                display: none;
            }
            
            .hero-title {
                font-size: 3rem;
            }
            
            .modal-content {
                grid-template-columns: 1fr !important;
            }
        }

        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.5rem;
            }
            
            .hero-buttons {
                flex-direction: column;
            }
            
            .hero-stats {
                flex-direction: column;
                gap: 30px;
            }
            
            .footer-grid {
                grid-template-columns: 1fr;
            }
        }

        /* ================= ANIMATION DELAYS ================= */
        .delay-100 { animation-delay: 0.1s; }
        .delay-200 { animation-delay: 0.2s; }
        .delay-300 { animation-delay: 0.3s; }
        .delay-400 { animation-delay: 0.4s; }
        .delay-500 { animation-delay: 0.5s; }