/* ClockONCHAIN — Global Styles */
:root {
  --bg: rgba(10,10,15,0.6);
  --bg2: rgba(17,17,24,0.65);
  --bg3: rgba(26,26,36,0.6);
  --border: #2a2a3a;
  --text: #e8e8f0;
  --text-dim: #888899;
  --accent: #00ff88;
  --accent2: #00cc6a;
  --accent-dim: #00ff8820;
  --red: #ff4466;
  --font: 'Press Start 2P', monospace;
  --font-body: 'Press Start 2P', monospace;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.55);
  z-index: -1;
  pointer-events: none;
}

body {
  background: var(--bg);
  background-image: url(/basegif.gif);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 2;
  min-height: 100vh;
  letter-spacing: 0.5px;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-logo {
  height: 32px;
  width: auto !important;
  object-fit: contain;
  border-radius: 0 !important;
}

.nav-brand span {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font);
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Wallet */
.wallet-wrap { position: relative; }
.wallet-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
}
.wallet-btn:hover { background: var(--accent2); }
.wallet-btn.connected {
  background: var(--bg3);
  color: var(--accent);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.wallet-btn .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.wallet-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 200px;
  overflow: hidden;
  z-index: 200;
  animation: dropIn 0.15s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.wallet-dropdown.open { display: block; }
.wallet-dropdown button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 9px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.wallet-dropdown button:hover { background: var(--bg3); }
.wallet-dropdown button.danger { color: var(--red); }
.wallet-dropdown button .check { color: var(--accent); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
  z-index: 500;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.toast.success { border-color: var(--accent); }
.toast.error { border-color: var(--red); }

/* Sections */
section {
  padding: 80px 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 1px;
}

h1 { font-size: 1.4rem; color: var(--accent); }
h2 { font-size: 1rem; margin-bottom: 1rem; }
h3 { font-size: 0.7rem; margin-bottom: 0.5rem; color: var(--text-dim); }

p { color: var(--text-dim); line-height: 2.2; font-size: 9px; }

/* Grid */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Card */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  font-size: 9px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--accent); }

/* NFT Grid */
.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.nft-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}
.nft-grid img:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}
.nft-grid img.selected {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-dim);
}

/* Mint box */
.mint-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.mint-box h2 {
  color: var(--accent);
  margin-bottom: 8px;
}
.mint-box .price {
  font-family: var(--font);
  font-size: 28px;
  color: var(--text);
  margin: 16px 0;
}
.mint-box .price span {
  font-size: 14px;
  color: var(--text-dim);
}

/* Qty selector */
.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.qty-btn {
  width: 40px; height: 40px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.qty-val {
  font-family: var(--font);
  font-size: 20px;
  min-width: 40px;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
  width: 100%;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent2); }
.btn-primary:disabled {
  background: var(--bg3);
  color: var(--text-dim);
  cursor: not-allowed;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent-dim); }

/* Stats */
.stat {
  text-align: center;
  padding: 20px;
}
.stat .val {
  font-family: var(--font);
  font-size: 16px;
  color: var(--accent);
}
.stat .label {
  font-size: 8px;
  color: var(--text-dim);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 9px;
}
th {
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav {
    padding: 0 1rem;
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 12px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 8px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(42,42,58,0.3);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-logo { height: 22px; }
  .nav-brand img:first-child { width: 28px; height: 28px; }
  .wallet-btn { padding: 6px 12px; font-size: 7px; }

  section { padding: 60px 1rem; }
  h1 { font-size: 1rem; }
  h2 { font-size: 0.8rem; }
  p { font-size: 8px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nft-grid { grid-template-columns: repeat(3, 1fr); }

  .card { padding: 16px; border-radius: 10px; }
  .mint-box { padding: 20px; }
  .mint-box .price { font-size: 20px; }
  .qty-btn { width: 36px; height: 36px; font-size: 16px; }
  .qty-val { font-size: 16px; }

  .btn { padding: 12px 20px; font-size: 8px; }

  .stat .val { font-size: 13px; }
  .stat .label { font-size: 7px; }

  th, td { padding: 8px 10px; font-size: 8px; }
  th { font-size: 6px; }

  .token-big { font-size: 16px !important; }
  .alloc-grid { grid-template-columns: 1fr !important; }
  .alloc-item { padding: 14px; }
  .alloc-item .pct { font-size: 12px; }
  .alloc-item .amount { font-size: 8px; }
  .alloc-item .name { font-size: 10px; }

  .ca-box { font-size: 9px; padding: 10px 12px; }
  .info-row { font-size: 10px; padding: 10px 0; }
  .info-row .v { font-size: 8px; }

  .faq-q { font-size: 8px; padding: 14px 16px; }
  .faq-a { font-size: 8px; padding: 14px 16px; }

  .hero-grid { grid-template-columns: repeat(5, 60px) !important; }
  .hero-grid img { width: 60px; height: 60px; }

  .toast { font-size: 10px; padding: 10px 14px; bottom: 16px; right: 16px; left: 16px; }

  .site-footer { padding: 30px 1rem; }
  .footer-text { font-size: 7px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

