/* ==========================================================================
   account-2030.css  (8 september 2026)
   Gedeelde stijllaag voor /account/ en alle subpagina's. Laadt NA account.css
   en overschrijft de vlakke kaarten met een licht-systeem: een rustige aurora
   achter de inhoud, glasachtige kaarten met een lichtlijn aan de bovenrand en
   een zachte spot die met de muis meebeweegt (account-2030.js zet --mx/--my).
   Werkt in donker en licht via de bestaande --c-* tokens. Geen left-accent
   randen, geen emoji, respecteert prefers-reduced-motion.
   ========================================================================== */

:root {
  --a30-glow: 37, 99, 235;          /* brand blauw als rgb-triplet */
  --a30-violet: 124, 108, 246;
  --a30-cyan: 34, 184, 207;
  --a30-radius: 16px;
  --a30-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --a30-line: rgba(255, 255, 255, 0.34);
  --a30-surface: color-mix(in srgb, var(--c-bg-card) 90%, rgba(6, 8, 20, 0.9));
  --a30-surface-2: color-mix(in srgb, var(--c-bg-input) 82%, transparent);
  --a30-border: color-mix(in srgb, var(--c-border) 80%, rgba(255, 255, 255, 0.08));
  --a30-aurora-opacity: 0.62;
}
[data-theme="light"] {
  --a30-line: rgba(37, 99, 235, 0.22);
  --a30-surface: rgba(255, 255, 255, 0.86);
  --a30-surface-2: rgba(247, 249, 253, 0.9);
  --a30-border: #e3e7ef;
  --a30-aurora-opacity: 0.5;
}

/* ---- Aurora achter de inhoud ------------------------------------------- */
.content-wrapper { position: relative; isolation: isolate; overflow-x: clip; }
.content-wrapper::before {
  content: ""; position: absolute; left: 0; right: 0; top: -160px; height: 560px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58% 52% at 16% 14%, rgba(var(--a30-glow), 0.30), transparent 62%),
    radial-gradient(46% 50% at 80% 6%, rgba(var(--a30-violet), 0.22), transparent 62%),
    radial-gradient(38% 42% at 56% 46%, rgba(var(--a30-cyan), 0.12), transparent 62%);
  filter: blur(52px); opacity: var(--a30-aurora-opacity);
  animation: a30-drift 42s var(--a30-ease) infinite alternate;
}
@keyframes a30-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(3%, 2%, 0) scale(1.04); }
  100% { transform: translate3d(-2%, 4%, 0) scale(1.02); }
}

/* ---- Glaskaart: gedeelde anatomie ------------------------------------- */
.g-card {
  position: relative; background: var(--a30-surface); border: 1px solid var(--a30-border); border-radius: var(--a30-radius);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 48px -32px rgba(0, 0, 0, 0.6);
  transition: border-color 0.25s var(--a30-ease), transform 0.25s var(--a30-ease), box-shadow 0.25s var(--a30-ease);
}
[data-theme="light"] .g-card { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 18px 40px -30px rgba(15, 23, 42, 0.25); }
.g-card::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--a30-line), transparent);
}
.g-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--a30-glow), 0.16), transparent 46%);
  transition: opacity 0.35s var(--a30-ease);
}
.g-card:hover::after { opacity: 1; }
.g-card > * { position: relative; z-index: 1; }
a.g-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c-primary) 45%, var(--a30-border)); }

/* Welke bestaande onderdelen glaskaart worden (klasse wordt door account-2030.js gezet,
   maar de basisregels hieronder gelden ook zonder JS) */
.panel, .account-hero, .ov-tile, .acc-pagehead, .usage-section, .plan-card, .integration-card, .ig-tile, .ig-link, .settings-card {
  background: var(--a30-surface); border: 1px solid var(--a30-border); border-radius: var(--a30-radius);
}
.panel, .integration-card { overflow: hidden; }
.panel-header, .integration-header { border-bottom: 1px solid color-mix(in srgb, var(--a30-border) 70%, transparent); padding: 14px 20px; }
.panel-body, .integration-body { padding: 18px 20px; }
.panel-title, .integration-name { font-size: 0.88rem; font-weight: 650; letter-spacing: -0.01em; }
.plan-meta-item, .billing-card { background: var(--a30-surface-2); border: 1px solid var(--a30-border); border-radius: 12px; }

