:root {
  --gp-bg: #050915;
  --gp-bg-soft: #071122;
  --gp-sidebar: rgba(6, 12, 27, .92);
  --gp-card: rgba(13, 27, 51, .72);
  --gp-card-2: rgba(18, 34, 63, .82);
  --gp-line: rgba(146, 167, 255, .16);
  --gp-line-strong: rgba(130, 106, 255, .36);
  --gp-text: #f6f8ff;
  --gp-muted: rgba(226, 232, 255, .66);
  --gp-muted-2: rgba(226, 232, 255, .46);
  --gp-blue: #56d6ff;
  --gp-purple: #7c4dff;
  --gp-purple-2: #9e7bff;
  --gp-green: #61ffc3;
  --gp-yellow: #ffe082;
  --gp-red: #ff7f9c;
  --gp-radius: 22px;
  --gp-shadow: 0 22px 70px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
  background-color: var(--gp-bg);
}

html {
  overscroll-behavior-y: none;
}

body.gp-dashboard {
  margin: 0;
  min-height: 100vh;
  color: var(--gp-text);
  background-color: var(--gp-bg);
  background:
    radial-gradient(circle at 18% 2%, rgba(86, 214, 255, .18), transparent 29%),
    radial-gradient(circle at 88% 8%, rgba(124, 77, 255, .24), transparent 30%),
    linear-gradient(180deg, var(--gp-bg) 0%, #07111f 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; }

.gp-app-shell {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  min-height: 100vh;
}

.gp-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 14px;
  background: linear-gradient(180deg, rgba(5, 10, 24, .96), rgba(6, 12, 27, .88));
  border-right: 1px solid var(--gp-line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.gp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 8px 14px;
}

.gp-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(124,77,255,.10));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 24px rgba(0,0,0,.22);
  font-size: 1.2rem;
  font-weight: 900;
}

.gp-brand-text strong {
  display: block;
  font-size: .96rem;
  letter-spacing: -.02em;
}

.gp-brand-text span {
  display: block;
  color: var(--gp-muted-2);
  font-size: .78rem;
  margin-top: 2px;
}

.gp-nav {
  display: grid;
  gap: 8px;
}

.gp-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 14px;
  color: rgba(246, 248, 255, .72);
  border: 1px solid transparent;
  transition: .18s ease;
  font-weight: 750;
  font-size: .92rem;
}

.gp-nav-link i { font-size: 1rem; opacity: .9; }

.gp-nav-link:hover,
.gp-nav-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(86, 214, 255, .13), rgba(124, 77, 255, .17));
  border-color: rgba(146, 167, 255, .20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 26px rgba(0,0,0,.22);
}

.gp-sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 16px;
}

.gp-sidebar-for {
  color: var(--gp-muted);
  font-size: .8rem;
  font-weight: 750;
  padding: 0 8px;
}

.gp-main {
  min-width: 0;
  padding: 28px clamp(18px, 3vw, 48px) 54px;
}

.gp-mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.gp-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.gp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gp-muted);
  font-weight: 800;
  font-size: .86rem;
  margin-bottom: 8px;
}

.gp-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gp-blue), var(--gp-purple-2));
  box-shadow: 0 0 24px rgba(86, 214, 255, .7);
}

.gp-page-title {
  font-size: clamp(1.8rem, 3.1vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 900;
  margin: 0;
}

.gp-page-subtitle {
  margin: 9px 0 0;
  color: var(--gp-muted);
  line-height: 1.6;
  max-width: 780px;
}

.gp-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gp-btn {
  appearance: none;
  border: 0;
  min-height: 42px;
  border-radius: 14px;
  padding: 11px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
  transition: .18s ease;
}

.gp-btn:hover { transform: translateY(-1px); }
.gp-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.gp-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #4f7dff, #7c4dff 62%, #a855f7);
  box-shadow: 0 14px 30px rgba(124, 77, 255, .28);
}

