:root {
  color-scheme: dark;
  --bg: #050505;
  --card: #101010;
  --line: #262626;
  --text: #f2f1ed;
  --muted: #92918c;
  --accent: #d8a872;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.7 Inter, Pretendard, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
input,
textarea,
select {
  outline-offset: 5px;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: .55;
}

header {
  min-height: 86px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  gap: 64px;
  border-bottom: 1px solid #1c1c1c;
  position: relative;
  z-index: 2;
  background: #050505;
}

nav {
  display: flex;
  gap: 32px;
  color: #aaa;
  font-size: 14px;
}

nav a:hover,
nav a.active {
  color: white;
}

#auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}

.brand {
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -1.5px;
}

.brand span {
  color: #ddd;
}

.brand .dot {
  color: var(--accent);
}

main {
  min-height: 65vh;
}

.wrap {
  max-width: 1180px;
  margin: auto;
  padding: 70px 28px 110px;
}

/* Home 배경 */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: 90px 24px 60px;
  background: #050505;
}

/* 관리자에서 색상·크기·밝기·속도를 조절 */

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;

  left: 50%;
  top: 15%;

  width: var(--glow-width, 100%);
  height: var(--glow-height, 100%);
  border-radius: 50%;

  background: radial-gradient(
    ellipse at center,
    rgba(var(--glow-rgb, 20, 123, 209), .8) 0%,
    rgba(var(--glow-rgb, 20, 123, 209), .35) 32%,
    rgba(var(--glow-rgb, 20, 123, 209), .1) 56%,
    transparent 75%
  );

  opacity: var(--glow-strength, .6);
  transform: translate3d(-70%, -25%, 0);

  animation:
    custom-glow-drift
    var(--glow-duration, 24s)
    ease-in-out
    infinite
    alternate;

  will-change: transform;
}

@keyframes custom-glow-drift {
  0% {
    transform: translate3d(-85%, -20%, 0);
  }

  50% {
    transform: translate3d(-25%, -5%, 0);
  }

  100% {
    transform: translate3d(-55%, 15%, 0);
  }
}

.hero.glow-paused::before {
  animation: none;
  will-change: auto;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(46px, 6vw, 84px);
  line-height: 1.13;
  letter-spacing: -4px;
  margin: 26px 0;
}

.hero h1 em {
  font-style: normal;
  color: #93908a;
}

.hero p {
  font-size: 17px;
  color: #a6a39e;
  margin: 24px auto;
  max-width: 630px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 32px 0;
}

.btn {
  border: 1px solid #333;
  border-radius: 30px;
  background: #0d0d0d;
  color: #eee;
  padding: 11px 23px;

  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  font-size: 13px;
  font-weight: 600;
}

.btn.primary {
  background: #f5f4ef;
  color: #101010;
  border-color: #f5f4ef;
}

.btn:hover {
  filter: brightness(.85);
}

.meta {
  font-size: 12px;
  color: #797771;
}

/* 차트와 사진·영상 */

.chart {
  background: #101114;
  border: 1px solid #2a2b2c;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.hero .chart {
  max-width: 1050px;
  margin: 60px auto 0;
  text-align: left;
  box-shadow: 0 0 100px #8a4b160d;
}

.chart-head {
  padding: 18px 24px;
  border-bottom: 1px solid #252629;

  display: flex;
  justify-content: space-between;

  font-size: 12px;
}

.chart svg {
  width: 100%;
  display: block;
}

.chart-label {
  position: absolute;
  bottom: 14px;
  left: 20px;
  color: #999;
  font-size: 10px;
  letter-spacing: 1px;
}

.home-visual {
  max-width: 1050px;
  margin: 60px auto 0;
  border: 1px solid #2a2b2c;
  border-radius: 16px;
  overflow: hidden;
  background: #101114;
}

.home-media {
  width: 100%;
  height: auto;
  max-height: 720px;
  display: block;
  object-fit: contain;
  background: #101114;
}

.home-visual img {
  border-radius: 0;
}

/* 공통 레이아웃 */

.section {
  padding-top: 70px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

h1 {
  font-size: 48px;
  letter-spacing: -2px;
  line-height: 1.2;
}

h2 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 8px 0;
}

h3 {
  font-size: 22px;
  margin: 14px 0;
}

p {
  color: #a3a19b;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: linear-gradient(
    140deg,
    #151513,
    #0a0a0a
  );

  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  min-width: 0;
}

