/* FFXIV day toggles */
.days-grid{display:flex;flex-wrap:wrap;gap:8px;}
.day-toggle{border:1px solid rgba(255,255,255,0.18);background:rgba(255,255,255,0.06);color:inherit;border-radius:999px;padding:6px 10px;font-size:12px;cursor:pointer;}
.day-toggle.on{background:rgba(88,101,242,0.35);border-color:rgba(88,101,242,0.8);}
.day-toggle:focus{outline:2px solid rgba(88,101,242,0.6);outline-offset:2px;}

.job-wrap{display:flex;align-items:center;gap:8px;}
.job-icon{width:20px;height:20px;border-radius:4px;object-fit:contain;}
.job-icon.placeholder{display:inline-block;background:rgba(255,255,255,0.08);}
:root{
  --bg:#1f1f1f;
  --panel:#2a2f34;
  --panel2:#24282c;
  --text:#f2f2f2;
  --muted:#aab3bb;
  --accent:#f2b84b;
  --chart-line:#e9f0ff;
  --chart-fill:rgba(157,178,255,.18);
  --chart-grid:rgba(255,255,255,.10);
  --chart-text:rgba(242,242,242,.78);
  --chart-muted:rgba(242,242,242,.55);
  --tab-bg:rgba(255,255,255,.06);
  --tab-bg2:rgba(255,255,255,.10);
  --tab-border:rgba(255,255,255,.14);
  --link:#9db2ff;
  --shadow: 0 8px 24px rgba(0,0,0,.35);
  --radius: 10px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

.hidden{display:none !important}

.nav{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 22px;
  background:rgba(31,31,31,.92);
  backdrop-filter: blur(10px);
}

.nav-hamburger{
  display:none;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff;
  border-radius:12px;
  padding:8px 10px;
  font-size:18px;
  line-height:1;
  cursor:pointer;
}

.nav-left{
  display:flex;
  gap:18px;
  align-items:center;
}

/* Mobile-only hamburger nav */
@media (max-width: 820px){
  .nav{position:sticky}
  .nav-hamburger{display:inline-flex}
  .nav-left{
    display:none;
    position:absolute;
    top:64px;
    left:12px;
    right:12px;
    padding:12px;
    background:rgba(20,20,20,.95);
    border:1px solid rgba(255,255,255,.10);
    border-radius:16px;
    gap:12px;
    flex-wrap:wrap;
    z-index:50;
  }
  body.nav-open .nav-left{display:flex}
}

.nav-link{
  color:var(--link);
  text-decoration:none;
  font-weight:500;
}
.nav-link:hover{opacity:.85}

.nav-right{
  display:flex;
  align-items:center;
  gap:16px;
}

.guilds{
  display:flex;
  gap:10px;
  align-items:center;
}

.round-icon{
  width:34px;
  height:34px;
  border-radius:999px;
  object-fit:cover;
  border:2px solid rgba(255,255,255,.08);
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease;
}
.round-icon:hover{transform: translateY(-1px); border-color: rgba(255,255,255,.25)}
.round-icon.active{border-color: var(--accent)}

.avatar{
  width:36px;
  height:36px;
  border-radius:999px;
  object-fit:cover;
  border:2px solid rgba(255,255,255,.12);
}

.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:36px 22px 64px;
}

.hero{
  display:flex;
  gap:18px;
  align-items:center;
  margin: 18px 0 28px;
}

.hero-logo{
  width:70px;
  height:70px;
  border-radius:10px;
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}

.hero h1{
  font-size:64px;
  line-height:1;
  margin:0;
  letter-spacing:.5px;
}
.hero p{
  margin:10px 0 0;
  color:var(--muted);
}

.server-header{
  display:flex;
  align-items:center;
  gap:14px;
  margin: 22px 0 18px;
}
.server-icon{
  width:54px;
  height:54px;
  border-radius:12px;
  object-fit:cover;
  border:2px solid rgba(255,255,255,.10);
}
.server-header h2{
  margin:0;
  font-size:34px;
}

.card-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:22px;
  margin-top: 12px;
}

.card{
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:22px;
  min-height:145px;
  border:1px solid rgba(255,255,255,.06);
  position:relative;

  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, opacity .12s ease;
}
.card:hover{transform: translateY(-2px); border-color: rgba(255,255,255,.12);}
.card:active{transform: translateY(-1px);}

