:root{
  --bg0:#06090f;
  --bg1:#070c14;
  --card:#0b121c;
  --stroke:rgba(255,255,255,.08);
  --stroke2:rgba(82,210,255,.25);
  --text:#eaf3ff;
  --muted:rgba(234,243,255,.72);

  --cyan:#39d7ff;
  --cyan2:#00bfff;
  --blue:#5b7cff;
  --purple:#7b61ff;

  --radius:18px;
  --shadow:0 24px 80px rgba(0,0,0,.55);
}

/* Force remove old panel gradients */
html, body {
  background: #070b12 !important;
  background-image: none !important;
}

.app,
.container,
.panel,
.dashboard,
main {
  background: transparent !important;
  background-image: none !important;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 65% 35%, rgba(57,215,255,.20), transparent 55%),
    radial-gradient(900px 500px at 55% 65%, rgba(123,97,255,.14), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

a{color:inherit; text-decoration:none}
.wrap{max-width:1100px; margin:0 auto; padding:0 22px}

.nav{
  position:sticky; top:0; z-index:20;
  backdrop-filter: blur(10px);
  background: rgba(6,9,15,.55);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.navbar{
  display:flex; align-items:center; justify-content:space-between;
  height:72px;
}
.brand{
  display:flex; align-items:center; gap:12px; letter-spacing:.16em;
  font-weight:800;
}
.brand .dot{
  width:10px; height:10px; border-radius:999px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 20px rgba(57,215,255,.55);
}
.navlinks{display:flex; gap:18px; align-items:center; color:rgba(234,243,255,.75); font-size:14px}
.navlinks a{padding:8px 10px; border-radius:12px}
.navlinks a:hover{background:rgba(255,255,255,.06); color:rgba(234,243,255,.95)}

button,
.btn,
input[type="submit"] {
  background: linear-gradient(135deg, #22d3ee, #6366f1) !important;
  color: #020617 !important;
  border-radius: 14px;
  font-weight: 600;
  border: none;
}

button.secondary,
.btn.secondary {
  background: rgba(255,255,255,0.06) !important;
  color: #e5e7eb !important;
}

.card,
.panelCard,
.ticketCard,
.macroCard,
.box {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.01)
  ) !important;

  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
}

.actions{display:flex; gap:12px; align-items:center}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  height:42px; padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,16,26,.55);
  color:rgba(234,243,255,.9);
  cursor:pointer;
}
.btn:hover{border-color:rgba(57,215,255,.35)}
.btn.primary{
  border:0;
  background: linear-gradient(135deg, rgba(57,215,255,.95), rgba(123,97,255,.95));
  color:#06101a;
  font-weight:800;
  box-shadow: 0 18px 60px rgba(57,215,255,.22);
}
.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 14px; border-radius:999px;
  border:1px solid rgba(57,215,255,.22);
  background: rgba(10,16,26,.55);
  color: rgba(57,215,255,.92);
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.hero{
  padding:84px 0 60px;
  min-height: calc(100vh - 72px);
  display:flex; align-items:center;
}
.heroGrid{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap:36px;
  align-items:center;
}
.h1{
  margin:14px 0 10px;
  font-size:64px;
  line-height:1.02;
  letter-spacing:.02em;
  font-weight:900;
}
.h1 .accent{
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip:text; background-clip:text;
  color:transparent;
}
.lead{
  max-width:54ch;
  color: var(--muted);
  font-size:16px;
  line-height:1.6;
}
.ctaRow{display:flex; gap:14px; margin-top:22px; flex-wrap:wrap}
.subnote{margin-top:14px; color:rgba(234,243,255,.55); font-size:13px}

.card{
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(57,215,255,.20);
  background: linear-gradient(180deg, rgba(11,18,28,.80), rgba(11,18,28,.55));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.cardInner{padding:18px 18px 16px}
.cardTop{
  height:210px;
  background:
    radial-gradient(500px 260px at 75% 35%, rgba(57,215,255,.25), transparent 60%),
    radial-gradient(420px 220px at 55% 70%, rgba(123,97,255,.20), transparent 60%),
    linear-gradient(180deg, rgba(10,16,26,.2), rgba(10,16,26,.85));
  border-bottom:1px solid rgba(255,255,255,.06);
}
.miniTitle{color:rgba(57,215,255,.92); font-size:12px; letter-spacing:.14em; text-transform:uppercase}
.bigTitle{margin:8px 0 8px; font-size:26px; font-weight:900}
.metaRow{display:flex; justify-content:space-between; gap:16px; margin-top:14px; color:rgba(234,243,255,.62); font-size:13px}

.page{
  padding:28px 0 80px;
}
.shell{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap:18px;
}
.sidebar{
  border:1px solid rgba(255,255,255,.06);
  background: rgba(10,16,26,.55);
  border-radius: var(--radius);
  padding:14px;
  position: sticky;
  top: 92px;
  height: fit-content;
}
.sideLink{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 12px;
  border-radius:14px;
  color:rgba(234,243,255,.78);
}
.sideLink:hover{background:rgba(255,255,255,.06); color:rgba(234,243,255,.95)}
.sideLink.active{
  background: linear-gradient(135deg, rgba(57,215,255,.18), rgba(123,97,255,.14));
  border: 1px solid rgba(57,215,255,.22);
}
.content{
  border:1px solid rgba(255,255,255,.06);
  background: rgba(10,16,26,.45);
  border-radius: var(--radius);
  padding:16px;
}

@media (max-width: 980px){
  .heroGrid{grid-template-columns:1fr}
  .h1{font-size:48px}
  .shell{grid-template-columns:1fr}
  .sidebar{position:relative; top:auto}
  .navlinks{display:none}
}

/* ========= LAYOUT: revert to roomy "old" panel layout ========= */

/* Give the app space */
:root { --maxw: 1400px; }

/* Main page width */
main, .main, .content, .wrap, .page {
  max-width: var(--maxw) !important;
  margin: 0 auto !important;
  padding: 28px !important;
}

/* Hide the NEW left sidebar menu (keeps top nav only) */
.sidebar, .side-nav, .left-nav, #sidebar {
  display: none !important;
}

