/*
  JEHKA BANK Global CSS
  Clean MYKD-inspired unified theme
  - Use this as /public/css/global.css
  - Body/content defaults are left-aligned for readability
  - Main hero sections stay centered
  - Tables use high-contrast dark styling
*/

/* =========================================================
   THEME TOKENS
   ========================================================= */
:root {
  --jk-bg: #070c1a;
  --jk-bg-2: #0b1326;
  --jk-bg-3: #050816;

  --jk-panel: rgba(15, 23, 42, 0.88);
  --jk-panel-2: rgba(13, 21, 38, 0.96);
  --jk-card: rgba(18, 28, 48, 0.92);
  --jk-card-soft: rgba(255, 255, 255, 0.06);

  --jk-line: rgba(148, 163, 184, 0.18);
  --jk-line-strong: rgba(125, 211, 252, 0.36);

  --jk-text: #f8fafc;
  --jk-text-2: #e5edf8;
  --jk-muted: #d6e1f3;
  --jk-subtle: #94a3b8;

  --jk-primary: #5ee7ff;
  --jk-primary-2: #8b5cf6;
  --jk-blue: #38bdf8;
  --jk-danger: #fb7185;
  --jk-success: #34d399;
  --jk-warning: #facc15;

  --jk-radius: 22px;
  --jk-radius-sm: 14px;
  --jk-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --jk-shadow-soft: 0 12px 36px rgba(2, 8, 23, 0.28);

  --jk-font: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--jk-font);
  background:
    radial-gradient(circle at 12% 8%, rgba(94, 231, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 3%, rgba(139, 92, 246, 0.18), transparent 30%),
    linear-gradient(180deg, var(--jk-bg) 0%, var(--jk-bg-2) 55%, var(--jk-bg-3) 100%);
  color: var(--jk-text);
  line-height: 1.65;
  text-align: left;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 72%);
  z-index: -1;
}

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

a:hover {
  color: var(--jk-primary);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1,
h2,
h3,
h4,
h5,
h6,
label,
strong {
  color: #ffffff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
.page-title {
  margin-bottom: 12px;
  font-size: clamp(32px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

h2,
.card h2,
.guide-card h2 {
  margin-bottom: 16px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.025em;
}

h3 {
  margin: 22px 0 8px;
}

p,
li,
.muted,
.helper,
.helper-text,
.small,
.desc,
.lead,
.page-intro,
.guide-hero__text {
  color: var(--jk-muted);
}

p {
  margin-bottom: 12px;
}

code {
  color: #bff5ff;
  background: rgba(94, 231, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.container,
.wrap,
.page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.mt14 {
  margin-top: 14px;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 12, 26, 0.76);
  border-bottom: 1px solid var(--jk-line);
}

.site-header__inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.brand img,
.brand-mark img,
.error-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-nav,
.site-nav span,
.actions,
.topbar__actions,
.hero-actions,
.error-actions,
.row,
.inline-row,
.section-actions,
.links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav a,
.nav-btn,
.link-btn,
.btn,
button,
input[type="button"],
input[type="submit"] {
  border: 1px solid var(--jk-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--jk-text);
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.site-nav a:hover,
.nav-btn:hover,
.link-btn:hover,
.btn:hover,
button:hover {
  transform: translateY(-1px);
  border-color: var(--jk-line-strong);
  box-shadow: 0 0 0 4px rgba(94, 231, 255, 0.08);
  color: #ffffff;
}

.nav-cta,
.btn--primary,
.button,
button:not(.gray):not(.btn--ghost) {
  background: linear-gradient(135deg, var(--jk-primary), var(--jk-primary-2));
  color: #06101f !important;
  border: 0;
  box-shadow: 0 12px 32px rgba(94, 231, 255, 0.18);
}

.btn--ghost,
.nav-btn--ghost,
.gray,
.secondary,
.link-btn.secondary,
.btn.secondary {
  background: rgba(255, 255, 255, 0.055) !important;
  color: var(--jk-text) !important;
  border: 1px solid var(--jk-line) !important;
}

.nav-toggle {
  display: none;
}

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar,
.topbar__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.user,
.topbar__user {
  color: var(--jk-muted);
  font-weight: 800;
}

/* =========================================================
   HERO
   - Main hero stays centered
   - Inner content pages remain left-readable
   ========================================================= */
.hero,
.page-hero,
.guide-hero {
  margin: 30px 0 28px;
}

.hero,
.page-hero__card,
.guide-hero__card {
  border: 1px solid var(--jk-line);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(11, 18, 34, 0.92)),
    radial-gradient(circle at 50% 0%, rgba(94, 231, 255, 0.18), transparent 36%);
  box-shadow: var(--jk-shadow);
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
}

.page-hero,
.page-hero__card,
.hero-center {
  text-align: center;
}

.hero-center {
  max-width: 820px;
  margin: 0 auto;
}

.hero h1,
.page-hero h1,
.guide-hero h1 {
  color: #ffffff;
}

.hero p,
.page-hero p {
  color: var(--jk-muted);
}

.page-hero__eyebrow,
.guide-hero__badge,
.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--jk-line-strong);
  background: rgba(94, 231, 255, 0.09);
  color: #bff5ff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
}

.page-hero__logo,
.guide-hero__logo {
  width: 92px;
  margin: 18px auto;
}

.hero-actions {
  justify-content: center;
  margin-top: 24px;
}

.badge-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.badge--primary {
  background: linear-gradient(135deg, rgba(94, 231, 255, 0.22), rgba(139, 92, 246, 0.2));
}

/* =========================================================
   CARDS / GRIDS
   ========================================================= */
.card,
.auth-card,
.error-card,
.guide-card,
.guide-mini-card,
dialog {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(15, 23, 42, 0.84));
  border: 1px solid var(--jk-line);
  border-radius: var(--jk-radius);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--jk-shadow-soft);
  color: var(--jk-text);
  text-align: left;
}

.card + .card,
section.card + section.card {
  margin-top: 22px;
}

.home-grid,
.grid,
.section-grid,
.guide-grid {
  display: grid;
  gap: 22px;
}

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

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

/* =========================================================
   STEP / LIST / NOTICE
   ========================================================= */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.steps li {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--jk-text);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--jk-primary), var(--jk-primary-2));
  color: #06101f;
  font-weight: 950;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
  font-weight: 950;
}

