/* ===== CSS Variables - Design System ===== */
:root {
    /* Primary Colors */
    --primary: #05D0A0;
    --primary-dark: #04A880;
    --primary-mid: #07E8B5;
    --primary-light: rgba(5, 208, 160, 0.12);
    --primary-lighter: rgba(5, 208, 160, 0.06);
    
    /* Accent Colors */
    --secondary: #ACEB07;
    --accent: #ACEB07;
    
    /* Semantic Colors */
    --background: #F0FBF6;
    --surface: #FFFFFF;
    --error: #EF4444;
    --success: #05D0A0;
    --warning: #F59E0B;
    --info: #0EA5E9;
    
    /* Text Colors */
    --text: #0A2920;
    --text-secondary: #2E8C72;
    --disabled: #A0CEBF;
    --placeholder: #7AB8A8;
    
    /* Structural Colors */
    --border: #C2E8DC;
    --backdrop: rgba(0, 0, 0, 0.5);
    
    /* Special Colors */
    --header-bg: #05D0A0;
    --splash-bg: #0D4F3C;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 4px 14px rgba(5, 208, 160, 0.35);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 208, 160, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
}

.btn-lime {
    background-color: var(--secondary);
    color: var(--splash-bg);
    box-shadow: 0 4px 14px rgba(172, 235, 7, 0.35);
}

.btn-lime:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, #04b88a 100%);
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: 100px;
    box-shadow: 0 8px 24px rgba(5, 208, 160, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
    user-select: none;
}

.btn-coming-soon:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(5, 208, 160, 0.45);
}

.coming-soon-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.btn-block {
    width: 100%;
}

.btn .material-icons-outlined {
    font-size: 20px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
}

.nav-menu {
    display: flex;
    gap: var(--spacing-xl);
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.nav-buttons {
    display: flex;
    gap: var(--spacing-md);
}

.nav-toggle {
    display: none;
    color: var(--text);
}

.nav-toggle .material-icons-outlined {
    font-size: 28px;
}

.nav-instagram {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.nav-instagram svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.nav-instagram:hover {
    color: #e1306c;
    border-color: #e1306c;
    background: rgba(225, 48, 108, 0.05);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding: 110px 0 64px;
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-light);
    top: -200px;
    right: -100px;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(172, 235, 7, 0.15);
    bottom: -100px;
    left: -100px;
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 8px 16px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-lg);
}

.hero-badge .material-icons-outlined {
    font-size: 18px;
    color: var(--secondary);
}

.hero-title {
    margin-bottom: var(--spacing-lg);
    font-weight: 800;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

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

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

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

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.hero-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(var(--primary-rgb, 0, 196, 140), 0.08);
    border: 1px solid rgba(var(--primary-rgb, 0, 196, 140), 0.2);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.hero-feature-pill .material-icons-outlined {
    font-size: 16px;
    color: var(--primary);
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 50px 100px -20px rgba(0, 0, 0, 0.25),
        0 30px 60px -30px rgba(0, 0, 0, 0.3),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--background);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-light), transparent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(40px);
}

/* App Preview inside phone */
.app-preview {
    padding: var(--spacing-md);
    padding-bottom: 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.app-preview::-webkit-scrollbar {
    display: none;
}

.app-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.app-header-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
}

.app-header-greeting {
    flex: 1;
}

.greeting-text {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.greeting-sub {
    font-size: 12px;
    color: var(--text-secondary);
}

.app-header-bell {
    position: relative;
    color: var(--text-secondary);
}

.app-header-bell .material-icons-outlined {
    font-size: 24px;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
}

.app-progress-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-md);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    font-size: 13px;
    font-weight: 600;
}

.progress-percent {
    color: var(--primary);
}

.progress-bar {
    height: 8px;
    background: var(--background);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-around;
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.mini-stat .material-icons-outlined {
    font-size: 16px;
    color: var(--primary);
}

.app-quick-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.quick-action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--spacing-sm);
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.quick-action .material-icons-outlined {
    font-size: 24px;
    color: var(--primary);
}

.quick-action span:last-child {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.app-habits-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 10px 12px;
    box-shadow: var(--shadow-sm);
    margin-top: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.habits-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.habits-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}

.habits-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 7px;
    border-radius: 100px;
}

.habit-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: var(--text-secondary);
}

.habit-check .material-icons-outlined {
    font-size: 16px;
    color: var(--border);
}

.habit-check.checked .material-icons-outlined {
    color: var(--primary);
}

.habit-name {
    font-size: 11px;
    font-weight: 500;
}

.app-streak-row {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #fff7ed, #fff);
    border: 1px solid #fed7aa;
    border-radius: var(--radius-md);
    padding: 8px 12px;
    margin-top: var(--spacing-sm);
}

