/* RELATION-01 전역 디자인 시스템 및 모던 럭셔리 컴포넌트 스타일 */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Gowun+Batang:wght@400;700&family=Pretendard:wght@300;400;500;600;700;800&display=swap');

:root {
    --ink: #0f172a;
    --night: #090e1c;
    --night-card: #121a2e;
    --muted: #64748b;
    --paper: #f8faf9;
    --white: #ffffff;
    --green: #1e3a34;
    --sage: #7ba292;
    --gold: #d4a359;
    --gold-glow: rgba(212, 163, 89, 0.25);
    --mint: #4ecdc4;
    --mint-glow: rgba(78, 205, 196, 0.35);
    --violet: #7c6df8;
    --line: #e2e8f0;
    --line-dark: rgba(255, 255, 255, 0.08);
    --danger: #e11d48;
    --header-h: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    margin: 0;
    background: var(--night);
    color: #e2e8f0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    letter-spacing: -0.015em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Global Link Resets */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Reusable Text Links & Buttons matching brand luxury */
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(212, 163, 89, 0.08);
    border: 1px solid rgba(212, 163, 89, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: -0.01em;
}
.text-link span {
    font-size: 15px;
    line-height: 1;
    transition: transform 0.25s ease;
    display: inline-block;
    color: var(--gold);
}
.text-link:hover {
    color: #ffffff;
    background: rgba(212, 163, 89, 0.2);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 0 16px rgba(212, 163, 89, 0.3);
    transform: translateY(-1px);
}
.text-link:hover span {
    transform: translateX(4px);
    color: #ffffff;
}

main {
    min-height: calc(100vh - var(--header-h) - 200px);
}

/* Header & Floating Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(9, 14, 28, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s, border-color 0.3s;
}
.header-container {
    max-width: 1240px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.12em;
    transition: opacity 0.2s;
}
.brand:hover { opacity: 0.9; }
.brand-symbol {
    color: var(--gold);
    font-size: 16px;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}
.brand-text {
    background: linear-gradient(135deg, #ffffff 40%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
}


.site-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}
.arcana-link {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.arcana-link:hover, .arcana-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}
.arcana-link.active {
    color: var(--mint);
    font-weight: 600;
}

.member-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    margin-left: 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.member-nav-link:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.16);
}
.member-nav-link img, .member-nav-link i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}
.member-nav-link i {
    display: grid;
    place-items: center;
    background: var(--gold);
    color: #0b1120;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
}

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 16px;
    margin-left: 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--mint), #38b2ac);
    color: #071f1a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 14px rgba(78, 205, 196, 0.28);
    transition: transform 0.2s, box-shadow 0.2s;
}
.header-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(78, 205, 196, 0.45);
}

/* Global Forms & Input Elements */
.field {
    display: block;
    margin: 18px 0;
    text-align: left;
}
.field > span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
}
.field small {
    font-weight: 400;
    color: #94a3b8;
    margin-left: 6px;
}
input, select, textarea {
    display: block;
    width: 100%;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(13, 20, 36, 0.7);
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--mint);
    background: rgba(18, 28, 50, 0.9);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}
input::placeholder, textarea::placeholder {
    color: #64748b;
}

/* Checkbox & Consent */
.consent, .member-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    margin: 22px 0;
    color: #94a3b8;
    line-height: 1.6;
}
.consent input, .member-consent input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--mint);
}
.consent a, .member-consent a {
    color: var(--mint);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Alerts */
.alert, .member-alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 13px;
    margin: 18px 0;
    line-height: 1.5;
}
.alert.error, .member-alert.error {
    background: rgba(225, 29, 72, 0.12);
    color: #fda4af;
    border: 1px solid rgba(225, 29, 72, 0.3);
}
.alert.success, .member-alert.success {
    background: rgba(78, 205, 196, 0.12);
    color: #99f6e4;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

/* Global Buttons */
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    padding: 14px 26px;
    font: 600 14px inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.button.primary {
    background: linear-gradient(135deg, var(--mint), #2dd4bf);
    color: #06201b;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(45, 212, 191, 0.28);
}
.button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(45, 212, 191, 0.45);
}
.button.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}
.button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}
.button.wide { width: 100%; }
.button.danger {
    background: rgba(225, 29, 72, 0.12);
    color: #fda4af;
    border: 1px solid rgba(225, 29, 72, 0.3);
}
.button.danger:hover {
    background: rgba(225, 29, 72, 0.22);
}