.gp-btn-soft {
  color: #fff;
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .13);
}

.gp-btn-danger {
  color: #ffd6dd;
  background: rgba(255, 127, 156, .12);
  border: 1px solid rgba(255, 127, 156, .23);
}

.gp-btn-wide { width: 100%; }
.gp-btn-small { min-height: 36px; padding: 8px 12px; border-radius: 12px; font-size: .88rem; }

.gp-content-grid { display: grid; gap: 20px; }

.gp-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.gp-stat-card {
  border-radius: var(--gp-radius);
  border: 1px solid var(--gp-line);
  background: linear-gradient(180deg, rgba(17, 34, 65, .78), rgba(8, 17, 34, .72));
  padding: 18px;
  min-height: 116px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.gp-stat-label {
  color: var(--gp-muted);
  font-size: .86rem;
  font-weight: 750;
  line-height: 1.25;
  min-height: 34px;
}

.gp-stat-value {
  margin-top: 8px;
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.055em;
}

.gp-stat-foot {
  margin-top: 8px;
  color: var(--gp-muted-2);
  font-size: .78rem;
  font-weight: 750;
}

.gp-card {
  border-radius: var(--gp-radius);
  border: 1px solid var(--gp-line);
  background: linear-gradient(180deg, rgba(15, 29, 55, .78), rgba(8, 17, 34, .70));
  box-shadow: var(--gp-shadow), inset 0 1px 0 rgba(255,255,255,.055);
  overflow: hidden;
}

.gp-card-head {
  padding: 20px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.gp-card-title {
  margin: 0;
  font-size: 1.13rem;
  font-weight: 900;
  letter-spacing: -.025em;
}

.gp-card-text {
  color: var(--gp-muted);
  margin: 5px 0 0;
  line-height: 1.55;
  font-size: .94rem;
}

.gp-card-body { padding: 20px; }

.gp-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gp-plan-card {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(146, 167, 255, .18);
  background: radial-gradient(circle at 100% 0%, rgba(86, 214, 255, .10), transparent 31%), rgba(4, 12, 28, .58);
  padding: 20px;
  min-height: 170px;
}

.gp-plan-card.is-featured {
  border-color: rgba(124, 77, 255, .62);
  box-shadow: 0 0 0 1px rgba(124,77,255,.18), 0 18px 42px rgba(124,77,255,.13);
}

.gp-plan-card.is-diamond {
  isolation: isolate;
  overflow: visible;
  border-color: rgba(245, 221, 142, .62);
  background:
    radial-gradient(circle at 82% 0%, rgba(245, 221, 142, .24), transparent 26%),
    radial-gradient(circle at 100% 18%, rgba(124, 77, 255, .32), transparent 38%),
    linear-gradient(180deg, rgba(22, 18, 54, .86), rgba(5, 12, 30, .78));
  box-shadow:
    0 0 0 1px rgba(245, 221, 142, .18),
    0 24px 70px rgba(124, 77, 255, .24),
    0 18px 48px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.16);
}

.gp-plan-card.is-diamond::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(245,221,142,.72), rgba(124,77,255,.54), rgba(86,214,255,.46));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.gp-plan-card.is-diamond::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -44px;
  width: 145px;
  height: 145px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245,221,142,.42), rgba(124,77,255,.18) 48%, transparent 70%);
  filter: blur(1px);
  pointer-events: none;
  z-index: 0;
}

.gp-plan-card.is-diamond > * {
  position: relative;
  z-index: 1;
}

