/* =========================
   COMMON
========================= */
@font-face {
  font-family: 'Roboto Slab';
  src: url('RobotoSlab-Regular.eot');
  src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'),
      url('RobotoSlab-Regular.eot?#iefix') format('embedded-opentype'),
      url('RobotoSlab-Regular.ttf') format('truetype'),
      url('RobotoSlab-Regular.svg#RobotoSlab-Regular') format('svg');
}

@font-face {
  font-family: 'FinkHeavy';
  src: url('FinkHeavy.eot');
  src: local('FinkHeavy'),
      url('FinkHeavy.ttf')  format('truetype'),
      url('FinkHeavy.eot?#iefix') format('embedded-opentype'),
      url('FinkHeavy.woff2') format('woff2'),
      url('FinkHeavy.woff') format('woff'),
      url('FinkHeavy.otf') format('opentype'),
      url('FinkHeavy.svg#FinkHeavy') format('svg');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'MotoyaLMaru';
  src: url('MotoyaLMaru-W3-90ms-RKSJ-H.eot');
  src: local('MotoyaLMaru W3 mono'), local('MotoyaLMaru-W3-90ms-RKSJ-H'),
      url('MotoyaLMaru-W3-90ms-RKSJ-H.eot?#iefix') format('embedded-opentype'),
      url('MotoyaLMaru-W3-90ms-RKSJ-H.woff2') format('woff2'),
      url('MotoyaLMaru-W3-90ms-RKSJ-H.woff') format('woff'),
      url('MotoyaLMaru-W3-90ms-RKSJ-H.ttf') format('truetype'),
      url('MotoyaLMaru-W3-90ms-RKSJ-H.svg#MotoyaLMaru-W3-90ms-RKSJ-H') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Raleway-Medium';
  src: url('Raleway-Medium.eot');
  src: local('Raleway-Medium'),
      url('Raleway-Medium.ttf')  format('truetype'),
      url('Raleway-Medium.eot?#iefix') format('embedded-opentype'),
      url('Raleway-Medium.woff2') format('woff2'),
      url('Raleway-Medium.woff') format('woff'),
      url('Raleway-Medium.otf') format('opentype'),
      url('Raleway-Medium.svg#Raleway-Medium') format('svg');
  font-weight: 900;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-main: #0D1B2A;
  --bg-sub: #1B3A5C;
  --bg-sub2: #27476d;
  --text-main: #C9A84C;
  --text-sub: #8EB4D8;
  --card-bg: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.10);
  --line: rgba(255,255,255,0.08);
  --white-soft: rgba(255,255,255,0.88);
  --shadow: 0 20px 50px rgba(0,0,0,0.28);

  --white-line: rgba(255,255,255,0.04);
  --panel-bg: rgba(13, 27, 42, 0.96);
  --panel-border: rgba(201, 168, 76, 0.20);
  --panel-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  --scroll-thumb: rgba(201, 168, 76, 0.55);
  --scroll-track: rgba(255,255,255,0.08);

  --fg: #1A1A1A;
  --muted: #6B6B6B;
  --border: #D8D8D4;
  --pale: #ecebe5;
  --surface: #ffffff;
  --ease: .22s ease;
}

:root[data-theme="light"] {
  --fg: #1A1A1A;
  --muted: #6B6B6B;
  --border: #D8D8D4;
  --pale: #ecebe5;
  --surface: #ffffff;
}

:root[data-theme="dark"] {
  --fg: #F5F5F2;
  --muted: #8EB4D8;
  --border: rgba(142, 180, 216, 0.18);
  --pale: rgba(255,255,255,0.05);
  --surface: rgba(255,255,255,0.10);
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   LANDING PAGE ONLY
========================= */
body.page-landing {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(27, 58, 92, 0.24), transparent 28%),
    radial-gradient(circle at 82% 28%, rgba(201, 168, 76, 0.08), transparent 30%),
    linear-gradient(180deg, #0D1B2A 0%, #12263c 100%);
  color: #fff;
}

body.page-landing .hero {
  width: 100vw;
  height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(27, 58, 92, 0.24), transparent 28%),
    radial-gradient(circle at 82% 28%, rgba(201, 168, 76, 0.08), transparent 30%),
    linear-gradient(180deg, #0D1B2A 0%, #12263c 100%);
  isolation: isolate;
}

body.page-landing .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/Blank_map_of_the_world_(Miller_cylindrical_projection)_(-Antartctica).svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.30;
  filter: grayscale(0.10) saturate(0.65) contrast(1.02) brightness(0.74);
  mix-blend-mode: screen;
  z-index: 1;
  pointer-events: none;
}

body.page-landing .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 27, 42, 0.34) 0%, rgba(13, 27, 42, 0.16) 38%, rgba(13, 27, 42, 0.42) 100%),
    radial-gradient(circle at 50% 50%, transparent 35%, rgba(13,27,42,0.14) 100%);
  z-index: 2;
  pointer-events: none;
}

body.page-landing .noise-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--white-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--white-line) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.14;
}

body.page-landing .glow-1,
body.page-landing .glow-2 {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

body.page-landing .glow-1 {
  width: 380px;
  height: 380px;
  left: -80px;
  top: -80px;
  background: rgba(27, 58, 92, 0.22);
}

body.page-landing .glow-2 {
  width: 420px;
  height: 420px;
  right: -100px;
  bottom: -100px;
  background: rgba(201, 168, 76, 0.10);
}

body.page-landing .content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  overflow: visible;
  background: transparent;
}

body.page-landing .content-inner {
  width: 100%;
  max-width: 1080px;
  transform: translateY(0);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

body.page-landing.dropdown-open .content-inner,
body.page-landing.dropdown-open .content-inner {
  transform: translateY(-70px);
}

body.page-landing .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.26);
  background: rgba(13, 27, 42, 0.34);
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

body.page-landing h1 {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: white;
  margin-bottom: 18px;
  text-shadow: 0 3px 12px rgba(0,0,0,0.22), 0 10px 30px rgba(0,0,0,0.18);
}

body.page-landing p {
  max-width: 840px;
  margin: 0 auto 24px;
  font-size: clamp(14px, 1.35vw, 19px);
  line-height: 1.7;
  color: rgba(142, 180, 216, 0.96);
  text-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

body.page-landing .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

body.page-landing .btn-secondary {
  background: rgba(13, 27, 42, 0.34);
  color: #C9A84C;
  border: 1px solid rgba(201, 168, 76, 0.24);
  backdrop-filter: blur(4px);
}

body.page-landing .btn:hover {
  transform: translateY(-1px);
}

body.page-landing .main-action {
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
}

body.page-landing .image-button-link {
  position: relative;
  display: inline-block;
  width: min(650px, 72vw);
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
  transform: translateZ(0);
  cursor: default;
}

body.page-landing .image-button {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 951 / 545;
  object-fit: cover;
  border-radius: 10px;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

body.page-landing .lang-dropdown {
  position: relative;
  display: inline-block;
  margin-bottom: 4px;
  overflow: visible;
  z-index: 60;
}

body.page-landing .auto-lang-btn {
  min-width: 230px;
  height: 46px;
  font-size: 14px;
  gap: 10px;
  position: relative;
  z-index: 61;
}

body.page-landing .auto-lang-btn .caret {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  margin-left: 2px;
  transition: transform 0.24s ease;
  flex: 0 0 auto;
}

body.page-landing .lang-dropdown.open .auto-lang-btn .caret {
  transform: rotate(225deg) translateY(-1px);
}

body.page-landing .lang-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-12px) scaleY(0.72);
  transform-origin: top center;
  width: min(340px, calc(100vw - 40px));
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  box-shadow: var(--panel-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s ease;
  backdrop-filter: blur(10px);
  z-index: 70;
  overflow: hidden;
}

body.page-landing .lang-dropdown.open .lang-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scaleY(1);
}

body.page-landing .lang-panel-inner {
  max-height: 216px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
  padding-right: 2px;
}

body.page-landing .lang-panel-inner::-webkit-scrollbar {
  width: 8px;
}

body.page-landing .lang-panel-inner::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
}

body.page-landing .lang-panel-inner::-webkit-scrollbar-track {
  background: var(--scroll-track);
  border-radius: 999px;
  margin: 10px 8px 10px 0;
}

body.page-landing .lang-item {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  background: transparent;
  color: #C9A84C;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  text-align: left;
}

body.page-landing .lang-item:last-child {
  border-bottom: 0;
}

body.page-landing .lang-item:hover {
  background: rgba(201, 168, 76, 0.08);
  color: #f4e3a8;
}

body.page-landing .lang-item.active {
  background: rgba(201, 168, 76, 0.13);
  color: #f4e3a8;
}

body.page-landing .flag {
  width: 20px;
  height: 14px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.16);
  flex: 0 0 auto;
}

body.page-landing .lang-item .flag {
  width: 20px;
  height: 14px;
  border-radius: 3px;
}

body.page-landing .lang-item .lang-name {
  flex: 1;
}

body.page-landing .lang-note {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(142,180,216,0.74);
  min-height: 18px;
}

@media (max-width: 1200px) {
  body.page-landing .hero::before {
    background-size: contain;
  }
}

@media (max-width: 768px) {
  body.page-landing,
  body.page-landing html {
    overflow: hidden;
  }

  body.page-landing .hero {
    min-height: 100svh;
  }

  body.page-landing .content {
    padding: 24px 20px 20px;
    align-items: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    background: transparent;
  }

  body.page-landing.dropdown-open .content-inner {
    transform: translateY(0);
  }

  body.page-landing .content-inner {
    padding-top: 22px;
    padding-bottom: 28px;
    transform: none;
    transition: none;
    will-change: auto;
  }

  body.page-landing .eyebrow {
    margin-top: 0;
  }

  body.page-landing .hero::before {
    background-size: 170%;
    background-position: center 48%;
    opacity: 0.24;
  }

  body.page-landing .noise-lines {
    background-size: 80px 80px;
    opacity: 0.10;
  }

  body.page-landing p {
    line-height: 1.62;
    margin-bottom: 18px;
  }

  body.page-landing .btn {
    min-width: 140px;
    height: 44px;
    font-size: 14px;
  }

  body.page-landing .image-button-link {
    width: min(951px, 88vw);
  }

  body.page-landing .lang-dropdown {
    width: 100%;
    max-width: 340px;
  }

  body.page-landing .auto-lang-btn {
    width: 100%;
    min-width: 0;
  }

  body.page-landing .lang-panel {
    width: 100%;
    max-width: 100%;
  }

  body.page-landing .lang-panel-inner {
    max-height: 200px;
  }

  body.page-landing .lang-item {
    min-height: 50px;
    font-size: 13px;
  }

  body.page-landing .lang-item .flag,
  body.page-landing .flag {
    width: 18px;
    height: 12px;
  }
}

/* =========================
   APP LAYOUT ONLY
========================= */
body.page-app {
  background: linear-gradient(180deg, #0D1B2A 0%, #12263c 100%);
  color: #fff;
}

body.page-app .site-shell {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body.page-app .site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(27,58,92,0.30), transparent 30%),
    radial-gradient(circle at 85% 25%, rgba(201,168,76,0.10), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(176,64,48,0.08), transparent 36%);
  pointer-events: none;
  z-index: 0;
}

body.page-app .container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

body.page-app .topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(13,27,42,0.74);
  border-bottom: 1px solid var(--line);
}

body.page-app .topbar-inner {
  width: min(1200px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.page-app .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.page-app .brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #C9A84C 0%, #A8882E 100%);
  color: var(--bg-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(201,168,76,0.24);
}

body.page-app .brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.page-app .brand-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

body.page-app .brand-sub {
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.page-app .nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.page-app .nav a {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(201,168,76,0.16);
  background: rgba(255,255,255,0.03);
  color: var(--text-sub);
  font-weight: 600;
  font-size: 14px;
}

body.page-app .nav a.active,
body.page-app .nav a:hover {
  border-color: rgba(201,168,76,0.46);
  color: var(--text-main);
  background: rgba(201,168,76,0.08);
}

body.page-app .lang-switcher {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body.page-app .lang-switcher a {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(201,168,76,0.14);
  color: #C9A84C;
  font-size: 12px;
}

body.page-app .page-hero {
  padding: 68px 0 34px;
}

body.page-app .eyebrow {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(201,168,76,0.24);
  background: rgba(13,27,42,0.34);
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

body.page-app .page-title {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
}

body.page-app .page-desc {
  max-width: 820px;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.8;
  color: rgba(142,180,216,0.96);
}

body.page-app .grid {
  display: grid;
  gap: 24px;
}

body.page-app .blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 70px;
}

body.page-app .card {
  position: relative;
  display: block;
  border-radius: 28px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.page-app .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(201,168,76,0.10), transparent 26%),
    radial-gradient(circle at left bottom, rgba(27,58,92,0.16), transparent 28%);
  pointer-events: none;
}

body.page-app .card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.40);
  box-shadow: 0 24px 60px rgba(0,0,0,0.32);
}

body.page-app .card-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

body.page-app .badge {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.18);
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 700;
}

body.page-app .card-title {
  position: relative;
  z-index: 1;
  font-size: 28px;
  line-height: 1.22;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

body.page-app .card-excerpt {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.82);
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 22px;
}

body.page-app .card-link {
  position: relative;
  z-index: 1;
  color: var(--text-main);
  font-weight: 800;
  font-size: 14px;
}

body.page-app .article-wrap {
  padding-bottom: 80px;
}

body.page-app .article-card {
  border-radius: 32px;
  border: 1px solid var(--card-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.04) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

body.page-app .article-header {
  padding: 42px 42px 24px;
  border-bottom: 1px solid var(--line);
}

body.page-app .article-title {
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #fff;
  margin-top: 14px;
}

body.page-app .article-body {
  padding: 34px 42px 46px;
  color: rgba(255,255,255,0.9);
  line-height: 1.95;
  font-size: 17px;
}

body.page-app .article-body h1,
body.page-app .article-body h2,
body.page-app .article-body h3 {
  color: var(--text-sub);
  margin: 26px 0 12px;
}

body.page-app .article-body p {
  margin-bottom: 18px;
}

body.page-app .article-body img {
  max-width: 100%;
  border-radius: 18px;
}

body.page-app .article-back {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(201,168,76,0.18);
  color: var(--text-sub);
  background: rgba(255,255,255,0.03);
  font-weight: 700;
  margin-bottom: 22px;
}

body.page-app .empty-box {
  border-radius: 28px;
  padding: 40px 30px;
  text-align: center;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.82);
}

