/* ── Reset & base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #121212;
  --bg-alt:     #0a0a0a;
  --bg-card:    #1e1e1e;
  --bg-input:   #2a2a2a;
  --border:     #333333;
  --text:       #f5f5f5;
  --text-muted: #bdbdbd;
  --orange:     #ff3d00;
  --orange-dark:#dd2c00;
  --orange-lt:  #ff7043;
  --radius:     8px;
  --shadow:     0 4px 20px rgba(0,0,0,.5);
  --transition: .18s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-lt); }

img { max-width: 100%; display: block; }

/* ── Layout ──────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.main-content { flex: 1; }

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  background: var(--bg-alt);
  border-bottom: 2px solid var(--orange);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(255,61,0,.15);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .5px;
}
.navbar-brand img {
  width: 40px;
  height: 40px;
  transition: transform var(--transition);
}
.navbar-brand:hover img { transform: scale(1.08); }
.navbar-brand:hover { color: var(--orange-lt); }
.navbar-brand span { color: var(--orange); }

.navbar-nav { display: flex; gap: 8px; align-items: center; }
.nav-link {
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: .95rem;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: rgba(255,61,0,.12);
  color: var(--orange);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-logo { width: 90px; height: 90px; margin: 0 auto 20px; }
.hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 10px; }
.hero h1 span { color: var(--orange); }
.hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 540px; margin: 0 auto; }

/* ── Section title ───────────────────────────────────────────── */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--orange);
  border-radius: 2px;
}

/* ── Filter bar ──────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0 4px;
}

.search-wrap {
  position: relative;
  max-width: 480px;
  width: 100%;
}
.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
  line-height: 1;
}
.search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px 10px 38px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,61,0,.15);
}
.search-input::placeholder { color: var(--text-muted); }

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.cat-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255,61,0,.07);
}
.cat-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ── App grid ────────────────────────────────────────────────── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  padding: 10px 0 40px;
}
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255,61,0,.2);
  border-color: var(--orange);
}
.app-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #252525;
}
.app-card-img-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #252525 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
  font-size: 3rem;
}
.app-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.app-card-name { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.app-card-desc { color: var(--text-muted); font-size: .9rem; flex: 1; }
.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.2);
}
.badge-version {
  background: rgba(255,61,0,.15);
  color: var(--orange);
  border: 1px solid rgba(255,61,0,.3);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
}
.badge-category {
  background: rgba(255,255,255,.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .78rem;
}
.badge-downloads {
  background: rgba(255,255,255,.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .78rem;
}
.btn-card {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  display: inline-block;
}
.btn-card:hover { background: var(--orange-dark); color: #fff; transform: scale(1.03); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); background: rgba(255,61,0,.07); }
.btn-danger { background: #c62828; color: #fff; }
.btn-danger:hover { background: #b71c1c; color: #fff; }
.btn-sm { padding: 5px 12px; font-size: .82rem; }
.btn-lg { padding: 13px 30px; font-size: 1.05rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── App detail page ─────────────────────────────────────────── */
.app-detail { padding: 40px 0; }
.app-detail-header {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.app-detail-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.app-detail-img-placeholder {
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: linear-gradient(135deg, #252525, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--border);
  flex-shrink: 0;
}
.app-detail-meta { flex: 1; }
.app-detail-meta h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.app-detail-meta .short-desc { color: var(--text-muted); font-size: 1rem; margin-bottom: 16px; }
.app-detail-meta .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.app-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.download-box {
  background: var(--bg-card);
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 24px;
  margin: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 0 30px rgba(255,61,0,.1);
}
.download-box-info h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.download-box-info p { color: var(--text-muted); font-size: .9rem; }

.description-block { margin-top: 24px; }
.description-block h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; color: var(--orange); }
.description-block p { color: var(--text-muted); line-height: 1.8; white-space: pre-wrap; }

/* ── Versions table ──────────────────────────────────────────── */
.versions-page { padding: 30px 0; }
.versions-table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
th {
  background: rgba(0,0,0,.3);
  color: var(--text-muted);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .6px;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }

.badge-latest {
  background: var(--orange);
  color: #fff;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  margin-left: 6px;
}

/* ── Forms ───────────────────────────────────────────────────── */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 720px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,61,0,.15);
}
textarea.form-control { min-height: 100px; resize: vertical; }
.form-check { display: flex; align-items: center; gap: 10px; }
.form-check input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--orange); cursor: pointer; }
.form-check label { margin-bottom: 0; cursor: pointer; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 24px; }

.alert {
  padding: 12px 18px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: .9rem;
}
.alert-error { background: rgba(198,40,40,.15); border: 1px solid rgba(198,40,40,.4); color: #ef9a9a; }
.alert-success { background: rgba(27,94,32,.2); border: 1px solid rgba(27,94,32,.5); color: #a5d6a7; }

/* ── Admin layout ────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: calc(100vh - 66px); }
.admin-sidebar {
  width: 230px;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  flex-shrink: 0;
}
.admin-sidebar h3 {
  padding: 0 20px 16px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-muted);
  font-size: .9rem;
  transition: background var(--transition), color var(--transition);
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(255,61,0,.1);
  color: var(--orange);
}
.admin-content { flex: 1; padding: 30px; overflow: auto; }
.admin-content h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; }

/* ── Login page ──────────────────────────────────────────────── */
.login-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg-alt);
}
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: var(--shadow);
}
.login-card img { width: 70px; height: 70px; margin: 0 auto 20px; }
.login-card h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.login-card .subtitle { color: var(--text-muted); font-size: .9rem; margin-bottom: 28px; }

/* ── Admin dashboard table ───────────────────────────────────── */
.admin-table { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.admin-table table { width: 100%; }
.admin-table th { white-space: nowrap; }
.table-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-sep { color: var(--border); }

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }

/* ── Patch notes ─────────────────────────────────────────────── */
.patch-notes-block {
  margin: 24px 0;
  border: 1px solid rgba(255,61,0,.35);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,61,0,.05);
}
.patch-notes-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255,61,0,.12);
  border-bottom: 1px solid rgba(255,61,0,.25);
}
.patch-notes-icon { font-size: 1.1rem; }
.patch-notes-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--orange-lt);
  flex: 1;
}
.patch-notes-badge {
  background: var(--orange);
  color: #fff;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
}
.patch-notes-body {
  padding: 16px 20px;
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.85;
  white-space: pre-wrap;
}

/* ── Prérequis ───────────────────────────────────────────────── */
.prereq-block {
  margin: 24px 0;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.03);
}
.prereq-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.prereq-header span { font-size: 1.1rem; color: var(--text-muted); }
.prereq-header h2 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.prereq-body {
  padding: 16px 20px;
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.85;
  white-space: pre-wrap;
}

