/* ==========================================================================
   FollicleIQ - World-Class Top-Tier UI/UX Design System
   Architecture: Golden Spatial Ratios, Micro-Interactions, High Readability
   Standard: Apple, Stripe, Linear Design Principles
   ========================================================================== */

:root {
    /* Color Foundation - High-End Midnight Obsidian */
    --bg-base: #080c16;
    --bg-surface: #0f1524;
    --bg-card: rgba(20, 28, 46, 0.8);
    --bg-card-hover: rgba(28, 40, 64, 0.92);
    --bg-glass-stroke: rgba(255, 255, 255, 0.08);
    --bg-glass-stroke-hover: rgba(0, 245, 212, 0.45);

    /* Clean Luxury Accents */
    --primary-teal: #00f5d4;
    --primary-teal-dark: #02c39a;
    --primary-glow: rgba(0, 245, 212, 0.28);

    --accent-blue: #38bdf8;
    --accent-green: #10b981;
    --accent-gold: #ffb703;
    --accent-red: #f43f5e;

    /* Text & High Readability Colors */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #64748b;

    /* World Standard #1 Readability Fonts */
    --font-heading: 'Inter', 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Golden Spatial Radius & Heights */
    --height-btn-lg: 48px;
    --height-btn-md: 44px;
    --height-btn-sm: 36px;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    /* Shadows & Micro Transitions */
    --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-glass: 0 20px 50px 0 rgba(0, 0, 0, 0.55);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-main);
    background-image: 
        radial-gradient(circle at 12% 12%, rgba(0, 245, 212, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 88% 88%, rgba(56, 189, 248, 0.05) 0%, transparent 45%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* App Layout Structure */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - Ergonomic Fixed Width */
.sidebar {
    width: 280px;
    background: rgba(15, 21, 36, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--bg-glass-stroke);
    display: flex;
    flex-direction: column;
    padding: 32px 20px;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 38px;
    padding-left: 6px;
}

.brand-text h2 {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-ai {
    font-size: 0.75rem;
    background: var(--primary-teal);
    color: #080c16;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 800;
}

.brand-text p {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 3px;
    font-weight: 500;
}

/* Nav Menu & Golden Hit Targets */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 46px;
    padding: 0 18px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.nav-item i {
    font-size: 1.2rem;
    width: 22px;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(2px);
}

.nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(0, 245, 212, 0.18), rgba(0, 245, 212, 0.02));
    border-left: 3px solid var(--primary-teal);
    font-weight: 700;
}

.count-badge {
    margin-left: auto;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    color: var(--primary-teal);
}

/* System Status Card */
.system-status-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--bg-glass-stroke);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-top: auto;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 12px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.status-details {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.status-item {
    display: flex;
    justify-content: space-between;
}

.user-solopreneur-info {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--bg-glass-stroke);
    font-size: 0.78rem;
    color: var(--primary-teal);
    font-weight: 700;
}

/* Main Content Area Layout */
.main-content {
    margin-left: 280px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Header - Perfect Alignment & Spatial Depth */
.top-header {
    height: 76px;
    background: rgba(15, 21, 36, 0.82);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bg-glass-stroke);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.search-bar-container {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--bg-glass-stroke);
    border-radius: var(--radius-full);
    padding: 4px 6px 4px 18px;
    width: 480px;
    height: 48px;
    transition: var(--transition-fast);
}

.search-bar-container:focus-within {
    border-color: var(--primary-teal);
    box-shadow: 0 0 20px var(--primary-glow);
}

.search-icon {
    color: var(--text-muted);
    margin-right: 12px;
    font-size: 1rem;
}

.search-bar-container input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 500;
    width: 100%;
}

.btn-search {
    height: 38px;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-teal-dark));
    color: #080c16;
    border: none;
    padding: 0 22px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0 16px var(--primary-glow);
    transition: var(--transition-fast);
}

.btn-search:hover {
    transform: scale(1.03);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Single Compact Language Dropdown */
.lang-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--bg-glass-stroke);
    border-radius: var(--radius-md);
    padding: 0 12px;
    height: 38px;
}

.lang-dropdown-wrapper .lang-icon {
    color: var(--primary-teal);
    font-size: 0.9rem;
    margin-right: 8px;
}