@media (max-width: 980px) {
  body.page-app .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-app .article-header,
  body.page-app .article-body {
    padding-left: 26px;
    padding-right: 26px;
  }
}

@media (max-width: 640px) {
  body.page-app .topbar-inner {
    height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  body.page-app .blog-grid {
    grid-template-columns: 1fr;
  }

  body.page-app .page-hero {
    padding-top: 40px;
  }

  body.page-app .card {
    padding: 22px;
    border-radius: 22px;
  }

  body.page-app .article-card {
    border-radius: 24px;
  }

  body.page-app .article-header,
  body.page-app .article-body {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* =========================
   LANDING MATRIX LAYER
========================= */
body.page-landing .hero {
  position: relative;
}

body.page-landing .matrix-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

body.page-landing .matrix-layer canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  opacity: 0.66;
  pointer-events: none !important;
}

body.page-landing .content {
  position: relative;
  z-index: 3;
}

body.page-landing .content-inner,
body.page-landing .main-action,
body.page-landing .lang-dropdown,
body.page-landing .lang-note,
body.page-landing .eyebrow,
body.page-landing h1,
body.page-landing p {
  position: relative;
  z-index: 4;
}

@media (max-width: 768px) {
  body.page-landing .matrix-layer canvas {
    opacity: 0.54;
  }
}

body.page-landing .lang-dropdown.open + .lang-note {
  opacity: 0;
  visibility: hidden;
}

/* =========================
   LOGIN PAGE
========================= */
.page-login {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 14%, rgba(27, 58, 92, 0.10), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(201, 168, 76, 0.08), transparent 24%),
    linear-gradient(135deg, #F5F5F2 0%, #efefea 48%, #F5F5F2 100%);
  color: #1A1A1A;
}

.page-login * {
  box-sizing: border-box;
}

.login-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 268px;
  background: linear-gradient(180deg, #0D1B2A 0%, #11273c 100%);
  z-index: 100;
  transition: all 0.5s ease;
  border-right: 1px solid rgba(201, 168, 76, 0.16);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.login-sidebar.close {
  width: 82px;
}

.login-sidebar .login-logo-details {
  position: relative;
  height: 72px;
  width: 100%;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  background: rgba(255,255,255,0.01);
  overflow: hidden;
}

.login-sidebar .login-logo-details i {
  font-size: 30px;
  color: #C9A84C;
  height: 50px;
  min-width: 78px;
  text-align: center;
  line-height: 50px;
}

.login-sidebar .login-logo-details .login-logo-name {
  font-size: 19px;
  color: #F5F5F2;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: 0.3s ease;
  transition-delay: 0.1s;
  white-space: nowrap;
}

.login-sidebar.close .login-logo-details .login-logo-name {
  transition-delay: 0s;
  opacity: 0;
  pointer-events: none;
}

.login-sidebar .login-nav-links {
  height: 100%;
  padding: 22px 0 160px 0;
  overflow: auto;
}

.login-sidebar.close .login-nav-links {
  overflow: visible;
}

.login-sidebar .login-nav-links::-webkit-scrollbar {
  width: 8px;
}

.login-sidebar .login-nav-links::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.22);
  border-radius: 999px;
}

.login-sidebar .login-nav-links li {
  position: relative;
  list-style: none;
  transition: all 0.32s ease;
}

.login-sidebar .login-nav-links li:hover {
  background: rgba(255,255,255,0.04);
}

.login-sidebar .login-sub-menu li:hover {
  background: none;
}

.login-sidebar .login-nav-links li .login-icon-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-sidebar.close .login-nav-links li .login-icon-link {
  display: block;
}

.login-sidebar .login-nav-links li i {
  height: 50px;
  min-width: 78px;
  text-align: center;
  line-height: 50px;
  color: #C9A84C;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-sidebar .login-nav-links li.showMenu i.login-arrow {
  transform: rotate(-180deg);
}

.login-sidebar.close .login-nav-links i.login-arrow {
  display: none;
}

.login-sidebar .login-nav-links li a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.login-sidebar .login-nav-links li a .login-link-name {
  font-size: 16px;
  font-weight: 500;
  color: #dfe4ea;
  transition: all 0.4s ease;
  white-space: nowrap;
}

.login-sidebar.close .login-nav-links li a .login-link-name {
  opacity: 0;
  pointer-events: none;
}

.login-sidebar .login-nav-links li .login-sub-menu {
  padding: 6px 6px 14px 80px;
  margin-top: 0;
  background: transparent;
  display: none;
}

.login-sidebar .login-nav-links li.showMenu .login-sub-menu {
  display: block;
}

.login-sidebar .login-nav-links li .login-sub-menu a {
  color: #8EB4D8;
  font-size: 14px;
  padding: 5px 0;
  white-space: nowrap;
  opacity: 0.84;
  transition: all 0.3s ease;
}

.login-sidebar .login-nav-links li .login-sub-menu a:hover {
  opacity: 1;
  color: #C9A84C;
}

.login-sidebar.close .login-nav-links li .login-sub-menu {
  position: absolute;
  left: 100%;
  top: -10px;
  margin-top: 0;
  padding: 10px 20px;
  border-radius: 0 12px 12px 0;
  opacity: 0;
  display: block;
  pointer-events: none;
  transition: 0s;
  background: #13263a;
  border: 1px solid rgba(201, 168, 76, 0.14);
  box-shadow: 0 14px 28px rgba(0,0,0,.20);
}

.login-sidebar.close .login-nav-links li:hover .login-sub-menu {
  top: 0;
  opacity: 1;
  pointer-events: auto;
  transition: all 0.4s ease;
}

.login-sidebar .login-nav-links li .login-sub-menu .login-link-name {
  display: none;
}

.login-sidebar.close .login-nav-links li .login-sub-menu .login-link-name {
  font-size: 18px;
  opacity: 1;
  display: block;
}

.login-sidebar .login-nav-links li .login-sub-menu.blank {
  opacity: 1;
  pointer-events: auto;
  padding: 3px 20px 6px 16px;
  opacity: 0;
  pointer-events: none;
}

.login-sidebar .login-nav-links li:hover .login-sub-menu.blank {
  top: 50%;
  transform: translateY(-50%);
}

.login-sidebar .login-profile-details {
  position: fixed;
  bottom: 0;
  width: 268px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.03);
  padding: 12px 0;
  transition: all 0.5s ease;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  backdrop-filter: blur(6px);
}

.login-sidebar .login-profile-details .login-profile-content {
  display: flex;
  align-items: center;
}

.login-sidebar .login-profile-details img {
  height: 52px;
  width: 52px;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 14px 0 12px;
  background: #1d1b31;
  border: 1px solid rgba(201, 168, 76, 0.18);
}

.login-sidebar .login-profile-details .login-profile-name,
.login-sidebar .login-profile-details .login-job {
  color: #F5F5F2;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.login-sidebar .login-profile-details .login-job {
  color: #8EB4D8;
  font-size: 12px;
  font-weight: 500;
}

.login-sidebar.close .login-profile-details i,
.login-sidebar.close .login-profile-details .login-profile-name,
.login-sidebar.close .login-profile-details .login-job {
  display: none;
}

.login-home-section {
  position: relative;
  min-height: 100vh;
  left: 268px;
  width: calc(100% - 268px);
  transition: all 0.5s ease;
  background: transparent;
}

.login-sidebar.close ~ .login-home-section {
  left: 82px;
  width: calc(100% - 82px);
}

.login-home-section .login-home-content {
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.login-home-section .login-home-content .login-sidebar-toggle,
.login-home-section .login-home-content .login-home-text {
  color: #0D1B2A;
  font-size: 34px;
}

.login-home-section .login-home-content .login-sidebar-toggle {
  margin: 0 15px 0 0;
  cursor: pointer;
}

.login-home-section .login-home-content .login-home-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.login-main-wrap {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.login-auth-wrap {
  width: 100%;
  max-width: 600px;
}

.login-auth-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(13, 27, 42, 0.08);
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 28px 70px rgba(13, 27, 42, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.login-auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(201,168,76,0.06) 0%, transparent 30%),
    radial-gradient(circle at top right, rgba(13,27,42,0.06), transparent 24%);
  pointer-events: none;
}

.login-card-glow {
  position: absolute;
  inset: auto -64px -64px auto;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(201,168,76,.20) 0%, rgba(201,168,76,0) 70%);
  pointer-events: none;
}

.login-auth-head {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

.login-auth-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(13, 27, 42, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.16);
  color: #1B3A5C;
  font-size: .84rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}

.login-auth-title {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #0D1B2A;
  font-weight: 900;
}

.login-auth-desc {
  margin: 0;
  color: #6B6B6B;
  line-height: 1.7;
}

.login-auth-form {
  position: relative;
  z-index: 1;
  width: 100%;
}

.login-form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-form-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-form-label > span {
  display: inline-block;
  font-size: .94rem;
  font-weight: 800;
  color: #1B3A5C;
  padding-left: 2px;
  letter-spacing: -0.01em;
}

.login-input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #D8D8D4;
  background: rgba(255,255,255,0.96);
  color: #1A1A1A;
  outline: none;
  font-size: .97rem;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease, transform .25s ease;
}

.login-input::placeholder {
  color: #7d7d78;
}

.login-input:hover {
  border-color: rgba(27, 58, 92, 0.36);
  background: #ffffff;
}

.login-input:focus {
  border-color: #C9A84C;
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.14);
  background: #ffffff;
  transform: translateY(-1px);
}

.login-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: #1B3A5C;
  font-weight: 700;
  user-select: none;
}

.login-check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #C9A84C;
}

.login-bottom-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.login-bottom-links a {
  font-size: .92rem;
  color: #1B3A5C;
  font-weight: 700;
  text-decoration: none;
}

.login-form-error {
  margin-bottom: 16px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(176, 64, 48, 0.08);
  border: 1px solid rgba(176, 64, 48, 0.18);
  color: #8e2c20;
  font-weight: 800;
}

@media (max-width: 900px) {
  .login-auth-card {
    padding: 26px;
    border-radius: 24px;
  }

  .login-auth-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 400px) {
  .login-sidebar.close .login-nav-links li .login-sub-menu {
    display: none;
  }

  .login-sidebar {
    width: 82px;
  }

  .login-sidebar.close {
    width: 0;
  }

  .login-home-section {
    left: 82px;
    width: calc(100% - 82px);
    z-index: 100;
  }

  .login-sidebar.close ~ .login-home-section {
    width: 100%;
    left: 0;
  }
}

@media (max-width: 640px) {
  .login-main-wrap {
    padding: 16px;
  }

  .login-auth-card {
    padding: 20px;
    border-radius: 22px;
  }

  .login-auth-title {
    font-size: 1.5rem;
  }

  .login-bottom-links {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   GLOBAL THEME TOGGLE UI
========================= */
.theme-toggle-item {
  list-style: none;
  padding: 10px 14px 0;
}

.theme-toggle {
  margin: 10px 0 4px;
  padding: 8px 2px 0;
}

.theme-toggle-label {
  font-size: .82rem;
  color: #8EB4D8;
  margin-bottom: 6px;
  font-weight: 600;
}

.theme-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.18);
  background: rgba(255,255,255,0.04);
}

.theme-option {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
  padding: 7px 0;
  font-size: .84rem;
  font-weight: 700;
  color: #8EB4D8;
  cursor: pointer;
  border-radius: 999px;
}

.theme-option.is-active {
  color: #0D1B2A;
}

