:root {
  --primary-blue: #143485;
  --primary-yellow: #f8df3a;
  --bg-color: #fcfbfa;
  --text-color: #333333;
  --text-light: #777777;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --radius: 8px;
  --shadow: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-hover: 0 10px 15px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Header */
header {
  background-color: var(--primary-yellow);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform 0.3s ease-in-out;
}

header.header-hidden {
  transform: translateY(-100%);
}

.top-bar {
  background-color: var(--primary-blue);
  color: var(--white);
  font-size: 0.85rem;
  padding: 5px 0;
  text-align: center;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  order: 1;
}

.logo-icon {
  background-color: var(--primary-blue);
  color: var(--primary-yellow);
  font-weight: 900;
  font-size: 1.5rem;
  padding: 5px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.logo-text {
  color: var(--primary-blue);
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition);
}

nav a:hover {
  color: #000;
}

.cart-btn {
  order: 2;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  min-height: 60vh;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #0d235e 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  margin-bottom: 50px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background-color: var(--primary-yellow);
  border-radius: 50%;
  opacity: 0.1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-yellow);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-inline: auto;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary-yellow);
  color: var(--primary-blue);
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(248, 223, 58, 0.4);
}

/* Footer */
footer {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
  text-align: left;
}

.footer-col h3 {
  color: var(--primary-yellow);
  margin-bottom: 15px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: #aaa;
}

/* Search Form Styles */
.search-form {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 50px;
  padding: 4px 6px 4px 15px;
  border: 1px solid rgba(20,52,133,0.15);
  width: 100%;
  transition: var(--transition);
}
.search-form:focus-within {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(20,52,133,0.1);
}
.search-form input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.9rem;
  color: var(--text-color);
  font-family: inherit;
}
.search-form button {
  background: var(--primary-blue);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}
.search-form button:hover {
  background: #0d235e;
  transform: scale(1.05);
}

/* Responsive Navigation Styles */
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
  max-width: 100%;
  order: 3;
  justify-content: center;
}

#nav-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#nav-list.expanded {
  flex-wrap: wrap;
}

#nav-list li {
  display: inline-block;
}

nav a {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  white-space: nowrap;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  transition: var(--transition);
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--primary-yellow);
}

.nav-more-btn {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.05rem;
  font-family: inherit;
  cursor: pointer;
  margin-left: 5px;
  white-space: nowrap;
  align-self: center;
  line-height: 1.2;
  flex-shrink: 0;
  transition: var(--transition);
}

.nav-more-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--primary-yellow);
}

@media (max-width: 1100px) {
  .nav-container {
    justify-content: center;
  }
  #nav-list {
    justify-content: center;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .logo-text {
    font-size: 1.5rem;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-col {
    text-align: center;
  }
  .hero {
    padding: 40px 20px;
  }
}

/* ========================================================
   Mobile-First Package Selection Modal / Bottom Sheet
   ======================================================== */
.pkg-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.pkg-modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.pkg-modal-sheet {
  position: relative;
  background: var(--white);
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  z-index: 1;
}

.pkg-modal.open .pkg-modal-sheet {
  transform: translateY(0);
}

@media (min-width: 769px) {
  .pkg-modal {
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .pkg-modal-sheet {
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.08);
    transform: scale(0.95);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 85vh;
  }
  .pkg-modal.open .pkg-modal-sheet {
    transform: scale(1);
  }
}

.pkg-sheet-handle-bar {
  display: flex;
  justify-content: center;
  padding: 10px 0 4px 0;
}
.pkg-sheet-handle {
  width: 44px;
  height: 5px;
  background: #cbd5e1;
  border-radius: 3px;
}
@media (min-width: 769px) {
  .pkg-sheet-handle-bar {
    display: none;
  }
}

.pkg-sheet-header {
  padding: 12px 20px 14px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pkg-product-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.pkg-product-preview img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.pkg-product-title-wrap {
  flex: 1;
  min-width: 0;
}

.pkg-supplier-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.pkg-sheet-header h3 {
  margin: 0;
  font-size: 1rem;
  color: #1e293b;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pkg-modal-close {
  background: #f1f5f9;
  color: #64748b;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  transition: var(--transition);
  flex-shrink: 0;
}

.pkg-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.pkg-sheet-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

.pkg-section-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.pkg-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.pkg-option-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.pkg-option-card:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.pkg-option-card.selected {
  border-color: var(--primary-blue);
  background: #eff6ff;
  box-shadow: 0 0 0 1px var(--primary-blue);
}

.pkg-option-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pkg-radio-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.pkg-option-card.selected .pkg-radio-circle {
  border-color: var(--primary-blue);
  background: var(--primary-blue);
}

.pkg-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.pkg-option-card.selected .pkg-radio-dot {
  opacity: 1;
  transform: scale(1);
}

.pkg-option-info {
  display: flex;
  flex-direction: column;
}

.pkg-option-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e293b;
}

.pkg-option-desc {
  font-size: 0.8rem;
  color: #64748b;
}

.pkg-option-right {
  text-align: right;
  flex-shrink: 0;
}

.pkg-option-price-eur {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary-blue);
}

.pkg-option-price-bgn {
  font-size: 0.8rem;
  color: #64748b;
  display: block;
}

.pkg-option-unit-hint {
  font-size: 0.72rem;
  color: #059669;
  font-weight: 600;
  display: block;
}

.pkg-qty-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 16px;
}

.pkg-qty-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: #334155;
}

.pkg-qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.pkg-qty-btn {
  width: 44px;
  height: 40px;
  background: #f8fafc;
  border: none;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.pkg-qty-btn:hover {
  background: #e2e8f0;
}

.pkg-qty-stepper input {
  width: 50px;
  height: 40px;
  border: none;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  outline: none;
}

.pkg-total-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 8px 0;
}