.lang-select-box {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.lang-select-box option {
    background: #0f172a;
    color: #fff;
}

/* Header Action Buttons with Fixed Heights and Non-wrapping text */
.btn-header-pro {
    height: 38px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(124, 92, 252, 0.25), rgba(0, 245, 212, 0.15));
    border: 1px solid rgba(124, 92, 252, 0.5);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.btn-header-pro:hover {
    border-color: var(--primary-teal);
    box-shadow: 0 0 12px rgba(124, 92, 252, 0.4);
}

.btn-header-auth {
    height: 38px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-glass-stroke);
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: max-content;
    transition: var(--transition-fast);
}

.btn-header-auth:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.btn-header-export {
    height: 38px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-teal-dark));
    border: none;
    color: #080c16;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 14px var(--primary-glow);
    transition: var(--transition-fast);
}

.btn-header-export:hover {
    transform: translateY(-1px);
}

/* Content Body */
.content-body {
    padding: 36px;
    flex: 1;
}

.tab-section {
    display: none;
    animation: fadeIn 0.35s ease-out;
}

.tab-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, rgba(20, 28, 46, 0.95), rgba(15, 21, 36, 0.98));
    border: 1px solid var(--bg-glass-stroke);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 32px;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.banner-content h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin: 12px 0;
    letter-spacing: -0.6px;
}

.banner-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 880px;
    line-height: 1.65;
}

.tag-highlight {
    background: rgba(0, 245, 212, 0.12);
    color: var(--primary-teal);
    border: 1px solid rgba(0, 245, 212, 0.3);
    padding: 5px 16px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 800;
}

/* Quick Stats Grid */
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--bg-glass-stroke);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-fast);
}

.stat-card:hover {
    border-color: var(--primary-teal);
    transform: translateY(-2px);
    background: rgba(0, 245, 212, 0.04);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.teal { background: rgba(0, 245, 212, 0.15); color: var(--primary-teal); }
.stat-icon.blue { background: rgba(56, 189, 248, 0.15); color: var(--accent-blue); }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.stat-icon.gold { background: rgba(255, 183, 3, 0.15); color: var(--accent-gold); }

.stat-value {
    display: block;
    font-family: var(--font-body);
    font-size: 2.1rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.8px;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Glass Card & Golden Breathing Space */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-stroke);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-glass);
    transition: var(--transition-fast);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bg-glass-stroke);
}

.card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header h3 i {
    color: var(--primary-teal);
}

.pill-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--bg-glass-stroke);
    font-size: 0.8rem;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    color: var(--primary-teal);
    font-weight: 700;
}

.pill-tag.red { background: rgba(244, 63, 94, 0.15); color: var(--accent-red); border-color: var(--accent-red); }
.pill-tag.green { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); border-color: var(--accent-green); }

/* Grids */
.dashboard-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.margin-top {
    margin-top: 28px;
}

/* Repurposing Grid */
.repurposing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.repurpose-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--bg-glass-stroke);
    border-radius: var(--radius-md);
    padding: 22px;
    transition: var(--transition-fast);
}

.repurpose-card:hover {
    border-color: var(--primary-teal);
    background: rgba(0, 245, 212, 0.05);
}

.repurpose-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.drug-name {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #fff;
    font-size: 1.15rem;
}

.score-badge {
    background: linear-gradient(135deg, var(--accent-green), var(--primary-teal));
    color: #080c16;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.original-indication {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.moa-box {
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.45);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--primary-teal);
    border-left: 3px solid var(--primary-teal);
    line-height: 1.55;
}

/* Paper List Cards */
.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.section-title-bar h2 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
}

.section-title-bar p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.filter-group select {
    background: var(--bg-surface);
    border: 1px solid var(--bg-glass-stroke);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    outline: none;
    cursor: pointer;
    font-weight: 600;
    height: 44px;
}

.paper-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.paper-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-stroke);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    transition: var(--transition-fast);
}

.paper-card:hover {
    border-color: var(--primary-teal);
    transform: translateY(-2px);
}

.paper-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.journal-tag {
    background: rgba(0, 245, 212, 0.15);
    color: var(--primary-teal);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
}

.paper-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.45;
}

.paper-summary-box {
    background: rgba(0, 0, 0, 0.45);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    font-size: 0.96rem;
    color: #cbd5e1;
    border-left: 3px solid var(--primary-teal);
    margin-bottom: 16px;
    line-height: 1.6;
}