.theme-thumb {
  position: absolute;
  z-index: 1;
  top: 3px;
  left: 3px;
  width: calc(50% - 6px);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: linear-gradient(180deg, #C9A84C 0%, #A8882E 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .24);
  transition: transform .2s var(--ease), background .2s var(--ease);
}

:root[data-theme="dark"] .theme-thumb {
  transform: translateX(100%);
}

:root[data-theme="light"] .theme-thumb {
  transform: translateX(0);
}

.login-submit-btn {
  width: 100%;
  display: block;
  margin-top: 4px;
  padding: 16px 20px;
  border: 0;
  border-radius: 18px;
  background: #1B3A5C;
  border-bottom: 6px solid #0b121a;
  color: #F5F5F2;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  text-shadow: 0 -2px rgba(92, 67, 10, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 4px 10px rgba(13, 27, 42, 0.08);
  transition: all 0.1s;
  -webkit-transition: all 0.1s;
  appearance: none;
  -webkit-appearance: none;
}

.login-submit-btn:hover {
  filter: brightness(1.02);
}

.login-submit-btn:active {
  transform: translateY(5px);
  -webkit-transform: translateY(5px);
  border-bottom: 1px solid #A8882E;
}

.login-submit-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(201, 168, 76, 0.20),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.auth-inline-field {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.auth-inline-field .login-input {
  flex: 1 1 auto;
}

.auth-side-btn {
  min-width: 148px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: #1B3A5C;
  color: #F5F5F2;
  font-weight: 800;
  cursor: pointer;
  transition: filter .18s ease, transform .18s ease;
}

.auth-side-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.auth-help-text {
  min-height: 5px;
  margin-top: 6px;
  font-size: 13px;
  color: #6B6B6B;
}

.auth-help-text.ok {
  color: #1B3A5C;
  font-weight: 700;
}

.auth-help-text.error {
  color: #B04030;
  font-weight: 700;
}

.login-form-success {
  margin-bottom: 16px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(27, 58, 92, 0.08);
  border: 1px solid rgba(27, 58, 92, 0.18);
  color: lightgray;
  font-weight: 800;
}

.success-wrap{
  min-height:calc(100vh - 72px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px 16px;
  position:relative;
  overflow:hidden;
}

.success-bg{
  position:absolute;
  inset:0;
  pointer-events:none;
  overflow:hidden;
}

.success-orb{
  position:absolute;
  border-radius:999px;
  filter:blur(12px);
  opacity:.20;
  animation:orbFloat 9s ease-in-out infinite;
}

.success-orb.orb-1{
  width:220px;
  height:220px;
  left:-40px;
  top:30px;
  background:radial-gradient(circle, rgba(201,168,76,.85) 0%, rgba(201,168,76,0) 70%);
  animation-delay:0s;
}

.success-orb.orb-2{
  width:280px;
  height:280px;
  right:-70px;
  top:80px;
  background:radial-gradient(circle, rgba(142,180,216,.75) 0%, rgba(142,180,216,0) 72%);
  animation-delay:-2s;
}

.success-orb.orb-3{
  width:240px;
  height:240px;
  left:18%;
  bottom:-80px;
  background:radial-gradient(circle, rgba(27,58,92,.50) 0%, rgba(27,58,92,0) 72%);
  animation-delay:-4s;
}

.success-orb.orb-4{
  width:180px;
  height:180px;
  right:18%;
  bottom:20px;
  background:radial-gradient(circle, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 72%);
  animation-delay:-1s;
}

@keyframes orbFloat{
  0%,100%{
    transform:translate3d(0,0,0) scale(1);
  }
  50%{
    transform:translate3d(0,-16px,0) scale(1.06);
  }
}

.success-card{
  position:relative;
  width:100%;
  max-width:760px;
  background:
    linear-gradient(180deg, rgba(20,28,48,.96) 0%, rgba(14,20,36,.98) 100%);
  border:1px solid rgba(201,168,76,.18);
  border-radius:28px;
  padding:34px 28px 28px;
  box-shadow:
    0 30px 80px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.04);
  overflow:hidden;
  animation:cardEnter .9s cubic-bezier(.2,.8,.2,1) both;
  text-align:center;
}

.success-card::before{
  content:'';
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top left, rgba(201,168,76,.14), transparent 34%),
    radial-gradient(circle at top right, rgba(142,180,216,.12), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 40%);
  pointer-events:none;
}

@keyframes cardEnter{
  0%{
    opacity:0;
    transform:translateY(24px) scale(.97);
  }
  100%{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

.success-badge{
  width:88px;
  height:88px;
  margin:0 auto 20px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:2.2rem;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), rgba(255,255,255,.08) 30%, rgba(201,168,76,.14) 70%),
    linear-gradient(180deg, rgba(201,168,76,.20), rgba(168,136,46,.12));
  border:1px solid rgba(201,168,76,.24);
  box-shadow:
    0 0 0 10px rgba(201,168,76,.05),
    0 14px 35px rgba(0,0,0,.25);
  animation:badgeFloat 3.2s ease-in-out infinite;
}

@keyframes badgeFloat{
  0%,100%{
    transform:translateY(0);
    box-shadow:
      0 0 0 10px rgba(201,168,76,.05),
      0 14px 35px rgba(0,0,0,.25);
  }
  50%{
    transform:translateY(-8px);
    box-shadow:
      0 0 0 14px rgba(201,168,76,.07),
      0 18px 40px rgba(0,0,0,.28);
  }
}

.success-kicker{
  text-align:center;
  color:#C9A84C;
  font-size:.92rem;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
  margin-bottom:10px;
  opacity:0;
  animation:fadeUp .6s ease forwards;
  animation-delay:.15s;
}

.success-title{
  margin:0;
  text-align:center;
  font-size:clamp(2rem, 4vw, 3rem);
  line-height:1.15;
  font-weight:900;
  letter-spacing:-0.03em;
  color:#f8fbff;
  opacity:0;
  animation:fadeUp .7s ease forwards;
  animation-delay:.28s;
}

.success-title .accent{
  background:linear-gradient(90deg, #ffffff 0%, #C9A84C 48%, #f4e3a8 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.success-desc{
  margin:18px auto 0;
  max-width:700px;
  text-align:center;
  font-size:1.04rem;
  line-height:1.8;
  color:#cbd5e1;
  opacity:0;
  animation:fadeUp .7s ease forwards;
  animation-delay:.45s;
  word-break:keep-all;
  overflow-wrap:break-word;
}

.success-desc strong{
  color:#ffffff;
  font-weight:900;
}

.subtle{
  margin:14px auto 0;
  max-width:700px;
  text-align:center;
  color:#8fa1bf;
  font-size:.95rem;
  opacity:0;
  animation:fadeUp .7s ease forwards;
  animation-delay:.62s;
  word-break:keep-all;
  overflow-wrap:break-word;
  line-height:1.7;
}

.welcome-line{
  margin:24px auto 0;
  max-width:620px;
  padding:14px 16px;
  border-radius:16px;
  text-align:center;
  color:#d9ebff;
  background:rgba(18,27,46,.72);
  border:1px solid rgba(201,168,76,.14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
  opacity:0;
  animation:fadeUp .7s ease forwards;
  animation-delay:.8s;
}

.sparkles{
  position:relative;
  width:100%;
  height:34px;
  margin-top:14px;
  opacity:.95;
}

.sparkles span{
  position:absolute;
  width:8px;
  height:8px;
  border-radius:999px;
  background:linear-gradient(180deg, #f7e9b6 0%, #C9A84C 100%);
  box-shadow:0 0 12px rgba(201,168,76,.55);
  animation:sparkle 2.8s ease-in-out infinite;
}

.sparkles span:nth-child(1){ left:16%; top:10px; animation-delay:0s; }
.sparkles span:nth-child(2){ left:28%; top:2px; animation-delay:.5s; }
.sparkles span:nth-child(3){ left:47%; top:12px; animation-delay:1s; }
.sparkles span:nth-child(4){ left:66%; top:4px; animation-delay:1.5s; }
.sparkles span:nth-child(5){ left:80%; top:14px; animation-delay:2s; }

@keyframes sparkle{
  0%,100%{
    transform:translateY(0) scale(.7);
    opacity:.25;
  }
  50%{
    transform:translateY(-7px) scale(1.15);
    opacity:1;
  }
}

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(18px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.btn-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
  margin-top:28px;
  opacity:0;
  animation:fadeUp .7s ease forwards;
  animation-delay:1s;
}

.btn-primary,
.btn-ghost,
.btn-success{
  appearance:none;
  border:0;
  text-decoration:none;
  min-height:50px;
  padding:0 18px;
  border-radius:15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:.96rem;
  cursor:pointer;
  transition:transform .22s ease, box-shadow .22s ease, filter .22s ease, background .22s ease;
}

.btn-primary{
  color:#07111d;
  background:linear-gradient(180deg, #d6b55d 0%, #C9A84C 100%);
  box-shadow:0 12px 28px rgba(201,168,76,.22);
}

.btn-primary:hover{
  transform:translateY(-2px);
  filter:brightness(1.04);
  box-shadow:0 16px 34px rgba(201,168,76,.28);
}

.btn-ghost{
  color:#e8ecf3;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}

.btn-ghost:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.07);
}

.btn-success{
  color:#052018;
  background:linear-gradient(180deg, #94f7d0 0%, #5fe0b0 100%);
  box-shadow:0 12px 28px rgba(95,224,176,.18);
}

.btn-success:hover{
  transform:translateY(-2px);
  filter:brightness(1.03);
  box-shadow:0 16px 34px rgba(95,224,176,.24);
}

.success-footer-note{
  margin-top:18px;
  text-align:center;
  color:#6e7f9c;
  font-size:.88rem;
  opacity:0;
  animation:fadeUp .7s ease forwards;
  animation-delay:1.15s;
}

@media (max-width: 640px){
  .success-wrap{
    padding:20px 12px;
  }

  .success-card{
    padding:26px 18px 22px;
    border-radius:22px;
  }

  .success-badge{
    width:78px;
    height:78px;
    font-size:2rem;
    margin-bottom:16px;
  }

  .success-desc{
    font-size:.98rem;
    line-height:1.7;
  }

  .btn-row{
    flex-direction:column;
    align-items:stretch;
  }

  .btn-primary,
  .btn-ghost,
  .btn-success{
    width:100%;
  }
}

/* =========================
   SIDEBAR PROFILE / LOGOUT
========================= */
.login-sidebar .login-logo-details .login-logo-name {
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.login-sidebar .login-logo-details a.login-logo-name:hover {
  color: #C9A84C;
}

.login-profile-anchor,
.login-profile-anchor.is-guest {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
  overflow: hidden;
}

.login-profile-anchor:hover .login-profile-name {
  color: #C9A84C;
}

.login-profile-anchor:hover .login-job {
  color: #d7e7f6;
}

.login-name-job {
  min-width: 0;
  overflow: hidden;
}

.login-sidebar .login-profile-details .login-profile-name,
.login-sidebar .login-profile-details .login-job {
  overflow: hidden;
  text-overflow: ellipsis;
}

.login-sidebar .login-profile-details .login-profile-name {
  max-width: 130px;
}

.login-sidebar .login-profile-details .login-job {
  max-width: 130px;
}

.login-sidebar .login-profile-details {
  position: fixed;
  bottom: 0;
  width: 268px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  padding: 12px 10px 12px 0;
  transition: all 0.5s ease;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.login-sidebar.close .login-profile-details {
  width: 82px;
  justify-content: center;
  padding: 12px 0;
}

.login-logout-form,
.login-logout-link {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.login-logout-btn {
  width: 52px;
  height: 52px;
  border: 0;
  background: transparent !important;
  padding: 0;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none !important;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-logout-btn::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.login-logout-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201, 168, 76, 0.16);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.login-sidebar .login-profile-details .login-logout-btn i,
.login-sidebar .login-profile-details .login-logout-link i {
  min-width: auto !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  font-size: 22px;
  color: #C9A84C;
  transition: color .18s ease;
}

.login-logout-btn:hover .login-logout-icon-wrap {
  background: rgba(201,168,76,0.10);
  border-color: rgba(201,168,76,0.34);
  transform: translateY(-1px);
}

.login-logout-btn:hover i,
.login-logout-link:hover i {
  color: #f3d983;
}

.login-sidebar.close .login-profile-anchor {
  display: none;
}

.login-sidebar.close .login-logout-form,
.login-sidebar.close .login-logout-link {
  flex: 0 0 auto;
  width: auto;
  height: auto;
}

.app-flash-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 18px auto 0;
}

.app-flash {
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 800;
  line-height: 1.6;
}

.app-flash-success {
  background: rgba(27, 58, 92, 0.22);
  border: 1px solid rgba(201, 168, 76, 0.22);
  color: #f7f3e5;
}

.login-logo-link {
  width: 100%;
  max-width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  text-decoration: none;
  overflow: hidden;
}

.login-logo-link i {
  flex: 0 0 78px;
  min-width: 78px;
  text-align: center;
}

.login-logo-link .login-logo-name {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.login-sidebar.close .login-logo-link {
  width: 78px;
  max-width: 78px;
}

.login-sidebar.close .login-logo-link .login-logo-name {
  width: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-logo-link:hover .login-logo-name,
.login-logo-link:hover i {
  color: #C9A84C;
}

/* =========================
   PROFILE EDIT PAGE
========================= */
.profile-page-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 42px auto 80px;
  position: relative;
  z-index: 1;
}

.profile-page-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.26);
}

.profile-page-head {
  margin-bottom: 24px;
}

.profile-page-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(13, 27, 42, 0.24);
  border: 1px solid rgba(201, 168, 76, 0.16);
  color: #8EB4D8;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.profile-page-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 10px;
}

.profile-page-desc {
  color: rgba(255,255,255,0.76);
  line-height: 1.8;
}

.profile-inline-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
}

.profile-inline-alert-error {
  background: rgba(176, 64, 48, 0.10);
  border: 1px solid rgba(176, 64, 48, 0.22);
  color: #ffd9d3;
}

.profile-edit-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
}

.profile-avatar-panel,
.profile-form-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 22px;
}

.profile-avatar-panel {
  text-align: center;
}

.profile-avatar-frame {
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.22);
  box-shadow: 0 14px 32px rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.06);
}

.profile-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-name {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.profile-avatar-email {
  font-size: .92rem;
  color: #8EB4D8;
  margin-bottom: 14px;
  word-break: break-all;
}

.profile-avatar-meta {
  font-size: .92rem;
  color: rgba(255,255,255,0.76);
  margin-bottom: 16px;
  line-height: 1.7;
}

.profile-refresh-btn,
.profile-save-btn,
.profile-modal-close-btn {
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  font-weight: 900;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.profile-refresh-btn {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  background: rgba(255,255,255,0.06);
  color: #f1f5fb;
  border: 1px solid rgba(201,168,76,0.18);
}

.profile-refresh-btn:hover {
  transform: translateY(-1px);
  background: rgba(201,168,76,0.10);
}

.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-form-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-form-label > span {
  color: #dfe8f1;
  font-weight: 800;
  font-size: .95rem;
}

.profile-form-input,
.profile-form-textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.profile-form-input {
  min-height: 52px;
  padding: 14px 16px;
}

.profile-form-textarea {
  padding: 14px 16px;
  resize: vertical;
  min-height: 150px;
}

.profile-form-input::placeholder,
.profile-form-textarea::placeholder {
  color: rgba(255,255,255,0.42);
}

.profile-form-input:focus,
.profile-form-textarea:focus {
  border-color: rgba(201,168,76,0.52);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.12);
  background: rgba(255,255,255,0.08);
}

.profile-field-error {
  color: #ffd8d2;
  font-size: .88rem;
  font-weight: 700;
}

.profile-save-btn {
  min-height: 56px;
  padding: 0 18px;
  color: #07111d;
  background: linear-gradient(180deg, #d6b55d 0%, #C9A84C 100%);
  box-shadow: 0 12px 28px rgba(201,168,76,.22);
  margin-top: 4px;
}

.profile-save-btn:hover,
.profile-modal-close-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.profile-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 10, 18, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  backdrop-filter: blur(8px);
}

.profile-modal-card {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(180deg, rgba(20,28,48,.97) 0%, rgba(14,20,36,.99) 100%);
  border: 1px solid rgba(201,168,76,.18);
  border-radius: 28px;
  padding: 30px 24px 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.34);
  text-align: center;
}

.profile-modal-badge {
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #f7fbff;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), rgba(255,255,255,.08) 30%, rgba(201,168,76,.14) 70%);
  border: 1px solid rgba(201,168,76,.24);
  box-shadow: 0 0 0 10px rgba(201,168,76,.05), 0 14px 35px rgba(0,0,0,.25);
}

