/* ============================================
   DealFinder Global - Main Stylesheet
   Premium Coupons & Deals Platform
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.cn/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --color-primary: #0A1628;
  --color-primary-light: #1a2a4a;
  --color-accent: #FF6B35;
  --color-accent-hover: #e55a28;
  --color-cta: #2563EB;
  --color-cta-hover: #1d4ed8;
  --color-success: #10B981;
  --color-bg: #F8FAFC;
  --color-card: #FFFFFF;
  --color-text: #1E293B;
  --color-text-secondary: #64748B;
  --color-text-light: #94A3B8;
  --color-border: #E2E8F0;
  --color-border-light: #F1F5F9;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.5rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 250ms var(--ease-out);
  --transition-slow: 400ms var(--ease-out);

  /* Layout */
  --max-width: 1280px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

input, textarea {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: inherit;
}

/* --- Utility Classes --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  z-index: 1000;
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-accent), #ff8f65);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 800;
}

.logo span {
  color: var(--color-accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
  border-radius: var(--radius-full);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  z-index: 1001;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.lang-btn:hover {
  border-color: var(--color-accent);
  background: white;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.12);
}

.lang-btn .flag {
  font-size: 1.15em;
  line-height: 1;
}

.lang-btn .lang-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.arrow-icon {
  transition: transform var(--transition-base);
  color: var(--color-text-secondary);
}

.lang-switcher.open .lang-btn .arrow-icon {
  transform: rotate(180deg);
}

.lang-switcher.open .lang-btn {
  border-color: var(--color-accent);
  background: white;
  box-shadow: 0 2px 12px rgba(255, 107, 53, 0.15);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  min-width: 200px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  overflow: hidden;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.lang-option:hover {
  background: var(--color-bg);
}

.lang-option .flag {
  font-size: 1.2em;
  line-height: 1;
  flex-shrink: 0;
}

.lang-option .lang-name {
  flex: 1;
  font-weight: 500;
}

.lang-option .check-mark {
  font-size: 0.8em;
  color: var(--color-success);
  opacity: 0;
  transform: scale(0);
  transition: all var(--transition-fast);
}

.lang-option.active {
  background: #FFF7ED;
  color: var(--color-accent);
  font-weight: 600;
}

.lang-option.active .check-mark {
  opacity: 1;
  transform: scale(1);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background: var(--color-primary);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.92) 0%,
    rgba(10, 22, 40, 0.75) 40%,
    rgba(10, 22, 40, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 107, 53, 0.15);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: var(--radius-full);
  color: var(--color-accent);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--color-accent), #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 480px;
  animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out) 0.8s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  background: var(--color-accent);
  color: white;
  font-weight: 600;
  font-size: var(--font-size-base);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 600;
  font-size: var(--font-size-base);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 1s var(--ease-out) 0.6s both;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4/3;
}

.floating-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-2xl);
  animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
  top: 0%;
  left: 0%;
  width: 180px;
  animation-delay: 0s;
}

.floating-card:nth-child(2) {
  top: 15%;
  right: 0%;
  width: 170px;
  animation-delay: -2s;
}

.floating-card:nth-child(3) {
  bottom: 5%;
  left: 20%;
  width: 190px;
  animation-delay: -4s;
}

.floating-card .card-brand {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.floating-card .card-discount {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-accent);
}

.floating-card .card-code {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: 4px 10px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text);
  font-family: monospace;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}

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

/* Floating Decorations */
.hero-decoration {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.decoration-tag {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-xs);
  font-weight: 600;
  backdrop-filter: blur(10px);
  animation: floatTag 8s ease-in-out infinite;
}

.decoration-tag:nth-child(1) { top: 20%; right: 8%; animation-delay: 0s; }
.decoration-tag:nth-child(2) { top: 60%; right: 15%; animation-delay: -3s; }
.decoration-tag:nth-child(3) { bottom: 20%; left: 5%; animation-delay: -5s; }

@keyframes floatTag {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
  50% { transform: translateY(-15px) rotate(3deg); opacity: 1; }
}

/* ============================================
   SEARCH SECTION
   ============================================ */
.search-section {
  position: relative;
  padding: var(--space-4xl) 0;
  margin-top: -60px;
  z-index: 10;
}

