/* Global Styling System */
:root {
    --primary: #1A2E55;
    --primary-dark: #152745;
    --secondary: #D6DEEA;
    --accent: #E9D8A6;
    --highlight: #2F4A7A;
    --bg-color: #F8FAFC;
    --hero-bg: #1A2E55;
    --wave-section-bg: #F1F5F9;
    --surface-subtle: #F8FAFC;
    --surface-border: #E2E8F0;
    --border-soft: #CBD5E1;
    --text-main: #22314f;
    --text-ink: #42526b;
    --text-soft: #5f6f86;
    --text-muted: #7a8699;
    --success: #27ae60;
    --danger: #dc3545;
    --warning: #ffc107;
    --success-bg: #f0fff4;
    --success-border: #c3e6cb;
    --warning-bg: #fff8e1;
    --warning-border: #ffd54f;
    --text-color: #1f2937;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #888;
    --gray-dark: #333;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* --- Title Gradient System (2 fixed standards) --- */
.cb-title-gradient-light,
.highlight,
.upgrade-header h1 {
    color: var(--primary);
    background: linear-gradient(120deg, var(--primary), var(--highlight));
}

.cb-title-gradient-dark,
.hero-highlight {
    color: #F8FBFF;
    background: linear-gradient(120deg, #FFFFFF 0%, #EEF3FA 55%, #E9D8A6 100%);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .cb-title-gradient-light,
    .cb-title-gradient-dark,
    .highlight,
    .upgrade-header h1,
    .hero-highlight {
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

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

html {
    color-scheme: light;
}

body {
    background-color: var(--bg-color);
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hidden {
    display: none !important;
}

/* --- Shared Layout Utilities (Round 3) --- */
.cb-page-center {
    padding: 140px 20px 80px;
    display: flex;
    justify-content: center;
}

.cb-status-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cb-status-icon-md {
    font-size: 2rem;
    margin-bottom: 16px;
}

.cb-status-icon-lg {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cb-status-title {
    color: var(--text-main);
    margin-bottom: 8px;
}

.cb-status-title-success {
    color: var(--success);
    margin-bottom: 8px;
}

/* --- Header User Menu --- */
.cb-user-menu-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cb-user-menu-trigger {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.cb-user-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: #fff;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(26, 46, 85, 0.12);
    display: flex;
    flex-direction: column;
    min-width: 160px;
    z-index: 30;
    padding: 6px;
}

.cb-user-menu button {
    border: none;
    background: transparent;
    text-align: left;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
}

.cb-user-menu button:hover {
    background: var(--surface-subtle);
}

/* --- User Dashboard (H5) --- */
.cb-user-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.cb-udb-hero {
    background: linear-gradient(135deg, rgba(26, 46, 85, 0.12), rgba(47, 74, 122, 0.04));
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 28px 32px;
}

.cb-udb-hero-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.cb-udb-hero-subtitle {
    color: var(--text-soft);
    margin-bottom: 12px;
}

.cb-udb-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--text-muted);
}

.cb-udb-section {
    background: var(--white);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 26px 32px;
    box-shadow: 0 12px 28px rgba(26, 46, 85, 0.06);
}

.cb-udb-section h2 {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 18px;
}

.cb-udb-block + .cb-udb-block {
    margin-top: 22px;
}

.cb-udb-block h3 {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.cb-udb-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 10px;
}

.cb-udb-list li {
    background: var(--surface-subtle);
    border: 1px solid var(--surface-border);
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--text-ink);
}

.cb-udb-list-compact li {
    background: transparent;
    border: none;
    padding: 4px 0;
}

.cb-udb-table-wrap {
    overflow-x: auto;
}

.cb-udb-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    overflow: hidden;
}

.cb-udb-table th,
.cb-udb-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--surface-border);
    text-align: left;
    font-size: 14px;
}

.cb-udb-table th {
    background: var(--surface-subtle);
    color: var(--text-main);
}

.cb-udb-loading,
.cb-udb-error {
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid var(--surface-border);
    background: #fff;
    color: var(--text-ink);
    display: flex;
    align-items: center;
    gap: 12px;
}

.cb-udb-error {
    border-color: rgba(220, 53, 69, 0.2);
    background: #fff5f5;
    color: var(--danger);
}

@media (max-width: 768px) {
    .cb-user-dashboard {
        padding: 100px 16px 60px;
    }

    .cb-udb-section,
    .cb-udb-hero {
        padding: 20px;
    }

    .cb-udb-hero-title {
        font-size: 24px;
    }
}

.cb-status-title-error {
    color: var(--primary);
    margin-bottom: 8px;
}

.cb-status-text-muted {
    color: var(--text-muted);
}

.cb-status-text-soft {
    color: var(--text-soft);
    margin-bottom: 24px;
}

.cb-btn-center-200 {
    max-width: 200px;
    margin: 0 auto;
}

.cb-btn-center-240 {
    max-width: 240px;
    margin: 0 auto;
}

.cb-dialog-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cb-dialog-title {
    margin: 0 0 8px;
    color: var(--text-main);
}

.cb-dialog-subtitle {
    color: var(--text-muted);
    margin: 0 0 20px;
    font-size: 0.9rem;
}

.cb-dialog-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.cb-dialog-primary-btn {
    width: 100%;
    padding: 12px;
    background: var(--hero-bg);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.cb-dialog-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 8px;
}

.cb-dialog-status {
    color: var(--text-muted);
    font-size: 0.85rem;
    min-height: 1.2em;
}

/* --- Group Dashboard Utilities (Round 4) --- */
.cb-text-muted {
    color: var(--text-muted);
}

.cb-error-text {
    color: var(--danger);
}

.cb-section-title-sm {
    margin: 0 0 16px;
    font-size: 1rem;
}

.cb-row-between-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cb-row-gap-8 {
    display: flex;
    gap: 8px;
}

.cb-row-gap-12-wrap {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

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

.cb-kpi-card {
    background: var(--surface-subtle);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.cb-kpi-value-lg {
    font-size: 2rem;
    font-weight: 700;
}

.cb-kpi-value-md {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.cb-kpi-value-hero {
    color: var(--hero-bg);
}

.cb-kpi-value-success {
    color: var(--success);
}

.cb-kpi-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.cb-kpi-progress-track {
    background: var(--surface-border);
    border-radius: 4px;
    height: 6px;
    margin-top: 8px;
}

.cb-kpi-progress-fill {
    background: var(--hero-bg);
    border-radius: 4px;
    height: 6px;
}

.cb-actions-card {
    background: var(--surface-subtle);
    border-radius: 12px;
    padding: 20px;
}

.cb-actions-title {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--text-main);
}

.cb-btn-sm {
    padding: 6px 16px;
    font-size: 0.8rem;
}

.cb-btn-md {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.cb-btn-success {
    background: var(--success) !important;
}

.cb-table-wrap {
    overflow-x: auto;
}

.cb-table-sm {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.cb-table-head-row {
    background: var(--surface-subtle);
    text-align: left;
}

.cb-th-sm {
    padding: 10px 12px;
    border-bottom: 2px solid var(--border-soft);
}

.cb-tr-divider {
    border-bottom: 1px solid var(--border-soft);
}

.cb-td-sm {
    padding: 10px 12px;
}

.cb-td-xs {
    padding: 8px 12px;
}

.cb-td-muted {
    color: var(--text-muted);
}

.cb-td-right-strong {
    padding: 8px 12px;
    text-align: right;
    font-weight: 600;
}

.cb-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.cb-badge-admin {
    background: var(--hero-bg);
    color: #fff;
}

.cb-badge-member {
    background: var(--surface-border);
}

.cb-danger-btn-xs {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
}

.cb-report-title {
    margin: 16px 0 8px;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.cb-report-legend {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-soft);
    margin-bottom: 20px;
}

.cb-settings-block {
    margin-bottom: 20px;
}

.cb-settings-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-bottom: 4px;
}

.cb-settings-row {
    display: flex;
    gap: 8px;
}

.cb-settings-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    font-size: 0.9rem;
}

.cb-settings-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.cb-settings-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
}

.cb-help-text {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.cb-settings-label-inline {
    margin: 0;
}

.cb-link-hero {
    color: var(--hero-bg);
}

.cb-grid-kpi-compact {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.cb-kpi-card-compact {
    border-radius: 10px;
    padding: 16px;
}

.cb-kpi-value-report {
    font-size: 1.8rem;
}

.cb-kpi-label-report {
    font-size: 0.8rem;
}

.cb-cpla-bars {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.cb-cpla-bar {
    height: 24px;
    border-radius: 4px;
    min-width: 2px;
}

.cb-cpla-c {
    background: var(--hero-bg);
}

.cb-cpla-p {
    background: var(--primary);
}

.cb-cpla-l {
    background: var(--success);
}

.cb-cpla-a {
    background: var(--warning);
}

.cb-status-pill {
    font-weight: 600;
}

.cb-status-pill-success {
    color: var(--success);
}

.cb-status-pill-warning {
    color: var(--warning);
}

.cb-status-pill-muted {
    color: var(--text-muted);
}

.cb-checkout-item-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.cb-checkout-help {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.cb-text-left {
    text-align: left;
}

.cb-text-right {
    text-align: right;
}

/* --- Group Shell + Upgrade Utilities (Round 5) --- */
.cb-group-page {
    padding: 120px 20px 80px;
    max-width: 960px;
    margin: 0 auto;
}

.cb-group-shell {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.cb-group-header {
    background: linear-gradient(135deg, var(--hero-bg), var(--primary));
    padding: 24px 32px;
    color: #fff;
}

.cb-group-title {
    margin: 0;
    font-size: 1.4rem;
}

.cb-group-subtitle {
    margin: 4px 0 0;
    opacity: 0.85;
    font-size: 0.85rem;
}

.cb-group-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-soft);
    background: var(--surface-subtle);
    overflow-x: auto;
}

.cb-group-content {
    padding: 24px 32px;
    min-height: 300px;
}

.upgrade-page-wrapper {
    padding: 120px 20px 80px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--bg-color);
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--secondary) 100%);
}

.upgrade-current-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.upgrade-section-title {
    font-size: 1.1rem;
    color: var(--text-ink);
    margin: 30px 0 15px;
    font-weight: 600;
}

.upgrade-section-title-group {
    margin-top: 50px;
}

.upgrade-section-title-topup {
    margin-top: 40px;
}

.upgrade-section-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: center;
}