.profile-modal-kicker {
  color: #C9A84C;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.profile-modal-title {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.profile-modal-desc {
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 22px;
}

.profile-modal-close-btn {
  min-width: 140px;
  min-height: 50px;
  padding: 0 16px;
  color: #07111d;
  background: linear-gradient(180deg, #d6b55d 0%, #C9A84C 100%);
}

@media (max-width: 900px) {
  .profile-edit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .profile-page-card {
    padding: 20px;
    border-radius: 22px;
  }

  .profile-avatar-panel,
  .profile-form-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .profile-avatar-frame {
    width: 120px;
    height: 120px;
    border-radius: 24px;
  }
}

/* =========================
   DASHBOARD
========================= */
.dashboard-wrap {
  width: 100%;
}

.dashboard-card {
  max-width: 980px;
}

.dashboard-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-mini-card {
  display: block;
  text-decoration: none;
  padding: 22px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  text-align: left;
}

.dashboard-mini-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(201,168,76,0.22);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.dashboard-mini-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.14);
  color: #C9A84C;
  font-size: 24px;
  margin-bottom: 14px;
}

.dashboard-mini-title {
  display: block;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.dashboard-mini-desc {
  display: block;
  color: #b9c7da;
  line-height: 1.7;
  font-size: .94rem;
}

.dashboard-logout-card {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.dashboard-logout-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(201,168,76,0.22);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.dashboard-logout-btn {
  width: 100%;
  min-height: 100%;
  text-align: left;
  border: 0;
  cursor: pointer;
  padding: 22px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  appearance: none;
  -webkit-appearance: none;
}

.dashboard-logout-btn .dashboard-mini-icon,
.dashboard-logout-btn .dashboard-mini-title,
.dashboard-logout-btn .dashboard-mini-desc {
  display: block;
}

.dashboard-logout-btn .dashboard-mini-icon {
  margin-bottom: 14px;
}

.dashboard-logout-btn .dashboard-mini-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.14);
  color: #C9A84C;
  font-size: 24px;
  margin-bottom: 14px;
  flex: 0 0 auto;
}

.dashboard-logout-btn .dashboard-mini-icon i {
  width: auto !important;
  height: auto !important;
  min-width: auto !important;
  line-height: 1 !important;
  display: inline-block !important;
}

.dashboard-logout-btn .dashboard-mini-title,
.dashboard-logout-btn .dashboard-mini-desc {
  display: block !important;
  text-align: left;
}

.dashboard-logout-btn .dashboard-mini-title {
  margin-bottom: 6px;
}

.dashboard-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.dashboard-mini-card,
.dashboard-logout-card {
  height: 100%;
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   SIDEBAR PROFILE FINAL FIX
========================= */
.login-sidebar .login-profile-details {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 268px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 10px 10px 0;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  backdrop-filter: blur(6px);
  overflow: hidden;
  z-index: 101;
}

.login-sidebar.close .login-profile-details {
  width: 82px;
  justify-content: center;
  padding: 10px 0;
}

.login-profile-anchor,
.login-profile-anchor.is-guest {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.login-sidebar .login-profile-details .login-profile-content {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.login-sidebar .login-profile-details img {
  height: 52px;
  width: 52px;
  min-width: 52px;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 14px 0 12px;
  background: #1d1b31;
  border: 1px solid rgba(201, 168, 76, 0.18);
}

.login-name-job {
  min-width: 0;
  overflow: hidden;
}

.login-sidebar .login-profile-details .login-profile-name,
.login-sidebar .login-profile-details .login-job {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-logout-form,
.login-logout-link {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0 6px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-logout-btn {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
}

.login-logout-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201, 168, 76, 0.16);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

/* 전역 li i 규칙 무효화 */
.login-sidebar .login-profile-details .login-logout-btn i,
.login-sidebar .login-profile-details .login-logout-link i,
.login-sidebar .login-profile-details .login-logout-icon-wrap i {
  min-width: auto !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 22px !important;
  color: #C9A84C !important;
  display: inline-block !important;
  flex: 0 0 auto !important;
  text-align: center !important;
}

.login-logout-btn:hover .login-logout-icon-wrap {
  background: rgba(201,168,76,0.10);
  border-color: rgba(201,168,76,0.34);
  transform: translateY(-1px);
}

.login-sidebar.close .login-profile-anchor {
  display: none;
}

/* =========================
   LOGIN SUCCESS PHONE VERIFY FINAL
========================= */
.login-phone-card {
  max-width: 760px;
}

.login-success-inline {
  margin-top: 18px;
  margin-bottom: 0;
  text-align: left;
}

.login-success-phone-single {
  margin: 26px auto 0;
  max-width: 520px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}

.login-success-box-title.center {
  text-align: center;
  color: #ffffff;
  font-size: 1.16rem;
  font-weight: 900;
  margin-bottom: 18px;
}

.login-success-verify-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-success-phone-single .login-form-label > span {
  color: #f5f7fb;
}

.login-success-phone-single .login-input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10, 20, 36, 0.78);
  color: #ffffff;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.login-success-phone-single .login-input::placeholder {
  color: rgba(255,255,255,0.45);
}

.login-success-phone-single .login-input:focus {
  border-color: #3A9E8A;
  box-shadow: 0 0 0 4px rgba(58, 158, 138, 0.18);
  background: rgba(10, 20, 36, 0.9);
  color: #ffffff;
}

.login-sms-send-btn {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  background: #3A9E8A;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 12px 28px rgba(58, 158, 138, 0.22);
}

.login-sms-send-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  background: #348c7a;
}

.login-sms-send-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.login-success-phone-single .login-submit-btn {
  margin-top: 4px;
}

/* =========================
   MOBILE SIDEBAR FIX
========================= */
.login-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 20, 0.48);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 140;
  transition: opacity .25s ease, visibility .25s ease;
}

body.sidebar-mobile-open .login-sidebar-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .login-sidebar {
    width: min(288px, 86vw);
    left: 0;
    top: 0;
    transform: translateX(-100%);
    z-index: 150;
    transition: transform .32s ease, box-shadow .32s ease;
  }

  .login-sidebar.close {
    width: min(288px, 86vw);
  }

  .login-sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  }

  .login-sidebar .login-logo-details .login-logo-name,
  .login-sidebar .login-nav-links li a .login-link-name,
  .login-sidebar .login-profile-details .login-profile-name,
  .login-sidebar .login-profile-details .login-job {
    opacity: 1 !important;
    pointer-events: auto !important;
    width: auto !important;
  }

  .login-sidebar .login-nav-links {
    overflow: auto;
  }

  .login-sidebar.close .login-nav-links li .login-sub-menu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    padding: 6px 6px 14px 80px;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: none;
  }

  .login-sidebar.close .login-nav-links li.showMenu .login-sub-menu {
    display: block;
  }

  .login-sidebar.close .login-nav-links i.login-arrow {
    display: block;
  }

  .login-sidebar .login-profile-details,
  .login-sidebar.close .login-profile-details {
    width: min(288px, 86vw);
    justify-content: space-between;
    padding: 12px 10px 12px 0;
    background: rgba(255,255,255,0.03);
  }

  .login-sidebar.close .login-profile-anchor {
    display: flex;
  }

  .login-sidebar.close .login-profile-details .login-profile-content img {
    margin: 0 14px 0 12px;
  }

  .login-sidebar.close .login-profile-details .login-profile-name,
  .login-sidebar.close .login-profile-details .login-job {
    display: block;
  }

  .login-sidebar.close .login-logo-link {
    width: 100%;
    max-width: 100%;
  }

  .login-sidebar.close .login-logo-link .login-logo-name {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    overflow: visible;
    pointer-events: auto;
  }

  .login-home-section {
    left: 0 !important;
    width: 100% !important;
  }

  .login-home-section .login-home-content {
    padding: 0 18px;
  }

  .login-home-section .login-home-content .login-sidebar-toggle {
    font-size: 30px;
    margin-right: 12px;
    position: relative;
    z-index: 149;
  }

  body.sidebar-mobile-open {
    overflow: hidden;
  }
}

/* =========================
   REGISTER SUBMIT BUTTON SIZE
========================= */
.register-submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.register-submit-btn {
  width: 148px;
  min-width: 148px;
  min-height: 54px;
  padding: 0 16px;
  margin-top: 0;
  flex: 0 0 auto;
}

/* =========================
   REGISTER INLINE LAYOUT
========================= */
.register-auth-wrap-wide {
  max-width: 860px;
}

.register-inline-stack {
  gap: 14px;
}

.register-inline-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.register-inline-label {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: .95rem;
  font-weight: 800;
  color: #1B3A5C;
  padding-left: 2px;
  letter-spacing: -0.01em;
}

.register-inline-control {
  min-width: 0;
}

.register-inline-control .auth-help-text {
  min-height: 18px;
}

.register-inline-control .auth-inline-field {
  width: 100%;
}

.register-inline-control .auth-inline-field .login-input {
  min-width: 0;
}

.register-action-btn {
  min-width: 148px;
  min-height: 54px;
  border-radius: 14px;
  background: #1a063d;
  color: #F5F5F2;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: filter .18s ease, transform .18s ease, background .18s ease;
}

.register-action-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.register-action-btn.is-complete {
  background: #3A9E8A;
}

.register-submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.register-submit-btn {
  width: 148px;
  min-width: 148px;
  min-height: 54px;
  padding: 0 16px;
  margin-top: 0;
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .register-auth-wrap-wide {
    max-width: 100%;
  }

  .register-inline-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .register-inline-label {
    min-height: auto;
    padding-left: 0;
  }
}

.login-home-text-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color .18s ease, opacity .18s ease;
}

.login-home-text-link:hover {
  color: #1B3A5C;
  opacity: 0.82;
}

/* ===== 하단 버튼 박스 스타일 ===== */
.boxed-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* 공통 버튼 */
.bottom-btn {
  flex: 1;
  text-align: center;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

/* 메인 버튼 (네이비 + 골드 느낌) */
.bottom-btn-primary {
  background: linear-gradient(135deg, #1B3A5C, #2F5C8F);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.bottom-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  background: linear-gradient(135deg, #244b74, #3a6fa5);
}

/* 보조 버튼 (아웃라인 스타일) */
.bottom-btn-outline {
  background: transparent;
  color: #1B3A5C;
  border: 1.5px solid rgba(27, 58, 92, 0.4);
}

.bottom-btn-outline:hover {
  background: rgba(27, 58, 92, 0.08);
  border-color: #1B3A5C;
  transform: translateY(-2px);
}

/* ===== 하단 버튼 박스 스타일 ===== */
.boxed-links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  margin-top: 20px;
}

.bottom-btn {
  flex: 0 0 calc(50% - 6px) !important;
  width: calc(50% - 6px) !important;
  max-width: calc(50% - 6px) !important;
  min-width: 0 !important;
  text-align: center;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.bottom-btn-primary {
  background: #1a063d;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.bottom-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.bottom-btn-outline {
  background: transparent;
  color: #1B3A5C;
  border: 1.5px solid rgba(27, 58, 92, 0.4);
}

.bottom-btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

@media (max-width: 480px) {
  .boxed-links {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  .boxed-links .bottom-btn {
    flex: 0 0 calc(50% - 6px) !important;
    width: calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
  }
}

/* ===== 하단 버튼 박스 스타일 ===== */
.boxed-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* 공통 버튼 */
.bottom-btn {
  flex: 1;
  text-align: center;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  letter-spacing: 0.3px;
}

/* 메인 버튼 (남색) */
.bottom-btn-primary {
  background: #1B3A5C;
  color: #ffffff; /* ← 핵심 수정 (가독성 해결) */
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.bottom-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  /* 색 변화 없음 */
}

/* 보조 버튼 (아웃라인) */
.bottom-btn-outline {
  background: transparent;
  color: #1B3A5C;
  border: 1.5px solid rgba(27, 58, 92, 0.4);
}

.bottom-btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  /* 색 변화 없음 */
}

/* 모바일 대응 */
@media (max-width: 480px) {
  .boxed-links {
    flex-direction: column;
  }
  .diveie {
    width: 100%;
  }
}

@media (min-width: 480px) {
  .diveie {
    width: 300px;
  }
}

.image-button-link {
  display: inline-block;
  cursor: pointer;
}

/* =========================
   PC 사이드바 접힘 시 테마 토글 숨김
========================= */
@media (min-width: 769px) {
  .login-sidebar.close .theme-toggle-item {
    opacity: 0;
    visibility: hidden;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
  }
}

/* =========================
   REGISTER / LOGIN DARK MODE
   append at very bottom
========================= */
:root[data-theme="dark"] .page-login {
  background:
    radial-gradient(circle at 10% 14%, rgba(39, 71, 109, 0.16), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(201, 168, 76, 0.08), transparent 24%),
    linear-gradient(135deg, #0D1B2A 0%, #12263c 48%, #0D1B2A 100%);
  color: #F5F5F2;
}

:root[data-theme="dark"] .login-home-section .login-home-content .login-sidebar-toggle,
:root[data-theme="dark"] .login-home-section .login-home-content .login-home-text,
:root[data-theme="dark"] .login-home-text-link {
  color: #F5F5F2;
}

:root[data-theme="dark"] .login-home-text-link:hover {
  color: #C9A84C;
  opacity: 1;
}

:root[data-theme="dark"] .login-auth-card {
  background: rgba(15, 24, 38, 0.88);
  border: 1px solid rgba(201, 168, 76, 0.14);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

:root[data-theme="dark"] .login-auth-card::before {
  background:
    linear-gradient(135deg, rgba(201,168,76,0.08) 0%, transparent 30%),
    radial-gradient(circle at top right, rgba(142,180,216,0.08), transparent 24%);
}

:root[data-theme="dark"] .login-auth-eyebrow {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201, 168, 76, 0.18);
  color: #C9A84C;
}

:root[data-theme="dark"] .login-auth-title {
  color: #F5F5F2;
}

:root[data-theme="dark"] .login-auth-desc {
  color: #AEBFD1;
}

:root[data-theme="dark"] .register-inline-label,
:root[data-theme="dark"] .login-form-label > span {
  color: #DCE7F2;
}

:root[data-theme="dark"] .login-input {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: #F5F5F2;
}

:root[data-theme="dark"] .login-input::placeholder {
  color: rgba(245,245,242,0.42);
}

:root[data-theme="dark"] .login-input:hover {
  border-color: rgba(142, 180, 216, 0.30);
  background: rgba(255,255,255,0.08);
}

:root[data-theme="dark"] .login-input:focus {
  border-color: #C9A84C;
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.14);
  background: rgba(255,255,255,0.10);
  color: #ffffff;
}

:root[data-theme="dark"] .auth-side-btn,
:root[data-theme="dark"] .register-action-btn {
  background: #1a063d;
  color: #F5F5F2;
  box-shadow: 0 10px 22px rgba(0,0,0,0.20);
}

:root[data-theme="dark"] .auth-side-btn:hover,
:root[data-theme="dark"] .register-action-btn:hover {
  background: #4d3578;
}

:root[data-theme="dark"] .register-action-btn.is-complete {
  background: #3A9E8A;
}

:root[data-theme="dark"] .login-submit-btn {
  background: #1a063d;
  border-bottom: 6px solid #0a1118;
  color: #F5F5F2;
  text-shadow: none;
}

:root[data-theme="dark"] .login-submit-btn:hover {
  filter: brightness(1.06);
}

:root[data-theme="dark"] .login-submit-btn:active {
  border-bottom: 1px solid #C9A84C;
}

:root[data-theme="dark"] .auth-help-text {
  color: #9FB2C6;
}

:root[data-theme="dark"] .auth-help-text.ok {
  color: #7FD8C5;
}

:root[data-theme="dark"] .auth-help-text.error {
  color: #FF9F92;
}

:root[data-theme="dark"] .login-form-error {
  background: rgba(176, 64, 48, 0.14);
  border: 1px solid rgba(255, 145, 130, 0.18);
  color: #FFB2A8;
}

:root[data-theme="dark"] .login-form-success {
  background: rgba(58, 158, 138, 0.12);
  border: 1px solid rgba(127, 216, 197, 0.18);
  color: #D9FFF5;
}

:root[data-theme="dark"] .login-check-row {
  color: #DCE7F2;
}

:root[data-theme="dark"] .login-check-row input[type="checkbox"] {
  accent-color: #C9A84C;
}

:root[data-theme="dark"] .login-bottom-links a {
  color: #DCE7F2;
}

:root[data-theme="dark"] .boxed-links .bottom-btn {
  color: #F5F5F2;
}

:root[data-theme="dark"] .bottom-btn-primary {
  background: linear-gradient(135deg, #1a063d, #355f8e);
  color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.30);
}

:root[data-theme="dark"] .bottom-btn-primary:hover {
  background: linear-gradient(135deg, #4d3578, #416f9f);
}

:root[data-theme="dark"] .bottom-btn-outline {
  background: rgba(255,255,255,0.04);
  color: #DCE7F2 !important;
  border: 1.5px solid rgba(142, 180, 216, 0.30);
}

:root[data-theme="dark"] .bottom-btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(201,168,76,0.44);
}

:root[data-theme="dark"] .register-card-noise {
  opacity: 0.06;
}

:root[data-theme="dark"] .login-card-glow {
  background: radial-gradient(circle, rgba(201,168,76,.18) 0%, rgba(201,168,76,0) 70%);
}

:root[data-theme="dark"] .login-main-wrap {
  background: transparent;
}

:root[data-theme="dark"] .register-auth-card-modern,
:root[data-theme="dark"] .register-auth-wrap-wide,
:root[data-theme="dark"] .register-main-wrap {
  color: #F5F5F2;
}

/* disabled state */
:root[data-theme="dark"] .auth-side-btn:disabled,
:root[data-theme="dark"] .register-action-btn:disabled,
:root[data-theme="dark"] .login-submit-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

/* autofill fix */
:root[data-theme="dark"] .login-input:-webkit-autofill,
:root[data-theme="dark"] .login-input:-webkit-autofill:hover,
:root[data-theme="dark"] .login-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #F5F5F2;
  -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.08) inset;
  transition: background-color 9999s ease-in-out 0s;
}

