/* ============================================================
   MC Capers v1 — Dev Migration Stylesheet
   Loaded AFTER global.css to override legacy nav/footer/hero
   styles with the dev/v1 design system.
   ============================================================ */

/* ===== DESIGN TOKENS ===== */
:root {
  --maxw: 1440px;
  --pad: 40px;
  --bg: #08080e;
  --surface: rgba(14, 14, 24, 0.85);
  --border: rgba(255, 255, 255, 0.06);
  --purple: #7c3aed;
  --purple2: #a78bfa;
  --text: #fff;
  --text-dim: rgba(255, 255, 255, 0.5);
  --text-faint: rgba(255, 255, 255, 0.3);
}

html { background: var(--bg); }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 68px !important;
}

/* ===== NAV (overrides global.css) ===== */
nav.v1-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(8, 8, 14, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0 var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  height: 68px;
}
nav.v1-nav .logo {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
}
nav.v1-nav .logo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
}
nav.v1-nav .nav-center {
  display: flex;
  gap: 4px;
}
nav.v1-nav .nav-center a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  padding: 10px 18px;
  border-radius: 10px;
  transition: all 0.2s;
  position: relative;
  text-decoration: none;
}
nav.v1-nav .nav-center a:hover { color: rgba(255, 255, 255, 0.85); }
nav.v1-nav .nav-center a.active { color: #fff; }
nav.v1-nav .nav-center a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: #7c3aed;
  border-radius: 1px;
}
nav.v1-nav .nav-right {
  display: flex;
  gap: 8px;
  align-items: center;
}
nav.v1-nav .icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  position: relative;
}
nav.v1-nav .icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
nav.v1-nav .icon-btn svg { width: 16px; height: 16px; }
nav.v1-nav .icon-btn .cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}
nav.v1-nav .icon-btn .cart-badge.show { display: flex; }
nav.v1-nav .btn-login {
  padding: 9px 22px;
  background: #fff;
  color: #08080e;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
}
nav.v1-nav .btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.12);
}
nav.v1-nav .user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
nav.v1-nav .user-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(167, 139, 250, 0.25);
}
nav.v1-nav .user-chip .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

/* ===== HAMBURGER + DRAWER (mobile) ===== */
.drawer-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.drawer-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.25s;
}
.drawer-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.drawer-toggle.open span:nth-child(2) { opacity: 0; }
.drawer-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1100;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.mc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  height: 100dvh;
  width: min(86vw, 360px);
  background: linear-gradient(180deg, #0d0d18 0%, #08080e 60%);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1101;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mc-drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  background: rgba(13, 13, 24, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2;
}
.drawer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
}
.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}
.drawer-close:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.drawer-nav { padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 2px; }
.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.drawer-nav a:active { background: rgba(124, 58, 237, 0.15); }
.drawer-nav a:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.drawer-nav a.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(99, 102, 241, 0.1));
  color: #fff;
  border: 1px solid rgba(124, 58, 237, 0.25);
}
.drawer-nav .dn-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.drawer-nav .dn-icon svg { width: 16px; height: 16px; color: #a78bfa; }
.drawer-nav a.active .dn-icon {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.3);
}
.drawer-nav .dn-arrow {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.25);
  font-size: 20px;
  font-weight: 300;
}
.drawer-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 20px;
  margin: 8px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.drawer-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.drawer-act:hover, .drawer-act:active { background: rgba(255, 255, 255, 0.06); color: #fff; }
.drawer-act svg { width: 18px; height: 18px; }
.drawer-login { padding: 12px 20px 4px; }
.drawer-login-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: #08080e;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.drawer-login-btn:active { transform: scale(0.98); }
.drawer-foot {
  margin-top: auto;
  padding: 18px 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.drawer-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.25);
  color: #a8b1ff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.drawer-discord:hover, .drawer-discord:active { background: rgba(88, 101, 242, 0.18); color: #fff; }
.drawer-copyright {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 14px;
  letter-spacing: 0.5px;
}

/* ===== SECTION + HERO BASE ===== */
.v1-section { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.v1-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.v1-section-head h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}
.v1-section-head .sub {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 4px;
}

/* Trust chips (in hero) */
.hero-trust {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.tchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  transition: all 0.25s;
}
.tchip:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(167, 139, 250, 0.22);
  color: #fff;
}
.tchip svg { width: 14px; height: 14px; color: var(--purple2); flex-shrink: 0; }