/* ---- Paginakop: slank, met lichtring om het icoon ---------------------- */
.acc-pagehead { padding: 14px 18px; margin-bottom: 18px; gap: 14px; }
.ph-icon { width: 40px; height: 40px; border-radius: 11px; position: relative;
  background: linear-gradient(160deg, color-mix(in srgb, var(--page-accent, var(--c-primary)) 26%, transparent), color-mix(in srgb, var(--page-accent, var(--c-primary)) 8%, transparent));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--page-accent, var(--c-primary)) 32%, transparent), 0 10px 22px -12px rgba(var(--a30-glow), 0.8); }
.ph-icon svg { width: 20px; height: 20px; }
.ph-text h2 { font-size: 1rem; }
.ph-text p { font-size: 0.76rem; }

/* ---- Tabbalk: zwevende glasbalk, actieve tab met gloed ------------------ */
.account-tabs { background: var(--a30-surface); border: 1px solid var(--a30-border); border-radius: 14px; padding: 5px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset; margin-bottom: 18px; }
.account-tab { border-radius: 9px; padding: 8px 14px; font-size: 0.77rem; }
.account-tabs .account-tab.active, .account-tabs a.account-tab.active {
  box-shadow: 0 8px 20px -10px rgba(var(--a30-glow), 0.95), 0 1px 0 rgba(255, 255, 255, 0.22) inset; }
.tab-divider { background: var(--a30-border); }

/* ---- Held (Overzicht) --------------------------------------------------- */
.account-hero { padding: 22px 26px; gap: 30px; }
.hero-avatar { width: 56px; height: 56px; border-radius: 16px; position: relative;
  background: linear-gradient(150deg, #3b82f6, #2563eb 55%, #4f46e5); box-shadow: 0 12px 28px -12px rgba(var(--a30-glow), 0.9); }
.hero-avatar::after { content: ""; position: absolute; inset: -5px; border-radius: 20px; border: 1px solid rgba(var(--a30-glow), 0.45); pointer-events: none;
  animation: a30-breathe 3.6s ease-in-out infinite; }
@keyframes a30-breathe { 0%, 100% { opacity: 0.35; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.035); } }
.hero-name { font-size: 1.22rem; letter-spacing: -0.02em; }
.hero-company { font-size: 0.8rem; }
.hero-stats { gap: 34px; }
.hero-stat { min-width: 110px; }
.hero-stat-label { font-size: 0.64rem; letter-spacing: 0.1em; }
.hero-stat-value { font-size: 1.55rem; font-weight: 720; letter-spacing: -0.035em; line-height: 1.05; }
.hero-stat-value.cyan { color: var(--c-text-bright); }
.hero-stat-value small { font-size: 0.78rem; color: var(--c-text-muted); font-weight: 500; letter-spacing: 0; margin-left: 2px; }
.usage-bar { height: 5px; border-radius: 3px; margin-top: 10px; background: color-mix(in srgb, var(--c-text-muted) 22%, transparent); }
.usage-fill { background: linear-gradient(90deg, #2563eb, #60a5fa); box-shadow: 0 0 12px rgba(var(--a30-glow), 0.7); }
.usage-fill.warning { background: linear-gradient(90deg, #d97706, #fbbf24); box-shadow: 0 0 12px rgba(251, 191, 36, 0.55); }

/* ---- Overzicht-tegels --------------------------------------------------- */
.overview-grid { gap: 14px; }
.ov-tile { padding: 18px 18px 16px; min-height: 164px; }
.ov-ic { width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tile) 26%, transparent), color-mix(in srgb, var(--tile) 8%, transparent));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tile) 30%, transparent); }
.ov-primary { font-size: 1.2rem; }
.ov-ring .rbg { stroke: color-mix(in srgb, var(--c-text-muted) 22%, transparent); }
.ov-ring .rfg { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--tile) 70%, transparent)); }
.ov-rows { border-top: 1px solid color-mix(in srgb, var(--a30-border) 70%, transparent); padding-top: 10px; margin-top: 12px; }