.card-title{
  font-size:28px;
  margin:0 0 6px;
}
.card-tier{
  font-weight:700;
  font-size:14px;
  color: var(--accent);
  margin-bottom: 10px;
}
.card-tier.standard{color:#7fb3ff}
.card-desc{
  color:var(--muted);
  margin:0;
  line-height:1.35;
}

.card-icon{
  position:absolute;
  right:18px;
  top:18px;
  font-size:26px;
  opacity:.9;
}

/* Module SVG icons (local assets) */
.card-icon .module-svg{
  width:26px;
  height:26px;
  display:inline-block;
  opacity:.95;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.35));
}

.hint-box{
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding:18px 18px;
  max-width: 520px;
}

/* ✅ Modal */
.modal-backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  display:flex;
  justify-content:center;
  /* For tall modals: start at top and allow scrolling when content exceeds viewport */
  align-items:flex-start;
  padding:24px;
  z-index:50;
  overflow-y:auto;
}

.modal{
  width: min(1200px, 100%);
background: linear-gradient(180deg, var(--panel), var(--panel2));
  border:1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow:hidden;
  /* Make the modal itself fit within the viewport */
  max-height: calc(100vh - 48px);
  display:flex;
  flex-direction:column;
  margin: 0 auto;
}

.modal-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding:18px 18px 12px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.modal-title{
  font-size:22px;
  font-weight:800;
}
.modal-sub{
  color: var(--muted);
  margin-top:6px;
  font-size:14px;
}

.modal-close{
  border:none;
  background: transparent;
  color: rgba(255,255,255,.8);
  font-size:20px;
  cursor:pointer;
}

.modal-body{
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
  /* Scroll long content inside the modal */
  overflow:auto;
  flex: 1 1 auto;
  min-height: 0;
}

.modal-actions{
  padding:14px 18px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  border-top:1px solid rgba(255,255,255,.06);
}

.modal-status{
  color: var(--muted);
  font-size:14px;
}

.btn{
  background: var(--accent);
  color:#1a1a1a;
  border:none;
  padding:10px 14px;
  border-radius:10px;
  font-weight:800;
  cursor:pointer;
}

.setting-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px 12px;
  border:1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
}

.setting-left{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.setting-name{
  font-weight:800;
}
.setting-help{
  color: var(--muted);
  font-size:13px;
}

.input{
  width:160px;
  padding:10px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  color: var(--text);
}

.select{
  width:260px;
  padding:10px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  color: var(--text);
}

.textarea{
  width:360px;
  padding:10px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  color: var(--text);
  resize: vertical;
  min-height: 84px;
}

.subsettings{
  margin-left: 12px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* message tooltip */
.msg-wrap{
  display:flex;
  align-items:flex-start;
  gap:10px;
}

.qmark{
  width:22px;
  height:22px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  cursor:help;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  position:relative;
  user-select:none;
}

.qmark:hover::after{
  content: attr(data-tip);
  position:absolute;
  right: 0;
  top: 30px;
  width: 280px;
  padding:10px 10px;
  border-radius:10px;
  background: rgba(0,0,0,.92);
  border:1px solid rgba(255,255,255,.10);
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  box-shadow: var(--shadow);
  z-index: 80;
}

/* Toggle switch */
.switch{
  position:relative;
  width:54px;
  height:30px;
  display:inline-block;
}
.switch input{
  display:none;
}
.slider{
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.12);
  border-radius:999px;
  transition:.15s ease;
  border:1px solid rgba(255,255,255,.12);
}
.slider:before{
  content:"";
  position:absolute;
  width:24px;
  height:24px;
  left:3px;
  top:2px;
  border-radius:999px;
  background:#fff;
  transition:.15s ease;
}
.switch input:checked + .slider{
  background: rgba(242,184,75,.35);
  border-color: rgba(242,184,75,.55);
}
.switch input:checked + .slider:before{
  transform: translateX(24px);
}

@media (max-width: 1000px){
  .card-grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
  .hero h1{font-size:48px;}
}
@media (max-width: 640px){
  .card-grid{grid-template-columns: 1fr;}
  .hero{flex-direction:column; align-items:flex-start}
  .hero h1{font-size:42px;}
}


/* ---------------------------
   Embed Creator styles
---------------------------- */
.tabs{
  display:flex;
  gap:10px;
  margin-bottom:14px;
}
.tab{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding:8px 12px;
  border-radius: 999px;
  cursor:pointer;
}
.tab.active{
  border-color: rgba(242,184,75,.55);
  box-shadow: 0 0 0 2px rgba(242,184,75,.08);
}

.embed-builder-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
gap:16px;
}