/* ========================================================
   ASSESSMENT INTRO & PANELS
======================================================== */
.panel {
    max-width: 860px;
    margin: 60px auto 100px;
    padding: 48px;
    background: rgba(18, 26, 46, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
}
.eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--mint);
    margin-bottom: 12px;
}
.intro h1 {
    font-family: 'Gowun Batang', serif;
    font-size: clamp(34px, 4.5vw, 48px);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    margin: 12px 0 24px;
}
.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 28px 0;
}
.guide-grid > div {
    background: rgba(9, 14, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}
.guide-grid b {
    display: block;
    font-size: 20px;
    font-family: 'Gowun Batang', serif;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}
.guide-grid span {
    display: block;
    font-size: 12px;
    color: #94a3b8;
}

.instruction {
    background: rgba(124, 109, 248, 0.08);
    border: 1px solid rgba(124, 109, 248, 0.2);
    border-radius: 16px;
    padding: 24px 28px;
    margin: 28px 0;
}
.instruction h2 {
    color: #c4b5fd;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
}
.instruction ul {
    margin: 0;
    padding-left: 20px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.8;
}

/* ========================================================
   ASSESSMENT TEST (228 QUESTIONS)
======================================================== */
.assessment-shell {
    max-width: 940px;
    margin: 50px auto 100px;
    padding: 0 24px;
}
.progress-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
}
.progress-head span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--violet);
    margin-bottom: 4px;
}
.progress-head b {
    font-family: 'Gowun Batang', serif;
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 700;
    color: #ffffff;
}
.count {
    color: #94a3b8;
    font-size: 14px;
}
.count strong {
    font-size: 24px;
    color: var(--mint);
    font-family: 'Cinzel', serif;
}
.progress-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    overflow: hidden;
    margin: 12px 0 28px;
}
.progress-track i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--mint), #2dd4bf);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-instruction {
    padding: 16px 22px;
    border-radius: 12px;
    background: rgba(78, 205, 196, 0.08);
    border-left: 3px solid var(--mint);
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.question {
    background: rgba(18, 26, 46, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 32px 30px;
    margin: 24px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    transition: border-color 0.25s, box-shadow 0.25s;
}
.question.needs-answer {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.25);
}
.q-number {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--violet);
    margin-bottom: 8px;
}
.situation-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--mint);
    margin: 0 0 8px;
}
.question h2 {
    font-family: 'Gowun Batang', serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.55;
    margin: 0 0 24px;
}

/* Options */
.options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.options label {
    cursor: pointer;
    position: relative;
}
.options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.options span {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(9, 14, 26, 0.6);
    color: #cbd5e1;
    transition: all 0.2s;
}
.options label:hover span {
    border-color: rgba(78, 205, 196, 0.4);
    background: rgba(15, 24, 46, 0.85);
    color: #ffffff;
}
.options input:checked + span {
    border-color: var(--mint);
    background: rgba(78, 205, 196, 0.15);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.35);
}

/* Likert 5-point scale */
.options.likert {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.options.likert span {
    min-height: 78px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 12px 8px;
}
.options.likert i {
    display: block;
    font-style: normal;
    font-size: 16px;
    font-weight: 800;
    color: var(--mint);
    margin-bottom: 4px;
}
.options.likert em {
    font-style: normal;
    font-size: 12px;
    line-height: 1.35;
    color: #cbd5e1;
}
.options.likert input:checked + span em {
    color: #ffffff;
    font-weight: 700;
}

.save-state {
    display: block;
    min-height: 18px;
    color: var(--mint);
    font-size: 11px;
    text-align: right;
    margin-top: 10px;
}
.save-state.error { color: var(--danger); }

.pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 45px;
}

/* ============================================================
   Cinematic Dark Luxury Footer Design
   ============================================================ */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, #070b14 0%, #030509 100%);
    border-top: 1px solid rgba(251, 191, 36, 0.18);
    padding: 64px 24px 36px;
    color: #94a3b8;
    font-size: 13px;
    overflow: hidden;
}