/* ── SHA256 block ────────────────────────────────────────────── */
.sha-block {
  background: var(--bg-alt);
  border: 1px solid #2a2a2a;
  border-left: 3px solid #4caf50;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
}
.sha-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sha-icon { font-size: 1.1rem; }
.sha-title { font-size: .9rem; font-weight: 600; color: var(--text); flex: 1; }
.sha-copy-btn {
  background: transparent;
  border: 1px solid #444;
  color: var(--text-muted);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: .78rem;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.sha-copy-btn:hover { border-color: #4caf50; color: #4caf50; }
.sha-value {
  display: block;
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: .78rem;
  color: #4caf50;
  word-break: break-all;
  margin-bottom: 14px;
  letter-spacing: .04em;
}
.sha-commands { font-size: .85rem; }
.sha-tab-bar { display: flex; gap: 6px; margin-bottom: 10px; }
.sha-tab {
  background: transparent;
  border: 1px solid #333;
  color: var(--text-muted);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: .78rem;
  cursor: pointer;
  transition: all .2s;
}
.sha-tab.active { border-color: var(--orange); color: var(--orange); background: rgba(255,61,0,.06); }
.sha-cmd {
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: .82rem;
  color: #90caf9;
  margin: 0 0 8px;
  white-space: pre-wrap;
  word-break: break-all;
}
.sha-hint { color: var(--text-muted); font-size: .8rem; margin: 0; }
.sha-hint code { color: #aaa; background: #111; padding: 1px 5px; border-radius: 4px; }

/* ── Suite landing page ──────────────────────────────────────── */
.suite-hero {
  background: linear-gradient(160deg, #0a0a0a 0%, #1a0800 60%, #0a0a0a 100%);
  border-bottom: 1px solid #222;
  padding: 60px 20px;
  text-align: center;
}
.suite-hero-inner { max-width: 720px; margin: 0 auto; }
/* Split layout: carousel left, text right */
.suite-hero-split { text-align: left; padding: 52px 40px; }
.suite-hero-split-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}
.hero-carousel-col { min-width: 0; }
.hero-carousel-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 14px;
}
.carousel-compact .carousel-btn {
  width: 34px;
  height: 34px;
  font-size: 1.3rem;
}
.hero-text-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.suite-hero-logo { width: 56px; height: 56px; margin-bottom: 16px; }
.suite-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.suite-hero-title span { color: var(--orange); }
.suite-hero-sub {
  font-size: 1.05rem;
  color: #bbb;
  margin: 0 0 12px;
  font-weight: 500;
}
.suite-hero-desc {
  font-size: .9rem;
  color: #888;
  margin: 0 0 28px;
  line-height: 1.7;
}
.suite-hero-btns {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .suite-hero-split { padding: 40px 20px; }
  .suite-hero-split-inner { grid-template-columns: 1fr; gap: 32px; }
  .suite-hero-split { text-align: center; }
  .hero-carousel-col { order: 2; }
  .hero-text-col { order: 1; align-items: center; }
  .suite-hero-btns { justify-content: center; }
}
.btn-outline {
  background: transparent;
  border: 1px solid #555;
  color: #ccc;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-lg { padding: 12px 28px !important; font-size: 1rem !important; }

.suite-section { padding: 60px 20px; }
.suite-section:nth-child(even) { background: #0f0f0f; }
.suite-container { max-width: 900px; margin: 0 auto; }
.suite-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text);
  text-align: center;
}
.suite-section-text {
  color: #aaa;
  font-size: .97rem;
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto 14px;
  text-align: center;
}

.suite-apps-section { background: #0f0f0f; }
.suite-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 32px 0 24px;
}
.suite-app-card {
  background: var(--bg-alt);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 28px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s, transform .2s;
}
.suite-app-available { border-color: rgba(255,61,0,.3); }
.suite-app-card:hover { transform: translateY(-3px); }
.suite-app-available:hover { border-color: var(--orange); }
.suite-app-status {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 20px;
  align-self: flex-start;
}
.suite-status-available { background: rgba(255,61,0,.15); color: var(--orange); }
.suite-status-dev       { background: rgba(33,150,243,.12); color: #64b5f6; }
.suite-status-planned   { background: rgba(156,39,176,.12); color: #ce93d8; }
.suite-app-icon { font-size: 2.2rem; margin: 6px 0 2px; }
.suite-app-name { font-size: 1.15rem; font-weight: 700; margin: 0; }
.suite-app-desc { color: #999; font-size: .88rem; line-height: 1.6; flex: 1; margin: 0; }
.suite-app-coming { font-size: .8rem; color: #555; font-style: italic; margin-top: auto; }
.suite-apps-note {
  text-align: center;
  color: #555;
  font-size: .82rem;
  font-style: italic;
  margin: 0;
}

.suite-why-section { background: #0a0a0a; }
.suite-why-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}
.suite-why-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 30px;
  padding: 10px 20px;
  font-size: .9rem;
  color: #ccc;
}
.suite-why-icon { font-size: 1.1rem; }

.suite-vision .suite-section-text { color: #888; font-style: italic; }

.suite-cta {
  background: linear-gradient(160deg, #1a0800 0%, #0a0a0a 100%);
  border-top: 1px solid #222;
  padding: 70px 20px;
  text-align: center;
}
.suite-cta-title { font-size: 1.6rem; font-weight: 700; margin: 0 0 12px; }
.suite-cta-desc { color: #888; font-size: .95rem; margin: 0 0 28px; }

/* ── SelfMe widget ───────────────────────────────────────────── */
.selfme-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.selfme-badge {
  background: #232647;
  border: 1px solid rgba(78,205,196,.5);
  color: #4ecdc4;
  font-size: .74rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,.4), 0 0 8px rgba(78,205,196,.15);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.selfme-badge.selfme-badge-visible {
  opacity: 1;
  transform: translateY(0);
}
/* ── SelfMe popup ────────────────────────────────────────────── */
.selfme-bubble {
  position: fixed;
  bottom: 88px;
  right: 20px;
  width: 260px;
  background: #232647;
  border: 1px solid rgba(78,205,196,.35);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 20px rgba(78,205,196,.12);
  z-index: 9998;
  transform: translateY(16px) scale(.95);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.34,1.4,.64,1), opacity .3s ease;
}
.selfme-bubble.selfme-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.selfme-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(255,255,255,.08);
  border: none;
  color: #aaa;
  font-size: .8rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
  padding: 0;
}
.selfme-close:hover { background: rgba(255,255,255,.18); color: #fff; }
.selfme-inner {
  padding: 20px 18px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.selfme-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 4px;
}
.selfme-quote {
  font-size: .78rem;
  color: #4ecdc4;
  font-style: italic;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}
.selfme-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 2px 0 0;
  font-family: Georgia, serif;
  font-style: italic;
}
.selfme-subtitle {
  font-size: .78rem;
  color: #c5cde8;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}
.selfme-desc {
  font-size: .74rem;
  color: #7a85aa;
  line-height: 1.5;
  margin: 2px 0 8px;
}
.selfme-btn {
  display: inline-block;
  background: #4ecdc4;
  color: #1a1d35;
  font-weight: 700;
  font-size: .82rem;
  padding: 9px 18px;
  border-radius: 30px;
  text-decoration: none;
  width: 100%;
  transition: background .2s, transform .15s;
}
.selfme-btn:hover { background: #3dbdb4; transform: scale(1.02); }

.selfme-mini {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(78,205,196,.6);
  background: #232647;
  box-shadow: 0 4px 18px rgba(0,0,0,.5), 0 0 14px rgba(78,205,196,.25);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  flex-shrink: 0;
}
.selfme-mini:hover {
  border-color: #4ecdc4;
  box-shadow: 0 4px 22px rgba(0,0,0,.6), 0 0 22px rgba(78,205,196,.5);
  transform: scale(1.1);
}
.selfme-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Installation guide (app detail) ────────────────────────── */
.install-block {
  margin: 18px 0;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
}
.install-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #161616;
  border: none;
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background .2s;
}
.install-toggle:hover { background: #1e1e1e; }
.install-toggle-icon { font-size: 1.1rem; }
.install-toggle-arrow {
  margin-left: auto;
  font-size: .75rem;
  color: #666;
  transition: transform .25s;
}
.install-toggle[aria-expanded="true"] .install-toggle-arrow { transform: rotate(180deg); }
.install-body {
  padding: 18px;
  color: #bbb;
  font-size: .92rem;
  line-height: 1.75;
  border-top: 1px solid #2a2a2a;
  background: #111;
  white-space: pre-wrap;
}

/* ── Tuto button on app detail ───────────────────────────────── */
.btn-tuto-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,61,0,.15);
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 12px;
  transition: background .2s, box-shadow .2s;
  animation: tuto-pulse 2.5s ease-in-out infinite;
}
.btn-tuto-link:hover {
  background: rgba(255,61,0,.3);
  box-shadow: 0 0 10px rgba(255,61,0,.4);
  animation: none;
}
@keyframes tuto-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,61,0,0); }
  50%       { box-shadow: 0 0 0 5px rgba(255,61,0,.25); }
}

/* ── Tutorial page ───────────────────────────────────────────── */
.tuto-step {
  background: var(--bg-alt);
  border: 1px solid #222;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 28px;
}
.tuto-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.tuto-step-header h2 {
  font-size: 1rem;
  margin: 0;
  color: var(--text);
}
.tuto-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.tuto-step p {
  color: #ccc;
  font-size: .92rem;
  line-height: 1.7;
  margin: 0 0 14px;
}
.tuto-step p:last-child { margin-bottom: 0; }
.tuto-gif-wrap {
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333;
  background: #000;
  text-align: center;
}
.tuto-gif-wrap img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.tuto-tip {
  background: rgba(255,61,0,.07);
  border: 1px solid rgba(255,61,0,.2);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: .85rem;
  color: #ccc;
  margin: 12px 0;
}
kbd {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: .82rem;
  font-family: monospace;
  color: #eee;
}

/* ── ChaosTools — Hero ───────────────────────────────────────── */
.tools-hero {
  background: linear-gradient(160deg, #0a0a0a 0%, #001a08 60%, #0a0a0a 100%);
  border-bottom: 1px solid #222;
  padding: 64px 20px 56px;
  text-align: center;
}
.tools-hero-inner { max-width: 700px; margin: 0 auto; }
.tools-hero-icon { font-size: 2.8rem; margin-bottom: 14px; }
.tools-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -.02em;
}
.tools-hero h1 span { color: var(--orange); }
.tools-hero-sub { font-size: 1.05rem; color: #bbb; margin: 0 0 12px; font-weight: 500; }
.tools-hero-desc { font-size: .92rem; color: #777; max-width: 580px; margin: 0 auto; line-height: 1.7; }

/* ── ChaosTools — Privacy notice ─────────────────────────────── */
.tools-privacy-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(76,175,80,.08);
  border: 1px solid rgba(76,175,80,.3);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 36px;
  font-size: .9rem;
  color: #ccc;
  line-height: 1.6;
}
.tools-privacy-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.tools-privacy-notice > div > strong { color: #81c784; display: block; margin-bottom: 4px; }
.tools-privacy-notice span strong { color: var(--text); display: inline; font-weight: 600; }

/* ── ChaosTools — Section title ──────────────────────────────── */
.tools-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .82rem;
  margin-bottom: 18px;
}

/* ── ChaosTools — Group headers ─────────────────────────────── */
.tools-group-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.tools-group-header:first-of-type { margin-top: 28px; }
.tools-group-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,61,0,.1);
  border: 1px solid rgba(255,61,0,.2);
  border-radius: 12px;
}
.tools-group-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 3px;
  letter-spacing: .01em;
}
.tools-group-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--orange);
  border-radius: 2px;
  margin-right: 9px;
  vertical-align: middle;
}
.tools-group-desc {
  font-size: .83rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── ChaosTools — Tool grid ──────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.tool-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(255,61,0,.15);
  color: var(--text);
}
.tool-card-icon { font-size: 2rem; }
.tool-card-body h3 { font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.tool-card-body p { font-size: .87rem; color: #999; margin: 0; line-height: 1.55; }
.tool-card-btn {
  display: inline-block;
  margin-top: auto;
  font-size: .82rem;
  font-weight: 700;
  color: var(--orange);
}
.tool-card-quota {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
  padding: 7px 10px;
  background: rgba(100,160,255,.06);
  border: 1px solid rgba(100,160,255,.15);
  border-radius: 6px;
}
.tool-card-quota-service {
  font-size: .72rem;
  font-weight: 700;
  color: #64a0ff;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.tool-card-quota-limit {
  font-size: .78rem;
  color: #aaa;
}
.tool-card--check {
  border-color: rgba(100,160,255,.18);
}
.tool-card--check:hover {
  border-color: rgba(100,160,255,.45);
  box-shadow: 0 4px 20px rgba(100,160,255,.08);
}
.tool-card--check .tool-card-btn { color: #64a0ff; }
.tool-card--soon {
  opacity: .65;
  cursor: default;
  border-style: dashed;
  border-color: rgba(255,255,255,.12);
  pointer-events: none;
}
.tool-card-badge--soon {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  color: #888;
}
.tool-card-btn--soon {
  color: #666;
}
.tool-card-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: .72rem;
  font-weight: 700;
  color: #64a0ff;
  background: rgba(100,160,255,.1);
  border: 1px solid rgba(100,160,255,.25);
  border-radius: 4px;
  padding: 2px 7px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── Tool page layout ────────────────────────────────────────── */
.tool-page { padding: 40px 20px 60px; max-width: 860px; margin: 0 auto; }
.tool-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}
.tool-header-icon { font-size: 2.4rem; flex-shrink: 0; margin-top: 4px; }
.tool-header h1 { font-size: 1.6rem; font-weight: 800; margin: 0 0 6px; }
.tool-header p { color: #888; font-size: .92rem; margin: 0; }
.tool-card-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

/* ── Drop zone ───────────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed #444;
  border-radius: 10px;
  padding: 44px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--orange);
  background: rgba(255,61,0,.04);
}
.drop-zone-icon { font-size: 2.4rem; margin-bottom: 12px; }
.drop-zone-label { font-size: .95rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.drop-zone-sub { font-size: .82rem; color: #666; }

/* ── Tool tabs ───────────────────────────────────────────────── */
.tool-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 20px; }
.tool-tab {
  background: transparent;
  border: 1px solid transparent;
  color: #777;
  padding: 6px 16px;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .18s;
}
.tool-tab.active { border-color: var(--orange); color: var(--orange); background: rgba(255,61,0,.06); }
.tool-tab:hover:not(.active) { color: #ccc; border-color: #444; }

/* ── Tool options ────────────────────────────────────────────── */
.tool-options-row { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin: 20px 0; }
.tool-option-group { display: flex; flex-direction: column; gap: 8px; }
.tool-label { font-size: .85rem; font-weight: 600; color: #aaa; }
.tool-format-btns { display: flex; gap: 8px; }
.tool-fmt-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .18s;
}
.tool-fmt-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.tool-fmt-btn:hover:not(.active) { border-color: var(--orange); color: var(--orange); }

/* ── Slider ──────────────────────────────────────────────────── */
.tool-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-width: 200px;
  height: 4px;
  border-radius: 2px;
  background: #333;
  outline: none;
  cursor: pointer;
}
.tool-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(255,61,0,.4);
}

/* ── Tool actions ────────────────────────────────────────────── */
.tool-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 20px; }

