/* ========================================
   問紡™ Demo - CSS
   ======================================== */

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

:root {
    --deep-green: #1B4332;
    --gold: #C9A84C;
    --accent: #2D6A4F;
    --white: #FFFFFF;
    --light-gray: #F5F5F7;
    --dark-gray: #1D1D1F;
    --border-color: #E5E5E7;
    --hover-bg: #F0F0F2;
    --success: #34C759;
    --danger: #FF3B30;
}

body {
    font-family: 'Inter', 'Noto Serif JP', sans-serif;
    color: var(--dark-gray);
    background-color: var(--light-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   Header
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--deep-green), var(--accent));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Noto Serif JP', serif;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--deep-green);
    font-family: 'Noto Serif JP', serif;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.notification-btn:hover {
    background: var(--hover-bg);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: 600;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.user-menu:hover {
    background: var(--hover-bg);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--gold), #E0C56D);
    color: var(--deep-green);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
}

.user-name {
    font-weight: 500;
    color: var(--dark-gray);
}

/* ========================================
   Main Container
   ======================================== */

.main-container {
    display: flex;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

/* ========================================
   Sidebar
   ======================================== */

.sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    overflow-y: auto;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark-gray);
    transition: all 0.2s;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.nav-item:hover {
    background: var(--hover-bg);
}

.nav-item.active {
    background: var(--deep-green);
    color: var(--white);
    font-weight: 600;
}

.nav-icon {
    font-size: 1.25rem;
}

.sidebar-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1rem 0;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-back {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: var(--light-gray);
    color: var(--deep-green);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-back:hover {
    background: var(--hover-bg);
}

/* ========================================
   Content Area
   ======================================== */

.content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    max-width: 1400px;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.page-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--deep-green);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1rem;
    color: #666;
}

/* ========================================
   Stats Grid
   ======================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--deep-green), var(--accent));
    border-radius: 12px;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-green);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* ========================================
   Section
   ======================================== */

.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    color: var(--deep-green);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ========================================
   Questions Grid/List
   ======================================== */

.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.question-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    cursor: pointer;
}

.question-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.question-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--deep-green), var(--accent));
    color: var(--white);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.question-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    border-radius: 6px;
    transition: all 0.2s;
    opacity: 0.6;
}

.action-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.action-btn.favorite.active {
    opacity: 1;
}

.question-text {
    font-size: 1.1rem;
    color: var(--deep-green);
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.question-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.question-purpose {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.question-effect {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ========================================
   Category Tabs
   ======================================== */

.category-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-gray);
    transition: all 0.2s;
}

.category-tab:hover {
    border-color: var(--gold);
}

.category-tab.active {
    background: var(--deep-green);
    color: var(--white);
    border-color: var(--deep-green);
}

/* ========================================
   Search Form
   ======================================== */

.search-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--deep-green);
    margin-bottom: 0.5rem;
}

.form-select,
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gold);
    color: var(--deep-green);
}

.btn-primary:hover {
    background: #E0C56D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--deep-green);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--gold);
    background: var(--light-gray);
}

/* ========================================
   Search Results
   ======================================== */

.search-results {
    min-height: 300px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    color: #666;
    font-size: 1.1rem;
}

/* ========================================
   Charts
   ======================================== */

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.chart-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.chart-card h3 {
    font-size: 1.25rem;
    color: var(--deep-green);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* ========================================
   Top Questions
   ======================================== */

.top-questions {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.top-question-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-question-item:last-child {
    border-bottom: none;
}

.rank-badge {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold), #E0C56D);
    color: var(--deep-green);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.top-question-content {
    flex: 1;
}

.top-question-text {
    font-size: 1.05rem;
    color: var(--deep-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.top-question-count {
    font-size: 0.9rem;
    color: #666;
}

/* ========================================
   Settings
   ======================================== */

.settings-content {
    max-width: 800px;
}

.settings-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.settings-section h3 {
    font-size: 1.25rem;
    color: var(--deep-green);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    cursor: pointer;
}

.toggle-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .content {
        margin-left: 0;
        padding: 1rem;
    }

    .header {
        padding: 0 1rem;
    }

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

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

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

    .category-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .user-name {
        display: none;
    }
}

/* ========================================
   Utilities
   ======================================== */

.questions-library {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ========================================
   AI Generator
   ======================================== */

.ai-generator-form {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.form-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.form-card h3 {
    font-size: 1.5rem;
    color: var(--deep-green);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.btn-generate {
    width: 100%;
    margin-top: 1rem;
    padding: 1.25rem;
    font-size: 1.1rem;
}

.ai-results {
    margin-top: 3rem;
    animation: fadeInUp 0.5s ease;
}

.ai-results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ai-results-header h2 {
    font-size: 2rem;
    color: var(--deep-green);
    margin-bottom: 1rem;
}

.ai-analysis-summary {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.ai-loading {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.3rem;
    color: var(--deep-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.loading-subtext {
    font-size: 1rem;
    color: #666;
}

/* ========================================
   ISO 30414
   ======================================== */

.iso-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.iso-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.iso-metric-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: all 0.2s;
}

.iso-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.metric-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--deep-green), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.metric-content {
    flex: 1;
}

.metric-content h4 {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-green);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.metric-detail {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.metric-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.metric-status.compliant {
    background: rgba(52, 199, 89, 0.1);
    color: var(--success);
}

.iso-compliance-summary {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.iso-compliance-summary h3 {
    font-size: 1.5rem;
    color: var(--deep-green);
    margin-bottom: 2rem;
}

.compliance-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.compliance-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.compliance-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.compliance-percentage {
    color: var(--gold);
}

.compliance-bar {
    height: 10px;
    background: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
}

.compliance-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--deep-green), var(--gold));
    border-radius: 5px;
    transition: width 1s ease;
}

.compliance-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.05), rgba(201, 168, 76, 0.05));
    border-radius: 8px;
    font-size: 1.2rem;
}

.compliance-badge {
    padding: 0.5rem 1.5rem;
    background: var(--gold);
    color: var(--deep-green);
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
}

/* ========================================
   Integrations
   ======================================== */

.integration-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.integration-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.2s;
}

.integration-card.active {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.02), rgba(201, 168, 76, 0.05));
}

