:root {
    /* Color Palette - Deep Zen Dark Theme with Ultra-High Legibility Contrast */
    --bg-primary: #0b0e14;
    --bg-surface: #131822;
    --bg-elevated: #1c2331;
    --bg-accent: #273245;
    --bg-card: rgba(28, 35, 49, 0.85);
    
    --text-primary: #ffffff;
    --text-secondary: #dbe4ee;
    --text-muted: #9ab0c8;
    
    --primary: #4a94e8;
    --primary-light: #7cb5f9;
    --primary-glow: rgba(74, 148, 232, 0.32);
    
    --accent-teal: #34d399;
    --accent-teal-glow: rgba(52, 211, 153, 0.32);
    --accent-gold: #fbbf24;
    --accent-gold-glow: rgba(251, 191, 36, 0.32);
    
    --danger: #f87171;
    --danger-hover: #ef4444;
    --danger-glow: rgba(248, 113, 113, 0.32);
    
    --border-color: rgba(255, 255, 255, 0.15);
    --border-highlight: rgba(255, 255, 255, 0.28);

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 26px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 44px rgba(0, 0, 0, 0.65);

    --font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Hiragino Sans GB", "Noto Sans TC", "Microsoft JhengHei", "Plus Jakarta Sans", "Segoe UI", Roboto, sans-serif;
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif;
}

/* Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    background-color: var(--bg-primary);
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: stretch;
    overflow-x: hidden;
    touch-action: manipulation;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

/* Main App Wrapper (Mobile Viewport Container) */
.app-wrapper {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--bg-surface);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

@media (max-width: 480px) {
    .app-wrapper {
        border-left: none;
        border-right: none;
    }
}