/* If you want the opposite (old sidebar only), tell me and we'll flip it */

/* Make the central area a proper 2-col grid again */
.grid, .layout, .columns, .dashboard {
  display: grid !important;
  grid-template-columns: 1.1fr 0.9fr !important;
  gap: 22px !important;
  align-items: start !important;
}

/* Stop cards from shrinking */
.card, .panelCard, .ticketCard, .macroCard {
  min-width: 0 !important;
}

/* Make form inputs not look cramped */
input, textarea, select {
  width: 100% !important;
}

/* Responsive: stack on mobile */
@media (max-width: 980px) {
  .grid, .layout, .columns, .dashboard {
    grid-template-columns: 1fr !important;
  }
}
/* ===== Old layout A structure (keep new colour system) ===== */

.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 26px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.2em;
  font-weight: 700;
}

.brandDot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(64,195,255,1), rgba(124,58,237,0.8));
  box-shadow: 0 0 18px rgba(64,195,255,0.35);
}

.topActions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill {
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}

.pill:hover { background: rgba(255,255,255,0.10); }

.pillOutline {
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
}

.heroRow {
  margin-top: 18px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.heroLeft {
  display: flex;
  align-items: center;
  gap: 14px;
}

.heroBadge {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: radial-gradient(circle at 30% 30%, rgba(64,195,255,0.9), rgba(124,58,237,0.75));
}

.heroTitle { font-size: 18px; font-weight: 800; }
.heroSub { opacity: 0.7; font-size: 13px; }

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(64,195,255,0.25);
  color: rgba(64,195,255,0.9);
  background: rgba(0,0,0,0.35);
}

.grid2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 18px;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.colorRow {
  display: grid;
  grid-template-columns: 1fr 56px;
  gap: 10px;
  align-items: center;
}

.btnRow {
  display: flex;
  gap: 10px;
  align-items: end;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .grid2 { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
}
/* ===== Form controls: force dark theme (fix white inputs) ===== */
input, textarea, select, button {
  font: inherit;
}

input, textarea, select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(10, 14, 20, 0.65);
  color: rgba(255,255,255,0.92);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}

textarea { resize: vertical; }

input::placeholder, textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

input:focus, textarea:focus, select:focus {
  border-color: rgba(64,195,255,0.35);
  box-shadow:
    0 0 0 4px rgba(64,195,255,0.10),
    inset 0 0 0 1px rgba(0,0,0,0.15);
}

select {
  appearance: none;
}

.btn {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
}

.btn:hover { background: rgba(255,255,255,0.10); }

.btnPrimary {
  border: none;
  background: radial-gradient(circle at 30% 20%, rgba(64,195,255,0.9), rgba(124,58,237,0.75));
  color: #061018;
}
/* ===== Live Preview (Discord-style) ===== */
.embedPreview{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(10,14,22,.65);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
}

.embedBar{
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, #7c3aed, #3b82f6);
}

.embedBody{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
}

.embedImgWrap{
  width: 100%;
  max-height: 240px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}

.embedImg{
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.embedText{
  display: grid;
  gap: 8px;
}

.embedHeader{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  opacity: .85;
  font-size: 12px;
}

.embedBrand{
  font-weight: 700;
  letter-spacing: .02em;
}

.embedMeta{
  opacity: .75;
}

.embedTitle{
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.embedDesc{
  font-size: 14px;
  opacity: .92;
  line-height: 1.35;
  white-space: pre-wrap;     /* keeps your line breaks */
  word-break: break-word;    /* avoids overflow */
}

.embedFooter{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  opacity: .75;
}

.embedBtn{
  margin-top: 4px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(59,130,246,.20);
  color: #eaf2ff;
  font-weight: 800;
}
.embedBtn:hover{
  background: rgba(59,130,246,.28);
}
