:root {
  --bg: #050505;
  --panel: rgba(9, 9, 9, 0.74);
  --panel-soft: rgba(14, 14, 14, 0.66);
  --line: rgba(255, 255, 255, 0.22);
  --line-strong: rgba(255, 255, 255, 0.46);
  --text-strong: #ffffff;
  --text-body: #d8d8d8;
  --text-muted: #aaaaaa;
  --ok: #8ff0ca;
  --warn: #ffb0b0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Noto Sans KR", "Noto Sans JP", sans-serif;
  background:
    radial-gradient(circle at 8% 18%, rgba(160, 235, 255, 0.09), transparent 34%),
    radial-gradient(circle at 92% 20%, rgba(178, 255, 217, 0.09), transparent 32%),
    linear-gradient(176deg, #020202 0%, var(--bg) 65%, #030303 100%);
  color: var(--text-strong);
  line-height: 1.5;
}

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

.account-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  top: -16vh;
  width: 42vw;
  height: 68vh;
  pointer-events: none;
  filter: blur(72px);
  opacity: 0.15;
  z-index: -1;
}

.bg-glow-left {
  left: -12vw;
  background: radial-gradient(circle, rgba(114, 208, 255, 0.62), rgba(114, 208, 255, 0));
}

.bg-glow-right {
  right: -12vw;
  background: radial-gradient(circle, rgba(116, 255, 196, 0.55), rgba(116, 255, 196, 0));
}

.account-topbar {
  position: fixed;
  top: max(0.6rem, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  width: min(1240px, calc(100% - 1.2rem));
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(120deg, rgba(16, 16, 16, 0.92), rgba(8, 8, 8, 0.82));
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.52rem 0.62rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  min-width: 194px;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(130deg, #ffffff, #d7d7d7);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.58);
}

.brand-name {
  margin: 0;
  font-family: "Exo 2", sans-serif;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
}

.brand-sub {
  margin: 0;
  font-size: 0.73rem;
  color: var(--text-muted);
}

.home-link {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.44rem 0.9rem;
  color: #f0f0f0;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.home-link:hover,
.home-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.lang-switch {
  display: inline-flex;
  gap: 0.34rem;
}

.lang-btn {
  min-width: 40px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #ffffff;
  background: rgba(14, 14, 14, 0.7);
  font-family: "Exo 2", sans-serif;
  font-size: 0.76rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.88);
  transform: translateY(-1px);
}

.lang-btn.is-active {
  border-color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(130deg, rgba(72, 72, 72, 0.54), rgba(28, 28, 28, 0.72));
}

.account-main {
  width: min(1240px, calc(100% - 1.2rem));
  margin: 5.2rem auto 1.6rem;
  display: grid;
  gap: 0.76rem;
}

.panel {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(19, 19, 19, 0.8), rgba(9, 9, 9, 0.62));
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.3);
}

.panel-head {
  margin-bottom: 0.8rem;
}

.panel-kicker {
  margin: 0;
  color: #d6d6d6;
  font-family: "Exo 2", sans-serif;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
}

.panel-head h1,
.center-head h1 {
  margin: 0.48rem 0 0;
  font-family: "Exo 2", sans-serif;
  font-size: clamp(1.32rem, 2.8vw, 2.1rem);
}

.panel-head p,
.center-head p {
  margin: 0.48rem 0 0;
  color: var(--text-body);
}

.auth-panel {
  padding: 0.84rem;
}

.auth-panel.is-hidden {
  display: none;
}

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

.auth-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--panel-soft);
  padding: 0.66rem;
}

.auth-card h2 {
  margin: 0 0 0.56rem;
  font-family: "Exo 2", sans-serif;
  font-size: 1rem;
}

.form-stack {
  display: grid;
  gap: 0.54rem;
}

.field-label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.82rem;
  color: #ececec;
}

.field-label input,
.field-label select {
  min-height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(8, 8, 8, 0.56);
  color: #ffffff;
  padding: 0.44rem 0.62rem;
  font-size: 0.86rem;
}