.app-tab-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: white;
    border-top: 1px solid var(--border);
    padding: 8px 4px 10px;
    flex-shrink: 0;
}

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

.app-tab .material-icons-outlined {
    font-size: 20px;
    color: var(--text-secondary);
}

.app-tab span:last-child {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-secondary);
}

.app-tab.active .material-icons-outlined {
    color: var(--primary);
}

.app-tab.active span:last-child {
    color: var(--primary);
    font-weight: 600;
}

.app-streak-row .material-icons-outlined {
    font-size: 18px;
    color: #f97316;
}

.streak-text {
    font-size: 11px;
    color: var(--text);
    flex: 1;
}

.streak-badge {
    font-size: 14px;
}

/* ===== Section Styles ===== */
section {
    padding: 72px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--spacing-xxl);
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-md);
}

.section-title {
    margin-bottom: var(--spacing-md);
}

.section-description {
    color: var(--text-secondary);
    font-size: 17px;
}

/* ===== Features Section ===== */
.features {
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--background);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card.featured {
    grid-row: span 2;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.feature-card.featured .feature-title,
.feature-card.featured .feature-description {
    color: white;
}

.feature-card.featured .feature-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.feature-card.featured .feature-list li {
    color: rgba(255, 255, 255, 0.9);
}

.feature-card.featured .feature-list .material-icons-outlined {
    color: var(--secondary);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
}

.feature-icon .material-icons-outlined {
    font-size: 28px;
}

.feature-icon-primary {
    background-color: var(--primary-light);
    color: var(--primary);
}

.feature-icon-lime {
    background-color: rgba(172, 235, 7, 0.15);
    color: #7BA506;
}

.feature-title {
    font-size: 18px;
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-list {
    margin-top: var(--spacing-md);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 14px;
    margin-bottom: var(--spacing-sm);
}

.feature-list .material-icons-outlined {
    font-size: 18px;
    color: var(--secondary);
}

/* ===== Benefits Section ===== */
.benefits {
    background: var(--background);
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 960px;
    margin: 0 auto;
    gap: var(--spacing-xl);
}

.benefits-visual {
    position: relative;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefits-phones {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Apple Watch style */
.benefit-watch {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-watch-1 {
    top: 30px;
    left: 8%;
    z-index: 2;
}

.benefit-watch-2 {
    bottom: 30px;
    left: 42%;
    z-index: 1;
}

.watch-band {
    width: 68px;
    height: 72px;
    background: linear-gradient(160deg, #94a3b8, #64748b);
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.watch-band-top {
    border-radius: 10px 10px 4px 4px;
    margin-bottom: -1px;
    z-index: 0;
}

.watch-band-bottom {
    border-radius: 4px 4px 10px 10px;
    margin-top: -1px;
    z-index: 0;
}

.watch-body {
    position: relative;
    width: 150px;
    background: linear-gradient(160deg, #e2e8f0, #cbd5e1);
    border-radius: 40px;
    padding: 8px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15), inset 0 0 0 1.5px rgba(255,255,255,0.7);
    z-index: 1;
}

.watch-crown {
    position: absolute;
    right: -7px;
    top: 42%;
    transform: translateY(-50%);
    width: 7px;
    height: 28px;
    background: linear-gradient(to right, #94a3b8, #cbd5e1);
    border-radius: 0 4px 4px 0;
    box-shadow: inset -1px 0 0 rgba(0,0,0,0.1);
}

.watch-screen {
    background: #f8fafc;
    border-radius: 34px;
    padding: 14px 12px;
    height: 160px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}

.watch-time {
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.watch-metric {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    padding: 6px 8px;
}

.watch-metric-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.watch-metric-icon .material-icons-outlined {
    font-size: 14px;
    color: white;
}

.watch-metric-icon.steps { background: var(--primary); }
.watch-metric-icon.calories { background: #ef4444; }
.watch-metric-icon.heartrate { background: #ec4899; }

.watch-metric-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.watch-metric-val {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}

.watch-metric-lbl {
    font-size: 10px;
    color: var(--text-secondary);
}

.watch-workout-header {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
}

.watch-workout-header .material-icons-outlined {
    font-size: 14px;
    color: var(--primary);
}

.watch-workout-header span:nth-child(2) {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    flex: 1;
}

.watch-workout-badge {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(5, 208, 160, 0.15);
    padding: 2px 6px;
    border-radius: 100px;
}

.watch-exercise {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(148, 163, 184, 0.12);
    border-radius: 10px;
    padding: 6px 8px;
    margin-bottom: 4px;
}

.watch-exercise-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
}

.watch-exercise-sets {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
}

.mini-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
}

.mini-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.mini-icon .material-icons-outlined {
    font-size: 20px;
    color: white;
}

.mini-icon.steps { background: var(--primary); }
.mini-icon.calories { background: #EF4444; }
.mini-icon.trophy { background: #F59E0B; }

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

.mini-value {
    font-size: 16px;
    font-weight: 700;
}

.mini-label {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Workout Screen */
.workout-screen .workout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    font-size: 14px;
    font-weight: 700;
}

.workout-badge {
    font-size: 11px;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: var(--radius-full);
}

.workout-item {
    display: flex;
    gap: var(--spacing-sm);
    background: white;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
}

.workout-gif {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light), rgba(172, 235, 7, 0.15));
    border-radius: var(--radius-sm);
}

.workout-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.workout-sets {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Benefits Text */
.benefits-list {
    margin-top: var(--spacing-xl);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-lg);
}

.benefit-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    align-items: flex-start;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.benefit-icon .material-icons-outlined {
    font-size: 24px;
}

.benefit-content h4 {
    margin-bottom: 4px;
}

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

.benefit-content ul {
    margin-top: 8px;
    padding-left: 18px;
    list-style: disc;
}

.benefit-content ul li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

/* ===== App Showcase Section ===== */
.app-showcase {
    background: white;
}

.showcase-slider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.showcase-slider::-webkit-scrollbar {
    display: none;
}

.showcase-item {
    flex: unset;
    scroll-snap-align: unset;
    opacity: 1;
    transform: scale(1);
    transition: all var(--transition-normal);
}

.showcase-item.active {
    opacity: 1;
    transform: scale(1);
}

.showcase-phone {
    margin-bottom: var(--spacing-md);
}

.showcase-screen {
    width: 100%;
    max-width: 240px;
    height: 420px;
    background: var(--background);
    border-radius: 28px;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
    overflow: hidden;
}

.screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    font-size: 14px;
    font-weight: 600;
}

.screen-header .material-icons-outlined {
    font-size: 20px;
    color: var(--text-secondary);
}

/* Dashboard Screen */
.dashboard-progress {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 8;
}

.progress-value {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
}

.progress-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.prog-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.prog-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.dashboard-metrics {
    display: flex;
    justify-content: space-around;
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
}

.metric {
    text-align: center;
}

.metric-val {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.metric-lbl {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Workouts Screen */
.workout-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.workout-card-mini {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
}

.wk-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wk-icon .material-icons-outlined {
    color: var(--primary);
}

.wk-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.wk-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Nutrition Screen */
.nutrition-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.food-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
}

.food-image {
    width: 60px;
    height: 60px;
    background: var(--background);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.food-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.food-cals {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

.macros-row {
    display: flex;
    justify-content: space-around;
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
}

.macro {
    text-align: center;
}

.macro-val {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.macro-lbl {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Community Screen */
.community-feed {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.post-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
}

.post-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.post-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
}

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

.post-time {
    font-size: 11px;
    color: var(--text-secondary);
}

.post-text {
    font-size: 13px;
    margin-bottom: var(--spacing-sm);
}

.post-actions {
    display: flex;
    gap: var(--spacing-md);
    color: var(--text-secondary);
    font-size: 13px;
}

.post-actions span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-actions .material-icons-outlined {
    font-size: 18px;
}

/* Showcase Info */
.showcase-info {
    text-align: center;
    padding: 0 var(--spacing-md);
}

.showcase-info h3 {
    margin-bottom: var(--spacing-xs);
}

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

/* Showcase Dots */
.showcase-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--border);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: var(--radius-full);
}

/* ===== Plans Section ===== */
.plans {
    background: var(--background);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    align-items: start;
}

.plan-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    position: relative;
    transition: all var(--transition-normal);
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.plan-featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.plan-featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.plan-pro {
    background: linear-gradient(135deg, var(--splash-bg), #0A3D2E);
    color: white;
}

.plan-pro .plan-name,
.plan-pro .price-value,
.plan-pro .plan-description {
    color: white;
}

.plan-pro .price-period {
    color: rgba(255, 255, 255, 0.7);
}

.plan-pro .plan-features li {
    color: rgba(255, 255, 255, 0.9);
}

.plan-pro .plan-features .material-icons-outlined {
    color: var(--secondary);
}

.plan-pro .plan-features .disabled {
    color: rgba(255, 255, 255, 0.4);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-full);
}

.plan-header {
    text-align: center;
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--spacing-lg);
}

.plan-pro .plan-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.plan-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-value {
    font-size: 40px;
    font-weight: 800;
    color: var(--text);
}

.price-period {
    font-size: 16px;
    color: var(--text-secondary);
}

.plan-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
}

.plan-features {
    margin-bottom: var(--spacing-xl);
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 14px;
    padding: var(--spacing-sm) 0;
}

.plan-features .material-icons-outlined {
    font-size: 20px;
    color: var(--primary);
}

.plan-features .disabled {
    color: var(--disabled);
}

.plan-features .disabled .material-icons-outlined {
    color: var(--disabled);
}

/* ===== Download CTA Section ===== */
.download-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 80px 0;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xxl);
}

.cta-text {
    color: white;
    max-width: 500px;
}

.cta-text h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.cta-text p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
}

.store-buttons {
    display: flex;
    gap: var(--spacing-md);
}

.store-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.store-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.store-btn svg {
    width: 28px;
    height: 28px;
}

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

.store-label {
    font-size: 11px;
    opacity: 0.8;
}

.store-name {
    font-size: 16px;
    font-weight: 600;
}

.cta-visual {
    position: relative;
}

.cta-app-icon {
    width: 180px;
    height: 180px;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cta-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* ===== FAQ Section ===== */
.faq {
    background: white;
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg) 0;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    color: var(--text);
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question .material-icons-outlined {
    font-size: 24px;
    color: var(--text-secondary);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-question .material-icons-outlined {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding-bottom: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
    background: var(--splash-bg);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--spacing-xxl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.footer-logo .logo-img {
    width: 48px;
    height: 48px;
}

.footer-logo .logo-text {
    color: white;
    font-size: 1.5rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-lg);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.footer-column h4 {
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
}

.footer-column ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    background: transparent;
    color: #ffffff;
    border-radius: 50%;
    box-shadow: none;
    font-size: 14px;
    font-weight: 600;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.whatsapp-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-icon img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.whatsapp-text {
    white-space: nowrap;
}

@media (max-width: 600px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-card.featured {
        grid-column: span 2;
        grid-row: auto;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .plan-featured {
        transform: none;
    }
    
    .plan-featured:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-description {
        margin: 0 auto var(--spacing-xl);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .phone-frame {
        width: 240px;
        height: 500px;
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
    }
    
    .benefits-visual {
        height: 400px;
        order: 2;
    }
    
    .benefits-text {
        order: 1;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .store-buttons {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    .nav-menu,
    .nav-buttons {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu.active {
        display: flex;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        gap: var(--spacing-md);
    }
    
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card.featured {
        grid-column: auto;
    }
    
    section {
        padding: 60px 0;
    }
    
    .showcase-slider {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-item {
        width: 100%;
    }
    
    .benefit-watch {
        transform: scale(0.85);
        transform-origin: center top;
    }
    
    .benefit-watch-1 {
        left: 5%;
    }
    
    .benefit-watch-2 {
        right: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .hero-stats {
        flex-wrap: wrap;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-item {
        flex: 1;
        min-width: 80px;
    }
    
    .store-buttons {
        flex-direction: column;
    }
    
    .store-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.phone-mockup {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.notification-badge {
    animation: pulse 2s ease-in-out infinite;
}

/* ===== Dashboard B2B ===== */
.dashboard-main {
    padding-top: 28px; /*== NÃO ALTERAR ESSE VALOR ==*/
    padding-bottom: 60px;
    background: var(--background);
    min-height: 100vh;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.dashboard-sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: 72px; /* natural start must clear the 72px fixed header */
}

.dashboard-company {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.dashboard-company-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.dashboard-company-logo {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: url('assets/images/icon.png') center/cover no-repeat, var(--primary-light);
    box-shadow: var(--shadow-md);
}

.dashboard-company-name {
    text-align: center;
    font-weight: 700;
    margin-bottom: 4px;
}

.dashboard-company-sub {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.dashboard-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-menu-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 10px 12px;
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.dashboard-menu-item .material-icons-outlined {
    font-size: 20px;
}

.dashboard-menu-item:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateX(2px);
}

.dashboard-menu-item.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.dashboard-help-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    font-size: 14px;
}

.dashboard-help-card h4 {
    margin-bottom: 4px;
}

.dashboard-help-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.dashboard-content-section {
    display: none;
    padding: 0;
}

.dashboard-content-section.is-active {
    display: block;
}

.dashboard-content-header {
    margin-top: 0;
    padding-top: 0;
}

.dashboard-content-header h1 {
    font-size: clamp(1.25rem, 1.8vw, 1.6rem);
    margin: 0 0 4px;
    line-height: 1.2;
}

.dashboard-content-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-lg);
}

.dashboard-grid-two-thirds {
    grid-template-columns: 1.1fr 1.3fr;
}

.dashboard-grid-teachers {
    grid-template-columns: 0.9fr 1.4fr;
    align-items: stretch;
}

.dashboard-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}
.dashboard-card-header-row h2 {
    margin: 0;
}

.dashboard-teachers-right {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.dashboard-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
}

.dashboard-card-full-height {
    height: 100%;
}

.dashboard-card h2 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.dashboard-card-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.dashboard-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--spacing-md);
}

.dashboard-form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.dashboard-input {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.dashboard-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary-light);
}

.dashboard-color-input {
    width: 52px;
    height: 32px;
    padding: 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: transparent;
}

.dashboard-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.dashboard-help-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.dashboard-file-input input[type="file"] {
    font-size: 13px;
}

.dashboard-file-hint {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.dashboard-preview {
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: var(--spacing-lg);
    color: white;
}

.dashboard-preview-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.dashboard-preview-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: url('assets/images/icon.png') center/cover no-repeat, rgba(0,0,0,0.15);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.dashboard-preview-app {
    font-weight: 700;
}

.dashboard-preview-sub {
    font-size: 13px;
    opacity: 0.85;
}

.dashboard-preview-body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.dashboard-preview-row {
    display: flex;
    gap: var(--spacing-sm);
}

.dashboard-preview-card {
    flex: 1;
    border-radius: var(--radius-lg);
    padding: 10px 12px;
    font-size: 13px;
}

.dashboard-preview-card.primary {
    background: rgba(5, 208, 160, 0.2);
}

.dashboard-preview-card.accent {
    background: rgba(172, 235, 7, 0.25);
    color: #1a2b12;
}

.dashboard-preview-card.neutral {
    background: rgba(255, 255, 255, 0.15);
}

.dashboard-preview-label {
    display: block;
    font-size: 11px;
    opacity: 0.85;
}

.dashboard-preview-value {
    font-weight: 600;
}

.dashboard-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
    justify-content: flex-end;
}

.nav-link.active {
    color: var(--primary);
}

/* Professores & Alunos */
.teacher-list,
.student-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.teacher-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--background);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.teacher-row-main {
    display: flex;
    flex-direction: column;
}

.teacher-name {
    font-size: 14px;
    font-weight: 600;
}

.teacher-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.teacher-count-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
}

.teacher-row:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.teacher-row.active {
    background: var(--primary-light);
    border-color: var(--primary);
}

.teacher-detail-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--spacing-md);
    padding: 10px 14px;
    background: var(--primary-light, #ecfdf5);
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-lg);
}

.teacher-detail-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .4px;
    flex-shrink: 0;
}

.teacher-detail-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark, #065f46);
}

/* teacher/student JS-rendered sub-row classes */
.teacher-row-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.teacher-row-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.teacher-row-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}
.teacher-row-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 8px;
}
.student-row-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.student-row-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.student-row-plan {
    font-size: 11px;
    color: #9ca3af;
}

.student-detail {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.student-detail-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--spacing-md);
}

.student-detail-name {
    font-size: 15px;
    font-weight: 600;
}

.student-detail-assign {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 220px;
}

.student-detail-assign label {
    font-size: 13px;
    color: var(--text-secondary);
}

.student-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--background);
    font-size: 13px;
}

.student-main {
    display: flex;
    flex-direction: column;
}

.student-name {
    font-weight: 600;
}

.student-plan {
    font-size: 12px;
    color: var(--text-secondary);
}

.student-status-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.student-status-ok {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.student-status-delay {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.student-status-warning {
    background: rgba(234, 179, 8, 0.16);
    color: #92400e;
}

.student-exercises {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.student-exercise-row {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr 0.6fr;
    gap: var(--spacing-sm);
    align-items: center;
}

.student-exercise-row input {
    width: 100%;
}

@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-grid-teachers {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
        order: 2;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        padding: var(--spacing-lg);
    }
}

/* ===== Dashboard — Notebook / Laptop Optimisation (1025 – 1440 px) ===== */
/* Resolve: "tudo muito amontuado" on 13"-15" laptops.                       */
/* Targets screens where the sidebar + content share ~1280 px of real estate */
@media (min-width: 1025px) and (max-width: 1440px) {

    /* Narrower sidebar saves ~40 px for the content area */
    .dashboard-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: var(--spacing-md);
    }

    /* Keep sticky sidebar clear of the fixed nav */
    .dashboard-sidebar {
        top: 96px;
        gap: var(--spacing-md);
    }

    /* Company card — tighter */
    .dashboard-company {
        padding: var(--spacing-md);
    }

    .dashboard-company-logo {
        width: 52px;
        height: 52px;
    }

    /* Nav items — smaller text & padding */
    .dashboard-menu-item {
        font-size: 13px;
        padding: 8px 10px;
        gap: 7px;
    }

    .dashboard-menu-item .material-icons-outlined {
        font-size: 18px;
    }

    /* Help card — compact */
    .dashboard-help-card {
        padding: var(--spacing-md);
        font-size: 13px;
    }

    /* Cards — reduce padding so content breathes without page being endless */
    .dashboard-card {
        padding: 18px 20px;
    }

    /* Grid gap */
    .dashboard-grid,
    .dashboard-grid-teachers {
        gap: var(--spacing-md);
    }

    /* Form groups & rows — tighter vertical rhythm */
    .dashboard-form-group {
        margin-bottom: 12px;
    }

    .dashboard-form-row {
        gap: var(--spacing-md);
        margin-bottom: 12px;
    }

    /* Actions row */
    .dashboard-actions {
        margin-top: var(--spacing-md);
    }

    /* Branding grid — allow form column to be compact */
    .dashboard-grid.branding-grid {
        grid-template-columns: minmax(220px, 340px) 1fr;
        gap: var(--spacing-md);
        align-items: start;
    }

    /* Member table — tighter rows */
    .member-table th,
    .member-table td {
        padding: 7px 10px;
        font-size: 12px;
    }

    /* Student exercise rows */
    .student-exercise-row {
        gap: 10px;
    }
}

/* ===== Dashboard Visual Polish ===== */

/* Active sidebar menu item — stronger visual indicator */
.dashboard-menu-item.active {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 700;
    border-left: 3px solid var(--primary);
    padding-left: 9px;
}

/* Sidebar card polish */
.dashboard-company {
    border-top: 3px solid var(--primary);
}

.dashboard-company-logo {
    transition: transform var(--transition-fast);
}

.dashboard-company-logo:hover {
    transform: scale(1.06);
}

/* Dashboard card subtle hover lift */
.dashboard-card {
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.dashboard-card:hover {
    box-shadow: 0 8px 32px rgba(5, 208, 160, 0.10), var(--shadow-lg);
}

/* Teacher row improvements */
.teacher-row {
    box-shadow: none;
    transition: background var(--transition-fast), border-color var(--transition-fast),
                transform var(--transition-fast), box-shadow var(--transition-fast);
}

.teacher-row:hover {
    box-shadow: 0 2px 10px rgba(5, 208, 160, 0.15);
    transform: translateY(-1px);
}

.teacher-row.active {
    box-shadow: 0 2px 12px rgba(5, 208, 160, 0.20);
    font-weight: 600;
}

/* Teacher delete button — small + subtle */
.teacher-row .btn-danger-sm {
    font-size: 11px;
    padding: 4px 9px;
    border-radius: var(--radius-md);
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.20);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    flex-shrink: 0;
}

.teacher-row .btn-danger-sm:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.45);
}