.paper-tags {
    display: flex;
    gap: 10px;
}

.tag-sm {
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 6px;
    color: var(--primary-teal);
    font-weight: 600;
}

/* Custom Table - Perfect Vertical Rhythm & Spacing */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
}

.custom-table th {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-weight: 700;
    height: 48px;
    padding: 0 22px;
    border-bottom: 1px solid var(--bg-glass-stroke);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.custom-table td {
    height: 56px;
    padding: 0 22px;
    border-bottom: 1px solid var(--bg-glass-stroke);
    color: var(--text-main);
    vertical-align: middle;
}

.custom-table tr:hover td {
    background: rgba(255, 255, 255, 0.035);
}

.status-badge {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.status-badge.recruiting { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.status-badge.active { background: rgba(56, 189, 248, 0.15); color: var(--accent-blue); }

/* Target Cards */
.target-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.target-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-stroke);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition-fast);
}

.target-card:hover {
    border-color: var(--primary-teal);
    box-shadow: 0 0 28px var(--primary-glow);
}

.target-symbol {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary-teal);
}

.target-name {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.useful-fact-box {
    background: rgba(0, 0, 0, 0.45);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin: 16px 0;
    font-size: 0.9rem;
    line-height: 1.55;
}

.useful-fact-box.red-border { border-left: 3px solid var(--accent-red); }
.useful-fact-box.green-border { border-left: 3px solid var(--accent-green); }

.target-metric {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* 3D Simulation Panel */
.molecule-3d-viewport {
    height: 350px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid var(--bg-glass-stroke);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.overlay-tag-3d {
    position: absolute;
    bottom: 16px;
    left: 16px;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.88);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--bg-glass-stroke);
    font-weight: 600;
}

.molecule-specs-panel h4 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 700;
}

.spec-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.spec-metric-box {
    background: rgba(255, 255, 255, 0.035);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--bg-glass-stroke);
}

.spec-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

/* 3-Tier Button System (Heights: 48px, 44px, 36px) */
.btn-sm {
    height: var(--height-btn-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--bg-glass-stroke);
    color: #fff;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-sm.active {
    background: var(--primary-teal);
    color: #080c16;
    font-weight: 800;
}

.btn-primary {
    height: var(--height-btn-md);
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-teal-dark));
    color: #080c16;
    border: none;
    padding: 0 26px;
    border-radius: var(--radius-md);
    font-weight: 800;
    cursor: pointer;
    font-size: 0.96rem;
    box-shadow: 0 0 22px var(--primary-glow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px var(--primary-glow);
}

.btn-secondary {
    height: var(--height-btn-md);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid var(--bg-glass-stroke);
    padding: 0 26px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.96rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Pricing Tiers Styling */
.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 38px 30px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-stroke);
    transition: var(--transition-fast);
}

.pricing-card.featured {
    border-color: var(--primary-teal);
    background: linear-gradient(180deg, rgba(0, 245, 212, 0.12), rgba(15, 21, 36, 0.98));
    box-shadow: 0 0 40px var(--primary-glow);
    transform: scale(1.03);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 30px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--bg-glass-stroke);
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-weight: 700;
}

.featured-badge {
    background: linear-gradient(135deg, var(--primary-teal), var(--accent-blue));
    color: #080c16;
    font-weight: 800;
}

.green-badge {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.pricing-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #fff;
    margin-top: 8px;
    font-weight: 800;
}

.price-tag {
    font-size: 2.9rem;
    font-weight: 800;
    color: #fff;
    margin: 20px 0 12px;
    letter-spacing: -1px;
}

.price-tag span {
    font-size: 0.98rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    min-height: 44px;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 0.96rem;
    color: var(--text-main);
    margin-bottom: 38px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.full-width {
    width: 100%;
}

.pulse-dot-sm {
    width: 6px;
    height: 6px;
    background-color: var(--primary-teal);
    border-radius: 50%;
    margin-left: auto;
    box-shadow: 0 0 10px var(--primary-teal);
}

/* 3D Canvas Styles */
#canvas-3d-molecule {
    background: radial-gradient(circle at center, rgba(0, 245, 212, 0.12) 0%, rgba(8, 12, 22, 0.98) 75%);
    border-radius: var(--radius-md);
    cursor: grab;
}