.gp-plan-card.is-diamond .gp-plan-name {
  background: linear-gradient(135deg, #fff7c7, #e2d7ff 45%, #9eeeff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(245,221,142,.18);
}

.gp-plan-card.is-diamond .gp-plan-price {
  color: #fff7cf;
  text-shadow: 0 0 24px rgba(245,221,142,.20);
}

.gp-plan-card.is-diamond .gp-plan-list i {
  color: #f5dd8e;
  filter: drop-shadow(0 0 8px rgba(245,221,142,.34));
}

.gp-plan-card.is-diamond .gp-btn-primary {
  background: linear-gradient(135deg, #fff2a8, #b49cff 52%, #56d6ff);
  color: #071018;
  box-shadow: 0 16px 34px rgba(124,77,255,.24), 0 0 0 1px rgba(255,255,255,.16) inset;
}

.gp-plan-badge-top {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5c7cff, #8b5cf6);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(124,77,255,.28);
  z-index: 5;
}

.gp-plan-badge-diamond {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #071018;
  background: linear-gradient(135deg, #fff6ba, #d8c8ff 54%, #9eeeff);
  border: 1px solid rgba(255,255,255,.36);
  box-shadow: 0 14px 30px rgba(245,221,142,.18), 0 0 24px rgba(124,77,255,.20);
  letter-spacing: .04em;
  top: -12px;
  z-index: 6;
}

.gp-plan-name {
  margin: 2px 0 8px;
  font-size: 1.14rem;
  font-weight: 900;
}

.gp-plan-price {
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.055em;
  margin-bottom: 16px;
}

.gp-plan-price small {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--gp-muted);
}

.gp-plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
  color: rgba(246,248,255,.78);
  font-size: .9rem;
}

.gp-plan-list li { display: flex; gap: 8px; align-items: flex-start; }
.gp-plan-list i { color: var(--gp-purple-2); margin-top: 2px; }

.gp-billing-current {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(146,167,255,.14);
  background: rgba(255,255,255,.045);
  margin-bottom: 14px;
}

.gp-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(86,214,255,.27);
  background: rgba(86,214,255,.10);
  color: #d8f7ff;
  font-size: .8rem;
  font-weight: 900;
}

.gp-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .75rem;
  font-weight: 900;
  white-space: nowrap;
}
.gp-status-pending { color: #ffeab2; background: rgba(255, 224, 130, .11); border: 1px solid rgba(255, 224, 130, .22); }
.gp-status-published { color: #c8ffe9; background: rgba(97, 255, 195, .10); border: 1px solid rgba(97, 255, 195, .22); }
.gp-status-rejected { color: #ffd2dc; background: rgba(255, 127, 156, .11); border: 1px solid rgba(255, 127, 156, .23); }
.gp-status-draft, .gp-status-cancelled { color: rgba(246,248,255,.72); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }

.gp-event-list { display: grid; gap: 10px; }

.gp-event-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto 24px;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(146, 167, 255, .13);
  background: rgba(255,255,255,.045);
  transition: .18s ease;
}

.gp-event-row:hover {
  transform: translateY(-1px);
  border-color: rgba(124,77,255,.34);
  background: rgba(255,255,255,.065);
}

.gp-event-image {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(86,214,255,.14), rgba(124,77,255,.15));
  display: block;
}

.gp-event-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(86,214,255,.14), rgba(124,77,255,.15));
  color: rgba(246,248,255,.74);
  font-size: 1.4rem;
}

.gp-event-title {
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 5px;
  letter-spacing: -.02em;
}

.gp-event-meta {
  color: var(--gp-muted);
  font-size: .9rem;
  line-height: 1.45;
}

.gp-event-count {
  text-align: right;
  min-width: 82px;
}

.gp-event-count strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 950;
}

.gp-event-count span {
  display: block;
  color: var(--gp-muted);
  font-size: .76rem;
  font-weight: 750;
}

