/* dashboard */


/* ===== CSS Variables ===== */
:root {
  --bg: #0f0f0f;
  --panel: #1a1a1a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #888;
  --accent: #bc4c4c;
  --danger: #f87171;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, sans-serif;
  min-height: 100vh;
}

/* ===== Auth ===== */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 500px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.auth-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.auth-tabs {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.auth-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ===== Form Fields ===== */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.tg-wrap {
  position: relative;
}

.tg-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.field input.tg-input {
  padding-left: 28px;
}

.field input:focus {
  border-color: var(--accent);
}

/* ===== Buttons ===== */
.btn {
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.btn-green {
  background: var(--accent);
  color: #08130c;
}

.btn-green:hover {
  background: #1aaa5c;
}

/* ===== Auth Error ===== */
.auth-error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
  min-height: 18px;
}

/* ===== Dashboard Header ===== */
.dash-header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-header h1 {
  font-size: 18px;
  font-weight: 700;
}

.dash-tg {
  font-size: 13px;
  color: var(--accent);
}

.dash-logout {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
}

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

/* ===== Dashboard Content ===== */
.dash-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* ===== Link Box ===== */
.link-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}

.link-box h3 {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.link-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.link-url {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--accent);
  word-break: break-all;
  font-family: monospace;
}

.copy-btn {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #08130c;
  font-size: 13px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: #ae0000;
}

/* ===== Stats Grid ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
}

.stat-value.green {
  color: var(--accent);
}

/* ===== Split Box ===== */
.split-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.split-label {
  font-size: 14px;
  color: var(--muted);
}

.split-pills {
  display: flex;
  gap: 10px;
}

.split-pill {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.split-pill.yours {
  background: #401c1c;
  color: var(--accent);
}

.split-pill.owner {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

/* ===== Wallet Box ===== */
.wallet-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.wallet-box h3 {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wallet-row {
  display: flex;
  gap: 10px;
}

.wallet-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-family: monospace;
  outline: none;
}

.wallet-input:focus {
  border-color: var(--accent);
}

.wallet-save {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #08130c;
  font-size: 13px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.wallet-msg {
  font-size: 13px;
  margin-top: 8px;
  min-height: 18px;
}

/* ===== Transactions Table ===== */
.tx-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.tx-table {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.tx-table table {
  width: 100%;
  border-collapse: collapse;
}

.tx-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
}

.tx-table td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.tx-table tr:last-child td {
  border-bottom: none;
}

/* ===== Status Badges ===== */
.status-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-completed {
  background: rgba(32, 197, 108, 0.15);
  color: #ffffff;
}

.status-failed {
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
}

.status-pending {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.status-processing {
  background: rgba(255, 200, 0, 0.15);
  color: #ffc800;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 14px;
}

/* ===== VIDEO BACKGROUND ===== */

body {
  position: relative;
  min-height: 100vh;
  background: #000 !important;
  overflow-x: hidden;
}

/* Video */
.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  z-index: 0;
  pointer-events: none;

  opacity: 1;

  filter:
    none
}

/* Donkere laag over video */
.background-overlay {
  position: fixed;
  inset: 0;

  z-index: 1;
  pointer-events: none;

  background: rgba(0, 0, 0, 0.55);
}

/* Alle pagina-content boven video */
.auth-wrap,
#dashView,
.app-shell,
.phone-frame {
  position: relative;
  z-index: 2;
}

/* Belangrijk: geen achtergrond over de video */
.auth-wrap,
#dashView,
.app-shell {
  background: transparent !important;
}

/* ===== GLITCH AUTH CARD ===== */

@keyframes glitch-clip {
  0%   { clip-path: inset(40% 0 55% 0); transform: translate(-4px,0); }
  20%  { clip-path: inset(70% 0 5% 0);  transform: translate(-3px,0); }
  40%  { clip-path: inset(85% 0 3% 0);  transform: translate(4px,0); }
  60%  { clip-path: inset(5% 0 90% 0);  transform: translate(-2px,0); }
  80%  { clip-path: inset(65% 0 15% 0); transform: translate(3px,0); }
  100% { clip-path: inset(40% 0 55% 0); transform: translate(-4px,0); }
}
@keyframes scanline {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}
@keyframes border-pulse {
  0%,100% { border-color: #c0000088; box-shadow: 0 0 8px #c0000044; }
  50%      { border-color: #ff2222cc; box-shadow: 0 0 18px #ff000066; }
}
@keyframes flicker {
  0%,100%,94%,97% { opacity: 1; }
  93% { opacity: .7; }
  96% { opacity: .85; }
}

/* Scanlines over de hele pagina */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 3px,
    rgba(0,0,0,0.18) 3px, rgba(0,0,0,0.18) 4px
  );
}

/* Bewegende scanline */
body::after {
  content: '';
  position: fixed;
  left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(180,0,0,0.06) 50%, transparent);
  animation: scanline 4s linear infinite;
  z-index: 101;
  pointer-events: none;
}

.auth-card {
  background: #111111;
  border: 1px solid #c00000aa;
  border-radius: 4px;                    /* sharper corners */
  animation: border-pulse 2.5s ease-in-out infinite, flicker 6s linear infinite;
  position: relative;
  overflow: hidden;
}

/* Glitch-laag over card (activeert bij hover) */
.auth-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #cc000015;
  animation: glitch-clip 0.8s steps(1) infinite;
  animation-play-state: paused;
  pointer-events: none;
}
.auth-card:hover::before {
  animation-play-state: running;
}

/* Title */
.auth-card h2 {
  font-family: 'Courier New', monospace;
  color: #cc2222;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 2px 0 #cc2222, -2px 0 #333;
}

/* Tabs */
.auth-tabs { border-bottom-color: #2a0000; }

.auth-tab {
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 12px;
  color: #555;
}
.auth-tab.active {
  color: #cc2222;
  border-bottom-color: #cc2222;
}

/* Labels en inputs */
.field label {
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 11px;
  color: #555;
}
.field input {
  background: #0a0a0a;
  border-color: #2a2a2a;
  border-radius: 2px;
  color: #ccc;
  font-family: 'Courier New', monospace;
}
.field input:focus { border-color: #cc2222; box-shadow: 0 0 8px #cc222244; }

/* Login/register button */
.btn-green {
  background: #1a0000;
  border: 1px solid #cc2222;
  border-radius: 2px;
  color: #cc2222;
  font-family: 'Courier New', monospace;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 12px;
}
.btn-green:hover {
  background: #cc2222;
  color: #000;
  box-shadow: 0 0 16px #cc222266;
}


.contact-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #1a0000;
  border: 1px solid #cc2222;
  border-radius: 2px;
  color: #cc2222;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .15s, box-shadow .15s, color .15s;
}

.contact-btn:hover {
  background: #cc2222;
  color: #000;
  box-shadow: 0 0 16px #cc222266;
}

.contact-btn i {
  font-size: 16px;
}

.dash-nav {
  display: flex;
  gap: 4px;
}

.dash-nav-tab {
  padding: 6px 16px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #555;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all .15s;
}

.dash-nav-tab:hover {
  color: #cc2222;
  border-color: #cc222244;
}

.dash-nav-tab.active {
  color: #cc2222;
  border-color: #cc2222;
  background: #1a0000;
}

.tony {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  height: 520px;
  width: 100%;
  pointer-events: none;
  user-select: none;
}


.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: #374151; border-radius: 24px; transition: .3s; }
.toggle-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: .3s; }
input:checked + .toggle-slider { background: #20c56c; }
input:checked + .toggle-slider:before { transform: translateX(20px); }