:root {
  --bg: var(--gpp-bg);
  --bg-2: #141226;
  --ink: var(--gpp-ink);
  --muted: var(--gpp-muted);
  --card: var(--gpp-card);
  --card-border: var(--gpp-card-border);
  --accent: var(--gpp-accent);
  --accent-2: var(--gpp-accent-2);
  --glow: rgba(163, 114, 255, 0.35);
  --radius: 14px;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

body.gpp-body {
  margin: 0;
  color: var(--ink);
  font-family: "SF Pro Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(1px 1px at 15% 25%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(2px 2px at 70% 35%, rgba(255, 255, 255, 0.25), transparent 60%),
    radial-gradient(1px 1px at 85% 75%, rgba(255, 255, 255, 0.28), transparent 60%),
    radial-gradient(800px 400px at 10% -10%, rgba(163, 114, 255, 0.22), transparent 60%),
    radial-gradient(700px 350px at 90% 10%, rgba(61, 166, 255, 0.18), transparent 60%),
    linear-gradient(160deg, var(--bg), var(--bg-2));
}

.gpp-main { padding: 28px 16px 64px; }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.title { font-size: 28px; font-weight: 700; letter-spacing: 0.2px; }
.subtitle { font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); font-size: 12px; }

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

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.card.pad { padding: 18px; }
.card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stack { display: grid; gap: 12px; }

.spacer { height: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #0b0b16;
  font-weight: 700;
  box-shadow: 0 0 18px var(--glow);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
}

.input, .textarea, .select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(12, 12, 24, 0.75);
  color: var(--ink);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: rgba(255, 143, 61, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 143, 61, 0.15);
}

.textarea { min-height: 96px; }

.badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.08);
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid transparent;
}

.alert.ok { background: rgba(88, 214, 141, 0.15); border-color: rgba(88, 214, 141, 0.5); color: #c8f7dc; }
.alert.err { background: rgba(255, 107, 107, 0.15); border-color: rgba(255, 107, 107, 0.5); color: #ffd3d3; }
.alert.status { background: rgba(163, 114, 255, 0.12); border-color: rgba(163, 114, 255, 0.45); color: #e3d6ff; }

.link { color: var(--accent-2); text-decoration: none; }
.link:hover { text-decoration: underline; }

.gpp-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.gpp-admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gpp-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.gpp-admin-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.gpp-admin-four {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gpp-kpi {
  font-size: 28px;
  font-weight: 800;
  margin-top: 4px;
}

.gpp-kpi-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.gpp-section-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.gpp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.gpp-table th,
.gpp-table td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gpp-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gpp-table .right {
  text-align: right;
}

.gpp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gpp-strong {
  font-weight: 700;
}

.gpp-footer-note {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 900px) {
  .gpp-admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .gpp-admin-two,
  .gpp-admin-four {
    grid-template-columns: 1fr;
  }
}

.gpp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px 64px;
}

.gpp-title {
  font-size: 26px;
  margin: 0 0 16px;
}

.gpp-header {
  margin-bottom: 16px;
}

.gpp-subtitle {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.gpp-muted {
  color: var(--muted);
  font-size: 12px;
}

.gpp-section {
  margin: 22px 0;
}

.gpp-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gpp-grid label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.gpp-grid input,
.gpp-grid textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
  color: #f5f5ff;
  font-size: 14px;
}

.gpp-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.gpp-input,
.gpp-textarea,
select.gpp-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
  color: #f5f5ff;
  font-size: 14px;
}

.gpp-textarea {
  min-height: 120px;
  resize: vertical;
}

.gpp-grid textarea {
  min-height: 220px;
}

.gpp-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.gpp-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.gpp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.gpp-btn--primary {
  background: #f4b41a;
  color: #1b1203;
  border-color: #f4b41a;
}

.gpp-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.gpp-list {
  display: grid;
  gap: 12px;
}

.gpp-list-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.gpp-list-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.gpp-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(244, 180, 26, 0.15);
  color: #f4b41a;
  border: 1px solid rgba(244, 180, 26, 0.4);
  white-space: nowrap;
}

.gpp-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  max-width: 320px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.gpp-toast--show {
  opacity: 1;
  transform: translateY(0);
}

.gpp-toast__item {
  background: rgba(20, 12, 36, 0.92);
  border: 1px solid rgba(244, 180, 26, 0.5);
  color: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.gpp-alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin: 10px 0 16px;
  font-size: 14px;
}

.gpp-alert--ok {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #9ff3d1;
}

.gpp-alert--error {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ffc4c4;
}

@media (max-width: 900px) {
  .gpp-grid { grid-template-columns: 1fr; }
}
