/*
 * Professional dark theme — accent #2596be
 * Inspired by BoostCord-style layout
 */

:root {
  --accent: #2596be;
  --accent-rgb: 37, 150, 190;
  --accent-light: #3bb3d9;
  --accent-dark: #1a7a9e;
  --accent-glow: rgba(37, 150, 190, 0.4);
  --surface-dark: #060810;
  --surface-elevated: #0c1018;
  --surface-card: rgba(12, 16, 28, 0.75);
  --text-muted: #8b95a8;
  --nav-height: 56px;
}

/* ── Base ── */
body {
  background-color: #050810;
  color: #f0f0f0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(var(--accent-rgb), 0.35);
  color: #ffffff;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050810; }
::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Cosmic background ── */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(var(--accent-rgb), 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(var(--accent-rgb), 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #050810 0%, #030508 100%);
}

.cosmic-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.15) 0%, transparent 70%);
  filter: blur(60px);
}

.cosmic-shard {
  position: absolute;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.25), rgba(var(--accent-rgb), 0.05));
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  backdrop-filter: blur(4px);
  transform: rotate(45deg);
  animation: shardFloat 8s ease-in-out infinite;
}

.cosmic-shard-1 { width: 60px; height: 60px; top: 12%; left: 8%; animation-delay: 0s; opacity: 0.5; }
.cosmic-shard-2 { width: 40px; height: 40px; top: 25%; right: 12%; animation-delay: -2s; opacity: 0.35; }
.cosmic-shard-3 { width: 80px; height: 80px; top: 55%; left: 5%; animation-delay: -4s; opacity: 0.25; }
.cosmic-shard-4 { width: 50px; height: 50px; top: 70%; right: 8%; animation-delay: -1s; opacity: 0.4; }
.cosmic-shard-5 { width: 35px; height: 35px; top: 40%; left: 18%; animation-delay: -3s; opacity: 0.3; }
.cosmic-shard-6 { width: 45px; height: 45px; top: 18%; right: 25%; animation-delay: -5s; opacity: 0.45; }

@keyframes shardFloat {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(-12px); }
}

.bg-image {
  opacity: 0.08;
  filter: saturate(0.2);
}

/* ── Shop name branding ── */
.shop-name {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.shop-name-accent { color: var(--accent); }
.shop-name-light { color: #ffffff; }

.navbar .navbar-brand .shop-name { font-size: 1.15rem; }
.page-loader-brand .shop-name { font-size: 2rem; }
.shop-name-footer .shop-name { font-size: 1.25rem; }

/* ── Page loader ── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050810;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader--hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.page-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  text-align: center;
}

.page-loader-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 0 20px var(--accent-glow));
  animation: loaderPulse 2s ease-in-out infinite;
}

.page-loader-bar {
  width: 220px;
  height: 4px;
  background: rgba(var(--accent-rgb), 0.15);
  border-radius: 100px;
  overflow: hidden;
}

.page-loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-light));
  border-radius: 100px;
  transition: width 0.3s ease;
  box-shadow: 0 0 12px var(--accent-glow);
}

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

/* ── Header & announcement ── */
header.sticky-top {
  position: relative !important;
  z-index: 1000;
  background: transparent !important;
  border: none !important;
}

.announcement {
  background: rgba(5, 8, 16, 0.95) !important;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.1) !important;
  color: var(--text-muted) !important;
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  font-weight: 400;
}

.announcement a { color: var(--accent) !important; }

/* ── Floating pill navbar ── */
.navbar-wrapper {
  padding: 0.75rem 1rem 0;
  display: flex;
  justify-content: center;
}

.navbar.navbar-pill {
  background: transparent !important;
  border: none !important;
  padding: 0;
  width: 100%;
  max-width: 1100px;
}

.navbar-pill-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 1.25rem;
  background: rgba(10, 14, 24, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: 100px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0;
  margin-right: auto;
  border: none;
}

.navbar .navbar-brand img {
  max-height: 2rem;
  border-radius: 8px;
}

.navbar .navbar-collapse {
  flex-grow: 1;
  justify-content: center;
}

.navbar-nav-center {
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  margin: 0 auto;
}

.navbar-nav-right {
  flex-direction: row;
  align-items: center;
  margin-left: auto;
}

.navbar .nav-link {
  color: #9aa3b5 !important;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.4rem 0.85rem !important;
  border-radius: 100px;
  transition: color 0.2s ease, background 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-item a.nav-link.active {
  color: #ffffff !important;
  background: rgba(var(--accent-rgb), 0.1);
}

.btn-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(var(--accent-rgb), 0.1) !important;
  border: 1px solid rgba(var(--accent-rgb), 0.2) !important;
  color: var(--accent) !important;
  transition: all 0.2s ease;
}

.btn-nav-icon:hover {
  background: rgba(var(--accent-rgb), 0.25) !important;
  box-shadow: 0 0 16px var(--accent-glow);
  color: #ffffff !important;
}

.navbar .cart .btn .count,
.navbar .cart .btn-nav-icon .count {
  background: var(--accent);
  color: #fff;
}

.navbar .navbar-toggler {
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 50%;
  padding: 0.35rem 0.5rem;
}

@media (max-width: 991px) {
  .navbar-pill-inner {
    border-radius: 20px;
  }

  .navbar-nav-center,
  .navbar-nav-right {
    margin: 0.75rem 0 0;
    width: 100%;
  }

  .navbar-nav-center .nav-link,
  .navbar-nav-right .nav-link {
    border-radius: 8px;
  }
}

/* ── Buttons ── */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent)) !important;
  border: none !important;
  font-weight: 600;
  border-radius: 100px !important;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-light)) !important;
  box-shadow: 0 4px 28px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-outline-primary {
  border-radius: 100px !important;
  font-weight: 600;
}

