:root {
  --ink: #061326;
  --ink-soft: #0d2340;
  --panel: #102947;
  --cyan: #76e1ff;
  --blue: #2a7cff;
  --gold: #f9bf55;
  --white: #fff;
  --muted: #a8b9cd;
  --line: rgba(255, 255, 255, .12);
  --paper: #f2f6fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ink); }
body { min-height: 100vh; margin: 0; color: var(--white); background: radial-gradient(circle at 72% 8%, #123a61 0, transparent 30%), var(--ink); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 20; padding: 10px 14px; color: var(--ink); background: var(--cyan); border-radius: 8px; font-weight: 800; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 14px max(24px, calc((100vw - 1380px) / 2)); border-bottom: 1px solid var(--line); background: rgba(4, 15, 31, .88); backdrop-filter: blur(18px); }
.brand, .product-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; }
.brand img, .product-brand img { border-radius: 50%; filter: drop-shadow(0 0 12px rgba(118, 225, 255, .22)); }
.product-brand span { display: flex; flex-direction: column; line-height: 1.05; }
.product-brand small { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.account-slot { justify-self: end; display: flex; align-items: center; gap: 10px; }
.account-slot img { width: 34px; height: 34px; border-radius: 50%; background: var(--panel); }
.account-slot span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.text-button { padding: 8px; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.text-button:hover { color: var(--cyan); }
.hero-shell { min-height: calc(100vh - 154px); display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(56px, 8vw, 130px); width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 80px 0; }
.hero-copy { max-width: 650px; }
.eyebrow { margin: 0 0 14px; color: var(--cyan); font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.hero-copy h1 { margin: 0; font-size: clamp(3.5rem, 6.2vw, 6rem); line-height: .92; letter-spacing: -.075em; }
.lede { max-width: 610px; margin: 28px 0 32px; color: #c8d4e2; font-size: 19px; line-height: 1.65; }
.discord-button { width: fit-content; display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px; color: var(--white); background: #5865f2; border-radius: 999px; text-decoration: none; font-weight: 800; box-shadow: 0 18px 45px rgba(88, 101, 242, .28); transition: transform .2s ease; }
.discord-button:hover { transform: translateY(-2px); }
.discord-mark { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; }
.privacy-note { max-width: 500px; margin: 17px 0 0; color: #8298b1; font-size: 12px; }
.hero-art { min-height: 520px; position: relative; display: grid; place-items: center; isolation: isolate; }
.hero-art::before { content: ""; width: 430px; height: 430px; position: absolute; border: 1px solid rgba(118,225,255,.22); border-radius: 50%; box-shadow: 0 0 100px rgba(42,124,255,.18), inset 0 0 90px rgba(42,124,255,.09); }
.orb { width: 270px; height: 270px; display: grid; place-items: center; position: relative; z-index: 2; border: 1px solid rgba(118,225,255,.25); border-radius: 50%; background: radial-gradient(circle, #133e69, #07162b 68%); box-shadow: 0 30px 90px rgba(0,0,0,.46); }
.orb img { width: 220px; height: 220px; object-fit: contain; }
.status-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(8, 27, 50, .82); backdrop-filter: blur(12px); font-size: 12px; font-weight: 750; }
.status-card-one { top: 25%; right: 0; }
.status-card-two { bottom: 21%; left: 0; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #48e59a; box-shadow: 0 0 15px #48e59a; }
.wave { position: absolute; width: 520px; height: 190px; z-index: -1; border: 1px solid rgba(118,225,255,.13); border-radius: 50%; transform: rotate(-13deg); }
.wave-two { transform: rotate(17deg); }
.dashboard-shell { min-height: calc(100vh - 154px); display: grid; grid-template-columns: 320px minmax(0, 1fr); width: min(1450px, 100%); margin: 0 auto; }
.sidebar { min-height: calc(100vh - 154px); display: flex; flex-direction: column; gap: 28px; padding: 42px 26px; border-right: 1px solid var(--line); background: rgba(4, 15, 31, .58); }
.sidebar h2, .empty-state h2 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.muted, .empty-state p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.guild-list { display: flex; flex-direction: column; gap: 9px; }
.guild-button { width: 100%; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 10px; border: 1px solid transparent; border-radius: 13px; color: var(--white); background: transparent; cursor: pointer; text-align: left; }
.guild-button:hover, .guild-button.active { border-color: rgba(118,225,255,.25); background: rgba(118,225,255,.08); }
.guild-button img, .guild-fallback { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #254b75, #0c2039); font-weight: 850; }
.guild-button strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guild-button b { color: var(--cyan); }
.sidebar-note { margin-top: auto; display: flex; flex-direction: column; gap: 7px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; color: var(--muted); background: rgba(255,255,255,.035); font-size: 12px; line-height: 1.5; }
.sidebar-note strong { color: var(--white); font-size: 14px; }
.sidebar-note a { margin-top: 6px; color: var(--cyan); font-weight: 800; text-decoration: none; }
.workspace { min-width: 0; padding: 48px clamp(24px, 5vw, 78px) 70px; background: var(--paper); color: var(--ink); }
.empty-state { min-height: 620px; display: grid; place-items: center; align-content: center; text-align: center; }
.empty-state img { width: 150px; height: 150px; margin-bottom: 18px; object-fit: contain; filter: drop-shadow(0 18px 28px rgba(11,45,83,.2)); }
.empty-state p { margin-top: 8px; color: #68758a; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.guild-identity { display: flex; align-items: center; gap: 17px; }
.guild-identity h1 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.7rem); line-height: 1; letter-spacing: -.06em; }
.guild-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; color: var(--white); background: linear-gradient(135deg, #1a5585, #0a2545); background-position: center; background-size: cover; font-size: 24px; font-weight: 850; box-shadow: 0 14px 30px rgba(7,18,37,.14); }
.workspace .eyebrow { color: #1461c9; }
.plus-badge { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid #d5dfec; border-radius: 999px; color: #53657b; background: #fff; font-size: 12px; }
.plus-badge span { width: 9px; height: 9px; border-radius: 50%; background: #8da0b6; }
.plus-badge.active { color: #715012; border-color: #f0c562; background: #fff8e9; }
.plus-badge.active span { background: var(--gold); box-shadow: 0 0 12px #f9bf55; }
.plus-badge.ending { color: #9a4b18; border-color: #efb184; background: #fff4ec; }
.plus-badge.ending span { background: #ed8b4a; box-shadow: 0 0 12px rgba(237,139,74,.55); }
.plus-panel { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 20px; margin-bottom: 22px; padding: 24px; overflow: hidden; position: relative; border: 1px solid #cbdced; border-radius: 20px; background: linear-gradient(130deg, #eef6ff, #fff 64%); box-shadow: 0 15px 42px rgba(7,18,37,.05); }
.plus-panel::after { content: ""; width: 180px; height: 180px; position: absolute; right: -75px; top: -100px; border-radius: 50%; background: rgba(42,124,255,.08); pointer-events: none; }
.plus-panel.active { border-color: #edc66f; background: linear-gradient(130deg, #fff8e9, #fff 64%); }
.plus-panel.ending { border-color: #efb184; background: linear-gradient(130deg, #fff3ea, #fff 64%); }
.plus-mark { width: 52px; height: 52px; display: grid; place-items: center; position: relative; z-index: 1; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #1671dc, #0b3f7d); font-size: 30px; font-weight: 850; box-shadow: 0 12px 24px rgba(22,113,220,.22); }
.plus-panel.active .plus-mark { color: #4d3408; background: linear-gradient(135deg, #ffd97d, #f3aa26); box-shadow: 0 12px 24px rgba(243,170,38,.24); }
.plus-panel.ending .plus-mark { color: #fff; background: linear-gradient(135deg, #f39b5c, #c86027); }
.plus-copy { position: relative; z-index: 1; }
.plus-copy .eyebrow { margin-bottom: 6px; }
.plus-copy h2 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.plus-copy > p:not(.eyebrow) { margin: 6px 0 0; color: #5e6f84; font-size: 13px; line-height: 1.5; }
.plus-copy .plus-period { color: #7b5411; font-weight: 800; }
.plus-copy .plus-path { font-size: 12px; }
.plus-actions { min-width: 190px; display: flex; position: relative; z-index: 1; flex-direction: column; align-items: stretch; gap: 8px; }
.plus-primary, .plus-help { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 10px 15px; border-radius: 999px; text-align: center; text-decoration: none; font-size: 12px; font-weight: 850; }
.plus-primary { color: #fff; background: #1671dc; box-shadow: 0 10px 24px rgba(22,113,220,.2); }
.plus-panel.active .plus-primary { color: #382402; background: #f7b934; box-shadow: 0 10px 24px rgba(247,185,52,.22); }
.plus-panel.ending .plus-primary { color: #fff; background: #ca642d; box-shadow: 0 10px 24px rgba(202,100,45,.2); }
.plus-help { color: #3c5878; background: transparent; }
.plus-primary:hover, .plus-help:hover { transform: translateY(-1px); }
.notice { margin-bottom: 22px; padding: 13px 16px; border: 1px solid #9bdcb9; border-radius: 12px; color: #14623a; background: #edfff5; font-size: 14px; font-weight: 700; }
.notice.error { color: #8f2933; border-color: #f1a2aa; background: #fff1f2; }
.settings-section { margin-bottom: 20px; padding: 28px; border: 1px solid #dce4ed; border-radius: 20px; background: #fff; box-shadow: 0 15px 42px rgba(7,18,37,.05); }
.section-heading { display: grid; grid-template-columns: 36px 1fr; gap: 12px; margin-bottom: 25px; }
.section-number { padding-top: 5px; color: #1461c9; font-size: 11px; font-weight: 850; }
.section-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.section-heading p { margin: 4px 0 0; color: #68758a; font-size: 14px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.field-grid label { display: flex; flex-direction: column; gap: 7px; color: #2d3c51; font-size: 13px; font-weight: 800; }
.field-grid select, .field-grid input, .field-grid textarea { width: 100%; border: 1px solid #cdd8e5; border-radius: 11px; color: var(--ink); background: #fbfcfe; padding: 12px 13px; outline: none; }
.field-grid select:focus, .field-grid input:focus, .field-grid textarea:focus { border-color: #2a7cff; box-shadow: 0 0 0 3px rgba(42,124,255,.12); }
.field-grid textarea { resize: vertical; line-height: 1.5; }
.field-grid small { color: #77869a; font-weight: 500; }
.field-wide { grid-column: 1 / -1; }
.toggle-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.toggle-card { min-height: 116px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 17px; border: 1px solid #dce4ed; border-radius: 14px; cursor: pointer; }
.toggle-card span { display: flex; flex-direction: column; gap: 5px; }
.toggle-card strong { font-size: 14px; }
.toggle-card small { color: #68758a; font-size: 12px; line-height: 1.45; }
.toggle-card input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-card i { width: 43px; height: 25px; position: relative; border-radius: 999px; background: #c9d3df; transition: background .2s ease; }
.toggle-card i::after { content: ""; width: 19px; height: 19px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: transform .2s ease; }
.toggle-card input:checked + i { background: #1671dc; }
.toggle-card input:checked + i::after { transform: translateX(18px); }
.toggle-card:focus-within { border-color: #2a7cff; box-shadow: 0 0 0 3px rgba(42,124,255,.12); }
.save-bar { position: sticky; bottom: 15px; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 17px 20px; border: 1px solid rgba(118,225,255,.3); border-radius: 16px; color: var(--white); background: rgba(6,19,38,.94); box-shadow: 0 18px 40px rgba(7,18,37,.25); backdrop-filter: blur(14px); }
.save-bar div { display: flex; flex-direction: column; }
.save-bar span { color: var(--muted); font-size: 12px; }
.save-button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; color: #062142; background: var(--cyan); font-weight: 850; cursor: pointer; }
.save-button:disabled { opacity: .55; cursor: wait; }
footer { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 18px max(24px, calc((100vw - 1380px) / 2)); color: #8497ad; background: #030b16; font-size: 12px; }
footer nav { display: flex; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--cyan); }
[hidden] { display: none !important; }
@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .product-brand { display: none; }
  .dashboard-shell { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .guild-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sidebar-note { display: none; }
  .toggle-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-header { min-height: 72px; padding: 10px 17px; }
  .brand span, .account-slot span { display: none; }
  .hero-shell { min-height: auto; grid-template-columns: 1fr; width: min(100% - 34px, 650px); padding: 62px 0; }
  .hero-copy h1 { font-size: clamp(3.1rem, 15vw, 4.7rem); }
  .hero-art { min-height: 380px; }
  .hero-art::before { width: 320px; height: 320px; }
  .orb { width: 210px; height: 210px; }
  .orb img { width: 175px; height: 175px; }
  .wave { width: 350px; }
  .status-card-one { right: 2px; }
  .status-card-two { left: 2px; }
  .sidebar { padding: 30px 17px; }
  .guild-list { grid-template-columns: 1fr; }
  .workspace { padding: 34px 17px 55px; }
  .workspace-heading { align-items: flex-start; flex-direction: column; }
  .plus-panel { grid-template-columns: auto 1fr; align-items: start; padding: 20px 17px; }
  .plus-actions { min-width: 0; grid-column: 1 / -1; width: 100%; }
  .guild-identity h1 { font-size: 2.3rem; }
  .settings-section { padding: 21px 17px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .save-bar { align-items: stretch; flex-direction: column; }
  .save-button { width: 100%; }
  footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
