/* ── IVB Netwerk Portaal — v31: telecom consumer-look (KPN/Odido vibe) ──
   Merk: hemelsblauw #0050c0 → cyaan #20c0f0 (uit logo)
   Gevoel: luchtig, rond, vriendelijk, veel wit, zachte schaduwen */

:root {
  --primary: #0057c2;
  --primary-dark: #003d8f;
  --primary-light: #e8f1fd;
  --accent: #14a5e8;
  --sky: #e9f6fd;
  --bg: #f3f7fc;
  --card: #ffffff;
  --text: #16202b;
  --text-muted: #5d6b7c;
  --text-light: #94a1b1;
  --border: #e2e9f2;
  --border-light: #eff3f9;
  --success: #0d9e5f;
  --success-light: #e5f7ee;
  --warning: #e08c00;
  --warning-light: #fdf4e3;
  --danger: #e23c3c;
  --danger-light: #fdeeee;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow: 0 1px 3px rgba(22,42,70,0.05), 0 6px 20px rgba(22,42,70,0.05);
  --shadow-lg: 0 4px 12px rgba(22,42,70,0.08), 0 14px 38px rgba(22,42,70,0.10);
  --transition: 0.18s ease;
  --mono: 'JetBrains Mono', 'SF Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(20,165,232,0.10), transparent 60%),
    radial-gradient(900px 420px at -10% 0%, rgba(0,87,194,0.07), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-size: 14px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ── Monospace voor technische data ── */
.mono,
code.mono,
.ip-mono,
.vmid-mono {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: -0.02em;
}
td .mono, td.mono, .table .mono { font-size: 0.78rem; }

/* ── Navbar: wit, zwevend, pill-highlight ── */
.navbar {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.navbar-logo { height: 32px; width: auto; }

.navbar-nav {
  display: flex;
  align-items: center;
  list-style: none;
  height: 60px;
  gap: 0.15rem;
}

.navbar-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.42rem 0.9rem;
  height: auto;
  display: flex;
  align-items: center;
  border-radius: var(--radius-pill);
  border-bottom: none;
  transition: all var(--transition);
}

.navbar-nav a:hover { color: var(--text); background: var(--border-light); }
.navbar-nav a.active {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  box-shadow: 0 2px 8px rgba(0,87,194,0.30);
}

.navbar-user { display: flex; align-items: center; gap: 0.6rem; }

.navbar-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.72rem;
}

.navbar-name { font-weight: 600; font-size: 0.86rem; color: var(--text); }

/* ── Login: merk-blauwe lucht ── */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(900px 500px at 80% 15%, rgba(32,192,240,0.35), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(0,87,194,0.5), transparent 60%),
    linear-gradient(160deg, #0b4fae 0%, #0a6ad0 45%, #14a5e8 100%);
  padding: 1rem;
}

.login-card {
  background: var(--card); border-radius: 22px;
  padding: 2.4rem; box-shadow: 0 24px 70px rgba(4,32,72,0.45); width: 100%; max-width: 410px;
  border: none;
}

.login-logo { text-align: center; margin-bottom: 1.75rem; }
.login-logo-img { width: 70px; height: 70px; object-fit: contain; margin-bottom: 0.85rem; }
.login-logo h1 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.2rem; letter-spacing: -0.02em; }
.login-logo p { color: var(--text-muted); font-size: 0.88rem; }

.form-group { margin-bottom: 1.15rem; }
.form-label { display: block; font-weight: 600; font-size: 0.82rem; margin-bottom: 0.38rem; }
.form-control {
  width: 100%; padding: 0.72rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 0.92rem; background: #fbfdff;
  transition: border var(--transition), box-shadow var(--transition);
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(20,165,232,0.15); background: #fff; }

.btn {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.68rem 1.35rem;
  border: none; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.88rem;
  cursor: pointer; transition: all var(--transition);
  letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.985); }
