/*
 * Kurdolla - Modern Responsive Stylesheet
 * Inspired by MagicStory.com design patterns
 * Fully responsive for desktop, tablet, and mobile
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Primary Colors */
  --primary: #FF6B35;
  --primary-hover: #E85A2A;
  --primary-light: #FFF4F0;
  
  /* Secondary Colors */
  --secondary: #4ECDC4;
  --secondary-hover: #3DB9B1;
  --secondary-light: #E8FAF9;
  
  /* Accent Colors */
  --accent-purple: #7C5CFF;
  --accent-pink: #FF6B9D;
  --accent-yellow: #FFD93D;
  --accent-green: #6BCB77;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-400: #BDBDBD;
  --gray-500: #9E9E9E;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  --black: #000000;
  
  /* Semantic Colors */
  --success: #4CAF50;
  --success-light: #E8F5E9;
  --warning: #FF9800;
  --warning-light: #FFF3E0;
  --error: #F44336;
  --error-light: #FFEBEE;
  --info: #2196F3;
  --info-light: #E3F2FD;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Nunito', 'Inter', sans-serif;
  --font-arabic: 'Noto Sans Arabic', 'Harmattan', sans-serif;
  --font-kurdish: 'RudawRegular2', 'Noto Sans Arabic', sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-toast: 600;
}

/* ============================================
   FONT FACES
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

@font-face {
  font-family: 'RudawRegular2';
  src: url('../fonts/rudawregular2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Harmattan';
  src: url('../fonts/harmattan.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NewRudaw';
  src: url('../fonts/NewRudaw-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   CSS RESET
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* RTL Support */
[dir="rtl"] body {
  font-family: var(--font-kurdish), var(--font-arabic), var(--font-primary);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  line-height: 1.2;
  color: var(--gray-900);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 640px) {
  .container { padding: 0 var(--space-6); }
}

@media (min-width: 1024px) {
  .container { padding: 0 var(--space-8); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.center { text-align: center; }

/* Margin Utilities */
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-20 { margin-top: var(--space-20); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-20 { margin-bottom: var(--space-20); }

/* Width Utilities */
.w-100 { width: 100%; }

/* Display Utilities */
.hidden { display: none !important; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: 1.5;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-900);
  border-color: var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

.btn-outline {
  background: transparent;
  color: var(--gray-900);
  border-color: var(--gray-300);
}

.btn-outline:hover {
  background: var(--gray-100);
}

.btn-success {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}

.btn-success:hover {
  background: #43A047;
  border-color: #43A047;
}

.btn-danger {
  background: var(--error);
  color: var(--white);
  border-color: var(--error);
}

.btn-danger:hover {
  background: #E53935;
  border-color: #E53935;
}

.btn-full {
  width: 100%;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* Social Login Buttons */
.btn-social {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  font-weight: var(--font-medium);
}

.btn-google {
  background: var(--white);
  color: var(--gray-800);
  border: 1px solid var(--gray-300);
}

.btn-google:hover {
  background: var(--gray-50);
  box-shadow: var(--shadow-sm);
}

.btn-fb {
  background: #1877F2;
  color: var(--white);
  border: 1px solid #1877F2;
}

.btn-fb:hover {
  background: #166FE5;
}

.btn-social .icon {
  font-weight: var(--font-bold);
  margin-right: var(--space-2);
}

/* ============================================
   HEADER
   ============================================ */
.app-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.app-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 70px;
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  height: 45px;
  flex-shrink: 0;
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Navigation */
.header-nav {
  display: none;
}

@media (min-width: 992px) {
  .header-nav {
    display: flex;
    align-items: center;
  }
}

.header-nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header-nav .nav-link {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--gray-700);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

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

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Language Selector */
.language-selector select {
  padding: var(--space-2) var(--space-3);
  padding-right: var(--space-8);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

[dir="rtl"] .language-selector select {
  padding-right: var(--space-3);
  padding-left: var(--space-8);
  background-position: left 10px center;
}

.language-selector select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Cart Menu */
.cart-menu {
  position: relative;
}

.cart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--gray-700);
  cursor: pointer;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  position: relative;
}

.cart-icon:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: var(--font-bold);
  color: var(--white);
  background: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  padding: var(--space-4);
  z-index: var(--z-dropdown);
  display: none;
}

[dir="rtl"] .cart-dropdown {
  right: auto;
  left: 0;
}

.cart-menu[open] .cart-dropdown {
  display: block;
  animation: slideDown 0.2s ease;
}

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

.cart-preview-list {
  max-height: 240px;
  overflow-y: auto;
}

.cart-preview-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--gray-100);
}