.integration-icon {
    width: 60px;
    height: 60px;
    background: var(--deep-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.integration-info {
    flex: 1;
}

.integration-info h3 {
    font-size: 1.25rem;
    color: var(--deep-green);
    margin-bottom: 0.25rem;
}

.integration-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.connected {
    background: rgba(52, 199, 89, 0.1);
    color: var(--success);
}

.status-badge.pending {
    background: rgba(201, 168, 76, 0.1);
    color: var(--gold);
}

.slack-demo-container {
    max-width: 800px;
    margin: 0 auto;
    background: #F8F8F8;
    border-radius: 12px;
    padding: 2rem;
}

.slack-message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.slack-message.bot {
    flex-direction: row;
}

.slack-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    background: var(--deep-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.message-avatar.user-avatar {
    background: var(--gold);
    color: var(--deep-green);
    font-weight: 700;
}

.message-content {
    flex: 1;
    background: var(--white);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.message-author {
    font-weight: 700;
    color: var(--deep-green);
}

.message-time {
    font-size: 0.85rem;
    color: #999;
}

.message-text {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.question-suggestions {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.suggestion-item {
    padding: 0.75rem;
    background: var(--white);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    border-left: 3px solid var(--gold);
}

.suggestion-item:last-child {
    margin-bottom: 0;
}

.message-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.slack-btn {
    padding: 0.5rem 1rem;
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.slack-btn:hover {
    background: var(--border-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.25rem;
    color: var(--deep-green);
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   Learning Dashboard
   ======================================== */

.learning-progress {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.progress-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.progress-card h3 {
    font-size: 1.25rem;
    color: var(--deep-green);
    margin-bottom: 1.5rem;
}

.progress-stat {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.stat-row strong {
    font-size: 1.5rem;
    color: var(--gold);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 18px;
    height: 18px;
    background: var(--border-color);
    border-radius: 50%;
    border: 3px solid var(--white);
}

.timeline-item.active .timeline-dot {
    background: var(--gold);
}

.timeline-item.future .timeline-dot {
    background: var(--light-gray);
}

.timeline-content strong {
    display: block;
    color: var(--deep-green);
    margin-bottom: 0.25rem;
}

.timeline-content p {
    color: #666;
    font-size: 0.95rem;
}

.patterns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pattern-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s;
}

.pattern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pattern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pattern-badge {
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--deep-green), var(--accent));
    color: var(--white);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pattern-count {
    font-size: 0.9rem;
    color: var(--gold);
    font-weight: 700;
}

.pattern-card h4 {
    font-size: 1.1rem;
    color: var(--deep-green);
    margin-bottom: 0.5rem;
}

.pattern-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* ========================================
   Beta Banner & Notices
   ======================================== */

.beta-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--deep-green), var(--accent));
    color: var(--white);
    padding: 1.5rem 2rem;
    z-index: 2000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.beta-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.beta-icon {
    font-size: 2.5rem;
}

.beta-text {
    flex: 1;
    min-width: 300px;
}

.beta-text strong {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.beta-text p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

.beta-banner .btn {
    background: var(--gold);
    color: var(--deep-green);
    white-space: nowrap;
}

.beta-banner .btn:hover {
    background: #E0C56D;
    transform: scale(1.05);
}

.beta-notice {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.05), rgba(201, 168, 76, 0.05));
    border-left: 3px solid var(--gold);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--deep-green);
    font-weight: 500;
}

.action-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.action-btn.disabled:hover {
    transform: none;
}

@media (max-width: 768px) {
    .beta-banner {
        padding: 1rem;
    }

    .beta-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .beta-text {
        min-width: 100%;
    }

    .beta-banner .btn {
        width: 100%;
    }
}