/* 라이트모드 메인으로 버튼 글씨 고정 */
:root[data-theme="light"] .bottom-btn-primary,
:root:not([data-theme="dark"]) .bottom-btn-primary {
  color: #ffffff !important;
}

.bottom-btn-primary {
  color: #ffffff !important;
}

.bottom-btn-outline {
  color: #1B3A5C !important;
}

:root[data-theme="dark"] .bottom-btn-outline {
  color: #DCE7F2 !important;
}

/* =========================
   REGISTER POLICY LINK
========================= */
.register-policy-text {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: #6B6B6B;
}

.register-policy-text .policy-link {
  font-weight: 800;
  text-decoration: none;
  transition: color .18s ease, opacity .18s ease;
  color: #1B3A5C; /* 라이트모드 기본 */
}

.register-policy-text .policy-link:hover {
  color: #355f8e; /* 라이트모드 hover */
}

/* 다크모드 */
:root[data-theme="dark"] .register-policy-text {
  color: #AEBFD1;
}

:root[data-theme="dark"] .register-policy-text .policy-link {
  color: #E7D7B3; /* 약간 베이지 */
}

:root[data-theme="dark"] .register-policy-text .policy-link:hover {
  color: #CDB889; /* 좀 더 진한 베이지 */
}

/* =========================
   REGISTER PRIVACY CHECK
========================= */
.register-policy-text {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.6;
  color: #24364a;
}

.register-policy-text label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin: 0;
  user-select: none;
}

.register-policy-text input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 18px;
  accent-color: #1f4f82;
  cursor: pointer;
}

.register-policy-text .policy-link {
  text-decoration: none;
  font-weight: 700;
  color: #1f4f82;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.register-policy-text .policy-link:hover {
  color: #163b61;
  opacity: 0.95;
}

/* 체크박스 설명문 줄바꿈 자연스럽게 */
.register-policy-text span {
  display: inline;
  word-break: keep-all;
}

/* 다크모드 대응 */
body.dark-mode .register-policy-text,
[data-theme="dark"] .register-policy-text,
html.dark .register-policy-text,
body.theme-dark .register-policy-text {
  color: #e6dccd;
}

body.dark-mode .register-policy-text input[type="checkbox"],
[data-theme="dark"] .register-policy-text input[type="checkbox"],
html.dark .register-policy-text input[type="checkbox"],
body.theme-dark .register-policy-text input[type="checkbox"] {
  accent-color: #c8ae7d;
}

body.dark-mode .register-policy-text .policy-link,
[data-theme="dark"] .register-policy-text .policy-link,
html.dark .register-policy-text .policy-link,
body.theme-dark .register-policy-text .policy-link {
  color: #d9c3a0;
}

body.dark-mode .register-policy-text .policy-link:hover,
[data-theme="dark"] .register-policy-text .policy-link:hover,
html.dark .register-policy-text .policy-link:hover,
body.theme-dark .register-policy-text .policy-link:hover {
  color: #b89a6c;
}

/* 로그인 입력칸 아래 에러문구 */
.login-field-error {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #c53d3d;
  font-weight: 500;
}

/* 에러가 있는 input 강조 */
.login-input.is-invalid {
  border-color: #c53d3d !important;
  box-shadow: 0 0 0 3px rgba(197, 61, 61, 0.10);
}

/* 다크모드 대응 */
body.dark-mode .login-field-error,
[data-theme="dark"] .login-field-error,
html.dark .login-field-error,
body.theme-dark .login-field-error {
  color: #ff8f8f;
}

body.dark-mode .login-input.is-invalid,
[data-theme="dark"] .login-input.is-invalid,
html.dark .login-input.is-invalid,
body.theme-dark .login-input.is-invalid {
  border-color: #ff8f8f !important;
  box-shadow: 0 0 0 3px rgba(255, 143, 143, 0.12);
}

/* =========================
   LOGIN FIELD ERROR
========================= */
.login-field-error {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #c53d3d;
  font-weight: 500;
}

.hidden-error {
  display: none;
}

.login-input.is-invalid {
  border-color: #c53d3d !important;
  box-shadow: 0 0 0 3px rgba(197, 61, 61, 0.10);
}

/* 다크모드 대응 */
body.dark-mode .login-field-error,
[data-theme="dark"] .login-field-error,
html.dark .login-field-error,
body.theme-dark .login-field-error {
  color: #ff9a9a;
}

body.dark-mode .login-input.is-invalid,
[data-theme="dark"] .login-input.is-invalid,
html.dark .login-input.is-invalid,
body.theme-dark .login-input.is-invalid {
  border-color: #ff9a9a !important;
  box-shadow: 0 0 0 3px rgba(255, 154, 154, 0.12);
}

/* =========================
   PROFILE EDIT AUTH STYLE
========================= */
.profile-main-wrap {
  width: 100%;
}

.profile-auth-wrap-wide {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.profile-auth-card-modern {
  width: 100%;
}

.profile-auth-head-modern {
  margin-bottom: 22px;
}

.profile-edit-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
}

.profile-avatar-panel,
.profile-form-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(27, 58, 92, 0.10);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(12px);
}

.profile-avatar-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-avatar-frame {
  width: 124px;
  height: 124px;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 18px 40px rgba(27, 58, 92, 0.16);
}

.profile-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-avatar-name {
  font-size: 20px;
  font-weight: 700;
  color: #1b3a5c;
  margin-bottom: 4px;
}

.profile-avatar-email {
  font-size: 13px;
  color: #61758a;
  margin-bottom: 16px;
  word-break: break-all;
  min-height: 18px;
}

.profile-avatar-meta {
  font-size: 14px;
  color: #334e68;
  margin-bottom: 16px;
}