/* ---- "Wat nu" strook op het overzicht ----------------------------------- */
.ov-next { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 18px; }
.ov-next-title { font-size: 0.74rem; font-weight: 650; color: var(--c-text-bright); display: inline-flex; align-items: center; gap: 8px; margin-right: 4px; }
.ov-next-title .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--c-warning); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.6); animation: a30-pulse 2.2s ease-out infinite; }
.ov-next.all-good .ov-next-title .pulse { background: var(--c-success); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
@keyframes a30-pulse { 0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.55); } 100% { box-shadow: 0 0 0 9px rgba(251, 191, 36, 0); } }
.ov-next-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  color: var(--c-text); background: var(--a30-surface-2); border: 1px solid var(--a30-border); text-decoration: none !important; transition: border-color 0.2s, transform 0.2s, color 0.2s; }
.ov-next-chip svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ov-next-chip:hover { border-color: color-mix(in srgb, var(--c-primary) 50%, var(--a30-border)); color: var(--c-text-bright); transform: translateY(-1px); }
.ov-next-ok { font-size: 0.76rem; color: var(--c-text-muted); }

/* ---- Laadtoestand: shimmer i.p.v. "Laden..." en streepjes -------------- */
.acc-loading .skel { color: transparent !important; position: relative; border-radius: 6px; overflow: hidden; }
.acc-loading .skel::before { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c-text-muted) 14%, transparent), color-mix(in srgb, var(--c-text-muted) 30%, transparent), color-mix(in srgb, var(--c-text-muted) 14%, transparent));
  background-size: 200% 100%; animation: a30-shimmer 1.4s linear infinite; }
@keyframes a30-shimmer { 0% { background-position: 120% 0; } 100% { background-position: -80% 0; } }

/* ---- Knoppen, velden, meldingen ---------------------------------------- */
.btn-sm { border-radius: 10px; padding: 9px 16px; }
.btn-sm-primary { background: linear-gradient(180deg, #3b82f6, #2563eb); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 10px 22px -12px rgba(var(--a30-glow), 0.9); }
.btn-sm-primary:hover { opacity: 1; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 26px -12px rgba(var(--a30-glow), 1); }
.btn-sm-secondary { background: var(--a30-surface-2); border: 1px solid var(--a30-border); }
.btn-sm-secondary:hover { border-color: color-mix(in srgb, var(--c-primary) 40%, var(--a30-border)); }
.btn-sm:focus-visible, .form-input:focus-visible, .account-tab:focus-visible, .ov-tile:focus-visible, .ov-next-chip:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--c-primary) 70%, transparent); outline-offset: 2px; }
.form-input, .integration-card input[type="url"], .integration-card input[type="text"], .integration-card input[type="password"] {
  background: var(--a30-surface-2); border: 1px solid var(--a30-border); border-radius: 10px; }
.form-input:focus { box-shadow: 0 0 0 3px rgba(var(--a30-glow), 0.18), 0 0 18px -6px rgba(var(--a30-glow), 0.6); }
.status-box { border-radius: 12px; }

/* ---- Lichte thema: globale onderstreping van links uit de tegels houden -- */
[data-theme="light"] .main-content .ov-tile, [data-theme="light"] .main-content .ov-tile *, [data-theme="light"] .main-content .ov-next-chip,
[data-theme="light"] .main-content .ig-tile, [data-theme="light"] .main-content .ig-link { text-decoration: none !important; }

