/* ============================================
   ZYRA HUB — MAIN STYLES
   Clean, dark, professional Discord dashboard
   ============================================ */

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

:root {
  --bg:         #0d0d10;
  --bg-2:       #111115;
  --bg-3:       #16161b;
  --bg-4:       #1c1c23;
  --border:     rgba(255,255,255,.07);
  --border-2:   rgba(255,255,255,.12);
  --text:       #e8e8ef;
  --text-2:     #9898aa;
  --text-3:     #5c5c6e;
  --accent:     #6366f1;
  --accent-2:   #818cf8;
  --accent-dim: rgba(99,102,241,.15);
  --success:    #22c55e;
  --success-dim:#16a34a22;
  --warn:       #f59e0b;
  --warn-dim:   #f59e0b22;
  --error:      #ef4444;
  --error-dim:  #ef444422;
  --info-dim:   rgba(99,102,241,.1);
  --sidebar-w:  240px;
  --radius:     10px;
  --radius-lg:  16px;
  font-size: 15px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============ BACKGROUND EFFECTS ============ */

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(99,102,241,.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ============ TYPOGRAPHY ============ */

h1, h2, h3, h4 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: 1.75rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }

/* ============ NAV (LANDING) ============ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  background: rgba(13,13,16,.8);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-links a {
  color: var(--text-2);
  font-size: .9rem;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

/* ============ LOGO ============ */

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.01em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ============ BUTTONS ============ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: .6rem 1.2rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  transition: background .2s, transform .1s, box-shadow .2s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 0 20px rgba(99,102,241,.3); }
.btn-primary:active { transform: scale(.98); }
.btn-primary svg { width: 18px; height: 18px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  padding: .6rem 1.2rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--text-3); color: var(--text); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg-4);
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: .6rem 1.2rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  transition: background .2s, color .2s;
}
.btn-ghost:hover { background: var(--bg-3); color: var(--text); }

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--error);
  color: #fff;
  border: none;
  padding: .6rem 1.2rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  transition: opacity .2s;
}
.btn-danger:hover { opacity: .85; }

.icon-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--bg-4); color: var(--text); border-color: var(--border-2); }
.icon-btn.danger:hover { background: var(--error-dim); color: var(--error); border-color: rgba(239,68,68,.3); }
.icon-btn svg { width: 15px; height: 15px; }

/* ============ LANDING PAGE ============ */

body.landing { position: relative; }
body.landing > :not(.bg-grid):not(.bg-glow):not(.nav) { position: relative; z-index: 1; }

.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 160px 2rem 100px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-dim);
  border: 1px solid rgba(99,102,241,.25);
  color: var(--accent-2);
  padding: .3rem .9rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: .02em;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-2);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-actions .btn-primary { padding: .75rem 1.5rem; font-size: .95rem; }
.hero-actions .btn-outline { padding: .75rem 1.5rem; font-size: .95rem; }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  color: var(--text-2);
}
.stat strong { display: block; font-family: 'Syne', sans-serif; font-size: 1.5rem; color: var(--text); }
.stat span { font-size: .85rem; }
.stat-div { width: 1px; height: 36px; background: var(--border); }

/* Features */

.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 2rem 120px;
}

.section-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1rem;
}

.features h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color .2s;
}
.feature-card:hover { border-color: var(--border-2); }

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent-2);
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 { font-size: 1rem; margin-bottom: .5rem; color: var(--text); }
.feature-card p { font-size: .9rem; color: var(--text-2); line-height: 1.65; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 2rem; margin-top: 2rem; }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer p { font-size: .85rem; color: var(--text-3); }

/* ============ LOGIN PAGE ============ */

body.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
body.login-page > * { position: relative; z-index: 1; }

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  text-align: center;
}

.login-logo { justify-content: center; margin-bottom: 2.5rem; }

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

.login-card h2 { margin-bottom: .5rem; }
.login-sub { color: var(--text-2); font-size: .9rem; margin-bottom: 2rem; line-height: 1.6; }