.upgrade-section-desc-left {
    margin-bottom: 15px;
    text-align: left;
}

.upgrade-group-wrap {
    display: flex;
    justify-content: center;
}

.upgrade-group-card {
    max-width: 600px;
    width: 100%;
}

.plan-period {
    font-size: 0.5em;
    color: var(--text-muted);
}

.plan-annual-note {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.plan-current-disabled {
    opacity: 0.6;
}

.group-seat-config {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--secondary);
}

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

.group-seat-select {
    margin: 0 0 12px 0;
    padding: 10px 14px;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    background: #F6F9FD;
}

.group-total-box {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #EEF3FA 0%, #F6F9FD 100%);
    border-radius: 8px;
    border: 1px solid var(--secondary);
}

.topup-custom-unit {
    font-weight: 600;
    color: var(--text-soft);
}

.topup-rate-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 5px;
}

.upgrade-btn-top-margin {
    margin-top: 16px;
}

.upgrade-btn-top-margin-lg {
    margin-top: 20px;
}

.payment-title-inline {
    font-size: 16px;
    color: var(--text-ink);
    margin-bottom: 10px;
    font-weight: 600;
}

.payment-note-inline {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* --- Progress / Upload / Profile Utilities (Round 6) --- */
.cb-progress-container {
    margin-top: 25px;
    text-align: center;
}

.cb-progress-track {
    width: 100%;
    height: 12px;
    background: var(--border-soft);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.cb-progress-fill {
    height: 100%;
    width: 5%;
    background: linear-gradient(90deg, var(--primary), var(--highlight));
    border-radius: 10px;
    transition: width 0.4s ease-out;
}

.cb-progress-status {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.cb-progress-percent {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 8px;
}

.cb-report-result {
    margin-top: 25px;
    border-top: 2px solid var(--border-soft);
    padding-top: 20px;
}

.cb-report-ready-title {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.cb-preview-card {
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.cb-preview-iframe {
    border: none;
}

.cb-download-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
}

.cb-login-hero {
    padding-top: 160px;
}

.cb-login-title {
    font-family: var(--font-serif);
    margin-bottom: 20px;
}

.cb-center-row {
    display: flex;
    justify-content: center;
}

.cb-mt-20 {
    margin-top: 20px;
}

.cb-dash-title {
    font-family: var(--font-serif);
    color: var(--primary);
    font-size: 1.5rem;
}

.cb-dash-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cb-upload-hint {
    font-weight: 600;
    color: var(--text-soft);
}

.cb-analyzing-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cb-empty-history {
    text-align: center;
    color: var(--text-muted);
    margin-top: 20px;
}

.cb-history-title {
    font-weight: 600;
    color: var(--text-main);
}

.cb-history-credit {
    font-weight: 700;
    color: var(--primary);
}

.cb-subinfo {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cb-subinfo-active {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
}

.cb-subinfo-free {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
}

.cb-subinfo-label {
    font-weight: 600;
    color: var(--success);
}

.cb-subinfo-credits {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 8px;
}

.cb-subinfo-free-text {
    color: var(--text-soft);
}

.cb-subinfo-btn {
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

.cb-subinfo-btn-danger {
    background: var(--danger);
}

.cb-subinfo-btn-primary {
    background: var(--primary);
}

.cb-modal-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.cb-modal-name {
    margin: 0;
}

.cb-modal-email {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.cb-modal-spacer {
    flex-grow: 1;
}

.cb-signout-btn {
    padding: 6px 16px;
    font-size: 0.85rem;
    background: var(--text-soft);
}

.cb-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.cb-dialog-subtitle-spaced {
    margin: 0 0 24px;
}

.cb-subscribe-summary {
    background: var(--success-bg);
    border: 2px solid var(--success);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.cb-subscribe-total {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--success);
}

.cb-subscribe-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.cb-dialog-primary-btn-brand {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.cb-dialog-status-spaced {
    margin-top: 8px;
}

.cb-dialog-close-btn-tight {
    margin-top: 4px;
}

.cb-billing-grid {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.cb-billing-option {
    flex: 1;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.cb-billing-option-monthly {
    border: 2px solid var(--primary);
    background: #fff;
}

.cb-billing-option-yearly {
    border: 2px solid var(--highlight);
    background: linear-gradient(160deg, #f4f7fc 0%, #e9eff8 100%);
    position: relative;
    box-shadow: 0 8px 20px rgba(26, 46, 85, 0.12);
}

.cb-billing-save-badge {
    position: absolute;
    top: -10px;
    right: 8px;
    background: var(--accent);
    color: var(--primary);
    border: 1px solid rgba(26, 46, 85, 0.16);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 700;
}

.cb-billing-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

.cb-billing-price {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 8px 0;
}

.cb-billing-price-primary {
    color: var(--primary);
}

.cb-billing-price-success {
    color: var(--highlight);
}

.cb-billing-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Navigation & Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--secondary);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(14px, 4vw, 64px);
}

.logo {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.4vw, 16px);
    min-width: 0;
}

.nav-btn {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cb-group-nav-link {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

.cb-clickable {
    cursor: pointer;
}

.cb-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

.nav-btn:hover {
    background-color: var(--highlight);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 46, 85, 0.2);
}

.lang-switcher {
    position: relative;
}

.lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-main);
    background: #fff;
    border: 1px solid var(--secondary);
    border-radius: 999px;
    padding: 5px 12px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lang-switcher-btn:hover {
    border-color: var(--primary);
    background: rgba(26, 46, 85, 0.04);
}

.lang-switcher-caret {
    font-size: 0.72rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.lang-switcher.open .lang-switcher-caret {
    transform: rotate(180deg);
}

.lang-switcher-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 124px;
    padding: 6px;
    border: 1px solid var(--secondary);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(26, 46, 85, 0.12);
    display: none;
    z-index: 10020;
}

.lang-switcher.open .lang-switcher-menu {
    display: block;
}

.lang-switcher-option {
    display: block;
    font-size: 0.82rem;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    padding: 7px 10px;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.lang-switcher-option:hover {
    background: rgba(26, 46, 85, 0.08);
    color: var(--primary-dark);
}

.lang-switcher-option.active {
    background: rgba(26, 46, 85, 0.12);
    color: var(--primary-dark);
    font-weight: 700;
}

/* --- Hero Section --- */
.hero {
    padding: 140px 20px 80px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--primary);
    text-decoration: none;
}

.hero p {
    font-size: 1.25rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

/* --- Feature Grid --- */
.features {
    background-color: #fff;
    padding: 80px 5%;
    border-top: 1px dashed var(--secondary);
    border-bottom: 1px dashed var(--secondary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--highlight));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(26, 46, 85, 0.15);
    border-color: var(--primary);
}

/* Feature Card Enhancements */
.feature-card {
    padding: 2rem;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.problem-section,
.solution-section {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.problem-section {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF5D6 100%);
}

.solution-section {
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
}

.section-label {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.problem-section .section-label {
    color: #D97706;
}

.solution-section .section-label {
    color: #059669;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

.feature-card strong {
    color: var(--gray-dark);
    font-weight: 600;
}

.highlight {
    font-weight: 700;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--highlight));
    opacity: 0.3;
}

/* --- Dashboard Card --- */
.dashboard-container {
    padding: 100px 16px 0;
}

.dashboard-card {
    width: min(100%, 680px);
    max-width: 680px;
    margin: 24px auto 40px;
    background: white;
    padding: clamp(22px, 2.2vw, 32px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--secondary);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    text-align: left;
}

.credit-badge {
    background: #F8FAFC;
    border: 1px solid #D6DEEA;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.upload-area {
    margin: 30px 0;
    padding: 30px;
    background: rgba(26, 46, 85, 0.03);
    border-radius: 16px;
    border: 2px dashed #D6DEEA;
    cursor: pointer;
    transition: background 0.2s;
}

.upload-area:hover {
    background: rgba(26, 46, 85, 0.06);
}

.cb-cpla-entry-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #d6deea;
    background: linear-gradient(135deg, #f7f9fd 0%, #eef3fa 100%);
}

.cb-cpla-entry-card h3 {
    font-size: 1rem;
    color: #1A2E55;
    margin-bottom: 4px;
}

.cb-cpla-entry-card p {
    margin: 0;
    color: #5f6f86;
    font-size: 0.88rem;
}

.cb-cpla-entry-btn {
    white-space: nowrap;
}

.cpla-report-page {
    padding: 110px 20px 70px;
}

.cpla-report-shell {
    max-width: 1080px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #dfe6f2;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(26, 46, 85, 0.08);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cpla-report-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6edf8;
}

.cpla-report-top h1 {
    margin: 0 0 6px;
    color: #1A2E55;
    font-size: 2rem;
}

.cpla-report-top p {
    margin: 0;
    color: #5f6f86;
}

.cpla-section {
    padding: 16px 18px;
    border: 1px solid #e6edf8;
    border-radius: 14px;
    background: #fbfcff;
}

.cpla-section h2 {
    margin: 0 0 14px;
    color: #1A2E55;
    font-size: 1.2rem;
}

.cpla-grid {
    display: grid;
    gap: 12px;
}

.cpla-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cpla-grid.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cpla-grid.four-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cpla-field {
    background: #f4f7fd;
    border: 1px solid #dce5f3;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cpla-field span {
    color: #6c7c95;
    font-size: 0.8rem;
}

.cpla-field strong {
    color: #203050;
    font-size: 0.95rem;
}

.cpla-pill {
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid transparent;
}

.cpla-pill span {
    font-size: 1.1rem;
    font-weight: 700;
}

.cpla-pill small {
    font-size: 0.78rem;
    color: #5f6f86;
}

.cpla-pill strong {
    font-size: 1.05rem;
    color: #1A2E55;
}

.cpla-pill.c { background: #eef5ff; border-color: #cfe0ff; }
.cpla-pill.p { background: #f2f8ef; border-color: #d6ead1; }
.cpla-pill.l { background: #fff7eb; border-color: #f6dfbf; }
.cpla-pill.a { background: #f8f2ff; border-color: #e6d7ff; }

.cpla-severity {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cpla-severity span {
    color: #5f6f86;
    font-size: 0.9rem;
}

.cpla-severity-bar {
    flex: 1;
    height: 10px;
    border-radius: 999px;
    background: #e8eef9;
    overflow: hidden;
}

.cpla-severity-bar > div {
    height: 100%;
    background: linear-gradient(90deg, #1A2E55, #2F4A7A);
}

.cpla-severity strong {
    color: #1A2E55;
    font-size: 0.9rem;
}

.cpla-steps {
    margin: 0;
    padding-left: 20px;
    color: #2f3f5d;
    line-height: 1.8;
}

.cpla-drill {
    background: #f6f9ff;
    border: 1px solid #dce6f5;
    border-radius: 10px;
    padding: 12px;
}

.cpla-drill h3 {
    margin: 0 0 6px;
    color: #1A2E55;
    font-size: 1rem;
}

.cpla-drill p {
    margin: 0;
    color: #5f6f86;
    font-size: 0.9rem;
}

.cb-report-shell {
    max-width: 1120px;
}

.cb-report-section {
    background: linear-gradient(180deg, #fcfdff 0%, #f6f9ff 100%);
}

.cb-report-scoreboard .cb-report-score {
    background: #f7faff;
}

.cb-report-score small {
    color: #60718a;
    font-size: 0.78rem;
}

.cb-report-mood {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px dashed #cdd9ec;
    color: #334863;
    background: #f8fbff;
}

.cb-report-cpla-wrap {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 16px;
    align-items: center;
}

.cb-report-donut {
    width: 170px;
    height: 170px;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(var(--report-donut));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(26, 46, 85, 0.05);
}

.cb-report-donut-center {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #dce7f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A2E55;
    font-size: 1.35rem;
    font-weight: 700;
}

.cb-report-cpla-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cb-report-cpla-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #dce6f5;
    border-radius: 10px;
    padding: 8px 10px;
}

.cb-report-cpla-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2a3f61;
}

.cb-report-cpla-tag {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.cb-report-cpla-tag.c { background: #3b82f6; }
.cb-report-cpla-tag.p { background: #22c55e; }
.cb-report-cpla-tag.l { background: #f59e0b; }
.cb-report-cpla-tag.a { background: #8b5cf6; }

.cb-report-cpla-right {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #526884;
}

.cb-report-cpla-right b {
    color: #1A2E55;
}

.cb-report-warning {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #f4d39a;
    background: #fff6e6;
    color: #8a5b06;
    font-weight: 600;
}

.cb-report-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cb-report-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #dce6f5;
    color: #2f4668;
}

.cb-report-list li em {
    color: #6a7f99;
    font-style: normal;
    font-size: 0.83rem;
    margin-left: auto;
}

.cb-report-disclaimer {
    margin: 10px 0 0;
    color: #60718a;
    font-size: 0.84rem;
}

@media (max-width: 1024px) {
    .cb-report-cpla-wrap {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .cb-report-scoreboard {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .cb-report-scoreboard {
        grid-template-columns: 1fr !important;
    }

    .cb-report-list li {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- Legal Content --- */
.legal-container {
    padding: 120px 8% 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.legal-content {
    max-width: 100%;
    line-height: 1.8;
}

.legal-content h2 {
    font-family: var(--font-serif);
    margin: 2rem 0 1rem;
    color: var(--primary);
    font-size: 1.8rem;
}

.legal-content h3 {
    font-family: var(--font-serif);
    margin: 1.5rem 0 0.8rem;
    color: var(--gray-dark);
    font-size: 1.3rem;
}

.legal-content h4 {
    margin: 1.2rem 0 0.6rem;
    color: var(--gray-dark);
    font-size: 1.1rem;
}

.legal-content p,
.legal-content li {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #444;
}

.legal-content ul,
.legal-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content strong {
    color: var(--gray-dark);
    font-weight: 700;
}

.legal-content div[style*="margin-top"] {
    margin-top: 2rem;
}

/* --- Footer --- */
footer {
    background-color: #FAFAFA;
    padding: 60px 20px 40px;
    border-top: 1px solid var(--secondary);
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

.footer-links {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
}

.footer-links a {
    margin: 0;
    color: #666;
    text-decoration: none;
}

/* --- Touch Target Baseline --- */
.nav-btn,
.btn-primary,
.btn-secondary,
.select-btn,
.lang-switcher-btn,
.group-tab,
.cb-cpla-entry-btn {
    min-height: 44px;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    min-height: 44px;
}

/* --- Utility --- */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    width: 100%;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 10001;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
    }

    to {
        transform: translate(-50%, 0);
    }
}

/* --- Profile Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10002;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: scaleIn 0.2s ease;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--secondary);
    display: flex;
    align-items: center;
    gap: 16px;
    background: #F8FAFC;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.modal-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.modal-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.history-list {
    list-style: none;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.history-meta {
    font-size: 0.85rem;
    color: var(--gray-medium);
}

.history-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Upgrade Page Styles --- */

/* ===== UPGRADE PAGE CONTAINER - Material Design 3 ===== */
.upgrade-container {
    background: #FFFFFF;
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(60, 64, 67, 0.08), 0 8px 24px rgba(60, 64, 67, 0.05);
    width: 100%;
    max-width: 1400px;
    text-align: center;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upgrade-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.upgrade-header p {
    color: #5F6368;
    margin-bottom: 16px;
    font-size: 17px;
    line-height: 1.6;
    font-weight: 400;
}

.upgrade-header p:last-of-type {
    margin-bottom: 48px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #EEF3FA 0%, #F6F9FD 100%);
    border-radius: 12px;
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid #D6DEEA;
}

.upgrade-header p:last-of-type strong {
    color: #1A2E55;
    font-weight: 700;
}

/* Section Titles - 更現代的樣式 */
.upgrade-container h2 {
    font-size: 28px;
    font-weight: 700;
    color: #202124;
    margin: 56px 0 32px;
    letter-spacing: -0.5px;
    text-align: left;
    position: relative;
    padding-left: 20px;
}

.upgrade-container h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #1A2E55, #2F4A7A);
    border-radius: 2px;
}

/* ===== PRICING GRID - Material Design 3 升級版 ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ===== GROUP PLAN CARD - Enhanced Premium Style ===== */
.group-plan-card {
    border: 3px solid #1A2E55;
    background: linear-gradient(135deg, #F6F9FD 0%, #FFFFFF 50%, #F6F9FD 100%);
    box-shadow: 0 12px 32px rgba(26, 46, 85, 0.2), 0 6px 16px rgba(26, 46, 85, 0.15);
    position: relative;
    overflow: visible;
}

.group-plan-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 18px;
    padding: 3px;
    background: linear-gradient(135deg, #1A2E55, #2F4A7A, #1A2E55);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.4;
    z-index: -1;
    animation: none;
}

@keyframes rotateBorder {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }
}

.group-plan-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(26, 46, 85, 0.3), 0 10px 20px rgba(26, 46, 85, 0.2);
    border-color: #243B6A;
}

.group-plan-card .tier-name {
    font-size: 16px;
    color: #1A2E55;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.group-plan-card .price {
    font-size: 42px;
    color: #1A2E55;
}

.group-plan-card .credits-count {
    color: #243B6A;
    font-size: 14px;
    font-weight: 600;
}

.group-plan-card .features li::before {
    color: #1A2E55;
    font-size: 16px;
}

/* ===== PRICING CARD - 全新 Material Design 3 風格 + Glassmorphism ===== */
.pricing-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(232, 234, 237, 0.5);
    border-radius: 20px;
    padding: 32px 28px 28px;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 12px rgba(60, 64, 67, 0.04);
    overflow: visible;
}

.pricing-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, transparent 0%, rgba(26, 46, 85, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(60, 64, 67, 0.12), 0 8px 16px rgba(60, 64, 67, 0.08);
    border-color: rgba(26, 46, 85, 0.6);
}

.pricing-card:hover::after {
    opacity: 1;
}

/* --- 父容器 hover 策略：當網格被 hover 時，降低默認高亮 --- */
.pricing-grid:hover .pricing-card.popular {
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08), 0 1px 2px rgba(60, 64, 67, 0.12);
}

/* Current Plan: gentle fade when sibling hovered, aligned to brand blue-gray */
.pricing-grid:hover .pricing-card.current-plan {
    box-shadow: 0 3px 10px rgba(47, 74, 122, 0.16), 0 1px 4px rgba(26, 46, 85, 0.1);
}

/* --- 被 hover 的卡片：提升為視覺焦點 --- */
.pricing-grid:hover .pricing-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 32px rgba(60, 64, 67, 0.2), 0 6px 12px rgba(60, 64, 67, 0.15);
    border-color: #1A2E55;
    z-index: 10;
}

/* Current Plan: override grid-hover with branded elevation */
.pricing-grid:hover .pricing-card.current-plan:hover {
    border-color: #2F4A7A;
    box-shadow: 0 16px 40px rgba(47, 74, 122, 0.26), 0 8px 16px rgba(26, 46, 85, 0.16);
    z-index: 10;
}

/* --- Popular 卡片：使用 Google 藍色主題 + 強化視覺層次 --- */
.pricing-card.popular {
    border: 3px solid #1A2E55;
    background: linear-gradient(135deg, #F6F9FD 0%, #FFFFFF 50%, #F6F9FD 100%);
    box-shadow: 0 8px 20px rgba(26, 46, 85, 0.2), 0 4px 10px rgba(26, 46, 85, 0.15);
    transform: scale(1.08);
    z-index: 5;
    position: relative;
}

.pricing-card.popular::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, #1A2E55, #2F4A7A, #1A2E55);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    z-index: -1;
}

.pricing-card.popular:hover {
    transform: translateY(-12px) scale(1.10) !important;
    box-shadow: 0 20px 50px rgba(26, 46, 85, 0.3), 0 10px 20px rgba(26, 46, 85, 0.2) !important;
    border-color: #243B6A;
}

.pricing-grid:hover .pricing-card.popular:hover {
    border-color: #243B6A;
    box-shadow: 0 16px 40px rgba(26, 46, 85, 0.25), 0 8px 16px rgba(26, 46, 85, 0.15);
}

.pricing-card.selected {
    border-color: #1A2E55;
    background: #F6F9FD;
    box-shadow: 0 4px 12px rgba(26, 46, 85, 0.12);
}

/* --- Current Plan: brand-coherent blue-gray (no green status look) --- */
.pricing-card.current-plan {
    border: 2px solid #6F86AB;
    background: linear-gradient(135deg, #F1F5FB 0%, #FFFFFF 100%);
    box-shadow: 0 6px 16px rgba(47, 74, 122, 0.16), 0 2px 8px rgba(26, 46, 85, 0.1);
}

.pricing-card.current-plan::after {
    content: 'Current Plan';
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #2F4A7A 0%, #3F5B8F 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 8px rgba(26, 46, 85, 0.28);
    /* Keep badge stable — override generic ::after hover */
    inset: auto;
    pointer-events: none;
    opacity: 1;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Current Plan: dedicated hover in same brand palette */
.pricing-card.current-plan:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #2F4A7A;
    box-shadow: 0 14px 34px rgba(47, 74, 122, 0.24), 0 6px 12px rgba(26, 46, 85, 0.14);
    background: linear-gradient(135deg, #EAF0FA 0%, #FFFFFF 100%);
}

/* Current Plan badge: subtle emphasis on card hover */
.pricing-card.current-plan:hover::after {
    background: linear-gradient(135deg, #243B6A 0%, #2F4A7A 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(26, 46, 85, 0.32);
    opacity: 1;
}

/* Current Plan: subtle brand glow on hover via ::before */
.pricing-card.current-plan::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(47, 74, 122, 0.14), rgba(111, 134, 171, 0.08));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.pricing-card.current-plan:hover::before {
    opacity: 1;
    animation: currentPlanPulse 2s ease-in-out infinite;
}

@keyframes currentPlanPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.pricing-card.current-plan .features li::before {
    color: #2F4A7A;
}

/* --- Popular Badge：Material Design 3 風格 + 強化版 --- */
.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1A2E55 0%, #243B6A 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 6px 12px rgba(26, 46, 85, 0.4), 0 3px 6px rgba(26, 46, 85, 0.3);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.05);
    }
}

/* ===== TYPOGRAPHY - Google Sans 風格 ===== */
.tier-name {
    font-size: 13px;
    font-weight: 500;
    color: #5F6368;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.price {
    font-size: 36px;
    font-weight: 700;
    color: #202124;
    margin-bottom: 8px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.credits-count {
    color: #1A2E55;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.4;
}

/* ===== FEATURES LIST - 改進可讀性 ===== */
.features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
    font-size: 13px;
    color: #5F6368;
    line-height: 1.6;
    flex-grow: 1;
}

.features li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-left: 4px;
}

.features li::before {
    content: "✓";
    color: #34A853;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-card.popular .features li::before {
    color: #1A2E55;
}

/* ===== BUTTONS - Material Design 3 ===== */
.select-btn {
    background: linear-gradient(135deg, #1A2E55 0%, #243B6A 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    width: 100%;
    margin-top: auto;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(26, 46, 85, 0.3), 0 1px 3px rgba(26, 46, 85, 0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 12px;
}

.select-btn:hover {
    background: linear-gradient(135deg, #243B6A 0%, #0D47A1 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(26, 46, 85, 0.4), 0 3px 8px rgba(26, 46, 85, 0.3);
}

.select-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(26, 46, 85, 0.3);
}

/* --- Secondary Button (for current plan) --- */
.select-btn:disabled,
.select-btn.secondary {
    background: #F1F3F4;
    color: #5F6368;
    box-shadow: none;
    cursor: not-allowed;
}

.select-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ===== CUSTOM AMOUNT SECTION - Material Design 3 ===== */
.custom-area {
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    padding: 32px 28px;
    border-radius: 16px;
    border: 2px dashed #DADCE0;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
}

.custom-area:hover {
    border-color: #1A2E55;
    background: linear-gradient(135deg, #FFFFFF 0%, #F6F9FD 100%);
    box-shadow: 0 4px 12px rgba(26, 46, 85, 0.1);
}

.custom-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #202124;
    letter-spacing: 0.2px;
    text-align: center;
}

.custom-input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.custom-input-group input {
    width: 120px;
    padding: 14px 16px;
    border: 2px solid #E8EAED;
    border-radius: 12px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #202124;
    background: #FFFFFF;
    transition: all 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.1);
}

.custom-input-group input:hover {
    border-color: #1A2E55;
    box-shadow: 0 2px 6px rgba(26, 46, 85, 0.15);
}

.custom-input-group input:focus {
    outline: none;
    border-color: #1A2E55;
    box-shadow: 0 0 0 3px rgba(26, 46, 85, 0.12), 0 2px 6px rgba(26, 46, 85, 0.15);
}

.custom-price-display {
    font-size: 15px;
    color: #5F6368;
    text-align: center;
    font-weight: 500;
}

.total-amount {
    color: #1A2E55;
    font-weight: 700;
    font-size: 24px;
    display: inline-block;
    margin: 0 4px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
}

.total-amount::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1A2E55, transparent);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.custom-area:hover .total-amount {
    transform: scale(1.05);
}

.custom-area:hover .total-amount::after {
    opacity: 1;
}

/* Payment Methods - Material Design 3 升級版 */
.payment-methods-section {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 2px solid #E8EAED;
}

.payment-methods-section h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #202124 !important;
    margin-bottom: 16px !important;
    letter-spacing: -0.3px !important;
}

.payment-icons-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 8px;
}

.pay-icon {
    width: 90px;
    height: 56px;
    background: #FFFFFF;
    border: 2px solid #E8EAED;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
    position: relative;
    overflow: hidden;
}

.pay-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 46, 85, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.pay-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: grayscale(30%);
    transition: filter 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.pay-icon:hover {
    border-color: #1A2E55;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 16px rgba(26, 46, 85, 0.15), 0 3px 8px rgba(60, 64, 67, 0.1);
}

.pay-icon:hover::before {
    opacity: 1;
}

.pay-icon:hover img {
    filter: grayscale(0%);
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: #999;
    text-decoration: none;
    font-size: 13px;
}

.back-link:hover {
    color: #1A2E55;
}

#paypal-button-container {
    max-width: 500px;
    margin: 20px auto 0;
    width: 100%;
}

#payment-status {
    text-align: center;
    width: 100%;
    margin-top: 15px;
}

.pricing-card {
    cursor: pointer;
    user-select: none;
}

.pricing-card .select-btn {
    pointer-events: auto;
}

/* --- Checkout Page --- */
.checkout-container {
    max-width: 600px;
    margin: 60px auto;
    padding: 0 20px;
    animation: fadeIn 0.5s ease-out;
}

.order-summary-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.order-summary-card h2 {
    font-family: var(--font-serif);
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 2rem;
}

.order-details-table {
    width: 100%;
    margin-bottom: 30px;
    border-collapse: collapse;
}

.order-details-table td {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    font-size: 1.05rem;
}

.order-details-table .label {
    color: #888;
    font-weight: 400;
}

.order-details-table .value {
    color: var(--primary);
    font-weight: 600;
    text-align: right;
}

.total-row td {
    border-bottom: none;
    padding-top: 25px;
    font-size: 1.4rem !important;
}

.total-row .value {
    color: var(--secondary);
    font-weight: 700;
}

#checkout-paypal-container {
    margin-top: 30px;
    min-height: 150px;
}

.checkout-back-link {
    display: inline-block;
    margin-top: 30px;
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.checkout-back-link:hover {
    color: var(--primary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   NEW LANDING PAGE REDESIGN STYLES
   ======================================== */

/* --- Hero Section Redesign --- */
.hero-redesign {
    padding: 120px 20px 60px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    background: transparent;
    position: relative;
    z-index: 1;
    padding-bottom: 150px;
}

.hero-redesign::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    background: var(--hero-bg);
    z-index: -2;
}

.hero-redesign::after {
    content: "";
    position: absolute;
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    bottom: -1px;
    height: 170px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 170' preserveAspectRatio='none'%3E%3Cpath fill='%23f1f3f7' d='M0 126.5C160 133 240.5 62 420 62c193.5 0 242.5 78 406 78 161.5 0 281-83 445-83 72.5 0 126.5 11 169 22.5V170H0z'/%3E%3C/svg%3E");
    z-index: -1;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #F6F9FD 0%, #EEF3FA 100%);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid var(--secondary);
    animation: fadeInUp 0.6s ease;
}

.hero-redesign h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: #f7f9ff;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.hero-highlight {
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(242, 246, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.hero-subtitle strong {
    color: #EAF1FF;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #F8FBFF;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(232, 238, 255, 0.75);
}

.cta-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--highlight) 100%);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(26, 46, 85, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(26, 46, 85, 0.4);
}

.cta-primary.large {
    padding: 18px 50px;
    font-size: 1.2rem;
}

.cta-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: rgba(232, 238, 255, 0.78);
}

/* --- Value Stories Section --- */
.value-stories {
    padding: 80px 5%;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    text-align: center;
    color: #222;
    margin-bottom: 3rem;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.story-card {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--secondary);
    transition: all 0.3s ease;
    position: relative;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 36px rgba(26, 46, 85, 0.12);
    border-color: #BFCBDD;
}

.story-card.featured {
    background: linear-gradient(135deg, #F8FAFC 0%, #F2F6FC 100%);
    border: 2px solid rgba(26, 46, 85, 0.22);
    box-shadow: 0 14px 32px rgba(26, 46, 85, 0.16);
}

.story-card.featured::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, #E9D8A6, #CBB077);
}

.story-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.story-card h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.4;
}

.story-card p {
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.7;
    margin-bottom: 16px;
}

.story-meta {
    font-size: 0.85rem;
    color: #6B7F9E;
    font-style: italic;
}

.story-card.featured p {
    color: var(--text-ink);
}

.story-card.featured .story-meta {
    color: #5F7392;
}

.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

.tag-L {
    background: #F3E7C1;
    color: #7A5B1E;
    border: 1px solid rgba(122, 91, 30, 0.18);
}

.tag-C {
    background: #E7EFFB;
    color: #2F4A7A;
    border: 1px solid rgba(47, 74, 122, 0.18);
}

.tag-P {
    background: #D1FAE5;
    color: #059669;
}

.tag-A {
    background: #FCE7F3;
    color: #DB2777;
}

/* --- CPLA Section --- */
.cpla-section {
    padding: 80px 5%;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: -1.5rem auto 3rem;
}

.cpla-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.cpla-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--secondary);
    transition: all 0.3s ease;
    text-align: center;
}

.cpla-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(26, 46, 85, 0.14);
}

.cpla-card[data-type="C"] {
    border-top: 4px solid #2F4A7A;
}

.cpla-card[data-type="C"]:hover {
    border-top-color: #1A2E55;
}

.cpla-card[data-type="P"] {
    border-top: 4px solid #3B5C86;
}

.cpla-card[data-type="P"]:hover {
    border-top-color: #2D4D77;
}

.cpla-card[data-type="L"] {
    border-top: 4px solid #B7924B;
}

.cpla-card[data-type="L"]:hover {
    border-top-color: #9F7D3D;
}

.cpla-card[data-type="A"] {
    border-top: 4px solid #5A7396;
}

.cpla-card[data-type="A"]:hover {
    border-top-color: #4B6386;
}

.cpla-card.highlight-emi {
    background: linear-gradient(135deg, #FCF8EE 0%, #F6F9FD 100%);
    border-width: 1px;
}

.cpla-type-label {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.cpla-card[data-type="C"] .cpla-type-label {
    color: #2F4A7A;
}

.cpla-card[data-type="P"] .cpla-type-label {
    color: #3B5C86;
}

.cpla-card[data-type="L"] .cpla-type-label {
    color: #B7924B;
}

.cpla-card[data-type="A"] .cpla-type-label {
    color: #5A7396;
}

.emi-badge {
    display: inline-block;
    background: #E9D8A6;
    color: #1A2E55;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    margin-bottom: 6px;
}

.cpla-card h3 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

.cpla-example {
    font-size: 0.9rem;
    color: var(--text-soft);
    font-style: italic;
    margin-bottom: 8px;
}

.cpla-remedy {
    font-size: 0.85rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin: 0;
}

/* --- Social Proof Section --- */
.social-proof {
    padding: 60px 5%;
    text-align: center;
}

.proof-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.proof-logo-item {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.proof-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.proof-stat {
    text-align: center;
}

.proof-stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.proof-stat-label {
    font-size: 0.9rem;
    color: #888;
    margin-top: 4px;
}

/* --- Final CTA Section --- */
.final-cta {
    padding: 80px 5%;
    text-align: center;
}

.final-cta h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 16px;
}

.final-cta p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.badge-icon {
    color: var(--primary);
    font-size: 0.6rem;
}

/* --- Professional SVG Icon Styles --- */
.story-icon-pro {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F6F9FD 0%, #EEF3FA 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--primary);
}

.story-icon-pro svg {
    width: 28px;
    height: 28px;
}

.story-card.featured .story-icon-pro {
    background: linear-gradient(135deg, var(--primary) 0%, var(--highlight) 100%);
    color: white;
}

/* Override old emoji styles */
.story-icon {
    display: none;
}

/* --- Enhanced Section Typography --- */
.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* --- Premium Card Hover Effects --- */
.story-card {
    background: #fff;
    border: 1px solid var(--secondary);
    box-shadow: 0 2px 8px rgba(26, 46, 85, 0.06);
}

.story-card:hover {
    border-color: #BFCBDD;
    box-shadow: 0 12px 40px rgba(26, 46, 85, 0.12);
}

.cpla-card {
    background: #fff;
    box-shadow: 0 2px 8px rgba(26, 46, 85, 0.06);
}

.cpla-card:hover {
    box-shadow: 0 12px 32px rgba(26, 46, 85, 0.14);
}

/* --- Testimonials (v5.7.5) --- */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 40px auto 0;
}

.testimonial-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    text-align: left;
    font-style: italic;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #444;
    margin: 0 0 12px;
}

.testimonial-card cite {
    font-size: 0.8rem;
    color: #999;
    font-style: normal;
    font-weight: 600;
}

/* --- Hero Pain-Point Title (v5.8.0) --- */
.hero-pain {
    color: rgba(242, 246, 255, 0.94);
    font-weight: 400;
    font-size: 0.85em;
}

/* --- Before/After Comparison Cards (v5.8.0) --- */
.comparison-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 700px;
    margin: 2rem auto;
}

.compare-card {
    border-radius: 12px;
    padding: 24px;
    text-align: left;
    background: #fff;
    border: 1px solid var(--secondary);
}

.compare-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.compare-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.compare-card li {
    font-size: 0.88rem;
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
    color: var(--text-soft);
}

.compare-before {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border-color: var(--secondary);
}

.compare-before h3 {
    color: #7A8CA5;
}

.compare-before li::before {
    content: "\2717";
    position: absolute;
    left: 0;
    color: #8FA0B7;
    font-weight: 700;
}

.compare-after {
    background: linear-gradient(135deg, #FFFFFF 0%, #F6F9FD 100%);
    border: 2px solid rgba(26, 46, 85, 0.28);
    box-shadow: 0 6px 18px rgba(26, 46, 85, 0.14);
}

.compare-after h3 {
    color: var(--primary-dark);
}

.compare-after li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* --- How It Works Section (v5.8.0) --- */
.how-it-works {
    padding: 80px 5%;
    background: var(--wave-section-bg);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 960px;
    margin: 2.5rem auto 0;
}

.step-card {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 0 16px;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #F6F9FD 0%, #EEF3FA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

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

.step-connector {
    display: flex;
    align-items: center;
    padding-top: 50px;
    color: #ccc;
    flex-shrink: 0;
}

/* --- CPLA Percentage Badge (v5.8.0) --- */
.cpla-pct {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    white-space: nowrap;
}

/* --- Competitive Comparison Section (v5.8.0) --- */
.competitive-section {
    padding: 80px 5%;
}

.competitive-grid {
    max-width: 800px;
    margin: 2rem auto 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--secondary);
    background: #fff;
    box-shadow: 0 6px 18px rgba(26, 46, 85, 0.06);
}

.competitive-header,
.competitive-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

.competitive-header {
    background: #F8FAFC;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
}

.competitive-row {
    border-top: 1px solid var(--secondary);
    font-size: 0.85rem;
    color: var(--text-ink);
}

.comp-cell {
    padding: 14px 16px;
    display: flex;
    align-items: center;
}

.comp-label {
    font-weight: 600;
    color: var(--text-main);
}

.comp-highlight {
    background: linear-gradient(135deg, rgba(26, 46, 85, 0.06), rgba(26, 46, 85, 0.02));
}

.competitive-header .comp-highlight {
    color: var(--primary-dark);
    font-weight: 800;
}

.comp-yes {
    color: var(--primary);
    font-weight: 700;
}

.comp-no {
    color: var(--text-soft);
    font-weight: 500;
}

.comp-partial {
    color: #6B7F9E;
    font-weight: 600;
}

.comp-price {
    color: var(--primary-dark);
    font-weight: 700;
}

/* --- Pricing Preview Section (v5.8.0) --- */
.pricing-preview {
    padding: 80px 5%;
    text-align: center;
}

.pricing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 700px;
    margin: 2rem auto;
}

.price-card {
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.price-card:hover {
    transform: translateY(-4px);
}

.price-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    text-align: left;
}

.price-card li {
    font-size: 0.88rem;
    line-height: 2;
    padding-left: 20px;
    position: relative;
    color: var(--text-soft);
}

.price-card li::before {
    position: absolute;
    left: 0;
    font-weight: 700;
}

.price-old {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border: 1px solid var(--secondary);
    box-shadow: 0 4px 14px rgba(26, 46, 85, 0.06);
}

.price-old .price-amount {
    color: #8593A8;
    text-decoration: line-through;
}

.price-old li::before {
    content: "—";
    color: #94A3B8;
}

.price-per-use {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--secondary);
}

.price-new {
    background: linear-gradient(135deg, #FFFFFF 0%, #F6F9FD 100%);
    border: 2px solid rgba(26, 46, 85, 0.28);
    box-shadow: 0 10px 28px rgba(26, 46, 85, 0.16);
}

.price-new .price-amount {
    color: var(--primary-dark);
}

.price-new li::before {
    content: "\2713";
    color: var(--primary);
}

.price-new h3,
.price-new li {
    color: var(--text-main);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.price-savings {
    display: inline-block;
    margin-top: 8px;
    background: linear-gradient(135deg, #E9D8A6 0%, #F3E7C1 100%);
    color: #1A2E55;
    border: 1px solid rgba(26, 46, 85, 0.18);
    box-shadow: 0 2px 8px rgba(26, 46, 85, 0.12);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* --- FAQ Section (v5.8.0 GEO) --- */
.faq-section {
    padding: 80px 5%;
}

.faq-list {
    max-width: 700px;
    margin: 2rem auto 0;
}

.faq-item {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item summary {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.2rem;
    font-weight: 400;
    color: #999;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: "\2212";
}

.faq-item summary:hover {
    background: #fafafa;
}

.faq-item p {
    padding: 0 20px 16px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* --- Section Background Alternation (v5.8.0 visual) --- */
.how-it-works {
    background: var(--wave-section-bg);
}

.value-stories {
    background: #ffffff;
}

.cpla-section {
    background: var(--bg-color);
}

.competitive-section {
    background: #ffffff;
}

.social-proof {
    background: var(--bg-color);
}

.pricing-preview {
    background: #ffffff;
}

.faq-section {
    background: var(--bg-color);
}

.final-cta {
    background: #ffffff;
}

/* --- Hero Entrance Animation (v5.8.0 visual) --- */
.hero-redesign h1,
.hero-redesign .hero-subtitle,
.hero-redesign .comparison-cards,
.hero-redesign .hero-stats,
.hero-redesign .cta-primary,
.hero-redesign .cta-note {
    animation: heroFadeUp 0.6s ease both;
}

.hero-redesign .hero-subtitle {
    animation-delay: 0.1s;
}

.hero-redesign .comparison-cards {
    animation-delay: 0.2s;
}

.hero-redesign .cta-primary {
    animation-delay: 0.3s;
}

.hero-redesign .cta-note {
    animation-delay: 0.35s;
}

.hero-redesign .hero-stats {
    animation-delay: 0.4s;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Trust Badge Icon Alignment (v5.7.5) --- */
.trust-badge-item svg {
    flex-shrink: 0;
    color: var(--primary);
}

/* --- Responsive: Tablet (1024px) --- */
@media (max-width: 1024px) {

    .story-grid,
    .cpla-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .competitive-header,
    .competitive-row {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
        font-size: 0.8rem;
    }

    .comp-cell {
        padding: 10px 12px;
    }
}

/* --- Responsive: Small screens (480px) --- */
@media (max-width: 480px) {
    .hero-redesign {
        padding-bottom: 104px;
    }

    .hero-redesign::after {
        height: 118px;
    }

    .hero-redesign h1 {
        font-size: 1.35rem;
    }

    .hero-pain {
        font-size: 0.9em;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .comparison-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .stat-num {
        font-size: 1.2rem;
    }

    .proof-stat-num {
        font-size: 1.8rem;
    }

    .final-cta h2 {
        font-size: 1.3rem;
    }

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

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .price-amount {
        font-size: 2rem;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        padding-top: 0;
        transform: rotate(90deg);
        margin: 8px 0;
    }

    .competitive-header,
    .competitive-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .comp-label {
        background: #f0f0f0;
        font-size: 0.8rem;
        justify-content: center;
    }

    .comp-cell {
        justify-content: center;
        padding: 8px 12px;
    }

    .cta-primary {
        min-height: 48px;
        font-size: 0.95rem;
    }
}

/* --- Responsive Adjustments (768px) --- */
@media (max-width: 768px) {
    .hero-redesign {
        padding-bottom: 120px;
    }

    .hero-redesign::after {
        height: 132px;
    }

    .hero-redesign h1 {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.92rem;
    }

    .comparison-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-num {
        font-size: 1.4rem;
    }

    .story-grid,
    .cpla-grid {
        grid-template-columns: 1fr;
    }

    .proof-stats {
        gap: 24px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .trust-badges {
        flex-direction: column;
        gap: 12px;
    }

    .trust-badge-item {
        justify-content: center;
    }

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

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        padding-top: 0;
        transform: rotate(90deg);
        margin: 8px 0;
    }

    .competitive-header,
    .competitive-row {
        font-size: 0.78rem;
    }

    .comp-cell {
        padding: 10px 8px;
    }

    .story-icon-pro {
        width: 48px;
        height: 48px;
    }

    .story-icon-pro svg {
        width: 24px;
        height: 24px;
    }

    /* Legal pages mobile optimization */
    .legal-container {
        padding: 100px 5% 60px;
    }

    .legal-content h2 {
        font-size: 1.4rem;
    }

    .legal-content h3 {
        font-size: 1.15rem;
    }

    .legal-content h4 {
        font-size: 1rem;
    }

    .legal-content p,
    .legal-content li {
        font-size: 0.95rem;
    }
}

/* ===== Platform Availability Section ===== */
.platforms-section {
    text-align: center;
    padding: 64px 5% 72px;
    max-width: 960px;
    margin: 0 auto;
}

.platforms-subtitle {
    color: var(--gray-medium);
    font-size: 1.05rem;
    margin-top: 10px;
    margin-bottom: 0;
    line-height: 1.5;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 40px;
}

/* --- Individual platform card --- */
.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 10px 18px;
    border-radius: 16px;
    position: relative;
    transition: transform 0.25s cubic-bezier(.4, 0, .2, 1), box-shadow 0.25s cubic-bezier(.4, 0, .2, 1);
    animation: platformFadeUp 0.5s ease-out both;
}

@keyframes platformFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Live state --- */
.platform-item.platform-live {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.platform-item.platform-live:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06), 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* --- Icon wrapper (holds icon + live indicator) --- */
.platform-icon-wrap {
    position: relative;
    display: inline-flex;
}

.platform-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}

.platform-live .platform-icon {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.platform-live:hover .platform-icon {
    transform: scale(1.06);
}

.platform-icon svg {
    width: 32px;
    height: 32px;
    transition: opacity 0.3s, filter 0.3s, transform 0.3s;
}

/* --- Live indicator dot (top-right of icon) --- */
.platform-live-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
    animation: livePulse 2.5s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
    }
}

/* --- Platform name --- */
.platform-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* --- Coming Soon state --- */
.platform-item.platform-soon {
    cursor: default;
}

.platform-item.platform-soon .platform-icon {
    background: #f3f4f6;
}

.platform-item.platform-soon .platform-icon svg {
    filter: grayscale(1);
    opacity: 0.32;
}

.platform-item.platform-soon:hover {
    transform: translateY(-2px);
}

.platform-item.platform-soon:hover .platform-icon {
    background: #ebedf0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.platform-item.platform-soon:hover .platform-icon svg {
    opacity: 0.5;
    filter: grayscale(0.6);
    transform: scale(1.04);
}

.platform-item.platform-soon .platform-name {
    color: #b0b0b0;
}

.platform-soon-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    background: #f0f0f0;
    color: #b0b0b0;
    border-radius: 20px;
    padding: 3px 10px;
    white-space: nowrap;
    border: 1px solid #e5e5e5;
}

/* --- Responsive: tablet (3 col) --- */
@media (max-width: 768px) {
    .platforms-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
        margin-top: 32px;
    }

    .platforms-section {
        padding: 48px 5% 56px;
    }
}

/* --- Responsive: mobile (3 col compact) --- */
@media (max-width: 480px) {
    .platforms-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .platforms-section {
        padding: 40px 4% 48px;
    }

    .platform-item {
        padding: 18px 6px 14px;
        gap: 8px;
    }

    .platform-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .platform-icon svg {
        width: 26px;
        height: 26px;
    }

    .platform-name {
        font-size: 0.72rem;
    }

    .platform-soon-badge {
        font-size: 0.56rem;
        padding: 2px 7px;
    }

    .platforms-subtitle {
        font-size: 0.9rem;
    }
}

/* ===== Language Suggestion Banner ===== */
.lang-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #1A2E55, #152745);
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: langBannerSlide 0.4s ease-out;
}

@keyframes langBannerSlide {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lang-banner-text {
    font-weight: 500;
}

.lang-banner-btn {
    display: inline-block;
    padding: 5px 16px;
    background: var(--primary, #1A2E55);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.lang-banner-btn:hover {
    background: var(--primary-dark, #243B6A);
}

.lang-banner-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.lang-banner-close:hover {
    color: #fff;
}

@media (max-width: 600px) {
    .lang-banner {
        font-size: 0.85rem;
        gap: 8px;
        padding: 8px 12px;
    }

    .lang-banner-btn {
        padding: 4px 12px;
        font-size: 0.8rem;
    }
}

/* Group Dashboard tabs */
.group-tab {
    padding: 12px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.group-tab:hover {
    color: #333;
    background: rgba(26, 46, 85, 0.08);
}

.group-tab.active {
    color: #1A2E55;
    border-bottom-color: #1A2E55;
    font-weight: 600;
}

/* ===== Group Plan 座位選擇器 - Material Design 3 ===== */
#group-seats {
    appearance: none;
    -webkit-appearance: none;
    background: #F8F9FA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%231A73E8' fill='none' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
    padding: 12px 40px 12px 16px;
    border: 2px solid #E8EAED;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #202124;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.1);
}

#group-seats:hover {
    background-color: #FFFFFF;
    border-color: #1A2E55;
    box-shadow: 0 2px 6px rgba(26, 46, 85, 0.15);
}

#group-seats:focus {
    border-color: #1A2E55;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 46, 85, 0.12), 0 2px 6px rgba(26, 46, 85, 0.15);
    background-color: #FFFFFF;
}

#group-total {
    background: linear-gradient(135deg, #EEF3FA 0%, #F6F9FD 100%);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #D6DEEA;
    font-weight: 600;
    color: #1A2E55;
    margin-top: 12px;
    box-shadow: 0 1px 3px rgba(26, 46, 85, 0.08);
}

/* ================================================================
   ADVANCED ANIMATIONS & MICROINTERACTIONS
   Google Material Design 3 Motion Principles
   ================================================================ */

/* Staggered card entrance animation */
.pricing-card {
    animation: cardFadeIn 0.5s cubic-bezier(0.4, 0.0, 0.2, 1) backwards;
}

.pricing-card:nth-child(1) {
    animation-delay: 0.1s;
}

.pricing-card:nth-child(2) {
    animation-delay: 0.2s;
}

.pricing-card:nth-child(3) {
    animation-delay: 0.3s;
}

.pricing-card:nth-child(4) {
    animation-delay: 0.4s;
}

.pricing-card:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Button ripple effect */
.select-btn {
    position: relative;
    overflow: hidden;
}

.select-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.select-btn:active::before {
    width: 300px;
    height: 300px;
}

/* Section title entrance */
.upgrade-container h2 {
    animation: titleSlideIn 0.7s cubic-bezier(0.4, 0.0, 0.2, 1) backwards;
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Payment icon entrance */
.pay-icon {
    animation: iconFadeIn 0.5s cubic-bezier(0.4, 0.0, 0.2, 1) backwards;
}

.pay-icon:nth-child(1) {
    animation-delay: 0.1s;
}

.pay-icon:nth-child(2) {
    animation-delay: 0.15s;
}

.pay-icon:nth-child(3) {
    animation-delay: 0.2s;
}

.pay-icon:nth-child(4) {
    animation-delay: 0.25s;
}

.pay-icon:nth-child(5) {
    animation-delay: 0.3s;
}

.pay-icon:nth-child(6) {
    animation-delay: 0.35s;
}

.pay-icon:nth-child(7) {
    animation-delay: 0.4s;
}

@keyframes iconFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus state improvements for accessibility */
.pricing-card:focus-visible,
.select-btn:focus-visible,
.custom-input-group input:focus-visible,
#group-seats:focus-visible {
    outline: 3px solid #1A2E55;
    outline-offset: 2px;
    border-radius: 16px;
}

/* ================================================================
   RESPONSIVE DESIGN - UPGRADE PAGE SPECIFIC
   Mobile-first optimization for pricing and checkout
   ================================================================ */

@media (max-width: 1024px) {
    .upgrade-container {
        padding: 36px 28px;
    }

    .upgrade-header h1 {
        font-size: 36px;
    }

    .upgrade-container h2 {
        font-size: 24px;
        margin: 40px 0 24px;
    }

    .pricing-card.popular {
        transform: scale(1.03);
    }

    .popular-badge {
        font-size: 10px;
        padding: 6px 14px;
    }
}

@media (max-width: 768px) {
    .upgrade-container {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .upgrade-header h1 {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .upgrade-header p {
        font-size: 15px;
    }

    .upgrade-header p:last-of-type {
        padding: 12px 20px;
        font-size: 14px;
    }

    .upgrade-container h2 {
        font-size: 20px;
        padding-left: 16px;
    }

    .upgrade-container h2::before {
        width: 3px;
        height: 20px;
    }

    .pricing-card {
        padding: 24px 20px;
    }

    .pricing-card.popular {
        transform: scale(1.02);
    }

    .pricing-card:hover {
        transform: translateY(-6px) scale(1.015);
    }

    .tier-name {
        font-size: 12px;
    }

    .price {
        font-size: 30px;
    }

    .credits-count {
        font-size: 14px;
    }

    .features {
        font-size: 12px;
    }

    .features li {
        margin-bottom: 8px;
    }

    .select-btn {
        padding: 12px 20px;
        font-size: 11px;
    }

    .custom-area {
        padding: 24px 20px;
    }

    .custom-title {
        font-size: 16px;
    }

    .custom-input-group input {
        width: 100px;
        font-size: 18px;
        padding: 12px;
    }

    .total-amount {
        font-size: 20px;
    }

    .payment-icons-grid {
        gap: 12px;
    }

    .pay-icon {
        width: 70px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .upgrade-container {
        padding: 20px 16px;
    }

    .upgrade-header h1 {
        font-size: 24px;
        letter-spacing: -0.3px;
    }

    .upgrade-header p {
        font-size: 14px;
    }

    .upgrade-header p:last-of-type {
        padding: 10px 16px;
        font-size: 13px;
        margin-bottom: 32px;
    }

    .upgrade-container h2 {
        font-size: 18px;
        margin: 32px 0 20px;
        padding-left: 14px;
    }

    .pricing-grid {
        gap: 16px;
    }

    .pricing-card {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .pricing-card.popular {
        transform: scale(1);
        border-width: 2px;
    }

    .pricing-card:hover {
        transform: translateY(-4px);
    }

    .popular-badge {
        font-size: 9px;
        padding: 5px 12px;
        top: -12px;
    }

    .tier-name {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .price {
        font-size: 26px;
    }

    .credits-count {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .features {
        font-size: 11px;
        margin-bottom: 16px;
    }

    .features li {
        margin-bottom: 6px;
        gap: 6px;
    }

    .features li::before {
        font-size: 12px;
    }

    .select-btn {
        padding: 11px 18px;
        font-size: 10px;
        border-radius: 10px;
    }

    .custom-area {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .custom-title {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .custom-input-group {
        gap: 12px;
        margin-bottom: 16px;
    }

    .custom-input-group input {
        width: 90px;
        font-size: 16px;
        padding: 10px 12px;
    }

    .custom-price-display {
        font-size: 14px;
    }

    .total-amount {
        font-size: 18px;
    }

    .payment-methods-section {
        margin-top: 40px;
        padding-top: 28px;
    }

    .payment-methods-section h3 {
        font-size: 16px !important;
    }

    .payment-icons-grid {
        gap: 10px;
    }

    .pay-icon {
        width: 60px;
        height: 38px;
        padding: 8px;
    }

    #group-seats {
        padding: 10px 36px 10px 14px;
        font-size: 13px;
    }

    #group-total {
        padding: 10px 14px;
        font-size: 13px;
    }

    /* Disable complex animations on mobile for performance */
    .pricing-card,
    .pay-icon,
    .features li {
        animation: none !important;
    }

    .pricing-card {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==================== DAILY QUESTION PAGE ==================== */
.daily-question-page {
    --daily-wave-top: 300px;
    --daily-wave-curve-top: 216px;
    --daily-wave-curve-height: 120px;
    --daily-header-top-pad: 44px;
    --daily-gap-after-header: 132px;
    position: relative;
    z-index: 1;
    margin: 18px auto 80px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(26, 46, 85, 0.12);
    box-sizing: border-box;
    overflow: hidden;
}

.daily-question-page.daily-mode-browse {
    width: min(100%, 900px);
    max-width: calc(100vw - 32px);
    min-height: auto;
    padding: 40px 34px 44px;
}

.daily-question-page.daily-mode-export {
    --daily-wave-top: 360px;
    --daily-wave-curve-top: 260px;
    --daily-wave-curve-height: 132px;
    --daily-header-top-pad: 56px;
    --daily-gap-after-header: 164px;
    width: 1080px;
    max-width: calc(100vw - 64px);
    min-height: 1440px;
    padding: 56px;
}

.daily-question-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--daily-wave-top);
    background: #1A2E55;
    pointer-events: none;
    z-index: 0;
}

.daily-question-page::after {
    content: "";
    position: absolute;
    top: var(--daily-wave-curve-top);
    left: 0;
    right: 0;
    height: var(--daily-wave-curve-height);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 170' preserveAspectRatio='none'%3E%3Cpath fill='%23fbfcff' d='M0 0c210 10 320 38 500 72 174 33 336 49 510 36 172-13 292-33 430-46v108H0z'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.daily-question-page > * {
    position: relative;
    z-index: 1;
}

.daily-header {
    text-align: center;
    margin-bottom: 0;
    padding: var(--daily-header-top-pad) 24px 28px;
    border-bottom: none;
    background: transparent;
    border-radius: 0;
}

.daily-header + .question-info {
    margin-top: var(--daily-gap-after-header);
}

.daily-header h1 {
    font-size: 2rem;
    color: #f4f7ff;
    margin-bottom: 12px;
}

.daily-header .date {
    font-size: 1rem;
    color: rgba(236, 242, 255, 0.88);
    margin-bottom: 16px;
}

.question-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: center;
}

.topic-badge {
    background: linear-gradient(135deg, #1A2E55 0%, #1A2E55 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 6px 12px rgba(26, 46, 85, 0.18);
}

.difficulty {
    font-size: 1.2rem;
    color: #ffd977;
}

.question-info {
    background: linear-gradient(135deg, #f4f7fc 0%, #eef3fa 100%);
    padding: 24px;
    border-radius: 14px;
    margin-bottom: 28px;
    border: 1px solid #e3ebf7;
}

.question-info p {
    margin: 8px 0;
    color: #555;
}

.question-content {
    background:
        radial-gradient(circle at 16% 24%, rgba(255, 255, 255, 0.06), transparent 26%),
        radial-gradient(circle at 80% 74%, rgba(255, 255, 255, 0.04), transparent 24%),
        linear-gradient(140deg, #1d3a2c 0%, #1a3327 55%, #162d22 100%);
    padding: 30px 26px;
    border: 2px solid #2f4e3f;
    border-radius: 12px;
    margin: 28px 0;
    font-size: 1.22rem;
    line-height: 1.9;
    color: #eef6ea;
    box-shadow: inset 0 0 0 1px rgba(221, 235, 223, 0.08), 0 6px 18px rgba(18, 34, 26, 0.18);
    font-family: "Kalam", "Comic Sans MS", "Bradley Hand", cursive;
    letter-spacing: 0.2px;
}

.question-content p {
    margin: 0;
}

.question-content .katex,
.question-content .katex-display {
    color: #f4faef;
}

.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: stretch;
    margin: 32px 0;
}

.action-buttons > .btn-primary,
.action-buttons > .btn-secondary {
    flex: 1 1 0;
    width: 100%;
}

.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #1A2E55 0%, #1A2E55 100%);
    color: white;
    box-shadow: 0 10px 18px rgba(26, 46, 85, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #1A2E55;
    border: 2px solid #1A2E55;
}

.btn-secondary:hover {
    background: #f8f9fa;
}

.login-prompt {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f9f1cf 0%, #f3e8bf 100%);
    border-radius: 12px;
    color: #856404;
    margin-top: 24px;
    border: 1px solid #e9dbab;
}

/* ==================== SOLUTION PAGE ==================== */
.solution-page {
    max-width: 900px;
    margin: 120px auto 80px;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.solution-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.solution-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 0;
}

.back-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #e9ecef;
}

.question-recap {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.question-recap h3 {
    font-size: 1.2rem;
    color: #1A2E55;
    margin-bottom: 12px;
}

.solution-steps {
    margin-bottom: 32px;
}

.solution-steps h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
}

.step {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s;
}

.step:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1A2E55 0%, #1A2E55 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.step-content {
    flex: 1;
}

.step-content p {
    margin: 0 0 8px 0;
    line-height: 1.6;
}

.step-explanation {
    color: #666;
    font-size: 0.95rem;
    font-style: italic;
}

.final-answer {
    background: #e8f5e9;
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
    margin-bottom: 32px;
}

.final-answer h3 {
    font-size: 1.2rem;
    color: #2e7d32;
    margin-bottom: 12px;
}

.final-answer p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.related-content {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid #f0f0f0;
}

.related-content h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
}

.related-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.tab-btn:hover {
    border-color: #1A2E55;
    color: #1A2E55;
}

.tab-btn.active {
    background: linear-gradient(135deg, #1A2E55 0%, #1A2E55 100%);
    color: white;
    border-color: transparent;
}

.related-questions-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.related-question-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}

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

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

.related-meta .topic {
    font-size: 0.85rem;
    color: #1A2E55;
    font-weight: 600;
}

.question-preview {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.view-btn {
    width: 100%;
    padding: 10px;
    background: #1A2E55;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.view-btn:hover {
    background: #152745;
}

.upgrade-message {
    text-align: center;
    padding: 32px;
    background: #fff3cd;
    border-radius: 8px;
    color: #856404;
    font-size: 1rem;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1A2E55;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Top-Up Layout Contract (namespaced): isolates top-up from global pricing/h2 rules */
.upgrade-container .cb-topup-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upgrade-container h2.cb-topup-title {
    text-align: center;
    padding-left: 0;
    margin-left: auto;
    margin-right: auto;
}

.upgrade-container h2.cb-topup-title::before {
    display: none;
}

.upgrade-container p.cb-topup-desc {
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.upgrade-container .cb-topup-grid {
    width: 100%;
    margin-top: 18px;
}

@media (min-width: 1200px) {
    .upgrade-container .cb-topup-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        max-width: 1080px !important;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 1100px) {
    .upgrade-container .cb-topup-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .upgrade-container .cb-topup-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    header {
        height: 64px;
        padding: 0 14px;
    }

    .logo {
        font-size: 1.08rem;
    }

    .nav-btn {
        padding: 0.44rem 1rem;
        font-size: 0.88rem;
    }

    .credit-badge {
        padding: 5px 10px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .dashboard-container {
        padding-top: 92px;
    }

    .dashboard-card {
        width: min(100%, 760px);
    }

    .upload-area {
        padding: 24px;
    }

    .daily-question-page.daily-mode-browse {
        max-width: calc(100vw - 24px);
        padding: 34px 24px 36px;
        --daily-wave-top: 270px;
        --daily-wave-curve-top: 190px;
        --daily-wave-curve-height: 102px;
        --daily-header-top-pad: 36px;
        --daily-gap-after-header: 112px;
    }

    .daily-question-page.daily-mode-export {
        max-width: calc(100vw - 36px);
    }

    .cpla-report-page {
        padding: 98px 18px 52px;
    }

    .cpla-report-shell {
        padding: 24px;
        gap: 16px;
    }

    .cpla-report-top {
        flex-wrap: wrap;
        align-items: center;
    }

    .cpla-report-top h1 {
        font-size: 1.8rem;
    }

    .cpla-grid.three-col,
    .cpla-grid.four-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cpla-severity {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    header {
        height: auto;
        min-height: 64px;
        padding: 10px 12px;
        align-items: flex-start;
        gap: 8px;
    }

    .nav-links {
        margin-left: auto;
        flex-wrap: wrap;
        justify-content: flex-end;
        row-gap: 8px;
        max-width: 72%;
    }

    .logo {
        padding-top: 2px;
    }

    .dashboard-container {
        padding: 90px 14px 0;
    }

    .dashboard-card {
        margin-top: 18px;
        border-radius: 18px;
    }

    .cb-cpla-entry-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .cpla-report-page {
        padding: 90px 14px 40px;
    }

    .cpla-report-shell {
        padding: 18px;
        gap: 14px;
    }

    .cpla-report-top {
        flex-direction: column;
    }

    .cpla-grid.two-col,
    .cpla-grid.three-col,
    .cpla-grid.four-col {
        grid-template-columns: 1fr;
    }

    .daily-question-page {
        margin: 80px 12px 40px;
        border-radius: 14px;
    }

    .solution-page {
        margin: 80px 20px 40px;
        padding: 24px;
    }

    .daily-question-page.daily-mode-browse {
        width: auto;
        max-width: none;
        min-height: auto;
        padding: 24px;
        --daily-wave-top: 232px;
        --daily-wave-curve-top: 162px;
        --daily-wave-curve-height: 86px;
        --daily-header-top-pad: 34px;
        --daily-gap-after-header: 102px;
    }

    .daily-question-page.daily-mode-export {
        width: auto;
        max-width: none;
        min-height: calc(100vh - 140px);
        padding: 26px 22px;
        --daily-wave-top: 250px;
        --daily-wave-curve-top: 170px;
        --daily-wave-curve-height: 92px;
        --daily-header-top-pad: 42px;
        --daily-gap-after-header: 118px;
    }

    .action-buttons {
        flex-direction: column;
    }

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

    .solution-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}