/* Student row improvements */
.student-row {
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast),
                box-shadow var(--transition-fast), transform var(--transition-fast);
}

.student-row:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateX(2px);
}

.student-row.active {
    background: var(--primary-light);
    border-color: var(--primary);
    box-shadow: 0 1px 6px rgba(5, 208, 160, 0.18);
}

/* btn-sm — defined in CSS (was inline) */
.btn-sm {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: var(--radius-lg);
}

/* Add teacher form panel — CSS-driven instead of inline styles */
#addTeacherForm {
    background: #f0fdf4;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

#addTeacherForm.is-visible {
    animation: fadeSlideDown 0.18s ease;
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* Content header bottom separator */
.dashboard-content-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

/* Member form error text */
.member-form-error {
    font-size: 13px;
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.20);
    border-radius: var(--radius-md);
    padding: 6px 12px;
}

/* Empty state placeholder */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl) 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.empty-state .material-icons-outlined {
    font-size: 36px;
    opacity: 0.4;
    display: block;
    margin-bottom: var(--spacing-sm);
}

/* Status badge slight elevation */
.student-status-badge {
    box-shadow: none;
    letter-spacing: 0.01em;
}

/* Student performance panel */
.student-perf-content {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    margin: 10px 0 var(--spacing-md);
}

