@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* --------------------------------------------------
   CSS Variables & Design System (Luxury Gold & Dark)
   -------------------------------------------------- */
:root {
    --gold: #C5A880;
    --gold-light: #DFCA9B;
    --gold-dark: #9C7A4E;
    --gold-hover: #B8976C;
    --gold-subtle: #FAF6F0;
    --gold-border: rgba(197, 168, 128, 0.35);
    --gold-glow: 0 8px 28px rgba(197, 168, 128, 0.28);
    --gold-gradient: linear-gradient(135deg, #DFCA9B 0%, #C5A880 50%, #9C7A4E 100%);
    --gold-gradient-soft: linear-gradient(135deg, rgba(223, 202, 155, 0.15) 0%, rgba(197, 168, 128, 0.08) 100%);

    --primary: #C5A880;
    --primary-hover: #B8976C;
    --primary-light: #FBF8F3;
    --secondary: #1E293B;
    --secondary-hover: #0F172A;

    --bg-main: #FFFFFF;
    --bg-alt: #FBF9F6;
    --bg-dark: #0B0F19;
    --surface-dark: #111827;
    --surface-glass: rgba(255, 255, 255, 0.88);
    --border-glass: rgba(255, 255, 255, 0.6);

    --text-dark: #0F172A;
    --text-body: #475569;
    --text-muted: #94A3B8;
    --text-light: #F8FAFC;

    --status-pending: #D97706;
    --status-pending-bg: #FEF3C7;
    --status-confirmed: #C5A880;
    --status-confirmed-bg: #FBF8F3;
    --status-completed: #059669;
    --status-completed-bg: #D1FAE5;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 36px -6px rgba(0, 0, 0, 0.09);
    --shadow-gold: 0 10px 30px rgba(197, 168, 128, 0.25);

    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dynamic Themes */
[data-theme="gold"] {
    --primary: #C5A880;
    --primary-hover: #B8976C;
    --primary-light: #FBF8F3;
    --shadow-glow: 0 8px 24px rgba(197, 168, 128, 0.3);
}

[data-theme="light"] {
    --primary: #475569;
    --primary-hover: #334155;
    --primary-light: #F1F5F9;
    --shadow-glow: 0 8px 24px rgba(71, 85, 105, 0.25);
}

[data-theme="dark"] {
    --bg-main: #0B0F19;
    --bg-alt: #111827;
    --text-dark: #F8FAFC;
    --text-body: #CBD5E1;
    --surface-glass: rgba(17, 24, 39, 0.88);
    --border-glass: rgba(197, 168, 128, 0.18);
    --primary: #DFCA9B;
    --primary-hover: #C5A880;
    --primary-light: rgba(197, 168, 128, 0.12);
}

[data-theme="dark"] .glass-card {
    background: rgba(22, 32, 51, 0.9);
    border: 1px solid rgba(197, 168, 128, 0.2);
}
[data-theme="dark"] .stat-box {
    background: linear-gradient(180deg, #162033 0%, #111827 100%);
    border-color: rgba(197, 168, 128, 0.25);
}
[data-theme="dark"] .insight-card {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .patent-contact-form {
    background: #111827;
    border-color: rgba(197, 168, 128, 0.3);
}
[data-theme="dark"] .patent-contact-form input,
[data-theme="dark"] .patent-contact-form textarea {
    background: #0B0F19;
    color: #F8FAFC;
    border-color: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------
   Reset & Base Typography
   -------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    color: var(--text-body);
    background-color: var(--bg-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.serif-title {
    font-family: 'Playfair Display', 'Cinzel', serif;
    font-size: 2.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.accent-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 800;
}

/* --------------------------------------------------
   Buttons & Core Micro-interactions
   -------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #0B0F19;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(197, 168, 128, 0.28);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E6D5AD 0%, #D4BA92 50%, #AC895C 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(197, 168, 128, 0.4);
}

.btn-secondary {
    background-color: var(--primary-light);
    color: var(--gold-dark);
    border: 1px solid var(--gold-border);
}

.btn-secondary:hover {
    background-color: #F5EFE6;
    transform: translateY(-2px);
}

.btn-hero-outline {
    background: rgba(197, 168, 128, 0.08);
    border: 1.5px solid var(--gold);
    color: var(--gold-light);
    backdrop-filter: blur(8px);
    padding: 14px 44px;
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: var(--transition-smooth);
}

.btn-hero-outline:hover {
    background: var(--gold-gradient);
    color: #0B0F19;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(197, 168, 128, 0.45);
}

.btn-gold-submit {
    background: var(--gold-gradient);
    color: #0B0F19;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 16px 52px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    transition: var(--transition-smooth);
}

.btn-gold-submit:hover {
    background: linear-gradient(135deg, #EADCB8 0%, #D4BA92 50%, #B8976C 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(197, 168, 128, 0.5);
}

.btn-block { width: 100%; }

/* --------------------------------------------------
   Header & Navigation (.navbar.glass)
   -------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar .container {
    max-width: 1440px;
    padding: 0 24px;
}

.navbar.glass {
    background: rgba(11, 15, 25, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(197, 168, 128, 0.16);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 88px;
    gap: 16px;
    width: 100%;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #F8FAFC;
    flex-shrink: 0;
}

.logo-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-typography {
    display: flex;
    flex-direction: column;
    line-height: 1;
    position: relative;
    padding-left: 2px;
}

.brand-en {
    font-family: 'Cinzel', 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    background: linear-gradient(135deg, #F3E0B5 0%, #C5A880 50%, #9C7A4E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    padding-bottom: 2px;
}

.brand-divider-line {
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, #9C7A4E 0%, #DFCA9B 50%, #9C7A4E 100%);
    margin: 3px 0 4px;
    opacity: 0.9;
}

.brand-sub {
    font-family: 'Cinzel', -apple-system, sans-serif;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.34em;
    color: #C5A880;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 6px 12px;
    scroll-behavior: smooth;
}

.nav-links::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* 데스크톱 헤더 3단 균형 레이아웃: 로고(좌측) - 메뉴 링크(중앙) - 액션 버튼(우측 끝) */
@media (min-width: 769px) {
    .nav-links > a:not(.btn):not(.nav-auth-btn):first-child {
        margin-left: auto;
    }
    .auth-nav-wrapper,
    .auth-nav-user {
        margin-left: auto;
    }
}

.nav-links a:not(.btn):not(.nav-auth-btn) {
    font-size: 0.95rem;
    font-weight: 500;
    color: #CBD5E1;
    position: relative;
    padding: 6px 0;
    flex-shrink: 0;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.nav-links a:not(.btn):not(.nav-auth-btn):hover {
    color: var(--gold-light);
}

.nav-links a:not(.btn):not(.nav-auth-btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:not(.btn):not(.nav-auth-btn):hover::after {
    width: 100%;
}

.nav-inquiry-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Authentication Nav Buttons */
.auth-nav-wrapper, .auth-nav-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-auth-btn {
    background: transparent;
    border: 1px solid rgba(197, 168, 128, 0.5);
    color: var(--gold-light);
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nav-auth-btn:hover {
    background: rgba(197, 168, 128, 0.14);
    border-color: var(--gold);
}

.nav-auth-btn.reg-btn {
    background: rgba(197, 168, 128, 0.2);
    border-color: var(--gold);
    color: #FFFFFF;
}

.nav-auth-btn.reg-btn:hover {
    background: var(--gold);
    color: #0B0F19;
}

.nav-auth-btn.client-portal-btn {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(197, 168, 128, 0.12);
}

.user-greeting {
    font-size: 0.88rem;
    font-weight: 600;
    color: #E2E8F0;
}

/* Language Toggle Switch */
.lang-switch-wrap {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.lang-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(197, 168, 128, 0.35);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.lang-toggle-btn:hover {
    border-color: var(--gold);
    transform: scale(1.08);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #F8FAFC;
    cursor: pointer;
    padding: 8px;
}

/* --------------------------------------------------
   Hero Section (.hero.law-hero)
   -------------------------------------------------- */
.hero.law-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 160px 0 100px;
    background-color: #0B0F19;
    overflow: hidden;
}

.hero-slider-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-slide-item {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), transform 7s ease-out;
    pointer-events: none;
}

.hero-slide-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-slider-dots {
    position: absolute;
    bottom: 95px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 4;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(197, 168, 128, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-slider-dot.active {
    background: var(--gold-gradient);
    border-color: transparent;
    transform: scale(1.35);
    box-shadow: 0 0 12px rgba(197, 168, 128, 0.8);
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(11, 15, 25, 0.38) 0%, rgba(11, 15, 25, 0.72) 100%),
                linear-gradient(180deg, rgba(11, 15, 25, 0.35) 0%, rgba(11, 15, 25, 0.78) 100%);
    pointer-events: none;
    z-index: 2;
}

.hero-content-center {
    position: relative;
    z-index: 3;
    max-width: 860px;
}

.hero-headline {
    font-size: 4rem;
    line-height: 1.3;
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 36px;
    word-break: keep-all;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85), 0 2px 6px rgba(0, 0, 0, 0.9);
}

.hero-headline .accent-gold {
    background: linear-gradient(135deg, #FFFDF5 0%, #F6E6C6 35%, #E2CA99 70%, #CAA775 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.95)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.85));
    display: inline-block;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.hero-cta-wrapper {
    margin-top: 10px;
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 3;
    cursor: pointer;
}

.scroll-text {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: var(--gold);
}

.scroll-arrow-down {
    animation: scrollBounce 2.2s infinite ease-in-out;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(8px);
    }
    60% {
        transform: translateY(4px);
    }
}

/* --------------------------------------------------
   Performance Stats & About Section
   -------------------------------------------------- */
.about-stats-section {
    padding: 120px 0;
    background-color: #FFFFFF;
}

.gold-symbol-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.section-symbol {
    filter: drop-shadow(0 2px 8px rgba(197, 168, 128, 0.3));
}

.firm-intro-text {
    max-width: 820px;
    margin: 0 auto 64px;
}

.intro-paragraph {
    font-size: 1.3rem;
    line-height: 1.85;
    color: #1F2937;
    font-weight: 500;
    word-break: keep-all;
}

.grid-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.stat-box {
    background: linear-gradient(180deg, #FFFFFF 0%, #FCFAF7 100%);
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: var(--radius-md);
    padding: 44px 28px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-box:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 14px 34px rgba(197, 168, 128, 0.18);
}

.stat-number-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
}

.stat-count {
    font-family: 'Cinzel', 'Pretendard', sans-serif;
    font-size: 3.25rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1;
}

.stat-plus {
    font-family: 'Cinzel', 'Pretendard', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: #4B5563;
}

/* --------------------------------------------------
   Dedicated Practice Areas Page (/practice) Styles
   -------------------------------------------------- */
.practice-page-body {
    background-color: #FFFFFF;
}

.practice-page-main {
    padding-top: 88px;
}

/* 01. 5 Tabs Subnavigation Bar */
.practice-subnav-bar {
    background-color: #0E131F;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: sticky;
    top: 88px;
    z-index: 90;
}

.practice-subnav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding: 0 16px;
}

.practice-subnav-container::-webkit-scrollbar {
    display: none;
}

.practice-tab-btn {
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 18px 12px 16px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.practice-tab-btn:hover {
    color: #FFFFFF;
}

.practice-tab-btn.active {
    color: #FFFFFF;
    font-weight: 700;
}

.practice-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background: #FFFFFF;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.practice-tab-btn.active::after {
    width: 100%;
}

/* 02. Definition Hero Banner */
.practice-hero-banner {
    position: relative;
    min-height: 520px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    transition: background-image 0.5s ease-in-out;
}

.practice-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.72) 0%, rgba(11, 15, 25, 0.85) 100%);
    pointer-events: none;
}

.practice-banner-container {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
}

.definition-main-title {
    font-size: 3.6rem;
    color: #FFFFFF;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.definition-subtitle {
    font-size: 1.45rem;
    color: #FFFFFF;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}

.definition-asterisk-wrap {
    margin-bottom: 24px;
}

.definition-asterisk {
    font-size: 1.5rem;
    color: #FFFFFF;
    opacity: 0.85;
}

.definition-desc-text {
    max-width: 860px;
    margin: 0 auto;
}

.definition-desc-text p {
    font-size: 1.15rem;
    line-height: 1.95;
    color: #E2E8F0;
    font-weight: 400;
    word-break: keep-all;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* 03. Procedure Vertical Timeline Section */
.practice-procedure-section {
    padding: 110px 0 130px;
    background-color: #FFFFFF;
}

.procedure-header-wrap {
    margin-bottom: 64px;
}

.procedure-asterisk {
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 8px;
}

.procedure-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.02em;
}

.procedure-timeline-container {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    text-align: left;
}

/* Dashed Vertical Timeline Line */
.procedure-timeline-container::before {
    content: '';
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 48px;
    width: 1px;
    border-left: 1.5px dashed var(--gold);
    z-index: 1;
}

.timeline-step-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 42px;
    margin-bottom: 54px;
    z-index: 2;
}

.timeline-step-row:last-child {
    margin-bottom: 0;
}

.step-badge-node {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 140px;
    flex-shrink: 0;
    background: #FFFFFF;
    padding: 4px 0;
}

.step-flower-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.step-node-text {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.step-content-box {
    flex: 1;
    padding-top: 2px;
}

.step-heading {
    font-size: 1.28rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.step-paragraph {
    font-size: 1.02rem;
    line-height: 1.85;
    color: #475569;
    word-break: keep-all;
    margin: 0;
}

@media (max-width: 900px) {
    .practice-subnav-container {
        gap: 16px;
        justify-content: flex-start;
    }
    .practice-tab-btn {
        font-size: 0.95rem;
        padding: 14px 8px 12px;
    }
    .definition-main-title {
        font-size: 2.8rem;
    }
    .definition-subtitle {
        font-size: 1.25rem;
    }
    .definition-desc-text p {
        font-size: 1.02rem;
    }
    .procedure-timeline-container::before {
        left: 20px;
    }
    .timeline-step-row {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 40px;
        padding-left: 48px;
    }
    .step-badge-node {
        width: auto;
        padding: 0;
    }
}

/* --------------------------------------------------
   Practice Areas Section (.practice-section)
   -------------------------------------------------- */
.practice-section {
    padding: 120px 0;
    background-color: var(--bg-alt);
}

.section-header {
    margin-bottom: 64px;
}

.grid-practice {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.practice-card {
    position: relative;
    height: 290px;
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.practice-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

/* Practice Card Themed Atmospheric Backgrounds */
.practice-card.bg-patent {
    background: linear-gradient(135deg, rgba(13, 23, 43, 0.88) 0%, rgba(23, 37, 84, 0.92) 100%),
                radial-gradient(circle at 80% 20%, rgba(197, 168, 128, 0.25) 0%, transparent 60%),
                #0F172A;
}

.practice-card.bg-trademark {
    background: linear-gradient(135deg, rgba(24, 24, 38, 0.88) 0%, rgba(46, 16, 75, 0.92) 100%),
                radial-gradient(circle at 80% 20%, rgba(197, 168, 128, 0.25) 0%, transparent 60%),
                #18181B;
}

.practice-card.bg-litigation {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.94) 100%),
                radial-gradient(circle at 80% 20%, rgba(197, 168, 128, 0.25) 0%, transparent 60%),
                #0F172A;
}

.practice-card.bg-global {
    background: linear-gradient(135deg, rgba(8, 26, 46, 0.9) 0%, rgba(12, 74, 110, 0.94) 100%),
                radial-gradient(circle at 80% 20%, rgba(197, 168, 128, 0.25) 0%, transparent 60%),
                #0C4A6E;
}

.practice-card.bg-consulting {
    background: linear-gradient(135deg, rgba(28, 25, 23, 0.9) 0%, rgba(69, 26, 3, 0.94) 100%),
                radial-gradient(circle at 80% 20%, rgba(197, 168, 128, 0.25) 0%, transparent 60%),
                #1C1917;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 90%, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}

.card-arrow-circle {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 168, 128, 0.5);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 2;
}

.practice-card:hover .card-arrow-circle {
    background: var(--gold-gradient);
    color: #0B0F19;
    transform: scale(1.12) rotate(45deg);
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(197, 168, 128, 0.45);
}

/* 06. Practice Inquiry Box */
.practice-card-inquiry {
    background: #FFFFFF !important;
    border: 1.5px solid rgba(197, 168, 128, 0.35);
    padding: 36px 32px;
}

.inquiry-box-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.inquiry-box-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
}

.inquiry-box-desc {
    font-size: 0.95rem;
    color: #64748B;
    line-height: 1.6;
    margin: 12px 0 20px;
}

.link-view-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: var(--gold);
    transition: var(--transition-smooth);
}

.link-view-more svg {
    transition: transform 0.25s ease;
}

.link-view-more:hover {
    color: var(--gold-dark);
}

.link-view-more:hover svg {
    transform: translateX(4px);
}

/* --------------------------------------------------
   Our Insights Section (.insights-section)
   -------------------------------------------------- */
.insights-section {
    padding: 120px 0;
    background-color: #FFFFFF;
}

.grid-insights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.insight-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.insight-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.insight-thumb-wrap {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #0F172A;
}

.insight-thumb {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.insight-card:hover .insight-thumb {
    transform: scale(1.06);
}

/* Atmospheric Thumb Mock Backgrounds */
.thumb-mock-1 {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 50%, #334155 100%);
}
.thumb-mock-2 {
    background: linear-gradient(135deg, #2D3748 0%, #1A202C 50%, #4A5568 100%);
}
.thumb-mock-3 {
    background: linear-gradient(135deg, #1A365D 0%, #0D1B2A 50%, #2A4365 100%);
}
.thumb-mock-4 {
    background: linear-gradient(135deg, #234E52 0%, #0D262A 50%, #285E61 100%);
}
.thumb-mock-5 {
    background: linear-gradient(135deg, #322659 0%, #150F26 50%, #44337A 100%);
}

.insight-meta {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.insight-category-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--gold-subtle);
    color: var(--gold-dark);
    border: 1px solid var(--gold-border);
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 12px;
    align-self: flex-start;
}

.insight-headline {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.insight-card:hover .insight-headline {
    color: var(--gold-dark);
}

.section-footer-viewmore {
    margin-top: 54px;
}

.large-viewmore {
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 4px;
}

.viewmore-subtext {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 12px;
}

/* --------------------------------------------------
   Our Professionals Section (.professionals-section)
   -------------------------------------------------- */
.professionals-section {
    padding: 120px 0;
    background-color: var(--bg-alt);
}

.grid-professionals {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.pro-card {
    background: #0B0F19;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(197, 168, 128, 0.25);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.pro-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 18px 42px rgba(197, 168, 128, 0.22);
}

.pro-photo-wrap {
    width: 100%;
    aspect-ratio: 3/3.8;
    overflow: hidden;
    background: #111827;
    position: relative;
}

.pro-photo {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    filter: grayscale(100%) contrast(1.08);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.pro-card:hover .pro-photo {
    transform: scale(1.04);
    filter: grayscale(20%) contrast(1.05);
}

.pro-info-bar {
    padding: 18px 20px;
    background: linear-gradient(180deg, #0E1322 0%, #080B12 100%);
    border-top: 1.5px solid var(--gold);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
}

.pro-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}

.pro-role {
    font-size: 0.88rem;
    font-weight: 500;
    color: #CBD5E1;
}

/* --------------------------------------------------
   Dedicated Professionals Page (/professionals) Styles
   -------------------------------------------------- */
.professionals-page-body {
    background-color: #FFFFFF;
}

.professionals-page-main {
    padding: 160px 0 120px;
}

.pro-page-header {
    margin-bottom: 52px;
}

.pro-page-title {
    font-size: 3.2rem;
    letter-spacing: 0.04em;
    color: #0F172A;
    font-weight: 600;
}

.pro-page-subtitle {
    font-size: 1.12rem;
    line-height: 1.85;
    color: #475569;
    font-weight: 500;
    word-break: keep-all;
}

/* Category Tab Bar */
.pro-category-nav-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 56px;
    border-bottom: 1px solid #E2E8F0;
    flex-wrap: wrap;
}

.pro-category-tab {
    background: transparent;
    border: none;
    padding: 14px 18px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.pro-category-tab:hover {
    color: #0F172A;
}

.pro-category-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gold-gradient);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-category-tab.active {
    color: #0F172A;
    font-weight: 800;
}

.pro-category-tab.active::after {
    width: 100%;
}

.pro-page-grid {
    gap: 24px;
}

@media (max-width: 992px) {
    .pro-category-nav-bar {
        gap: 16px;
    }
    .pro-category-tab {
        font-size: 0.95rem;
        padding: 10px 12px;
    }
    .pro-page-title {
        font-size: 2.5rem;
    }
}

/* Executive Monotone Portrait Lighting Gradients */
.pro-bg-1 {
    background: linear-gradient(180deg, #334155 0%, #1E293B 40%, #0F172A 100%);
}
.pro-bg-2 {
    background: linear-gradient(180deg, #475569 0%, #334155 40%, #1E293B 100%);
}
.pro-bg-3 {
    background: linear-gradient(180deg, #3B4252 0%, #2E3440 40%, #1A1D24 100%);
}
.pro-bg-4 {
    background: linear-gradient(180deg, #4C566A 0%, #3B4252 40%, #2E3440 100%);
}
.pro-bg-5 {
    background: linear-gradient(180deg, #3F3F46 0%, #27272A 40%, #18181B 100%);
}
.pro-bg-6 {
    background: linear-gradient(180deg, #52525B 0%, #3F3F46 40%, #27272A 100%);
}
.pro-bg-7 {
    background: linear-gradient(180deg, #27272A 0%, #18181B 40%, #09090B 100%);
}
.pro-bg-8 {
    background: linear-gradient(180deg, #3F3F46 0%, #27272A 40%, #18181B 100%);
}

.pro-info-bar {
    padding: 20px 22px;
    background: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid #F1F5F9;
}

.pro-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.pro-role {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold-dark);
}

/* --------------------------------------------------
   Contact Us Section (.contact-section)
   -------------------------------------------------- */
.contact-section {
    padding: 120px 0;
    background: #FFFFFF;
}

.contact-sub-intro {
    font-size: 1.15rem;
    color: #64748B;
    line-height: 1.7;
    margin-top: 14px;
}

.contact-form-container {
    max-width: 760px;
    margin: 48px auto 0;
}

.patent-contact-form {
    background: #FFFFFF;
    border: 1px solid rgba(197, 168, 128, 0.35);
    border-radius: var(--radius-lg);
    padding: 52px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.04);
}

.form-row {
    display: flex;
    gap: 20px;
}

.flex-1 { flex: 1; }

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #E2E8F0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.96rem;
    background-color: #FAFAFA;
    color: #0F172A;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.16);
}

.privacy-check-wrap {
    margin-top: 10px;
    margin-bottom: 30px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #4B5563;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--gold);
    cursor: pointer;
}

.privacy-highlight {
    color: var(--gold-dark);
    text-decoration: underline;
    cursor: pointer;
}

.form-submit-wrap {
    margin-top: 16px;
}

/* --------------------------------------------------
   Our Location Section (.location-section)
   -------------------------------------------------- */
.location-section {
    padding: 120px 0;
    background-color: var(--bg-alt);
}

.location-stage {
    max-width: 1100px;
    margin: 0 auto;
}

.map-illustration-box {
    position: relative;
    min-height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(197, 168, 128, 0.35);
    background: #EAEFF5;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.05);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 480px;
}

/* Stylized Minimal Roadmap Graphic */
.custom-map-graphic {
    position: relative;
    width: 100%;
    height: 480px;
    background: #E5EBF2;
    overflow: hidden;
}

.road-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.9) 24px, transparent 24px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.9) 24px, transparent 24px);
    background-size: 140px 140px;
}

.building-block {
    position: absolute;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.building-block.b1 { top: 70px; left: 100px; }
.building-block.b2 { top: 220px; left: 160px; }
.building-block.b3 { top: 90px; left: 340px; }
.building-block.b4 { top: 280px; left: 380px; }

.subway-pin {
    position: absolute;
    top: 360px;
    left: 80px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #FFFFFF;
    padding: 6px 12px;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.subway-badge-circle {
    width: 22px;
    height: 22px;
    background: #10B981;
    color: #FFFFFF;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.subway-exit-box {
    font-size: 0.8rem;
    font-weight: 700;
    color: #065F46;
}

.destination-pin {
    position: absolute;
    top: 210px;
    left: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.pin-tag {
    background: #0B0F19;
    color: var(--gold-light);
    border: 1px solid var(--gold);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.pin-point {
    width: 14px;
    height: 14px;
    background: var(--gold);
    transform: rotate(45deg);
    margin-top: -6px;
}

/* Floating Location Card */
.location-floating-card {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 340px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border: 1.5px solid rgba(197, 168, 128, 0.4);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.loc-badge-time {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gold-gradient);
    color: #0B0F19;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.loc-info-group {
    margin-bottom: 18px;
}

.loc-info-group:last-child {
    margin-bottom: 0;
}

.loc-group-title {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--gold-dark);
    margin-bottom: 6px;
}

.loc-group-detail {
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.6;
}

.subway-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.subway-line-badge {
    width: 20px;
    height: 20px;
    background: #10B981;
    color: #FFFFFF;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
}

/* --------------------------------------------------
   Site Footer
   -------------------------------------------------- */
.site-footer {
    background-color: var(--bg-dark);
    color: #94A3B8;
    padding: 80px 0 60px;
    border-top: 1px solid rgba(197, 168, 128, 0.2);
}

.footer-content-wrap {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer-legal-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.legal-link {
    color: #CBD5E1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.legal-link:hover {
    color: var(--gold-light);
}

.legal-divider {
    color: #475569;
}

.footer-info-details {
    font-size: 0.92rem;
    line-height: 1.8;
    color: #94A3B8;
}

.footer-info-details strong {
    color: #F8FAFC;
    font-size: 1.05rem;
}

.footer-info-details a {
    color: inherit;
}

.footer-info-details a:hover {
    color: var(--gold-light);
}

.footer-registration {
    font-size: 0.85rem;
    color: #64748B;
    margin-top: 14px;
}

.footer-registration a {
    color: inherit;
    text-decoration: underline;
    transition: var(--transition-smooth);
}

.footer-registration a:hover {
    color: var(--gold-light);
}

.footer-social-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(197, 168, 128, 0.25);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-icon-btn:hover {
    background: var(--gold-gradient);
    color: #0B0F19;
    border-color: transparent;
    transform: translateY(-3px);
}

/* --------------------------------------------------
   Dedicated About Page (/about) Styles
   -------------------------------------------------- */
.about-page-body {
    background-color: #FFFFFF;
}

.about-main-wrapper {
    padding-top: 88px;
}

.about-split-section {
    padding: 100px 0;
    position: relative;
    border-bottom: 1px solid #F1F5F9;
    overflow: hidden;
}

.about-split-section:last-child {
    border-bottom: none;
}

.about-split-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    position: relative;
    gap: 60px;
}

.about-media-col {
    flex: 1.15;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-text-col {
    flex: 1;
    position: relative;
    padding-right: 70px;
}

/* Vertical Side Label */
.about-vertical-label {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Cinzel', serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: #CBD5E1;
    user-select: none;
}

.vertical-symbol-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--gold);
}

/* Typography & Titles */
.about-symbol-wrap {
    margin-bottom: 24px;
}

.about-sec-title {
    font-size: 2.35rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    word-break: keep-all;
}

.about-sec-desc p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.85;
    margin-bottom: 16px;
    word-break: keep-all;
}

.about-sec-desc p:last-child {
    margin-bottom: 0;
}

/* 01. Vision Building Image Frame */
.about-vision-img-frame {
    width: 100%;
    height: 480px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* 02. CEO Greetings & Interview Frame */
.about-ceo-img-frame {
    width: 100%;
    height: 520px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.ceo-greetings-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.greeting-block strong {
    display: block;
    font-size: 1.08rem;
    color: #0F172A;
    font-weight: 700;
    margin-bottom: 4px;
}

.greeting-block p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 0;
}

.about-signature-wrap {
    margin-top: 36px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.signature-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748B;
}

.signature-img {
    max-height: 48px;
    object-fit: contain;
}

.signature-name-text {
    font-family: 'Cinzel', cursive, serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 2px;
}

/* 03. Core Values Graphic & Typography */
.values-graphic-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.trinity-diagram-box {
    position: relative;
    width: 420px;
    height: 420px;
}

.trinity-orbit-ring {
    position: absolute;
    inset: 30px;
    border: 1.5px dashed rgba(197, 168, 128, 0.45);
    border-radius: 50%;
}

.trinity-circle-node {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid var(--gold);
    box-shadow: 0 10px 28px rgba(197, 168, 128, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.trinity-circle-node:hover {
    transform: scale(1.06);
    box-shadow: 0 14px 34px rgba(197, 168, 128, 0.3);
}

.node-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.02em;
}

.trinity-circle-node.node-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}
.trinity-circle-node.node-top:hover {
    transform: translateX(-50%) scale(1.06);
}

.trinity-circle-node.node-left {
    bottom: 20px;
    left: 10px;
}

.trinity-circle-node.node-right {
    bottom: 20px;
    right: 10px;
}

.trinity-center-cross {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.values-english-title {
    font-family: 'Playfair Display', 'Cinzel', serif;
    font-size: 3rem;
    line-height: 1.2;
    letter-spacing: 0.04em;
    color: #0F172A;
    font-weight: 600;
    margin-bottom: 24px;
}

@media (max-width: 992px) {
    .about-split-container {
        flex-direction: column;
        padding: 0 24px;
        gap: 40px;
    }
    .about-media-col, .about-text-col {
        width: 100%;
        padding-right: 0;
    }
    .about-vertical-label {
        display: none;
    }
    .about-vision-img-frame, .about-ceo-img-frame {
        height: 360px;
    }
    .values-english-title {
        font-size: 2.2rem;
    }
    .trinity-diagram-box {
        width: 320px;
        height: 320px;
    }
    .trinity-circle-node {
        width: 110px;
        height: 110px;
    }
    .node-label {
        font-size: 1.05rem;
    }
}

/* --------------------------------------------------
   Modals & Glass Cards
   -------------------------------------------------- */
.user-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(197, 168, 128, 0.35);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.user-modal-box {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 40px;
}

.portal-modal-card,
.policy-modal-card {
    max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: #94A3B8;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #0F172A;
}

.modal-tabs {
    display: flex;
    border-bottom: 2px solid #E2E8F0;
    margin-bottom: 28px;
}

.modal-tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1.05rem;
    font-weight: 700;
    color: #94A3B8;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-tab-btn.active {
    color: var(--gold-dark);
    border-bottom-color: var(--gold);
}

.portal-header, .policy-header {
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.portal-body, #policy-modal-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
}

.portal-section-title {
    font-size: 1.05rem;
    color: var(--gold-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-footer, .policy-footer {
    border-top: 1px solid #E2E8F0;
    padding-top: 16px;
    margin-top: 20px;
    text-align: right;
}

/* --------------------------------------------------
   Admin Layout & Tables Styling
   -------------------------------------------------- */
.admin-body {
    background-color: #F8FAFC;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #FFFFFF;
    border-right: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #F1F5F9;
}

.admin-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-title-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.brand-main-title {
    font-family: 'Cinzel', 'Pretendard', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.brand-admin-badge {
    font-family: 'Cinzel', 'Pretendard', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    line-height: 1.2;
    margin-top: 2px;
}

.sidebar-toggle-btn {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #64748B;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sidebar-toggle-btn:hover {
    background: var(--gold-subtle);
    color: var(--gold-dark);
    border-color: var(--gold);
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    gap: 4px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    color: #475569;
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition-smooth);
}

.nav-item:hover {
    background: var(--gold-subtle);
    color: #0F172A;
}

.nav-item.active {
    background: var(--gold-gradient-soft);
    color: var(--gold-dark);
    border-left: 3px solid var(--gold);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #F1F5F9;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 40px 48px;
    transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 0;
}

.admin-layout.sidebar-collapsed .admin-sidebar {
    width: 76px;
}

.admin-layout.sidebar-collapsed .brand-title-wrap,
.admin-layout.sidebar-collapsed .nav-text,
.admin-layout.sidebar-collapsed .sidebar-footer p:first-child {
    display: none;
}

.admin-layout.sidebar-collapsed .admin-main {
    margin-left: 76px;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

/* 상담 및 통계 카운터 3열 그리드 */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

@media (max-width: 900px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: #FFFFFF;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #E2E8F0;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.kpi-card-highlight { border-left: 4px solid var(--gold); }
.kpi-card-warning { border-left: 4px solid var(--status-pending); }
.kpi-card-purple { border-left: 4px solid #7C3AED; }

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.1;
    margin: 8px 0;
}

.crm-table-wrapper {
    background: #FFFFFF;
    padding: 28px;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #E2E8F0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
}

.crm-table {
    width: 100%;
    border-collapse: collapse;
}

.crm-table th {
    text-align: left;
    padding: 14px 18px;
    border-bottom: 2px solid #F1F5F9;
    color: #64748B;
    font-weight: 700;
    font-size: 0.86rem;
    white-space: nowrap;
    background: #F8FAFC;
}

.crm-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
    font-size: 0.92rem;
    white-space: nowrap;
}

.crm-table tr:hover {
    background-color: #FAFAFA;
}

/* 수임료 및 매출 관리 테이블 전용 규격 (글자 꺾임 및 세로쓰기 방지) */
.revenue-table {
    min-width: 1320px;
}

.revenue-table th,
.revenue-table td {
    white-space: nowrap !important;
    word-break: keep-all !important;
}

.revenue-table td:nth-child(5),
.revenue-table td:nth-child(6),
.revenue-table td:nth-child(7),
.revenue-table td:nth-child(8),
.revenue-table td:nth-child(9) {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* EMR 사건 타임라인 카드 스타일 */
.chart-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-left: 5px solid var(--gold) !important;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

.timeline-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border-color: #CBD5E1;
}

.timeline-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-size: 0.94rem;
}

.timeline-label {
    width: 170px;
    flex-shrink: 0;
    font-weight: 700;
    color: #64748B;
}

.timeline-value {
    flex: 1;
    color: #1E293B;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.badge.pending { background: #FEF3C7; color: #D97706; }
.badge.confirmed { background: var(--gold-subtle); color: var(--gold-dark); border: 1px solid var(--gold-border); }
.badge.completed { background: #D1FAE5; color: #059669; }

.action-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    cursor: pointer;
    font-weight: 600;
    color: #475569;
    transition: var(--transition-smooth);
}

.action-btn:hover {
    background: var(--gold-subtle);
    border-color: var(--gold);
    color: var(--gold-dark);
}

/* --------------------------------------------------
   Admin Settings Sub-tabs & Advanced UI Controls
   -------------------------------------------------- */
.settings-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 12px;
}

.settings-tab-btn {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #475569;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.settings-tab-btn:hover {
    background: var(--gold-subtle);
    border-color: var(--gold);
    color: var(--gold-dark);
}

.settings-tab-btn.active {
    background: var(--gold-gradient);
    border-color: transparent;
    color: #0B0F19;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(197, 168, 128, 0.35);
}

.settings-tab-content {
    display: none !important;
}

.settings-tab-content.active {
    display: block !important;
}

/* Dashboard Charts, Grids & KPI Widgets */
.dashboard-charts-grid,
.dashboard-widgets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}

.chart-box {
    min-height: 280px;
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.kpi-header h4 {
    font-size: 0.92rem;
    color: #64748B;
    font-weight: 600;
    margin: 0;
}

.kpi-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: #F1F5F9;
    color: #475569;
}

.kpi-badge.warning { background: #FEF3C7; color: #D97706; }
.kpi-badge.info { background: #EFF6FF; color: #2563EB; }
.kpi-badge.success { background: #ECFDF5; color: #059669; }
.kpi-badge.purple { background: #F5F3FF; color: #7C3AED; }

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

/* Chart Bars Component */
.chart-bars-container {
    padding: 16px 0;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
}

.bars-flex-container {
    display: flex;
    width: 100%;
    height: 190px;
    align-items: flex-end;
    gap: 14px;
    padding-top: 24px;
}

.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.bar-track {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.bar-fill {
    width: 70%;
    max-width: 44px;
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
    transition: height 0.4s ease;
}

.bar-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0B0F19;
}

.traffic-theme .bar-value {
    color: #FFFFFF;
}

.bar-label {
    font-size: 0.78rem;
    color: #64748B;
    margin-top: 8px;
    font-weight: 600;
}

/* Distribution Rows (Treatment/Category) */
.dist-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dist-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dist-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
}

.dist-name {
    color: #334155;
    font-weight: 600;
}

.dist-count {
    color: #64748B;
    font-size: 0.82rem;
}

.dist-bar-track {
    width: 100%;
    height: 8px;
    background: #F1F5F9;
    border-radius: 9999px;
    overflow: hidden;
}

.dist-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.4s ease;
}

/* Schedule & Calendar Controls */
.schedule-view-switcher {
    display: inline-flex;
    background: #F1F5F9;
    padding: 3px;
    border-radius: var(--radius-sm);
    gap: 2px;
}

.schedule-view-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.schedule-view-btn.active {
    background: #FFFFFF;
    color: #0F172A;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.doctor-filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.doctor-tab-btn {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #475569;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.doctor-tab-btn:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.doctor-tab-btn.active {
    background: var(--gold-subtle);
    border-color: var(--gold);
    color: var(--gold-dark);
    font-weight: 700;
}

.doc-color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.calendar-wrapper {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.calendar-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-title-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    margin-left: 10px;
}

.calendar-weekdays-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #F8FAFC;
    border-radius: 6px 6px 0 0;
    border: 1px solid #E2E8F0;
    border-bottom: none;
}

.calendar-weekday-cell {
    padding: 10px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748B;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid #E2E8F0;
    border-top: none;
}

.calendar-day-cell {
    min-height: 110px;
    border-right: 1px solid #F1F5F9;
    border-bottom: 1px solid #F1F5F9;
    padding: 8px;
    background: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.calendar-day-cell:hover {
    background: #FBF9F6;
}

.calendar-day-cell.other-month {
    background: #FAFAFA;
    opacity: 0.55;
}

.calendar-day-cell.today {
    background: #FEFCE8;
    border: 1.5px solid var(--gold);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.day-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
}

.day-events-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cal-event-chip {
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
    line-height: 1.3;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-left: 3px solid var(--gold);
    background: #F8FAFC;
    color: #1E293B;
}

.cal-event-chip.status-completed {
    border-left-color: #059669;
    background: #ECFDF5;
}

.cal-event-chip.status-canceled {
    border-left-color: #EF4444;
    background: #FEF2F2;
    text-decoration: line-through;
}

/* EMR Case Portfolio & CRM Styling */
.chart-crm-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.patient-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

.patient-list-wrap {
    max-height: 680px;
    overflow-y: auto;
}

.patient-item-card {
    padding: 14px 16px;
    border-bottom: 1px solid #F1F5F9;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.patient-item-card:hover {
    background: #F8FAFC;
}

.patient-item-card.active {
    background: var(--gold-subtle);
    border-left: 4px solid var(--gold);
}

.patient-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.patient-item-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0F172A;
}

.patient-item-phone {
    font-size: 0.8rem;
    color: #64748B;
}

.patient-item-sub {
    font-size: 0.8rem;
    color: #94A3B8;
    display: flex;
    justify-content: space-between;
}

.patient-item-badges {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.patient-card-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: #F1F5F9;
    color: #475569;
    font-weight: 600;
}

.patient-card-badge.alert {
    background: #FEE2E2;
    color: #DC2626;
}

.patient-card-badge.unpaid {
    background: #FEF3C7;
    color: #D97706;
}

.chart-main-view {
    flex: 1;
    min-width: 0;
}

.patient-emr-header {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 24px;
}

.emr-header-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    background: #F8FAFC;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid #F1F5F9;
}

.emr-sum-item {
    display: flex;
    flex-direction: column;
}

.sum-label {
    font-size: 0.75rem;
    color: #64748B;
    margin-bottom: 2px;
}

.sum-val {
    font-size: 0.95rem;
    color: #0F172A;
}

/* Milestone Steps */
.ip-milestone-display-container {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0;
}

.milestone-step-card {
    flex: 1;
    min-width: 130px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
}

.milestone-step-card.highlight {
    background: var(--gold-subtle);
    border-color: var(--gold);
}

.milestone-step-card h4 {
    font-size: 0.88rem;
    margin: 6px 0 2px;
    color: #0F172A;
}

.milestone-step-card p {
    font-size: 0.75rem;
    color: #64748B;
    margin: 0;
}

.milestone-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    background: #E2E8F0;
    color: #475569;
}

.milestone-badge.gold {
    background: var(--gold);
    color: #0B0F19;
}

.milestone-arrow {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 700;
}

/* Revenue & Receipt Print Helpers */
.receipt-print-box {
    background: #FFFFFF;
    padding: 30px;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    color: #0F172A;
}

@media print {
    body * {
        visibility: hidden;
    }
    #modal-receipt-print,
    #modal-receipt-print * {
        visibility: visible;
    }
    #modal-receipt-print {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        background: transparent !important;
        padding: 0;
    }
    .user-modal-box {
        box-shadow: none !important;
        border: none !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    .modal-close-btn,
    #modal-receipt-print button {
        display: none !important;
    }
}

/* --------------------------------------------------
   Responsive Design & Breakpoints
   -------------------------------------------------- */
@media (max-width: 1200px) {
    .dashboard-charts-grid,
    .dashboard-widgets-grid {
        grid-template-columns: 1fr;
    }
    .chart-crm-container {
        flex-direction: column;
    }
    .patient-sidebar {
        width: 100%;
    }
}
@media (max-width: 1100px) {
    .grid-professionals {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-practice {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-insights {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-headline {
        font-size: 2.85rem;
    }
    .location-floating-card {
        position: static;
        width: 100%;
        margin-top: 20px;
    }
    .map-illustration-box {
        min-height: auto;
    }
    .custom-map-graphic {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 88px;
        left: 0;
        width: 100%;
        background: rgba(11, 15, 25, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-smooth);
        border-bottom: 1px solid rgba(197, 168, 128, 0.2);
    }

    .nav-links > a:not(.btn):not(.nav-auth-btn):first-child,
    .auth-nav-wrapper,
    .auth-nav-user {
        margin-left: 0;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-headline {
        font-size: 2.35rem;
    }

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

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

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

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

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .patent-contact-form {
        padding: 32px 24px;
    }

    .admin-main {
        margin-left: 0 !important;
        padding: 24px 16px;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100% !important;
        height: auto;
        position: relative;
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
    }
}

/* --------------------------------------------------
   Dedicated Blog / Insights Page (/blogs) Styles
   (Matching Reference: Minimalist Editorial Magazine Look)
   -------------------------------------------------- */
.blog-page-body {
    background-color: #FFFFFF;
}

.blog-page-main {
    padding: 160px 0 120px;
    background-color: #FFFFFF;
    min-height: 80vh;
}

.blog-hero-header {
    text-align: center;
    margin-bottom: 52px;
}

.blog-hero-title {
    font-family: 'Playfair Display', 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 500;
    color: #111827;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin-bottom: 12px;
}

.blog-hero-symbol {
    font-size: 1.5rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 18px;
    display: inline-block;
}

.blog-hero-desc {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #475569;
    font-weight: 400;
    word-break: keep-all;
    margin: 0 auto;
}

/* Category Filter Bar */
.blog-category-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 14px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.blog-category-nav::-webkit-scrollbar {
    display: none;
}

.blog-category-tab {
    font-size: 0.96rem;
    font-weight: 500;
    color: #64748B;
    text-decoration: none;
    position: relative;
    padding: 6px 2px;
    transition: var(--transition-smooth);
}

.blog-category-tab:hover {
    color: #0F172A;
}

.blog-category-tab.active {
    color: #0F172A;
    font-weight: 700;
}

.blog-category-tab.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0F172A;
}

/* 3-Column Minimal Grid */
.blog-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    margin-bottom: 60px;
}

.blog-card-minimal {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: transparent;
    transition: var(--transition-smooth);
}

.blog-card-thumb-box {
    width: 100%;
    aspect-ratio: 16 / 9.2;
    border-radius: 4px;
    overflow: hidden;
    background-color: #0F172A;
    position: relative;
}

.blog-card-thumb-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card-minimal:hover .blog-card-thumb-img {
    transform: scale(1.05);
}

.blog-card-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.5;
    margin: 16px 0 8px;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.blog-card-minimal:hover .blog-card-title {
    color: var(--gold-dark);
}

.blog-card-date {
    font-size: 0.88rem;
    color: #94A3B8;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Minimal Pagination */
.blog-pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 50px;
}

.blog-page-btn {
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748B;
    text-decoration: none;
    padding: 4px 8px;
    transition: var(--transition-smooth);
    min-width: 28px;
    text-align: center;
}

.blog-page-btn:hover {
    color: #0F172A;
}

.blog-page-btn.active {
    color: #0F172A;
    font-weight: 800;
    border-bottom: 1.5px solid #0F172A;
}

.blog-page-arrow {
    font-size: 1.1rem;
    color: #94A3B8;
    padding: 0 4px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.blog-page-arrow:hover {
    color: #0F172A;
}

.blog-page-arrow.disabled {
    color: #E2E8F0;
    pointer-events: none;
}

@media (max-width: 992px) {
    .blog-grid-3col {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 20px;
    }
    .blog-hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 640px) {
    .blog-grid-3col {
        grid-template-columns: 1fr;
    }
    .blog-category-nav {
        gap: 16px;
    }
    .blog-hero-title {
        font-size: 2.3rem;
    }
}

/* EMR Evidence & Drawing Thumbnail Uploads */
.record-upload-thumb {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: var(--radius-sm);
    border: 1px solid #CBD5E1;
    overflow: hidden;
    background: #FFFFFF;
    flex-shrink: 0;
}

.record-upload-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.record-upload-thumb img:hover {
    transform: scale(1.08);
}

.record-thumb-delete-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: rgba(239, 68, 68, 0.9);
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    font-size: 11px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.record-thumb-delete-btn:hover {
    background: #DC2626;
}

/* --------------------------------------------------
   Floating AI Patent Chatbot Widget Styling
   -------------------------------------------------- */
#patent-chatbot-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1600;
}

.chatbot-floating-btn {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #0B0F19;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 28px rgba(197, 168, 128, 0.45), 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
}

.chatbot-floating-btn:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 12px 36px rgba(197, 168, 128, 0.65), 0 6px 16px rgba(0, 0, 0, 0.3);
}

.chatbot-btn-badge {
    position: absolute;
    top: -6px;
    right: -4px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 9999px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
    animation: pulseBadge 2.2s infinite;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

/* Chatbot Popup Window */
.chatbot-window {
    position: fixed;
    bottom: 102px;
    right: 28px;
    width: 390px;
    max-width: calc(100vw - 36px);
    height: 580px;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(197, 168, 128, 0.45);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    overscroll-behavior: contain;
    animation: chatSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1600;
}

@keyframes chatSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chatbot-header {
    background: linear-gradient(135deg, #162033 0%, #0F172A 100%);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid var(--gold);
    color: #FFFFFF;
}

.chatbot-brand-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
    display: inline-block;
}

.chatbot-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
}

.chatbot-subtitle {
    font-size: 0.75rem;
    color: var(--gold-light);
    display: block;
    margin-top: 2px;
}

.chatbot-close-btn {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s ease;
}

.chatbot-close-btn:hover {
    color: #FFFFFF;
}

/* Chat Messages */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #F8FAFC;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 86%;
}

.chat-msg.bot-msg {
    align-self: flex-start;
}

.chat-msg.user-msg {
    align-self: flex-end;
}

.msg-bubble {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.65;
    word-break: keep-all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.bot-msg .msg-bubble {
    background: #FFFFFF;
    color: #1E293B;
    border: 1px solid #E2E8F0;
    border-top-left-radius: 4px;
}

.user-msg .msg-bubble {
    background: var(--gold-gradient);
    color: #0B0F19;
    font-weight: 600;
    border-top-right-radius: 4px;
}

.msg-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
    padding: 0 4px;
}

.user-msg .msg-time {
    text-align: right;
}

/* Typing Indicator */
.typing-dots {
    display: inline-flex;
    gap: 4px;
    padding: 8px 12px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Quick Chips */
.chatbot-quick-chips {
    padding: 8px 14px 10px;
    background: #FFFFFF;
    border-top: 1px solid #F1F5F9;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.chatbot-quick-chips::-webkit-scrollbar {
    display: none;
}

.quick-chip-btn {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 11px;
    border-radius: 9999px;
    cursor: pointer;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.quick-chip-btn:hover {
    background: var(--gold-subtle);
    border-color: var(--gold);
    color: var(--gold-dark);
}

.quick-chip-btn.chip-highlight {
    background: var(--gold-subtle);
    border-color: var(--gold);
    color: var(--gold-dark);
    font-weight: 700;
}

/* In-Chat Booking Panel */
.chatbot-booking-panel {
    background: #FFFDF9;
    border-top: 1.5px solid var(--gold);
    padding: 14px 16px;
    animation: bookingSlideDown 0.3s ease;
}

@keyframes bookingSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.chat-booking-header h5 {
    font-size: 0.92rem;
    color: var(--gold-dark);
    margin: 0;
}

.booking-close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #94A3B8;
    cursor: pointer;
    line-height: 1;
}

.chat-mini-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-mini-form input,
.chat-mini-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    background: #FFFFFF;
}

.chat-mini-form input:focus,
.chat-mini-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.chat-mini-form button {
    padding: 8px;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Attached Files Preview Bar */
.chatbot-attached-preview-bar {
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    padding: 8px 12px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}

.chatbot-attached-preview-bar::-webkit-scrollbar {
    height: 4px;
}
.chatbot-attached-preview-bar::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

.chat-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    color: #1E293B;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.chat-file-chip .chip-name {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.chat-file-chip .chip-size {
    font-size: 0.7rem;
    color: #94A3B8;
}

.chat-file-chip .chip-remove-btn {
    background: none;
    border: none;
    color: #EF4444;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    padding: 0;
    margin-left: 2px;
}

.chat-file-chip .chip-remove-btn:hover {
    color: #DC2626;
}

/* User Message Attached Files List */
.msg-files-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
}

.msg-file-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(11, 15, 25, 0.08);
    border: 1px solid rgba(11, 15, 25, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    word-break: break-all;
}

/* Chat Input Bar */
.chatbot-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
}

.chatbot-attach-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    flex-shrink: 0;
    outline: none;
}

.chatbot-attach-btn:hover {
    background: var(--gold-subtle);
    border-color: var(--gold);
    color: var(--gold-dark);
    transform: scale(1.05);
}

.chatbot-input-bar input[type="text"] {
    flex: 1;
    border: 1px solid #E2E8F0;
    border-radius: 9999px;
    padding: 10px 16px;
    font-size: 0.9rem;
    outline: none;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.chatbot-input-bar input[type="text"]:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

.chatbot-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #0B0F19;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.chatbot-send-btn:hover {
    transform: scale(1.08);
}

@media (max-width: 640px) {
    #patent-chatbot-widget {
        bottom: 20px;
        right: 20px;
    }
    .chatbot-window {
        bottom: 90px;
        right: 18px;
        width: calc(100vw - 36px);
        height: 520px;
    }
}
```