/* Glasshim.com — Professional marketing site */
:root {
  --green-dark: #075e54;
  --green: #128c7e;
  --green-bright: #25d366;
  --teal: #00a884;
  --teal-light: #dcf8c6;
  --bg: #0b141a;
  --bg-card: #111b21;
  --bg-elevated: #1f2c34;
  --text: #e9edef;
  --text-muted: #8696a0;
  --border: rgba(255, 255, 255, 0.08);
  --gradient: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, var(--teal) 100%);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --max-width: 1140px;
  --nav-height: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--green-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-light); }

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

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(11, 20, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-inline {
  color: var(--green-bright);
  font-weight: 700;
}

.logo-img {
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}

.brand:hover { color: var(--text); }

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.06em;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--green-bright);
  color: #052e16 !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
}

.nav-cta:hover {
  background: var(--teal-light);
  color: #052e16 !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

/* ── Hero ── */
.hero {
  padding: calc(var(--nav-height) + 4rem) 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-bright);
  margin-bottom: 1.5rem;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

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

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--green-bright);
  color: #052e16;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4);
  color: #052e16;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  color: var(--text);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-bright);
}

.stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  max-width: 320px;
  margin-inline: auto;
}

.phone-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.phone-frame {
  position: relative;
  background: #1a262d;
  border: 2px solid var(--border);
  border-radius: 40px;
  padding: 10px;
  box-shadow: var(--shadow);
}

.phone-notch {
  width: 100px;
  height: 22px;
  background: #0b141a;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 4px;
}

.phone-screen {
  background: var(--green-dark);
  border-radius: 32px;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  flex-direction: column;
}

.phone-header {
  background: var(--green-dark);
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.phone-title {
  color: #fff;
  font-size: 1.15rem;
}

.phone-chats { padding: 12px; flex: 1; }

.chat-mini-logo { border-radius: 50%; flex-shrink: 0; }

.mining-row { background: rgba(37, 211, 102, 0.08); border: 1px solid rgba(37, 211, 102, 0.15); }

.chat-badge {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--green-bright);
  background: rgba(37, 211, 102, 0.15);
  padding: 4px 8px;
  border-radius: 999px;
}

.phone-tabs {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.15);
}

.phone-tabs span {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
}

.phone-tabs span.active {
  color: var(--green-bright);
  border-top: 2px solid var(--green-bright);
  margin-top: -1px;
}

.chat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}

.chat-row:hover { background: rgba(255,255,255,0.04); }

.chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.chat-avatar.group { background: var(--green); }

.chat-info { flex: 1; min-width: 0; }
.chat-info h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.chat-info p { font-size: 0.75rem; color: rgba(255,255,255,0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chat-time { font-size: 0.65rem; color: rgba(255,255,255,0.4); }

/* ── Sections ── */
section { padding: 5rem 0; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-bright);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 36rem;
  margin-bottom: 3rem;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 211, 102, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(37, 211, 102, 0.12);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { font-size: 0.85rem; color: var(--text-muted); }

/* Security */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.security-list { list-style: none; }

.security-list li {
  display: flex;
  gap: 14px;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.security-list li:last-child { border-bottom: none; }

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.15);
  color: var(--green-bright);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
}

.security-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.arch-diagram {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--green-bright);
  white-space: pre;
  overflow-x: auto;
}

/* Why section */
.why-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s;
}

.why-card:hover {
  border-color: rgba(37, 211, 102, 0.25);
  transform: translateY(-2px);
}

.why-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.alt-section {
  background: var(--bg-card);
}

/* Security visual header */
.security-visual-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.security-visual-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Mining section */
.mining-section {
  background: linear-gradient(180deg, transparent 0%, rgba(7, 94, 84, 0.15) 50%, transparent 100%);
}

.mining-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.mining-logo {
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.2);
  flex-shrink: 0;
}

.download-logo {
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.25);
}

.download-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.download-hint code {
  color: var(--green-bright);
  font-family: ui-monospace, monospace;
}

.decentralized-tag {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-bright);
  letter-spacing: 0.04em;
}

.glm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.glm-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.glm-card .value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--green-bright);
  margin-bottom: 0.25rem;
}

.glm-card .label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.glm-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Transport pills */
.transport-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.pill {
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pill.active {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.3);
  color: var(--green-bright);
}

/* Download CTA */
.download-section {
  text-align: center;
  padding: 5rem 0;
}

.download-box {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.download-box h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.download-box p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--text); }

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

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .phone-mockup { order: -1; max-width: 280px; }
  .why-grid { grid-template-columns: 1fr; }
  .mining-header { flex-direction: column; align-items: center; text-align: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: 1fr; }
  .glm-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-card);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
  .menu-toggle { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── API Documentation Page ── */
.api-page { padding-top: var(--nav-height); }

.api-hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at top, rgba(18, 140, 126, 0.12) 0%, transparent 60%);
}