.student-perf-metrics {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.student-perf-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.student-perf-metric:last-child {
    border-bottom: none;
}

.student-perf-label {
    color: var(--text-secondary);
}

.student-perf-value {
    font-weight: 600;
}

/* ═════ Professor Assignment Stepper ═════ */

/* Header with numbered dots + connector line */
.stepper-header {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 16px;
}

.stepper-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.stepper-step.is-active {
    color: var(--primary-dark, #0A2920);
}

.stepper-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--background);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.stepper-step.is-active .stepper-dot {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.stepper-step.is-done .stepper-dot {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.stepper-connector {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 8px;
    border-radius: 2px;
    position: relative;
    transition: background 0.2s;
}

.stepper-connector.is-done {
    background: var(--primary);
}

/* Pane that holds each step's content */
.stepper-pane {
    animation: stepFadeIn 0.18s ease;
}

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

/* Step 1: current trainer display */
.current-trainer-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--background);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
}

.current-trainer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(5, 208, 160, 0.15);
    color: var(--primary-dark, #0A2920);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.current-trainer-info {
    display: flex;
    flex-direction: column;
}

.current-trainer-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.current-trainer-sub {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Step 2: trainer pick grid */
.trainer-pick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.trainer-pick-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--background);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.trainer-pick-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.trainer-pick-card.is-selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(5, 208, 160, 0.25);
}