.field-label input:focus-visible,
.field-label select:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.74);
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.44rem;
}

#captcha-canvas {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(10, 10, 10, 0.74);
}

.btn-primary,
.btn-secondary {
  min-height: 40px;
  border-radius: 999px;
  font-family: "Exo 2", sans-serif;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(130deg, rgba(76, 76, 76, 0.56), rgba(24, 24, 24, 0.8));
  color: #ffffff;
  letter-spacing: 0.02em;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 15, 15, 0.66);
  color: #f0f0f0;
  padding: 0.4rem 0.82rem;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-secondary:hover,
.btn-secondary:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.82);
}

.feedback {
  margin: 0.66rem 0 0;
  min-height: 1.1rem;
  font-size: 0.82rem;
  color: var(--text-body);
}

.feedback.is-success {
  color: var(--ok);
}

.feedback.is-error {
  color: var(--warn);
}

.center-panel {
  display: grid;
  gap: 0.7rem;
}

.center-panel.is-hidden {
  display: none;
}

.center-head {
  padding: 0.74rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.7rem;
}

.center-head h1 {
  margin-top: 0.34rem;
}

.center-head p {
  margin-top: 0.34rem;
}

.center-head-main {
  width: 100%;
}

.center-quick {
  margin-top: 0.62rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.56rem 0.8rem;
}

.center-quick-item {
  min-width: 0;
}

.center-quick-label {
  margin: 0;
  color: #d2d2d2;
  font-size: 0.8rem;
}

.center-quick-value {
  display: block;
  margin-top: 0.2rem;
  color: #ffffff;
  font-size: 1.02rem;
  font-family: "Exo 2", sans-serif;
  word-break: break-all;
}

.center-quick-withdraw {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

.center-withdraw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 0;
  padding: 0.34rem 1.02rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: linear-gradient(120deg, rgba(17, 17, 17, 0.9), rgba(12, 12, 12, 0.76));
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.center-withdraw-btn:hover,
.center-withdraw-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 6px 16px rgba(0, 0, 0, 0.32);
  transform: translateY(-1px);
}

.center-withdraw-btn.is-disabled {
  pointer-events: none;
  opacity: 0.42;
  filter: grayscale(0.95);
  border-color: rgba(255, 255, 255, 0.24);
}

.center-logout-btn {
  width: 100%;
  margin-top: 0.68rem;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
}

.module-grid[hidden] {
  display: none !important;
}

.module-card {
  text-align: left;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(150deg, rgba(16, 16, 16, 0.78), rgba(9, 9, 9, 0.62));
  color: #ffffff;
  padding: 0.66rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.module-card:hover,
.module-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.5);
}

.module-card.is-active {
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
}

.account-shell.is-account-locked .module-card {
  opacity: 0.58;
  filter: grayscale(0.9);
}

.module-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.module-icon svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
  opacity: 0.92;
}

.module-card h3 {
  margin: 0.5rem 0 0;
  font-family: "Exo 2", sans-serif;
  font-size: 0.94rem;
}

.module-card p {
  margin: 0.34rem 0 0;
  color: #d2d2d2;
  font-size: 0.78rem;
}

.module-panel {
  padding: 0.78rem;
}

.module-panel[hidden] {
  display: none !important;
}

.module-head h2 {
  margin: 0;
  font-family: "Exo 2", sans-serif;
  font-size: clamp(1.08rem, 2.3vw, 1.5rem);
}

.module-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 0.46rem;
}

.module-back-link,
.module-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.3rem 0.76rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.78rem;
  margin-bottom: 0;
  font-family: "Noto Sans KR", sans-serif;
  cursor: pointer;
}

.module-back-button {
  appearance: none;
  -webkit-appearance: none;
}

.module-back-link[hidden],
.module-back-button[hidden] {
  display: none !important;
}

.module-back-link:hover,
.module-back-link:focus-visible,
.module-back-button:hover,
.module-back-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.7);
}

.module-head p {
  margin: 0.34rem 0 0;
  color: var(--text-body);
  font-size: 0.86rem;
}