.footer-ambient-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 680px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.6), transparent);
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.5);
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
}

/* TOP: Brand Statement & Dual Navigation */
.footer-top-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand-column {
    flex: 1.2;
    max-width: 460px;
}
.footer-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    margin-bottom: 12px;
}
.footer-brand-logo .brand-symbol {
    font-size: 17px;
    color: var(--gold, #fbbf24);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}
.footer-brand-logo .brand-text {
    font-family: 'Cinzel', serif;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.14em;
    background: linear-gradient(135deg, #ffffff 40%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-slogan {
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 16px;
    word-break: keep-all;
}
.footer-trust-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.trust-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.22);
    padding: 4px 10px;
    border-radius: 999px;
}

.footer-nav-groups {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 48px;
}
.nav-group-title {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 800;
    color: #cbd5e1;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 6px;
}
.nav-group-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 2px;
    background: #fbbf24;
    border-radius: 2px;
}
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nav-list li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    display: inline-block;
}
.nav-list li a:hover {
    color: #fbbf24;
    transform: translateX(3px);
}

/* MIDDLE: Sophisticated Subdued Business Metadata */
.footer-business-section {
    padding: 22px 0;
    font-size: 12px;
    line-height: 1.85;
    color: #64748b;
}
.biz-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
}
.biz-meta-item {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
}
.meta-label {
    color: #64748b;
    font-weight: 500;
}
.meta-value {
    color: #94a3b8;
}
.meta-value.highlight {
    color: #cbd5e1;
}
.meta-sep {
    color: rgba(255, 255, 255, 0.12);
    margin: 0 10px;
}

/* BOTTOM: Legal Policy & Copyright Strip */
.footer-bottom-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 12px;
    color: #475569;
}
.copyright-area span {
    display: block;
}
.copyright-area strong {
    color: #94a3b8;
}
.disclaimer-note {
    font-size: 11px;
    color: #475569;
    margin-top: 2px;
}
.legal-policy-area {
    display: flex;
    align-items: center;
    gap: 10px;
}
.legal-link {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}
.legal-link:hover {
    color: #fbbf24;
}
.legal-link.highlight {
    color: #94a3b8;
    font-weight: 600;
}
.legal-link.highlight:hover {
    color: #fbbf24;
}
.legal-dot {
    color: rgba(255, 255, 255, 0.1);
}
.footer-logout-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}
.footer-logout-btn:hover {
    text-decoration: underline;
}

/* ============================================================
   HIGH-END MOBILE NAVIGATION SYSTEM (TOP DRAWER & BOTTOM NAV)
   ============================================================ */

/* 1. Header Tools on Desktop vs Mobile */
.mobile-header-tools {
    display: none;
    align-items: center;
    gap: 10px;
}

.mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}
.mobile-nav-toggle:hover {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.4);
}
.mobile-nav-toggle .bar {
    width: 18px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}
.mobile-nav-toggle.active {
    background: rgba(251, 191, 36, 0.18);
    border-color: rgba(251, 191, 36, 0.5);
}
.mobile-nav-toggle.active .bar-1 {
    transform: translateY(7px) rotate(45deg);
    background: #fbbf24;
}
.mobile-nav-toggle.active .bar-2 {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-nav-toggle.active .bar-3 {
    transform: translateY(-7px) rotate(-45deg);
    background: #fbbf24;
}

/* 2. Fullscreen Slide-In Glassmorphism Drawer */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 86vw);
    background: linear-gradient(180deg, rgba(10, 15, 30, 0.98) 0%, rgba(5, 8, 18, 0.99) 100%);
    border-left: 1px solid rgba(251, 191, 36, 0.2);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}
.mobile-drawer.open {
    transform: translateX(0);
}

body.drawer-open {
    overflow: hidden !important;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.drawer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.1em;
}
.drawer-close-btn {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #cbd5e1;
    display: grid;
    place-items: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.drawer-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ffffff;
    border-color: rgba(239, 68, 68, 0.4);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    -webkit-overflow-scrolling: touch;
}
.drawer-body::-webkit-scrollbar {
    width: 4px;
}
.drawer-body::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.2);
    border-radius: 4px;
}

