/* 
   PRMN AI Marketing Engine Demo - Stylesheet
   Designed with premium dark mode, glassmorphism, and high-tech medical accents.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg-main: #060913;
    --bg-gradient: radial-gradient(circle at 50% 0%, #121829 0%, #060913 100%);
    --card-bg: rgba(15, 22, 42, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(0, 229, 255, 0.3);
    
    --primary: #00E5FF;
    --primary-gradient: linear-gradient(135deg, #00E5FF 0%, #0088FF 100%);
    --secondary: #9D4EDD;
    --secondary-gradient: linear-gradient(135deg, #9D4EDD 0%, #5A189A 100%);
    --accent: #FF007F;
    --accent-gradient: linear-gradient(135deg, #FF007F 0%, #7B2CBF 100%);
    
    --success: #00FF88;
    --warning: #FF9F00;
    --danger: #FF3B30;
    
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    --sidebar-width: 260px;
    --transition-speed: 0.3s;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-main);
    background-image: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.brand-section {
    padding: 24px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    font-weight: 800;
    color: #060913;
    font-size: 18px;
}

.brand-name {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px;
    background: linear-gradient(to right, #ffffff, #00E5FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tagline {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.navigation-menu {
    flex: 1;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

.nav-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.nav-item:hover {
    color: var(--primary);
    background: rgba(0, 229, 255, 0.05);
}

.nav-item.active {
    color: #060913;
    background: var(--primary-gradient);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.35);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--secondary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
}

.user-role {
    font-size: 10px;
    color: var(--text-muted);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 30px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
    flex-direction: column;
    gap: 24px;
}

.content-section.active {
    display: flex;
}

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

/* Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-title h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(to right, #ffffff, #94A3B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    font-size: 14px;
    color: var(--text-secondary);
}

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

/* Premium Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #060913;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

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

/* Grid & Cards */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

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

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

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: border-color var(--transition-speed) ease, transform var(--transition-speed) cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
    border-color: var(--card-hover-border);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(0, 229, 255, 0.06), transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
}

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

/* KPI Card Specifics */
.kpi-card .kpi-value {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #CBD5E1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kpi-card.accent-primary .kpi-value {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

.kpi-card.accent-secondary .kpi-value {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(157, 78, 221, 0.15);
}

.kpi-card .kpi-trend {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend-up {
    color: var(--success);
}

.trend-down {
    color: var(--danger);
}

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 20px;
}

.accent-primary .kpi-icon {
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary);
}

.accent-secondary .kpi-icon {
    background: rgba(157, 78, 221, 0.1);
    color: var(--secondary);
}

/* AI Dialogue System */
.ai-workspace {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 24px;
    min-height: 580px;
}

.ai-dialog-panel {
    display: flex;
    flex-direction: column;
    height: 620px;
}

.dialog-history {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(6, 9, 19, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 16px;
}

.msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.msg-user {
    align-self: flex-end;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: #E2E8F0;
    border-bottom-right-radius: 2px;
}

.msg-ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    color: #E2E8F0;
    border-bottom-left-radius: 2px;
}

.ai-thought {
    margin-bottom: 8px;
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
    border-left: 2px solid var(--primary);
    padding: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
}

.ai-thought-header {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
    color: var(--primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-box {
    display: flex;
    gap: 10px;
    position: relative;
}

.input-box textarea {
    flex: 1;
    background: rgba(15, 22, 42, 0.8);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 12px 16px;
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 13px;
    resize: none;
    height: 48px;
    transition: border-color 0.2s;
}

.input-box textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.btn-send {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--primary-gradient);
    border: none;
    color: #060913;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s;
}

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

/* Campaign Report View */
.ai-report-panel {
    height: 620px;
    overflow-y: auto;
    padding-right: 8px;
}

.placeholder-report {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    gap: 16px;
}

.placeholder-report i {
    font-size: 64px;
    background: linear-gradient(135deg, rgba(0,229,255,0.2), rgba(157,78,221,0.2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.placeholder-report p {
    font-size: 14px;
    max-width: 280px;
    text-align: center;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.report-widget {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px;
}

.widget-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-container {
    height: 240px;
    background: rgba(6, 9, 19, 0.6);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.02);
}

/* Map Simulation */
.map-canvas-sim {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 229, 255, 0.15) 1px, transparent 1px);
    background-size: 16px 16px;
    position: relative;
}

.map-point {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulsePoint 2s infinite ease-in-out;
}

.map-point.active {
    background: var(--success);
    box-shadow: 0 0 12px var(--success);
}

@keyframes pulsePoint {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.8);
        opacity: 1;
    }
}