.steps div {
  color: var(--jk-muted);
}

.notice,
.box,
.detail-list,
.guide-quote,
.small-warning {
  border: 1px solid var(--jk-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  padding: 16px;
  color: var(--jk-muted);
  text-align: left;
}

.notice strong,
.box strong,
.detail-list strong {
  color: #ffffff;
}

.list {
  margin: 0;
  padding-left: 20px;
  color: var(--jk-muted);
}

.list li + li {
  margin-top: 8px;
}

.list li::marker {
  color: var(--jk-primary);
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-item,
.guide-feature {
  display: block;
  padding: 16px;
  border: 1px solid var(--jk-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--jk-muted);
  text-align: left;
}

.feature-item strong,
.guide-feature strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
}

/* =========================================================
   FORMS
   ========================================================= */
.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #e5f3ff;
  font-size: 14px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(125, 211, 252, 0.24);
  background: rgba(3, 7, 18, 0.84);
  color: #ffffff;
  border-radius: 14px;
  padding: 13px 15px;
  outline: none;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--jk-primary);
  box-shadow: 0 0 0 4px rgba(94, 231, 255, 0.1);
}

select option {
  background: #0f172a;
  color: #ffffff;
}

button:disabled,
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--jk-muted);
}

.check-row input {
  width: auto;
  margin-top: 4px;
}

/* =========================================================
   TABLES / ADMIN
   ========================================================= */
.table-wrap,
.card > div[style*="overflow"] {
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  border-radius: 18px !important;
  overflow: auto !important;
  background: rgba(3, 7, 18, 0.76) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(5, 10, 24, 0.96);
  color: #f8fafc;
  font-size: 14px;
}

thead,
thead tr {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.26), rgba(30, 41, 59, 0.92));
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(14, 31, 55, 0.98);
  color: #e6fbff;
  border-bottom: 1px solid rgba(125, 211, 252, 0.42);
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  padding: 13px 14px;
  font-weight: 950;
  white-space: nowrap;
  text-align: left;
  vertical-align: top;
}

td {
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  border-right: 1px solid rgba(148, 163, 184, 0.1);
  padding: 13px 14px;
  vertical-align: top;
  text-align: left;
}

tbody tr:nth-child(even) td {
  background: rgba(11, 18, 32, 0.86);
}

tbody tr:hover td {
  background: rgba(14, 165, 233, 0.13);
  color: #ffffff;
}

td a,
table a {
  color: #7dd3fc;
  font-weight: 850;
}

