/* ============================================================
   CARRETA DO PISEIRO - Dark Theme CSS
   Tema: Escuro, Vermelho/Preto, Raios, Som Automotivo
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Barlow+Condensed:wght@600;700;800;900&display=swap');

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:root {
  /* Cores Principais - Dark Premium */
  --bg-primary: #0b0b0d;
  --bg-secondary: #111217;
  --bg-card: #16181f;
  --border-soft: #262a33;

  --red-primary: #e11d2e;
  --red-bright: #ff2a3d;
  --red-hover: #ff4458;
  --red-glow: rgba(225, 29, 46, 0.4);

  --text-primary: #ffffff;
  --text-secondary: #b8bec9;
  --text-soft: #8b93a1;

  /* Cores Auxiliares Legadas (Mapeadas para o novo tema) */
  --red: var(--red-primary);
  --red-dark: #b91c1c;
  --bg: var(--bg-primary);
  --bg2: var(--bg-secondary);
  --bg3: var(--bg-card);
  --bg4: #1c1e26;
  --border: var(--border-soft);
  --border-red: rgba(225, 29, 46, 0.3);
  --text: var(--text-primary);
  --text-muted: var(--text-secondary);
  --text-dim: var(--text-soft);

  /* Design Tokens */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-title: 'Barlow Condensed', sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-red: 0 0 40px rgba(225, 29, 46, 0.15);
  --trans: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  color-scheme: dark;
}

/* ── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg2);
}

::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 3px;
}

/* ── LIGHTNING BACKGROUND ─────────────────────────────── */
.lightning-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(220, 38, 38, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(220, 38, 38, 0.03) 0%, transparent 50%);
  overflow: hidden;
}

.lightning-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent 0%, transparent 49.5%, rgba(220, 38, 38, 0.03) 49.5%, rgba(220, 38, 38, 0.03) 50.5%),
    repeating-linear-gradient(0deg, transparent 0%, transparent 49.5%, rgba(220, 38, 38, 0.02) 49.5%, rgba(220, 38, 38, 0.02) 50.5%);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* Raios SVG decorativos */
.lightning-bolt {
  position: absolute;
  font-size: 4rem;
  opacity: 0.05;
  animation: float 6s ease-in-out infinite;
}

.lightning-bolt:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.lightning-bolt:nth-child(2) {
  top: 30%;
  right: 8%;
  animation-delay: 2s;
}

.lightning-bolt:nth-child(3) {
  bottom: 20%;
  left: 10%;
  animation-delay: 4s;
}

.lightning-bolt:nth-child(4) {
  top: 60%;
  right: 5%;
  animation-delay: 1s;
  font-size: 2.5rem;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(-15deg);
    opacity: 0.05;
  }

  50% {
    transform: translateY(-20px) rotate(-10deg);
    opacity: 0.12;
  }
}

/* ── LAYOUT ────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  position: relative;
  z-index: 1;
}

#main-content {
  padding-top: 140px;
}

@media (max-width: 768px) {
  #main-content {
    padding-top: 70px;
  }
}

/* ── SITE HEADER (Traiados067 Style) ────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--trans);
}

.header-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  gap: 2rem;
}

.hamburger-btn {
  display: none !important;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 950;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* Search Bar */
.header-search {
  flex: 1;
  max-width: 500px;
}

.search-form {
  position: relative;
  width: 100%;
}

.search-form input {
  width: 100%;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0 50px 0 20px;
  color: #fff;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.search-form input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--red);
  outline: none;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.2);
}

.search-form button {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 34px;
  height: 34px;
  background: var(--red);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
}

.search-form button:hover {
  background: var(--red-dark);
  transform: scale(1.05);
}

/* Contact & Actions */
.header-contact {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  transition: var(--trans);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--red);
}

.contact-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.contact-info span {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.contact-info strong {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

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

.user-action-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--trans);
  position: relative;
}

.user-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--red);
  color: var(--red);
}

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

/* Navigation Bottom Bar */
.header-bottom {
  height: 50px;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-link-item {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--trans);
}

.nav-link-item:hover,
.nav-link-item.active {
  color: #fff;
  background: rgba(220, 38, 38, 0.1);
}

.nav-link-item.admin-link {
  color: var(--red);
}

/* Mobile Adjustments */
@media (max-width: 1100px) {
  .header-top-inner {
    gap: 1rem;
  }

  .header-search {
    display: none;
  }

  /* Hide complicated search on tablets */
}