.product-card {
  padding: 0;
  overflow: hidden;
  transition: transform .2s;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card .info {
  padding: 24px 28px;
}

.product-card .chart {
  border: 0;
  border-radius: 0;
}

.tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1px;
  color: #aaa;

  border: 1px solid #333;
  border-radius: 20px;
  padding: 4px 10px;

  overflow-wrap: anywhere;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.step-number {
  color: #786149;
  font-size: 13px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  gap: 18px;
}

.muted {
  color: var(--muted);
}

.empty {
  border: 1px dashed #333;
  border-radius: 16px;
  padding: 44px;
  text-align: center;
  color: var(--muted);
}

/* 폼 */

.form-wrap {
  max-width: 490px;
  margin: auto;
  padding: 70px 24px 100px;
}

.form-wrap h1 {
  font-size: 36px;
}

.form-wrap form {
  margin-top: 32px;
}

label {
  display: block;
  font-size: 13px;
  color: #c5c2bc;
  margin: 17px 0 6px;
}

input,
select,
textarea {
  width: 100%;
  background: #101010;
  color: #eee;
  border: 1px solid #333;
  border-radius: 9px;
  padding: 12px 14px;
}

textarea {
  min-height: 170px;
  resize: vertical;
}

form .primary {
  margin-top: 24px;
  width: 100%;
}

.error {
  color: #ff9696;
  font-size: 13px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-label input {
  width: auto;
}

/* Home 관리자 설정 */

.glow-preview.hero {
  height: 260px;
  min-height: 260px;

  padding: 35px 20px;
  margin: 24px 0;

  border: 1px solid var(--line);
  border-radius: 16px;
}

.preview-content {
  position: relative;
  z-index: 1;
}

.glow-preview h3 {
  margin: 20px 0 8px;
}

.glow-preview p {
  font-size: 13px;
}

.color-picker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

input[type="color"] {
  width: 70px;
  height: 46px;
  padding: 4px;
  cursor: pointer;
}

input[type="range"] {
  padding: 0;
  accent-color: #5ba6e5;
  cursor: pointer;
}

output {
  color: #aaa;
  font-size: 12px;
  margin-left: 8px;
}

.media-preview {
  border-radius: 14px;
  overflow: hidden;
}

.media-preview:empty {
  display: none;
}

.media-preview .home-media {
  max-height: 360px;
}

/* 상세 페이지 */

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
  margin-top: 45px;
}

.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #b7b5af;
  font-size: 15px;
  line-height: 2;
}

.sticky {
  position: sticky;
  top: 24px;
  align-self: start;
}

.sticky .btn {
  width: 100%;
  margin-top: 20px;
}

.img-main {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.img-main[hidden] {
  display: none;
}

.back {
  font-size: 12px;
  color: #999;
  letter-spacing: 1px;
}

.notice-body {
  margin-top: 35px;
}

.subheading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* 관리자 */

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.tabs .selected {
  background: white;
  color: black;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}

td,
th {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
}

th {
  color: #999;
  font-weight: 400;
}

.small {
  font-size: 12px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.stat {
  font-size: 38px;
  margin-top: 10px;
}

.request-card {
  margin: 18px 0;
}

.reply {
  border-left: 2px solid #9f784d;
  padding-left: 18px;
  margin-top: 20px;
  white-space: pre-wrap;
}

.filter {
  max-width: 300px;
  margin-bottom: 20px;
}

/* 인디케이터 목록 */

.indicator-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.library-wrap {
  max-width: 1500px;
}

.library-tools {
  margin-top: 42px;
  margin-bottom: 28px;
}

#indicator-search {
  display: block;
  max-width: 840px;
  margin: 0 auto 26px;
  padding: 18px 22px;
  border-radius: 16px;
  background: #0c0c0c;
  font-size: 15px;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0 30px;
}

.category-filters .btn {
  padding: 8px 18px;
  font-weight: 400;
}

.library-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  border-top: 1px solid var(--line);
  padding-top: 18px;

  color: #949089;
  font-size: 12px;
  letter-spacing: 1px;
}

.library-meta label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  white-space: nowrap;
}

.library-meta select {
  width: auto;
  border-radius: 25px;
  padding: 7px 14px;
  font-size: 12px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-tags {
  margin: 18px 0 28px;
}

.indicator-grid .product-card .img-main {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #101114;
  border-radius: 0;
}

.indicator-grid .product-card .chart {
  aspect-ratio: 16 / 10;
}

.indicator-grid .product-card .chart-head {
  padding: 12px;
  font-size: 9px;
  gap: 8px;
}

.indicator-grid .product-card .chart svg {
  height: calc(100% - 43px);
}

.indicator-grid .product-card h3 {
  font-size: 21px;
}

.library-empty {
  grid-column: 1 / -1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;

  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 하단 및 알림 */

footer {
  border-top: 1px solid var(--line);
  padding: 40px 6%;
  color: #73716d;
  font-size: 12px;
}

footer .brand {
  color: #ddd;
}

footer small {
  display: block;
  margin-top: 18px;
  color: #696661;
}

#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);

  background: #eee;
  color: #111;
  border-radius: 25px;
  padding: 12px 24px;

  display: none;
  z-index: 10;
  max-width: 90vw;
}

/* 태블릿 */

@media (max-width: 1050px) {
  .indicator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  header {
    gap: 26px;
  }

  nav {
    gap: 18px;
  }
}

@media (max-width: 760px) {
  header {
    min-height: 76px;
    padding: 18px 20px;
    gap: 14px;
    flex-wrap: wrap;
  }

  .brand {
    font-size: 24px;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
  }

  #auth {
    gap: 10px;
  }

  #auth .btn {
    padding: 7px 13px;
  }

  .hero {
    padding-top: 65px;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .hero p {
    font-size: 14px;
  }

  .step-grid,
  .detail-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .wrap {
    padding: 45px 20px 70px;
  }

  h1 {
    font-size: 35px;
  }

  h2 {
    font-size: 26px;
  }

  .detail-grid {
    gap: 26px;
  }

  .section {
    padding-top: 44px;
  }

  .card {
    padding: 23px;
  }

  .product-card {
    padding: 0;
  }

  .hero .chart,
  .home-visual {
    margin-top: 36px;
  }

  .sticky {
    position: static;
  }

  .section-head {
    align-items: center;
  }

  .row {
    font-size: 13px;
  }
}