/* User Card inside Drawer */
.drawer-user-card {
    background: rgba(18, 26, 46, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(12px);
}
.user-card-inner.logged-in {
    display: flex;
    align-items: center;
    gap: 14px;
}
.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(78, 205, 196, 0.2));
    border: 1px solid rgba(251, 191, 36, 0.4);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-avatar i {
    font-style: normal;
    color: #fbbf24;
    font-size: 16px;
}
.user-meta {
    flex: 1;
    min-width: 0;
}
.user-status-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: 0.1em;
}
.user-greeting {
    display: block;
    font-size: 15px;
    color: #ffffff;
    margin: 2px 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-quick-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #94a3b8;
}
.user-quick-links a {
    color: #94a3b8;
}
.user-quick-links a:hover {
    color: #fbbf24;
}
.drawer-logout-btn {
    background: none;
    border: none;
    color: #f87171;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.user-card-inner.guest .guest-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    color: #4ecdc4;
    letter-spacing: 0.1em;
}
.user-card-inner.guest .guest-title {
    display: block;
    font-size: 14px;
    color: #ffffff;
    margin: 3px 0 2px;
}
.user-card-inner.guest .guest-desc {
    font-size: 12px;
    color: #94a3b8;
    margin: 0 0 14px;
    line-height: 1.4;
}
.guest-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.btn-drawer-auth {
    display: grid;
    place-items: center;
    padding: 9px 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.btn-drawer-auth.primary {
    background: linear-gradient(135deg, #d97706, #fbbf24);
    color: #090e1c;
    font-weight: 700;
}
.btn-drawer-auth.secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

/* Nav Section in Drawer */
.drawer-nav-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.drawer-section-label {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.14em;
    margin-bottom: 4px;
}
.drawer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.2s ease;
}
.drawer-nav-item:hover, .drawer-nav-item.active {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateX(3px);
}
.drawer-nav-item .item-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.drawer-nav-item .item-text {
    flex: 1;
    min-width: 0;
}
.drawer-nav-item .item-text strong {
    display: block;
    font-size: 14px;
    color: #f1f5f9;
}
.drawer-nav-item .item-text small {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 1px;
}
.drawer-nav-item .item-arrow {
    color: #64748b;
    font-size: 13px;
    transition: transform 0.2s;
}
.drawer-nav-item:hover .item-arrow {
    color: #fbbf24;
    transform: translateX(3px);
}

.drawer-nav-item.highlight-cta {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(78, 205, 196, 0.08));
    border-color: rgba(251, 191, 36, 0.35);
}
.drawer-nav-item.highlight-cta .item-icon {
    color: #fbbf24;
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}
.drawer-nav-item.highlight-cta .item-text strong {
    color: #fbbf24;
}

.drawer-footer {
    padding: 18px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(3, 6, 14, 0.6);
}
.drawer-legal-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}
.drawer-legal-links a {
    color: #64748b;
}
.drawer-legal-links a:hover {
    color: #94a3b8;
}
.drawer-copy {
    font-size: 11px;
    color: #475569;
}

/* 3. Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(7, 11, 22, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(251, 191, 36, 0.2);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav-inner {
    max-width: 500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 62px;
    align-items: center;
    padding: 0 4px;
    position: relative;
}
.bottom-nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    color: #64748b;
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
}
.bottom-nav-tab .tab-icon {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.bottom-nav-tab .tab-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}

.bottom-nav-tab:hover, .bottom-nav-tab.active {
    color: #fbbf24;
}
.bottom-nav-tab.active .tab-icon {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.7));
}
.bottom-nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    width: 4px;
    height: 4px;
    background: #fbbf24;
    border-radius: 50%;
    box-shadow: 0 0 6px #fbbf24;
}

/* Center Elevated CTA Tab */
.bottom-nav-tab.tab-center-cta {
    position: relative;
    top: -12px;
    height: auto;
}
.bottom-nav-tab.tab-center-cta .cta-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d97706, #fbbf24, #f59e0b);
    display: grid;
    place-items: center;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45), 0 0 0 4px #070b16;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bottom-nav-tab.tab-center-cta .cta-sparkle {
    color: #070b16;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}