@media (max-width: 768px) {
  .header-top-inner {
    height: 70px;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .logo-main {
    font-size: 1rem;
  }

  .logo-sub {
    display: none;
  }

  .header-contact {
    display: flex !important;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
  }

  .contact-info {
    display: none !important;
  }

  .header-user-actions {
    display: flex !important;
    gap: 0.5rem;
  }

  .user-action-btn {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .site-header .logo-text {
    display: none !important;
  }

  .header-bottom {
    display: none;
  }

  /* Navigation will be in mobile menu */
}

/* ── SIDEBAR DRAWER (Traiados067 Style) ─────────────────── */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

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

.sidebar-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100%;
  background: #1a1a1a;
  z-index: 10001;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-drawer.active {
  transform: translateX(320px);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: #111;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  font-size: 1rem;
}

.sidebar-logo .logo-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.sidebar-logo .logo-icon img {
  max-height: 38px;
  width: auto;
  object-fit: contain;
}

.sidebar-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--trans);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

.sidebar-close:hover {
  background: var(--red);
  color: #fff;
  transform: rotate(90deg);
  border-color: var(--red);
}

.no-scroll {
  overflow: hidden !important;
}

.sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

/* Sidebar Panels (Acessos Rápidos) */
.sidebar-panels {
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.panel-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  text-decoration: none;
  color: #eee;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--trans);
}

.panel-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--red);
  color: #fff;
}

.panel-icon {
  font-size: 1.2rem;
}

/* Sidebar Search */
.sidebar-search {
  padding: 0 1.5rem;
  margin-bottom: 2rem;
}

.sidebar-search-form {
  position: relative;
}

.sidebar-search-form input {
  width: 100%;
  height: 48px;
  background: #252525;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0 50px 0 15px;
  color: #fff;
  font-size: 0.9rem;
}

.sidebar-search-form button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

/* Sidebar Nav Links */
.sidebar-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sidebar-links a {
  display: flex !important;
  align-items: center !important;
  gap: 1.25rem !important;
  padding: 1rem 1.5rem !important;
  text-decoration: none !important;
  color: #bbb !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  transition: var(--trans) !important;
  border-left: 3px solid transparent !important;
}

.sidebar-links a:hover {
  background: rgba(220, 38, 38, 0.05) !important;
  color: #fff !important;
  border-left-color: var(--red) !important;
}

.link-icon {
  width: 24px !important;
  text-align: center !important;
  font-size: 1.1rem !important;
  opacity: 0.9 !important;
}

.sidebar-footer {
  padding: 2rem 1.5rem;
  text-align: center;
  color: #666;
  font-size: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 3rem 0 4rem;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-primary) 5%, transparent 60%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(225, 29, 46, 0.1);
  color: var(--red-primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  border: 1px solid rgba(225, 29, 46, 0.2);
}

.hero h1 {
  font-family: var(--font-title);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 0.85;
  text-transform: uppercase;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  color: var(--red-primary);
  display: block;
}

.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.5;
}

.hero-info {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.hero-info-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  color: #fff;
}

.hero-info-item strong {
  color: var(--red-primary);
}

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

@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    padding-top: 2rem;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-info {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .hero-actions {
    flex-direction: column;
  }
}

/* ── HERO BANNERS (SWIPER) ─────────────────────────────── */
.hero-banners {
  position: relative;
  width: 100%;
  padding: 0;
  background: var(--bg-primary);
  overflow: hidden;
}

.hero-swiper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 16 / 8;
  min-height: 200px;
  max-height: 600px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  background: #000;
}

.hero-swiper .swiper-pagination {
  display: flex !important;
}
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  display: none !important;
}

.hero-swiper {
  width: 100%;
}

.hero-slide {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.swiper-slide-active .hero-slide-img {
  transform: none;
}

.hero-slide-link {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
}

/* Custom Swiper Controls */
.hero-banners .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.3;
  width: 12px;
  height: 12px;
  transition: 0.3s;
}

.hero-banners .swiper-pagination-bullet-active {
  background: var(--red-primary);
  opacity: 1;
  width: 30px;
  border-radius: 6px;
}

/* Botões removidos conforme solicitação */
.hero-banners .swiper-button-next,
.hero-banners .swiper-button-prev {
  display: none !important;
}