.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: white; width: 100%; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,87,194,0.30);
}
.btn-primary:hover { box-shadow: 0 6px 18px rgba(0,87,194,0.40); filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--text-muted); padding: 0.4rem 0.85rem; }
.btn-ghost:hover { color: var(--text); background: var(--border-light); border-radius: var(--radius-pill); }
.btn-sm { padding: 0.38rem 0.8rem; font-size: 0.78rem; }
.btn-outline {
  background: #fff; color: var(--primary); border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); background: var(--sky); }

.alert { padding: 0.75rem 1.1rem; border-radius: var(--radius); font-size: 0.86rem; margin-bottom: 1rem; border: 1px solid transparent; }
.alert-error { background: var(--danger-light); color: #b02a2a; border-color: #f4d3d3; }
.alert-success { background: var(--success-light); color: #0a6b40; border-color: #cdeedd; }
.alert-warning { background: var(--warning-light); color: #8a5700; border-color: #f2e2c0; }

/* ── Dashboard ── */
.dashboard { max-width: 1080px; margin: 0 auto; padding: 1.75rem 1.5rem 3rem; }

/* ── Hero: merk-gradiënt kaart, zacht ── */
.hero {
  background: linear-gradient(120deg, #0b58c4 0%, #0f7ad8 55%, #14a5e8 100%);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10,90,190,0.28);
}
.hero::before {
  content: ''; position: absolute; right: -70px; top: -90px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,0.10);
}
.hero::after {
  content: ''; position: absolute; right: 90px; bottom: -110px;
  width: 210px; height: 210px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
}

.hero-sm { padding: 1.15rem 1.5rem; margin-bottom: 1.15rem; }
.hero-sm h1 { font-size: 1.05rem; margin: 0; }

.hero-content { flex: 1; position: relative; z-index: 2; color: #fff; }
.hero-content h1 { font-size: 1.28rem; font-weight: 800; margin-bottom: 0.2rem; color: #fff; letter-spacing: -0.02em; }
.hero-content p { font-size: 0.87rem; opacity: 0.92; }

.hero-icon-wrap {
  position: relative; z-index: 2; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 14px;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
}
.hero-icon-wrap svg { width: 20px; height: 20px; color: #fff; }

/* ── Quick stats ── */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem; margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.05rem 0.85rem; box-shadow: var(--shadow);
  text-align: center; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.stat-icon {
  width: 34px; height: 34px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.15rem;
}
.stat-icon svg { width: 16px; height: 16px; }
.stat-card.blue .stat-icon { background: var(--primary-light); color: var(--primary); }
.stat-card.green .stat-icon { background: var(--success-light); color: var(--success); }
.stat-card.orange .stat-icon { background: var(--warning-light); color: var(--warning); }
.stat-card.purple .stat-icon { background: #f1eafd; color: #7b3fa8; }

.stat-num { font-size: 1.25rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.stat-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }

/* ── Navigation tiles: wit met kleurrijke icon-chips ── */
.tiles-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem; margin-bottom: 1.5rem;
}
.tiles-compact {
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.tile-sm .tile-top { height: auto; padding: 0.9rem 0.9rem 0; }
.tile-sm .tile-icon-wrap { width: 26px; height: 26px; border-radius: 9px; }
.tile-sm .tile-icon-wrap svg { width: 13px; height: 13px; }
.tile-sm .tile-body { padding: 0.55rem 0.9rem 0.85rem; }
.tile-sm .tile-title { font-size: 0.8rem; }

.tile {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all var(--transition); text-decoration: none;
  display: flex; flex-direction: column;
  overflow: hidden;
}

.tile:hover { box-shadow: var(--shadow-lg); border-color: #cdd9ea; transform: translateY(-3px); }

.tile-top {
  padding: 1.05rem 1.1rem 0; display: flex; align-items: center;
}
.tile-top.blue, .tile-top.orange, .tile-top.green { background: transparent; }

.tile-icon-wrap {
  width: 34px; height: 34px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
}
.tile-icon-wrap svg { width: 16px; height: 16px; }
.tile-top.blue .tile-icon-wrap { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; box-shadow: 0 3px 8px rgba(0,87,194,0.25); }
.tile-top.orange .tile-icon-wrap { background: linear-gradient(135deg, #f7a417, #f97316); color: #fff; box-shadow: 0 3px 8px rgba(247,140,20,0.25); }
.tile-top.green .tile-icon-wrap { background: linear-gradient(135deg, #0d9e5f, #22c55e); color: #fff; box-shadow: 0 3px 8px rgba(13,158,95,0.25); }

.tile-body { padding: 0.75rem 1.1rem 1rem; position: relative; }
.tile-title { font-weight: 700; font-size: 0.9rem; color: var(--text); margin-bottom: 0.12rem; letter-spacing: -0.01em; }
.tile-desc { font-size: 0.78rem; color: var(--text-muted); }
.tile-arrow { position: absolute; bottom: 0.95rem; right: 1rem; color: var(--text-light); font-size: 0.9rem; transition: transform var(--transition), color var(--transition); }
.tile:hover .tile-arrow { transform: translateX(3px); color: var(--primary); }

/* ── SIM cards ── */
.sim-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }

.sim-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}

.sim-top {
  padding: 1.15rem 1.4rem; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(115deg, var(--sky) 0%, #f4faff 100%);
  border-bottom: 1px solid var(--border-light);
}

.sim-phone { font-size: 1.05rem; font-weight: 800; font-family: var(--mono); letter-spacing: 0.01em; }
.sim-product { font-size: 0.83rem; color: var(--text-muted); margin-top: 0.12rem; }

.sim-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.75rem; font-weight: 700; color: var(--success);
  background: var(--success-light); padding: 0.3rem 0.75rem; border-radius: var(--radius-pill);
}
.sim-badge.inactive { color: var(--text-light); background: var(--border-light); }

.sim-body { padding: 1.35rem; display: flex; gap: 1.35rem; align-items: center; }

.gauge { width: 98px; height: 98px; position: relative; flex-shrink: 0; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-bg { fill: none; stroke: var(--border-light); stroke-width: 7.5; }
.gauge-fill { fill: none; stroke-width: 7.5; stroke-linecap: round; transition: stroke-dashoffset 0.8s ease; }
.gauge-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.gauge-num { font-size: 1.25rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.gauge-label { font-size: 0.62rem; color: var(--text-muted); margin-top: 0.15rem; font-weight: 600; }

.sim-usage { flex: 1; }

.usage-block { margin-bottom: 1rem; }
.usage-block:last-child { margin-bottom: 0; }
.usage-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.35rem; }
.usage-label { font-size: 0.83rem; font-weight: 600; }
.usage-value { font-size: 0.82rem; color: var(--text-muted); font-family: var(--mono); }
.progress-bar { height: 8px; background: var(--border-light); border-radius: var(--radius-pill); overflow: hidden; }
.progress-fill { height: 100%; border-radius: var(--radius-pill); transition: width 0.6s ease; background: linear-gradient(90deg, var(--primary), var(--accent)); }

.sim-meta { display: flex; gap: 1.5rem; padding: 0 1.35rem 1.35rem; flex-wrap: wrap; }
.sim-meta-item { display: flex; flex-direction: column; }
.sim-meta-label { font-size: 0.66rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.sim-meta-value { font-size: 0.8rem; font-weight: 600; margin-top: 0.12rem; font-family: var(--mono); }

.sim-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 1.35rem; background: #fafcff;
  border-top: 1px solid var(--border-light); font-size: 0.83rem;
}
.usage-warning { color: var(--danger); font-weight: 600; font-size: 0.78rem; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: auto; box-shadow: var(--shadow);
}

.card-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.card .table {
  min-width: 700px;
}

.contact-card {
  background: linear-gradient(120deg, #0b58c4 0%, #14a5e8 100%);
  border-radius: var(--radius-lg); padding: 1.4rem;
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
  color: white; position: relative; overflow: hidden;
  box-shadow: 0 8px 24px rgba(10,90,190,0.25);
}
.contact-card::before {
  content: ''; position: absolute; right: -30px; top: -40px;
  width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,0.10);
}

.contact-icon-wrap {
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; z-index: 2;
}
.contact-icon-wrap svg { width: 22px; height: 22px; }

.contact-card h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 0.1rem; z-index: 2; position: relative; }
.contact-card p { font-size: 0.83rem; opacity: 0.92; margin-bottom: 0.55rem; z-index: 2; position: relative; }
.contact-card .btn-primary { background: white; color: var(--primary); width: auto; z-index: 2; position: relative; box-shadow: none; }
.contact-card .btn-primary:hover { background: #f0f7ff; }

/* ── Tabellen: zacht maar leesbaar ── */
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 0.68rem; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--border);
  background: #f7fafd;
}
.table td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border-light); font-size: 0.85rem; }
.table-compact th { padding: 0.45rem 0.7rem; font-size: 0.66rem; }
.table-compact td { padding: 0.5rem 0.7rem; font-size: 0.8rem; }
.table tr:last-child td { border-bottom: none; }
.table-hover tbody tr { transition: background var(--transition); }
.table-hover tbody tr:hover { background: #f4f9ff; }

.badge {
  display: inline-block; padding: 0.22rem 0.65rem; border-radius: var(--radius-pill);
  font-size: 0.7rem; font-weight: 700;
}
.bg-success { background: var(--success-light); color: #0a6b40; }
.bg-warning { background: var(--warning-light); color: #8a5700; }
.bg-danger { background: var(--danger-light); color: #b02a2a; }
.bg-info { background: var(--primary-light); color: var(--primary); }
.bg-secondary { background: var(--border-light); color: var(--text-muted); }

.empty-state { text-align: center; padding: 2.5rem 1.5rem; color: var(--text-muted); }
.empty-state .icon { font-size: 1.6rem; margin-bottom: 0.5rem; opacity: 0.45; }
.empty-state p { margin-bottom: 0.4rem; }
.text-muted { color: var(--text-light); font-size: 0.83rem; }

.dashboard-footer {
  text-align: center; padding: 1.75rem 0 0; margin-top: 2rem;
  color: var(--text-light); font-size: 0.78rem;
}
.dashboard-footer p { margin-bottom: 0.2rem; }
.login-footer { text-align: center; margin-top: 1.5rem; font-size: 0.83rem; color: var(--text-muted); }
.login-footer a { color: var(--primary); font-weight: 600; }

/* ── Admin: donkerblauwe sidebar, zelfde merktaal ── */
.admin-body { background: var(--bg); }

.admin-sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: 222px;
  background: linear-gradient(180deg, #0d2b57 0%, #0a2145 100%);
  color: #b6c6dd;
  display: flex; flex-direction: column;
  z-index: 200; overflow-y: auto;
}
.sidebar-logo {
  padding: 1.05rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 0.5rem;
}
.sidebar-logo-img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.sidebar-nav { padding: 0.55rem 0; flex: 1; }
.sidebar-link {
  display: block; padding: 0.58rem 1.25rem;
  font-size: 0.84rem; color: #b6c6dd;
  transition: all 0.15s ease;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.sidebar-link:hover { background: rgba(255,255,255,0.06); color: white; }
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(20,165,232,0.22), transparent);
  color: white; border-left-color: #2fb9f2;
}
.sidebar-section {
  padding: 0.85rem 1.25rem 0.3rem; font-size: 0.62rem;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: #63819f; font-weight: 700;
}
.sidebar-link { display: flex; align-items: center; gap: 0.6rem; }
.sidebar-ic { display: inline-flex; width: 17px; height: 17px; flex: 0 0 17px; align-items: center; justify-content: center; opacity: 0.75; }
.sidebar-link.active .sidebar-ic, .sidebar-link:hover .sidebar-ic { opacity: 1; }
.sidebar-txt { flex: 1; }
.sidebar-badge {
  background: #e53935; color: #fff; font-size: 0.62rem; font-weight: 700;
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.sidebar-foot { border-top: 1px solid rgba(255,255,255,0.08); padding: 0.4rem 0 0.9rem; }
.sidebar-logout { color: #8fa5c0; }
.topbar-burger { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 0.3rem; }
@media (max-width: 860px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.2s ease; }
  .admin-sidebar.open { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,0.3); }
  .admin-main { margin-left: 0; }
  .topbar-burger { display: inline-flex; }
}

.admin-main {
  margin-left: 222px; min-height: 100vh;
  display: flex; flex-direction: column;
}
.admin-topbar {
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem; height: 54px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.topbar-title { font-weight: 800; font-size: 0.98rem; color: var(--text); letter-spacing: -0.01em; }
.topbar-right { display: flex; align-items: center; gap: 0.75rem; }
.topbar-user { display: flex; align-items: center; gap: 0.5rem; font-size: 0.83rem; color: var(--text-muted); }
.topbar-user .navbar-avatar { width: 28px; height: 28px; font-size: 0.66rem; }

.admin-content { padding: 1.3rem; flex: 1; }
.admin-content .dashboard { max-width: none; padding: 0; margin: 0; }

.admin-content .welcome {
  background: var(--card); border-radius: var(--radius); padding: 0.85rem 1.1rem;
  margin-bottom: 1.1rem; border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.admin-content .welcome h1 { font-size: 1rem; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.admin-content .welcome p { font-size: 0.8rem; color: var(--text-muted); margin: 0.18rem 0 0; }

.admin-content .card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.admin-content .card .table { min-width: auto; }

.admin-content .section-header {
  margin-bottom: 0.75rem; display: flex; align-items: center; justify-content: space-between;
  padding: 0 0.2rem;
}
.admin-content .section-header h2 { font-size: 0.88rem; font-weight: 800; letter-spacing: -0.01em; }
.admin-content .section-count { font-size: 0.74rem; color: var(--text-muted); }

.admin-content .table th {
  font-size: 0.66rem; font-weight: 700; padding: 0.5rem 0.75rem;
  background: #f7fafd; border-bottom: 1px solid var(--border-light);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.admin-content .table td { padding: 0.55rem 0.75rem; font-size: 0.81rem; border-bottom: 1px solid var(--border-light); }
.admin-content .table tr:hover td { background: #f6fafd; }

.admin-content .hero { margin-bottom: 1.1rem; padding: 1.1rem 1.4rem; }
.admin-content .hero h1 { font-size: 1rem; }
.admin-content .hero p { font-size: 0.8rem; }

.admin-content .stats-row { margin-bottom: 1.1rem; }
.admin-content .tiles-row { margin-bottom: 1.1rem; }

.admin-content .contact-card { margin-bottom: 1.1rem; }

.admin-content .ip-table { width: 100%; border-collapse: collapse; }
.admin-content .ip-table th, .admin-content .ip-table td {
  padding: 0.5rem 0.75rem; font-size: 0.8rem; border-bottom: 1px solid var(--border-light);
  text-align: left;
}
.admin-content .ip-table th { background: #f7fafd; font-weight: 700; font-size: 0.66rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; }
.admin-content .ip-table tr:hover td { background: #f6fafd; }
.admin-content .ip-table td.mono, .admin-content .ip-table .mono { font-family: var(--mono); font-size: 0.76rem; }

.admin-content .form-group { margin-bottom: 1rem; }
.admin-content .form-label { font-size: 0.8rem; }
.admin-content .form-control { font-size: 0.86rem; }
.admin-content .btn { font-size: 0.85rem; }
.admin-content .alert { font-size: 0.8rem; margin-bottom: 1rem; }

.admin-content h1, .admin-content h2, .admin-content h3 { margin-top: 0; }
.admin-content p { font-size: 0.83rem; }
.admin-content .text-muted { font-size: 0.78rem; }
.admin-content .empty-state { padding: 1.5rem 1rem; font-size: 0.83rem; }

/* WHMCS stat widgets */
.whmcs-stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem; margin-bottom: 1.1rem;
}
.whmcs-stat {
  background: var(--card); border-radius: var(--radius-lg); padding: 0.9rem;
  display: flex; align-items: center; gap: 0.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.whmcs-stat-icon {
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.whmcs-blue .whmcs-stat-icon { background: var(--primary-light); }
.whmcs-green .whmcs-stat-icon { background: var(--success-light); }
.whmcs-orange .whmcs-stat-icon { background: var(--warning-light); }
.whmcs-red .whmcs-stat-icon { background: var(--danger-light); }
.whmcs-purple .whmcs-stat-icon { background: #f1eafd; }
.whmcs-stat-num { font-size: 1.1rem; font-weight: 800; line-height: 1.1; color: var(--text); font-family: var(--mono); letter-spacing: -0.02em; }
.whmcs-stat-label { font-size: 0.68rem; color: var(--text-muted); font-weight: 500; }

/* WHMCS panels */
.whmcs-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}
.whmcs-panel {
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}
.whmcs-panel-header {
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
  background: #f7fafd;
}
.whmcs-panel-header h3 { font-size: 0.85rem; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.whmcs-panel-link { font-size: 0.76rem; color: var(--primary); text-decoration: none; font-weight: 600; }
.whmcs-panel-link:hover { text-decoration: underline; }
.whmcs-panel-body { padding: 0; }
.whmcs-panel-body > .table { width: 100%; min-width: auto; }
.whmcs-panel-body > p { padding: 1rem; margin: 0; }
.whmcs-empty { padding: 1.5rem 1rem; text-align: center; color: var(--text-muted); font-size: 0.83rem; }

.whmcs-table { width: 100%; border-collapse: collapse; }
.whmcs-table th {
  text-align: left; font-size: 0.66rem; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border-light);
  background: #f7fafd;
}
.whmcs-table td {
  padding: 0.55rem 0.75rem; font-size: 0.81rem;
  border-bottom: 1px solid var(--border-light);
}
.whmcs-table tr:last-child td { border-bottom: none; }
.whmcs-table tr:hover td { background: #f6fafd; }
.whmcs-table .muted { color: var(--text-muted); }

.whmcs-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 1rem; }
.whmcs-action-btn {
  display: inline-flex; align-items: center; gap: 0.42rem;
  padding: 0.55rem 1rem; border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 600;
  background: #fff; border: 1.5px solid var(--border);
  color: var(--text); text-decoration: none;
  transition: all 0.15s ease;
}
.whmcs-action-btn:hover {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: white; border-color: transparent;
  box-shadow: 0 3px 10px rgba(0,87,194,0.30);
}

/* Admin tabs */
.admin-tabs {
  display: flex; gap: 0.3rem; margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border); padding-bottom: 0;
  flex-wrap: wrap;
}
.admin-tab {
  padding: 0.55rem 1rem; font-size: 0.8rem; font-weight: 700;
  color: var(--text-muted); text-decoration: none;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px;
  transition: all 0.15s ease; border-radius: 8px 8px 0 0;
}
.admin-tab:hover { color: var(--text); background: var(--border-light); }
.admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Modals: zacht zwevend */
.modal-overlay {
  background: rgba(13, 35, 66, 0.45) !important;
  backdrop-filter: blur(3px);
}

@media (max-width: 768px) {
  .navbar { padding: 0 1rem; height: auto; flex-wrap: wrap; }
  .navbar-nav { gap: 0; order: 3; width: 100%; height: auto; overflow-x: auto; }
  .navbar-nav a { padding: 0.45rem 0.75rem; height: auto; white-space: nowrap; border-bottom: 0; }
  .navbar-nav a.active { border-bottom: 0; }
  .navbar-name { display: none; }
  .dashboard { padding: 1.1rem 1rem 2rem; }
  .hero { flex-direction: column; align-items: flex-start; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .tiles-row { grid-template-columns: 1fr; }
  .tiles-compact { grid-template-columns: 1fr 1fr; }
  .sim-body { flex-direction: column; gap: 1rem; }
  .table { font-size: 0.8rem; }
  .table th, .table td { padding: 0.55rem 0.7rem; }
  .contact-card { flex-direction: column; text-align: center; }
  .admin-sidebar { position: fixed; left: -222px; width: 200px; transition: left 0.2s; }
  .admin-sidebar.open { left: 0; }
  .admin-main { margin-left: 0; }
  .whmcs-stats { grid-template-columns: 1fr 1fr; }
  .whmcs-grid { grid-template-columns: 1fr; }
}