.api-hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.02em;
}

.api-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.api-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.api-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  padding: 3rem 0 4rem;
  align-items: start;
}

.api-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  max-height: calc(100vh - var(--nav-height) - 3rem);
  overflow-y: auto;
}

.api-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-right: 1rem;
  border-right: 1px solid var(--border);
}

.api-sidebar a {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 0.35rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  margin-left: -0.75rem;
}

.api-sidebar a:hover {
  color: var(--green-bright);
  border-left-color: var(--green-bright);
}

.api-content { min-width: 0; }

.api-section {
  margin-bottom: 3rem;
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.api-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.api-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.api-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: var(--teal);
}

.api-section p { color: var(--text-muted); margin-bottom: 1rem; }

.api-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

.api-table th,
.api-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--border);
}

.api-table th {
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 600;
}

.api-table td { background: var(--bg-card); color: var(--text-muted); }
.api-table code { color: var(--green-bright); }

.code-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--teal-light);
}

.code-block code { white-space: pre; }

.method {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font);
}

.method.get { background: rgba(37, 211, 102, 0.15); color: var(--green-bright); }
.method.post { background: rgba(0, 168, 132, 0.2); color: var(--teal); }

.api-callout {
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 1rem 0;
}

.api-list {
  margin: 0 0 1rem 1.25rem;
  color: var(--text-muted);
}

.api-list li { margin-bottom: 0.5rem; }

.api-footer-note {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.nav-links a.active-nav { color: var(--green-bright); font-weight: 600; }

@media (max-width: 960px) {
  .api-layout { grid-template-columns: 1fr; }
  .api-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 1rem;
  }
  .api-sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
  }
  .api-sidebar a {
    border-left: none;
    padding: 0.35rem 0.75rem;
    margin: 0;
    background: var(--bg-card);
    border-radius: 999px;
    font-size: 0.8rem;
  }
}

/* ── Admin Panel ── */
.admin-page { padding-top: var(--nav-height); min-height: 100vh; }

.admin-login-wrap {
  min-height: calc(100vh - var(--nav-height) - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.admin-login-card {
  width: min(100%, 440px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.admin-login-logo { margin: 0 auto 1rem; border-radius: 14px; }

.admin-login-card h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.25rem; }

.admin-subtitle { color: var(--teal); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.75rem; }

.admin-hint, .admin-footnote {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 1rem 0;
  line-height: 1.5;
}

.admin-form { text-align: left; margin-top: 1.5rem; }

.admin-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.admin-form input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
}

.admin-form input:focus {
  outline: none;
  border-color: var(--teal);
}

.admin-error { color: #ff6b6b; font-size: 0.85rem; min-height: 1.25rem; margin: 0.5rem 0; }

.btn-block { width: 100%; margin-top: 0.5rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }

.hidden { display: none !important; }

.admin-dashboard { padding: 2rem 0 4rem; }

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

.admin-dash-header h1 { font-size: 1.75rem; font-weight: 800; }

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

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
}

.admin-stat span { display: block; font-size: 1.5rem; font-weight: 800; color: var(--green-bright); }

.admin-stat label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.admin-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.875rem;
}

.admin-tab.active, .admin-tab:hover {
  background: var(--green-dark);
  border-color: var(--teal);
  color: var(--text);
}

.admin-panel { display: none; }
.admin-panel.active { display: block; }

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.admin-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--teal); }

.admin-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-form-row input {
  flex: 1;
  min-width: 120px;
  padding: 0.6rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.admin-form-grid label { font-size: 0.85rem; color: var(--text-muted); }

.admin-form-grid input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.activity-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.activity-row .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  margin-top: 6px;
  flex-shrink: 0;
}

.activity-row .dot.online { background: var(--green-bright); }

.muted { color: var(--text-muted); font-size: 0.875rem; }
.fee-note { margin-bottom: 0.75rem; }

.tx-list { margin-top: 1rem; }

.tx-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.tx-amt { text-align: right; color: var(--green-bright); font-weight: 600; }
.tx-amt .fee { color: #ffb74d; font-size: 0.75rem; font-weight: 400; }

.admin-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--green-dark);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  z-index: 200;
  transition: transform 0.3s ease;
  box-shadow: var(--shadow);
}

.admin-toast.show { transform: translateX(-50%) translateY(0); }
.admin-toast.error { background: #c62828; }

.footer-min { padding: 1.5rem 0; margin-top: 2rem; }