/* Static Hero for Empty State */
.hero-static {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111, #000);
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .hero-banners {
    padding: 0.5rem 0;
  }

  .hero-swiper {
    aspect-ratio: 16 / 9;
    min-height: auto;
    max-height: none;
    border-radius: 8px;
  }

  .hero-slide-img {
    object-fit: contain;
    background: #000;
  }
}

/* ── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: var(--trans);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  align-items: center;
  gap: 0.625rem;
  justify-content: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(225, 29, 46, 0.2);
}

.btn-primary:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--red-glow);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-soft);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--red-primary);
  color: var(--red-primary);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

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

.btn-block {
  width: 100%;
}

.btn-success {
  background: #10b981;
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-soft);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

/* ── SECTION HEADINGS ──────────────────────────────────── */
.section {
  padding: 3rem 0;
}

.section-header {
  margin-bottom: 3.5rem;
  max-width: 800px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(225, 29, 46, 0.1);
  color: var(--red-primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(225, 29, 46, 0.2);
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.section-title .red {
  color: var(--red-primary);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
  margin-left: auto;
  margin-right: auto;
}

/* ── CARDS ─────────────────────────────────────────────── */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--trans);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: rgba(225, 29, 46, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), var(--shadow-red);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--trans);
}

.card:hover .card-img {
  scale: 1.05;
}

.card-body {
  padding: 1.5rem;
  flex-grow: 1;
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: block;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.card-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* CD specific card styling */
.cd-card {
  display: flex;
  flex-direction: column;
}

.cd-cover {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg3);
}

.cd-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--trans);
}

.cd-card:hover .cd-cover img {
  transform: scale(1.05);
}

/* CD Detail Page Styles */
.cd-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 3rem 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  text-align: center;
}

@media (min-width: 768px) {
  .cd-header {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }
}

.cd-cover-wrapper {
  flex-shrink: 0;
  width: 100% !important;
  max-width: 400px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-red);
  margin: 0 auto;
}

.cd-cover-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.cd-info {
  flex: 1;
}

.cd-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.cd-desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* File list and Player styles */
.files-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--trans);
}

.file-item:hover {
  border-color: var(--red);
  background: rgba(220, 38, 38, 0.05);
}

.file-icon {
  font-size: 1.5rem;
}

.file-name {
  flex: 1;
  font-weight: 500;
}

.file-actions {
  display: flex;
  gap: 0.5rem;
}

.player-mini {
  width: 100%;
  max-width: 400px;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 10px;
  margin-top: 10px;
}

audio {
  height: 35px;
  width: 100%;
}

/* ── GRID/GALLERY ───────────────────────────────────────── */
.grid {
  display: grid;
  gap: 1.5rem;
  justify-content: center;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  max-width: 800px;
  margin: 0 auto;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.grid-centered>* {
  width: calc(25% - 1.25rem);
  min-width: 250px;
}

@media (max-width: 1024px) {
  .grid-centered>* {
    width: calc(33.333% - 1rem);
  }
}

@media (max-width: 768px) {
  .grid-centered>* {
    width: calc(50% - 0.75rem);
  }
}

@media (max-width: 480px) {
  .grid-centered>* {
    width: 100%;
  }
}

/* ── SWIPER SECTION CAROUSELS ───────────────────────────── */
.section-swiper {
  width: 100%;
  padding: 10px 10px 40px 10px !important;
  margin-left: -10px;
  margin-right: -10px;
  overflow: hidden;
}

.section-swiper .swiper-wrapper {
  align-items: stretch;
}

.section-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.section-swiper .swiper-slide .card,
.section-swiper .swiper-slide .cd-card,
.section-swiper .swiper-slide .partner-logo {
  width: 100%;
  margin: 0;
  height: 100%;
}

.section-swiper .swiper-pagination-bullet {
  background: var(--text-muted);
  opacity: 0.5;
}

.section-swiper .swiper-pagination-bullet-active {
  background: var(--red);
  opacity: 1;
}

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

#main-content .gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
  gap: 10px !important;
  justify-content: center !important;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--border);
  transition: var(--trans);
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.02);
  border-color: var(--red);
  box-shadow: var(--shadow-red);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--trans);
}

.gallery-item:hover img {
  opacity: 0.8;
}


/* ── FLASH MESSAGES ─────────────────────────────────────── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.alert-error {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
  color: #f87171;
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

/* ── FORMS ──────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: var(--trans);
  color-scheme: dark;
}

.form-control:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.form-control::placeholder {
  color: var(--text-dim);
}

/* Date/Time Picker Fix for Dark Theme */
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
  opacity: 0.8;
  transition: var(--trans);
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  transform: scale(1.1);
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