.trainer-pick-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(5, 208, 160, 0.15);
    color: var(--primary-dark, #0A2920);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trainer-pick-card.is-selected .trainer-pick-avatar {
    background: var(--primary);
    color: #fff;
}

.trainer-pick-card-none {
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.trainer-pick-card-none .trainer-pick-avatar {
    background: #f3f4f6;
    color: #9ca3af;
}

.stepper-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 4px;
}


/* ===== Analytics / Frequencia (B2B) ===== */
.analytics-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.analytics-kpi-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}
.analytics-kpi-icon { font-size: 26px; margin-bottom: 2px; }
.analytics-kpi-value { font-size: 26px; font-weight: 800; line-height: 1.1; }
.analytics-kpi-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.analytics-kpi-sub   { font-size: 11px; color: var(--text-secondary); margin-top: 1px; }
.analytics-kpi-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e5e5e5 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: var(--radius-lg);
    height: 110px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}
@keyframes skeleton-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

.analytics-freq-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.analytics-freq-table thead th {
    padding: 8px 10px;
    border-bottom: 2px solid var(--border);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
    text-align: left;
}
.analytics-freq-table tbody td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.analytics-freq-row:hover { background: var(--background); }
.analytics-freq-row:last-child td { border-bottom: none; }

#analyticsEvolutionPanel {
    margin-top: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}