.profile-refresh-btn,
.profile-save-btn {
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.profile-refresh-btn {
  width: 100%;
  max-width: 220px;
  background: linear-gradient(135deg, #1b3a5c, #29527d);
  color: #fff;
  box-shadow: 0 10px 26px rgba(27, 58, 92, 0.22);
}

.profile-refresh-btn:hover,
.profile-save-btn:hover {
  transform: translateY(-1px);
}

.profile-refresh-btn:disabled,
.profile-save-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.profile-refresh-help-text {
  margin-top: 12px;
  min-height: 22px;
  font-size: 13px;
  line-height: 1.45;
  color: #5f6f82;
}

.profile-refresh-help-text.error {
  color: #c53d3d;
}

.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-form-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-form-label > span {
  font-size: 14px;
  font-weight: 700;
  color: #1b3a5c;
}

.profile-form-input,
.profile-form-textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(27, 58, 92, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: #1f2f3f;
  padding: 13px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-form-input:focus,
.profile-form-textarea:focus {
  border-color: #29527d;
  box-shadow: 0 0 0 3px rgba(41, 82, 125, 0.10);
}

.profile-form-input-readonly {
  background: rgba(238, 243, 248, 0.95);
  color: #5a6c7f;
  cursor: not-allowed;
}

.profile-form-textarea {
  resize: vertical;
  min-height: 140px;
}

.profile-save-btn {
  align-self: flex-start;
  min-width: 180px;
  background: linear-gradient(135deg, #d6b36a, #b88a3c);
  color: #fff;
  box-shadow: 0 10px 26px rgba(184, 138, 60, 0.24);
}

.profile-field-error {
  font-size: 13px;
  color: #c53d3d;
  margin-top: 2px;
}

.profile-inline-alert {
  margin-bottom: 18px;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
}

.profile-inline-alert-error {
  background: rgba(197, 61, 61, 0.10);
  color: #b43a3a;
  border: 1px solid rgba(197, 61, 61, 0.14);
}

@media (max-width: 900px) {
  .profile-edit-grid {
    grid-template-columns: 1fr;
  }

  .profile-save-btn {
    width: 100%;
  }

  .profile-refresh-btn {
    max-width: none;
  }
}

/* 다크모드 */
body.dark-mode .profile-avatar-panel,
body.dark-mode .profile-form-panel,
[data-theme="dark"] .profile-avatar-panel,
[data-theme="dark"] .profile-form-panel,
html.dark .profile-avatar-panel,
html.dark .profile-form-panel,
body.theme-dark .profile-avatar-panel,
body.theme-dark .profile-form-panel {
  background: rgba(20, 26, 34, 0.82);
  border-color: rgba(222, 210, 190, 0.08);
}

body.dark-mode .profile-avatar-name,
body.dark-mode .profile-form-label > span,
[data-theme="dark"] .profile-avatar-name,
[data-theme="dark"] .profile-form-label > span,
html.dark .profile-avatar-name,
html.dark .profile-form-label > span,
body.theme-dark .profile-avatar-name,
body.theme-dark .profile-form-label > span {
  color: #f1e7d7;
}

body.dark-mode .profile-avatar-email,
body.dark-mode .profile-avatar-meta,
body.dark-mode .profile-refresh-help-text,
[data-theme="dark"] .profile-avatar-email,
[data-theme="dark"] .profile-avatar-meta,
[data-theme="dark"] .profile-refresh-help-text,
html.dark .profile-avatar-email,
html.dark .profile-avatar-meta,
html.dark .profile-refresh-help-text,
body.theme-dark .profile-avatar-email,
body.theme-dark .profile-avatar-meta,
body.theme-dark .profile-refresh-help-text {
  color: #c6b9a8;
}

body.dark-mode .profile-form-input,
body.dark-mode .profile-form-textarea,
[data-theme="dark"] .profile-form-input,
[data-theme="dark"] .profile-form-textarea,
html.dark .profile-form-input,
html.dark .profile-form-textarea,
body.theme-dark .profile-form-input,
body.theme-dark .profile-form-textarea {
  background: rgba(12, 16, 22, 0.92);
  border-color: rgba(222, 210, 190, 0.10);
  color: #f5efe5;
}

body.dark-mode .profile-form-input-readonly,
[data-theme="dark"] .profile-form-input-readonly,
html.dark .profile-form-input-readonly,
body.theme-dark .profile-form-input-readonly {
  background: rgba(29, 36, 46, 0.94);
  color: #bcae9b;
}

body.dark-mode .profile-form-input:focus,
body.dark-mode .profile-form-textarea:focus,
[data-theme="dark"] .profile-form-input:focus,
[data-theme="dark"] .profile-form-textarea:focus,
html.dark .profile-form-input:focus,
html.dark .profile-form-textarea:focus,
body.theme-dark .profile-form-input:focus,
body.theme-dark .profile-form-textarea:focus {
  border-color: #c9ad7b;
  box-shadow: 0 0 0 3px rgba(201, 173, 123, 0.12);
}

body.dark-mode .profile-field-error,
[data-theme="dark"] .profile-field-error,
html.dark .profile-field-error,
body.theme-dark .profile-field-error {
  color: #ff9a9a;
}

/* =========================
   BLOG INSIDE AUTH LAYOUT
========================= */
.blog-main-wrap {
  width: 100%;
}

.blog-auth-wrap-wide {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.blog-auth-card-modern {
  width: 100%;
}

.blog-page-hero-inside {
  padding: 10px 0 18px;
}

.blog-container {
  width: 100%;
}

.blog-page-title {
  margin: 8px 0 10px;
  font-size: 34px;
  line-height: 1.22;
  color: #1b3a5c;
}

.blog-page-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #627588;
  max-width: 820px;
}

.blog-list-section {
  padding-top: 6px;
}

.blog-inline-alert {
  margin-bottom: 18px;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
}

.blog-inline-alert-error {
  background: rgba(197, 61, 61, 0.10);
  color: #b43a3a;
  border: 1px solid rgba(197, 61, 61, 0.14);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.blog-card {
  display: block;
  text-decoration: none;
  border-radius: 22px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(27,58,92,0.08);
  box-shadow: 0 14px 34px rgba(27,58,92,0.08);
  padding: 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(27,58,92,0.12);
  border-color: rgba(27,58,92,0.14);
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.blog-card .badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(27,58,92,0.08);
  color: #1b3a5c;
}

.blog-card-title {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.35;
  color: #1b3a5c;
}

.blog-card-excerpt {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.8;
  color: #52687e;
}

.blog-card-link {
  font-size: 14px;
  font-weight: 700;
  color: #9a7840;
}

.blog-empty-box {
  padding: 46px 24px;
  border-radius: 20px;
  text-align: center;
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(27,58,92,0.08);
  color: #607387;
  font-size: 15px;
}

.blog-pagination-wrap {
  padding: 32px 0 8px;
}

@media (max-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-page-title {
    font-size: 26px;
  }

  .blog-card {
    padding: 18px;
  }

  .blog-card-title {
    font-size: 19px;
  }
}

/* 다크모드 */
body.dark-mode .blog-page-title,
body.dark-mode .blog-card-title,
[data-theme="dark"] .blog-page-title,
[data-theme="dark"] .blog-card-title,
html.dark .blog-page-title,
html.dark .blog-card-title,
body.theme-dark .blog-page-title,
body.theme-dark .blog-card-title {
  color: #f1e7d7;
}

body.dark-mode .blog-page-desc,
body.dark-mode .blog-card-excerpt,
body.dark-mode .blog-empty-box,
[data-theme="dark"] .blog-page-desc,
[data-theme="dark"] .blog-card-excerpt,
[data-theme="dark"] .blog-empty-box,
html.dark .blog-page-desc,
html.dark .blog-card-excerpt,
html.dark .blog-empty-box,
body.theme-dark .blog-page-desc,
body.theme-dark .blog-card-excerpt,
body.theme-dark .blog-empty-box {
  color: #ccbfae;
}

body.dark-mode .blog-card,
body.dark-mode .blog-empty-box,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .blog-empty-box,
html.dark .blog-card,
html.dark .blog-empty-box,
body.theme-dark .blog-card,
body.theme-dark .blog-empty-box {
  background: rgba(20, 26, 34, 0.82);
  border-color: rgba(222, 210, 190, 0.08);
}

body.dark-mode .blog-card .badge,
[data-theme="dark"] .blog-card .badge,
html.dark .blog-card .badge,
body.theme-dark .blog-card .badge {
  background: rgba(241, 231, 215, 0.08);
  color: #f1e7d7;
}

body.dark-mode .blog-card-link,
[data-theme="dark"] .blog-card-link,
html.dark .blog-card-link,
body.theme-dark .blog-card-link {
  color: #d6b36a;
}

/* =========================
   POST PAGE
========================= */
.post-main-wrap {
  width: 100%;
}

.post-auth-wrap-wide {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.post-auth-card-modern {
  width: 100%;
}

.post-article-header {
  margin-bottom: 0px;
  padding-bottom: 0px;
  border-bottom: 1px solid rgba(27, 58, 92, 0.10);
}

.post-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a7840;
  margin-bottom: 10px;
}

.post-article-title {
  margin: 0 0 18px;
  font-size: 36px;
  line-height: 1.25;
  color: #1b3a5c;
  word-break: keep-all;
}

.post-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(27, 58, 92, 0.06);
}

.post-meta-label {
  font-size: 13px;
  font-weight: 700;
  color: #5c7287;
}

.post-meta-value {
  font-size: 13px;
  color: #1f3854;
}

.post-article-body {
  color: #30465c;
  font-size: 15px;
  line-height: 1.95;
}

.post-article-body p:first-child {
  margin-top: 0;
}

.post-article-body p:last-child {
  margin-bottom: 0;
}

.post-article-body h2,
.post-article-body h3,
.post-article-body h4 {
  margin-top: 28px;
  margin-bottom: 12px;
  color: #1b3a5c;
}

.post-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  margin: 18px 0;
}

.post-article-body a {
  color: #9a7840;
  text-decoration: none;
}

.post-article-body a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .post-article-title {
    font-size: 27px;
  }

  .post-meta-list {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 다크모드 */
body.dark-mode .post-article-title,
body.dark-mode .post-article-body h2,
body.dark-mode .post-article-body h3,
body.dark-mode .post-article-body h4,
[data-theme="dark"] .post-article-title,
[data-theme="dark"] .post-article-body h2,
[data-theme="dark"] .post-article-body h3,
[data-theme="dark"] .post-article-body h4,
html.dark .post-article-title,
html.dark .post-article-body h2,
html.dark .post-article-body h3,
html.dark .post-article-body h4,
body.theme-dark .post-article-title,
body.theme-dark .post-article-body h2,
body.theme-dark .post-article-body h3,
body.theme-dark .post-article-body h4 {
  color: #f1e7d7;
}

body.dark-mode .post-article-body,
body.dark-mode .post-meta-label,
body.dark-mode .post-meta-value,
[data-theme="dark"] .post-article-body,
[data-theme="dark"] .post-meta-label,
[data-theme="dark"] .post-meta-value,
html.dark .post-article-body,
html.dark .post-meta-label,
html.dark .post-meta-value,
body.theme-dark .post-article-body,
body.theme-dark .post-meta-label,
body.theme-dark .post-meta-value {
  color: #ccbfae;
}

body.dark-mode .post-meta-item,
[data-theme="dark"] .post-meta-item,
html.dark .post-meta-item,
body.theme-dark .post-meta-item {
  background: rgba(241, 231, 215, 0.08);
}

.post-meta-inline {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.post-meta-label {
  font-weight: 700;
  color: #5c7287;
}

.post-meta-value {
  color: #1f3854;
}

/* 다크모드 */
body.dark-mode .post-meta-label,
body.dark-mode .post-meta-value,
[data-theme="dark"] .post-meta-label,
[data-theme="dark"] .post-meta-value,
html.dark .post-meta-label,
html.dark .post-meta-value,
body.theme-dark .post-meta-label,
body.theme-dark .post-meta-value {
  color: #ccbfae;
}

.social-login-wrap {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.kakao-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.kakao-login-btn img {
    display: block;
    height: 46px;
    width: auto;
    border-radius: 12px;
}

.profile-danger-zone {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid rgba(180, 60, 60, 0.22);
    background: linear-gradient(180deg, rgba(120, 22, 22, 0.06) 0%, rgba(70, 12, 12, 0.08) 100%);
    border-radius: 18px;
}

.profile-danger-head {
    margin-bottom: 14px;
}

.profile-danger-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #7f1d1d;
}

.profile-danger-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #7a4b4b;
}

.profile-delete-open-btn {
    min-width: 140px;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #a61b1b 0%, #7f1d1d 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
    box-shadow: 0 14px 28px rgba(127, 29, 29, 0.20);
}

.profile-delete-open-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(127, 29, 29, 0.26);
}

.profile-modal-card-danger {
    border: 1px solid rgba(180, 60, 60, 0.18);
}

.profile-modal-badge-danger {
    background: linear-gradient(135deg, #a61b1b 0%, #7f1d1d 100%);
    color: #fff;
}

.profile-delete-form {
    width: 100%;
    margin-top: 16px;
}

.profile-delete-confirm-label {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    margin-top: 8px;
}

.profile-delete-confirm-label span {
    font-size: 14px;
    color: #5b4b4b;
}

.profile-delete-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 18px;
    flex-wrap: wrap;
}

.profile-delete-submit-btn {
    min-width: 130px;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #a61b1b 0%, #7f1d1d 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
    box-shadow: 0 14px 28px rgba(127, 29, 29, 0.20);
}

.profile-delete-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(127, 29, 29, 0.26);
}

.profile-delete-submit-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}

.profile-danger-zone {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(176, 64, 48, 0.16);
  background: linear-gradient(180deg, rgba(176, 64, 48, 0.05) 0%, rgba(176, 64, 48, 0.08) 100%);
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(176, 64, 48, 0.06);
}

.profile-danger-head {
  margin-bottom: 14px;
}

.profile-danger-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
  color: #7b2018;
  letter-spacing: -0.02em;
}

.profile-danger-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #7a5550;
}

.profile-delete-open-btn {
  min-width: 140px;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #B04030 0%, #8e2c20 100%);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  box-shadow: 0 12px 24px rgba(176, 64, 48, 0.18);
}

.profile-delete-open-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.profile-delete-open-btn:active {
  transform: translateY(1px);
}

.profile-modal-card-danger {
  border: 1px solid rgba(176, 64, 48, 0.18);
}

.profile-modal-badge-danger {
  background: linear-gradient(180deg, #B04030 0%, #8e2c20 100%);
  color: #fff;
}

.profile-delete-form {
  width: 100%;
  margin-top: 16px;
}

.profile-delete-confirm-label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  margin-top: 8px;
}

.profile-delete-confirm-label span {
  font-size: 14px;
  color: #5a5a56;
  line-height: 1.6;
}

.profile-delete-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.profile-delete-submit-btn {
  min-width: 130px;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #B04030 0%, #8e2c20 100%);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, opacity .18s ease;
  box-shadow: 0 12px 24px rgba(176, 64, 48, 0.18);
}

.profile-delete-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.profile-delete-submit-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 640px) {
  .profile-danger-zone {
    margin-top: 22px;
    padding: 16px;
    border-radius: 18px;
  }

  .profile-delete-actions {
    flex-direction: column;
  }

  .profile-delete-open-btn,
  .profile-delete-submit-btn,
  .profile-modal-close-btn {
    width: 100%;
  }
}

.profile-danger-zone {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(176, 64, 48, 0.16);
  background: linear-gradient(180deg, rgba(176, 64, 48, 0.05) 0%, rgba(176, 64, 48, 0.08) 100%);
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(176, 64, 48, 0.06);
}

.profile-danger-head {
  margin-bottom: 14px;
}

.profile-danger-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
  color: #7b2018;
  letter-spacing: -0.02em;
}

.profile-danger-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #7a5550;
}

.profile-delete-open-btn {
  min-width: 140px;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #B04030 0%, #8e2c20 100%);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  box-shadow: 0 12px 24px rgba(176, 64, 48, 0.18);
}

.profile-delete-open-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.profile-delete-open-btn:active {
  transform: translateY(1px);
}

.profile-modal-card-danger {
  border: 1px solid rgba(176, 64, 48, 0.18);
}

.profile-modal-badge-danger {
  background: linear-gradient(180deg, #B04030 0%, #8e2c20 100%);
  color: #fff;
}

.profile-delete-form {
  width: 100%;
  margin-top: 16px;
}

.profile-delete-confirm-label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  margin-top: 8px;
}

.profile-delete-confirm-label span {
  font-size: 14px;
  color: #5a5a56;
  line-height: 1.6;
}

.profile-delete-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.profile-delete-submit-btn {
  min-width: 130px;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #B04030 0%, #8e2c20 100%);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, opacity .18s ease;
  box-shadow: 0 12px 24px rgba(176, 64, 48, 0.18);
}

.profile-delete-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.profile-delete-submit-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 640px) {
  .profile-danger-zone {
    margin-top: 22px;
    padding: 16px;
    border-radius: 18px;
  }

  .profile-delete-actions {
    flex-direction: column;
  }

  .profile-delete-open-btn,
  .profile-delete-submit-btn,
  .profile-modal-close-btn {
    width: 100%;
  }
}

/* =========================
   KAKAO BUTTON (bottom-btn 스타일 기반)
========================= */

.kakao-login-btn-custom {
    width: min(100%, 220px);
    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 0 18px;
    border-radius: 15px;

    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;

    text-decoration: none;
    cursor: pointer;

    transition: transform 0.18s ease, 
                box-shadow 0.18s ease, 
                background 0.18s ease, 
                border-color 0.18s ease;

    box-sizing: border-box;
}

/* 아이콘 */
.kakao-login-btn-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* =========================
   라이트 모드
========================= */
.kakao-login-btn-custom {
    background: linear-gradient(180deg, #f1e6d8 0%, #e6d6c3 100%);
    color: #3e2a1f;

    border: 1px solid rgba(122, 85, 56, 0.25);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.4),
        0 6px 16px rgba(90, 62, 44, 0.15);
}

/* hover = bottom-btn 느낌 */
.kakao-login-btn-custom:hover {
    transform: translateY(-2px);

    background: linear-gradient(180deg, #f6ede2 0%, #e9dbc8 100%);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.5),
        0 12px 26px rgba(90, 62, 44, 0.22);
}

/* active 눌림 효과 */
.kakao-login-btn-custom:active {
    transform: translateY(3px);

    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.2),
        0 3px 8px rgba(0,0,0,0.15);
}