.form-error {
  font-size: 0.78rem;
  color: #f87171;
  margin-top: 0.35rem;
}

/* ── AUTH PAGES ─────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: radial-gradient(ellipse at 30% 50%, rgba(220, 38, 38, 0.08) 0%, transparent 60%);
}

.auth-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow);
}

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

.auth-logo .logo-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  box-shadow: 0 0 30px var(--red-glow);
}

.auth-title {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

/* ── NAVBAR SPACER ──────────────────────────────────────── */
.pt-navbar {
  padding-top: 68px;
}

.mt-navbar {
  margin-top: 68px;
}

/* ── MODERN FOOTER ───────────────────────────────────────── */
.footer {
  background: rgba(11, 11, 13, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(225, 29, 46, 0.2);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
  box-shadow: 0 0 20px var(--red-glow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 1.5rem 0;
  max-width: 300px;
}

.footer-logo .logo-text small {
  font-size: 0.65rem;
  color: var(--text-soft);
  display: block;
  margin-top: 2px;
  line-height: 1.2;
}

.footer-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--red-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--trans);
}

.footer-links a:hover {
  color: var(--red);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 36px;
  height: 36px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--trans);
}

.social-link:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* ── ADMIN PANEL ─────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.admin-sidebar-header {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}

.admin-sidebar-brand {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: 0.05em;
}

.admin-sidebar-brand small {
  display: block;
  font-family: var(--font-main);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.admin-nav {
  padding: 1rem 0.75rem;
  flex: 1;
}

.admin-nav-section {
  margin-bottom: 1.5rem;
}

.admin-nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  padding: 0 0.5rem;
  margin-bottom: 0.5rem;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--trans);
  margin-bottom: 0.125rem;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(220, 38, 38, 0.1);
  color: var(--text);
}

.admin-nav a.active {
  color: var(--red);
}

.admin-nav a .icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.admin-main {
  margin-left: 260px;
  flex: 1;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-topbar-title {
  font-size: 1rem;
  font-weight: 600;
}

.admin-content {
  padding: 1.5rem;
}

.admin-page-header {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-page-title {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* Stats Cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.stat-value {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  opacity: 0.15;
}

/* Table */
.table-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: var(--bg3);
  padding: 0.875rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: left;
}

.admin-table td {
  padding: 0.875rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.badge-red {
  background: rgba(220, 38, 38, 0.15);
  color: #f87171;
}

.badge-yellow {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.badge-gray {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
}

.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

/* ── CONTA PANEL ────────────────────────────────────────── */
.conta-layout {
  display: flex;
  gap: 2rem;
  padding-top: 100px;
  min-height: 100vh;
  align-items: flex-start;
}

.conta-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 90px;
}

.conta-sidebar-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.conta-avatar {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.conta-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--border-red);
  margin-bottom: 0.75rem;
}

.conta-avatar .name {
  font-weight: 600;
}

.conta-avatar .role {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.conta-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--trans);
  border-bottom: 1px solid var(--border);
}

.conta-nav a:hover,
.conta-nav a.active {
  color: var(--red);
  background: rgba(220, 38, 38, 0.05);
}

.conta-main {
  flex: 1;
}

/* ── LIGHTBOX ───────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  user-select: none;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-container {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.lightbox-caption {
  margin-top: 1rem;
  color: #fff;
  font-size: 1rem;
  text-align: center;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
  z-index: 2100;
}

.lightbox-close:hover {
  background: var(--red);
  border-color: var(--red);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--trans);
  font-size: 1.4rem;
  z-index: 2100;
  border: none;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.lightbox-nav.prev {
  left: 20px !important;
}

.lightbox-nav.next {
  right: 20px !important;
}

@media (max-width: 768px) {
  .lightbox-nav {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.02);
  }
  .lightbox-nav.prev {
    left: 10px !important;
  }
  .lightbox-nav.next {
    right: 10px !important;
  }
  .lightbox-close {
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
  }
}

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.page-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--trans);
}

.page-link:hover,
.page-link.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ── HERO GRADIENT BORDER ────────────────────────────────── */
.gradient-border {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--red), transparent, rgba(220, 38, 38, 0.3));
}