.module-body {
  margin-top: 0.62rem;
}

.account-shell.is-account-locked .module-body .detail-form,
.account-shell.is-account-locked .module-body .saved-list,
.account-shell.is-account-locked .module-body .info-grid,
.account-shell.is-account-locked .module-body .order-detail-list,
.account-shell.is-account-locked .module-body .order-table-wrap {
  opacity: 0.52;
  filter: grayscale(0.85);
}

.account-shell.is-account-locked .module-body input,
.account-shell.is-account-locked .module-body select,
.account-shell.is-account-locked .module-body textarea,
.account-shell.is-account-locked .module-body .btn-primary,
.account-shell.is-account-locked .module-body .btn-secondary,
.account-shell.is-account-locked .module-body button {
  pointer-events: none;
  opacity: 0.45;
  filter: grayscale(1);
}

.detail-feedback {
  margin: 0 0 0.56rem;
  font-size: 0.82rem;
}

.detail-feedback.is-success {
  color: var(--ok);
}

.detail-feedback.is-error {
  color: var(--warn);
}

.account-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(2px);
}

.account-notice-overlay[hidden] {
  display: none !important;
}

.account-notice-dialog {
  width: min(92vw, 420px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(165deg, rgba(18, 18, 18, 0.98), rgba(10, 10, 10, 0.96));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  padding: 1rem 0.98rem 0.92rem;
}

.account-notice-dialog h2 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
  color: #f8f8f8;
}

.account-notice-message {
  margin: 0.64rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e8e8e8;
}

.account-notice-actions {
  margin-top: 0.82rem;
  display: flex;
  justify-content: flex-end;
}

.account-notice-btn {
  min-height: 36px;
  min-width: 96px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: linear-gradient(135deg, rgba(39, 141, 255, 0.9), rgba(35, 75, 212, 0.96));
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.account-notice-btn:hover,
.account-notice-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.9);
}

.detail-text {
  margin: 0.38rem 0;
  color: var(--text-body);
}

.step-list {
  margin: 0.44rem 0 0;
  padding-left: 1.1rem;
  color: #d6d6d6;
}

.step-list li {
  margin-bottom: 0.22rem;
}

.detail-form {
  display: grid;
  gap: 0.48rem;
  max-width: 520px;
}

.saved-list {
  margin: 0.72rem 0 0;
  display: grid;
  gap: 0.32rem;
}

.saved-item {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 10, 0.56);
  padding: 0.46rem 0.6rem;
  color: #e2e2e2;
  font-size: 0.82rem;
}

.empty-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.44rem;
  margin-top: 0.56rem;
}

.info-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 10, 10, 0.58);
  padding: 0.56rem;
}

.info-card p {
  margin: 0;
  color: #d0d0d0;
  font-size: 0.78rem;
}

.info-card strong {
  display: block;
  margin-top: 0.24rem;
  font-size: 1rem;
  font-family: "Exo 2", sans-serif;
}

.message-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.message-item {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 10, 10, 0.58);
  padding: 0.52rem 0.62rem;
}

.message-item p {
  margin: 0.24rem 0 0;
  color: #dddddd;
  font-size: 0.83rem;
}

.message-meta {
  display: flex;
  gap: 0.5rem;
  color: #b6b6b6;
  font-size: 0.76rem;
}

.order-detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.56rem;
}

.order-detail-item {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 10, 10, 0.58);
  padding: 0.58rem 0.62rem;
  display: grid;
  gap: 0.34rem;
}

.order-detail-row {
  display: grid;
  grid-template-columns: minmax(98px, 120px) 1fr;
  gap: 0.46rem;
  align-items: start;
}

.order-detail-label {
  color: #bbbbbb;
  font-size: 0.8rem;
  line-height: 1.45;
}

