*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:    #1a6bff;
  --brand-d:  #0f52d4;
  --accent:   #4d9eff;
  --warn:     #e8a000;
  --warn-d:   #c47f00;
  --bg:       #0b1929;
  --bg2:      #0f2240;
  --card-bg:  #0d1e38;
  --card-border: #1a3a60;
  --text:     #ffffff;
  --sub:      #8bacc8;
  --radius:   14px;
  --shadow:   0 4px 24px rgba(0,0,0,.4);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Header ── */
header {
  width: 100%;
  background: linear-gradient(135deg, #0b1929 0%, #0d2040 100%);
  border-bottom: 1px solid var(--card-border);
  padding: 20px 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,.4);
}

.logo-wrap {
  height: 44px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-wrap img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: none;
}

.logo-wrap .logo-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .03em;
  color: #fff;
}

.logo-placeholder .logo-icon {
  width: 36px;
  height: 36px;
  border: 2.5px solid var(--brand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.header-text h1 { font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.header-text p  { font-size: .82rem; color: var(--accent); margin-top: 3px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }

/* ── Main ── */
main {
  width: 100%;
  max-width: 980px;
  padding: 56px 24px 80px;
}

.intro {
  text-align: center;
  margin-bottom: 44px;
}

.intro h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro p { color: var(--sub); font-size: .95rem; line-height: 1.6; }

/* ── Grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* ── Card ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  border-top: 3px solid var(--brand);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(26,107,255,.2);
  border-color: var(--brand);
}

.card.warn-card { border-top-color: var(--warn); }
.card.warn-card:hover { box-shadow: 0 12px 40px rgba(232,160,0,.2); border-color: var(--warn); }

.card-icon  { font-size: 2.4rem; line-height: 1; }
.card-title { font-size: 1.05rem; font-weight: 700; color: #fff; }
.card-desc  { font-size: .88rem; color: var(--sub); line-height: 1.6; flex: 1; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: background .15s, box-shadow .15s;
}

.btn-primary           { background: var(--brand); color: #fff; }
.btn-primary:hover     { background: var(--brand-d); box-shadow: 0 4px 16px rgba(26,107,255,.4); }

.btn-warn              { background: var(--warn); color: #fff; }
.btn-warn:hover        { background: var(--warn-d); box-shadow: 0 4px 16px rgba(232,160,0,.35); }

.btn-ghost {
  background: transparent;
  color: var(--sub);
  border: 1.5px solid var(--card-border);
  padding: 11px 22px;
}
.btn-ghost:hover { background: var(--bg2); color: #fff; }

/* ── Dialog ── */
.dialog-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.dialog-overlay.open { display: flex; }

.dialog {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  padding: 36px 32px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: pop .2s ease;
}

@keyframes pop {
  from { transform: scale(.93); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.dialog-icon { font-size: 2.8rem; text-align: center; }
.dialog h3   { font-size: 1.15rem; font-weight: 700; text-align: center; color: #fff; }
.dialog p    { font-size: .9rem; color: var(--sub); line-height: 1.6; text-align: center; }

.dialog-checks {
  background: rgba(232,160,0,.08);
  border: 1px solid rgba(232,160,0,.3);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dialog-checks p {
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  text-align: left;
  margin-bottom: 4px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  color: var(--sub);
  text-align: left;
}

.check-item span:first-child { flex-shrink: 0; }

.dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ── */
footer {
  margin-top: auto;
  padding: 20px;
  font-size: .78rem;
  color: #3a5a7a;
  text-align: center;
}