.cart-preview-item:last-child {
  border-bottom: none;
}

.cart-preview-item img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.cart-preview-info {
  flex: 1;
}

.preview-title {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-900);
  display: block;
}

.preview-price {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.cart-dropdown-footer {
  padding-top: var(--space-4);
  margin-top: var(--space-2);
  border-top: 1px solid var(--gray-200);
}

.view-cart-link {
  display: block;
  text-align: center;
  padding: var(--space-3);
  background: var(--primary);
  color: var(--white);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.view-cart-link:hover {
  background: var(--primary-hover);
}

.cart-empty-preview {
  text-align: center;
  color: var(--gray-500);
  padding: var(--space-4) 0;
}

/* User Menu */
.user-menu {
  position: relative;
}

.user-menu > summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  list-style: none;
}

.user-menu > summary::-webkit-details-marker {
  display: none;
}

.user-menu > summary:hover {
  background: var(--gray-100);
}

.user-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  color: var(--gray-700);
}

.username-display {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-700);
  display: none;
}

@media (min-width: 768px) {
  .username-display {
    display: block;
  }
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  padding: var(--space-2);
  z-index: var(--z-dropdown);
  display: none;
}

[dir="rtl"] .user-dropdown {
  right: auto;
  left: 0;
}

.user-menu[open] .user-dropdown {
  display: block;
  animation: slideDown 0.2s ease;
}

.user-dropdown li a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--gray-700);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.user-dropdown li a:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

/* Icon Button */
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

#menuBtn {
  display: flex;
}

@media (min-width: 992px) {
  #menuBtn {
    display: none;
  }
}

/* Guest My Books Button */
.guest-my-books {
  font-size: var(--text-sm);
}

/* ============================================
   MOBILE DRAWER
   ============================================ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--white);
  z-index: var(--z-modal);
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

[dir="rtl"] .drawer {
  left: auto;
  right: 0;
  transform: translateX(100%);
}

.drawer.active {
  transform: translateX(0);
}

[dir="rtl"] .drawer.active {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  border-bottom: 1px solid var(--gray-200);
}

.drawer-head h2 {
  font-size: var(--text-lg);
}

.drawer-body {
  flex: 1;
  padding: var(--space-4);
  overflow-y: auto;
}

.drawer-logo {
  margin-bottom: var(--space-6);
}

.drawer-logo .logo {
  height: 40px;
}

.nav-list {
  margin-bottom: var(--space-6);
}

.nav-list li {
  margin-bottom: var(--space-1);
}

.nav-list .nav-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--gray-700);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.nav-list .nav-link:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.drawer-languages {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.lang-btn {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-700);
  background: var(--gray-100);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--primary);
  color: var(--white);
}

.drawer-footer {
  padding: var(--space-4);
  border-top: 1px solid var(--gray-200);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding: var(--space-12) 0;
  background: linear-gradient(135deg, #FFF5F0 0%, #FFF0F5 50%, #F0F7FF 100%);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.text-side {
  text-align: center;
}

@media (min-width: 992px) {
  .text-side {
    text-align: left;
  }
  
  [dir="rtl"] .text-side {
    text-align: right;
  }
}

.hero h1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  color: var(--gray-900);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: var(--text-5xl);
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: var(--text-6xl);
  }
}

.hero .sub {
  display: block;
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  color: var(--gray-600);
}

.sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--white);
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-lg);
}

.sb-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* Book Grid in Hero */
.books {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: 500px;
  margin: 0 auto;
}

.books .col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.books .col.mid {
  margin-top: var(--space-8);
}

.books img {
  width: 100%;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-normal);
}

.books img:hover {
  transform: scale(1.05);
}

/* ============================================
   SHELF / BOOK CARDS SECTION
   ============================================ */
.shelf {
  padding: var(--space-16) 0;
}

.shelf--mint { background: #F0FDF9; }
.shelf--lavender { background: #F5F3FF; }
.shelf--peach { background: #FFF7ED; }
.shelf--blue { background: #EFF6FF; }

.shelf-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 640px) {
  .shelf-inner { padding: 0 var(--space-6); }
}

@media (min-width: 1024px) {
  .shelf-inner { padding: 0 var(--space-8); }
}

.eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.shelf-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--gray-900);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .shelf-title {
    font-size: var(--text-4xl);
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
}

.book-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.book-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.book-card .thumb {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.book-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.book-card:hover .thumb img {
  transform: scale(1.05);
}

.book-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--gray-900);
  padding: var(--space-4) var(--space-4) var(--space-2);
}

.book-sub {
  font-size: var(--text-sm);
  color: var(--gray-600);
  padding: 0 var(--space-4) var(--space-4);
  line-height: 1.5;
}

/* Pill Button with Price */
.pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - var(--space-8));
  margin: 0 var(--space-4) var(--space-4);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--white);
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
}

