:root{
  --bg:#060606;
  --surface:#111;
  --surface2:#171717;
  --surface3:#202020;
  --border:#2d2d2d;
  --text:#fff;
  --muted:#b5b5b5;
  --muted2:#7d7d7d;
  --accent:#f08a24;
  --accent2:#ffb15f;
  --accent-soft:rgba(240,138,36,.14);
  --green:#38c878;
  --blue:#5ca8ff;
  --red:#ff5c5c;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:radial-gradient(circle at 20% 0%,rgba(240,138,36,.16),transparent 32%),linear-gradient(180deg,#050505,#0b0b0b 45%,#050505);
  color:var(--text);
}
button,input,textarea,select{font-family:inherit}
a{color:inherit;text-decoration:none}
.topbar{position:sticky;top:0;z-index:30;background:rgba(6,6,6,.92);border-bottom:1px solid var(--border);backdrop-filter:blur(12px)}
.nav{max-width:1200px;margin:auto;padding:16px 22px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand{display:flex;align-items:center;gap:12px;font-weight:900;font-size:19px}
.logo{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,var(--accent),var(--accent2));color:#111;display:grid;place-items:center;font-weight:900}
.links{display:flex;gap:18px;color:var(--muted);font-size:14px;align-items:center}
.links a:hover{color:#fff}
.discord-pill{border:1px solid var(--border);border-radius:999px;padding:9px 13px;color:var(--muted);font-size:13px;background:#0c0c0c}
.hero{max-width:1200px;margin:auto;padding:70px 22px 38px;display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:center}
.kicker{color:var(--accent);font-weight:800;margin-bottom:14px}
h1{font-size:clamp(36px,5vw,62px);line-height:1.04;margin:0;letter-spacing:-.04em}
.lead{color:var(--muted);font-size:18px;line-height:1.65;max-width:670px;margin:22px 0 0}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.btn{min-height:46px;padding:0 18px;border-radius:10px;border:1px solid transparent;background:var(--accent);color:#101010;font-weight:900;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.btn.secondary{background:transparent;color:#fff;border-color:var(--border)}
.btn.dark{background:#242424;color:#fff;border-color:#3a3a3a}
.btn.danger{background:var(--red);color:#fff}
.btn.full{width:100%;margin-top:12px}
.btn:hover{filter:brightness(1.08)}
.preview,.card{background:linear-gradient(180deg,var(--surface2),#0c0c0c);border:1px solid var(--border);border-radius:22px;padding:22px;box-shadow:0 22px 60px rgba(0,0,0,.24)}
.config{display:grid;gap:12px}
.config-row{padding:14px;border-radius:14px;border:1px solid var(--border);background:var(--surface);display:flex;align-items:center;justify-content:space-between;gap:12px}
.config-row span{color:var(--muted);font-size:13px}
.config-row b{font-size:14px;text-align:right;word-break:break-all}
main{max-width:1200px;margin:auto;padding:20px 22px 80px}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:36px 0 18px}
.section-head h2{margin:0;font-size:32px}
.section-head p{margin:0;color:var(--muted);line-height:1.55;max-width:650px}
.grid{display:grid;grid-template-columns:1.35fr .65fr;gap:22px}
.card h3{font-size:23px;margin:0 0 8px}
.help{color:var(--muted);line-height:1.55;margin:0 0 18px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.field{display:flex;flex-direction:column;gap:8px}
.field.full{grid-column:1/-1}
label{font-size:14px;font-weight:800;color:#ececec}
input,textarea,select{width:100%;border:1px solid var(--border);background:#0b0b0b;color:#fff;border-radius:10px;padding:13px 14px;font-size:15px;outline:none}
textarea{min-height:105px;resize:vertical}
input:focus,textarea:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;background:var(--accent);color:#111;white-space:nowrap}
.badge.blue{background:var(--blue);color:#06111d}
.badge.green{background:var(--green);color:#06150d}
.badge.red{background:var(--red);color:#fff}
.badge.gray{background:#303030;color:#ddd;border:1px solid #444}
.app{padding:15px;border:1px solid var(--border);border-radius:16px;background:var(--surface);margin-top:13px}
.app-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.small{color:var(--muted2);font-size:13px;line-height:1.45}
.app-actions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:13px}
.info{padding:14px;border-radius:14px;border:1px solid rgba(240,138,36,.28);background:var(--accent-soft);color:#ffd9b0;line-height:1.5;margin-top:16px}
.three{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.step{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:18px}
.step strong{display:block;font-size:18px;margin-bottom:8px}
.lock{display:inline-flex;margin-bottom:14px;border:1px solid var(--border);border-radius:999px;padding:8px 11px;color:var(--muted);font-size:13px;background:#0b0b0b}
.embed{border-left:4px solid var(--accent);background:#101010;border-radius:12px;padding:14px;margin-top:12px}
.embed-title{font-weight:900;margin-bottom:6px;color:#fff}
.embed-line{color:var(--muted);font-size:14px;margin:4px 0}
.table{width:100%;border-collapse:separate;border-spacing:0 10px}
.table th{text-align:left;color:var(--muted);font-size:13px;font-weight:700;padding:0 10px}
.table td{background:var(--surface);border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:14px 10px;vertical-align:top}
.table td:first-child{border-left:1px solid var(--border);border-radius:12px 0 0 12px}
.table td:last-child{border-right:1px solid var(--border);border-radius:0 12px 12px 0}
.footer{text-align:center;color:var(--muted2);border-top:1px solid var(--border);padding:28px;background:#050505}
@media(max-width:930px){.hero,.grid,.three{grid-template-columns:1fr}.links{display:none}}
@media(max-width:640px){.form-grid{grid-template-columns:1fr}.actions{flex-direction:column}.btn{width:100%}.section-head{flex-direction:column;align-items:flex-start}.table{font-size:13px}}


/* Dashboard Patch */
.dashboard-shell{max-width:1200px;margin:auto;padding:34px 22px 90px}
.dashboard-hero{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center;margin:24px 0 26px}
.dashboard-hero h1{font-size:clamp(34px,4vw,56px)}
.profile-card{display:flex;align-items:center;gap:14px;background:var(--surface2);border:1px solid var(--border);border-radius:20px;padding:18px 20px;min-width:260px}
.profile-avatar{width:54px;height:54px;border-radius:16px;background:linear-gradient(135deg,var(--accent),var(--accent2));color:#111;display:grid;place-items:center;font-weight:900;font-size:24px}
.profile-card b{display:block}
.profile-card span{display:block;color:var(--muted);font-size:14px;margin-top:4px}
.dashboard-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:18px 0 22px}
.dash-stat{background:var(--surface2);border:1px solid var(--border);border-radius:20px;padding:20px}
.dash-stat span{color:var(--muted);font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.dash-stat strong{display:block;font-size:38px;margin:8px 0 4px}
.dash-stat small{color:var(--muted2)}
.dashboard-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0 24px}
.dash-tile{background:var(--surface2);border:1px solid var(--border);border-radius:22px;padding:20px;display:flex;gap:14px;color:var(--text);transition:.18s transform,.18s border-color}
.dash-tile:hover{transform:translateY(-2px);border-color:rgba(240,138,36,.65)}
.dash-tile.primary{background:linear-gradient(180deg,rgba(240,138,36,.18),var(--surface2));border-color:rgba(240,138,36,.38)}
.dash-tile.locked{opacity:.78}
.tile-icon{font-size:30px;line-height:1}
.dash-tile h3{margin:0 0 7px;font-size:19px}
.dash-tile p{margin:0;color:var(--muted);line-height:1.45;font-size:14px}
.dashboard-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:24px}
.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.card-head h3{margin:0 0 6px}
.mini-link{color:var(--accent);font-weight:800;font-size:14px;white-space:nowrap}
.empty-state{padding:18px;border:1px dashed var(--border);border-radius:16px;color:var(--muted);background:rgba(255,255,255,.03)}
.list-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:1px solid var(--border)}
.list-row:last-child{border-bottom:0}
.list-row b{display:block;margin-bottom:4px}
.list-row span{color:var(--muted);font-size:13px}
.team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.team-card{display:flex;gap:14px;align-items:center;background:var(--surface2);border:1px solid var(--border);border-radius:22px;padding:18px}
.team-card img{width:64px;height:64px;border-radius:18px;background:#222}
.team-card h3{margin:0 0 4px;font-size:19px}
.team-card p{margin:0 0 6px;color:var(--muted)}
.team-card span{color:var(--muted2);font-size:13px}
@media(max-width:980px){.dashboard-hero,.dashboard-columns{grid-template-columns:1fr}.dashboard-stats,.dashboard-grid,.team-grid{grid-template-columns:1fr 1fr}.profile-card{min-width:0}}
@media(max-width:640px){.dashboard-stats,.dashboard-grid,.team-grid{grid-template-columns:1fr}}

.profile-card small{display:block;color:var(--muted2);font-size:12px;margin-top:4px}
.profile-img{width:54px;height:54px;border-radius:16px;object-fit:cover;background:#222}
.applicant-only{grid-template-columns:1fr 1fr}
.applicant-only .dash-tile{min-height:170px}
@media(max-width:640px){.applicant-only{grid-template-columns:1fr}}

.profile-card small{display:block;color:var(--muted2);font-size:12px;margin-top:4px}
.profile-img{width:54px;height:54px;border-radius:16px;object-fit:cover;background:#222}
.applicant-only{grid-template-columns:1fr 1fr}
.applicant-only .dash-tile{min-height:170px}
.team-card{text-decoration:none;color:inherit}
@media(max-width:640px){.applicant-only{grid-template-columns:1fr}}