.embed-builder-left{
  background: var(--panel2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding:14px;
}

.embed-builder-right{
  background: var(--panel2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding:14px;
  position: sticky;
  top: 16px;
  align-self: start;
}

.preview-title{
  font-weight: 650;
  margin-bottom: 10px;
}

.setting-row.wide{
  grid-template-columns: 260px 1fr;
}

.setting-right{
  width: 100%;
}

.section-title{
  font-weight: 700;
  margin: 8px 0 10px;
  color: rgba(255,255,255,.92);
}

.divider{
  height:1px;
  background: rgba(255,255,255,.08);
  margin: 14px 0;
}

.mini-label{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.btn.small{
  padding: 7px 10px;
  font-size: 13px;
  border-radius: 10px;
}
.btn.danger{
  border-color: rgba(255,120,120,.35);
}

.field-card{
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}


/* ---------------------------
   TDL (Private task board)
---------------------------- */
.tdl-actions{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tdl-board{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  margin-top: 12px;
}

@media (max-width: 820px){
  .tdl-board{grid-template-columns: 1fr;}
}

.tdl-user-box{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 12px;
}

.tdl-user-box-title{
  font-weight: 750;
  margin-bottom: 10px;
  color: rgba(255,255,255,.92);
}

.tdl-task-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.tdl-task{
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap:10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.15);
}

.tdl-task.done .tdl-task-text{
  text-decoration: line-through;
  opacity: .75;
}

.tdl-task-left{
  display:flex;
  align-items:center;
  gap:8px;
}

.tdl-bullet{
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}

.tdl-check{
  width: 18px;
  height: 18px;
}

.tdl-task-actions{
  display:flex;
  gap:8px;
}

.btn.btn-sm{
  padding: 7px 10px;
  font-size: 13px;
  border-radius: 10px;
}
.field-grid{
  display:grid;
  grid-template-columns: 1fr 1.4fr 160px;
  gap: 10px;
  align-items: start;
}
.field-actions{
  display:flex;
  flex-direction:column;
  gap: 10px;
  align-items: stretch;
}
.inline-check{
  display:flex;
  gap:8px;
  align-items:center;
  color: var(--muted);
  font-size: 13px;
}

.embed-preview{
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 12px;
  width: 100%;
  max-width: 680px;
}

.embed-content{
  margin-bottom: 10px;
  color: rgba(255,255,255,.92);
  white-space: normal;
  line-height: 1.35;
}

.embed-card{
  position: relative;
  display:flex;
  gap: 12px;
  background: #2b2d31;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);

  width: 100%;
}

.embed-color{
  width: 4px;
  background: #5865f2;
}

.embed-main{
  padding: 10px 10px 12px;
  flex: 1;
  min-width: 0;
}

.embed-thumb{
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin: 10px 10px 0 0;
  border-radius: 10px;
}

.embed-author{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom: 6px;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  font-weight: 600;
}
.embed-author-icon{
  width: 20px;
  height: 20px;
  border-radius: 999px;
  object-fit: cover;
}

.embed-title{
  display:block;
  font-weight: 750;
  color: #00a8fc;
  text-decoration: none;
  margin-bottom: 6px;
  word-break: break-word;
}
.embed-title:hover{ text-decoration: underline; }

.embed-desc{
  color: rgba(255,255,255,.86);
  line-height: 1.35;
  margin-bottom: 10px;
  word-break: break-word;
}

.embed-fields{
  display:grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.embed-field.inline{
  grid-column: span 1;
}
.embed-field{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 8px;
}
.embed-field-name{
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}
.embed-field-value{
  color: rgba(255,255,255,.86);
  font-size: 13px;
  line-height: 1.35;
}

.embed-image{
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,.06);
}

.embed-footer{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top: 10px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
}
.embed-footer-icon{
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
}

.json-wrap{
  background: var(--panel2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 12px;
}
textarea.json{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12.5px;
}
.json-actions{
  display:flex;
  gap:10px;
  margin-top: 10px;
}

@media (max-width: 980px){
  .embed-builder-grid{ grid-template-columns: 1fr; }
  .embed-builder-right{ position: static; }
  .field-grid{ grid-template-columns: 1fr; }
  .setting-row.wide{ grid-template-columns: 1fr; }
}



/* ---------------------------
   Prettier Home Hero
---------------------------- */
.hero{display:flex; flex-direction:column; gap:14px;}
.hero-banner{
  position:relative;
  border: 1px solid rgba(255,255,255,.10);
  border-radius:16px;
  overflow:hidden;
  box-shadow: var(--shadow);
  background: radial-gradient(circle at 50% 20%, rgba(255,255,255,.08), rgba(255,255,255,0) 55%), linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,0));
  min-height: 220px;
}
.hero-banner-img{
  width:100%;
  height: 240px;
  object-fit: cover;
  display:block;
  filter: saturate(1.06) contrast(1.05);
}
.hero-banner-overlay{
  position:absolute; inset:0;
  background: radial-gradient(circle at 50% 35%, rgba(0,0,0,.15), rgba(0,0,0,.70));
}
.hero-center{
  position:absolute; inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}
.hero-avatar-frame{
  width: 132px;
  height: 132px;
  border-radius:999px;
  padding: 6px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  box-shadow: 0 14px 42px rgba(0,0,0,.45);
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-avatar{
  width: 120px;
  height: 120px;
  border-radius:999px;
  object-fit: cover;
  background: rgba(0,0,0,.2);
}
.hero-text{display:flex; flex-direction:column; gap:6px;}
.hero-text h1{margin:0; font-size: 34px; letter-spacing: .2px;}
.hero-text p{margin:0; color: var(--muted);}

/* Policy pages (Privacy / Terms) */
.policy{
  max-width: 920px;
  margin: 18px auto 0;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
}

.policy h2{margin:0 0 6px;}
.policy h3{margin:18px 0 8px;}
.policy p{line-height: 1.55;}
.policy ul{margin: 8px 0 8px 20px;}
.policy .muted{opacity:0.8; font-size:0.95rem;}

/* ---------------------------
   Insights chart tabs
---------------------------- */
.chart-tabs{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
  margin-top:8px;
}
.chart-tab{
  border:1px solid var(--tab-border);
  background: var(--tab-bg);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor:pointer;
  user-select:none;
}
.chart-tab:hover{background: var(--tab-bg2);}
.chart-tab.active{
  background: rgba(157,178,255,.18);
  border-color: rgba(157,178,255,.35);
}
.chart-wrap{
  margin-top:10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
}

.hero-banner{min-height:240px;width:100%;display:block;}
.hero-banner--nobanner{background: radial-gradient(circle at 50% 15%, rgba(255,255,255,.10), rgba(255,255,255,0) 60%), radial-gradient(circle at 20% 80%, rgba(157,178,255,.10), rgba(0,0,0,0) 55%), linear-gradient(180deg, rgba(255,255,255,.07), rgba(0,0,0,0));}
.hero-center{z-index:2;}
.hero-avatar-frame{z-index:3;}


/* ---------- FFXIV Status Page ---------- */
.status-dot{
  display:inline-block;
  width:10px;height:10px;
  border-radius:50%;
  margin-right:8px;
  box-shadow:0 0 0 2px rgba(255,255,255,0.08);
}
.dot-up{ background:#2ecc71; }
.dot-down{ background:#e74c3c; }
.dot-degraded{ background:#f1c40f; }

.region-block{ margin-top:18px; }
.dc-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:12px;
  margin-top:10px;
}
.dc-card{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 12px;
}
.dc-head{ display:flex; flex-direction:column; gap:6px; margin-bottom:10px; }
.dc-title{ display:flex; align-items:center; font-weight:700; }
.dc-meta{ font-size:12px; opacity:0.8; }
.dc-worlds{ display:grid; grid-template-columns:1fr 1fr; gap:6px 10px; }
.world-row{ display:flex; align-items:center; font-size:13px; opacity:0.95; }
.world-name{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width:520px){
  .dc-worlds{ grid-template-columns:1fr; }
}