.pill:hover {
  background: var(--primary-hover);
}

.pill-price-btn {
  gap: var(--space-2);
}

.pill-price {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: rgba(255, 255, 255, 0.2);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
}

/* Price Tooltip */
.price-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: var(--white);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  margin-bottom: var(--space-2);
  z-index: var(--z-tooltip);
}

.price-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--gray-900);
}

.pill:hover .price-tooltip {
  opacity: 1;
  visibility: visible;
}

.price-option {
  margin-bottom: var(--space-1);
}

.price-option:last-child {
  margin-bottom: 0;
}

/* ============================================
   AUTHENTICATION PAGES
   ============================================ */
.auth-wrapper {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
  background: linear-gradient(135deg, #FFF5F0 0%, #F0F7FF 100%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-8);
}

.auth-card h2 {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  text-align: center;
  margin-bottom: var(--space-6);
}

/* Input Groups */
.input-group {
  margin-bottom: var(--space-4);
}

.input-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.input-group input,
.input-group select,
.input-group textarea,
.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--gray-900);
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus,
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.input-group input::placeholder {
  color: var(--gray-400);
}

/* Error Messages */
.error {
  color: var(--error);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}

.error-text {
  color: var(--error);
}

/* Success Messages */
.success {
  color: var(--success);
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-4);
  background: var(--success-light);
  border-radius: var(--radius-lg);
  text-align: center;
}

/* Social Login */
.social-login {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-200);
}

/* Helper Text */
.helper {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-top: var(--space-3);
}

.helper a {
  color: var(--primary);
  font-weight: var(--font-medium);
}

.helper a:hover {
  text-decoration: underline;
}

/* ============================================
   ACCOUNT PAGE
   ============================================ */
.account-container {
  padding: var(--space-8) 0;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 992px) {
  .account-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.profile-section,
.address-section {
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
}

.profile-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.avatar-wrapper {
  position: relative;
  cursor: pointer;
}

.avatar-img,
.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
}

.profile-info {
  flex: 1;
  min-width: 150px;
}

.profile-name {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-1);
}

.profile-email {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.profile-edit-form {
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-200);
}

.form-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* Address Section */
.address-section h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.address-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.address-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-4);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.address-info {
  font-size: var(--text-sm);
  line-height: 1.6;
}

.address-actions {
  display: flex;
  gap: var(--space-2);
}

.edit-address-btn,
.delete-address-btn {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.edit-address-btn:hover {
  background: var(--gray-100);
}

.delete-address-btn {
  color: var(--error);
  border-color: var(--error);
}

.delete-address-btn:hover {
  background: var(--error-light);
}

.no-address {
  text-align: center;
  color: var(--gray-500);
  padding: var(--space-6);
}

/* ============================================
   MY BOOKS PAGE
   ============================================ */
.my-books-page {
  padding: var(--space-8) 0;
  min-height: calc(100vh - 200px);
}

.my-books-page h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-8);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
}

.my-book-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.my-book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.my-book-card > a {
  display: block;
}

.my-book-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.my-book-card h3 {
  font-size: var(--text-lg);
  padding: var(--space-4) var(--space-4) var(--space-2);
}

.my-book-info {
  font-size: var(--text-sm);
  color: var(--gray-600);
  padding: 0 var(--space-4) var(--space-4);
  line-height: 1.6;
}

.my-book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0 var(--space-4) var(--space-4);
}

.my-book-actions .btn {
  flex: 1;
  min-width: 100px;
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3);
}

.delete-icon {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  color: var(--error);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  border-radius: var(--radius-full);
  opacity: 0;
  transition: all var(--transition-fast);
  z-index: 10;
}

[dir="rtl"] .delete-icon {
  right: auto;
  left: var(--space-3);
}

.my-book-card:hover .delete-icon {
  opacity: 1;
}

.delete-icon:hover {
  background: var(--error);
  color: var(--white);
}

.in-cart {
  background: var(--success-light);
  color: var(--success);
  border-color: var(--success);
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-page {
  padding: var(--space-8) 0;
  min-height: calc(100vh - 200px);
}

.cart-page h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}