.gp-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.gp-filter-btn {
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(246,248,255,.72);
  background: rgba(255,255,255,.055);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 850;
  cursor: pointer;
}
.gp-filter-btn.is-active { color: #fff; border-color: rgba(124,77,255,.44); background: rgba(124,77,255,.18); }

.gp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.gp-form-grid .full { grid-column: 1 / -1; }

.gp-field { display: grid; gap: 8px; }
.gp-label { color: rgba(246,248,255,.82); font-size: .88rem; font-weight: 850; }
.gp-input,
.gp-select,
.gp-textarea {
  width: 100%;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.075);
  color: #fff;
  padding: 13px 14px;
  outline: none;
  transition: .18s ease;
}
.gp-textarea { min-height: 132px; resize: vertical; }
.gp-input:focus,
.gp-select:focus,
.gp-textarea:focus {
  border-color: rgba(86,214,255,.48);
  box-shadow: 0 0 0 4px rgba(86,214,255,.11);
  background: rgba(255,255,255,.095);
}
.gp-input::placeholder,
.gp-textarea::placeholder { color: rgba(246,248,255,.37); }
.gp-select option { background: #0b1220; color: #fff; }

.gp-help {
  color: var(--gp-muted-2);
  line-height: 1.45;
  font-size: .84rem;
}

.gp-custom-category-wrap,
.gp-image-preview-wrap,
.plan-paid-only.is-hidden { display: none !important; }
.gp-custom-category-wrap.is-visible,
.gp-image-preview-wrap.is-visible { display: block !important; }

.gp-image-preview-wrap {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  margin-top: 10px;
}
.gp-image-preview-wrap img { width: 100%; max-height: 280px; object-fit: cover; display: block; }

.gp-time-panel {
  border-radius: 18px;
  padding: 15px;
  border: 1px solid rgba(146,167,255,.13);
  background: rgba(255,255,255,.045);
}
.gp-time-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 12px;
}
.gp-quick-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.gp-quick-btn {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(246,248,255,.78);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 850;
  cursor: pointer;
}
.gp-quick-btn:hover { color: #fff; background: rgba(255,255,255,.10); }

.gp-alert {
  display: none;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  padding: 13px 14px;
  margin-bottom: 16px;
  font-weight: 750;
  line-height: 1.45;
}
.gp-alert.success { display: flex; color: #c8ffe9; background: rgba(97,255,195,.10); border: 1px solid rgba(97,255,195,.22); }
.gp-alert.error { display: flex; color: #ffd2dc; background: rgba(255,127,156,.10); border: 1px solid rgba(255,127,156,.24); }
.gp-alert.loading { display: flex; color: #d8f7ff; background: rgba(86,214,255,.10); border: 1px solid rgba(86,214,255,.24); }
.gp-alert.info { display: flex; color: rgba(246,248,255,.76); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }

.gp-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: currentColor;
  animation: gpSpin .75s linear infinite;
  flex: 0 0 auto;
}

.gp-toggle {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(255,255,255,.10);
}

@keyframes gpSpin { to { transform: rotate(360deg); } }

.gp-loading-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.gp-loading-card,
.gp-state-card {
  width: min(100%, 620px);
  text-align: center;
  padding: 34px;
  border-radius: 28px;
  border: 1px solid var(--gp-line);
  background: linear-gradient(180deg, rgba(15,29,55,.78), rgba(8,17,34,.70));
  box-shadow: var(--gp-shadow);
}

.gp-loading-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: #071018;
  background: linear-gradient(135deg, #fff, #9eeaff);
  font-size: 2rem;
  animation: gpFloat 1.6s ease-in-out infinite;
}

@keyframes gpFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.gp-empty {
  padding: 28px;
  text-align: center;
  color: var(--gp-muted);
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 18px;
}

.gp-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: stretch;
}
.gp-detail-image {
  width: 100%;
  min-height: 260px;
  max-height: 360px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
}
.gp-detail-side { display: grid; gap: 12px; }
.gp-metric-box {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(146,167,255,.13);
  background: rgba(255,255,255,.045);
}
.gp-metric-box strong { display: block; font-size: 1.3rem; font-weight: 950; }
.gp-metric-box span { color: var(--gp-muted); font-size: .86rem; }

.gp-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.gp-profile-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.gp-logo-wrap {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  display: grid;
  place-items: center;
}
.gp-logo-wrap img { width: 100%; height: 100%; object-fit: cover; display: none; }
.gp-logo-fallback { font-size: 2rem; color: var(--gp-muted); }

.gp-settings-list { display: grid; gap: 12px; }
.gp-settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  border: 1px solid rgba(146,167,255,.13);
  background: rgba(255,255,255,.045);
  padding: 15px;
}

.gp-usage-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  overflow: hidden;
  margin-top: 10px;
}
.gp-usage-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gp-blue), var(--gp-purple));
  transition: width .22s ease;
}

