/* Phoenix-Craft shared theme (FFXI) — extracted from the original layout */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #c8a84b;
  --gold-light: #e8cc80;
  --gold-dark: #8a6f2e;
  --ice: #7ab3cc;
  --bg: #0d0e12;
  --bg-panel: #13151c;
  --bg-panel2: #1a1d26;
  --border: #2e3140;
  --text: #c9cdd8;
  --text-dim: #787d90;
  --online: #4caf72;
  --red: #c84848;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

/* ── TOPBAR ── */
.topbar {
  background: #080a0f;
  border-bottom: 1px solid var(--border);
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
}
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--online);
  margin-right: 5px;
  box-shadow: 0 0 5px var(--online);
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0e12;
}
.hero-content { position: relative; text-align: center; }
.hero-title {
  font-family: 'Cinzel', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(200,168,75,0.5), 0 2px 4px rgba(0,0,0,0.8);
  letter-spacing: 3px;
  line-height: 1;
}
.hero-title span { color: var(--ice); }
.hero-sub {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.main-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}

/* ── PANELS ── */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold-dark);
  margin-bottom: 16px;
}
.panel-header {
  padding: 10px 14px;
  background: var(--bg-panel2);
  border-bottom: 1px solid var(--border);
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-header .count {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0;
}
.panel-body { padding: 16px 14px; }

/* ── WELCOME ── */
.welcome-title {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
}
.welcome-title em { color: var(--gold); font-style: normal; }
.welcome-desc {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
  font-size: 13px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 9px 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--gold-dark);
  background: linear-gradient(180deg, #2a2010 0%, #1a1408 100%);
  color: var(--gold);
  cursor: pointer;
  transition: all 0.2s;
}
.btn:hover {
  background: linear-gradient(180deg, #3a2e14 0%, #2a2010 100%);
  border-color: var(--gold);
  color: var(--gold-light);
}
.btn-sm { padding: 5px 14px; font-size: 11px; }
.btn-ice {
  border-color: #3a6a80;
  background: linear-gradient(180deg, #0e2030 0%, #091520 100%);
  color: var(--ice);
}
.btn-ice:hover {
  border-color: var(--ice);
  color: #aadff5;
  background: linear-gradient(180deg, #162840 0%, #0e2030 100%);
}

/* ── SECTION BLOCKS ── */
.section-block {
  border-left: 2px solid var(--gold-dark);
  padding-left: 12px;
  margin-bottom: 20px;
}
.section-block h3 {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 6px;
}
.section-block p {
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* ── NOTICE ── */
.notice {
  border-left: 3px solid #e8a020;
  background: rgba(200,160,48,0.08);
  border: 1px solid rgba(200,160,48,0.3);
  border-left: 3px solid #e8a020;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 13px;
}
.notice-title {
  font-weight: 700;
  color: #e8a020;
  margin-bottom: 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.notice p { color: var(--text); margin: 2px 0; }
.notice small { color: var(--text-dim); font-size: 11px; }

/* ── RATES GRID ── */
.rates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rate-item {
  background: var(--bg-panel2);
  border: 1px solid var(--border);
  padding: 8px 10px;
}
.rate-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.rate-value { font-size: 18px; font-weight: 700; color: var(--gold); font-family: 'Cinzel', serif; }

/* ── DATA TABLE ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table thead tr { background: var(--bg-panel2); }
.data-table th {
  padding: 7px 10px;
  text-align: left;
  color: var(--gold);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.data-table td { padding: 6px 10px; border-bottom: 1px solid var(--border); color: var(--text); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── STEP LIST (Getting Started) ── */
.steps { list-style: none; counter-reset: step; }
.steps > li {
  position: relative;
  padding: 0 0 18px 46px;
  margin-bottom: 4px;
  border-left: 1px solid var(--border);
  margin-left: 16px;
}
.steps > li:last-child { border-left: 1px solid transparent; padding-bottom: 0; }
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -16px; top: -2px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1a1408;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 10px rgba(200,168,75,0.3);
}
.steps > li h3 {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.steps > li p { color: var(--text); line-height: 1.7; margin-bottom: 8px; font-size: 13px; }
.steps > li ul { margin: 6px 0 8px 18px; color: var(--text); font-size: 13px; line-height: 1.7; }

/* at-a-glance flow chips */
.flow { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:4px 0 0; }
.flow .chip { background:var(--bg-panel2); border:1px solid var(--border); border-left:2px solid var(--gold-dark); padding:5px 10px; font-size:12px; color:var(--gold-light); white-space:nowrap; }
.flow .arrow { color:var(--text-dim); font-size:13px; }

/* checklist / "what you need" */
.ynlist { list-style:none; margin:4px 0; }
.ynlist li { padding:5px 0 5px 24px; position:relative; font-size:13px; line-height:1.5; color:var(--text); }
.ynlist li::before { content:'\2713'; position:absolute; left:2px; top:5px; color:var(--gold); font-weight:700; }

/* phase panel header number badge */
.panel-header .stepnum {
  display:inline-flex; align-items:center; justify-content:center;
  width:20px; height:20px; border-radius:50%; margin-right:8px;
  background:linear-gradient(135deg,var(--gold-dark),var(--gold)); color:#1a1408;
  font-family:'Open Sans',sans-serif; font-size:12px; font-weight:700;
}

/* screenshot slots (replace .shot-ph with <img class="shot"> when you have an image) */
.shot { display:block; max-width:100%; height:auto; border:1px solid var(--border); margin:10px 0; }
.shot-ph {
  display:flex; align-items:center; justify-content:center; min-height:72px;
  background:var(--bg-panel2); border:1px dashed var(--gold-dark);
  color:var(--text-dim); font-size:12px; text-align:center; padding:14px; margin:10px 0;
}

/* help button + modal popup */
.help-btn {
  display:inline-flex; align-items:center; gap:6px; cursor:pointer;
  background:linear-gradient(180deg,#0e2030,#091520); border:1px solid #3a6a80; color:var(--ice);
  font-family:'Open Sans',sans-serif; font-size:11px; font-weight:600; letter-spacing:0.3px;
  padding:5px 12px; border-radius:3px; transition:all 0.15s;
}
.help-btn:hover { border-color:var(--ice); color:#aadff5; background:linear-gradient(180deg,#162840,#0e2030); }
.help-btn .qmark {
  display:inline-flex; align-items:center; justify-content:center; width:15px; height:15px;
  border-radius:50%; background:var(--ice); color:#091520; font-size:11px; font-weight:700;
}
.modal-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,0.72); z-index:10000;
  display:none; align-items:flex-start; justify-content:center; padding:40px 16px; overflow:auto;
}
.modal-overlay.open { display:flex; }
.modal {
  background:var(--bg-panel); border:1px solid var(--border); border-top:2px solid var(--gold);
  max-width:560px; width:100%; box-shadow:0 10px 40px rgba(0,0,0,0.6);
}
.modal-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px; background:var(--bg-panel2); border-bottom:1px solid var(--border);
  font-family:'Cinzel',serif; font-size:14px; color:var(--gold); letter-spacing:0.5px;
}
.modal-close { cursor:pointer; color:var(--text-dim); font-size:22px; line-height:1; background:none; border:none; padding:0 4px; }
.modal-close:hover { color:var(--gold-light); }
.modal-body { padding:16px; font-size:13px; line-height:1.7; color:var(--text); }
.modal-body h4 { font-family:'Cinzel',serif; color:var(--gold-light); font-size:13px; margin:12px 0 6px; }
.modal-body ol, .modal-body ul { margin:6px 0 10px 20px; }
.modal-body li { margin-bottom:5px; }

/* tip callout (lighter than .notice) */
.tip { border-left:2px solid var(--ice); background:rgba(122,179,204,0.06); padding:8px 12px; margin:10px 0; font-size:12.5px; color:var(--text); }
.tip strong { color:var(--ice); }

/* ── PLAYER LISTINGS ── */
.nation-badge {
  display:inline-flex; align-items:center; justify-content:center;
  width:22px; height:22px; border-radius:3px; font-size:11px; font-weight:700;
  color:#fff; flex-shrink:0; font-family:'Cinzel',serif;
}
.nation-badge.n0 { background:#9b2d2d; }  /* San d'Oria */
.nation-badge.n1 { background:#8a6f2e; }  /* Bastok */
.nation-badge.n2 { background:#3f7d4a; }  /* Windurst */
.nation-flag {
  height:18px; width:auto; vertical-align:middle; flex-shrink:0;
  border:1px solid var(--border); border-radius:2px; display:inline-block;
}
.flag-rank { font-size:11px; color:var(--gold); font-weight:700; margin-left:3px; vertical-align:middle; }
.gm-icon { height:16px; width:auto; vertical-align:middle; margin-left:5px; }
.rank-pill { font-size:11px; color:var(--gold); white-space:nowrap; }
/* players table (index + players page) */
.players-table { width:100%; border-collapse:collapse; font-size:12px; }
.players-table thead tr { border-bottom:1px solid var(--border); }
.players-table th { padding:7px 10px; color:var(--text-dim); font-weight:600; font-size:10px; text-transform:uppercase; letter-spacing:.06em; text-align:left; white-space:nowrap; }
.players-table tbody tr { border-bottom:1px solid rgba(255,255,255,.04); }
.players-table tbody tr:last-child { border-bottom:none; }
.players-table tbody tr:hover { background:rgba(255,255,255,.03); }
.players-table td { padding:8px 10px; vertical-align:middle; }
.pl-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--online); box-shadow:0 0 4px var(--online); flex-shrink:0; }
.pl-dot.off { background:var(--text-dim); box-shadow:none; }
.pl-name { color:var(--gold-light); font-weight:600; white-space:nowrap; }
.pl-link { color:var(--gold-light); text-decoration:none; }
.pl-link:hover { color:#fff; text-decoration:underline; }
.pl-nation { white-space:nowrap; }
.pl-job  { color:var(--text); font-family:'Consolas','Courier New',monospace; font-size:11px; white-space:nowrap; }
.pl-zone { color:var(--text-dim); font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:160px; }
.pl-empty { color:var(--text-dim); text-align:center; padding:16px; }
.pl-view-all { display:block; text-align:center; padding:10px 0 8px; border-top:1px solid var(--border); font-size:12px; color:var(--gold); }
.search-box {
  width:100%; padding:8px 11px; font-size:13px; margin-bottom:12px;
  background:#0b0d13; border:1px solid var(--border); color:var(--text);
}
.search-box:focus { outline:none; border-color:var(--gold-dark); }
.filter-tabs { display:flex; gap:6px; margin-bottom:12px; }
.filter-tab { cursor:pointer; padding:5px 14px; font-size:12px; border:1px solid var(--border); background:var(--bg-panel2); color:var(--text-dim); }
.filter-tab.active { border-color:var(--gold-dark); color:var(--gold); }

/* compact ordered list (troubleshooting options) */
.olist { margin: 6px 0 10px 20px; color: var(--text); font-size: 13px; line-height: 1.7; }
.olist li { margin-bottom: 5px; }
.olist code { font-size: 12px; }

/* inline code / connection box */
code, .mono {
  font-family: 'Consolas', 'Courier New', monospace;
  background: #0b0d13;
  border: 1px solid var(--border);
  color: var(--ice);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12.5px;
}
.codeblock {
  display: block;
  background: #0b0d13;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold-dark);
  color: var(--ice);
  padding: 10px 12px;
  margin: 8px 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── FOOTER ── */
footer {
  background: #080a0f;
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 20px;
}
footer a { color: var(--text-dim); margin: 0 8px; }
footer a:hover { color: var(--gold); }

/* ── MOBILE ── */
@media (max-width: 800px) {
  .main-grid { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  .main-grid > div:first-child { display: contents; }
  .main-grid > div:last-child { display: contents; }
  .main-grid > div:first-child > * { width: 100%; }
  .main-grid > div:last-child > * { width: 100%; }
  .main-grid > div:first-child > .panel:first-child { order: -2; }
  .main-grid > div:last-child > .panel { order: -1; }
  .two-col { grid-template-columns: 1fr; }
  .hero { height: 180px; }
  .hero-title { font-size: 28px; letter-spacing: 1px; }
  .hero-sub { font-size: 11px; letter-spacing: 1px; }
  .rates-grid { grid-template-columns: 1fr 1fr; }
  .welcome-title { font-size: 20px; }
}
@media (max-width: 1200px) {
  .topbar { flex-wrap: wrap; justify-content: center; gap: 2px; text-align: center; padding: 6px 12px; }
  footer a { margin: 0 4px; font-size: 11px; }
}
@media (max-width: 480px) {
  .hero { height: 140px; }
  .hero-title { font-size: 24px; }
  .rates-grid { grid-template-columns: 1fr; }
  .data-table th, .data-table td { padding: 5px 6px; font-size: 11px; }
}