/* Progress Steps */
.progress-steps {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-8);
  padding: var(--space-4);
  background: var(--gray-50);
  border-radius: var(--radius-xl);
}

.progress-steps .step {
  position: relative;
  padding: var(--space-2) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-400);
}

.progress-steps .step.active {
  color: var(--primary);
  font-weight: var(--font-bold);
}

.progress-steps .step::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 2px;
  background: var(--gray-300);
}

[dir="rtl"] .progress-steps .step::after {
  right: auto;
  left: 0;
}

.progress-steps .step:last-child::after {
  display: none;
}

/* Cart Layout */
.cart-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 992px) {
  .cart-main {
    grid-template-columns: 1fr 380px;
  }
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.empty-cart {
  text-align: center;
  color: var(--gray-500);
  padding: var(--space-12);
  background: var(--gray-50);
  border-radius: var(--radius-xl);
}

.cart-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
}

.item-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-info {
  flex: 1;
  position: relative;
}

.item-title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
}

.item-variant {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-bottom: var(--space-2);
}

.item-price {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--gray-900);
  margin-bottom: var(--space-3);
}

.item-qty-control {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--gray-100);
  border-radius: var(--radius-full);
  padding: var(--space-1);
}

.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--gray-700);
  background: var(--white);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.qty-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.qty-number {
  min-width: 24px;
  text-align: center;
  font-weight: var(--font-semibold);
}

.remove-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--gray-400);
  transition: all var(--transition-fast);
}

[dir="rtl"] .remove-btn {
  right: auto;
  left: 0;
}

.remove-btn:hover {
  color: var(--error);
}

/* Order Summary */
.order-summary {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  padding: var(--space-6);
  height: fit-content;
  position: sticky;
  top: 90px;
}

.order-summary h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-3) 0;
  font-size: var(--text-base);
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.summary-row.total {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--gray-900);
  border-bottom: none;
  padding-top: var(--space-4);
  margin-top: var(--space-2);
  border-top: 2px solid var(--gray-200);
}

.btn-continue {
  width: 100%;
  margin-top: var(--space-4);
  padding: var(--space-4);
}

/* Coupon */
.coupon-error {
  color: var(--error);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

/* ============================================
   DELIVERY PAGE
   ============================================ */
.delivery-page {
  padding: var(--space-8) 0;
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-page {
  padding: var(--space-8) 0;
}

/* Payment QR */
.payment-qr {
  text-align: center;
  padding: var(--space-6);
}

.payment-qr img {
  max-width: 250px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.payment-timer {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.status {
  font-weight: var(--font-semibold);
}

.status .paid {
  color: var(--success);
}

/* ============================================
   ORDERS PAGE
   ============================================ */
.my-orders-page {
  padding: var(--space-8) 0;
  min-height: calc(100vh - 200px);
}

.my-orders-page h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-8);
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.order-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.order-count {
  font-weight: var(--font-semibold);
  color: var(--gray-700);
}

.view-link {
  color: var(--primary);
  font-weight: var(--font-medium);
}

.view-link:hover {
  text-decoration: underline;
}

.order-card-body {
  padding: var(--space-4);
}

/* Order Status Bar */
.order-status-bar {
  display: flex;
  justify-content: space-between;
  margin: var(--space-6) 0;
  position: relative;
}

.order-status-bar .step {
  flex: 1;
  text-align: center;
  position: relative;
}

.order-status-bar .step .circle {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--gray-300);
  margin: 0 auto var(--space-2);
  position: relative;
  z-index: 1;
}

.order-status-bar .step.completed .circle {
  background: var(--primary);
}

.order-status-bar .step .title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
}

.order-status-bar .step .desc {
  font-size: var(--text-xs);
  color: var(--gray-500);
}

.order-status-bar .step::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--gray-300);
  z-index: 0;
}

.order-status-bar .step.completed::after {
  background: var(--primary);
}

.order-status-bar .step:last-child::after {
  display: none;
}

/* Order Detail Page */
.order-detail-page {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.order-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.order-detail-header h2 {
  margin: 0;
  font-size: var(--text-2xl);
}

.order-detail-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .order-detail-body {
    grid-template-columns: 1.5fr 1fr;
  }
}

.order-item-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
}

.order-item-card img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.order-item-info {
  flex: 1;
}

.item-title {
  font-weight: var(--font-semibold);
}