.search-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.search-box {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--color-border-light);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  transition: border-color var(--transition-base);
}

.search-input-wrapper:focus-within {
  border-color: var(--color-cta);
  background: white;
}

.search-icon {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
}

.search-input {
  flex: 1;
  padding: var(--space-md) 0;
  font-size: var(--font-size-lg);
  color: var(--color-text);
  background: transparent;
}

.search-input::placeholder {
  color: var(--color-text-light);
}

.search-btn {
  padding: 12px 24px;
  background: var(--color-cta);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.search-btn:hover {
  background: var(--color-cta-hover);
  transform: translateY(-1px);
}

.search-tags {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding: 0 var(--space-md);
  flex-wrap: wrap;
}

.search-tags-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: 500;
}

.search-tag {
  padding: 4px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-tag:hover {
  background: #FFF7ED;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ============================================
   DEALS SECTION
   ============================================ */
.deals-section {
  padding: var(--space-4xl) 0;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.deal-card {
  background: white;
  border-radius: 16px;
  padding: var(--space-xl);
  border: 1px solid var(--color-border-light);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.deal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), #F97316);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.deal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.04);
  border-color: transparent;
}

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

.deal-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.deal-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary);
  flex-shrink: 0;
}

.deal-brand-info {
  flex: 1;
  min-width: 0;
}

.deal-brand-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.deal-verified {
  font-size: 0.7rem;
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.deal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  line-height: 1.4;
  flex: 1;
}

.deal-discount-wrapper {
  margin-bottom: var(--space-md);
}

.deal-discount {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, #FFF7ED, #FEF3C7);
  border: 1px solid #FDE68A;
  border-radius: 8px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}

.deal-code-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.deal-code {
  flex: 1;
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--color-bg), #F1F5F9);
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  font-family: 'SF Mono', 'Courier New', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  letter-spacing: 0.08em;
}

.deal-copy-btn {
  padding: 8px 14px;
  background: var(--color-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
}

.deal-copy-btn:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.deal-copy-btn.copied {
  background: var(--color-success);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.deal-get-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: var(--color-cta);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.deal-get-btn:hover {
  background: #E85D2A;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.35);
}

.deal-get-btn:hover {
  background: var(--color-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories-section {
  padding: 80px 0;
  background: #F7F8FA;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px 20px;
  background: #FFFFFF;
  border-radius: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.category-card:hover {
  border-color: #FF6B35;
  border-style: dashed;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.1);
}

.category-card:active {
  transform: scale(0.97);
}

.category-icon-wrapper {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
  background: #F7F8FA;
  padding: 6px;
}

.category-card:hover .category-icon-wrapper {
  transform: scale(1.05);
}

.category-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.category-name {
  font-size: 15px;
  font-weight: 600;
  color: #1E293B;
  letter-spacing: -0.01em;
}

.category-count {
  font-size: 12px;
  color: #94A3B8;
  font-weight: 500;
}

/* ============================================
   BRANDS SECTION
   ============================================ */
.brands-section {
  padding: var(--space-4xl) 0;
}

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
  align-items: center;
}

.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 80px;
  padding: var(--space-md);
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-base);
  cursor: pointer;
}

.brand-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  box-shadow: var(--shadow-md);
  transform: scale(1.05);
  border-color: var(--color-border);
}

.brand-item .brand-text {
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

/* ============================================
   LIMITED TIME OFFERS
   ============================================ */
.limited-section {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, #FF6B35 0%, #FF4757 50%, #C44569 100%);
  position: relative;
  overflow: hidden;
}

.limited-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.limited-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.limited-title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.limited-subtitle {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  margin-bottom: var(--space-2xl);
}

.countdown-wrapper {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.countdown-item {
  text-align: center;
}

.countdown-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 90px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-sm);
  transition: transform 0.3s ease;
}

.countdown-number.flip {
  animation: flipNum 0.6s ease;
}

@keyframes flipNum {
  0% { transform: scaleY(1); }
  50% { transform: scaleY(0.8); }
  100% { transform: scaleY(1); }
}

.countdown-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.countdown-separator {
  display: flex;
  align-items: center;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  opacity: 0.6;
  padding-bottom: 24px;
}