.btn-outline-primary:hover {
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ── Hero (BoostCord-style) ── */
.hero.hero-pro {
  background-image: none !important;
  background: transparent !important;
  border-bottom: none;
  min-height: calc(100vh - 120px);
  position: relative;
  overflow: hidden;
}

.hero.hero-pro .container {
  padding: 3rem 1.5rem 4rem;
  max-width: 900px;
}

.hero.hero-pro .content {
  max-width: 100%;
  background: none;
}

.hero .bg-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

.hero-particle:nth-child(1) { top: 15%; left: 20%; animation-delay: 0s; }
.hero-particle:nth-child(2) { top: 30%; right: 25%; animation-delay: -1s; }
.hero-particle:nth-child(3) { top: 60%; left: 15%; animation-delay: -2s; }
.hero-particle:nth-child(4) { top: 45%; right: 15%; animation-delay: -0.5s; }
.hero-particle:nth-child(5) { top: 75%; left: 40%; animation-delay: -1.5s; }
.hero-particle:nth-child(6) { top: 20%; right: 40%; animation-delay: -2.5s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 100px;
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-title-main {
  display: block;
  color: #ffffff;
}

.hero-title-accent {
  display: block;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 50%, rgba(var(--accent-rgb), 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem !important;
  font-size: 0.95rem;
  box-shadow: 0 4px 32px var(--accent-glow);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.35);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.15);
}

/* Hero stat cards grid */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.25rem 0.75rem;
  background: var(--surface-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.hero-stat-card:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 16px rgba(var(--accent-rgb), 0.1);
  transform: translateY(-3px);
}

.hero-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(var(--accent-rgb), 0.1);
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.hero-stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

  .hero-headline {
    font-size: 2.25rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .hero-stat-card {
    padding: 1rem 0.5rem;
  }
}

/* ── Floating chat button ── */
.floating-chat-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-radius: 50%;
  color: #ffffff;
  box-shadow: 0 4px 24px var(--accent-glow);
  transition: all 0.25s ease;
  text-decoration: none;
}

.floating-chat-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px var(--accent-glow);
  color: #ffffff;
}

/* ── Section titles ── */
.section-title h1,
.section-title h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title h1::after,
.section-title h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 0.5rem;
}

/* ── Product cards ── */
.products .card {
  background: var(--surface-elevated) !important;
  border: 1px solid rgba(var(--accent-rgb), 0.1) !important;
  border-radius: 16px !important;
  overflow: hidden;
  transition: all 0.3s ease !important;
}

.products .card:hover {
  border-color: rgba(var(--accent-rgb), 0.35) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 24px var(--accent-glow);
  transform: translateY(-6px) !important;
}

.products .card .card-img-top { background: #0a0e18; }
.products .card .info .price { color: var(--accent); font-weight: 600; }
.products .card .card-title { color: #ffffff; font-weight: 600; }

/* ── Categories ── */
.categories .card {
  background: var(--surface-elevated);
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.categories .card:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px var(--accent-glow);
  transform: translateY(-4px);
}

/* ── Socials ── */
.socials {
  background: transparent !important;
  border-top: 1px solid rgba(var(--accent-rgb), 0.08);
}

.socials .list .social {
  background: var(--surface-elevated) !important;
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  border-radius: 12px;
  transition: all 0.25s ease;
}

.socials .list .social:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* ── Feedbacks ── */
.feedbacks .card,
.feedback-card {
  background: var(--surface-elevated);
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  border-radius: 16px;
}

/* ── Footer ── */
footer.footer {
  background: rgba(5, 8, 16, 0.9) !important;
  border-top: 1px solid rgba(var(--accent-rgb), 0.12) !important;
}

.footer h5 {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer .nav li a:hover { color: var(--accent) !important; }

/* ── Forms & modals ── */
.form-control,
.form-select {
  background-color: var(--surface-elevated) !important;
  border: 1px solid rgba(var(--accent-rgb), 0.15) !important;
  color: #ffffff;
  border-radius: 12px !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15) !important;
}

.modal-content {
  background: var(--surface-elevated);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: 16px;
}

.hero .fake-searchbar input,
.hero .search-modal .searchbar input {
  background: var(--surface-elevated) !important;
  border: 1px solid rgba(var(--accent-rgb), 0.2) !important;
  border-radius: 100px !important;
}

.hero .fake-searchbar svg,
.hero .search-modal .searchbar svg {
  fill: var(--accent) !important;
}

/* ── Misc ── */
.badge.bg-primary,
.badge.text-bg-primary { background: var(--accent) !important; }

.product-page .price,
.product-page .product-price { color: var(--accent); }

.cart-page .card,
.cart .card {
  background: var(--surface-elevated);
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  border-radius: 16px;
}

.customer-sidebar .nav-link.active,
.customer-sidebar .nav-pills .nav-link.active {
  background: var(--accent) !important;
}

.chips .btn-outline-primary.active,
.chips .btn-primary {
  box-shadow: 0 0 12px var(--accent-glow);
}

a { transition: color 0.2s ease; }
a:hover { color: var(--accent-light); }

/* ── Responsive loader ── */
@media (max-width: 576px) {
  .page-loader-brand .shop-name { font-size: 1.5rem; }
  .page-loader-bar { width: 180px; }
  .page-loader-logo { width: 56px; height: 56px; }
}