.item-meta {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.item-price {
  font-weight: var(--font-bold);
  margin-left: auto;
}

[dir="rtl"] .item-price {
  margin-left: 0;
  margin-right: auto;
}

.shipping-box,
.summary-box {
  background: var(--gray-50);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.summary-box p {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

/* ============================================
   GALLERY PAGE
   ============================================ */
.gallery-page {
  padding: var(--space-8) 0;
  min-height: calc(100vh - 200px);
}

.gallery-page h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-8);
  text-align: center;
}

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

.gallery-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.gallery-card-info {
  padding: var(--space-4);
}

.gallery-card-info h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.gallery-card-info p {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page {
  padding: var(--space-12) 0;
}

.contact-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
}

.contact-card h2 {
  font-size: var(--text-2xl);
  text-align: center;
  margin-bottom: var(--space-6);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-page {
  padding: var(--space-12) 0;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content h1 {
  font-size: var(--text-4xl);
  text-align: center;
  margin-bottom: var(--space-8);
}

.about-content p {
  font-size: var(--text-lg);
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

/* ============================================
   PHOTO TIPS
   ============================================ */
.photo-tips {
  background: var(--secondary-light);
  border: 2px dashed var(--secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  text-align: center;
}

.photo-tips-title {
  font-weight: var(--font-bold);
  text-transform: uppercase;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  color: var(--gray-800);
  letter-spacing: 0.05em;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  justify-items: center;
}

.tip-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.tip-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tip-icon {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 12px;
  font-weight: var(--font-bold);
  z-index: 2;
}

.tip-bad .tip-icon {
  background: var(--error);
}

.tip-good .tip-icon {
  background: var(--success);
}

/* ============================================
   FOOTER
   ============================================ */
.simple-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: var(--space-12) 0 var(--space-6);
  margin-top: auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  height: 40px;
}

.footer-logo img {
  height: 100%;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-nav {
  display: flex;
  gap: var(--space-6);
}

.footer-nav a {
  color: var(--gray-400);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--gray-800);
}

.footer-bottom p {
  font-size: var(--text-sm);
}

/* ============================================
   STORYBOOK PAGE SPECIFIC
   ============================================ */
.storybook-page {
  background: var(--white);
}

/* Story Index / Generator */
.story-generator {
  padding: var(--space-8) 0;
}

.story-step {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
}

.story-step h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
  text-align: center;
}

/* Flipbook */
.flipbook-container {
  max-width: 100%;
  margin: 0 auto;
  padding: var(--space-4);
}

/* ============================================
   TICKET / SUPPORT PAGES
   ============================================ */
.ticket-page {
  padding: var(--space-8) 0;
}

.ticket-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
}

.ticket-thread {
  margin-bottom: var(--space-6);
}

.ticket-message {
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  border-radius: var(--radius-lg);
}

.ticket-message.user {
  background: var(--primary-light);
  margin-left: var(--space-8);
}

[dir="rtl"] .ticket-message.user {
  margin-left: 0;
  margin-right: var(--space-8);
}

.ticket-message.admin {
  background: var(--gray-100);
  margin-right: var(--space-8);
}

[dir="rtl"] .ticket-message.admin {
  margin-right: 0;
  margin-left: var(--space-8);
}

/* ============================================
   CHATBOT PAGE
   ============================================ */
.chatbot-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: var(--space-8);
  text-align: center;
}

.chatbot-page h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.chatbot-page p {
  font-size: var(--text-lg);
  color: var(--gray-600);
  max-width: 500px;
}

/* ============================================
   WHATSAPP HELP BUTTON
   ============================================ */
.whatsapp-help {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-fixed);
}

[dir="rtl"] .whatsapp-help {
  right: auto;
  left: var(--space-6);
}

.whatsapp-help a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
}

.whatsapp-help a:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

/* ============================================
   404 PAGE
   ============================================ */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 70px);
  text-align: center;
  padding: var(--space-8);
}

.error-page h1 {
  font-size: 8rem;
  font-weight: var(--font-extrabold);
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.error-page p {
  font-size: var(--text-xl);
  color: var(--gray-600);
  margin-bottom: var(--space-8);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 640px) {
  html {
    font-size: 14px;
  }
  
  .hero {
    padding: var(--space-8) 0;
    min-height: auto;
  }
  
  .hero h1 {
    font-size: var(--text-3xl);
  }
  
  .auth-card {
    padding: var(--space-6);
  }
  
  .order-summary {
    position: static;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s ease forwards;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .app-header,
  .simple-footer,
  .whatsapp-help,
  .drawer,
  .overlay {
    display: none !important;
  }
  
  body {
    background: white;
  }
}