td button,
table button,
td .btn,
table .btn {
  width: auto;
  min-width: 0;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

td .badge,
td [class*="badge"],
td [class*="status"],
td [class*="Status"] {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(94, 231, 255, 0.14);
  border: 1px solid rgba(125, 211, 252, 0.32);
  color: #dffbff;
  font-weight: 900;
}

/* =========================================================
   AUTH
   ========================================================= */
.auth-shell,
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-card {
  width: min(480px, 100%);
}

.auth-card h1 {
  font-size: 40px;
}

.result {
  margin-top: 16px;
  color: var(--jk-muted);
  white-space: pre-wrap;
  text-align: left;
}

.back {
  display: inline-block;
  margin-top: 16px;
  color: var(--jk-muted) !important;
}

/* =========================================================
   MY PAGE / DETAILS / PRICE
   ========================================================= */
.info-grid,
.detail-list {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px 14px;
}

.info-grid__label {
  color: #c9f6ff;
  font-weight: 900;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--jk-line);
  border-radius: 14px;
  color: var(--jk-muted);
  background: rgba(255, 255, 255, 0.045);
}

.price-list strong {
  color: #ffffff;
}

/* =========================================================
   ERROR PAGES
   ========================================================= */
.error-card {
  width: min(1100px, 100%);
  text-align: center;
}

.error-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.error-code {
  font-size: clamp(54px, 10vw, 118px);
  line-height: 1;
  font-weight: 950;
  color: transparent;
  background: linear-gradient(135deg, var(--jk-primary), var(--jk-primary-2));
  -webkit-background-clip: text;
  background-clip: text;
}

.error-layout,
.guide-hero__layout {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;
  gap: 20px;
}

.error-character,
.guide-hero__character {
  max-height: 260px;
  margin: 0 auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.42));
}

.error-center {
  text-align: center;
}

.error-center h1 {
  font-size: clamp(30px, 5vw, 54px);
}

.error-sub {
  color: #c9f6ff;
}

.error-actions {
  justify-content: center;
}

/* =========================================================
   GUIDE
   ========================================================= */
.guide-hero__center {
  text-align: center;
}

.guide-villain {
  display: flex;
  gap: 18px;
  align-items: center;
}

.guide-villain__image {
  width: 150px;
}

.guide-notice {
  color: var(--jk-muted);
}

/* =========================================================
   LEGAL / DOCUMENT PAGES
   ========================================================= */
.toc,
.links {
  justify-content: flex-start;
  text-align: left;
}

.toc a {
  color: #c9f6ff;
  margin: 4px 10px 4px 0;
  display: inline-block;
}

.wrap .card .actions {
  justify-content: flex-start;
}

/* =========================================================
   RESULT PAGES / LEGACY COMPATIBILITY
   ========================================================= */
.status {
  color: #ffffff;
}

.desc {
  white-space: pre-line;
}

.detail {
  margin-top: 16px;
  color: var(--jk-muted);
  font-size: 12px;
  text-align: left;
  word-break: break-word;
}

.optional {
  color: var(--jk-subtle);
}

.strong {
  color: #ffffff;
  font-weight: 900;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .site-header__inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-top: 10px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .home-grid,
  .grid,
  .section-grid,
  .guide-grid--2,
  .guide-grid--3 {
    grid-template-columns: 1fr;
  }

  .error-layout,
  .guide-hero__layout {
    grid-template-columns: 1fr;
  }

  .error-side,
  .guide-hero__side {
    display: none;
  }

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

  .steps li {
    grid-template-columns: 48px 1fr;
  }
}

@media (max-width: 640px) {
  table {
    min-width: 760px;
  }

  th,
  td {
    padding: 11px 12px;
  }
}

@media (max-width: 520px) {
  .container,
  .wrap,
  .page {
    width: min(100% - 24px, 1180px);
    padding-bottom: 48px;
  }

  .hero,
  .page-hero__card,
  .guide-hero__card,
  .card,
  .auth-card,
  .error-card {
    border-radius: 18px;
    padding: 20px;
  }

  .site-nav a,
  .nav-btn,
  .link-btn,
  .btn,
  button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-actions,
  .actions,
  .row,
  .inline-row {
    align-items: stretch;
  }


  /* CTA card */
  .cta-card {
    margin-top: 28px !important;
    text-align: center !important;
  }

  .cta-card h2,
  .cta-card p {
    text-align: center !important;
  }

  .cta-card .hero-actions,
  .cta-card .actions {
    justify-content: center !important;
  }

  /* Top navigation primary CTA */
  .site-nav a.nav-cta {
    background: linear-gradient(135deg, var(--jk-primary), var(--jk-primary-2)) !important;
    color: #06101f !important;
    border: 0 !important;
    box-shadow: 0 12px 32px rgba(94, 231, 255, 0.24) !important;
  }

  .site-nav a.nav-cta:hover {
    color: #06101f !important;
    box-shadow:
            0 0 0 4px rgba(94, 231, 255, 0.14),
            0 14px 36px rgba(94, 231, 255, 0.28) !important;
  }

  /* CTA card */
  .cta-strip.card,
  .cta-card {
    margin-top: 28px !important;
    text-align: center !important;
  }

  .cta-card h2,
  .cta-card p {
    text-align: center !important;
  }

  .cta-card > div {
    text-align: center !important;
  }

  .cta-card .btn {
    margin-top: 10px;
  }


}