.btn-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  width: 100%;
  background: #5865f2;
  color: #fff;
  border: none;
  padding: .85rem 1.5rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: background .2s, box-shadow .2s;
  margin-bottom: 1.5rem;
}
.btn-discord:hover { background: #4752c4; box-shadow: 0 4px 20px rgba(88,101,242,.3); }
.btn-discord svg { width: 20px; height: 20px; }

.login-note { font-size: .8rem; color: var(--text-3); line-height: 1.6; }

/* ============ SERVER SELECT ============ */

body.server-select-page { position: relative; }
body.server-select-page > * { position: relative; z-index: 1; }

.nav-dash { position: sticky; }
.nav-user { display: flex; align-items: center; gap: .75rem; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-name { font-size: .875rem; color: var(--text-2); }

.server-select-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.page-header { margin-bottom: 2.5rem; }
.page-header h2 { margin-bottom: .5rem; }
.page-header p { color: var(--text-2); }

.servers-grid { display: flex; flex-direction: column; gap: .75rem; }

.server-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.server-card:hover { border-color: var(--border-2); background: var(--bg-3); }
.server-card.active:hover { border-color: var(--accent); }
.server-card.active { border-color: rgba(99,102,241,.3); }
.server-card.no-wl, .server-card.no-bot { opacity: .7; }
.server-card.no-wl:hover, .server-card.no-bot:hover { opacity: 1; }

.server-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.server-info { flex: 1; }
.server-info strong { display: block; font-size: .95rem; margin-bottom: .25rem; }
.server-status { display: flex; align-items: center; gap: .4rem; font-size: .8rem; }
.server-status .dot { width: 7px; height: 7px; border-radius: 50%; }
.server-status.online { color: var(--success); }
.server-status.online .dot { background: var(--success); }
.server-status.warn { color: var(--warn); }
.server-status.warn .dot { background: var(--warn); }
.server-status.muted { color: var(--text-3); }
.server-status.muted .dot { background: var(--text-3); }
.server-arrow { width: 18px; height: 18px; color: var(--text-3); }
.invite-badge { background: var(--accent-dim); color: var(--accent-2); border: 1px solid rgba(99,102,241,.2); padding: .3rem .7rem; border-radius: 6px; font-size: .78rem; font-weight: 500; white-space: nowrap; }

/* ============ SIDEBAR ============ */

body.dash-page { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  overflow-y: auto;
  z-index: 50;
}

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

.server-pill {
  margin: .75rem;
  padding: .75rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.server-icon-sm {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.server-pill > div { flex: 1; min-width: 0; }
.server-pill strong { display: block; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-pill span { font-size: .72rem; color: var(--success); }
.change-server { color: var(--text-3); display: flex; transition: color .2s; }
.change-server:hover { color: var(--text); }
.change-server svg { width: 16px; height: 16px; }

.sidebar-nav { flex: 1; padding: .75rem; display: flex; flex-direction: column; gap: 2px; }

.nav-section-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: .75rem .6rem .3rem;
  margin-top: .25rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .75rem;
  border-radius: 8px;
  font-size: .875rem;
  color: var(--text-2);
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--bg-4); color: var(--text); }
.nav-item.active { background: var(--accent-dim); color: var(--accent-2); }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.user-info { flex: 1; min-width: 0; }
.user-info strong { display: block; font-size: .82rem; }
.user-info span { font-size: .75rem; color: var(--text-3); }
.logout-btn { color: var(--text-3); display: flex; transition: color .2s; }
.logout-btn:hover { color: var(--error); }
.logout-btn svg { width: 18px; height: 18px; }

/* ============ DASH MAIN ============ */

.dash-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 2rem;
  max-width: calc(100vw - var(--sidebar-w));
  overflow-x: hidden;
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.dash-topbar h1 { margin-bottom: .15rem; }
.dash-sub { font-size: .85rem; color: var(--text-3); }
.topbar-actions { display: flex; gap: .75rem; align-items: center; }
.filter-row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }

/* ============ STATS ROW ============ */

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

.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}
.stat-header span { font-size: .82rem; color: var(--text-2); }
.stat-header svg { width: 18px; height: 18px; color: var(--text-3); }

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: .5rem;
}