/* =========================
   다크 모드 (핵심)
========================= */
html.dark .kakao-login-btn-custom,
body.dark .kakao-login-btn-custom,
[data-theme="dark"] .kakao-login-btn-custom,
body.theme-dark .kakao-login-btn-custom {

    background: linear-gradient(180deg, #6b4b34 0%, #4f3525 100%);
    color: #fff4e8;

    border: 1px solid rgba(228, 198, 167, 0.18);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 10px 24px rgba(0,0,0,0.35);
}

html.dark .kakao-login-btn-custom:hover,
body.dark .kakao-login-btn-custom:hover,
[data-theme="dark"] .kakao-login-btn-custom:hover,
body.theme-dark .kakao-login-btn-custom:hover {

    transform: translateY(-2px);

    background: linear-gradient(180deg, #79533a 0%, #5b3d2a 100%);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 16px 34px rgba(0,0,0,0.42);
}

html.dark .kakao-login-btn-custom:active,
body.dark .kakao-login-btn-custom:active,
[data-theme="dark"] .kakao-login-btn-custom:active,
body.theme-dark .kakao-login-btn-custom:active {

    transform: translateY(3px);

    box-shadow:
        inset 0 2px 6px rgba(0,0,0,0.5),
        0 6px 12px rgba(0,0,0,0.25);
}

.kakao-login-btn-custom {
    display: flex;
    margin: 0 auto;
}

.login-profile-name-row {
  display: flex;
  align-items: center;
  min-width: 0;
}

.login-kakao-badge {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* 프로필 선택 박스 */
.profile-choice-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

/* 개별 카드 */
.profile-choice-item {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 14px 16px;

    border-radius: 14px;
    border: 1px solid rgba(120,120,120,0.2);

    cursor: pointer;
    transition: all 0.2s ease;
}

/* hover */
.profile-choice-item:hover {
    background: rgba(120,120,120,0.06);
}

/* 라디오 숨김 */
.profile-choice-item input {
    display: none;
}

/* 도트 */
.profile-choice-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #999;
    position: relative;
}

/* 선택됨 */
.profile-choice-item input:checked + .profile-choice-dot {
    border-color: #6b4b34;
}

.profile-choice-item input:checked + .profile-choice-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #6b4b34;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 텍스트 */
.profile-choice-label {
    font-size: 14px;
    font-weight: 600;
}

.profile-edit-section {
  margin-top: 6px;
}

.profile-edit-title {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 800;
  color: #1B3A5C;
}

.profile-choice-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-choice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(27, 58, 92, 0.12);
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.profile-choice-item:hover {
  background: rgba(255,255,255,0.85);
  border-color: rgba(201,168,76,0.28);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(13, 27, 42, 0.06);
}

.profile-choice-item input {
  display: none;
}

.profile-choice-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #8e99a5;
  position: relative;
  flex: 0 0 auto;
}

.profile-choice-item input:checked + .profile-choice-dot {
  border-color: #6b4b34;
}

.profile-choice-item input:checked + .profile-choice-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #6b4b34;
  border-radius: 999px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.profile-choice-label {
  font-size: 14px;
  font-weight: 700;
  color: #24384f;
}

.profile-choice-kakao-icon {
  width: 18px;
  height: 18px;
  margin-left: 4px;
  object-fit: contain;
}

.profile-image-upload-box {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(27, 58, 92, 0.16);
  background: rgba(255,255,255,0.42);
}

.profile-upload-help {
  margin-top: 8px;
  font-size: 13px;
  color: #6B6B6B;
}

.profile-upload-current {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1B3A5C;
}

.profile-avatar-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.profile-avatar-tools.is-hidden {
  display: none;
}

.profile-edit-section {
  margin-top: 8px;
}

.profile-edit-title {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 800;
  color: #f1e7d7;
}

.profile-choice-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-choice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.profile-choice-item:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(201,168,76,0.26);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(13, 27, 42, 0.10);
}

.profile-choice-item input {
  display: none;
}

.profile-choice-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #8e99a5;
  position: relative;
  flex: 0 0 auto;
  background: rgba(255,255,255,0.35);
}

.profile-choice-item input:checked + .profile-choice-dot {
  border-color: #6b4b34;
}

.profile-choice-item input:checked + .profile-choice-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #6b4b34;
  border-radius: 999px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.profile-choice-label {
  font-size: 14px;
  font-weight: 700;
  color: #f1e7d7;
}

.profile-choice-kakao-icon {
  width: 18px;
  height: 18px;
  margin-left: 4px;
  object-fit: contain;
}

.profile-image-upload-box {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.profile-upload-help {
  margin-top: 8px;
  font-size: 13px;
  color: white;
}

.profile-upload-current {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #f1e7d7;
}

/* 업로드 버튼 */
.profile-upload-btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.2);

  background: linear-gradient(180deg, #77acff 0%, #5f8ff2 100%);
  color: #fff;

  font-weight: 800;
  font-size: 14px;

  cursor: pointer;
  transition: all .2s ease;
}

.profile-upload-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* 파일명 표시 */
.profile-upload-filename {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

/* 기존 유지 */
.profile-upload-help {
  margin-top: 6px;
  font-size: 12px;
  color: #888;
}

/* =========================
   SETTINGS PAGE
========================= */
.settings-main-wrap {
  min-height: calc(100vh - 72px);
  padding: 28px;
}

.settings-page-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.settings-page-card {
  position: relative;
  overflow: hidden;
  background: rgba(10, 24, 52, 0.78);
  border: 1px solid rgba(120, 160, 220, 0.12);
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.settings-page-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 28%),
    radial-gradient(circle at top right, rgba(80, 140, 255, 0.08), transparent 28%);
  pointer-events: none;
}

.settings-page-head {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.settings-page-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(13, 27, 42, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.16);
  color: #1B3A5C;
  font-size: .84rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}

.settings-page-title {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #0D1B2A;
  font-weight: 900;
}

.settings-page-desc {
  margin: 0;
  color: #6B6B6B;
  line-height: 1.7;
}

.settings-inline-alert {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.settings-inline-alert-success {
  background: rgba(27, 58, 92, 0.08);
  border: 1px solid rgba(27, 58, 92, 0.16);
  color: #1B3A5C;
}

.settings-inline-alert-error {
  background: rgba(176, 64, 48, 0.08);
  border: 1px solid rgba(176, 64, 48, 0.18);
  color: #8e2c20;
}

.settings-form {
  position: relative;
  z-index: 1;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.settings-section-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(12, 28, 60, 0.52);
  border: 1px solid rgba(120, 160, 220, 0.10);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.settings-section-title {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 900;
  color: #d9e7ff;
}

.settings-option-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(13, 27, 42, 0.10);
  background: rgba(255,255,255,0.72);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.settings-radio-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(13, 27, 42, 0.06);
  border-color: rgba(201,168,76,0.26);
}

.settings-radio-card input {
  display: none;
}

.settings-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #8f98a5;
  position: relative;
  flex: 0 0 auto;
}

.settings-radio-card input:checked + .settings-radio-dot {
  border-color: #6b4b34;
}

.settings-radio-card input:checked + .settings-radio-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #6b4b34;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.settings-radio-text {
  font-size: 14px;
  font-weight: 700;
  color: #25384f;
}

.settings-theme-palette {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-color-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(13, 27, 42, 0.10);
  background: rgba(255,255,255,0.72);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.settings-color-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(13, 27, 42, 0.06);
  border-color: rgba(201,168,76,0.26);
}

.settings-color-card input {
  display: none;
}

.settings-color-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  flex: 0 0 auto;
  border: 2px solid rgba(255,255,255,0.7);
  box-shadow: 0 0 0 1px rgba(13, 27, 42, 0.10);
}