.gradient-border>* {
  background: var(--bg2);
  border-radius: calc(var(--radius-lg) - 1px);
}

/* ── TICKET CARD ─────────────────────────────────────────── */
.ticket-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
}

.ticket-left {
  flex: 1;
  padding: 1.5rem;
}

.ticket-right {
  width: 120px;
  flex-shrink: 0;
  background: var(--bg3);
  border-left: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  gap: 0.5rem;
}

.ticket-qr img {
  width: 80px;
  height: 80px;
}

/* ── VIDEO CARD ──────────────────────────────────────────── */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── PRICE TAG ───────────────────────────────────────────── */
.price {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--red);
}

.price-old {
  font-size: 1rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

/* ── CD CARD ──────────────────────────────────────────────── */
.cd-card {
  position: relative;
  text-align: center;
}

.cd-cover {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  transition: var(--trans);
  box-shadow: var(--shadow);
}

.cd-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--trans);
}

.cd-card:hover .cd-cover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-red);
}

.cd-card:hover .cd-cover img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.cd-cover::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  opacity: 0;
  background: radial-gradient(circle, rgba(225, 29, 46, 0.6) 0%, transparent 70%);
  transition: var(--trans);
  backdrop-filter: blur(2px);
}

.cd-card:hover .cd-cover::after {
  opacity: 1;
}

/* ── PARTNERS ────────────────────────────────────────────── */
.partners-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.partner-logo {
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  transition: var(--trans);
  text-decoration: none;
  min-width: 140px;
  flex: 1;
  max-width: 250px;
}

@media (max-width: 768px) {
  .partner-logo {
    min-width: 120px;
    padding: 1rem;
    gap: 0.75rem;
  }
  .partner-name {
    font-size: 0.75rem;
  }
}

.partner-logo:hover {
  border-color: var(--red-primary);
  background: rgba(225, 29, 46, 0.05);
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.partner-logo img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
  transition: var(--trans);
}

.partner-logo:hover img {
  filter: brightness(1) invert(0);
  /* Volta a cor original no hover para destaque */
}

.partner-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