.stat-change { font-size: .8rem; }
.stat-change.positive { color: var(--success); }
.stat-change.neutral { color: var(--text-3); }
.stat-change.negative { color: var(--error); }

/* ============ DASH GRID / CARDS ============ */

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 1.5rem;
}

.dash-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.dash-card.wide { grid-column: span 2; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.card-header h3 { font-size: 1rem; }
.card-link { font-size: .82rem; color: var(--accent-2); }
.card-link:hover { text-decoration: underline; }

/* ============ TABLE ============ */

.table-wrap { overflow-x: auto; }

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.dash-table th {
  text-align: left;
  padding: .6rem .75rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
.dash-table td {
  padding: .85rem .75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: var(--bg-3); }
.tx-id { font-family: monospace; font-size: .8rem; color: var(--text-3); }

.product-badge { font-size: .875rem; color: var(--text); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .6rem;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 500;
}
.badge.success { background: var(--success-dim); color: var(--success); }
.badge.pending { background: var(--warn-dim); color: var(--warn); }
.badge.failed { background: var(--error-dim); color: var(--error); }

.method {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 5px;
  font-size: .75rem;
  font-weight: 600;
}
.method.paypal { background: #003087; color: #fff; }
.method.btc { background: #f7931a22; color: #f7931a; }
.method.eth { background: #627eea22; color: #627eea; }
.method.ltc { background: #345d9d22; color: #74b3e0; }

/* ============ PRODUCT LIST (SIDEBAR) ============ */

.product-list { display: flex; flex-direction: column; gap: 2px; }
.product-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .5rem;
  border-radius: 8px;
  transition: background .15s;
}
.product-row:hover { background: var(--bg-3); }
.p-emoji { font-size: 1.1rem; width: 24px; text-align: center; }
.p-info { flex: 1; }
.p-info strong { display: block; font-size: .875rem; color: var(--text); }
.p-info span { font-size: .78rem; color: var(--text-3); }
.p-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.p-status.ok { background: var(--success); }
.p-status.warn { background: var(--warn); }
.p-status.empty { background: var(--error); }
.p-status.inf { background: var(--accent); }

/* ============ ACTIVITY LIST ============ */

.activity-list { display: flex; flex-direction: column; gap: .25rem; }
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .6rem .5rem;
  border-radius: 8px;
  transition: background .15s;
}
.activity-item:hover { background: var(--bg-3); }
.act-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.act-dot.success { background: var(--success); }
.act-dot.warn { background: var(--warn); }
.act-dot.error { background: var(--error); }
.act-dot.info { background: var(--accent); }
.act-content { flex: 1; }
.act-content strong { display: block; font-size: .85rem; color: var(--text); }
.act-content span { display: block; font-size: .78rem; color: var(--text-2); margin: .1rem 0; }
.act-content time { font-size: .72rem; color: var(--text-3); }

/* ============ PRODUCTS GRID ============ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.product-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color .2s;
}
.product-card:hover { border-color: var(--border-2); }
.product-card.out-of-stock { opacity: .7; }

.pc-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
.pc-emoji { font-size: 2rem; }
.pc-actions { display: flex; gap: .4rem; }
.product-card h4 { font-size: .95rem; margin-bottom: .4rem; }
.pc-desc { font-size: .83rem; color: var(--text-2); line-height: 1.6; margin-bottom: 1rem; }
.pc-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.pc-price { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.pc-stock { font-size: .78rem; padding: .2rem .6rem; border-radius: 6px; }
.pc-stock.ok { background: var(--success-dim); color: var(--success); }
.pc-stock.warn { background: var(--warn-dim); color: var(--warn); }
.pc-stock.empty { background: var(--error-dim); color: var(--error); }
.pc-stock.inf { background: var(--accent-dim); color: var(--accent-2); }
.pc-methods { display: flex; gap: .4rem; flex-wrap: wrap; }
.oos-tag { font-size: .7rem; background: var(--error-dim); color: var(--error); padding: .15rem .5rem; border-radius: 4px; vertical-align: middle; margin-left: .4rem; }

/* ============ SETTINGS / FORMS ============ */

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.settings-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.settings-card h3 { font-size: 1rem; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .82rem; color: var(--text-2); margin-bottom: .4rem; font-weight: 500; }
.form-hint { display: block; font-size: .75rem; color: var(--text-3); margin-top: .3rem; }

.form-input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .55rem .85rem;
  color: var(--text);
  font-size: .875rem;
  font-family: 'DM Sans', sans-serif;
  transition: border-color .2s;
  outline: none;
  resize: vertical;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-3); }
.form-input.sm { width: auto; min-width: 140px; }

.form-row { display: flex; gap: .75rem; }
.form-row .form-group { flex: 1; }
.form-group.flex-3 { flex: 3; }

.checkbox-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.check-item { display: flex; align-items: center; gap: .4rem; font-size: .875rem; color: var(--text-2); cursor: pointer; }
.check-item input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; }

.radio-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.radio-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: .85rem;
  cursor: pointer;
  color: var(--text-2);
  transition: border-color .2s, background .2s, color .2s;
}
.radio-item input { display: none; }
.radio-item.active-radio { border-color: var(--accent); background: var(--accent-dim); color: var(--accent-2); }

