/* === MEGAMI DAYZ DONATION STORE === */

:root {
  --bg: #0c0e12;
  --bg-card: #15181f;
  --bg-card-hover: #1a1e27;
  --border: rgba(255,255,255,0.06);
  --text: #e8eaed;
  --text-secondary: #8b92a5;
  --text-muted: #5a6178;
  --purple: #7c3aed;
  --purple-hover: #6d28d9;
  --purple-dim: rgba(124, 58, 237, 0.15);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.15);
  --orange: #f59e0b;
  --orange-dim: rgba(245, 158, 11, 0.15);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('/img/hero-bg.png') center top / cover no-repeat;
  opacity: 0.08;
}

.hidden { display: none !important; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 14, 18, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.btn-support {
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--purple);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-support:hover {
  background: var(--purple-hover);
  transform: translateY(-1px);
}

.btn-auth {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-auth:hover {
  border-color: var(--purple);
  color: var(--text);
  background: rgba(255,255,255,0.08);
}

.btn-auth-logged {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--purple-dim);
}

/* === MOBILE MENU BUTTON === */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === SECTIONS === */
.section {
  padding: 28px 0;
}

.section:first-of-type {
  padding-top: 76px;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* === CARDS GRID === */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* === PRIVILEGE / KIT CARDS === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.card-featured {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.08);
}

.card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.label-green { color: var(--green); }
.label-purple { color: var(--purple); }
.label-orange { color: var(--orange); }

.card-price {
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.card-duration {
  font-size: 12px;
  color: var(--text-muted);
}

/* === BUY BUTTON === */
.btn-buy {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: var(--purple);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: auto;
}

.btn-buy:hover {
  background: var(--purple-hover);
  transform: translateY(-1px);
}

.btn-buy-lg {
  padding: 14px;
  font-size: 14px;
}

/* === LOOTBOX CARDS === */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card-lootbox {
  text-align: center;
  position: relative;
}

.card-lootbox-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.card-lootbox-icon {
  font-size: 48px;
  line-height: 1;
  margin: 8px 0;
  filter: grayscale(0.2);
}

.btn-info {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.btn-info:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--purple-dim);
}

.btn-buy-box {
  background: linear-gradient(135deg, var(--purple), #9333ea);
  letter-spacing: 0.12em;
}

.btn-buy-box:hover {
  background: linear-gradient(135deg, var(--purple-hover), #7e22ce);
}

/* === LOOTBOX QUANTITY SELECTOR === */
.box-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 4px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  font-size: 18px;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  padding: 0;
  line-height: 1;
}

.qty-btn:hover {
  border-color: var(--purple);
  color: var(--text);
  background: var(--purple-dim);
}

.qty-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  min-width: 28px;
  text-align: center;
}

.box-total {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

/* === DROPS LIST (info modal) === */
.drops-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.drop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
}

.drop-item .drop-name {
  font-weight: 500;
}

.drop-item .drop-chance {
  font-weight: 700;
  font-size: 12px;
}

.drop-common {
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
}
.drop-common .drop-chance { color: var(--text-muted); }

.drop-uncommon {
  background: rgba(68, 170, 255, 0.08);
  border-left: 3px solid var(--blue);
}
.drop-uncommon .drop-chance { color: var(--blue); }

.drop-rare {
  background: rgba(124, 58, 237, 0.1);
  border-left: 3px solid var(--purple);
}
.drop-rare .drop-chance { color: var(--purple); }

.drop-legendary {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid var(--orange);
  animation: legendary-glow 2s infinite;
}
.drop-legendary .drop-chance { color: var(--orange); font-size: 13px; }
.drop-legendary .drop-name { color: var(--orange); font-weight: 700; }

@keyframes legendary-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(245, 158, 11, 0); }
  50% { box-shadow: 0 0 12px rgba(245, 158, 11, 0.15); }
}

/* === VEHICLE CARDS === */
.card-vehicle {
  padding: 0;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.card-vehicle:hover .card-img img {
  transform: scale(1.05);
}

.card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-body h3 {
  font-size: 18px;
  font-weight: 700;
}

/* === SUPPORT SECTION === */
.section-support {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.support-desc {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.btn-support-lg {
  padding: 14px 40px;
  border: 0;
  border-radius: 10px;
  background: var(--purple);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-support-lg:hover {
  background: var(--purple-hover);
  transform: translateY(-2px);
}

/* === FOOTER === */
.footer {
  padding: 32px 0 20px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.footer-col p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col a {
  color: var(--purple);
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  transition: all 0.2s;
  text-decoration: none !important;
}

.social-link:hover {
  background: var(--purple);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* === DELIVERY === */
.delivery-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.delivery-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.delivery-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.delivery-step h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.delivery-step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* === MODAL === */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.hidden { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: min(440px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

.modal-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-item {
  color: var(--purple);
  font-weight: 600;
  margin-bottom: 20px;
}

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 16px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.modal-field span {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.modal-field input, .modal-card > input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.modal-field input:focus, .modal-card > input:focus {
  border-color: var(--purple);
}

.modal-field input::placeholder, .modal-card > input::placeholder {
  color: var(--text-muted);
}

.modal-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  margin-bottom: 14px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

.modal-price-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.btn-pay {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: var(--purple);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-pay:hover {
  background: var(--purple-hover);
}

.modal-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* === AMOUNT GRID === */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.amount-btn {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.amount-btn:hover {
  border-color: var(--purple);
  color: var(--text);
}

.amount-btn.active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* === SMOOTH SCROLL === */
html { scroll-behavior: smooth; scroll-padding-top: 70px; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .cards-3 { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .header-status { display: none; }
  .hero { height: 160px; }
  .section { padding: 32px 0; }
  .amount-grid { grid-template-columns: repeat(3, 1fr); }

  .mobile-menu-btn { display: flex; }

  .header-inner {
    flex-wrap: wrap;
  }

  .header-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
    padding: 12px 20px 16px;
    gap: 4px;
    z-index: 99;
  }

  .header-nav.open {
    display: flex;
  }

  .header-nav .nav-link {
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 8px;
  }

  .header-nav .btn-support,
  .header-nav .btn-auth {
    width: 100%;
    text-align: center;
    padding: 12px 14px;
    font-size: 15px;
    margin-top: 4px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