#analyticsEvolutionPanel .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
#analyticsEvolutionPanel .panel-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===================================================================
   Nutrition Horizontal Panel (npanel) — B2B Dashboard
   =================================================================== */

/* Remove default card padding so internal sections go edge-to-edge */
.npanel.dashboard-card {
    padding: 0 !important;
    overflow: hidden;
}

/* ── Topbar ── */
.npanel-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px 14px;
    border-bottom: 1px solid var(--border);
}
.npanel-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.npanel-icon {
    color: var(--primary);
    font-size: 24px;
    flex-shrink: 0;
}
.npanel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.npanel-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 1px;
}
.npanel-objective-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: #dcfce7;
    color: #15803d;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Mode toggle (topbar right) */
.meal-plan-mode-toggle {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: #e5e7eb;
    gap: 2px;
    flex-shrink: 0;
}
.meal-plan-mode-btn {
    border: none;
    background: transparent;
    border-radius: 999px;
    padding: 5px 13px;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.meal-plan-mode-btn.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.15);
}

/* ── Config strip ── */
.npanel-config-strip {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}
.npanel-config-cell {
    padding: 16px 22px;
    border-right: 1px solid var(--border);
}
.npanel-config-cell:last-child {
    border-right: none;
}
.npanel-config-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: 0;
}