/* Buttons */
.v1-btn-primary {
  padding: 13px 26px;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  transition: all 0.3s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.v1-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.35);
}
.v1-btn-ghost {
  padding: 13px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #fff;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.v1-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ===== FOOTER (overrides global.css site-footer) ===== */
.v1-footer {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  padding: 50px 60px 30px;
  margin-top: 80px;
}
.v1-footer .footer-payments {
  max-width: 1200px;
  margin: 0 auto 1.5em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.v1-footer .payment-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6em;
}
.v1-footer .pay-icon {
  height: 2em;
  width: auto;
  border-radius: 0.3em;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
  object-fit: contain;
  filter: none;
}
.v1-footer svg.pay-icon { width: 3.12em; height: 2em; }
.v1-footer .pay-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}
.v1-footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.v1-footer .footer-brand { max-width: 300px; }
.v1-footer .footer-brand .flogo {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  display: inline-block;
  margin-bottom: 15px;
  text-decoration: none;
}
.v1-footer .footer-brand p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}
.v1-footer .footer-section h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}
.v1-footer .footer-section ul { list-style: none; padding: 0; margin: 0; }
.v1-footer .footer-section ul li {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-dim);
}
.v1-footer .footer-section ul li a {
  color: var(--text-dim);
  transition: all 0.3s;
  text-decoration: none;
}
.v1-footer .footer-section ul li a:hover { color: #fff; }
.v1-footer .footer-bottom {
  max-width: 1200px;
  margin: 1.5em auto 0;
  padding-top: 1.5em;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
.v1-footer .footer-bottom p {
  font-size: 13px;
  color: var(--text-dim);
}
.v1-footer .footer-links {
  display: flex;
  gap: 25px;
}
.v1-footer .footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: all 0.3s;
  text-decoration: none;
}
.v1-footer .footer-links a:hover { color: #fff; }

/* ===== ANIMATIONS ===== */
@keyframes v1FadeInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes v1FadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes v1FadeInDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .v1-footer .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Override global.css `.nav-right { display:none !important }` so the hamburger
     (which lives inside .nav-right) stays visible on mobile. */
  nav.v1-nav .nav-right { display: flex !important; gap: 6px; }
  nav.v1-nav .drawer-toggle { display: flex !important; }
  nav.v1-nav .nav-center { display: none !important; }
  nav.v1-nav .nav-right .icon-btn { display: none !important; }
  nav.v1-nav .nav-right .btn-login { display: none !important; }
  nav.v1-nav .nav-right .user-chip { display: none !important; }
  nav.v1-nav { padding: 0 16px; height: 60px; }
  body { padding-top: 60px !important; }
  nav.v1-nav .logo { font-size: 20px; }

  .v1-btn-primary { padding: 13px 22px; font-size: 13px; width: 100%; justify-content: center; }
  .v1-btn-ghost { padding: 12px 20px; font-size: 13px; width: 100%; justify-content: center; }

  .v1-footer { padding: 36px 20px 24px; margin-top: 60px; }
  .v1-footer .footer-content { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .v1-footer .footer-brand { grid-column: 1 / -1; max-width: none; }
  .v1-footer .footer-brand p { font-size: 13px; }
  .v1-footer .footer-section h4 { font-size: 14px; margin-bottom: 14px; }
  .v1-footer .footer-section ul li { font-size: 13px; margin-bottom: 10px; }
  .v1-footer .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; text-align: left; }
  .v1-footer .footer-bottom p { font-size: 12px; }
  .v1-footer .footer-links { gap: 18px; }
  .v1-footer .footer-links a { font-size: 12px; }
  .v1-footer .payment-icons { gap: 0.4em; }
  .v1-footer .pay-icon { height: 1.6em; }

  .v1-section { padding: 0 16px; }
  .v1-section-head h2 { font-size: 20px; }

  .hero-trust { gap: 6px; margin-top: 18px; }
  .tchip { padding: 6px 11px; font-size: 10.5px; }
  .tchip svg { width: 12px; height: 12px; }
}

@media (max-width: 480px) {
  nav.v1-nav { padding: 0 12px; }
  nav.v1-nav .logo { font-size: 18px; }
  .v1-footer { padding: 32px 16px 20px; }
  .v1-footer .footer-content { grid-template-columns: 1fr; gap: 24px; }
  .v1-footer .footer-brand { grid-column: auto; }
  .v1-footer .pay-icon { height: 1.4em; }
}

@media (hover: none) {
  .v1-card:hover, .vc:hover, .fc:hover, .faq-item:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}