.vars-list { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .25rem; }
.vars-list code { background: var(--bg-4); border: 1px solid var(--border); color: var(--accent-2); padding: .2rem .5rem; border-radius: 5px; font-size: .78rem; font-family: monospace; }

/* Toggle switch */
.toggle { position: relative; display: inline-flex; width: 44px; height: 24px; cursor: pointer; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle span {
  position: absolute; inset: 0;
  background: var(--bg-4);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  transition: background .2s;
}
.toggle span::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--text-3);
  transition: transform .2s, background .2s;
}
.toggle input:checked + span { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + span::after { transform: translateX(20px); background: #fff; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row > div strong { display: block; font-size: .875rem; color: var(--text); margin-bottom: .15rem; }
.toggle-row > div span { font-size: .8rem; color: var(--text-3); }

/* ============ PANEL LAYOUT ============ */

.panel-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 1.5rem;
  align-items: start;
}

.panel-config { display: flex; flex-direction: column; gap: 1.25rem; }

.config-section {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.config-section h3 { font-size: 1rem; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }

.color-picker-wrap { display: flex; gap: .5rem; align-items: center; }
.color-picker-wrap input[type=color] { width: 44px; height: 40px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-3); padding: 2px; cursor: pointer; }
.color-picker-wrap .form-input { flex: 1; }

.panel-preview { position: sticky; top: 2rem; }
.preview-label { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: .75rem; }

.discord-mock {
  background: #313338;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid rgba(0,0,0,.3);
}

.discord-embed {
  background: #2b2d31;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: .75rem;
  display: flex;
}

.embed-bar { width: 4px; background: #5865f2; flex-shrink: 0; }

.embed-content { padding: 1rem; flex: 1; }
.embed-title { font-weight: 700; font-size: .95rem; color: #fff; margin-bottom: .5rem; }
.embed-desc { font-size: .85rem; color: #dbdee1; line-height: 1.6; margin-bottom: 1rem; }
.embed-field { display: flex; justify-content: space-between; align-items: center; padding: .4rem 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: .85rem; color: #dbdee1; }
.embed-field:last-child { border-bottom: none; }
.field-price { color: #fff; font-weight: 600; }
.embed-footer-text { font-size: .72rem; color: #72767d; margin-top: .75rem; }

.discord-buttons { display: flex; gap: .4rem; flex-wrap: wrap; }
.dc-btn { background: #4e505880; border: none; color: #dbdee1; padding: .5rem .9rem; border-radius: 4px; font-size: .85rem; cursor: pointer; transition: background .15s; }
.dc-btn:hover { background: #6d6f7880; }
.dc-select { background: #1e1f22; border: 1px solid #1a1a1a; color: #dbdee1; padding: .5rem .75rem; border-radius: 4px; font-size: .85rem; flex: 1; }

/* ============ PAYMENTS PAGE ============ */

.payment-card { }
.payment-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.pay-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.05rem; }
.paypal-logo { color: #0070ba; }
.btc-logo { color: #f7931a; }
.eth-logo { color: #627eea; }
.ltc-logo { color: #74b3e0; }

/* ============ LOGS ============ */

.log-console {
  background: var(--bg);
  border-radius: 8px;
  padding: 1rem;
  font-family: 'DM Mono', 'Fira Code', monospace;
  font-size: .8rem;
  max-height: 500px;
  overflow-y: auto;
}

.log-line {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .4rem .5rem;
  border-radius: 4px;
  margin-bottom: 2px;
  transition: background .15s;
}
.log-line:hover { background: var(--bg-2); }
.log-time { color: var(--text-3); flex-shrink: 0; width: 90px; }
.log-type { font-weight: 600; font-size: .72rem; width: 90px; flex-shrink: 0; }
.log-msg { color: var(--text-2); }
.log-line.success .log-type { color: var(--success); }
.log-line.info .log-type { color: var(--accent-2); }
.log-line.warn .log-type { color: var(--warn); }
.log-line.error .log-type { color: var(--error); }

/* ============ WHITELIST ============ */

.info-banner {
  background: var(--info-dim);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: var(--radius);
  padding: .85rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1.5rem;
  font-size: .875rem;
  color: var(--text-2);
  line-height: 1.6;
}
.info-banner svg { width: 20px; height: 20px; color: var(--accent-2); flex-shrink: 0; margin-top: 1px; }

/* ============ TRANSACTIONS DETAIL ============ */

.tx-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tx-detail-item span { display: block; font-size: .78rem; color: var(--text-3); margin-bottom: .2rem; }
.tx-detail-item strong { font-size: .95rem; color: var(--text); }

/* ============ MODALS ============ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 2rem;
  transform: translateY(8px);
  transition: transform .2s;
  text-align: center;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal.modal-lg { max-width: 600px; text-align: left; }

.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-header h3 { font-size: 1.05rem; }
.modal-close { background: transparent; border: none; color: var(--text-3); cursor: pointer; padding: .25rem; border-radius: 6px; transition: color .2s; }
.modal-close:hover { color: var(--text); }
.modal-close svg { width: 20px; height: 20px; }

.modal-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.modal-icon svg { width: 26px; height: 26px; }
.modal-icon.danger { background: var(--error-dim); color: var(--error); }
.modal-icon.warn { background: var(--warn-dim); color: var(--warn); }

.modal h3 { margin-bottom: .75rem; }
.modal p { font-size: .9rem; color: var(--text-2); line-height: 1.65; margin-bottom: .75rem; }

.modal-body { margin-bottom: 1.5rem; }
.modal-footer { display: flex; gap: .75rem; justify-content: flex-end; }

.modal:not(.modal-lg) .modal-footer { justify-content: center; flex-wrap: wrap; }

/* ============ SCROLLBAR ============ */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ============ ANIMATIONS ============ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero { animation: fadeUp .5s ease both; }
.feature-card:nth-child(1) { animation: fadeUp .4s .05s ease both; }
.feature-card:nth-child(2) { animation: fadeUp .4s .1s ease both; }
.feature-card:nth-child(3) { animation: fadeUp .4s .15s ease both; }
.feature-card:nth-child(4) { animation: fadeUp .4s .2s ease both; }
.feature-card:nth-child(5) { animation: fadeUp .4s .25s ease both; }
.feature-card:nth-child(6) { animation: fadeUp .4s .3s ease both; }

.stat-card { animation: fadeUp .35s ease both; }
.stat-card:nth-child(2) { animation-delay: .05s; }
.stat-card:nth-child(3) { animation-delay: .1s; }
.stat-card:nth-child(4) { animation-delay: .15s; }