.gp-chart-list { display: grid; gap: 12px; }
.gp-chart-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 2fr auto;
  align-items: center;
  gap: 12px;
}
.gp-chart-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  overflow: hidden;
}
.gp-chart-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gp-blue), var(--gp-purple)); }

.gp-hidden { display: none !important; }

@media (max-width: 1120px) {
  .gp-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp-plan-grid { grid-template-columns: 1fr; }
  .gp-two-col, .gp-detail-hero { grid-template-columns: 1fr; }
}

@media (max-width: 840px) {
  .gp-app-shell { grid-template-columns: 1fr; }
  .gp-sidebar {
    position: fixed;
    z-index: 50;
    inset: 0 auto 0 0;
    width: 260px;
    transform: translateX(-104%);
    transition: .2s ease;
  }
  body.gp-menu-open .gp-sidebar { transform: translateX(0); }
  .gp-mobile-topbar { display: flex; }
  .gp-main { padding-top: 18px; }
  .gp-page-head { flex-direction: column; }
  .gp-head-actions { width: 100%; justify-content: flex-start; }
  .gp-head-actions .gp-btn { flex: 1; }
  .gp-form-grid { grid-template-columns: 1fr; }
  .gp-time-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .gp-main { padding-inline: 14px; }
  .gp-stat-grid { grid-template-columns: 1fr; }
  .gp-event-row {
    grid-template-columns: 72px minmax(0, 1fr) 20px;
    gap: 10px;
  }
  .gp-event-image,
  .gp-event-placeholder { width: 72px; height: 72px; }
  .gp-event-count { grid-column: 2 / 3; text-align: left; min-width: 0; }
  .gp-event-count strong, .gp-event-count span { display: inline; }
  .gp-settings-item { flex-direction: column; align-items: flex-start; }
  .gp-billing-current { grid-template-columns: 1fr; }
  .gp-card-head { flex-direction: column; }
}

/* Dashboard v2.1: Logo, Free-Plan Profilbild in Eventlisten, Interessen-Liniendiagramm */
.gp-brand-mark img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(86,214,255,.22));
}

.gp-event-profile-media {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 15%, rgba(86,214,255,.18), transparent 52%), rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
}

.gp-event-avatar {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  border: 0;
  box-shadow: none;
  background: rgba(255,255,255,.08);
  display: block;
}

.gp-event-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: rgba(246,248,255,.78);
  background: linear-gradient(135deg, rgba(86,214,255,.18), rgba(124,77,255,.24));
  border: 0;
  font-size: 1.35rem;
}

.gp-line-chart {
  min-height: 300px;
  border-radius: 18px;
  border: 1px solid rgba(146,167,255,.13);
  background: radial-gradient(circle at 10% 0%, rgba(86,214,255,.11), transparent 33%), rgba(255,255,255,.035);
  padding: 14px;
  overflow: hidden;
}

.gp-line-chart svg {
  width: 100%;
  height: 300px;
  display: block;
  overflow: visible;
}

.gp-line-grid {
  stroke: rgba(255,255,255,.08);
  stroke-width: 1;
}

.gp-line-axis-label,
.gp-line-point-label {
  fill: rgba(246,248,255,.62);
  font-size: 12px;
  font-weight: 750;
}

.gp-line-value-label {
  fill: #fff;
  font-size: 12px;
  font-weight: 900;
}