/* ── Preview ─────────────────────────────────────────────────── */
.tool-preview-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.tool-preview-box { display: flex; flex-direction: column; gap: 8px; }
.tool-preview-label { font-size: .78rem; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.tool-preview-img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
}
.tool-preview-info { font-size: .78rem; color: #666; margin: 0; }

/* ── File info ───────────────────────────────────────────────── */
.tool-file-info {
  background: rgba(255,255,255,.04);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .88rem;
  color: #bbb;
}

/* ── Loading spinner ─────────────────────────────────────────── */
.tool-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: #888;
  font-size: .9rem;
}
.tool-spinner {
  width: 22px; height: 22px;
  border: 3px solid #333;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SHA256 result ───────────────────────────────────────────── */
.sha-result-block {
  background: var(--bg-alt);
  border: 1px solid #2a2a2a;
  border-left: 3px solid #4caf50;
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 20px;
}
.sha-result-label { font-size: .78rem; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.sha-result-row { display: flex; align-items: center; gap: 10px; }
.sha-result-value {
  flex: 1;
  display: block;
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: .78rem;
  color: #4caf50;
  word-break: break-all;
  letter-spacing: .04em;
  font-family: monospace;
}
.copy-feedback { color: #4caf50; font-size: .82rem; font-weight: 600; margin-top: 8px; }

/* ── Savings bar ─────────────────────────────────────────────── */
.tool-savings {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
}
.tool-savings-good { background: rgba(76,175,80,.1); border: 1px solid rgba(76,175,80,.3); color: #81c784; }
.tool-savings-warn { background: rgba(255,152,0,.1); border: 1px solid rgba(255,152,0,.3); color: #ffb74d; }

/* ── Table preview ───────────────────────────────────────────── */
.tool-result-panel { margin-top: 20px; }
.tool-table-wrap {
  overflow-x: auto;
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: 8px;
  max-height: 280px;
  overflow-y: auto;
}
.tool-table-wrap table { min-width: 400px; }

/* ── Progress bar ────────────────────────────────────────────── */
.tool-progress-wrap { margin: 16px 0; }
.tool-progress-bar {
  height: 6px;
  background: #2a2a2a;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.tool-progress-fill { height: 100%; background: var(--orange); border-radius: 3px; transition: width .3s ease; }
.tool-progress-label { font-size: .85rem; color: #888; margin: 0; }

/* ── PDF thumbnails ──────────────────────────────────────────── */
.pdf-previews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.pdf-page-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pdf-page-thumb img {
  width: 100%;
  border: 1px solid #333;
  border-radius: 6px;
  background: #111;
}
.pdf-page-thumb span { font-size: .72rem; color: #666; }

/* ── Suite contact card & status badge ───────────────────────── */
.suite-app-contact {
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.suite-status-contact {
  background: rgba(255, 61, 0, .15);
  color: var(--orange);
  border: 1px solid rgba(255, 61, 0, .35);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}

/* ── Contact page ─────────────────────────────────────────────── */
.contact-hero {
  text-align: center;
  margin-bottom: 40px;
}
.contact-hero-icon { font-size: 3rem; margin-bottom: 12px; }
.contact-hero-title { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.contact-hero-sub { color: var(--text-muted); font-size: 1rem; }

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}
.contact-card-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.contact-info-block { display: flex; flex-direction: column; gap: 4px; }
.contact-info-label {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
}
.contact-email-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--orange);
}
.contact-email-link:hover { color: var(--orange-lt); }
.contact-btn { align-self: flex-start; }
.contact-note {
  margin-top: 16px;
  font-size: .82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.contact-unavailable {
  text-align: center;
  padding: 30px 0;
  color: var(--text-muted);
}
.contact-unavailable-icon { font-size: 2.5rem; display: block; margin-bottom: 14px; }
.contact-back { margin-top: 8px; }

/* ── Carrousel outils (home_suite.html) ─────────────────────── */
.carousel-section {
  background: #0d0d0d;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 52px 0 48px;
}
.carousel-wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.carousel-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 32px;
  color: var(--text);
}
.carousel-track-outer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.carousel-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 16px;
}
.carousel-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 36px 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 380px;
}
.cs-slide-soon { opacity: .88; }
.cs-status {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  align-self: flex-start;
}
.cs-status-ok      { background: rgba(76,175,80,.18); color: #81c784; border: 1px solid rgba(76,175,80,.3); }
.cs-status-dev     { background: rgba(255,152,0,.15); color: #ffb74d; border: 1px solid rgba(255,152,0,.3); }
.cs-status-planned { background: rgba(100,100,100,.18); color: #aaa; border: 1px solid rgba(150,150,150,.25); }
.cs-status-contact { background: rgba(33,150,243,.15); color: #90caf9; border: 1px solid rgba(33,150,243,.25); }
.cs-icon  { font-size: 2.8rem; line-height: 1; }
.cs-name  { font-size: 1.55rem; font-weight: 700; margin: 0; color: var(--text); }
.cs-tag   { font-size: .82rem; color: var(--orange); font-weight: 600; margin: 0; letter-spacing: .04em; text-transform: uppercase; }
.cs-desc  { font-size: .91rem; color: #aaa; line-height: 1.6; margin: 0; }
.cs-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cs-features li {
  font-size: .85rem;
  color: #888;
  padding-left: 18px;
  position: relative;
}
.cs-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: .8rem;
}
.cs-btn { align-self: flex-start; margin-top: 4px; }
.cs-coming-badge {
  align-self: flex-start;
  margin-top: 4px;
  background: rgba(255,61,0,.08);
  border: 1px solid rgba(255,61,0,.2);
  color: #ff7043;
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}
.carousel-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.carousel-dot.active { background: var(--orange); transform: scale(1.3); }
@media (max-width: 600px) {
  .carousel-slide { padding: 22px 18px 20px; min-height: 0; }
  .carousel-btn { width: 34px; height: 34px; font-size: 1.3rem; }
}

/* ── Promo outils web (index.html) ──────────────────────────── */
.tools-promo-section {
  padding: 56px 0 64px;
  background: linear-gradient(180deg, var(--bg) 0%, #0d0400 100%);
  border-top: 1px solid var(--border);
}
.tools-promo-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: .92rem;
  margin: 0 0 36px;
}
.tools-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 800px) { .tools-promo-grid { grid-template-columns: 1fr; } }
.tools-promo-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 26px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.tools-promo-card:hover { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.tools-promo-icon { font-size: 2.2rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.tools-promo-body { display: flex; flex-direction: column; gap: 10px; }
.tools-promo-name { font-size: 1.2rem; font-weight: 700; margin: 0; color: var(--text); }
.tools-promo-desc { font-size: .88rem; color: var(--text-muted); margin: 0; line-height: 1.55; }
.tools-promo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tools-promo-list li { font-size: .83rem; color: #aaa; }
.tools-promo-list li::before { content: ''; }

/* ── Download Gate ───────────────────────────────────────────── */
.gate-form { display: flex; flex-direction: column; gap: 20px; }
.gate-section { display: flex; flex-direction: column; gap: 8px; }
.gate-label { font-size: .88rem; font-weight: 600; color: var(--text); }
.gate-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: .92rem;
  padding: 10px 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color var(--transition);
  font-family: inherit;
}
.gate-input:focus { outline: none; border-color: var(--orange); }
.gate-textarea { resize: vertical; min-height: 72px; }
select.gate-input { cursor: pointer; }
.gate-row { display: flex; flex-direction: column; gap: 20px; }
.gate-row-2 { flex-direction: row; gap: 16px; }
.gate-row-2 .gate-section { flex: 1; }
.gate-radio-group { display: flex; flex-direction: column; gap: 10px; }
.gate-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: .9rem;
  color: var(--text-muted);
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.gate-radio:hover { border-color: var(--orange); color: var(--text); }
.gate-radio input[type="radio"] { accent-color: var(--orange); width: 16px; height: 16px; flex-shrink: 0; }
.gate-radio input[type="radio"]:checked + span { color: var(--text); font-weight: 600; }
.gate-radio:has(input:checked) { border-color: var(--orange); background: rgba(255,61,0,.06); }
@media (max-width: 600px) { .gate-row-2 { flex-direction: column; } }

/* ── ChaosCheck ──────────────────────────────────────────────── */
.check-warning-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 152, 0, .08);
  border: 1px solid rgba(255, 152, 0, .35);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: .9rem;
  color: #ffe082;
  margin-bottom: 28px;
}
.check-warning-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }

.check-privacy-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(27, 94, 32, .15);
  border: 1px solid rgba(27, 94, 32, .4);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: .9rem;
  color: #a5d6a7;
  margin-bottom: 24px;
}
.check-privacy-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 20px;
}
.check-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.check-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255, 61, 0, .2);
  border-color: var(--orange);
  color: var(--text);
}
.check-card-icon { font-size: 2.4rem; }
.check-card-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.check-card-body p { color: var(--text-muted); font-size: .88rem; line-height: 1.55; }
.check-card-btn {
  margin-top: auto;
  color: var(--orange);
  font-size: .88rem;
  font-weight: 600;
}

.check-card-quota {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: rgba(255,61,0,.07);
  border: 1px solid rgba(255,61,0,.18);
  border-radius: 8px;
  margin-top: auto;
}
.check-quota-label {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.check-quota-value {
  font-size: .82rem;
  font-weight: 700;
  color: var(--orange);
}

.check-back-link {
  color: var(--text-muted);
  font-size: .88rem;
  text-decoration: none;
  transition: color var(--transition);
}
.check-back-link:hover { color: var(--orange); }

/* ── Quota bar on individual check tool pages ─────────────────── */
.check-tool-quota-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 14px;
  margin-bottom: 24px;
  background: rgba(100,160,255,.05);
  border: 1px solid rgba(100,160,255,.15);
  border-radius: 8px;
  font-size: .82rem;
}
.check-tool-quota-service {
  font-weight: 700;
  color: #64a0ff;
}
.check-tool-quota-sep {
  color: var(--border);
}
.check-tool-quota-limit {
  color: var(--text-muted);
}

.check-limits-section {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.check-limits-intro {
  color: var(--text-muted);
  font-size: .93rem;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 720px;
}
.check-limits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.check-limit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.check-limit-icon { font-size: 1.8rem; flex-shrink: 0; margin-top: 2px; }
.check-limit-body h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.check-limit-tool {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,.06);
  border-radius: 20px;
  padding: 2px 9px;
}
.check-limit-quota {
  font-size: .88rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 8px;
}
.check-limit-body p {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.check-limits-notice {
  background: rgba(255, 61, 0, .06);
  border: 1px solid rgba(255, 61, 0, .2);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.check-tool-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}
.check-tool-icon { font-size: 2.6rem; flex-shrink: 0; }
.check-tool-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 6px; }
.check-tool-sub { color: var(--text-muted); font-size: .95rem; }

.check-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.check-label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.check-input-row {
  display: flex;
  gap: 10px;
}
.check-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.check-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 61, 0, .15);
}
.check-input::placeholder { color: var(--text-muted); }
.check-input-hint { color: var(--text-muted); font-size: .82rem; margin-top: 8px; }

.check-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.check-dropzone:hover, .check-dropzone-hover {
  border-color: var(--orange);
  background: rgba(255, 61, 0, .04);
}
.check-dropzone-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.check-dropzone-icon { font-size: 2rem; }
.check-dropzone-text { font-size: .95rem; font-weight: 600; color: var(--text); }
.check-dropzone-hint { font-size: .82rem; color: var(--text-muted); }

.check-hash-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.check-hash-label { font-size: .82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.check-hash-value {
  font-family: 'Courier New', monospace;
  font-size: .85rem;
  color: var(--orange);
  word-break: break-all;
  line-height: 1.5;
  background: rgba(255, 61, 0, .06);
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 61, 0, .15);
}
.check-hash-filename { color: var(--text-muted); font-size: .82rem; margin-top: 8px; }

.check-result-box {
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 8px;
}
.check-result-top { display: flex; align-items: flex-start; gap: 16px; }
.check-result-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.check-result-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.check-result-msg { font-size: .9rem; color: var(--text-muted); }
.check-result-detail { font-size: .82rem; color: var(--text-muted); margin-top: 6px; opacity: .85; }

.check-result-safe {
  background: rgba(27, 94, 32, .15);
  border: 1px solid rgba(76, 175, 80, .35);
}
.check-result-safe .check-result-title { color: #a5d6a7; }
.check-result-safe .check-result-icon { color: #66bb6a; }

.check-result-suspicious {
  background: rgba(230, 119, 0, .12);
  border: 1px solid rgba(255, 152, 0, .35);
}
.check-result-suspicious .check-result-title { color: #ffe082; }
.check-result-suspicious .check-result-icon { color: #ffa726; }

.check-result-dangerous {
  background: rgba(198, 40, 40, .15);
  border: 1px solid rgba(229, 57, 53, .35);
}
.check-result-dangerous .check-result-title { color: #ef9a9a; }
.check-result-dangerous .check-result-icon { color: #ef5350; }

.check-result-unknown {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
}
.check-result-unknown .check-result-title { color: var(--text-muted); }

.check-result-error {
  background: rgba(198, 40, 40, .1);
  border: 1px solid rgba(198, 40, 40, .3);
}
.check-result-error .check-result-title { color: #ef9a9a; }

.check-score-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.check-score-bar-bg {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, .08);
  border-radius: 4px;
  overflow: hidden;
}
.check-score-bar {
  height: 100%;
  border-radius: 4px;
  transition: width .4s ease;
}
.check-score-bar-safe { background: #66bb6a; }
.check-score-bar-warn { background: #ffa726; }
.check-score-bar-danger { background: #ef5350; }
.check-score-label { font-size: .82rem; color: var(--text-muted); white-space: nowrap; }

/* ── Images-to-PDF list ──────────────────────────────────────── */
.img2pdf-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.img2pdf-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  cursor: grab;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.img2pdf-item:active { cursor: grabbing; }
.img2pdf-item.dragging { opacity: .45; }
.img2pdf-item.drag-over-item {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255,61,0,.2);
}
.img2pdf-handle {
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
}
.img2pdf-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: #252525;
}
.img2pdf-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.img2pdf-name {
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.img2pdf-size {
  font-size: .78rem;
  color: var(--text-muted);
}
.img2pdf-page {
  font-size: .78rem;
  font-weight: 600;
  color: var(--orange);
  white-space: nowrap;
  flex-shrink: 0;
}
.img2pdf-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.img2pdf-remove:hover { color: #ef5350; background: rgba(198,40,40,.12); }

/* ── Progress bar ────────────────────────────────────────────── */
.tool-progress-bar {
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 3px;
  overflow: hidden;
}
.tool-progress-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 3px;
  transition: width .3s ease;
  width: 0%;
}

/* ── Text tool textarea ──────────────────────────────────────── */
.text-tool-ta {
  min-height: 260px;
  resize: vertical;
  font-family: inherit;
  font-size: .9rem;
  line-height: 1.6;
}

/* ── Cleaner options ─────────────────────────────────────────── */
.cleaner-opt {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .85rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 20px;
  transition: border-color var(--transition), color var(--transition);
}
.cleaner-opt:hover { border-color: var(--orange); color: var(--text); }
.cleaner-opt input[type=checkbox] { accent-color: var(--orange); cursor: pointer; }

/* ── Responsive: text tool grid ──────────────────────────────── */
@media (max-width: 640px) {
  .text-tool-grid { grid-template-columns: 1fr !important; }
}

/* ── Password Generator ──────────────────────────────────────── */
.pw-result-panel {
  background: var(--bg-card);
  border: 2px solid var(--orange);
  box-shadow: 0 0 30px rgba(255,61,0,.12);
  padding: 24px 28px;
  margin-top: 24px;
  border-radius: var(--radius);
}
.pw-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.pw-result-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
}
.pw-output {
  display: block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange);
  word-break: break-all;
  letter-spacing: .04em;
  min-height: 2.6rem;
  line-height: 1.3;
}
.pw-status {
  font-size: .83rem;
  margin-top: 10px;
  color: var(--text-muted);
}
.pw-status[data-state="ready"]   { color: #81c784; }
.pw-status[data-state="warning"] { color: #ffb74d; }
.pw-status[data-state="waiting"] { color: var(--text-muted); }
.pw-controls-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.pw-range {
  accent-color: var(--orange);
  cursor: pointer;
}
.pw-hint {
  font-size: .8rem;
  color: var(--text-muted);
  flex: 1 0 100%;
  margin-top: 4px;
}
.pw-cats-label {
  font-size: .83rem;
  color: var(--text-muted);
  margin-top: 16px;
  margin-bottom: 8px;
  font-weight: 600;
}
.pw-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pw-cat-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.pw-cat-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255,61,0,.07);
}
.pw-cat-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.pw-info-box {
  background: rgba(255,61,0,.06);
  border: 1px solid rgba(255,61,0,.18);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.pw-info-box strong { color: var(--orange-lt); display: block; margin-bottom: 4px; }
.pw-parts-label {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.pw-parts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  counter-reset: parts-counter;
}
.pw-parts-list li {
  counter-increment: parts-counter;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 14px;
  font-size: .9rem;
  font-family: 'Courier New', Courier, monospace;
  color: var(--text-muted);
  position: relative;
}
.pw-parts-list li.filled {
  border-color: rgba(255,61,0,.4);
  color: var(--orange-lt);
  background: rgba(255,61,0,.06);
}
.pw-parts-list li.empty { opacity: .45; font-style: italic; }
.pw-details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.pw-details summary {
  padding: 12px 16px;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition), background var(--transition);
}
.pw-details summary::before { content: '▶'; font-size: .7rem; transition: transform .2s; }
.pw-details[open] summary::before { transform: rotate(90deg); }
.pw-details summary:hover { background: rgba(255,255,255,.03); color: var(--text); }
.pw-details-body {
  padding: 16px;
  border-top: 1px solid var(--border);
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pw-details-body code {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: 'Courier New', Courier, monospace;
  font-size: .85em;
  color: var(--orange-lt);
}
.pw-strength-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}
.pw-strength-label {
  font-size: .92rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.pw-strength-label[data-state="extreme"] { color: #ce93d8; border-color: rgba(206,147,216,.4); background: rgba(206,147,216,.1); }
.pw-strength-label[data-state="strong"]  { color: #81c784; border-color: rgba(129,199,132,.4); background: rgba(129,199,132,.1); }
.pw-strength-label[data-state="good"]    { color: #aed581; border-color: rgba(174,213,129,.4); background: rgba(174,213,129,.1); }
.pw-strength-label[data-state="medium"]  { color: #ffb74d; border-color: rgba(255,183,77,.4);  background: rgba(255,183,77,.1); }
.pw-strength-label[data-state="weak"]    { color: #ef5350; border-color: rgba(239,83,80,.4);   background: rgba(239,83,80,.1); }
.pw-strength-meter {
  height: 8px;
  background: var(--bg-input);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
}
.pw-strength-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  transition: width .4s ease, background .4s ease;
  background: var(--border);
}
.pw-strength-bar[data-state="extreme"] { background: #ce93d8; }
.pw-strength-bar[data-state="strong"]  { background: #81c784; }
.pw-strength-bar[data-state="good"]    { background: #aed581; }
.pw-strength-bar[data-state="medium"]  { background: #ffb74d; }
.pw-strength-bar[data-state="weak"]    { background: #ef5350; }
.pw-strength-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.pw-strength-grid > div { display: flex; flex-direction: column; gap: 2px; }
.pw-stat-label {
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}
.pw-stat-value {
  font-size: .92rem;
  color: var(--text);
  font-weight: 600;
}
.pw-strength-note {
  font-size: .78rem;
  color: var(--text-muted);
  font-style: italic;
}
.pw-manual-result {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pw-qr-panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  padding: 16px;
}
.pw-qr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.pw-qr-title {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
}
.pw-qr-note {
  font-size: .82rem;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.pw-qr-canvas {
  display: flex;
  justify-content: center;
}
.pw-qr-canvas img {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}
.pw-qr-error {
  font-size: .85rem;
  color: #ffb74d;
  text-align: center;
  margin: 0;
  padding: 12px 0;
}
/* ── Password generator — story actions ──────────────────────── */
.pw-story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.pw-action-btn {
  flex: 1 1 auto;
  min-width: 180px;
  text-align: center;
  padding: 10px 16px;
  font-size: .9rem;
}
.pw-desktop-hint {
  width: 100%;
  font-size: .8rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

@media (max-width: 600px) {
  .pw-output { font-size: 1.2rem; }
  .pw-result-panel { padding: 16px; }
  .pw-controls-row { flex-direction: column; align-items: flex-start; }
  .pw-strength-grid { gap: 14px; }
  .pw-action-btn { min-width: 100%; font-size: .92rem; padding: 12px 16px; }
  .pw-cats { gap: 6px; }
  .pw-cat-btn { font-size: .78rem; padding: 5px 10px; }
  .pw-info-box { padding: 12px 14px; font-size: .88rem; }
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
}
footer span { color: var(--orange); }

/* ── Utility: desktop-only / mobile-only ─────────────────────── */
.desktop-only { display: revert; }
.mobile-only  { display: none !important; }

/* ── Hamburger button ────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  padding: 7px 8px;
  flex-direction: column;
  gap: 5px;
  transition: border-color var(--transition);
}
.nav-hamburger:hover { border-color: var(--orange); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile download notice ──────────────────────────────────── */
.mobile-dl-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,61,0,.07);
  border: 1px solid rgba(255,61,0,.2);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.5;
}
.mobile-dl-icon { font-size: 1.4rem; flex-shrink: 0; }

/* ── Responsive ──────────────────────────────────────────────── */
/* ── Tool page shared layout ─────────────────────────────────── */
.tool-page-header {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 24px;
}
.tool-back-link {
  display: inline-block;
  color: var(--text-muted);
  font-size: .88rem;
  margin-bottom: 16px;
  transition: color var(--transition);
}
.tool-back-link:hover { color: var(--orange); }
.tool-page-title-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.tool-page-icon {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.tool-page-title-row h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.tool-page-sub {
  color: var(--text-muted);
  font-size: .97rem;
}

/* ── PDF tool components ─────────────────────────────────────── */
.pdf-tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 780px;
}

.pdf-drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
  cursor: default;
}
.pdf-drop-zone--active {
  border-color: var(--orange);
  background: rgba(255,61,0,.05);
}
.pdf-drop-icon { font-size: 2.8rem; margin-bottom: 10px; }
.pdf-drop-label { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.pdf-drop-sub { color: var(--text-muted); margin: 6px 0; font-size: .9rem; }
.pdf-drop-hint { color: var(--text-muted); font-size: .8rem; margin-top: 10px; }

.pdf-drag-hint {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.pdf-file-list {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.pdf-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background var(--transition);
  user-select: none;
}
.pdf-file-item:last-child { border-bottom: none; }
.pdf-file-item--dragging { opacity: .4; }
.pdf-file-item--over { background: rgba(255,61,0,.08); border-color: var(--orange); }
.pdf-file-handle {
  color: var(--text-muted);
  cursor: grab;
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1;
}
.pdf-file-handle:active { cursor: grabbing; }
.pdf-file-num {
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 700;
  min-width: 22px;
  text-align: right;
  flex-shrink: 0;
}
.pdf-file-name {
  flex: 1;
  font-size: .9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdf-file-size {
  color: var(--text-muted);
  font-size: .8rem;
  flex-shrink: 0;
}
.pdf-file-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .9rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.pdf-file-remove:hover { color: #ef5350; background: rgba(239,83,80,.1); }

.pdf-reorder-badge {
  font-size: .72rem;
  color: var(--orange);
  background: rgba(255,61,0,.1);
  border: 1px solid rgba(255,61,0,.25);
  border-radius: 10px;
  padding: 1px 8px;
  flex-shrink: 0;
}

.pdf-file-loaded {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,61,0,.06);
  border: 1px solid rgba(255,61,0,.25);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.pdf-file-loaded-icon { font-size: 1.8rem; flex-shrink: 0; }
.pdf-file-loaded-info { flex: 1; overflow: hidden; }
.pdf-file-loaded-name { display: block; font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-file-loaded-meta { display: block; color: var(--text-muted); font-size: .82rem; margin-top: 2px; }

.pdf-error {
  background: rgba(198,40,40,.12);
  border: 1px solid rgba(198,40,40,.35);
  color: #ef9a9a;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: .9rem;
  margin-bottom: 16px;
}

.pdf-field-hint {
  color: var(--text-muted);
  font-size: .82rem;
  margin-top: 6px;
}
.pdf-field-hint code {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: .82rem;
  font-family: monospace;
}

.pdf-pw-wrap {
  position: relative;
}
.pdf-pw-wrap .form-control { padding-right: 44px; }
.pdf-pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-muted);
  padding: 2px 4px;
  line-height: 1;
}

/* PDF mode tabs */
.pdf-mode-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pdf-mode-tab {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.pdf-mode-tab:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.pdf-mode-tab--active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.pdf-mode-tab--active:hover { color: #fff; }

.pdf-info-box {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.pdf-info-box strong { color: var(--text); }

/* ── Favicon tool ────────────────────────────────────────────── */
.favicon-size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.favicon-size-badge {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: .8rem;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
}
.favicon-size-badge span {
  display: block;
  font-size: .72rem;
  color: var(--orange);
  margin-top: 1px;
}

/* ── Color palette tool ──────────────────────────────────────── */
.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}
.palette-swatch {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.palette-color {
  height: 80px;
  display: flex;
  align-items: flex-end;
  padding: 6px 8px;
  transition: height var(--transition);
}
.palette-swatch:hover .palette-color { height: 90px; }
.palette-lum-hint {
  font-size: .72rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  opacity: .7;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.palette-info {
  padding: 10px 10px 10px;
}
.palette-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 2px;
}
.palette-hex {
  font-size: .85rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: var(--text);
}
.palette-rgb {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.palette-copy-btn {
  background: rgba(255,61,0,.12);
  border: 1px solid rgba(255,61,0,.25);
  color: var(--orange);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
}
.palette-copy-btn:hover { background: rgba(255,61,0,.25); }

/* ── Watermark tool ──────────────────────────────────────────── */
.wm-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0 20px;
}

/* ── Word counter ────────────────────────────────────────────── */
.wc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.wc-stat-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.wc-stat-box--orange { border-color: rgba(255,61,0,.35); background: rgba(255,61,0,.07); }
.wc-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.wc-stat-box--orange .wc-stat-value { color: var(--orange); }
.wc-stat-label {
  font-size: .72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}

/* ── Case converter ──────────────────────────────────────────── */
.case-variants {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-variant-item {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.case-variant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0,0,0,.2);
  border-bottom: 1px solid var(--border);
}
.case-variant-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.case-variant-text {
  padding: 10px 14px;
  font-size: .95rem;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 40px;
  line-height: 1.6;
}

/* ── List sorter ─────────────────────────────────────────────── */
.list-sorter-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Invisible chars tool ────────────────────────────────────── */
.invis-render {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: 'Courier New', monospace;
  font-size: .9rem;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 300px;
  overflow-y: auto;
  color: var(--text);
}
.invis-char {
  display: inline-block;
  background: color-mix(in srgb, var(--ic-color) 25%, transparent);
  border: 1px solid var(--ic-color);
  color: var(--ic-color);
  border-radius: 3px;
  padding: 0 3px;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: help;
  vertical-align: middle;
}
.invis-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.invis-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
}
.invis-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}
.invis-legend-label {
  flex: 1;
  color: var(--text);
}
.invis-legend-code {
  font-family: 'Courier New', monospace;
  font-size: .78rem;
  color: var(--text-muted);
}
.invis-legend-count {
  font-weight: 700;
  color: var(--orange);
  min-width: 40px;
  text-align: right;
}

@media (max-width: 700px) {
  /* Utility override */
  .desktop-only { display: none !important; }
  .mobile-only  { display: revert !important; }

  /* Navbar hamburger */
  .nav-hamburger { display: flex; }
  .navbar { position: relative; }
  .navbar-inner { padding: 10px 16px; }
  .navbar-brand { font-size: 1.05rem; }
  .navbar-brand img { width: 32px; height: 32px; }
  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 2px solid var(--orange);
    flex-direction: column;
    padding: 10px 12px 14px;
    gap: 2px;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
  }
  .navbar-nav.open { display: flex; }
  .nav-link { padding: 11px 14px; font-size: .97rem; border-radius: 6px; }

  /* General layout */
  .app-detail-header { flex-direction: column; }
  .app-detail-img, .app-detail-img-placeholder { width: 80px; height: 80px; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 12px 0; }
  .apps-grid { grid-template-columns: 1fr; }
  .download-box { flex-direction: column; align-items: stretch; }
  .hero h1 { font-size: 1.8rem; }

  /* Larger touch targets for buttons */
  .btn { min-height: 42px; }
  .btn-sm { min-height: 36px; }

  /* Breadcrumb wraps gracefully */
  .breadcrumb { flex-wrap: wrap; }

  /* Tool cards */
  .tool-card-panel { padding: 16px; }
}

/* ── CSV tools ───────────────────────────────────────────────────── */
.csv-sep-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .88rem;
  transition: border-color var(--transition), background var(--transition);
}
.csv-sep-option:has(input:checked) {
  border-color: var(--orange);
  background: rgba(255,61,0,.07);
  color: var(--orange);
}
.csv-sep-option input[type=radio] {
  accent-color: var(--orange);
  cursor: pointer;
}
.csv-sep-option code {
  background: rgba(255,255,255,.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .8rem;
}

.csv-preview-wrap {
  background: rgba(0,0,0,.25);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  overflow-x: auto;
  max-height: 280px;
  overflow-y: auto;
}
.csv-preview-wrap table { min-width: 320px; font-size: .82rem; }
.csv-preview-wrap th { background: rgba(255,61,0,.1); color: var(--orange); }
.csv-preview-wrap th, .csv-preview-wrap td {
  padding: 5px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.csv-file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.csv-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(0,0,0,.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.csv-file-item-name {
  flex: 1;
  font-size: .88rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.csv-file-item-size {
  font-size: .78rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.csv-html-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  padding: 8px 18px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--transition), border-color var(--transition);
  margin-bottom: -1px;
}
.csv-html-tab.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.csv-html-tab:hover:not(.active) { color: var(--text); }

.csv-html-preview {
  background: #fff;
  color: #111;
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  max-height: 360px;
  overflow-y: auto;
  font-size: .88rem;
}

/* ── Security tools ──────────────────────────────────────────────── */
.pw-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: .6;
  padding: 4px;
  line-height: 1;
  transition: opacity var(--transition);
}
.pw-toggle-btn:hover { opacity: 1; }

.hdr-info-cell {
  background: rgba(0,0,0,.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
}

.dns-card {
  background: rgba(0,0,0,.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.dns-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.dns-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  border: 1px solid transparent;
  flex-shrink: 0;
}
.dns-details {
  font-size: .84rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.5;
}
.dns-record {
  display: block;
  font-size: .75rem;
  font-family: 'Courier New', monospace;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 12px;
  color: var(--text-muted);
  word-break: break-all;
  white-space: pre-wrap;
  margin-top: 6px;
}
.sec-badge {
  display: inline-block;
}

/* ── Developer tools ─────────────────────────────────────────────── */
.dev-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.dev-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 9px 16px;
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.dev-tab:hover { color: var(--text); background: rgba(255,255,255,.04); }
.dev-tab.active { color: var(--orange); border-bottom-color: var(--orange); background: rgba(255,61,0,.06); }

.dev-code-area {
  min-height: 220px;
  font-family: 'Courier New', Courier, monospace;
  font-size: .82rem;
  line-height: 1.55;
  resize: vertical;
}

.mini-lang-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 14px;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.mini-lang-btn:hover { border-color: var(--orange); color: var(--orange); background: rgba(255,61,0,.07); }
.mini-lang-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }

.url-ref-chip {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: .78rem;
  color: var(--text-muted);
}
