:root {
  --bg: #0b0f17;
  --panel: #0f172a;
  --card: #111c33;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #2563eb;
  --primary2: #1d4ed8;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 16px;
}

.gfp-settings {
  color: var(--text);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), transparent 40%),
    var(--bg);
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

.gfp-settings__topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 23, 0.78);
  backdrop-filter: blur(10px);
}

.gfp-settings__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gfp-settings__logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.35);
  font-weight: 800;
}
.gfp-settings__title {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.gfp-settings__actions {
  display: flex;
  gap: 8px;
}

.gfp-settings__layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 16px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
}

@media (max-width: 980px) {
  .gfp-settings__layout {
    grid-template-columns: 1fr;
  }
  .gfp-settings__nav {
    display: flex;
    gap: 8px;
    overflow: auto;
    white-space: nowrap;
  }
  .gfp-nav__item {
    min-width: 190px;
  }
}

.gfp-settings__nav {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
}

.gfp-nav__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.gfp-nav__item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}
.gfp-nav__item.is-active {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.35);
}
.gfp-nav__icon {
  width: 24px;
  display: grid;
  place-items: center;
}
.gfp-nav__hint {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.gfp-settings__content {
  min-height: 60vh;
}
.gfp-view {
  display: none;
}
.gfp-view.is-active {
  display: block;
}

.gfp-card {
  background: rgba(17, 28, 51, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.gfp-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 16px 10px 16px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.gfp-card__title {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.gfp-card__desc {
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.gfp-card__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gfp-pill {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: rgba(34, 197, 94, 0.95);
  background: rgba(34, 197, 94, 0.08);
}

.gfp-chat {
  height: 56vh;
  min-height: 360px;
  overflow: auto;
  padding: 14px;
  background: radial-gradient(
      800px 400px at 20% 0%,
      rgba(37, 99, 235, 0.12),
      transparent 60%
    ),
    rgba(15, 23, 42, 0.25);
}

.gfp-bubble {
  max-width: 78%;
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.gfp-bubble__meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.gfp-bubble__name {
  font-weight: 700;
  color: rgba(229, 231, 235, 0.92);
}
.gfp-bubble__time {
  margin-left: auto;
}
.gfp-bubble__body {
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.gfp-bubble--me {
  margin-left: auto;
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.35);
}
.gfp-bubble--admin {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
}
.gfp-bubble--other {
  background: rgba(255, 255, 255, 0.03);
}

.gfp-composer {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.55);
}

.gfp-input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(11, 15, 23, 0.45);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}
.gfp-input:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.gfp-btn {
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  cursor: pointer;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gfp-btn--primary {
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  border-color: rgba(37, 99, 235, 0.45);
}
.gfp-btn--ghost {
  background: transparent;
}
.gfp-btn:hover {
  filter: brightness(1.05);
}

.gfp-empty {
  padding: 16px;
  color: var(--muted);
}
.gfp-muted {
  color: var(--muted);
  font-size: 13px;
}

/* Modal */
.gfp-modal {
  display: none;
}
.gfp-modal.is-open {
  display: block;
}
.gfp-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 50;
}
.gfp-modal__panel {
  position: fixed;
  z-index: 60;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 92vw);
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(17, 28, 51, 0.98);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.gfp-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
}
.gfp-modal__body {
  padding: 14px;
}
.gfp-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gfp-label {
  color: var(--muted);
  font-size: 13px;
}