.gp-line-path {
  fill: none;
  stroke: url(#gpLineGradient);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 10px 22px rgba(124,77,255,.32));
}

.gp-line-area {
  fill: url(#gpAreaGradient);
  opacity: .72;
}

.gp-line-point {
  fill: #ffffff;
  stroke: #7c4dff;
  stroke-width: 3;
}

.gp-line-chart-caption {
  color: var(--gp-muted);
  font-size: .88rem;
  line-height: 1.45;
  margin-top: 10px;
}

@media (max-width: 620px) {
  .gp-event-profile-media { width: 72px; height: 72px; }
  .gp-event-avatar,
  .gp-event-avatar-fallback { width: 100%; height: 100%; border-radius: 16px; }
  .gp-line-chart svg { height: 260px; }
}

/* Dashboard v2.4: Plan-Badges exakt auf der oberen Card-Linie */
.gp-plan-card.is-featured .gp-plan-badge-top,
.gp-plan-card.is-diamond .gp-plan-badge-top {
  top: 0;
  transform: translate(-50%, -50%);
}

.gp-plan-card.is-diamond .gp-plan-badge-diamond {
  top: 0;
}

/* Dashboard v2.4: Free-Profilbild in Eventlisten quadratisch wie der Rahmen */
.gp-event-row {
  grid-template-columns: 78px minmax(0, 1fr) auto 24px;
}

.gp-event-profile-media {
  width: 72px;
  height: 72px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
}

.gp-stat-storage-note {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--gp-muted);
  font-size: .9rem;
  line-height: 1.5;
  border: 1px solid rgba(146, 167, 255, .13);
  background: rgba(255,255,255,.045);
  border-radius: 16px;
  padding: 12px 14px;
}

.gp-stat-storage-note i {
  color: var(--gp-blue);
  margin-top: 2px;
  flex: 0 0 auto;
}

.gp-stat-storage-note.is-active {
  color: #c8ffe9;
  border-color: rgba(97, 255, 195, .22);
  background: rgba(97, 255, 195, .08);
}

.gp-stat-storage-note.is-active i {
  color: #66ffbd;
}

.gp-stat-storage-note.is-warning {
  color: #ffeab2;
  border-color: rgba(255, 224, 130, .24);
  background: rgba(255, 224, 130, .08);
}

.gp-stat-storage-note.is-warning i {
  color: #ffe083;
}



/* Dashboard v2.5: Diamond-Badge exakt auf der oberen Card-Linie.
   Wichtig: Diese Regel überschreibt .gp-plan-card.is-diamond > * { position: relative; }. */
.gp-plan-card.is-diamond > .gp-plan-badge-top,
.gp-plan-card.is-diamond > .gp-plan-badge-diamond {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}

/* Statistik v2.5: Diagramm nutzt die komplette Card-Fläche ohne Innenkarte/Caption. */
.gp-chart-card .gp-card-body {
  padding: 0;
}

.gp-chart-card .gp-line-chart {
  min-height: clamp(340px, 46vw, 520px);
  height: clamp(340px, 46vw, 520px);
  border: 0;
  border-radius: 0 0 22px 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(86,214,255,.13), transparent 35%),
    radial-gradient(circle at 86% 10%, rgba(124,77,255,.15), transparent 34%),
    rgba(255,255,255,.018);
  padding: 0;
  overflow: hidden;
}

.gp-chart-card .gp-line-chart svg {
  width: 100%;
  height: 100%;
}

.gp-chart-card .gp-line-chart .gp-empty {
  min-height: inherit;
  border: 0;
  border-radius: 0;
}

.gp-line-chart-caption {
  display: none !important;
}

.gp-stat-storage-note {
  display: none;
}

.gp-stat-storage-note.is-warning {
  display: flex;
  margin: 0;
  border-radius: 0 0 22px 22px;
}