/* Top App Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    padding-top: max(12px, env(safe-area-inset-top));
    background: rgba(19, 24, 34, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 40;
}

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

.brand-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    filter: drop-shadow(0 2px 8px rgba(74, 148, 232, 0.5));
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    background: linear-gradient(135deg, #ffffff 30%, #b8d9fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.25;
}

.brand-subtitle {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-tier-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-tier-badge.member {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.5);
    color: #fde047;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

.mqtt-badge {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.mqtt-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.mqtt-badge.connected {
    color: var(--accent-teal);
    border-color: rgba(52, 211, 153, 0.5);
    background: rgba(52, 211, 153, 0.15);
}

.mqtt-badge.connected::before {
    background-color: var(--accent-teal);
    box-shadow: 0 0 6px var(--accent-teal);
}

.mqtt-badge.error {
    color: var(--danger);
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(248, 113, 113, 0.15);
}

.mqtt-badge.error::before {
    background-color: var(--danger);
}

/* Main Content Area */
.app-main {
    flex: 1;
    padding: 12px 16px calc(80px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: padding 0.3s ease;
}

/* 🌟 冥想進行中的沉浸防誤觸與滿版無滾動模式 (No-Scroll Lock & Full Height) */
body.is-meditating {
    overflow: hidden !important;
    height: 100dvh;
}

body.is-meditating .app-wrapper {
    height: 100dvh;
    overflow: hidden;
}

body.is-meditating .app-bottom-nav {
    transform: translateX(-50%) translateY(140%);
    opacity: 0;
    pointer-events: none;
}

body.is-meditating .app-main {
    padding: 10px 14px max(12px, env(safe-area-inset-bottom));
    overflow: hidden;
    height: 100%;
}

body.is-meditating .tab-session-layout {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

body.is-meditating .session-card-expanded {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

body.is-meditating .distraction-pad-giant-expanded {
    flex: 1;
    min-height: 85px;
    margin-bottom: 0;
    padding: 14px 16px;
}

/* 🕯️ 暗室息屏極簡模式 (AMOLED Deep Zen Dimming with Breathing Border) */
@keyframes amoledBreathingGlow {
    0%, 100% {
        border-color: rgba(251, 191, 36, 0.12);
        box-shadow: 0 0 8px rgba(251, 191, 36, 0.04);
    }
    50% {
        border-color: rgba(251, 191, 36, 0.38);
        box-shadow: 0 0 22px rgba(251, 191, 36, 0.14);
    }
}

body.is-meditating.amoled-dim {
    background-color: #000000 !important;
}

body.is-meditating.amoled-dim .app-wrapper {
    background-color: #000000 !important;
    box-shadow: none !important;
}

body.is-meditating.amoled-dim .app-header,
body.is-meditating.amoled-dim .session-compact-top,
body.is-meditating.amoled-dim .live-metrics {
    opacity: 0.12;
    transition: opacity 1.2s ease;
}

body.is-meditating.amoled-dim .zen-circle-compact {
    border-color: rgba(255, 255, 255, 0.06) !important;
    background: #05070a !important;
    box-shadow: 0 0 16px rgba(74, 148, 232, 0.08) !important;
}

body.is-meditating.amoled-dim .timer-display {
    color: rgba(255, 255, 255, 0.45);
    text-shadow: none;
}

body.is-meditating.amoled-dim .timer-subtext {
    color: rgba(255, 255, 255, 0.35);
}

body.is-meditating.amoled-dim .session-actions {
    opacity: 0.25;
    transition: opacity 1.2s ease;
}

body.is-meditating.amoled-dim .distraction-pad-giant-expanded {
    background: #040609 !important;
    animation: amoledBreathingGlow 5s infinite ease-in-out;
}

body.is-meditating.amoled-dim .pad-giant-title {
    color: rgba(255, 255, 255, 0.5);
}

body.is-meditating.amoled-dim .pad-giant-subtitle {
    color: rgba(255, 255, 255, 0.25);
}

.tab-pane {
    display: none;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    animation: fadeInTab 0.2s ease-out;
}

.tab-pane.active {
    display: flex;
}

/* Tab 1: Full-Height Meditation Layout when active */
.tab-pane.active.tab-session-layout {
    flex: 1;
    min-height: 100%;
}

.session-card-expanded {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

/* Compact Status Bar & Config Overview Pill */
.session-compact-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.status-indicator-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--text-muted);
    transition: all 0.3s ease;
}

.status-indicator.running {
    background-color: var(--accent-teal);
    box-shadow: 0 0 10px var(--accent-teal);
    animation: indicatorPulse 2s infinite ease-in-out;
}

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

.status-text {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.session-cfg-pill {
    background: var(--bg-accent);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-full);
    padding: 5px 12px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-light);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.session-cfg-pill:active {
    transform: scale(0.96);
    background: var(--primary-glow);
}

.cfg-pill-arrow {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Compact Zen Timer Circle */
.timer-container-compact {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0 4px;
    position: relative;
}

.zen-circle-compact {
    width: clamp(140px, 36vw, 170px);
    height: clamp(140px, 36vw, 170px);
    border-radius: 50%;
    background: radial-gradient(circle at center, #27313f 0%, #151b24 75%, #0b0e14 100%);
    border: 2px solid rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), inset 0 0 18px rgba(0, 0, 0, 0.35);
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.zen-ring-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid transparent;
    pointer-events: none;
    transition: all 0.5s ease;
}

.zen-circle-compact.breathing {
    border-color: rgba(74, 148, 232, 0.7);
    box-shadow: 0 0 32px var(--primary-glow), inset 0 0 22px var(--primary-glow);
    animation: zenBreathe 8s infinite ease-in-out;
}

.zen-circle-compact.breathing .zen-ring-pulse {
    border-color: rgba(52, 211, 153, 0.45);
    animation: ringAura 8s infinite ease-in-out;
}

@keyframes zenBreathe {
    0%, 100% {
        transform: scale(1);
        border-color: rgba(74, 148, 232, 0.55);
    }
    50% {
        transform: scale(1.05);
        border-color: rgba(52, 211, 153, 0.85);
        box-shadow: 0 0 40px var(--accent-teal-glow), inset 0 0 26px var(--accent-teal-glow);
    }
}

@keyframes ringAura {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.75;
    }
}

.timer-display {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 7.8vw, 2.9rem);
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    line-height: 1.1;
}

.timer-subtext {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 4px;
    text-align: center;
    padding: 0 10px;
    letter-spacing: 0.3px;
}

/* Live Metrics Panel */
.live-metrics {
    display: flex;
    align-items: center;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.metric-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.metric-divider {
    width: 1px;
    height: 32px;
    background-color: var(--border-color);
}

.metric-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.metric-val-wrap {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.metric-value {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
}

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

.text-accent {
    color: var(--accent-teal);
}

/* Primary Action Buttons */
.session-actions {
    display: flex;
    gap: 10px;
    margin-top: 2px;
}

.btn-action {
    flex: 1;
    padding: 15px 18px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 1.12rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    user-select: none;
    min-height: 52px;
}

.btn-primary {
    background: linear-gradient(135deg, #4a94e8 0%, #2f74c7 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:active {
    transform: scale(0.97);
    filter: brightness(0.95);
}

.btn-danger {
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px var(--danger-glow);
}

.btn-danger:active {
    transform: scale(0.97);
    filter: brightness(0.95);
}

.btn-icon {
    font-size: 1.1rem;
}

/* Giant Expanded Distraction Pad (Expands Downwards & Fills Space) */
.distraction-pad-giant-expanded {
    width: 100%;
    flex: 1;
    min-height: 140px;
    background: linear-gradient(180deg, #27313f 0%, #18202b 100%);
    border: 2px dashed rgba(251, 191, 36, 0.6);
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    margin-bottom: 8px;
}

.distraction-pad-giant-expanded:hover:not([disabled]) {
    border-color: var(--accent-gold);
    background: #2e3a4a;
}

.distraction-pad-giant-expanded:active:not([disabled]) {
    transform: scale(0.975);
    background: rgba(251, 191, 36, 0.22);
    border-style: solid;
    border-color: var(--accent-gold);
    box-shadow: 0 0 32px var(--accent-gold-glow);
}

.distraction-pad-giant-expanded[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
}

.pad-giant-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.pad-giant-icon {
    font-size: 2.8rem;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    flex-shrink: 0;
}

.pad-giant-texts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.pad-giant-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.6px;
}

.pad-giant-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 5px;
    line-height: 1.45;
}

/* Modal Overlay (Post Session Bottom Sheet / Card) */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

@media (min-width: 480px) {
    .modal-overlay {
        align-items: center;
        padding: 20px;
    }
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.25s ease-out;
}

.modal-card {
    position: relative;
    z-index: 101;
    background: var(--bg-surface);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 90dvh;
    padding: 16px 16px max(16px, env(safe-area-inset-bottom));
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 480px) {
    .modal-card {
        border-radius: var(--radius-lg);
        padding: 22px;
    }
}

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

.modal-handle {
    width: 42px;
    height: 5px;
    background-color: var(--border-highlight);
    border-radius: var(--radius-full);
    align-self: center;
    margin-bottom: 4px;
}

.modal-header {
    text-align: center;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
}

.modal-subtitle {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 3px;
}

.summary-pills {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.pill {
    background: var(--bg-elevated);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pill.highlight {
    border-color: rgba(52, 211, 153, 0.5);
    color: var(--accent-teal);
    background: rgba(52, 211, 153, 0.15);
    font-weight: 700;
}

/* 📈 走神時間軸分佈圖 (Distraction Timeline) */
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.timeline-analysis-tag {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(74, 148, 232, 0.18);
    color: var(--primary-light);
    border: 1px solid rgba(74, 148, 232, 0.35);
}

.distraction-timeline {
    position: relative;
    width: 100%;
    height: 24px;
    display: flex;
    align-items: center;
    padding: 0 4px;
}

.timeline-track {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.timeline-dots {
    position: absolute;
    inset: 0;
    pointer-events: auto;
}

.timeline-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold-glow), 0 0 4px #fbbf24;
    border: 2px solid #0f172a;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.timeline-dot:hover {
    transform: translate(-50%, -50%) scale(1.4);
    box-shadow: 0 0 14px var(--accent-gold);
    z-index: 10;
}

.timeline-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
    padding: 0 2px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.form-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.form-input, .form-textarea, select.form-input {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.98rem;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus, .form-textarea:focus, select.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: var(--bg-accent);
}

.form-textarea {
    resize: none;
    line-height: 1.55;
    scroll-margin-bottom: 90px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-chip {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.tag-chip:active {
    transform: scale(0.96);
}

.tag-chip.selected {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 10px var(--primary-glow);
    font-weight: 700;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    position: sticky;
    bottom: 0;
    background: var(--bg-surface);
    padding-top: 8px;
    padding-bottom: 2px;
    z-index: 10;
}

.btn-modal {
    flex: 1;
    padding: 14px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.btn-modal:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--bg-accent);
    color: var(--text-primary);
}

/* Tab 2: Stats & History */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    box-shadow: var(--shadow-sm);
}

.stat-num {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-light);
}

.stat-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* 📊 7 天練習趨勢圖卡片 (Weekly Trend Chart) */
.weekly-trend-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.weekly-trend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trend-title {
    font-size: 1.0rem;
    font-weight: 800;
    color: var(--text-primary);
}

.trend-subtitle {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent-teal);
}

.chart-bars-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100px;
    padding-top: 10px;
    gap: 6px;
}

.chart-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
}

