:root {
  --sky: #38bdf8;
  --sky-dark: #0284c7;
  --navy: #0f172a;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f172a;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 24px 12px;
}
.phone {
  width: 100%;
  max-width: 390px;
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,.35);
  min-height: 640px;
  display: flex;
  flex-direction: column;
}
.header {
  background: linear-gradient(180deg, #e0f2fe 0%, var(--bg) 100%);
  padding: 40px 24px 28px;
  text-align: center;
}
.logo {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--sky);
  margin: 0 auto 16px;
  display: grid; place-items: center;
  color: white; font-size: 28px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(56,189,248,.4);
  overflow: hidden;
}
.logo img { width: 100%; height: 100%; object-fit: cover; }
h1 { font-size: 1.5rem; color: var(--navy); font-weight: 700; }
.sub { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.links { padding: 8px 20px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
a.btn {
  display: flex; align-items: center; gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 1.05rem;
  transition: border-color .15s, box-shadow .15s;
}
a.btn:active, a.btn:hover {
  border-color: var(--sky);
  box-shadow: 0 4px 14px rgba(56,189,248,.2);
}
/* icon base moved below */
.chev { margin-left: auto; color: #cbd5e1; font-size: 1.2rem; }
.footer {
  text-align: center; padding: 16px; color: var(--muted); font-size: .75rem;
}
.footer strong { color: var(--sky-dark); }
.footer a.back { color: var(--sky-dark); text-decoration: none; font-weight: 600; font-size: .9rem; }
.note {
  max-width: 390px; margin: 16px auto 0; color: #94a3b8;
  font-size: .8rem; text-align: center; line-height: 1.4;
}
.empty { color: var(--muted); text-align: center; padding: 24px 8px; }
.wifi-card {
  margin: 8px 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.wifi-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.wifi-row:last-of-type { border-bottom: none; }
.wifi-label { color: var(--muted); }
.wifi-val { color: var(--navy); font-weight: 700; word-break: break-all; text-align: right; }
.copy-btn {
  width: 100%; margin-top: 16px; padding: 14px;
  border: none; border-radius: 12px;
  background: var(--sky); color: white; font-weight: 700; font-size: 1rem;
  cursor: pointer;
}
.copy-btn:active { opacity: .9; }
.wifi-hint { margin-top: 12px; font-size: .8rem; color: var(--muted); text-align: center; line-height: 1.4; }

/* Professional icon badges */
.icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; flex-shrink: 0;
  background: #e0f2fe;
}
.icon svg { display: block; }
.btn-label { flex: 1; text-align: left; }
.icon-menu {
  background: linear-gradient(145deg, #f59e0b, #d97706);
  border-radius: 10px;
}
.icon-wifi {
  background: var(--wifi-blue, #5BB4E5);
  border-radius: 50%;
}
.icon-google {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
}
.icon-instagram {
  background: transparent;
  border-radius: 12px;
  padding: 0;
}
.icon-instagram svg { width: 40px; height: 40px; }
.icon-sudoku {
  background: linear-gradient(145deg, #8b5cf6, #6d28d9);
  border-radius: 10px;
}
.icon-custom {
  background: #e0f2fe;
  border-radius: 10px;
}
.logo.logo-wifi {
  background: var(--wifi-blue, #5BB4E5);
}
.logo.logo-wifi svg { width: 28px; height: 28px; }