/* Statistik v2.6: erst die beiden Auswertungs-Bubbles, darunter ein kompakteres Diagramm. */
body[data-page="stats"] .gp-stats-top-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.gp-chart-card-compact .gp-line-chart {
  min-height: clamp(250px, 30vw, 360px);
  height: clamp(250px, 30vw, 360px);
}

@media (max-width: 1120px) {
  body[data-page="stats"] .gp-stats-top-row {
    grid-template-columns: 1fr;
  }
}

/* Statistik v2.7: Bei nur einem Datenpunkt kein leeres Liniendiagramm anzeigen. */
.gp-growth-snapshot {
  min-height: 220px;
  height: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, .72fr);
  align-items: center;
  gap: 20px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 0 0 22px 22px;
  background:
    radial-gradient(circle at 14% 20%, rgba(86,214,255,.20), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(124,77,255,.24), transparent 34%),
    rgba(255,255,255,.018);
}

.gp-growth-orb {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: #05111f;
  font-size: 1.9rem;
  background: linear-gradient(135deg, #ffffff, #8ee8ff 52%, #9b7cff);
  box-shadow: 0 18px 45px rgba(86,214,255,.20), 0 0 0 1px rgba(255,255,255,.32) inset;
}

.gp-growth-copy span,
.gp-growth-meta span {
  display: block;
  color: rgba(246,248,255,.64);
  font-size: .86rem;
  font-weight: 850;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.gp-growth-copy strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: .92;
  letter-spacing: -.07em;
  text-shadow: 0 18px 42px rgba(124,77,255,.24);
}

.gp-growth-copy small,
.gp-growth-meta small {
  display: block;
  margin-top: 8px;
  color: rgba(246,248,255,.70);
  font-weight: 750;
  line-height: 1.45;
}

.gp-growth-meta {
  justify-self: end;
  max-width: 320px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(146,167,255,.16);
  background: rgba(255,255,255,.055);
}

.gp-chart-card-compact .gp-line-chart {
  min-height: 230px;
  height: clamp(230px, 25vw, 320px);
}

.gp-line-axis-label,
.gp-line-point-label {
  font-size: 11px;
  opacity: .86;
}

@media (max-width: 760px) {
  .gp-growth-snapshot {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .gp-growth-meta {
    justify-self: stretch;
    max-width: none;
  }
}


/* Statistik v2.8: Chart-Card optisch ruhiger, keine harte Kopf-/Body-Fläche mehr. */
body[data-page="stats"] .gp-chart-card-clean {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(86,214,255,.105), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(124,77,255,.12), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.070), rgba(255,255,255,.040));
}

body[data-page="stats"] .gp-chart-card-clean .gp-card-head {
  padding: 24px 28px 0;
  background: transparent;
  border: 0;
}

body[data-page="stats"] .gp-chart-card-clean .gp-card-title {
  margin: 0;
  line-height: 1.2;
}

body[data-page="stats"] .gp-chart-card-clean .gp-card-body {
  padding: 12px 28px 26px;
  background: transparent;
}

body[data-page="stats"] .gp-chart-card-clean .gp-line-chart {
  min-height: 270px;
  height: clamp(270px, 27vw, 340px);
  padding: 8px 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body[data-page="stats"] .gp-chart-card-clean .gp-line-chart svg {
  width: 100%;
  height: 100%;
}

body[data-page="stats"] .gp-chart-card-clean .gp-growth-snapshot {
  min-height: 230px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 20%, rgba(86,214,255,.16), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(124,77,255,.18), transparent 34%),
    rgba(255,255,255,.035);
  border: 1px solid rgba(146,167,255,.12);
}

@media (max-width: 620px) {
  body[data-page="stats"] .gp-chart-card-clean .gp-card-head {
    padding: 20px 20px 0;
  }
  body[data-page="stats"] .gp-chart-card-clean .gp-card-body {
    padding: 12px 20px 22px;
  }
  body[data-page="stats"] .gp-chart-card-clean .gp-line-chart {
    min-height: 240px;
    height: 240px;
  }
}
