:root {
  --bg: #202124;
  --panel: #2b2c2f;
  --panel-soft: #34363a;
  --text: #f1f3f4;
  --muted: #bdc1c6;
  --accent: #8ab4f8;
  --danger: #ff6b6b;
  --success: #7ee787;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; font-family: Arial, Helvetica, sans-serif;
  background: radial-gradient(circle at top left, rgba(138, 180, 248, 0.16), transparent 28%), radial-gradient(circle at top right, rgba(126, 231, 135, 0.09), transparent 24%), var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.app { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 34px 0 60px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 312px; max-width: 68vw; height: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.nav a { color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 8px 12px; font-size: 13px; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.hero { text-align: center; margin-bottom: 32px; }
.hero h1 { margin: 0 0 10px; font-size: clamp(42px, 7vw, 78px); line-height: 1; letter-spacing: -3px; font-weight: 700; }
.hero p { margin: 0 0 18px; color: var(--muted); }
.search-box { width: min(720px, 100%); margin: 0 auto; display: flex; align-items: center; gap: 12px; background: #f1f3f4; color: #202124; border-radius: 999px; padding: 0 18px; min-height: 52px; box-shadow: 0 10px 30px rgba(0,0,0,0.22); }
.search-box span { color: #5f6368; font-size: 20px; }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; height: 48px; color: #202124; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 30px; }
.btn { border: 1px solid var(--border); color: var(--text); background: var(--panel-soft); padding: 10px 15px; border-radius: 999px; cursor: pointer; transition: transform 0.18s ease, background 0.18s ease, border 0.18s ease; }
.btn:hover { transform: translateY(-1px); background: #3e4045; border-color: rgba(255,255,255,0.16); }
.btn.primary { background: var(--accent); color: #111; border-color: transparent; }
.btn.danger { color: #fff; background: rgba(255, 107, 107, 0.2); border-color: rgba(255, 107, 107, 0.45); }
.dashboard { display: grid; gap: 22px; }
.table-card { background: rgba(43, 44, 47, 0.88); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.table-card.compact .links-grid { gap: 8px; }
.table-card.compact .link-card { min-height: 72px; border-radius: 16px; flex-direction: row; justify-content: flex-start; text-align: left; padding: 12px 14px; }
.table-card.compact .icon, .table-card.compact .favicon-icon { width: 36px; height: 36px; min-width: 36px; border-radius: 12px; font-size: 17px; }
.table-card.list .links-grid { grid-template-columns: 1fr !important; gap: 8px; }
.table-card.list .link-card { min-height: 58px; border-radius: 14px; flex-direction: row; justify-content: flex-start; text-align: left; padding: 10px 14px; }
.table-card.list .icon, .table-card.list .favicon-icon { width: 34px; height: 34px; min-width: 34px; border-radius: 10px; font-size: 16px; }
.table-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; }
.table-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.table-title h2 { margin: 0; font-size: 22px; font-weight: 600; }
.counter { color: var(--muted); font-size: 14px; }
.table-meta { color: var(--muted); font-size: 13px; border: 1px solid var(--border); border-radius: 999px; padding: 4px 8px; }
.table-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.small-btn { border: 1px solid var(--border); background: transparent; color: var(--muted); border-radius: 999px; padding: 7px 11px; cursor: pointer; font-size: 13px; }
.small-btn:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.small-btn.danger:hover { color: var(--danger); background: rgba(255, 107, 107, 0.08); }
.links-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(120px, 1fr)); gap: 14px; }
.link-card { position: relative; min-height: 118px; border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035)); border: 1px solid var(--border); padding: 16px 12px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; transition: transform 0.18s ease, background 0.18s ease, border 0.18s ease; overflow: hidden; }
.link-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.09); border-color: rgba(138, 180, 248, 0.45); }
.slot-card { min-height: 118px; border-radius: 20px; border: 1px dashed rgba(255,255,255,0.14); background: rgba(255,255,255,0.025); display: grid; place-items: center; color: rgba(255,255,255,0.22); cursor: pointer; transition: background 0.18s ease, color 0.18s ease; }
.slot-card:hover { background: rgba(255,255,255,0.055); color: rgba(255,255,255,0.5); }
.table-card.compact .slot-card { min-height: 72px; border-radius: 16px; }
.table-card.list .slot-card { min-height: 58px; border-radius: 14px; }
.icon, .favicon-icon { width: 46px; height: 46px; min-width: 46px; border-radius: 16px; display: grid; place-items: center; background: rgba(138, 180, 248, 0.16); color: var(--accent); font-weight: 700; font-size: 22px; border: 1px solid rgba(138, 180, 248, 0.2); }
.favicon-icon { object-fit: contain; padding: 8px; background: rgba(255,255,255,0.92); }
.link-title { font-size: 14px; line-height: 1.25; max-width: 100%; word-break: break-word; }
.link-actions { position: absolute; top: 7px; right: 7px; display: flex; gap: 5px; opacity: 0; transform: translateY(-4px); transition: opacity 0.18s ease, transform 0.18s ease; }
.link-card:hover .link-actions { opacity: 1; transform: translateY(0); }
.icon-btn { width: 27px; height: 27px; border-radius: 999px; border: 1px solid var(--border); background: rgba(0, 0, 0, 0.28); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 13px; }
.icon-btn:hover { background: rgba(255,255,255,0.16); }
.empty { padding: 26px; text-align: center; border: 1px dashed rgba(255,255,255,0.18); border-radius: 18px; color: var(--muted); }
dialog { width: min(520px, calc(100% - 34px)); border: 1px solid var(--border); border-radius: 24px; padding: 0; background: #2b2c2f; color: var(--text); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(4px); }
.modal { padding: 24px; }
.modal h3 { margin: 0 0 18px; font-size: 24px; }
.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 14px; }
.field input, .field select { width: 100%; border: 1px solid var(--border); background: #202124; color: var(--text); border-radius: 14px; padding: 12px 13px; outline: none; }
.field input:focus, .field select:focus { border-color: rgba(138, 180, 248, 0.6); }
.hint { color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 4px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #111; color: #fff; padding: 12px 16px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; border: 1px solid var(--border); z-index: 1000; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.hidden-file { display: none; }
.legal-page { max-width: 920px; margin: 0 auto; background: rgba(43,44,47,.88); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); line-height: 1.65; }
.legal-page h1 { margin-top: 0; }
.legal-page h2 { margin-top: 30px; }
.legal-page p, .legal-page li { color: #d9dcdf; }
.legal-page .notice { background: rgba(138,180,248,.12); border: 1px solid rgba(138,180,248,.25); border-radius: 16px; padding: 14px; color: var(--text); }
.cookie-banner { position: fixed; left: 18px; right: 18px; bottom: 18px; max-width: 940px; margin: 0 auto; background: #111; border: 1px solid var(--border); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); z-index: 999; display: none; gap: 16px; align-items: center; justify-content: space-between; }
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; color: #d9dcdf; line-height: 1.45; }
.cookie-banner a { color: var(--accent); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; min-width: fit-content; }
.gdpr-panel { margin: 18px 0 0; border: 1px solid var(--border); border-radius: 18px; padding: 14px; background: rgba(255,255,255,.04); }
.gdpr-panel label { display: flex; gap: 10px; align-items: flex-start; color: #e6e8ea; line-height: 1.45; }
.gdpr-panel input { margin-top: 3px; }

.benefits-hero { max-width: 980px; margin: 0 auto 24px; background: linear-gradient(135deg, rgba(138,180,248,.16), rgba(126,231,135,.08)); border: 1px solid var(--border); border-radius: 28px; padding: 34px; box-shadow: var(--shadow); }
.benefits-hero h1 { margin: 0 0 12px; font-size: clamp(34px, 5vw, 58px); line-height: 1; letter-spacing: -2px; }
.benefits-hero p { max-width: 780px; color: #d9dcdf; line-height: 1.65; font-size: 18px; margin: 0; }
.benefit-grid { max-width: 980px; margin: 22px auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.benefit-card { background: rgba(43,44,47,.88); border: 1px solid var(--border); border-radius: 22px; padding: 20px; box-shadow: 0 12px 36px rgba(0,0,0,.22); }
.benefit-card h2 { margin: 0 0 10px; font-size: 20px; }
.benefit-card p { margin: 0; color: #d9dcdf; line-height: 1.55; }
.benefits-section { max-width: 980px; margin: 22px auto; background: rgba(43,44,47,.88); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); line-height: 1.65; }
.benefits-section h2 { margin-top: 0; }
.benefits-section p, .benefits-section li { color: #d9dcdf; }
.benefits-section strong { color: var(--text); }
.comparison { width: 100%; border-collapse: collapse; margin-top: 14px; overflow: hidden; border-radius: 16px; }
.comparison th, .comparison td { border: 1px solid var(--border); padding: 13px; text-align: left; vertical-align: top; }
.comparison th { color: var(--text); background: rgba(255,255,255,.07); }
.comparison td { color: #d9dcdf; }
.cta-panel { max-width: 980px; margin: 22px auto 0; text-align: center; background: rgba(138,180,248,.12); border: 1px solid rgba(138,180,248,.28); border-radius: 24px; padding: 26px; }
.cta-panel h2 { margin: 0 0 10px; }
.cta-panel p { margin: 0 0 18px; color: #d9dcdf; }
@media (max-width: 880px) { .benefit-grid { grid-template-columns: 1fr; } .comparison { display: block; overflow-x: auto; } }

@media (max-width: 760px) { .app { width: min(100% - 24px, 1180px); padding-top: 24px; } .brand img { width: 280px; max-width: 86vw; } .site-header, .table-head { align-items: flex-start; flex-direction: column; } .table-actions, .nav { justify-content: flex-start; } .links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .form-row { grid-template-columns: 1fr; } .cookie-banner.show { display: block; } .cookie-actions { margin-top: 12px; } }
@media (max-width: 420px) { .links-grid { grid-template-columns: 1fr !important; } }


/* Beta / test landing alert */
.beta-landing-alert {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 0 0 28px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 214, 102, 0.32);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 214, 102, 0.16), rgba(138, 180, 248, 0.08));
  box-shadow: 0 12px 34px rgba(0,0,0,.24);
}
.beta-landing-alert strong { display: block; font-size: 17px; margin-bottom: 4px; }
.beta-landing-alert span { color: #e2e4e7; line-height: 1.45; }
.beta-btn { white-space: nowrap; }
.eyebrow { margin: 0 0 8px; color: #ffd666; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; }
.test-notice-dialog h3 { margin-bottom: 10px; }

/* Maintenance page */
.maintenance-wrap {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 38px 0;
}
.maintenance-card {
  width: min(860px, 100%);
  background: linear-gradient(135deg, rgba(43,44,47,.94), rgba(32,33,36,.94));
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: clamp(28px, 5vw, 52px);
  box-shadow: var(--shadow);
  text-align: center;
}
.maintenance-card img { width: min(320px, 82vw); height: auto; margin-bottom: 20px; }
.maintenance-card .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #ffd666;
  background: rgba(255,214,102,.12);
  border: 1px solid rgba(255,214,102,.25);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.maintenance-card h1 { margin: 0 0 14px; font-size: clamp(34px, 5vw, 58px); letter-spacing: -2px; line-height: 1; }
.maintenance-card p { color: #d9dcdf; line-height: 1.65; font-size: 18px; margin: 0 auto 16px; max-width: 680px; }
.maintenance-actions { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.maintenance-details { margin-top: 24px; color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  .beta-landing-alert { align-items: flex-start; flex-direction: column; }
  .beta-btn { white-space: normal; }
}

.demo-disclaimer {
  margin: 24px 0 0;
  padding: 15px 18px;
  border-radius: 18px;
  border: 1px solid rgba(138,180,248,.25);
  background: rgba(138,180,248,.10);
  color: #d9dcdf;
  line-height: 1.55;
  font-size: 14px;
}
.demo-disclaimer strong { color: var(--text); }