/* =========================================================
   PREMIUM POLISH PATCH
   - Put this section at the very end of global.css.
   - Designed to keep the current MYKD/JEHKA tone while making it feel more premium.
   ========================================================= */

:root {
  --jk-bg: #050815;
  --jk-bg-2: #091226;
  --jk-bg-3: #030611;

  --jk-panel: rgba(10, 17, 32, 0.78);
  --jk-panel-2: rgba(9, 15, 29, 0.94);
  --jk-card: rgba(13, 22, 39, 0.82);
  --jk-card-soft: rgba(255, 255, 255, 0.052);

  --jk-line: rgba(185, 219, 255, 0.14);
  --jk-line-strong: rgba(125, 211, 252, 0.34);

  --jk-text: #fbfdff;
  --jk-text-2: #eef6ff;
  --jk-muted: #c7d7ec;
  --jk-subtle: #8fa2bb;

  --jk-primary: #76f2ff;
  --jk-primary-2: #a78bfa;
  --jk-gold: #f8d47c;

  --jk-radius: 26px;
  --jk-radius-sm: 16px;
  --jk-shadow: 0 34px 110px rgba(0, 0, 0, 0.54);
  --jk-shadow-soft: 0 22px 68px rgba(0, 0, 0, 0.36);
  --jk-glow: 0 0 42px rgba(118, 242, 255, 0.12);
}

body {
  background:
    radial-gradient(circle at 14% 7%, rgba(118, 242, 255, 0.20), transparent 27%),
    radial-gradient(circle at 84% 4%, rgba(167, 139, 250, 0.18), transparent 29%),
    radial-gradient(circle at 50% 105%, rgba(56, 189, 248, 0.09), transparent 34%),
    linear-gradient(180deg, var(--jk-bg) 0%, var(--jk-bg-2) 48%, var(--jk-bg-3) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 26%),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.04), transparent 42%);
  z-index: -1;
}

/* Header: more premium glass */
.site-header {
  background: rgba(5, 8, 21, 0.68) !important;
  border-bottom: 1px solid rgba(185, 219, 255, 0.12) !important;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
}

.site-header__inner {
  min-height: 82px;
}

.brand,
.brand-mark {
  letter-spacing: 0.04em;
}

.brand img,
.brand-mark img {
  filter: drop-shadow(0 10px 22px rgba(118, 242, 255, 0.16));
}

/* Navigation buttons */
.site-nav a,
.nav-btn,
.link-btn,
.btn,
button,
input[type="button"],
input[type="submit"] {
  min-height: 42px;
  padding: 11px 18px;
  border-color: rgba(185, 219, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.site-nav a:hover,
.nav-btn:hover,
.link-btn:hover,
.btn:hover,
button:hover {
  transform: translateY(-2px);
  border-color: rgba(118, 242, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045));
  box-shadow:
    0 0 0 4px rgba(118, 242, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.22);
}

.site-nav a.nav-cta,
.nav-cta,
.btn--primary,
.button,
button:not(.gray):not(.btn--ghost) {
  background:
    linear-gradient(135deg, rgba(118, 242, 255, 1), rgba(167, 139, 250, 1)) !important;
  color: #04101e !important;
  border: 0 !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12) inset,
    0 16px 42px rgba(118, 242, 255, 0.22),
    0 8px 24px rgba(167, 139, 250, 0.16) !important;
}

.site-nav a.nav-cta:hover,
.nav-cta:hover,
.btn--primary:hover,
.button:hover {
  color: #04101e !important;
  box-shadow:
    0 0 0 4px rgba(118, 242, 255, 0.13),
    0 22px 56px rgba(118, 242, 255, 0.28),
    0 12px 32px rgba(167, 139, 250, 0.20) !important;
}

