/* ==============================================================================
   نیک‌کالا (NikKala) - Modern Persian E-Commerce Stylesheet
   Pure Vanilla CSS - Ultra Lightweight & GPU Accelerated
   ============================================================================== */

:root {
  --primary: #ef394e;
  --primary-hover: #d82b3f;
  --primary-light: #fef0f2;
  --primary-gradient: linear-gradient(135deg, #ef394e 0%, #fa5c6e 100%);
  --secondary: #0077b6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --bg-main: #f8f9fa;
  --bg-card: #ffffff;
  --bg-alt: #f1f2f4;

  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --text-light: #9ca3af;

  --border-color: #e5e7eb;
  --border-light: #f3f4f6;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px rgba(239, 57, 78, 0.35);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Basics */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

button, input {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top Announcement Bar */
.top-bar {
  background: #111827;
  color: #f3f4f6;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-tag {
  background: var(--primary);
  color: #fff;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-bar-links a:hover {
  color: var(--primary);
}

.divider {
  opacity: 0.3;
}

/* Main Navigation Header */
.main-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1.5rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-icon {
  font-size: 1.75rem;
  color: var(--primary);
  filter: drop-shadow(0 2px 4px rgba(239, 57, 78, 0.4));
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.logo-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.search-box {
  position: relative;
  max-width: 540px;
  width: 100%;
}

.search-box input {
  width: 100%;
  padding: 0.7rem 2.75rem 0.7rem 1.25rem;
  background: var(--bg-alt);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(239, 57, 78, 0.15);
}

.search-btn {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auth-header-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-dark);
}

.auth-header-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.cart-btn {
  position: relative;
  background: var(--bg-alt);
  border: none;
  padding: 0.65rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-dark);
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.cart-btn:hover {
  background: var(--primary);
  color: #fff;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Category Sub Nav */
.nav-bar {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  font-size: 0.875rem;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow-x: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  display: block;
  padding: 0.75rem 0.25rem;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
  position: relative;
}

.nav-item:hover, .nav-item.active {
  color: var(--primary);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-item.special-deal {
  color: var(--primary);
  font-weight: 700;
}

.express-tag {
  font-size: 0.8rem;
  color: #059669;
  font-weight: 600;
  white-space: nowrap;
}

/* Hero Section */
.hero-section {
  padding: 2.5rem 0 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  padding-left: 1.5rem;
}

.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(239, 57, 78, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 57, 78, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  background: #fdf2f3;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.stat-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-dark);
}

.stat-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero Promo Card */
.promo-card {
  background: linear-gradient(145deg, #1f2937, #111827);
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
}

.promo-tag {
  background: rgba(255, 255, 255, 0.12);
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  align-self: flex-start;
}

.promo-img-wrapper {
  margin: 2rem 0;
  text-align: center;
}

.mock-device {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.device-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(239, 57, 78, 0.5) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(20px);
}

.device-label {
  position: relative;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.promo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.promo-price-tag {
  font-size: 0.9rem;
  color: #fb7185;
  font-weight: 700;
}

/* Trust Section */
.trust-section {
  padding: 1.5rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.trust-card {
  background: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(239, 57, 78, 0.3);
}

.trust-icon {
  font-size: 2rem;
  background: var(--bg-alt);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.trust-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.trust-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Incredible Deals Section */
.deals-section {
  margin: 3rem 0;
  background: var(--primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.deals-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.deals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.deals-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.deals-title h2 {
  font-size: 1.5rem;
  font-weight: 900;
}

.deals-icon {
  font-size: 1.75rem;
  animation: pulse 1.5s infinite;
}

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

.countdown-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
}

.countdown-label {
  font-size: 0.85rem;
  font-weight: 500;
}

.timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  direction: ltr;
}

.timer-unit b {
  background: #ffffff;
  color: var(--primary);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.deals-carousel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Product Cards */
.products-section {
  padding: 2rem 0 4rem;
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  background: #fff;
  padding: 0.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.filter-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(239, 57, 78, 0.3);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.card-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.card-rating {
  font-size: 0.8rem;
  color: #eab308;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.product-img-box {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
  font-size: 4rem;
  user-select: none;
  transition: var(--transition);
}

.product-card:hover .product-img-box {
  transform: scale(1.03);
}

.product-info h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  min-height: 2.8rem;
}

.product-specs {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.product-pricing {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.old-price {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: line-through;
  display: block;
}

.current-price {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-dark);
}

.current-price span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.add-to-cart-btn {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(239, 57, 78, 0.2);
  padding: 0.55rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-to-cart-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* Deal cards style override */
.deals-carousel .product-card {
  color: var(--text-dark);
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}

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

.cart-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.cart-body {
  padding: 1.25rem;
  flex: 1;
  overflow-y: auto;
}

.empty-cart-msg {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-cart-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 800;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.5rem;
}

.cart-qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
}

.cart-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-alt);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: 700;
}

.cart-total-price {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary);
}

/* Footer */
.main-footer {
  background: #111827;
  color: #9ca3af;
  padding-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo .logo-text {
  color: #fff;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 380px;
}

.footer-contact-info {
  font-size: 0.825rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: #d1d5db;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  font-size: 0.85rem;
}

.footer-col a:hover {
  color: var(--primary);
}

.badges-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mock-badge {
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  text-align: center;
  min-width: 90px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: var(--transition);
  cursor: pointer;
}

.mock-badge:hover {
  border-color: var(--primary);
  background: #283344;
}

.badge-star {
  color: #f59e0b;
  font-size: 0.7rem;
}

.mock-badge span {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.mock-badge small {
  font-size: 0.65rem;
  color: #9ca3af;
}

.footer-bottom {
  background: #0b0f19;
  padding: 1.25rem 0;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #10b981;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

/* ==============================================================================
   Authentication Page (auth.html) Styles
   ============================================================================== */
.auth-body {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-container {
  width: 100%;
  max-width: 460px;
}

.auth-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header .logo {
  justify-content: center;
  margin-bottom: 1rem;
}

.auth-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-tabs {
  display: flex;
  background: var(--bg-alt);
  padding: 0.3rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 0.65rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.auth-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.label-with-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.link-small {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

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

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  right: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 0.75rem 2.6rem 0.75rem 2.5rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: var(--transition);
  background: #fafafa;
}

.input-wrapper input:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(239, 57, 78, 0.15);
}

.toggle-password-btn {
  position: absolute;
  left: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.7;
}

.password-meter {
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  margin-top: 0.35rem;
  overflow: hidden;
}

.meter-bar {
  height: 100%;
  width: 0%;
  transition: var(--transition);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
}

.remember-checkbox, .terms-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.auth-footer-nav {
  margin-top: 1.5rem;
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.back-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

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

.auth-security-notice {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* Utility & Toast */
.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1f2937;
  color: #fff;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  pointer-events: none;
}

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

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    padding-left: 0;
  }
  .hero-actions, .hero-stats {
    justify-content: center;
  }
  .product-grid, .deals-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .top-bar {
    display: none;
  }
  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .header-right {
    justify-content: space-between;
  }
  .search-box {
    max-width: 100%;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .product-grid, .deals-carousel {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
}