/* Remove button stacked below select */
.npanel-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
    width: 100%;
    font-size: 12px;
    color: #64748b !important;
    border-color: #cbd5e1 !important;
}
.npanel-remove-btn:hover {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
}

/* Macros full-width band below config strip */
.npanel-macros-band {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 22px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}
.npanel-macros-band-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Macros shared styles */
.meal-plan-macros-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.meal-plan-macro-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
}
.meal-plan-macro-field:focus-within {
    border-color: var(--primary);
    background: #f0fdf4;
}
.meal-plan-macro-field label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0;
}
.meal-plan-macro-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}
.meal-plan-macro-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.meal-plan-macro-input-wrap input {
    width: 100%;
    padding-right: 38px !important;
    text-align: right;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    height: 32px;
}
.meal-plan-macro-input-wrap input:focus {
    outline: none;
    box-shadow: none !important;
}
.meal-plan-macro-unit {
    position: absolute;
    right: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    pointer-events: none;
}

/* ── Day tabs bar ── */
.meal-plan-day-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.npanel-day-tabs {
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
}
.meal-plan-day-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.meal-plan-day-tab.active {
    background: var(--primary-soft, #ecfdf5);
    border-color: var(--primary, #059669);
    color: var(--primary, #047857);
}
.meal-plan-day-tab:hover:not(.active) {
    background: #f3f4f6;
}
.meal-plan-day-tab-add {
    border-style: dashed;
    color: var(--primary);
    border-color: var(--primary);
    background: transparent;
}
.day-tab-rename-btn {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0;
    padding: 0 0 0 2px;
    font-size: 11px;
    color: var(--primary, #059669);
    line-height: 1;
    transition: opacity .15s;
}
.meal-plan-day-tab:hover .day-tab-rename-btn,
.meal-plan-day-tab.active .day-tab-rename-btn {
    opacity: 0.55;
}
.day-tab-rename-btn:hover {
    opacity: 1 !important;
}
.day-tab-remove {
    margin-left: 4px;
    font-size: 13px;
    opacity: 0.55;
    cursor: pointer;
    transition: opacity .15s;
}
.day-tab-remove:hover {
    opacity: 1;
}
.day-tab-label-input {
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--primary, #059669);
    outline: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary, #047857);
    min-width: 30px;
    max-width: 140px;
    width: 5ch;
    padding: 0 2px;
}

/* ── Meal timeline ── */
.npanel-timeline {
    padding: 20px 22px 0;
    background: #f8fafc;
}
.npanel-timeline-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* Horizontal scrollable track of meal columns */
.npanel-track {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #a7f3d0 transparent;
}
.npanel-track::-webkit-scrollbar {
    height: 6px;
}
.npanel-track::-webkit-scrollbar-thumb {
    background: #a7f3d0;
    border-radius: 99px;
}
.npanel-track::-webkit-scrollbar-track {
    background: transparent;
}

/* Individual meal column */
.meal-col {
    flex: 1 0 185px;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 3px 0 rgb(0 0 0/.07), 0 1px 2px -1px rgb(0 0 0/.05);
    transition: box-shadow .18s, border-color .18s;
}
.meal-col:focus-within {
    border-color: var(--primary, #059669);
    box-shadow: 0 0 0 3px rgba(5,150,105,.12), 0 2px 8px 0 rgb(0 0 0/.08);
}
.meal-col-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 14px 12px 11px;
    border-bottom: 1px solid;
}
.meal-col-emoji {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgb(0 0 0/.1);
}
.meal-col-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.35;
    letter-spacing: .1px;
}
.meal-col-time {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    background: rgba(255,255,255,.7);
    color: var(--text-primary);
    text-align: center;
    backdrop-filter: blur(4px);
}
.meal-col-textarea {
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    resize: none;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.6;
    padding: 14px 14px !important;
    min-height: 150px;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    color: var(--text-primary);
    background: #fff;
}
.meal-col-textarea::placeholder {
    color: #b0bec5;
    font-style: italic;
    font-size: 12.5px;
}
.meal-col-textarea:focus {
    outline: none;
    box-shadow: none;
    background: #fafffe;
}

/* Day pill in timeline heading */
.npanel-day-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--primary, #059669);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.npanel-timeline-hint {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Supplementos full-width row below the track */
.npanel-supl-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0 20px;
    border-top: 1px solid #d1fae5;
    margin-top: 18px;
}
.npanel-supl-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #d1fae5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 1px 3px rgb(0 0 0/.08);
}
.npanel-supl-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: .6px;
}
.npanel-supl-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}
.npanel-supl-textarea {
    width: 100%;
    min-height: 64px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.6;
    color: var(--text-primary);
    background: #ffffff;
    resize: vertical;
    box-shadow: inset 0 1px 3px rgb(0 0 0/.04);
    transition: border-color .15s, box-shadow .15s;
}
.npanel-supl-textarea::placeholder { color: #b0bec5; font-style: italic; }
.npanel-supl-textarea:focus {
    outline: none;
    border-color: var(--primary, #059669);
    box-shadow: 0 0 0 3px rgba(5,150,105,.1);
}

/* App restrictions sub-section inside the restrictions cell */
.npanel-app-restrictions {
    padding-bottom: 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.npanel-app-restr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.npanel-import-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 6px;
    border: 1px solid #16a34a;
    background: #f0fdf4;
    color: #15803d;
    cursor: pointer;
    font-weight: 600;
    line-height: 1.4;
    transition: background .15s;
}
.npanel-import-btn:hover { background: #dcfce7; }
.npanel-app-restr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.npanel-app-restr-empty {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}
.npanel-nutr-restr-block {}

/* Restrictions textarea */
.npanel-restrictions-textarea {
    width: 100%;
    min-height: 68px;
    margin-top: 0;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.6;
    color: var(--text-primary);
    background: #ffffff;
    resize: vertical;
    box-shadow: inset 0 1px 3px rgb(0 0 0/.04);
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.npanel-restrictions-textarea::placeholder { color: #b0bec5; font-style: italic; font-size: 12.5px; }
.npanel-restrictions-textarea:focus {
    outline: none;
    border-color: var(--primary, #059669);
    box-shadow: 0 0 0 3px rgba(5,150,105,.1);
}

/* ── Footer ── */
.npanel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 22px 16px;
    border-top: 1px solid var(--border);
    background: #ffffff;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* ── App restriction chips ── */
.app-restriction-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .npanel-config-strip {
        grid-template-columns: 1fr;
    }
    .npanel-config-cell {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .npanel-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 600px) {
    .meal-plan-macros-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