.order-detail-value {
  color: #f1f1f1;
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 650;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.order-table-wrap {
  overflow-x: auto;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.order-table th,
.order-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.44rem 0.34rem;
  text-align: left;
  font-size: 0.82rem;
}

.order-table th {
  color: #cbcbcb;
  font-weight: 600;
}

.order-table td {
  color: #e6e6e6;
}

.status-pill {
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 0.74rem;
  display: inline-flex;
}

.status-complete {
  color: #b8ffd7;
}

.status-progress {
  color: #d5ebff;
}

.status-hold {
  color: #ffe4b8;
}

.status-reject {
  color: #ffb0b0;
}

.withdraw-record-list {
  display: flex;
  flex-direction: column;
  gap: 0.46rem;
}

.withdraw-record-card {
  padding: 0.44rem 0.28rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.withdraw-record-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.52rem;
  align-items: start;
}

.withdraw-record-row + .withdraw-record-row {
  margin-top: 0.28rem;
}

.withdraw-record-cell {
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.42;
}

.withdraw-record-order {
  color: #d8d8d8;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.withdraw-record-time {
  color: #bdbdbd;
  white-space: nowrap;
}

.withdraw-record-status .status-pill {
  border-radius: 10px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.withdraw-record-amount {
  color: #6ecaff;
  font-weight: 700;
  white-space: nowrap;
}

.module-actions {
  margin-top: 0.62rem;
  display: flex;
  gap: 0.46rem;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .account-topbar {
    width: calc(100% - 0.9rem);
  }

  .brand {
    min-width: 160px;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .account-topbar {
    top: max(0.36rem, env(safe-area-inset-top));
    border-radius: 16px;
    padding: 0.34rem 0.38rem;
    gap: 0.3rem;
  }

  .home-link {
    min-height: 34px;
    padding: 0.28rem 0.56rem;
    font-size: 0.72rem;
  }

  .brand-name {
    font-size: 0.8rem;
  }

  .brand-sub {
    font-size: 0.64rem;
  }

  .lang-switch {
    gap: 0.2rem;
  }

  .lang-btn {
    min-width: 34px;
    min-height: 34px;
    font-size: 0.67rem;
  }

  .account-main {
    width: calc(100% - 0.9rem);
    margin-top: 4.2rem;
    gap: 0.58rem;
  }

  .auth-panel,
  .module-panel,
  .center-head {
    padding: 0.56rem;
  }

  .panel-head h1,
  .center-head h1 {
    font-size: clamp(1.08rem, 6vw, 1.46rem);
  }

  .module-grid {
    grid-template-columns: 1fr;
    gap: 0.46rem;
  }

  .module-card {
    padding: 0.54rem;
  }

  .module-card h3 {
    font-size: 0.88rem;
  }

  .module-card p {
    font-size: 0.74rem;
  }

  .order-detail-row {
    grid-template-columns: minmax(90px, 106px) 1fr;
    gap: 0.34rem;
  }

  .field-label input,
  .field-label select,
  .btn-primary,
  .btn-secondary {
    min-height: 36px;
    font-size: 0.8rem;
  }

  .captcha-row {
    grid-template-columns: 1fr;
  }

  #captcha-canvas {
    height: 42px;
  }

  .message-meta {
    flex-direction: column;
    gap: 0.18rem;
  }
}

@media (max-width: 560px) {
  .account-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand lang"
      "home home";
    align-items: center;
    row-gap: 0.32rem;
    border-radius: 14px;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
  }

  .brand-sub {
    display: none;
  }

  .lang-switch {
    grid-area: lang;
    justify-self: end;
  }

  .home-link {
    grid-area: home;
    width: 100%;
  }

  .account-main {
    margin-top: 6rem;
  }

  .center-head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .center-head .btn-secondary {
    width: 100%;
  }

  .center-quick {
    grid-template-columns: 1fr 1fr;
    gap: 0.48rem 0.58rem;
  }

  .detail-form {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .account-topbar {
    width: calc(100% - 0.72rem);
  }

  .account-main {
    width: calc(100% - 0.72rem);
    margin-top: 6.25rem;
  }

  .module-card h3 {
    font-size: 0.84rem;
  }

  .module-card p {
    font-size: 0.72rem;
  }

  .order-table {
    min-width: 560px;
  }
}