.limited-deals {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-2xl);
}

.limited-deal-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  min-width: 200px;
  text-align: center;
  transition: all var(--transition-base);
}

.limited-deal-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.limited-deal-brand {
  font-size: var(--font-size-sm);
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: var(--space-sm);
}

.limited-deal-discount {
  font-size: var(--font-size-3xl);
  font-weight: 800;
}

.limited-deal-cta {
  display: inline-block;
  margin-top: var(--space-md);
  padding: 8px 20px;
  background: white;
  color: var(--color-accent);
  font-weight: 700;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.limited-deal-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ============================================
   REGISTRATION / CTA SECTION
   ============================================ */
.register-section {
  padding: var(--space-4xl) 0;
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.register-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(37, 99, 235, 0.15), transparent 60%),
              radial-gradient(ellipse at bottom left, rgba(255, 107, 53, 0.1), transparent 60%);
}

.register-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--space-xl);
}

.register-title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-md);
}

.register-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-2xl);
}

.register-benefits {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.register-benefit {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.register-benefit .check {
  color: var(--color-success);
  font-size: 1.2em;
}

.register-form {
  display: flex;
  gap: var(--space-md);
  max-width: 480px;
  margin: 0 auto;
}

.register-input {
  flex: 1;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  color: white;
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
}

.register-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.register-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-cta);
}

.register-btn {
  padding: 14px 28px;
  background: var(--color-accent);
  color: white;
  font-weight: 700;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.register-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.4);
}

/* ============================================
   TRUST SECTION
   ============================================ */
.trust-section {
  padding: var(--space-4xl) 0;
  background: white;
}