#canvas-3d-molecule:active {
    cursor: grabbing;
}

.text-cyan {
    color: var(--primary-teal) !important;
}

/* Report Builder Form */
.report-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group select {
    width: 100%;
    height: 46px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--bg-glass-stroke);
    color: #fff;
    padding: 0 18px;
    border-radius: var(--radius-md);
    font-size: 0.94rem;
    outline: none;
    font-family: var(--font-body);
}

.report-options-checkboxes {
    display: flex;
    gap: 28px;
    margin-bottom: 28px;
    font-size: 0.94rem;
    color: var(--text-main);
}

.action-buttons-row {
    display: flex;
    gap: 18px;
}

.report-preview-content {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid var(--bg-glass-stroke);
    border-radius: var(--radius-md);
    padding: 26px;
    font-size: 0.92rem;
    color: #a7f3d0;
    white-space: pre-wrap;
    max-height: 440px;
    overflow-y: auto;
    line-height: 1.65;
}

/* App Footer */
.app-footer {
    padding: 26px 36px;
    background: rgba(8, 12, 22, 0.98);
    border-top: 1px solid var(--bg-glass-stroke);
    font-size: 0.84rem;
    color: var(--text-dark);
    margin-left: 280px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    width: 620px;
    max-width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.btn-close-modal {
    position: absolute;
    top: 22px;
    right: 22px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
}

/* Payment Modal & Form Styling */
.payment-modal-box {
    width: 540px;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(20, 28, 46, 0.98), rgba(11, 16, 29, 0.99));
    border: 1px solid var(--primary-teal);
    box-shadow: 0 0 50px rgba(0, 245, 212, 0.3);
}

.payment-header {
    margin-bottom: 24px;
}

.payment-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    margin: 8px 0 4px;
    font-weight: 800;
}

.payment-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.payment-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-glass-stroke);
}

.btn-pay-tab {
    flex: 1;
    height: 42px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-pay-tab.active {
    background: var(--primary-teal);
    color: #080c16;
    box-shadow: 0 0 12px var(--primary-glow);
}

.pay-method-content {
    display: none;
}

.pay-method-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.card-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.full-width {
    grid-column: span 2;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    color: var(--primary-teal);
}

.input-with-icon input {
    padding-left: 44px !important;
}

.pay-summary-box {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--bg-glass-stroke);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.summary-line .total-price {
    color: var(--primary-teal);
    font-size: 1.15rem;
    font-weight: 800;
}

.paypal-info-box {
    background: rgba(0, 112, 186, 0.15);
    border: 1px solid rgba(0, 112, 186, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #38bdf8;
}

.paypal-submit-btn {
    background: linear-gradient(135deg, #0070ba, #003087) !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(0, 112, 186, 0.4) !important;
}

.pay-security-note {
    font-size: 0.78rem;
    color: var(--text-dark);
    text-align: center;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ==========================================================================
   Print Document CSS (@media print for High-Res A4 B2B Fact PDF Reports)
   ========================================================================== */
@media print {
    body {
        background: #ffffff !important;
        color: #0f172a !important;
        font-family: 'Inter', 'Noto Sans KR', sans-serif !important;
    }

    .sidebar,
    .app-header,
    .section-title-bar,
    .report-form-grid,
    .report-options-checkboxes,
    .action-buttons-row,
    .card-header,
    .app-footer,
    .modal-overlay,
    .custom-3d-search-bar {
        display: none !important;
    }

    .main-content,
    .content-viewport,
    .tab-section,
    .report-builder-card,
    #report-preview-box {
        margin: 0 !important;
        padding: 0 !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
    }

    .pdf-report-document {
        background: #ffffff !important;
        color: #0f172a !important;
        border: 2px solid #0f172a !important;
        padding: 24px !important;
        box-shadow: none !important;
    }

    .pdf-report-document h2,
    .pdf-report-document h4,
    .pdf-report-document strong {
        color: #0f172a !important;
    }

    .pdf-report-document p,
    .pdf-report-document td,
    .pdf-report-document th {
        color: #334155 !important;
    }

    .pdf-report-document table {
        border: 1px solid #cbd5e1 !important;
    }

    .pdf-report-document th,
    .pdf-report-document td {
        border-bottom: 1px solid #e2e8f0 !important;
    }
}

