/* ==========================================
   NIMO SHOP PREMIUM - LIGHT STORE THEME
   ========================================== */

:root {
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --bg-banner: #ffffff;
  --border-light: #e2e8f0;
  --border-blue: #bfdbfe;
  
  --text-main: #0f172a;
  --text-sub: #475569;
  --text-muted: #94a3b8;
  
  --primary-blue: #2563eb;
  --primary-blue-hover: #1d4ed8;
  --accent-pink: #db2777;
  --accent-green: #059669;
  --accent-yellow: #d97706;
  --accent-red: #dc2626;

  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 10px 25px -5px rgba(37, 99, 235, 0.08), 0 8px 10px -6px rgba(37, 99, 235, 0.08);
  --shadow-dropdown: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  min-height: 100vh;
}

/* App Wrapper */
.app-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Spinner */
.app-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  gap: 1rem;
  min-height: 400px;
}
.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(37, 99, 235, 0.1);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Standard Header */
.store-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 0.85rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-light);
  position: relative;
  z-index: 40;
}

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

.store-logo-icon {
  background: var(--primary-blue);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
}

.store-logo-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-blue);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.store-logo-text p {
  font-size: 0.7rem;
  color: var(--text-sub);
  font-weight: 500;
}

/* Header Search Bar */
.header-search {
  flex-grow: 1;
  max-width: 460px;
  margin: 0 2rem;
  position: relative;
}

.header-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.search-input:focus {
  background: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Badges section in Header */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-badge {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.badge-wallet {
  background: var(--accent-pink);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
}

.badge-wallet:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(219, 39, 119, 0.2);
}

.badge-wallet:active {
  transform: translateY(0);
}

.badge-coins {
  background: var(--accent-green);
}

/* User Account Dropdown */
.user-dropdown-container {
  position: relative;
}

.user-avatar-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}

.user-avatar-trigger:hover {
  background: #e2e8f0;
}

.user-avatar {
  width: 28px;
  height: 28px;
  background: var(--primary-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-card {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  width: 230px;
  box-shadow: var(--shadow-dropdown);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 50;
}

.user-dropdown-card.active {
  display: flex;
  animation: slideDown 0.2s ease-out;
}

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

.dropdown-user-header {
  padding: 1rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
}

.dropdown-user-header strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
}

.dropdown-user-header span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-sub);
  margin-top: 0.15rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dropdown-item:hover {
  background: #f1f5f9;
  color: var(--primary-blue);
}

.dropdown-item.logout {
  border-top: 1px solid var(--border-light);
  color: var(--accent-red);
}

.dropdown-item.logout:hover {
  background: rgba(220, 38, 38, 0.03);
  color: var(--accent-red);
}

/* Hero Banner Section */
.hero-banner {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.hero-banner-bg-img {
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  height: 145%;
  width: auto;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
  opacity: 0.95;
}

.hero-banner::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 250px;
  height: 250px;
  background: rgba(37, 99, 235, 0.03);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-left {
  max-width: 58%;
  position: relative;
  z-index: 2;
}

.hero-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hero-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-badge-outline {
  border: 1px solid var(--primary-blue);
  color: var(--primary-blue);
}

.hero-badge-solid {
  background: var(--primary-blue);
  color: white;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 2rem;
}

/* Category grid in Hero */
.hero-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.hero-cat-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.65rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.hero-cat-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: rgba(37, 99, 235, 0.02);
  transform: translateY(-1px);
}

