@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  color-scheme: dark;
  --purple-main: #7b6def;
  --purple-dark: #4a3fc9;
  --purple-light: #b3a7ff;
  --purple-glow: rgba(123, 109, 239, 0.42);
  --teal: #00e0d9;
  --teal-dark: #00a39f;
  --teal-glow: rgba(0, 224, 217, 0.35);
  --amber: #ffb067;
  --red-accent: #ff7d7c;
  --deep-bg: #07060d;
  --deep-bg-2: #100e1f;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-strong: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  --white: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.62);
  --text-dim2: rgba(255, 255, 255, 0.42);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-glow-p: 0 0 40px rgba(123, 109, 239, 0.25);
  --shadow-glow-t: 0 0 32px rgba(0, 224, 217, 0.22);
  --inset-hi: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  --grad-brand: linear-gradient(135deg, var(--purple-main) 0%, var(--teal) 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(123, 109, 239, 0.18), rgba(0, 224, 217, 0.14));
  --grad-text: linear-gradient(135deg, #fff 15%, var(--purple-light) 90%);
  --grad-text-t: linear-gradient(135deg, #fff 10%, var(--teal) 95%);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-full: 999px;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  min-height: 100%;
  background: var(--deep-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background: var(--deep-bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(135deg, rgba(7, 6, 13, 0.94), rgba(16, 14, 31, 0.78) 54%, rgba(0, 31, 34, 0.72)),
    url("../0.기초소스/소스_이미지/IR-deck/ChatGPT Image 2026년 5월 18일 오후 11_44_11.png");
  background-size: cover;
  background-position: center;
  filter: saturate(0.95) contrast(0.92);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(at 8% 8%, rgba(123, 109, 239, 0.22) 0, transparent 42%),
    radial-gradient(at 92% 92%, rgba(0, 224, 217, 0.14) 0, transparent 42%),
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px;
  opacity: 0.72;
  mask-image: radial-gradient(ellipse at center, #000 32%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 32%, transparent 78%);
}

.shell {
  width: min(100% - 32px, 1080px);
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}

.compact {
  width: min(100% - 32px, 640px);
}

.wide {
  justify-content: flex-start;
  gap: 20px;
}

.panel,
.toolbar,
.table-wrap {
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  background: rgba(10, 9, 16, 0.72);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), var(--inset-hi);
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 40px;
}

.panel::before,
.table-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 3px;
  border-radius: 0 0 3px 0;
  background: var(--grad-brand);
  box-shadow: var(--shadow-glow-t);
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 42px;
}

.wordmark-text {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-text-t);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(123, 109, 239, 0.25));
}

.brand-lockup span {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-dim2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-brand {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--purple-light);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-main);
  box-shadow: 0 0 8px var(--purple-glow);
}

h1 {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: clamp(2.15rem, 5vw, 3.45rem);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: 0;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* consent(동의) 화면 제목은 한 줄로 유지 */
.compact h1 {
  white-space: nowrap;
  font-size: clamp(1.5rem, 5.5vw, 2.4rem);
}

.copy {
  margin: 0 0 28px;
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.78;
  letter-spacing: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(123, 109, 239, 0.34);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input:focus {
  outline: none;
  border-color: rgba(0, 224, 217, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.32);
  font-weight: 500;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
  border: 1px solid rgba(123, 109, 239, 0.34);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(123, 109, 239, 0.12), rgba(0, 224, 217, 0.055));
  box-shadow: var(--inset-hi);
  color: var(--white);
  font-weight: 700;
}

.check input {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--teal);
}

button,
.ghost,
.primary {
  min-height: 44px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover:not(:disabled),
.ghost:hover {
  border-color: var(--glass-border-hover);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(0, 224, 217, 0.24);
  background: var(--grad-brand);
  color: #060710;
  box-shadow: 0 0 28px rgba(0, 224, 217, 0.17), var(--inset-hi);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
  box-shadow: none;
}

.status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--text-dim2);
  font-size: 0.92rem;
}

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
}

.admin-head h1 {
  margin-bottom: 0;
}

.toolbar {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: var(--r-lg);
}

input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--white);
  font: inherit;
  outline: none;
}

input[type="search"]:focus {
  border-color: rgba(0, 224, 217, 0.48);
  box-shadow: 0 0 0 3px rgba(0, 224, 217, 0.08);
}

.table-wrap {
  position: relative;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

th,
td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--glass-border);
  text-align: left;
  font-size: 0.88rem;
  vertical-align: middle;
}

th {
  color: var(--text-dim2);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

td {
  color: var(--text-dim);
}

td:first-child {
  color: var(--white);
  font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
}

tbody tr {
  transition: background 0.2s ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border: 1px solid rgba(0, 224, 217, 0.32);
  border-radius: var(--r-full);
  background: rgba(0, 224, 217, 0.065);
  color: var(--teal);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.badge.blocked {
  border-color: rgba(255, 125, 124, 0.4);
  background: rgba(255, 125, 124, 0.075);
  color: var(--red-accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.actions button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.danger {
  border-color: rgba(255, 125, 124, 0.36);
  color: var(--red-accent);
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 24px, 100%);
    padding: 28px 0;
  }

  .panel {
    padding: 28px 22px;
  }

  .brand-lockup {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
  }

  .wordmark-text {
    font-size: 1.55rem;
  }

  h1 {
    font-size: 2.18rem;
  }

  .copy {
    font-size: 0.96rem;
  }

  .admin-head,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ghost,
  .toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