.pkg-total-label {
  font-size: 1rem;
  font-weight: 700;
  color: #475569;
}

.pkg-total-amount {
  text-align: right;
}

#pkgModalTotalEur {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary-blue);
}

#pkgModalTotalBgn {
  font-size: 0.85rem;
  color: #64748b;
  display: block;
}

.pkg-sheet-footer {
  padding: 12px 20px 20px 20px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.pkg-btn-confirm {
  width: 100%;
  height: 48px;
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(20, 52, 133, 0.25);
}

.pkg-btn-confirm:hover {
  background: #0d235e;
  transform: translateY(-1px);
}

.pkg-btn-confirm:active {
  transform: scale(0.98);
}

/* Pack Badge on Product Cards */
.pack-badge {
  display: inline-block;
  background: #eff6ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.pack-badge:hover {
  background: #dbeafe;
  transform: scale(1.04);
}

.product-pack-hint {
  font-size: 0.8rem;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px dashed #7dd3fc;
  border-radius: 4px;
  padding: 4px 6px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.product-pack-hint:hover {
  background: #e0f2fe;
  border-color: #0284c7;
}

/* Product Card Add to Cart Buttons */
.btn-add-cart {
  background: var(--primary-blue) !important;
  color: var(--white) !important;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  font-size: 0.95rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(20, 52, 133, 0.2);
}

.btn-add-cart:hover,
.btn-has-packages:hover {
  background: var(--primary-yellow) !important;
  color: var(--primary-blue) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* Brand Filter Styles */
.brand-filter-item:hover {
  background: #e2e8f0 !important;
  color: var(--primary-blue) !important;
}

.brand-filter-item.active:hover {
  background: #dbeafe !important;
}

.brand-checkbox-item:hover {
  background: #f1f5f9;
}

.btn-apply-brands:hover {
  background: var(--primary-yellow) !important;
  color: var(--primary-blue) !important;
}

/* Products Header Bar & Sorting Dropdown */
.products-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.products-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 640px) {
  .products-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .products-sort-wrapper {
    width: 100%;
    justify-content: space-between;
  }
  .products-sort-wrapper select {
    flex: 1;
  }
}

/* ========================================================
   Mobile-Optimized Product Grid (2 columns on mobile)
   ======================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-card {
    padding: 10px !important;
  }
  .product-card h4 {
    font-size: 0.88rem !important;
    height: 38px !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
  }
  .product-card p {
    font-size: 1rem !important;
    margin-bottom: 10px !important;
  }
  .product-card p span {
    font-size: 0.78rem !important;
  }
  .btn-add-cart {
    padding: 8px 6px !important;
    font-size: 0.84rem !important;
    border-radius: 6px !important;
  }
}

.product-card-img-wrap {
  background: var(--white) !important;
}

/* ========================================================
   Header Action Buttons (Unified circular: yellow bg, blue icon)
   ======================================================== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  order: 2;
}

.header-icon-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  color: var(--primary-yellow);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(20, 52, 133, 0.25);
  padding: 0;
  box-sizing: border-box;
}

.header-icon-btn:hover {
  background-color: #0d235e;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(20, 52, 133, 0.35);
}

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

.header-icon-btn svg {
  display: block;
  stroke: var(--primary-yellow);
  transition: transform 0.2s ease;
}

.header-icon-btn:hover svg {
  transform: scale(1.08);
}

/* Modifier for Info Page (Yellow background, Blue icon) */
.header-icon-btn-yellow {
  background-color: var(--primary-yellow) !important;
  color: var(--primary-blue) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.header-icon-btn-yellow:hover {
  background-color: #ffd624 !important;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25) !important;
}

.header-icon-btn-yellow svg {
  stroke: var(--primary-blue) !important;
}

/* Floating Cart Badge */
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--primary-yellow);
  color: var(--primary-blue);
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  line-height: 16px;
  padding: 0 4px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  border: 2px solid #ffffff;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.user-menu-wrap {
  position: relative;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  min-width: 190px;
  z-index: 1000;
  overflow: hidden;
  animation: dropdownFadeIn 0.15s ease-out;
}

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

.user-dropdown-header {
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: #334155;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s;
  text-align: left;
}
.user-dropdown-item:hover {
  background-color: #f1f5f9;
  color: var(--primary-blue);
}
.user-dropdown-item.text-danger {
  color: #dc2626;
  border-top: 1px solid #f1f5f9;
}
.user-dropdown-item.text-danger:hover {
  background-color: #fef2f2;
}

/* ========================================================
   Auth Login Modal Styles
   ======================================================== */
.auth-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.auth-modal.open {
  display: flex;
}

.auth-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10001;
}

.auth-modal-card {
  position: relative;
  z-index: 10002;
  background: #ffffff;
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  padding: 30px;
  animation: authModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes authModalPop {
  0% { opacity: 0; transform: scale(0.92) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
.auth-modal-close:hover {
  color: #1e293b;
}

.auth-input-group {
  margin-bottom: 18px;
  text-align: left;
}
.auth-input-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 6px;
}
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-wrap input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.auth-input-wrap input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(20, 52, 133, 0.15);
}
.auth-pass-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  font-size: 1.1rem;
  padding: 4px 6px;
}
.auth-pass-toggle:hover {
  color: #0f172a;
}

.auth-error-box {
  display: none;
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 18px;
  text-align: left;
}

.auth-submit-btn {
  width: 100%;
  background-color: var(--primary-blue);
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(20, 52, 133, 0.2);
}
.auth-submit-btn:hover {
  background-color: #0d235e;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}