.bar-fill-wrap {
    width: 100%;
    max-width: 24px;
    height: 68px;
    background: var(--bg-accent);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #7cb5f9 0%, #4a94e8 100%);
    border-radius: 6px;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 0;
}

.chart-bar-item.today .bar-fill {
    background: linear-gradient(180deg, #34d399 0%, #059669 100%);
    box-shadow: 0 0 10px var(--accent-teal-glow);
}

.bar-day {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.chart-bar-item.today .bar-day {
    color: var(--accent-teal);
}

.bar-min {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.history-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

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

.btn-text {
    background: none;
    border: none;
    color: var(--primary-light);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 8px;
    font-family: inherit;
}

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

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform 0.15s ease;
}

.history-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-date {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.history-score-badge {
    font-size: 0.85rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(52, 211, 153, 0.16);
    color: var(--accent-teal);
    border: 1px solid rgba(52, 211, 153, 0.4);
}

.history-details {
    display: flex;
    gap: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.history-mood-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.history-tag {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 3px 8px;
    background: var(--bg-accent);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
}

.history-notes {
    font-size: 0.92rem;
    color: var(--text-secondary);
    background: var(--bg-surface);
    padding: 10px 12px;
    border-radius: var(--radius-xs);
    white-space: pre-wrap;
    word-break: break-word;
    border-left: 3px solid var(--primary);
    line-height: 1.55;
}

/* History Mini Timeline */
.history-timeline-section {
    background: var(--bg-surface);
    border-radius: var(--radius-xs);
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.history-timeline-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.history-mini-timeline {
    position: relative;
    width: 100%;
    height: 14px;
    display: flex;
    align-items: center;
}

.history-mini-track {
    width: 100%;
    height: 4px;
    background: #1e293b;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.history-mini-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    box-shadow: 0 0 5px var(--accent-gold);
    border: 1px solid #0f172a;
}

.history-stamps-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.history-stamp-chip {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.25);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.history-item-del-btn {
    align-self: flex-end;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.history-item-del-btn:hover {
    color: var(--danger);
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 36px 14px;
    font-size: 0.96rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.empty-icon {
    font-size: 2.6rem;
}

/* Tab 3: Grouped & Collapsible Settings */
.settings-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.settings-group-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-group-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-light);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.setting-item-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 🎯 推薦情境 (Scenario Quick Presets) */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
}

.btn-scenario {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    text-align: left;
    min-width: 0;
}

.btn-scenario:hover {
    background: var(--bg-accent);
    border-color: var(--border-highlight);
}

.btn-scenario:active {
    transform: scale(0.96);
    background: var(--primary-glow);
    border-color: var(--primary);
}

.scenario-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.scenario-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.scenario-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
}

.scenario-desc {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.25;
}

/* Mode Buttons in Settings */
.mode-buttons {
    display: flex;
    background: var(--bg-surface);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    gap: 6px;
}

.btn-mode {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 12px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.btn-mode.active {
    background: var(--bg-accent);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-mode:active {
    transform: scale(0.98);
}

.mode-btn-icon {
    font-size: 0.95rem;
}

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

.btn-preset {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 0;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-align: center;
}

.btn-preset.active {
    border-color: var(--primary);
    color: #ffffff;
    background: var(--primary-glow);
}

.btn-preset:active {
    transform: scale(0.96);
}

/* Pacer & Interval Bell Chips in Settings */
.pacer-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

.btn-pacer-chip {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 8px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-pacer-chip.active {
    border-color: var(--primary);
    color: #ffffff;
    background: var(--primary-glow);
    font-weight: 700;
}

.btn-pacer-chip:active {
    transform: scale(0.96);
}

/* Music Chips in Settings */
.music-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

.btn-music-chip {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 10px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-music-chip.active {
    border-color: var(--primary);
    color: #ffffff;
    background: var(--primary-glow);
    font-weight: 700;
}

.btn-music-chip:active {
    transform: scale(0.96);
}

/* Volume Slider */
.volume-slider-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}

.volume-icon {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: var(--bg-accent);
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-light);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    transition: transform 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

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

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 12px;
}

.setting-name {
    font-size: 1.0rem;
    font-weight: 700;
    color: var(--text-primary);
}

.setting-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Settings Accordion (Collapsible Group) */
.settings-accordion {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s;
}

.settings-accordion[open] {
    border-color: var(--border-highlight);
}

.settings-accordion-header {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-light);
    list-style: none;
}

.settings-accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.accordion-summary-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-teal);
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.25);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.2px;
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.accordion-arrow {
    transition: transform 0.2s ease;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.settings-accordion[open] .accordion-arrow {
    transform: rotate(180deg);
}

.settings-accordion-body {
    padding: 14px 16px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeIn 0.2s ease;
}

/* iOS Style Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: var(--bg-accent);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

input:checked + .slider {
    background-color: var(--primary);
    border-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.btn-sm {
    padding: 10px 12px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
}

.settings-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.settings-actions button {
    flex: 1;
    padding: 14px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

/* Bottom App Navigation (Mobile App Dock Bar) */
.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(19, 24, 34, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    z-index: 50;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.45);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-bottom-nav .nav-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: var(--radius-sm);
    font-family: inherit;
}

.app-bottom-nav .nav-icon {
    font-size: 1.4rem;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-bottom-nav .nav-label {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.app-bottom-nav .nav-tab.active {
    color: var(--primary-light);
}

.app-bottom-nav .nav-tab.active .nav-icon {
    transform: scale(1.18);
}

.app-bottom-nav .nav-tab:active {
    transform: scale(0.92);
}

/* Toast with Interactive Action Support */
.toast {
    position: fixed;
    bottom: calc(76px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: rgba(24, 31, 44, 0.98);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-highlight);
    box-shadow: var(--shadow-lg);
    font-size: 0.92rem;
    font-weight: 700;
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.toast-undo-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0b0e14;
    border: none;
    border-radius: var(--radius-full);
    padding: 4px 12px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.toast-undo-btn:active {
    transform: scale(0.92);
    filter: brightness(0.9);
}

/* 👑 Zen Pro Member Feature Banner (History Tab) */
.pro-feature-card {
    background: linear-gradient(135deg, rgba(39, 49, 69, 0.95) 0%, rgba(20, 27, 38, 0.95) 100%);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(251, 191, 36, 0.05);
}

.pro-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pro-card-badge {
    font-size: 0.8rem;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pro-card-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.35;
}

.pro-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.btn-pro-unlock {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0b0e14;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(251, 191, 36, 0.3);
    transition: all 0.2s ease;
}

.btn-pro-unlock:active {
    transform: scale(0.97);
    filter: brightness(0.92);
}

/* 👤 Account Status Card in Settings */
.account-status-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.account-status-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.account-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.account-role-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-username {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-type-pill {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.account-type-pill.guest {
    background: rgba(154, 176, 200, 0.2);
    color: var(--text-muted);
    border: 1px solid rgba(154, 176, 200, 0.3);
}

.account-type-pill.member {
    background: rgba(251, 191, 36, 0.2);
    color: #fde047;
    border: 1px solid rgba(251, 191, 36, 0.5);
}

.account-sync-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* 👑 Zen Pro Modal Styling */
.pro-modal-crown {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2px;
    filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.5));
}

.pro-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 4px 0;
}

.pro-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

.benefit-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.benefit-texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.benefit-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
}

.benefit-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.pro-contact-box {
    background: rgba(74, 148, 232, 0.12);
    border: 1px solid rgba(74, 148, 232, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contact-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--primary-light);
}

.contact-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