/* ── TOAST ───────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  box-shadow: var(--shadow);
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight 0.3s ease;
  font-size: 0.875rem;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .hamburger {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }

  .conta-layout {
    flex-direction: column;
  }

  .conta-sidebar {
    width: 100%;
    position: static;
  }

  .ticket-card {
    flex-direction: column;
  }

  .ticket-right {
    width: 100%;
    border-left: none;
    border-top: 2px dashed var(--border);
  }

  .d-none-mobile {
    display: none !important;
  }

  .d-block-mobile {
    display: block !important;
  }

  .d-flex-mobile {
    display: flex !important;
  }
}

@media (max-width: 480px) {
  .btn-lg {
    padding: 0.875rem 1.5rem;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

/* ── UTILS ───────────────────────────────────────────────── */
.text-red {
  color: var(--red);
}

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

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

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.fw-bold {
  font-weight: 700;
}

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.gap-3 {
  gap: 1.5rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.p-3 {
  padding: 1.5rem;
}

.rounded {
  border-radius: var(--radius);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.w-100 {
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

/* ── INSTALL PAGE ────────────────────────────────────────── */
.install-card {
  max-width: 640px;
  margin: 80px auto;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.install-step {
  padding: 1rem;
  background: var(--bg3);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

/* ── DEFINITIVE MOBILE HEADER FIX (RESILIENT) ────────────── */
@media (max-width: 768px) {

  /* Hide only tagline and search bar; keep logo icon + main name */
  .site-header .logo-sub,
  .header-search {
    display: none !important;
  }

  .header-top-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 15px !important;
  }

  .header-logo {
    display: flex !important;
    flex: 0 0 auto !important;
  }

  .logo-icon {
    width: 42px !important;
    height: 42px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .logo-icon img {
    max-height: 40px !important;
    width: auto !important;
  }

  /* Show icons between logo and hamburger */
  .header-contact {
    display: flex !important;
    flex: 1 !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 0 !important;
  }

  /* Hide contact text, show icons */
  .contact-info {
    display: none !important;
  }

  .contact-item {
    display: flex !important;
  }

  .contact-icon {
    font-size: 1.3rem !important;
    color: var(--primary);
  }

  /* User actions (user icon, logout, cart) */
  .header-user-actions {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
  }

  .user-action-btn {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 50% !important;
    font-size: 1rem !important;
  }

  .hamburger-btn {
    margin-left: 0 !important;
  }
}

/* ── ULTIMATE MOBILE HEADER FIX (FORCED ALIGNMENT) ────────── */
@media (max-width: 768px) {
  .site-header .header-top-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 10px !important;
    height: 60px !important;
  }

  /* Logo: icon + main name side by side */
  .site-header .header-logo {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
    max-width: 180px !important;
    overflow: hidden !important;
  }

  .site-header .logo-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .site-header .logo-icon img {
    max-height: 34px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .site-header .logo-text {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .site-header .logo-main {
    display: block !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
  }

  .site-header .logo-sub {
    display: none !important;
  }

  /* Center Area: Icons (📞, 👤, 🛒) */
  .site-header .header-contact {
    display: flex !important;
    flex: 1 !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header .contact-info {
    display: none !important;
  }

  .site-header .contact-item {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 32px !important;
    height: 32px !important;
  }

  .site-header .contact-icon {
    font-size: 1.2rem !important;
    color: var(--primary) !important;
  }

  .site-header .header-user-actions {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .site-header .user-action-btn {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 50% !important;
    font-size: 1rem !important;
    border: none !important;
  }

  .site-header .cart-badge {
    top: -2px !important;
    right: -2px !important;
    width: 15px !important;
    height: 15px !important;
    font-size: 0.6rem !important;
  }

  .site-header .hamburger-btn {
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
  }

  .site-header .hamburger-btn span {
    display: block !important;
    width: 18px !important;
    height: 2px !important;
    background-color: #fff !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
  }

  .site-header .hamburger-btn span:nth-child(2) {
    width: 12px !important;
  }

  .site-header .hamburger-btn:hover {
    background: rgba(225, 29, 46, 0.1) !important;
    border-color: rgba(225, 29, 46, 0.4) !important;
  }

  .site-header .hamburger-btn:hover span {
    background-color: #ff2a3d !important;
  }

  .site-header .hamburger-btn:hover span:nth-child(2) {
    width: 18px !important;
  }
}
/* ── INSTAGRAM SECTION ────────────────────────────────── */
.instagram-section {
    padding: 5rem 0;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.instagram-item {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--bg2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    border: 1px solid var(--border);
    transition: var(--trans);
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-item:hover {
    transform: translateY(-5px);
    border-color: var(--red);
    box-shadow: var(--shadow-red);
}

.instagram-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(225, 29, 46, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-overlay {
    position: absolute;
    inset: 0;
    background: rgba(225, 29, 46, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--trans);
    z-index: 2;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.instagram-widget-container {
    margin-top: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg2);
    min-height: 400px;
}

@media (max-width: 991px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .instagram-section {
        padding: 3rem 0;
    }
}

/* ── INSTAGRAM LIGHTBOX ───────────────────────────────── */
.insta-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-lightbox.active {
    display: flex;
    opacity: 1;
}

.insta-lightbox-content {
    position: relative;
    width: 95%;
    max-width: 800px;
    background: transparent;
    border-radius: 12px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.insta-lightbox.active .insta-lightbox-content {
    transform: scale(1);
}

.insta-swiper {
    width: 100%;
    height: auto;
}

.insta-swiper .swiper-button-next,
.insta-swiper .swiper-button-prev {
    color: #fff;
    background: rgba(220, 38, 38, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    after {
        font-size: 1.2rem;
        font-weight: bold;
    }
}

.insta-swiper .swiper-button-next::after,
.insta-swiper .swiper-button-prev::after {
    font-size: 1.2rem;
}

.insta-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: var(--trans);
}

.insta-lightbox-close:hover {
    color: var(--red);
    transform: rotate(90deg);
}

/* Loader */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: var(--red);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .insta-lightbox {
        padding: 1rem;
    }
    .insta-lightbox-close {
        top: 10px;
        right: 10px;
        color: #333;
        background: #fff;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        z-index: 10;
    }
}
.video-lightbox-content {
    width: 95% !important;
    max-width: 1000px !important;
}

.video-container-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 50px rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
    .video-lightbox-content {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(0,0,0,0.9);
    }
    
    .video-lightbox-content .insta-lightbox-wrapper {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    .video-container-box {
        aspect-ratio: unset !important;
        height: 100% !important;
        width: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }

    .video-container-box video, 
    .video-container-box iframe {
        width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
        object-fit: contain !important;
    }
}