/* Hero Right Widget */
.hero-right {
  width: 32%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.support-widget {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  width: 100%;
  max-width: 240px;
}

.support-icon-circle {
  width: 64px;
  height: 64px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem auto;
}

.support-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.support-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.support-badge-pill {
  display: inline-block;
  background: #eff6ff;
  border: 1px solid var(--border-blue);
  color: var(--primary-blue);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
}

.support-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #0088cc;
  color: white !important;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.support-btn-link:hover {
  background: #0077b3;
  transform: translateY(-1px);
}

/* Section Dividers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-left: 0.5rem;
  border-left: 4px solid var(--primary-blue);
}

.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
}

.section-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Product Card Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  
  .product-card {
    border-radius: 12px !important;
  }
  
  .product-card-body {
    padding: 0.75rem !important;
  }
  
  .product-card-banner {
    height: 90px !important;
  }
  
  .product-card-banner img {
    max-height: 40px !important;
  }
  
  .product-title {
    font-size: 0.82rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.25rem !important;
  }
  
  .product-desc {
    font-size: 0.7rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.5rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .product-card-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.4rem !important;
    padding-top: 0.5rem !important;
  }
  
  .product-price {
    font-size: 0.95rem !important;
  }
  
  .btn-buy {
    width: 100% !important;
    padding: 0.4rem 0.5rem !important;
    font-size: 0.75rem !important;
    text-align: center !important;
  }
  
  .product-meta-tags {
    margin-top: 0.5rem !important;
    margin-bottom: 0.25rem !important;
    gap: 0.25rem !important;
  }
  
  .product-tag {
    font-size: 0.65rem !important;
    padding: 0.15rem 0.4rem !important;
  }
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

.product-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-body-grow {
  flex-grow: 1;
}

.product-card-banner {
  height: 115px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
  background: #f8fafc;
}

.product-card-banner img {
  max-height: 50px;
  max-width: 80%;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.product-card:hover .product-card-banner img {
  transform: scale(1.05);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-hover);
}

/* Rank Badge */
.product-rank {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--primary-blue);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Product Category & Source Tags */
.product-meta-tags {
  display: flex;
  gap: 0.35rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.product-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.tag-category {
  background: #eff6ff;
  color: var(--primary-blue);
}

.tag-source-default {
  background: #fff3e0;
  color: #e65100;
}

.tag-source-nimo {
  background: #e0e7ff;
  color: #312e81;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  margin-top: 0.25rem;
}

.product-desc {
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.45;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.product-price-wrapper {
  display: flex;
  flex-direction: column;
}

.product-price-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.btn-buy {
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-buy:hover {
  background: var(--primary-blue-hover);
  transform: translateY(-1px);
}

.btn-buy:disabled {
  background: #e2e8f0;
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
}

/* Modals System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.25s ease-out;
}

.modal-content {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: scaleUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  color: var(--text-main);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e293b;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-close:hover {
  color: var(--accent-red);
}

.modal-body {
  padding: 1.5rem;
}

/* Topup Modal Elements */
.amount-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.amount-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.55rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.amount-btn:hover {
  background: #e2e8f0;
}

.amount-btn.active {
  background: var(--primary-blue);
  border-color: transparent;
  color: white;
}

.qr-display-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
  animation: fadeIn 0.3s ease-out;
}

.qr-frame {
  background: white;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.qr-image {
  width: 180px;
  height: 180px;
}

.qr-timer {
  font-size: 0.85rem;
  color: var(--accent-yellow);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.bank-grid-instructions {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.78rem;
  color: var(--text-sub);
  line-height: 1.45;
}

.bank-grid-instructions strong {
  color: #1e293b;
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
}

.bank-grid-instructions ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.5rem;
}

.bank-grid-instructions li {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Info Box / Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--primary-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-primary {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-blue);
  border: none;
  border-radius: 8px;
  color: white;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background: var(--primary-blue-hover);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Info rows inside confirm purchase */
.modal-info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
}
.modal-info-label {
  color: var(--text-sub);
}
.modal-info-value {
  font-weight: 700;
  color: var(--text-main);
}

.modal-desc-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.85rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-sub);
  margin-bottom: 1.25rem;
}

/* Delivered modal details */
.success-header {
  text-align: center;
  margin-bottom: 1rem;
}
.success-icon {
  font-size: 2.2rem;
  color: var(--accent-green);
  margin-bottom: 0.5rem;
}

.credentials-box {
  background: #f1f5f9;
  border: 1px dashed var(--accent-green);
  border-radius: 12px;
  padding: 1rem 1rem 0.5rem 1rem;
  position: relative;
  margin-bottom: 1rem;
}

.btn-copy {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-sub);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-copy:hover {
  background: #f8fafc;
}

.credential-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
}

.credential-value {
  font-family: monospace;
  font-weight: 700;
  color: var(--primary-blue);
  background: #eff6ff;
  padding: 0.05rem 0.25rem;
  border-radius: 4px;
}

.guide-box {
  background: #eff6ff;
  border: 1px solid var(--border-blue);
  border-radius: 10px;
  padding: 0.85rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-sub);
  margin-bottom: 1.25rem;
}

.guide-box strong {
  color: var(--primary-blue);
  display: block;
  margin-bottom: 0.25rem;
}

/* Login Panel (Standard Style) */
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  min-height: 500px;
}

.login-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.login-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 0.35rem;
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 1.5rem;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  padding: 0.75rem;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-sub);
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
}

.auth-tab:hover {
  color: var(--primary-blue);
}

.auth-tab.active {
  color: var(--primary-blue);
  border-bottom: 2px solid var(--primary-blue);
  margin-bottom: -2px;
}

.login-guide {
  margin-top: 1.5rem;
  padding: 0.85rem;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 0.78rem;
  color: var(--text-sub);
  line-height: 1.45;
  text-align: left;
}

.login-guide code {
  background: #e2e8f0;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 600;
  color: var(--accent-pink);
}

/* Footer style */
.store-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.store-footer p {
  margin-bottom: 0.25rem;
}

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

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive adjustments */
@media(max-width: 768px) {
  .hero-banner {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  .hero-left {
    max-width: 100%;
  }
  .hero-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-right {
    width: 100%;
  }
  .support-widget {
    max-width: 100%;
  }
  .header-search {
    display: none; /* Hide middle search on small devices */
  }
}

/* Payment Methods Grid & Buttons */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.pay-method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pay-method-btn:hover {
  background: #f1f5f9;
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.pay-method-btn.active {
  background: rgba(37, 99, 235, 0.05);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.pay-method-btn i {
  font-size: 1.15rem;
}

/* Responsive Product Details Modal Layout */
@media (max-width: 650px) {
  .product-detail-layout {
    flex-direction: column !important;
    gap: 1.25rem !important;
  }
  .product-detail-left {
    width: 100% !important;
    max-width: 160px !important;
    margin: 0 auto;
  }
  
  /* Compact User Profile trigger in header */
  .user-name,
  .user-avatar-trigger i {
    display: none !important;
  }
  .user-avatar-trigger {
    padding: 0.2rem !important;
    border-radius: 50% !important;
    border: none !important;
    background: transparent !important;
  }
}