.theme-navy { background: #1B3A5C; }
.theme-brown { background: #6b4b34; }
.theme-blue { background: #35548f; }
.theme-black { background: #1A1A1A; }
.theme-gray { background: #7b8794; }

.settings-color-name {
  font-size: 14px;
  font-weight: 700;
  color: #25384f;
}

.settings-check-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(13, 27, 42, 0.10);
  background: rgba(255,255,255,0.72);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.settings-check-card + .settings-check-card {
  margin-top: 12px;
}

.settings-check-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(13, 27, 42, 0.06);
  border-color: rgba(201,168,76,0.26);
}

.settings-check-card input[type="checkbox"] {
  display: none;
}

.settings-check-box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid #8f98a5;
  position: relative;
  flex: 0 0 auto;
}

.settings-check-card input[type="checkbox"]:checked + .settings-check-box {
  border-color: #6b4b34;
  background: #6b4b34;
}

.settings-check-card input[type="checkbox"]:checked + .settings-check-box::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.settings-check-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-check-text strong {
  font-size: 14px;
  color: #24384f;
}

.settings-check-text small {
  color: #6B6B6B;
  font-size: 12px;
}

.settings-submit-row {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.settings-save-btn {
  min-width: 180px;
  height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  background: #1B3A5C;
  color: #F5F5F2;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
  box-shadow: 0 12px 28px rgba(13, 27, 42, 0.16);
}

.settings-save-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .settings-main-wrap {
    padding: 16px;
  }

  .settings-page-card {
    padding: 20px;
    border-radius: 22px;
  }

  .settings-page-title {
    font-size: 1.5rem;
  }

  .settings-theme-palette {
    grid-template-columns: 1fr;
  }
}

/* =========================
   5. THEME COLOR TOKENS
========================= */
html[data-theme-color="navy"],
body[data-theme-color="navy"] {
  --theme-accent: #1B3A5C;
  --theme-accent-strong: #0D1B2A;
  --theme-accent-soft: rgba(27, 58, 92, 0.14);
  --theme-accent-text: #F5F5F2;
}

html[data-theme-color="brown"],
body[data-theme-color="brown"] {
  --theme-accent: #6b4b34;
  --theme-accent-strong: #4f3525;
  --theme-accent-soft: rgba(107, 75, 52, 0.16);
  --theme-accent-text: #fff4e8;
}

html[data-theme-color="blue"],
body[data-theme-color="blue"] {
  --theme-accent: #35548f;
  --theme-accent-strong: #223a68;
  --theme-accent-soft: rgba(53, 84, 143, 0.16);
  --theme-accent-text: #F5F7FB;
}

html[data-theme-color="black"],
body[data-theme-color="black"] {
  --theme-accent: #1f1f1f;
  --theme-accent-strong: #0f0f0f;
  --theme-accent-soft: rgba(31, 31, 31, 0.16);
  --theme-accent-text: #ffffff;
}

html[data-theme-color="gray"],
body[data-theme-color="gray"] {
  --theme-accent: #6c7684;
  --theme-accent-strong: #4f5865;
  --theme-accent-soft: rgba(108, 118, 132, 0.16);
  --theme-accent-text: #ffffff;
}

/* =========================
   6. THEME MODE TOKENS
========================= */
html[data-theme="light"] {
  --theme-surface: rgba(255,255,255,0.82);
  --theme-surface-2: rgba(255,255,255,0.68);
  --theme-border: rgba(13, 27, 42, 0.08);
  --theme-text-main: #1A1A1A;
  --theme-text-sub: #6B6B6B;
  --theme-card-shadow: 0 28px 70px rgba(13, 27, 42, 0.16);
  --theme-box-shadow: 0 12px 28px rgba(13, 27, 42, 0.06);
}

html[data-theme="dark"] {
  --theme-surface: rgba(18, 27, 44, 0.88);
  --theme-surface-2: rgba(18, 27, 44, 0.72);
  --theme-border: rgba(255,255,255,0.10);
  --theme-text-main: #F5F5F2;
  --theme-text-sub: #B6C2CF;
  --theme-card-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  --theme-box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

/* =========================
   7. GLOBAL THEME APPLY
========================= */

/* 큰 카드 */
.login-auth-card,
.settings-page-card,
.chart-page-card {
  background: var(--theme-surface, rgba(255,255,255,0.82));
  border-color: var(--theme-border, rgba(13, 27, 42, 0.08));
  box-shadow: var(--theme-card-shadow, 0 28px 70px rgba(13, 27, 42, 0.16));
}

/* 중간 박스 */
.settings-section-card,
.chart-stat-box,
.chart-board,
.chart-table-wrap,
.profile-image-upload-box,
.profile-choice-item,
.profile-danger-zone {
  background: var(--theme-surface-2, rgba(255,255,255,0.68));
  border-color: var(--theme-border, rgba(13, 27, 42, 0.08));
  box-shadow: var(--theme-box-shadow, 0 12px 28px rgba(13, 27, 42, 0.06));
}

/* 버튼 */
.login-submit-btn,
.settings-save-btn,
.profile-save-btn {
  background: var(--theme-accent, #1B3A5C);
  color: var(--theme-accent-text, #F5F5F2);
}

/* 제목/강조 */
.login-auth-eyebrow,
.settings-page-eyebrow,
.chart-page-eyebrow,
.profile-edit-title,
.settings-section-title,
.chart-page-title,
.settings-page-title {
  color: var(--theme-accent, #1B3A5C);
}

/* 성공/현재 상태 강조 */
.settings-inline-alert-success,
.profile-upload-current,
.auth-help-text.ok {
  color: var(--theme-accent, #1B3A5C);
}

/* 선택 요소 hover */
.settings-radio-card:hover,
.settings-color-card:hover,
.settings-check-card:hover,
.profile-choice-item:hover {
  border-color: var(--theme-accent-soft, rgba(27, 58, 92, 0.14));
}

/* 선택된 도트 */
.settings-radio-card input:checked + .settings-radio-dot,
.profile-choice-item input:checked + .profile-choice-dot {
  border-color: var(--theme-accent, #1B3A5C);
}

.settings-radio-card input:checked + .settings-radio-dot::after,
.profile-choice-item input:checked + .profile-choice-dot::after {
  background: var(--theme-accent, #1B3A5C);
}

/* 일반 텍스트 */
html[data-theme="dark"] .login-home-section .login-home-content .login-sidebar-toggle,
html[data-theme="dark"] .login-home-section .login-home-content .login-home-text,
html[data-theme="dark"] .settings-page-title,
html[data-theme="dark"] .chart-page-title,
html[data-theme="dark"] .login-auth-title,
html[data-theme="dark"] .profile-avatar-name,
html[data-theme="dark"] .settings-color-name,
html[data-theme="dark"] .settings-radio-text,
html[data-theme="dark"] .profile-choice-label {
  color: var(--theme-text-main, #F5F5F2);
}

html[data-theme="dark"] .settings-page-desc,
html[data-theme="dark"] .chart-page-desc,
html[data-theme="dark"] .login-auth-desc,
html[data-theme="dark"] .profile-upload-help,
html[data-theme="dark"] .chart-data-table td,
html[data-theme="dark"] .chart-note-box,
html[data-theme="dark"] .settings-check-text small,
html[data-theme="dark"] .profile-avatar-meta,
html[data-theme="dark"] .profile-avatar-email {
  color: var(--theme-text-sub, #B6C2CF);
}

/* 다크모드 입력/textarea */
html[data-theme="dark"] .profile-form-input,
html[data-theme="dark"] .profile-form-textarea,
html[data-theme="dark"] .settings-section-card input {
  background: rgba(255,255,255,0.06);
  color: var(--theme-text-main, #F5F5F2);
  border-color: rgba(255,255,255,0.10);
}

/* 다크모드 표 헤더 */
html[data-theme="dark"] .chart-data-table th {
  background: rgba(255,255,255,0.06);
  color: var(--theme-text-main, #F5F5F2);
}

/* 다크모드 노트 박스 */
html[data-theme="dark"] .chart-note-box {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.10);
}

/* 다크모드 알림 카드 */
html[data-theme="dark"] .settings-inline-alert-success {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}

/* =========================
   8. OPTIONAL COLOR TARGETS
========================= */

/* 저장 버튼, 주요 포인트 */
.profile-refresh-btn,
.profile-upload-btn,
.bottom-btn.bottom-btn-primary {
  background: var(--theme-accent, #1B3A5C);
  color: var(--theme-accent-text, #F5F5F2);
}

/* 외곽 강조 */
.profile-upload-current,
.chart-stat-value {
  color: var(--theme-accent, #1B3A5C);
}

/* =========================
   SETTINGS PAGE - GLASS DARK
========================= */

.settings-page-card {
  position: relative;
  overflow: hidden;
  background: rgba(10, 24, 52, 0.78);
  border: 1px solid rgba(120, 160, 220, 0.12);
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.settings-page-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 28%),
    radial-gradient(circle at top right, rgba(80, 140, 255, 0.08), transparent 28%);
  pointer-events: none;
}

.settings-section-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(12, 28, 60, 0.52);
  border: 1px solid rgba(120, 160, 220, 0.10);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.settings-section-title {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 900;
  color: #d9e7ff;
}

.settings-page-title {
  color: #f3f7ff;
}

.settings-page-desc {
  color: rgba(226, 234, 248, 0.82);
}

.settings-radio-card,
.settings-color-card,
.settings-check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(140, 170, 220, 0.12);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.settings-check-card + .settings-check-card {
  margin-top: 12px;
}

.settings-radio-card:hover,
.settings-color-card:hover,
.settings-check-card:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(201, 168, 76, 0.22);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.settings-radio-text,
.settings-color-name {
  font-size: 14px;
  font-weight: 700;
  color: #eef4ff;
}

.settings-check-text strong {
  font-size: 14px;
  color: #eef4ff;
}

.settings-check-text small {
  color: rgba(210, 221, 238, 0.72);
  font-size: 12px;
}

.settings-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(194, 208, 230, 0.55);
  position: relative;
  flex: 0 0 auto;
  background: rgba(255,255,255,0.03);
}

.settings-radio-card input:checked + .settings-radio-dot {
  border-color: var(--theme-accent, #6b4b34);
}

.settings-radio-card input:checked + .settings-radio-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--theme-accent, #6b4b34);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.settings-check-box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid rgba(194, 208, 230, 0.55);
  position: relative;
  flex: 0 0 auto;
  background: rgba(255,255,255,0.03);
}

.settings-check-card input[type="checkbox"]:checked + .settings-check-box {
  border-color: var(--theme-accent, #6b4b34);
  background: var(--theme-accent, #6b4b34);
}

.settings-check-card input[type="checkbox"]:checked + .settings-check-box::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.settings-inline-alert-success {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(120, 160, 220, 0.12);
  color: #dce9ff;
}

.settings-inline-alert-error {
  background: rgba(176, 64, 48, 0.10);
  border: 1px solid rgba(176, 64, 48, 0.22);
  color: #ffd3cc;
}

.settings-save-btn {
  min-width: 180px;
  height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  background: var(--theme-accent, #1B3A5C);
  color: var(--theme-accent-text, #F5F5F2);
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.settings-save-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* 로그인 하단 2개 버튼 영역 동일 크기 맞춤 */
.login-bottom-links.register-bottom-links.boxed-links {
    display: flex;
    gap: 12px;
    align-items: stretch;
    width: 100%;
}

.login-bottom-links.register-bottom-links.boxed-links > a.login-bottom-equal-btn {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

/* 회원가입 / 메인으로 / 카카오 버튼 공통 박스 크기 */
.login-bottom-equal-btn {
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

/* 기존 bottom-btn과 시각적 정렬 보정 */
.login-bottom-links .bottom-btn.login-bottom-equal-btn {
    padding: 0 16px;
    line-height: 1;
}

/* 카카오 버튼: 디자인은 유지하되 박스 크기만 메인으로와 동일 */
.login-bottom-links .kakao-login-btn-bottom.login-bottom-equal-btn {
    margin: 0;
    padding: 0 16px;
    gap: 8px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: none;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

/* 카카오 아이콘 크기 */
.login-bottom-links .kakao-login-btn-bottom .kakao-login-btn-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: block;
}

/* 카카오 텍스트 정렬 */
.login-bottom-links .kakao-login-btn-bottom span {
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
}

/* 혹시 기존 kakao 버튼에 width나 margin이 강하게 걸려있으면 덮어쓰기 */
.kakao-login-btn-bottom {
    width: 100% !important;
    margin: 0 !important;
}

/* 모바일에서 너무 좁아질 때 자연스럽게 */
@media (max-width: 576px) {
    .login-bottom-links.register-bottom-links.boxed-links {
        gap: 10px;
    }

    .login-bottom-equal-btn {
        height: 50px;
        border-radius: 12px;
        font-size: 14px;
    }

    .login-bottom-links .kakao-login-btn-bottom.login-bottom-equal-btn {
        padding: 0 12px;
        gap: 6px;
    }

    .login-bottom-links .kakao-login-btn-bottom .kakao-login-btn-icon {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
    }
}

/* =========================
   DASHBOARD CUSTOM
========================= */
.dashboard-card-custom {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-welcome-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(13, 27, 42, 0.08);
  box-shadow: 0 18px 46px rgba(13, 27, 42, 0.08);
  text-align: left;
}

.dashboard-profile-thumb-wrap {
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(201, 168, 76, 0.45);
  box-shadow: 0 10px 24px rgba(13, 27, 42, 0.12);
  background: #ffffff;
}

.dashboard-profile-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dashboard-welcome-text-wrap {
  flex: 1;
  min-width: 0;
}

.dashboard-welcome-title {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 800;
  color: #1B3A5C;
}

.dashboard-welcome-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #5C6B7A;
}

.dashboard-section-box {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(13, 27, 42, 0.08);
  box-shadow: 0 18px 46px rgba(13, 27, 42, 0.08);
  text-align: left;
}

.dashboard-section-head {
  margin-bottom: 18px;
}

.dashboard-section-title {
  margin: 8px 0 8px;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.24;
  font-weight: 800;
  color: #1B3A5C;
}

.dashboard-section-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #5C6B7A;
}

.dashboard-post-list {
  display: grid;
  gap: 14px;
}

.dashboard-post-item {
  display: block;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(13, 27, 42, 0.07);
  box-shadow: 0 10px 24px rgba(13, 27, 42, 0.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dashboard-post-item:hover {
  transform: translateY(-2px);
  border-color: rgba(27, 58, 92, 0.18);
  box-shadow: 0 14px 28px rgba(13, 27, 42, 0.09);
}

.dashboard-post-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.dashboard-post-item-title {
  font-size: 18px;
  font-weight: 800;
  color: #1B3A5C;
}

.dashboard-post-item-id {
  font-size: 13px;
  font-weight: 700;
  color: #7d8a97;
}

.dashboard-post-item-meta {
  font-size: 13px;
  line-height: 1.7;
  color: #5C6B7A;
}

.dashboard-empty-box {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.58);
  border: 1px dashed rgba(13, 27, 42, 0.14);
  color: #5C6B7A;
}

.dashboard-more-wrap {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.dashboard-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1B3A5C 0%, #27476d 100%);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(27, 58, 92, 0.22);
}

.dashboard-chart-board {
  margin-top: 14px;
}

:root[data-theme="dark"] .dashboard-welcome-box,
:root[data-theme="dark"] .dashboard-section-box,
:root[data-theme="dark"] .dashboard-post-item,
:root[data-theme="dark"] .dashboard-empty-box {
  background: rgba(18, 27, 44, 0.78);
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 18px 46px rgba(0,0,0,0.24);
}

:root[data-theme="dark"] .dashboard-welcome-title,
:root[data-theme="dark"] .dashboard-section-title,
:root[data-theme="dark"] .dashboard-post-item-title {
  color: #F5F5F2;
}

:root[data-theme="dark"] .dashboard-welcome-desc,
:root[data-theme="dark"] .dashboard-section-desc,
:root[data-theme="dark"] .dashboard-post-item-meta,
:root[data-theme="dark"] .dashboard-post-item-id,
:root[data-theme="dark"] .dashboard-empty-box {
  color: #B6C2CF;
}

@media (max-width: 768px) {
  .dashboard-welcome-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-profile-thumb-wrap {
    width: 72px;
    height: 72px;
  }

  .dashboard-post-item-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

.post-list-card-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding: 20px;
    border-radius: 16px;

    background: rgba(13,27,42,0.85);
    border: 1px solid rgba(201,168,76,0.15);

    text-decoration: none;
    color: inherit;

    transition: 0.2s;
}

.post-list-card-row:hover {
    transform: translateY(-3px);
    border-color: rgba(201,168,76,0.4);
}

/* 왼쪽 */
.post-row-left {
    flex: 1;
}

.post-row-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.post-row-excerpt {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.5;
    margin-bottom: 10px;
}

.post-row-bottom {
    font-size: 12px;
    opacity: 0.7;
    display: flex;
    gap: 8px;
}

/* 오른쪽 썸네일 */
.post-row-right {
    width: 140px;
    flex-shrink: 0;
}

.post-row-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}

/* =========================
   POST LIST ROW CARD
========================= */
.post-list-grid {
  display: grid;
  gap: 20px;
  margin-top: 10px;
}

.post-list-card-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(13, 27, 42, 0.08);
  box-shadow: 0 16px 40px rgba(13, 27, 42, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.post-list-card-row:hover {
  transform: translateY(-3px);
  border-color: rgba(27, 58, 92, 0.18);
  box-shadow: 0 22px 48px rgba(13, 27, 42, 0.12);
}

/* 왼쪽 */
.post-row-left {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-row-title {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 800;
  color: #1B3A5C;
  margin-bottom: 10px;
  word-break: break-word;
}

.post-row-excerpt {
  font-size: 14px;
  line-height: 1.75;
  color: #5C6B7A;
  margin-bottom: 14px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-row-meta {
  display: grid;
  gap: 6px;
}

.post-row-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  line-height: 1.7;
}

.post-row-meta-label {
  font-weight: 700;
  color: #35506d;
}

.post-row-meta-value {
  color: #5C6B7A;
}

/* 오른쪽 썸네일 */
.post-row-right {
  width: 180px;
  flex: 0 0 180px;
}

.post-row-thumb-wrap {
  position: relative;
  width: 100%;
  height: 128px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(13, 27, 42, 0.05);
  border: 1px solid rgba(13, 27, 42, 0.06);
}

.post-row-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.post-row-image-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 40px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(13, 27, 42, 0.82);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  backdrop-filter: blur(4px);
}

.post-list-empty {
  margin-top: 8px;
  padding: 22px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.58);
  border: 1px dashed rgba(13, 27, 42, 0.14);
  color: #5C6B7A;
  text-align: center;
}

/* 다크모드 */
:root[data-theme="dark"] .post-list-card-row {
  background: rgba(18, 27, 44, 0.80);
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 18px 42px rgba(0,0,0,0.24);
}

:root[data-theme="dark"] .post-row-thumb-wrap {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

:root[data-theme="dark"] .post-row-title {
  color: #F5F5F2;
}

:root[data-theme="dark"] .post-row-excerpt,
:root[data-theme="dark"] .post-row-meta-value,
:root[data-theme="dark"] .post-list-empty {
  color: #B6C2CF;
}

:root[data-theme="dark"] .post-row-meta-label {
  color: #D9E5F0;
}

:root[data-theme="dark"] .post-row-image-badge {
  background: rgba(255, 255, 255, 0.16);
  color: #F5F5F2;
}

:root[data-theme="dark"] .post-list-empty {
  background: rgba(18, 27, 44, 0.76);
  border-color: rgba(255,255,255,0.10);
}

/* 반응형 */
@media (max-width: 900px) {
  .post-list-card-row {
    flex-direction: column-reverse;
  }

  .post-row-right {
    width: 100%;
    flex: 0 0 auto;
  }

  .post-row-thumb-wrap {
    height: 190px;
  }
}

@media (max-width: 640px) {
  .post-list-card-row {
    padding: 14px;
    border-radius: 18px;
    gap: 14px;
  }

  .post-row-title {
    font-size: 18px;
  }

  .post-row-thumb-wrap {
    height: 170px;
    border-radius: 14px;
  }

  .post-row-thumb {
    border-radius: 14px;
  }

  .post-row-image-badge {
    top: 8px;
    right: 8px;
  }
}


.stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

    .mini-chart {
  height: 150px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(79,125,99,0.12), rgba(79,125,99,0.02)),
    repeating-linear-gradient(
      to right,
      rgba(47,48,47,0.05),
      rgba(47,48,47,0.05) 1px,
      transparent 1px,
      transparent 48px
    ),
    repeating-linear-gradient(
      to top,
      rgba(47,48,47,0.05),
      rgba(47,48,47,0.05) 1px,
      transparent 1px,
      transparent 38px
    ),
    #fff;
  position: relative;
  overflow: hidden;
}

.mini-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