/* Hero: deeper, cleaner, more luxurious */
.hero,
.page-hero__card,
.guide-hero__card {
  position: relative;
  border-color: rgba(185, 219, 255, 0.16) !important;
  background:
    radial-gradient(circle at 50% -8%, rgba(118, 242, 255, 0.22), transparent 34%),
    radial-gradient(circle at 94% 12%, rgba(167, 139, 250, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(13, 22, 39, 0.86), rgba(7, 12, 26, 0.94)) !important;
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.50),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 0 0 1px rgba(255,255,255,0.025) !important;
}

.hero::before,
.page-hero__card::before,
.guide-hero__card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), transparent 28%),
    linear-gradient(315deg, rgba(118,242,255,.08), transparent 30%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.88), transparent 72%);
}

.hero-center {
  position: relative;
  z-index: 1;
}

.page-hero__eyebrow,
.guide-hero__badge,
.badge {
  border-color: rgba(118, 242, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(118, 242, 255, 0.14), rgba(118, 242, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.page-hero__logo,
.guide-hero__logo {
  filter:
    drop-shadow(0 16px 32px rgba(118, 242, 255, 0.16))
    drop-shadow(0 4px 14px rgba(167, 139, 250, 0.12));
}

h1,
.page-title,
.hero h1,
.page-hero h1,
.guide-hero h1 {
  letter-spacing: -0.055em;
  text-shadow: 0 10px 38px rgba(0, 0, 0, 0.28);
}

/* Cards: less flat, more premium */
.card,
.auth-card,
.error-card,
.guide-card,
.guide-mini-card,
dialog {
  position: relative;
  border-color: rgba(185, 219, 255, 0.13) !important;
  background:
    linear-gradient(180deg, rgba(18, 28, 48, 0.88), rgba(10, 17, 32, 0.82)) !important;
  box-shadow:
    0 22px 66px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(18px);
}

.card::before,
.auth-card::before,
.error-card::before,
.guide-card::before,
.guide-mini-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.055), transparent 34%),
    radial-gradient(circle at 0% 0%, rgba(118, 242, 255, .08), transparent 28%);
  opacity: .72;
}

.card > *,
.auth-card > *,
.error-card > *,
.guide-card > *,
.guide-mini-card > * {
  position: relative;
  z-index: 1;
}

.card:hover,
.guide-card:hover,
.guide-mini-card:hover {
  border-color: rgba(118, 242, 255, 0.28) !important;
  box-shadow:
    0 30px 82px rgba(0, 0, 0, 0.42),
    0 0 44px rgba(118, 242, 255, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.075) !important;
}

/* More comfortable spacing */
.container,
.wrap,
.page {
  padding-top: 38px;
}

.home-grid,
.grid,
.section-grid,
.guide-grid {
  gap: 26px;
}

.card + .card,
section.card + section.card {
  margin-top: 26px;
}

.card h2,
.guide-card h2,
h2 {
  margin-bottom: 18px;
}

/* Steps and feature blocks */
.steps {
  gap: 15px;
}

.steps li,
.feature-item,
.guide-feature,
.notice,
.box,
.detail-list,
.guide-quote,
.small-warning,
.price-list li {
  border-color: rgba(185, 219, 255, 0.13);
  background:
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
}

.steps li::before {
  box-shadow:
    0 12px 28px rgba(118, 242, 255, 0.18),
    inset 0 1px 0 rgba(255,255,255,.18);
}

