/* =========================================
   XYield Landing — app.css (cleaned)
   ========================================= */

/* ---------- Theme Tokens ---------- */
:root{
  --bg: #0a0f14;
  --panel: rgba(15, 22, 28, 0.9);
  --panel-soft: rgba(15, 22, 28, 0.7);
  --card: rgba(17, 24, 39, 0.7);
  --border: rgba(255,255,255,0.06);
  --muted: #94a3b8;
  --text: #e2e8f0;
  --text-dim: #cbd5e1;
  --accent: #06b6d4;        /* Default button color */
  --accent-strong: #0891b2; /* Hover color */
  --success: #34d399;
  --shadow: 0 8px 24px rgba(0,0,0,.35);
  --radius: 14px;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
a:hover{ color:#fff; }
hr{ border:0; border-top:1px solid var(--border); }

/* ---------- Layout Containers ---------- */
.container{ width:100%; max-width:1120px; margin:0 auto; padding:0 16px; }
.section{ padding:40px 0; }

.grid{ display:grid; gap:24px; }
.grid-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4{ grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width:1024px){ .grid-3, .grid-4{ grid-template-columns: 1fr 1fr; } }
@media (max-width:640px){ .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; } }

/* ---------- Header / Nav ---------- */
.app-header{
  position:sticky; top:0; z-index:40; backdrop-filter:blur(8px);
  /* color-mix fallback: use rgba if color-mix unsupported */
  background: rgba(10,15,20,.8);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border-bottom:1px solid var(--border);
}
.app-header .bar{ height:64px; display:flex; align-items:center; justify-content:space-between; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:600; letter-spacing:.1px; }
.brand-badge{
  width:24px; height:24px; border-radius:6px; background: var(--accent);
  box-shadow: 0 0 24px rgba(6,182,212,.6);
}
.nav{ display:flex; gap:28px; font-size:14px; color:var(--muted); }
.nav a{ position:relative; }
.nav a:hover{ color:#fff; }
.nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:-12px; height:2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity:0; transform: translateY(2px); transition:.2s;
}
.nav a:hover::after{ opacity:1; transform:none; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:40px; padding:0 16px; border-radius:10px;
  border:1px solid color-mix(in srgb, var(--accent) 65%, #000 35%);
  background: var(--accent);
  color:#0b1220;
  font-weight:600; font-size:14px; cursor:pointer;
  transition: background .2s, transform .04s ease;
}
.btn:hover{ background: var(--accent-strong); }
.btn:active{ transform: translateY(1px); }
.btn:disabled{ opacity:.45; cursor:not-allowed; }

.btn-outline{
  background: transparent;
  border:1px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover{ background: var(--accent); color:#0b1220; }

/* ---------- Forms ---------- */
.label{ display:block; font-size:12px; color:var(--muted); }
.input, .select{
  width:100%; height:40px; padding:0 12px; border-radius:10px;
  border:1px solid var(--border); background:#111827b3; color:var(--text);
  outline:none; transition:border-color .2s, box-shadow .2s;
}
.input::placeholder{ color:#64748b; }
.input[readonly]{ color:var(--text-dim); }
.input:focus, .select:focus{
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  box-shadow: 0 0 0 4px rgba(6,182,212,.18);
}
.checkbox{
  appearance:none; width:16px; height:16px; margin:0; border:1px solid var(--border);
  border-radius:4px; background:#0f172a; display:inline-grid; place-items:center;
}
.checkbox:checked{ background: var(--accent); border-color: rgba(6,182,212,.6); }
.checkbox:checked::after{ content:""; width:8px; height:8px; background:#0b1220; border-radius:2px; }

/* ---------- Cards / Panels ---------- */
.card{ background: var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); }
.card.pad{ padding:24px; }
.card-title{ font-size:13px; font-weight:700; color:var(--text-dim); }
.card-sub{ margin-top:6px; font-size:12px; color:var(--muted); }

/* Stat card */
.stat .label{ font-size:12px; color:var(--muted); }
.stat .value{ margin-top:6px; font-size:18px; font-weight:700; }

/* ---------- Hero ---------- */
.hero h1{ font-size:clamp(28px,3.2vw,36px); font-weight:800; line-height:1.15; }
.accent{ color:var(--accent); }
.hero p{ margin-top:8px; color:var(--muted); font-size:14px; }

/* ---------- Tables ---------- */
.table{ width:100%; border-collapse:collapse; font-size:14px; }
.table thead th{ text-align:left; padding:12px 20px; color:var(--muted); border-bottom:1px solid var(--border); font-weight:600; }
.table tbody td{ padding:12px 20px; border-bottom:1px solid var(--border); }
.table .mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.table .pos{ color:var(--success); font-weight:600; }

/* ---------- Sections Specific ---------- */
.stake-panel .actions{ display:flex; gap:12px; flex-wrap:wrap; }
.program-list{ margin:12px 0 0; padding:0; list-style:none; }
.program-list li{
  padding-left:18px; margin:10px 0; color:var(--muted); position:relative; font-size:14px;
}
.program-list li::before{
  content:""; position:absolute; left:0; top:.6em; width:8px; height:8px; border-radius:2px;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(6,182,212,.16);
}

/* Recent rewards header */
.table-head{ display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--border); }
.updated{ font-size:12px; color:var(--muted); }

/* ---------- Footer ---------- */
.app-footer{ border-top:1px solid var(--border); padding:28px 0; color:var(--muted); font-size:14px; }
.app-footer .links{ display:flex; gap:24px; }
.app-footer .links a:hover{ color:#fff; }

/* ---------- Utilities ---------- */
.m-0{ margin:0; }
.mt-1{ margin-top:4px; } .mt-2{ margin-top:8px; }
.mt-3{ margin-top:12px; } .mt-4{ margin-top:16px; }
.mt-5{ margin-top:20px; } .mt-6{ margin-top:24px; }
.mb-0{ margin-bottom:0; }
.pad-24{ padding:24px; }
.round{ border-radius:var(--radius); }
.center{ display:flex; align-items:center; justify-content:center; }
.hidden{ display:none !important; }
.text-sm{ font-size:14px; }
.text-xs{ font-size:12px; }
.text-dim{ color:var(--muted); }

/* Disabled */
button[disabled], .btn:disabled{ opacity:.45; cursor:not-allowed; filter:saturate(.7); }

/* Focus ring */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible{
  outline:2px solid var(--accent); outline-offset:2px; border-radius:8px;
}

/* Optional: underline glow */
.hero-accent-underline{ position:relative; }
.hero-accent-underline::after{
  content:""; position:absolute; left:0; bottom:-10px; height:3px; width:160px;
  background: linear-gradient(90deg, var(--accent), transparent);
  filter: drop-shadow(0 0 8px rgba(6,182,212,.4));
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width:900px){ .nav{ display:none; } }
@media (max-width:480px){
  .table thead{ display:none; }
  .table, .table tbody, .table tr, .table td{ display:block; width:100%; }
  .table tr{ padding:12px 0; }
  .table tbody td{ border:none; padding:6px 0; }
  .table tbody td::before{
    content: attr(data-label) ": "; color:var(--muted); font-weight:600; margin-right:8px;
  }
}

/* ------- Extras used by the Blade view ------- */

/* Cyan gradient ring around cards */
.ring-grad{
  position: relative;
}
.ring-grad::before{
  content:"";
  position:absolute; inset:-1px;
  border-radius: 16px; /* ~rounded-2xl */
  padding:1px;
  background: linear-gradient(135deg, rgba(6,182,212,.45), rgba(6,182,212,0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events:none;
}

/* Chip/Pill */
.pill{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: #e2e8f0;
  backdrop-filter: blur(4px);
}

/* Gradient text for “XYield” in hero */
.grad-text{
  background: linear-gradient(90deg, #06b6d4, #8be9ff);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Thin divider line inside cards */
.divider{
  height:1px; width:100%;
  background: rgba(255,255,255,.08);
}

/* Buttons used in template (uses your cyan) */
.btn-primary{
  background:#06b6d4; color:#0b1220;
  border:1px solid rgba(6,182,212,.45);
  font-weight:600;
  transition: background .2s ease;
}
.btn-primary:hover{ background:#0891b2; }

.btn-outline{
  background: transparent;
  border:1px solid #06b6d4;
  color:#06b6d4;
  transition: background .2s ease, color .2s ease;
}
.btn-outline:hover{ background:#06b6d4; color:#0b1220; }

/* Inputs used by template */
.input{
  background: #111827b3; /* slate-900/70 */
  border:1px solid rgba(255,255,255,.08);
  color:#e2e8f0;
}
.input:focus{
  border-color:#06b6d4;
  box-shadow: 0 0 0 3px rgba(6,182,212,.2);
  outline:none;
}

/* Base card */
.card{
  background: rgba(17,24,39,.7);
  border:1px solid rgba(255,255,255,.06);
  border-radius: 16px;
}