/* 모바일 */

@media (max-width: 640px) {
  .grid,
  .indicator-grid {
    grid-template-columns: 1fr;
  }

  .category-filters .btn {
    padding: 7px 13px;
    font-size: 12px;
  }

  .library-meta {
    gap: 10px;
    font-size: 10px;
    letter-spacing: 0;
  }

  .library-meta label {
    font-size: 11px;
  }

  .library-tools {
    margin-top: 28px;
  }
}

/* 운영체제의 움직임 줄이기 설정 */

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
    will-change: auto;
  }

  .product-card {
    transition: none;
  }
}

/* A2GET_COMPACT_REQUESTS_CSS_V1 */

.request-db-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.request-db-tools {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.request-db-tools form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 260px;
}

.request-db-tools form input {
  min-width: 120px;
}

.request-db-tools label {
  margin: 0;
  font-size: 12px;
}

.request-db-tools select {
  padding: 9px 12px;
  margin-top: 5px;
  width: auto;
  min-width: 105px;
}

.request-db-tools .btn {
  white-space: nowrap;
  padding: 10px 18px;
}

.request-db-scroll {
  border: 1px solid var(--line);
  border-radius: 12px;
  max-height: 70vh;
  background: #090909;
}

.request-db-table {
  font-size: 12px;
  line-height: 1.5;
  width: 100%;
}

.request-db-table th {
  position: sticky;
  top: 0;
  background: #181818;
  z-index: 1;
  color: #b9b9b9;
}

.request-db-table th,
.request-db-table td {
  padding: 10px 12px;
  border-right: 1px solid #202020;
}

.request-db-table tbody tr:hover {
  background: #171717;
}

.request-db-table .reviewed-row {
  background: #0c1714;
}

.request-db-table .source-cell {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

input.review-checkbox {
  width: 17px;
  height: 17px;
  margin: 0;
  vertical-align: middle;
  cursor: pointer;
  accent-color: #5cbd9b;
}

.request-db-table .tag {
  font-size: 10px;
  padding: 2px 8px;
  letter-spacing: 0;
}

.request-db-table .db-detail-btn {
  font-size: 11px;
  padding: 4px 10px;
}

.request-db-table .db-empty {
  text-align: center;
  padding: 30px;
}

.request-pagination {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 22px 0;
  color: inherit;
}

.request-pagination .btn {
  padding: 6px 12px;
  min-width: 34px;
  font-size: 12px;
}

.request-pagination .btn:disabled {
  opacity: .35;
  cursor: default;
}

.user-request-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.user-request-heading h3 {
  margin: 0 8px 0 0;
}

.review-badge {
  font-size: 11px;
  color: #aaa;
  background: #191919;
  border: 1px solid #333;
  border-radius: 20px;
  padding: 4px 10px;
}

.review-badge.is-reviewed {
  color: #8bdec0;
  border-color: #2e6652;
  background: #0e241c;
}

.request-detail-dialog {
  width: min(620px, calc(100vw - 30px));
  max-height: 85vh;
  overflow: auto;
  background: #101010;
  color: var(--text);
  border: 1px solid #353535;
  border-radius: 18px;
  padding: 24px;
}

.request-detail-dialog::backdrop {
  background: #000b;
}

.request-detail-dialog textarea {
  min-height: 120px;
}

@media (max-width: 640px) {
  .request-db-title h3 {
    font-size: 20px;
  }

  .request-db-tools form {
    flex-basis: 100%;
    min-width: 0;
  }

  .request-db-table th,
  .request-db-table td {
    padding: 9px;
  }

  .request-pagination {
    gap: 5px;
  }
}

/* A2GET_COPY_CSS_V1 */
#requestform input::placeholder {
    color: #777;
    opacity: 1;
}


/* A2GET_SIGNUP_CONSENT_CSS_V1 */

.consent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 14px 0;
    font-size: 12px;
}

.consent-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
}

.consent-line input[type=checkbox] {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 2px 0;
    accent-color: #fff;
}

.consent-item a {
    white-space: nowrap;
    color: #aaa;
    text-decoration: underline;
}

[data-signup-consent] {
    margin: 22px 0;
}

.policy-text {
    white-space: pre-wrap;
    line-height: 1.9;
    margin: 20px 0;
    font-size: 14px;
}

/* A2GET 로고 오른쪽 BETA 표시 */
header .brand::after {
    content: "BETA";
    display: inline-block;
    margin-left: 6px;
    font-size: 0.36em;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.5px;
    vertical-align: baseline;
    color: #92918c;
}