/* Forms */
input,
select,
textarea {
  border-color: rgba(185, 219, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(4, 10, 24, 0.90), rgba(3, 7, 18, 0.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(118, 242, 255, 0.72);
  box-shadow:
    0 0 0 4px rgba(118, 242, 255, 0.10),
    0 14px 34px rgba(0,0,0,.18);
}

/* Tables */
.table-wrap,
.card > div[style*="overflow"] {
  border-color: rgba(118, 242, 255, 0.24) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 18px 44px rgba(0,0,0,.22) !important;
}

table {
  background: rgba(3, 8, 20, 0.98);
}

th {
  background:
    linear-gradient(180deg, rgba(20, 52, 82, 0.98), rgba(10, 24, 44, 0.98)) !important;
  color: #effdff;
}

td {
  background: rgba(12, 20, 36, 0.78);
  color: #dfeaff;
}

tbody tr:nth-child(even) td {
  background: rgba(8, 15, 29, 0.90);
}

/* CTA sections */
.cta-strip.card,
.cta-card {
  margin-top: 32px !important;
  padding-top: clamp(28px, 4vw, 42px) !important;
  padding-bottom: clamp(28px, 4vw, 42px) !important;
  text-align: center !important;
  border-color: rgba(118, 242, 255, 0.22) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(118, 242, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(18, 28, 48, 0.92), rgba(9, 15, 29, 0.86)) !important;
}

.cta-card h2,
.cta-card p,
.cta-card > div {
  text-align: center !important;
}

.cta-card .hero-actions,
.cta-card .actions {
  justify-content: center !important;
}

.cta-card .btn {
  margin-top: 12px;
}

/* Footer support */
.site-footer {
  padding: 0 0 42px;
}

.site-footer__card {
  border: 1px solid rgba(185, 219, 255, 0.13);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(13, 22, 39, 0.86), rgba(7, 12, 26, 0.92));
  box-shadow: 0 22px 68px rgba(0, 0, 0, 0.34);
  padding: clamp(22px, 3vw, 34px);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: var(--jk-muted);
}

.footer-links a {
  color: #c9f6ff;
}

/* Small premium motion */
@media (prefers-reduced-motion: no-preference) {
  .card,
  .guide-card,
  .guide-mini-card,
  .btn,
  .nav-btn,
  .link-btn,
  .site-nav a,
  button {
    transition:
      transform 0.2s ease,
      border-color 0.2s ease,
      background 0.2s ease,
      box-shadow 0.2s ease,
      opacity 0.2s ease;
  }
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .site-nav a.nav-cta {
    width: 100%;
  }

  .footer-links {
    gap: 8px;
  }
}


/* =========================================================
   HOME HUB ADDITIONS
   ========================================================= */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 34px;
}
.hero-copy {
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid var(--jk-line);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(10, 18, 34, 0.82));
  box-shadow: var(--jk-shadow);
}
.hero-copy .eyebrow,
.eyebrow {
  color: var(--jk-primary);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-copy p.lead {
  max-width: 780px;
  font-size: 18px;
  line-height: 1.8;
}
.hub-panel {
  padding: 28px;
  border: 1px solid var(--jk-line);
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--jk-shadow-soft);
}
.stat-list { display: grid; gap: 12px; margin: 22px 0; }
.stat-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--jk-line);
}
.stat-item span { color: var(--jk-muted); }
.stat-item strong { color: #fff; text-align: right; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.service-tile {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--jk-line);
  border-radius: 24px;
  background: rgba(18, 28, 48, 0.88);
  box-shadow: var(--jk-shadow-soft);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.service-tile:hover { transform: translateY(-5px); border-color: var(--jk-line-strong); background: rgba(24, 38, 66, 0.94); }
.service-tile p { color: var(--jk-muted); }
.service-tile .card-action { display: inline-flex; margin-top: 12px; color: var(--jk-primary); font-weight: 900; }
.auth-card {
  width: min(560px, 100%);
  margin: 34px auto 70px;
  padding: 30px;
  border: 1px solid var(--jk-line);
  border-radius: 28px;
  background: rgba(15, 23, 42, .88);
  box-shadow: var(--jk-shadow);
}
.form-grid { display: grid; gap: 15px; }
.form-grid label { display: grid; gap: 7px; font-size: 14px; color: var(--jk-muted); }
.form-grid input[type="text"], .form-grid input[type="password"], .form-grid input[type="email"] {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--jk-line);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  color: var(--jk-text);
  outline: none;
}
.form-grid input:focus { border-color: var(--jk-primary); box-shadow: 0 0 0 3px rgba(94, 231, 255, .12); }
.check-row { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 10px !important; }
.status-message {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--jk-line);
  color: var(--jk-muted);
  background: rgba(255,255,255,.05);
}
.status-message.ok { border-color: rgba(52, 211, 153, .42); color: #bbf7d0; }
.status-message.error { border-color: rgba(251, 113, 133, .42); color: #fecdd3; }
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: 18px;
  align-items: start;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.summary-box {
  padding: 18px;
  border: 1px solid var(--jk-line);
  border-radius: 18px;
  background: rgba(255,255,255,.05);
}
.summary-box span { display:block; color: var(--jk-muted); font-size: 13px; }
.summary-box strong { display:block; margin-top: 6px; font-size: 24px; }
.notice-strip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(250, 204, 21, .32);
  border-radius: 18px;
  background: rgba(250, 204, 21, .08);
  color: #fef3c7;
}
@media (max-width: 920px) {
  .hero-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
}