.trust-rating {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.trust-stars {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
  color: #FBBF24;
}

.trust-text {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  font-weight: 500;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: var(--space-xl);
}

.stat-number {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-number .accent {
  color: var(--color-accent);
}

.stat-label {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-primary);
  padding: var(--space-3xl) 0 var(--space-xl);
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .logo {
  color: white;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: var(--font-size-sm);
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  color: white;
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

.footer-col a {
  display: block;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-sm);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: white;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-primary);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: 600;
  box-shadow: var(--shadow-2xl);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0;
  transition: all 0.4s var(--ease-out);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast .toast-icon {
  color: var(--color-success);
  font-size: 1.2em;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

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

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 999;
    border-bottom: 1px solid var(--color-border);
    animation: slideDown 0.3s var(--ease-out);
  }

  .nav-menu.open {
    display: flex;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-menu .nav-link {
    padding: 12px 8px;
    font-size: var(--font-size-base);
    border-bottom: 1px solid var(--color-border-light);
  }

  .nav-menu .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .section-title {
    font-size: var(--font-size-3xl);
  }

  .hero-title {
    font-size: var(--font-size-4xl);
  }

  .deals-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .countdown-wrapper {
    gap: var(--space-md);
  }

  .countdown-number {
    width: 60px;
    height: 70px;
    font-size: var(--font-size-2xl);
  }

  .trust-stats {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .register-form {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .limited-deals {
    flex-direction: column;
    align-items: center;
  }

  .register-benefits {
    flex-direction: column;
    align-items: center;
  }

  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  :root {
    --space-4xl: 3rem;
    --space-3xl: 2rem;
    --space-xl: 1.25rem;
    --space-2xl: 1.5rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  /* Header - compact on mobile */
  .header-inner {
    padding: 0 var(--space-md);
  }

  .header-register-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .lang-btn {
    padding: 4px 8px;
    gap: 4px;
  }

  .lang-btn .lang-label {
    display: none;
  }

  .lang-btn .arrow-icon {
    display: none;
  }

  .lang-dropdown {
    min-width: 170px;
    right: -10px;
  }

  .lang-option {
    padding: 8px 12px;
    font-size: var(--font-size-xs);
  }

  .logo {
    font-size: var(--font-size-lg);
  }

  .logo-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  /* Hero */
  .hero {
    min-height: 90vh;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: var(--font-size-sm);
    margin-top: var(--space-md);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
    margin-top: var(--space-xl);
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    text-align: center;
    padding: 14px 24px;
    font-size: var(--font-size-base);
  }

  .hero-badge {
    font-size: var(--font-size-xs);
    padding: 6px 14px;
  }

  .hero-decoration {
    display: none;
  }

  .hero-card-stack {
    max-width: 340px;
  }

  .floating-card {
    padding: var(--space-sm) var(--space-md);
  }

  .floating-card:nth-child(1) {
    width: 140px;
  }

  .floating-card:nth-child(2) {
    width: 130px;
  }

  .floating-card:nth-child(3) {
    width: 150px;
  }

  .floating-card .card-discount {
    font-size: var(--font-size-lg);
  }

  /* Search */
  .search-box {
    padding: var(--space-md);
  }

  .search-input-wrapper {
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-sm);
  }

  .search-icon {
    display: none;
  }

  .search-input {
    font-size: var(--font-size-base);
    padding: var(--space-sm) 0;
    width: 100%;
  }

  .search-btn {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: var(--font-size-sm);
  }

  .search-tags {
    gap: 6px;
    padding: 0;
  }

  .search-tag {
    padding: 3px 10px;
    font-size: var(--font-size-xs);
  }

  /* Sections spacing */
  .deals-section,
  .categories-section,
  .brands-section,
  .limited-section,
  .register-section,
  .trust-section {
    padding: var(--space-3xl) 0;
  }

  .section-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-sm);
  }

  .section-subtitle {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-2xl);
    padding: 0 var(--space-md);
  }

  /* Deals grid */
  .deals-grid {
    gap: var(--space-md);
  }

  .deal-card {
    padding: var(--space-md);
  }

  .deal-card-header {
    gap: var(--space-sm);
  }

  .deal-brand-logo {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .deal-title {
    font-size: var(--font-size-sm);
  }

  .deal-discount {
    font-size: var(--font-size-2xl);
  }

  .deal-get-btn {
    padding: 10px;
    font-size: var(--font-size-sm);
  }

  .deal-copy-btn {
    padding: 6px 12px;
    font-size: var(--font-size-xs);
  }

  /* Categories */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .category-card {
    padding: var(--space-md);
  }

  .category-icon-wrapper {
    width: 48px;
    height: 48px;
  }

  .category-name {
    font-size: var(--font-size-sm);
  }

  .category-count {
    font-size: var(--font-size-xs);
  }

  /* Brands */
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }

  .brand-item {
    width: 100%;
    height: 56px;
    padding: 0 var(--space-sm);
  }

  .brand-item img {
    max-width: 70%;
  }

  /* Limited time offers */
  .limited-title {
    font-size: var(--font-size-2xl);
  }

  .limited-subtitle {
    font-size: var(--font-size-sm);
  }

  .countdown-wrapper {
    gap: var(--space-sm);
  }

  .countdown-number {
    width: 50px;
    height: 60px;
    font-size: var(--font-size-xl);
  }

  .countdown-label {
    font-size: var(--font-size-xs);
  }

  .countdown-separator {
    font-size: var(--font-size-xl);
  }

  .limited-deal-card {
    padding: var(--space-md);
    width: 100%;
  }

  .limited-deal-discount {
    font-size: var(--font-size-xl);
  }

  /* Registration */
  .register-title {
    font-size: var(--font-size-2xl);
  }

  .register-subtitle {
    font-size: var(--font-size-sm);
  }

  .register-benefit {
    font-size: var(--font-size-sm);
  }

  .register-form {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .register-input {
    padding: 14px 16px;
    font-size: var(--font-size-base);
  }

  .register-btn {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    font-size: var(--font-size-base);
  }

  /* Trust */
  .trust-stars {
    font-size: var(--font-size-2xl);
  }

  .trust-text {
    font-size: var(--font-size-sm);
  }

  .stat-number {
    font-size: var(--font-size-3xl);
  }

  .stat-label {
    font-size: var(--font-size-sm);
  }

  .trust-stats {
    gap: var(--space-lg);
  }

  /* Footer */
  .footer-grid {
    gap: var(--space-xl);
  }

  .footer-title {
    font-size: var(--font-size-base);
  }

  .footer-link {
    font-size: var(--font-size-sm);
  }

  .footer-bottom {
    font-size: var(--font-size-xs);
  }

  .social-icons {
    gap: var(--space-md);
  }

  .social-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  /* Chat */
  .chat-window {
    width: calc(100vw - 24px);
    right: -4px;
    bottom: 60px;
  }

  .chat-body {
    height: 220px;
  }

  .chat-toggle {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  /* Modal */
  .modal-container {
    padding: 28px 20px 20px;
    margin: var(--space-md);
    width: calc(100% - 32px);
  }

  .modal-title {
    font-size: var(--font-size-xl);
  }

  .modal-close {
    top: 10px;
    right: 14px;
    font-size: 1.2rem;
  }

  .modal-input {
    font-size: var(--font-size-base);
  }

  .modal-submit {
    font-size: var(--font-size-base);
  }

  /* Success modal */
  .success-icon {
    width: 64px;
    height: 64px;
    font-size: 1.8rem;
  }

  .success-title {
    font-size: var(--font-size-xl);
  }
}

/* ============================================
   HEADER REGISTER BUTTON
   ============================================ */
.header-register-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  font-family: inherit;
}

.header-register-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* ============================================
   REGISTRATION MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

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

.modal-container {
  background: white;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 40px 36px 32px;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all 0.25s ease;
  line-height: 1;
}

.modal-close:hover {
  background: var(--color-border);
  color: var(--color-text);
}

.modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.modal-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.modal-logo::after {
  content: ' Global';
  color: var(--color-accent);
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 8px;
}

.modal-title span {
  color: var(--color-accent);
}

.modal-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-input-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.modal-input-group input {
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: all 0.25s ease;
  background: var(--color-bg);
  outline: none;
}

.modal-input-group input:focus {
  border-color: var(--color-cta);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: white;
}

.modal-submit {
  width: 100%;
  padding: 14px;
  background: var(--color-cta);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 4px;
}

.modal-submit:hover {
  background: var(--color-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.modal-footer {
  text-align: center;
  margin-top: 20px;
}

.modal-footer p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 4px;
}

.modal-footer a {
  color: var(--color-cta);
  text-decoration: none;
  font-weight: 600;
}

.modal-footer a:hover {
  text-decoration: underline;
}

.modal-terms {
  font-size: 11px !important;
  margin-top: 8px !important;
}

/* ============================================
   MODAL SUCCESS
   ============================================ */
.modal-success {
  text-align: center;
  padding: 20px 0 10px;
  animation: successFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-success .success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
  animation: successBounce 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes successBounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.modal-success h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 8px;
}

.modal-success p {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0 0 4px;
  line-height: 1.5;
}

.modal-success .success-detail {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.modal-success .success-btn {
  max-width: 220px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--color-accent), #FF8C42);
}

.modal-success .success-btn:hover {
  background: linear-gradient(135deg, #FF8C42, var(--color-accent));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

/* ============================================
   CHAT WIDGET
   ============================================ */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chat-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-cta);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
}

.chat-btn::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border-radius: 50%;
  bottom: 2px;
  right: 2px;
  border: 2px solid white;
}

.chat-window {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 48px);
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  background: var(--color-cta);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  line-height: 1;
  padding: 0;
}

.chat-close:hover {
  opacity: 1;
}

.chat-body {
  height: 300px;
  padding: 16px;
  overflow-y: auto;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  display: flex;
  max-width: 85%;
}

.chat-msg.bot {
  align-self: flex-start;
}

.chat-msg.user {
  align-self: flex-end;
}

.chat-msg-content {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.chat-msg.bot .chat-msg-content {
  background: white;
  color: var(--color-text);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.chat-msg.user .chat-msg-content {
  background: var(--color-cta);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-msg-content p {
  margin: 0;
}

.chat-msg-content p + p {
  margin-top: 6px;
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  background: white;
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.25s;
}

.chat-input:focus {
  border-color: var(--color-cta);
}

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-cta);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  flex-shrink: 0;
}

.chat-send:hover {
  background: var(--color-cta-hover);
  transform: scale(1.05);
}

/* Chat Mobile Responsive */
@media (max-width: 480px) {
  .chat-window {
    width: calc(100vw - 32px);
    right: -8px;
    bottom: 64px;
  }

  .chat-body {
    height: 250px;
  }

  .modal-container {
    padding: 32px 24px 24px;
  }
}