/* ---- Rijen in kaarten (gedeeld met integraties) ------------------------ */
.ig-row { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 14px 0; border-top: 1px solid color-mix(in srgb, var(--a30-border) 70%, transparent); }
.ig-row:first-child { border-top: none; padding-top: 0; }
.ig-row:last-child { padding-bottom: 0; }
.ig-row-text { min-width: 0; flex: 1; }
.ig-row-title { font-size: 0.82rem; font-weight: 600; color: var(--c-text-bright); margin: 0 0 3px; }
.ig-row-desc { font-size: 0.73rem; color: var(--c-text-muted); margin: 0; line-height: 1.55; }
.ig-row-ctl { flex-shrink: 0; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.ig-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ig-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.74rem; background: var(--a30-surface-2); border: 1px solid var(--a30-border); border-radius: 8px; padding: 7px 10px; color: var(--c-text); word-break: break-all; }
.ig-links { display: grid; gap: 8px; }
.ig-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--a30-border); border-radius: 10px; text-decoration: none !important; color: var(--c-text); font-size: 0.78rem; line-height: 1.4; background: var(--a30-surface-2); transition: border-color 0.15s; }
.ig-link:hover { border-color: color-mix(in srgb, var(--c-primary) 45%, var(--a30-border)); color: var(--c-text-bright); }
.ig-link svg { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Lege staat, gevarenzone, opslaan-balk, keuzemenu ------------------ */
.acc-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 34px 22px; border: 1px dashed var(--a30-border); border-radius: 14px; background: var(--a30-surface-2); }
.acc-empty svg { width: 34px; height: 34px; stroke: var(--c-primary); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.acc-empty-title { font-size: 0.92rem; font-weight: 650; color: var(--c-text-bright); margin: 4px 0 0; }
.acc-empty-desc { font-size: 0.78rem; color: var(--c-text-muted); max-width: 52ch; line-height: 1.55; margin: 0; }
.acc-empty .btn-sm { margin-top: 6px; }
.acc-danger { border-color: color-mix(in srgb, var(--c-error) 30%, var(--a30-border)); }
.acc-danger .panel-title { color: var(--c-text-bright); }
.acc-savebar { position: sticky; bottom: 14px; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; margin-top: 4px; border-radius: 14px;
  background: var(--a30-surface); border: 1px solid var(--a30-border); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6); }
.acc-savehint { font-size: 0.76rem; color: var(--c-text-muted); }
.acc-savebar.dirty .acc-savehint { color: var(--c-warning); }
select.form-input { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8a9a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; }
.plan-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: stretch; margin-bottom: 16px; }
.plan-hero .plan-card, .plan-hero .usage-section { margin-bottom: 0; }
.plan-name { font-size: 1.35rem; letter-spacing: -0.02em; }
.plan-price-value { font-size: 1.6rem; letter-spacing: -0.03em; color: var(--c-text-bright); }
.usage-count { color: var(--c-text-bright); font-size: 1.1rem; letter-spacing: -0.02em; }
.usage-bar-lg { height: 7px; background: color-mix(in srgb, var(--c-text-muted) 22%, transparent); }
.usage-fill-lg { background: linear-gradient(90deg, #2563eb, #60a5fa); box-shadow: 0 0 12px rgba(var(--a30-glow), 0.6); }
.check-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.check-row input { accent-color: var(--c-primary); margin-top: 3px; }
.check-label { font-size: 0.8rem; font-weight: 600; color: var(--c-text-bright); }
.check-desc { font-size: 0.72rem; color: var(--c-text-muted); margin-top: 2px; }
@media (max-width: 900px) { .plan-hero { grid-template-columns: 1fr; } }

/* ---- Bewegingsarm ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .content-wrapper::before, .hero-avatar::after, .ov-next-title .pulse, .acc-loading .skel::before { animation: none; }
  .g-card, .g-card::after, .ov-next-chip, .btn-sm { transition: none; }
}
@media (max-width: 768px) {
  .content-wrapper::before { height: 480px; }
  .account-hero { padding: 18px; }
  .hero-stats { gap: 20px; }
  .hero-stat-value { font-size: 1.3rem; }
}