/* Custom Table styling */
.custom-table-container {
    width: 100%;
    overflow-x: auto;
}

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

.custom-table th {
    padding: 12px 16px;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 13px;
    color: #E2E8F0;
}

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

/* Badge tags */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.badge-primary {
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.badge-success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.badge-warning {
    background: rgba(255, 159, 0, 0.1);
    color: var(--warning);
    border: 1px solid rgba(255, 159, 0, 0.2);
}

.badge-danger {
    background: rgba(255, 59, 48, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 59, 48, 0.2);
}

/* Compare Blocks */
.compare-container {
    display: flex;
    gap: 20px;
}

.compare-block {
    flex: 1;
    border-radius: 12px;
    padding: 18px;
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.03);
}

.compare-block.vs-old {
    border-left: 3px solid var(--danger);
}

.compare-block.vs-new {
    border-left: 3px solid var(--success);
    background: rgba(0, 255, 136, 0.01);
}

.compare-title {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.compare-metric {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.vs-new .compare-metric {
    color: var(--success);
}

.vs-old .compare-metric {
    color: var(--text-secondary);
}

/* Chronic disease Calculator styling */
.calc-container {
    background: rgba(255,255,255,0.01);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.03);
}

.slider-group {
    margin-bottom: 20px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.slider-label span:last-child {
    font-weight: 700;
    color: var(--primary);
}

.slider-input {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transition: transform 0.1s;
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* LTV Cards */
.ltv-waterfall {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.ltv-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ltv-bar-name {
    width: 120px;
    font-size: 12px;
    color: var(--text-secondary);
}

.ltv-bar-container {
    flex: 1;
    height: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.ltv-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

.ltv-bar-fill.fill-lost {
    background: linear-gradient(90deg, #FF3B30, #FF7B00);
}

.ltv-bar-fill.fill-saved {
    background: linear-gradient(90deg, #00FF88, #00E5FF);
}

.ltv-bar-fill.fill-base {
    background: rgba(255,255,255,0.15);
}

.ltv-bar-val {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: 700;
}

/* Content Switcher Tabs (千人千面) */
.tab-switcher {
    display: flex;
    background: rgba(255,255,255,0.02);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 20px;
    width: fit-content;
}

.tab-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.tab-btn.active {
    background: rgba(255,255,255,0.08);
    color: #FFFFFF;
}

.campaign-visual-preview {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.03);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.preview-header {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.preview-badge {
    background: var(--primary-gradient);
    color: #060913;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.preview-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-item {
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 14px;
}

.preview-item-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-item-content {
    font-size: 13px;
    line-height: 1.5;
    color: #E2E8F0;
}

/* Quick Interactive Box */
.interactive-prompt-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.pill {
    padding: 6px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 100px;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 229, 255, 0.02);
}

/* Alert Banner Popup */
.alert-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    background: rgba(20, 25, 45, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 59, 48, 0.4);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    gap: 14px;
    z-index: 1000;
    transform: translateY(200px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.alert-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.alert-popup-icon {
    font-size: 24px;
    color: var(--danger);
}

.alert-popup-content {
    flex: 1;
}

.alert-popup-title {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.alert-popup-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 10px;
}

.alert-popup-actions {
    display: flex;
    gap: 8px;
}

/* Loading status */
.typing-loader {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    width: fit-content;
}

.typing-loader span {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* WeChat and Mobile Browser Adaptive Styles */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--card-border);
        padding-bottom: 0;
    }
    
    .brand-section {
        padding: 16px;
        justify-content: center;
        border-bottom: none;
    }
    
    .navigation-menu {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        padding: 8px 16px;
        gap: 8px;
        border-top: 1px solid var(--card-border);
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-item {
        padding: 8px 16px;
        font-size: 13px;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding: 16px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .grid-4, .grid-3, .grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .ai-workspace {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .ai-dialog-panel {
        height: 420px;
    }
    
    .ai-report-panel {
        height: auto;
        overflow: visible;
    }
    
    .compare-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .alert-popup {
        width: calc(100% - 32px);
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
    
    .campaign-visual-preview {
        min-height: auto;
    }
    
    canvas {
        max-height: 220px;
    }
}