.bottom-nav-tab.tab-center-cta .cta-label {
    color: #fbbf24;
    font-size: 10px;
    font-weight: 700;
    margin-top: 4px;
}
.bottom-nav-tab.tab-center-cta:hover .cta-circle,
.bottom-nav-tab.tab-center-cta.active .cta-circle {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.65), 0 0 0 4px #070b16;
}
.bottom-nav-tab.tab-center-cta.active::after {
    display: none;
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================ */
@media (max-width: 860px) {
    /* Hide Desktop Nav and Show Mobile Tools */
    .desktop-nav { display: none !important; }
    .mobile-header-tools { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }

    /* Ensure Body has bottom padding for the fixed bottom nav */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    .site-tools .arcana-link { font-size: 12px; padding: 0 8px; }
    .header-cta-btn { padding: 0 12px; font-size: 12px; }
    .mobile-top-cta {
        padding: 6px 14px;
        font-size: 12px;
        border-radius: 999px;
    }

    .options.likert { grid-template-columns: 1fr; }
    .options.likert span { min-height: auto; flex-direction: row; justify-content: flex-start; text-align: left; padding: 14px 18px; }
    .guide-grid { grid-template-columns: 1fr; }
    .footer-top-section {
        flex-direction: column;
        gap: 28px;
    }
    .footer-nav-groups {
        width: 100%;
        justify-content: flex-start;
        gap: 36px;
    }
}
@media (max-width: 640px) {
    /* Global Mobile Typography Optimization */
    body {
        font-size: 14.5px;
        line-height: 1.68;
    }
    h1, h2, h3, h4, p, li, blockquote, dt, dd {
        word-break: keep-all;
    }
    img {
        max-width: 100%;
        height: auto;
    }

    .header-container { padding: 0 16px; }
    .panel { padding: 30px 18px; margin: 24px auto 50px; border-radius: 18px; }
    .panel-title {
        font-size: clamp(22px, 6vw, 28px);
        line-height: 1.3;
        margin-bottom: 12px;
    }
    .panel-desc {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Mobile Buttons & Touch Optimization */
    .button, button[type="submit"], .btn-social {
        min-height: 48px;
        border-radius: 14px;
        font-size: 14.5px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        box-sizing: border-box;
    }
    .button:active, button[type="submit"]:active, .btn-social:active {
        transform: scale(0.98);
    }

    .assessment-shell { padding: 0 14px; margin: 20px auto 50px; }
    .question { padding: 22px 16px; border-radius: 16px; margin-bottom: 20px; }
    .question-title {
        font-size: 15.5px;
        line-height: 1.55;
        word-break: keep-all;
    }
    .options.likert span {
        font-size: 13px;
        padding: 12px 14px;
        border-radius: 12px;
    }

    .cta-mini-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 12px 16px;
        border-radius: 12px;
        font-size: 13.5px;
        font-weight: 700;
        text-align: center;
    }

    .footer-bottom-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .biz-meta-row .meta-sep {
        display: none;
    }
    .biz-meta-item {
        display: flex;
        width: 100%;
        margin-bottom: 2px;
        font-size: 11.5px;
    }
    .copyright-area {
        font-size: 11.5px;
    }
}
@media (max-width: 480px) {
    .brand { font-size: 17px; letter-spacing: 0.08em; }
    .mobile-top-cta { font-size: 11px; padding: 5px 12px; }
    .panel { padding: 24px 16px; }
}

/* Social Login */
.social-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0 18px;
    color: #64748b;
    font-size: 13px;
}
.social-login-divider::before,
.social-login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.social-login-divider span {
    padding: 0 12px;
}
.social-login-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}
.btn-kakao {
    background-color: #FEE500;
    color: #191919;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.btn-kakao:hover {
    background-color: #fada0a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254, 229, 0, 0.2);
}
.btn-kakao svg {
    flex-shrink: 0;
}
.btn-naver {
    background-color: #03C75A;
    color: #ffffff;
    border: 1px solid rgba(3, 199, 90, 0.2);
}
.btn-naver:hover {
    background-color: #02b350;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(3, 199, 90, 0.25);
}
.btn-naver svg {
    flex-shrink: 0;
}
.btn-google {
    background-color: #ffffff;
    color: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-google:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}
.btn-google svg {
    flex-shrink: 0;
}




