/* ========================================
   Mundo Tirze — Design System
   Paleta: Rosa/Roxo Feminino Premium
   ======================================== */

/* === CSS Variables === */
:root {
    /* ══ Cor — rosa pó + ametista profundo ══ */
    --primary:        #d4789a;   /* rosa pó apurado — menos saturado, mais luxo */
    --primary-light:  #e8a8bf;
    --primary-dark:   #a8486e;
    --secondary:      #8b5cf6;   /* violeta profundo */
    --secondary-light:#b08af7;
    --secondary-dark: #5b21b6;

    /* Gradiente — menos saturado, mais cinematográfico */
    --gradient-primary: linear-gradient(135deg, #c96d91 0%, #7c4dcc 100%);
    --gradient-subtle:  linear-gradient(135deg, rgba(201,109,145,0.10) 0%, rgba(124,77,204,0.10) 100%);
    --gradient-glow:    radial-gradient(ellipse at 60% 0%, rgba(201,109,145,0.18) 0%, transparent 60%),
                        radial-gradient(ellipse at 20% 100%, rgba(124,77,204,0.14) 0%, transparent 60%);

    --success: #2dd4a2;
    --background: #faf7fb;
    --surface: #ffffff;
    --accent: #f5eef8;
    --text-primary:   #1a1025;   /* quase preto com matiz roxo */
    --text-secondary: #6d5e7c;
    --text-muted:     #a08fb0;

    --on-light-text:      rgba(26, 16, 37, 0.92);
    --on-light-secondary: rgba(26, 16, 37, 0.65);
    --on-light-muted:     rgba(26, 16, 37, 0.45);

    --border: rgba(180, 150, 200, 0.22);
    --border-strong: rgba(180, 150, 200, 0.40);
    --shadow-sm: 0 1px 4px rgba(139,92,246,0.06), 0 2px 10px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(139,92,246,0.10), 0 1px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(139,92,246,0.15), 0 2px 8px rgba(0,0,0,0.08);
    --shadow-glow: 0 0 40px rgba(201,109,145,0.20);

    /* ── Aliases ── */
    --bg-primary:   #ffffff;
    --bg-secondary: #faf7fb;
    --border-color: rgba(180,150,200,0.22);
    --primary-color: #d4789a;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 24px;

    /* Typography — Cormorant (display) + Jost (ui) */
    --font-display: 'Cormorant Garant', Georgia, serif;
    --font-primary:  'Jost', system-ui, sans-serif;
    --font-size-xs:   0.72rem;
    --font-size-sm:   0.85rem;
    --font-size-base: 0.95rem;
    --font-size-lg:   1.05rem;
    --font-size-xl:   1.2rem;
    --font-size-2xl:  1.5rem;
    --font-size-3xl:  2rem;

    /* Spacing — mais generoso = mais premium */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.75rem;
    --spacing-xl: 2.5rem;
    --spacing-2xl: 4rem;

    /* Layout */
    --sidebar-width: 264px;
    --header-height: 60px;
    --border-radius-sm:   6px;
    --border-radius-md:   10px;
    --border-radius-lg:   14px;
    --border-radius-full: 9999px;

    /* Transitions */
    --transition-fast: 120ms cubic-bezier(0.4,0,0.2,1);
    --transition-base: 220ms cubic-bezier(0.4,0,0.2,1);
    --transition-slow: 380ms cubic-bezier(0.4,0,0.2,1);
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* === Utility Classes === */
.hidden {
    display: none !important;
}

.wave {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

/* === Loading Screen === */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loading-content {
    text-align: center;
    color: var(--on-light-text);
}

.loading-logo {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Auth Container === */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
}

.auth-page {
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background: var(--surface);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.logo-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.auth-logo h1 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.logo-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.auth-form {
    margin-bottom: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.avatar-selector {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.avatar-option {
    cursor: pointer;
}

.avatar-option input {
    display: none;
}

.avatar-option span {
    display: block;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--border);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.avatar-option input:checked + span {
    border-color: var(--primary);
    background: var(--accent);
    transform: scale(1.1);
}

.btn {
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232,121,160,0.4);
}



.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: center;
}
.btn-block {
    width: 100%;
}

.btn-large {
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: var(--font-size-lg);
}

.auth-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* === App Container === */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* === Sidebar === */
.sidebar {
    width: var(--sidebar-width);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    transition: transform var(--transition-base);
}

.sidebar-header {
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--text-primary);
}

.sidebar-menu {
    flex: 1;
    list-style: none;
    padding: var(--spacing-lg) 0;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-xl);
    color: var(--text-secondary);
    font-weight: 600;
    transition: all var(--transition-fast);
    border-left: 4px solid transparent;
}

.menu-item:hover {
    background: var(--gradient-subtle);
    color: var(--primary);
}

.menu-item.active {
    background: var(--gradient-primary);
    color: white !important;
    border-left-color: transparent;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    margin-right: var(--spacing-md);
    box-shadow: 0 4px 15px rgba(232,121,160,0.35);
}

.menu-item.active i {
    color: white !important;
}

.menu-item i {
    font-size: var(--font-size-lg);
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-full);
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.logout-link {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.logout-link:hover {
    color: var(--primary);
}

/* === Mobile Header === */
.mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    height: var(--header-height);
    box-shadow: 0 2px 12px rgba(232,121,160,0.1);
}

.mobile-logo {
    font-weight: 900;
    font-size: var(--font-size-lg);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    cursor: pointer;
    padding: var(--spacing-sm);
}

.mobile-logo {
    font-weight: 800;
    font-size: var(--font-size-lg);
}

.mobile-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-full);
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
}

/* === Main Content === */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: var(--spacing-xl);
    overflow-y: auto;
    height: 100vh;
}

.page-content {
    display: none;
    animation: fadeIn var(--transition-base);
}

.page-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    margin-bottom: var(--spacing-xl);
}

.page-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.page-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
}

/* === Cards === */
.card {
    background: var(--surface);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-xl);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.card-highlight {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    color: var(--on-light-text);
}

.card-highlight h3,
.card-highlight .stat-value,
.card-highlight .stat-meta {
    color: var(--on-light-text);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.card-content h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

/* Ensure text contrast on pastel highlight cards */
.card-highlight .card-content h3,
.card-highlight .stat-meta {
  color: var(--on-light-secondary);
}


.stat-value {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

/* Stat cards on white background (keep readable in dark mode too) */
.stat-card .stat-label {
  color: var(--on-light-secondary);
}
.stat-card .stat-value {
  color: var(--on-light-text);
}
.stat-card .stat-subtitle {
  color: var(--on-light-muted);
}


.stat-meta {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* === Dashboard Grid === */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* === Progress Bar === */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-full);
    overflow: hidden;
    margin-top: var(--spacing-md);
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: var(--border-radius-full);
    transition: width var(--transition-slow);
}

/* === Quick Actions === */
.quick-actions {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

/* === Mood Selector === */
.mood-selector {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.mood-option {
    cursor: pointer;
    text-align: center;
}

.mood-option input {
    display: none;
}

.mood-emoji {
    display: block;
    font-size: 2rem;
    padding: var(--spacing-md);
    border: 3px solid var(--border);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.mood-label {
    display: block;
    font-size: var(--font-size-xs);
    margin-top: var(--spacing-xs);
    color: var(--text-secondary);
}

.mood-option input:checked ~ .mood-emoji {
    border-color: var(--primary);
    background: var(--accent);
    transform: scale(1.1);
}

/* === Diary History === */
.diary-history {
    max-height: 600px;
    overflow-y: auto;
}

.diary-entry {
    padding: var(--spacing-lg);
    border: 2px solid var(--border);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
    transition: border-color var(--transition-fast);
}

.diary-entry:hover {
    border-color: var(--primary);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}


.entry-header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}
.entry-date {
    font-weight: 700;
    color: var(--text-primary);
}

.entry-mood {
    font-size: var(--font-size-xl);
}

.entry-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
}

.entry-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.entry-notes {
    padding: var(--spacing-md);
    background: var(--background);
    border-radius: var(--border-radius-sm);
    font-style: italic;
    color: var(--text-secondary);
}

/* === Community Feed === */
.community-feed {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.community-post {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-fast);
}

.community-post:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.post-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
}

.post-author {
    font-weight: 700;
    color: var(--text-primary);
}

.post-time {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.post-content {
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.post-reactions {
    display: flex;
    gap: var(--spacing-md);
}

.reaction-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--background);
    border: none;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    font-size: var(--font-size-lg);
    transition: all var(--transition-fast);
}

.reaction-btn:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.reaction-btn.active {
    background: var(--primary);
}

/* === Tips Grid === */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.tip-card {
    background: var(--surface);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
    transition: all var(--transition-fast);
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tip-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.tip-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.tip-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === Reflections === */
.reflections-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-height: 600px;
    overflow-y: auto;
}

.reflection-item {
    padding: var(--spacing-lg);
    background: var(--background);
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--secondary);
}

.reflection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.reflection-title {
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

.reflection-date {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.reflection-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

.privacy-notice {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--accent);
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-lg);
    color: var(--primary-dark);
}

/* === Achievements === */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.achievement-card {
    background: var(--surface);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.achievement-card.locked {
    opacity: 0.5;
    filter: grayscale(1);
}

.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.achievement-title {
    font-weight: 700;
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.achievement-desc {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.achievement-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--success);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
}

.achievements-list {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.achievement-mini {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--accent);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-sm);
}

/* === Toast Notification === */
.toast {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    background: var(--text-primary);
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transform: translateY(100%);
    transition: all var(--transition-base);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: #E74C3C;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--text-muted);
    font-style: italic;
}

/* === Checkbox === */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input {
    width: auto;
}

/* === Responsive === */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .mobile-header {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
        padding: var(--spacing-md);
        padding-top: calc(var(--header-height) + var(--spacing-md));
    }
    
    .page-title {
        font-size: var(--font-size-2xl);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .tips-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .mood-selector {
        justify-content: space-between;
    }
    
    .mood-emoji {
        font-size: 1.5rem;
        padding: var(--spacing-sm);
    }
    
    .toast {
        left: var(--spacing-md);
        right: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: var(--spacing-lg);
    }
    
    .page-title {
        font-size: var(--font-size-xl);
    }
    
    .stat-value {
        font-size: var(--font-size-2xl);
    }
}

/* ========================================
   NEW FEATURES STYLES
   ======================================== */

/* === Dark Theme === */
[data-theme="dark"] {
    /* ── Dark theme — noir cinematográfico ── */
    --background:   #0c0812;   /* quase preto com matiz violeta */
    --surface:      #160f22;
    --text-primary: #f0e8f8;
    --text-secondary:#b89ec8;
    --text-muted:   #7a6590;
    --border:       rgba(255,255,255,0.07);
    --border-strong:rgba(255,255,255,0.14);
    --accent:       #1f1530;
    --accent-light: #261a38;
    --accent-dark:  #120a1e;

    --bg-primary:   #160f22;
    --bg-secondary: #0c0812;
    --border-color: rgba(255,255,255,0.07);
    --primary-color:#d4789a;

    --gradient-primary: linear-gradient(135deg, #c96d91 0%, #7c4dcc 100%);
    --gradient-subtle:  linear-gradient(135deg, rgba(201,109,145,0.12) 0%, rgba(124,77,204,0.12) 100%);
    --gradient-glow:    radial-gradient(ellipse at 70% -10%, rgba(201,109,145,0.22) 0%, transparent 55%),
                        radial-gradient(ellipse at 10% 110%, rgba(124,77,204,0.18) 0%, transparent 55%);

    --secondary:      #7c4dcc;
    --secondary-dark: #4c1d95;
    --shadow-sm:  0 1px 4px rgba(0,0,0,0.6), 0 2px 10px rgba(0,0,0,0.4);
    --shadow-md:  0 4px 20px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.5);
    --shadow-lg:  0 12px 40px rgba(0,0,0,0.8), 0 2px 8px rgba(124,77,204,0.15);
    --shadow-glow:0 0 60px rgba(201,109,145,0.18);
}

/* === Theme Toggle Button === */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--accent);
    color: var(--primary);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* === Chart Container === */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

.chart-container canvas {
    max-height: 100%;
}

/* === Calendar Styles === */
.calendar-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.calendar-stat {
    text-align: center;
}

.calendar-stat .stat-label {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.calendar-stat .stat-value {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--primary);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.calendar-nav-btn {
    background: var(--accent);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    color: var(--text-primary);
    font-size: var(--font-size-lg);
    transition: all var(--transition-fast);
}

.calendar-nav-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.calendar-day-header {
    text-align: center;
    font-weight: 700;
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    padding: var(--spacing-sm);
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.calendar-day.other-month {
    color: var(--text-muted);
    opacity: 0.4;
}

.calendar-day.today {
    border: 2px solid var(--primary);
}

.calendar-day.has-entry-low {
    background: rgba(255, 168, 92, 0.3);
}

.calendar-day.has-entry-high {
    background: var(--primary);
    color: white;
}

.calendar-day:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-sm);
}

.calendar-legend {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.legend-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.legend-none {
    background: transparent;
}

.legend-low {
    background: rgba(255, 168, 92, 0.3);
}

.legend-high {
    background: var(--primary);
}

/* === Photos Gallery === */
.photo-form {
    margin-bottom: var(--spacing-xl);
}

.photo-preview {
    margin-top: var(--spacing-md);
    border: 2px dashed var(--border);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-xl);
    text-align: center;
    color: var(--text-muted);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    transition: all var(--transition-fast);
}

.photo-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--border-radius-md);
    object-fit: contain;
}

.photo-preview i {
    font-size: 3rem;
    color: var(--text-muted);
}

.photo-preview.has-image {
    border-color: var(--primary);
    border-style: solid;
}

.photos-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.photo-card {
    background: var(--surface);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.photo-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
}

.photo-card-content {
    padding: var(--spacing-lg);
}

.photo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.photo-card-date {
    font-weight: 700;
    color: var(--text-primary);
}

.photo-card-weight {
    font-weight: 600;
    color: var(--primary);
}

.photo-card-notes {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.photo-card-actions {
    margin-top: var(--spacing-md);
    display: flex;
    gap: var(--spacing-sm);
}

.btn-icon {
    padding: var(--spacing-sm);
    background: var(--background);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: var(--accent);
    color: var(--primary);
}

.btn-icon.delete:hover {
    background: #fee;
    color: #e74c3c;
}

/* Photo Modal */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.photo-modal.active {
    display: flex;
}

.photo-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.photo-modal-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--border-radius-lg);
    object-fit: contain;
}

.photo-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

/* === Goals & Milestones === */
.main-goal {
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    border-radius: var(--border-radius-lg);
    color: var(--on-light-text);
}

.goal-info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    gap: var(--spacing-lg);
}

.goal-current,
.goal-target {
    text-align: center;
    flex: 1;
}

.goal-label {
    display: block;
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-xs);
    opacity: 0.9;
}

.goal-value {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 800;
}

.goal-arrow {
    font-size: var(--font-size-3xl);
    opacity: 0.7;
}

.goal-progress-bar {
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-full);
    overflow: hidden;
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.goal-progress-fill {
    height: 100%;
    background: white;
    border-radius: var(--border-radius-full);
    transition: width var(--transition-slow);
}

.goal-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 800;
    font-size: var(--font-size-lg);
    color: var(--primary-dark);
}

.goal-stats {
    display: flex;
    justify-content: space-around;
    gap: var(--spacing-lg);
    font-size: var(--font-size-sm);
}

.goal-stats i {
    margin-right: var(--spacing-xs);
}

.milestones-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.milestone-item {
    padding: var(--spacing-lg);
    border: 2px solid var(--border);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.milestone-item.completed {
    border-color: var(--success);
    background: rgba(123, 198, 123, 0.1);
}

.milestone-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.milestone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.milestone-title {
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

.milestone-badge {
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
}

.milestone-badge.pending {
    background: var(--accent);
    color: var(--primary);
}

.milestone-badge.completed {
    background: var(--success);
    color: white;
}

.milestone-progress {
    margin-top: var(--spacing-md);
}

.milestone-progress-bar {
    height: 8px;
    background: var(--background);
    border-radius: var(--border-radius-full);
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
}

.milestone-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--border-radius-full);
    transition: width var(--transition-slow);
}

.milestone-stats {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.milestone-actions {
    margin-top: var(--spacing-md);
    display: flex;
    gap: var(--spacing-sm);
}

/* === Responsive Updates === */
@media (max-width: 768px) {
    .calendar-grid {
        gap: 2px;
    }
    
    .calendar-day {
        font-size: var(--font-size-xs);
    }
    
    .goal-info {
        flex-direction: column;
    }
    
    .goal-arrow {
        transform: rotate(90deg);
    }
    
    .photos-gallery {
        grid-template-columns: 1fr;
    }
}

/* === Reminders Page === */
.reminder-alert {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    color: white;
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    border: none;
    animation: pulse 2s ease-in-out infinite;
}

.reminder-alert.hidden {
    display: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-md);
    }
    50% {
        transform: scale(1.02);
        box-shadow: var(--shadow-lg);
    }
}

.alert-icon {
    font-size: 4rem;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.alert-content h3 {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.alert-content p {
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-lg);
}

.weekday-selector {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.weekday-option {
    cursor: pointer;
    flex: 1;
    min-width: 60px;
}

.weekday-option input {
    display: none;
}

.weekday-option span {
    display: block;
    padding: var(--spacing-md);
    text-align: center;
    font-weight: 700;
    border: 3px solid var(--border);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    background: var(--surface);
}

.weekday-option input:checked + span {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.weekday-option:hover span {
    border-color: var(--primary-light);
    transform: scale(1.02);
}

.help-text {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
    font-style: italic;
}

.reminder-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.reminder-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--background);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.reminder-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.reminder-stat .stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--border-radius-md);
}

.reminder-stat .stat-info {
    display: flex;
    flex-direction: column;
}

.reminder-stat .stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.reminder-stat .stat-value {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--primary);
}

.application-history {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-height: 500px;
    overflow-y: auto;
}

.application-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    background: var(--background);
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--success);
    transition: all var(--transition-fast);
}

.application-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.application-item.missed {
    border-left-color: #e74c3c;
    opacity: 0.7;
}

.application-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.application-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-full);
    background: var(--success);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
}

.application-item.missed .application-icon {
    background: #e74c3c;
}

.application-details {
    display: flex;
    flex-direction: column;
}

.application-date {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.application-dosage {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.application-status {
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
}

.application-status.done {
    background: var(--success);
    color: white;
}

.application-status.missed {
    background: #e74c3c;
    color: white;
}

.quick-application {
    text-align: center;
    padding: var(--spacing-lg);
}

.quick-application p {
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
}

/* === Personalized Tips === */
.habits-tracker {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.habit-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--background);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.habit-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.habit-item.completed {
    background: rgba(123, 198, 123, 0.1);
    border-left: 4px solid var(--success);
}

.habit-checkbox {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.habit-item.completed .habit-checkbox {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.habit-checkbox i {
    font-size: var(--font-size-lg);
    opacity: 0;
}

.habit-item.completed .habit-checkbox i {
    opacity: 1;
}

.habit-info {
    flex: 1;
}

.habit-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.habit-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.habits-progress {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.habits-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 120px;
}

.habits-progress-bar {
    flex: 1;
    height: 12px;
    background: var(--background);
    border-radius: var(--border-radius-full);
    overflow: hidden;
}

.habits-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: var(--border-radius-full);
    transition: width var(--transition-slow);
}

.habits-percentage {
    font-weight: 800;
    color: var(--primary);
    min-width: 50px;
    text-align: right;
}

/* Water Tracker */
.personalized-tip {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.tip-icon-large {
    font-size: 5rem;
    flex-shrink: 0;
}

.tip-content-large {
    flex: 1;
}

.tip-content-large h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
    color: white;
}

.tip-calculation {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
}

.water-goal {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.water-amount {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.water-label {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.8);
}

.water-tracker {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.water-glasses {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.water-glass {
    width: 40px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px 8px 12px 12px;
    position: relative;
    background: transparent;
    transition: all var(--transition-fast);
}

.water-glass.filled {
    background: linear-gradient(to top, rgba(123, 198, 123, 0.8), rgba(123, 198, 123, 0.3));
    border-color: rgba(123, 198, 123, 0.8);
}

.water-progress-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-align: center;
}

/* Personalized Tips Grid */
.personalized-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.mini-progress {
    width: 100%;
    height: 6px;
    background: var(--background);
    border-radius: var(--border-radius-full);
    overflow: hidden;
    margin-top: var(--spacing-md);
}

.mini-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--border-radius-full);
    transition: width var(--transition-slow);
}

/* Nutrition Tips */
.nutrition-tips {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.nutrition-tip {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--background);
    border-radius: var(--border-radius-md);
}

.nutrition-tip i {
    color: var(--success);
    font-size: var(--font-size-xl);
    flex-shrink: 0;
    margin-top: 2px;
}

.nutrition-tip strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.nutrition-tip p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin: 0;
}

/* === Responsive Updates for Reminders === */
@media (max-width: 768px) {
    .reminder-alert {
        flex-direction: column;
        text-align: center;
    }
    
    .alert-icon {
        font-size: 3rem;
    }
    
    .weekday-selector {
        justify-content: center;
    }
    
    .weekday-option {
        min-width: 50px;
    }
    
    .reminder-stats {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 300px !important;
    }
    
    .personalized-tip {
        flex-direction: column;
        text-align: center;
    }
    
    .tip-icon-large {
        font-size: 4rem;
    }
    
    .water-amount {
        font-size: 3rem;
    }
    
    .personalized-tips-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .calendar-stats {
        grid-template-columns: 1fr;
    }
    
    .calendar-day-header {
        font-size: 0.65rem;
    }
    
    .goal-value {
        font-size: var(--font-size-2xl);
    }
    
    .weekday-option span {
        padding: var(--spacing-sm);
        font-size: var(--font-size-sm);
    }
    
    .reminder-stat {
        flex-direction: column;
        text-align: center;
    }
    
    .chart-container {
        height: 250px !important;
    }
}

/* ============================================
   PROMOTIONS PAGE STYLES
   ============================================ */

/* Admin Section */
.admin-section {
    background: linear-gradient(135deg, #FFF8F2 0%, #FEE4D0 100%);
    border-left: 4px solid var(--primary);
}

/* Dark theme fix for admin sections */
[data-theme="dark"] .admin-section {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(22, 33, 62, 0.92) 100%);
    border-left: 4px solid var(--primary);
}

[data-theme="dark"] .admin-section .form-group label,
[data-theme="dark"] .admin-section h1,
[data-theme="dark"] .admin-section h2,
[data-theme="dark"] .admin-section h3,
[data-theme="dark"] .admin-section p,
[data-theme="dark"] .admin-section span {
    color: var(--text-primary);
}

[data-theme="dark"] .admin-section input,
[data-theme="dark"] .admin-section textarea,
[data-theme="dark"] .admin-section select {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: var(--border);
}

[data-theme="dark"] .admin-section input::placeholder,
[data-theme="dark"] .admin-section textarea::placeholder {
    color: var(--text-muted);
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--primary);
    color: white;
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.admin-badge i {
    font-size: 0.875rem;
}

.promotion-form {
    margin-top: var(--spacing-lg);
}

/* Promotions Header */
.promotions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.promotions-filters {
    display: flex;
    gap: var(--spacing-sm);
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--border);
    background: white;
  color: var(--on-light-text);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Promotions Grid */
.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.promotion-card {
    position: relative;
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.promotion-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Promotion Card Header */
.promotion-header {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: var(--spacing-lg);
    color: white;
}

.promotion-emoji {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    display: block;
    text-align: center;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.promotion-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin: 0;
    text-align: center;
}

/* Promotion Badges */
.promotion-badges {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    display: flex;
    gap: var(--spacing-xs);
    flex-direction: column;
    align-items: flex-end;
}

.promo-badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-badge.new {
    background: #FF6B6B;
    color: white;
    animation: pulse 1.5s ease infinite;
}

.promo-badge.ending {
    background: #FFA500;
    color: white;
}

.promo-badge.active {
    background: var(--success);
    color: white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Promotion Discount Badge */
.promotion-discount {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 2px solid white;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
    text-align: center;
}

.discount-value {
    font-size: 2.5rem;
    font-weight: 900;
    display: block;
    line-height: 1;
}

.discount-label {
    font-size: var(--font-size-sm);
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Promotion Body */
.promotion-body {
    padding: var(--spacing-lg);
}

.promotion-description {
    color: var(--on-light-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.promotion-code {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--accent);
    border-radius: var(--border-radius-md);
    border: 2px dashed var(--primary);
    margin-bottom: var(--spacing-md);
}

.promotion-code i {
    color: var(--primary);
}

.code-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.code-value {
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

/* Promotion Footer */
.promotion-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--background);
    border-top: 1px solid var(--border);
}

.promotion-validity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}

.validity-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.validity-date {
    font-weight: 600;
    color: var(--text-primary);
}

.days-remaining {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--success);
    color: white;
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.days-remaining.warning {
    background: #FFA500;
}

.days-remaining.urgent {
    background: #FF6B6B;
    animation: blink 1s ease infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.promotion-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.btn-use-promo {
    flex: 1;
    background: var(--primary);
    color: white;
    border: none;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-use-promo:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.btn-delete-promo {
    padding: var(--spacing-md);
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete-promo:hover {
    background: #FF6B6B;
    color: white;
    border-color: #FF6B6B;
}

/* Expired Promotion */
.promotion-card.expired {
    opacity: 0.6;
    filter: grayscale(0.5);
}

.promotion-card.expired .promotion-header {
    background: linear-gradient(135deg, #95A5A6 0%, #7F8C8D 100%);
}

.expired-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(255, 107, 107, 0.95);
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-xl);
    font-weight: 900;
    border-radius: var(--border-radius-md);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 3px solid white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* ============================================
   SHOP/MARKETPLACE STYLES
   ============================================ */

/* Shop Header */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.shop-header h3 {
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    margin: 0;
}

.shop-filters {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

/* Product Card */
.product-card {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Product Featured */
.product-card.featured {
    border-color: #FFD700;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.product-card.featured::before {
    content: '⭐ DESTAQUE';
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 900;
    z-index: 10;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    animation: pulse 2s ease infinite;
}

/* Product Header */
.product-header {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.product-emoji {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.product-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

/* Product Status Badge */
.product-status-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-status-badge.available {
    background: var(--success);
    color: white;
}

.product-status-badge.out-of-stock {
    background: #FF6B6B;
    color: white;
}

.product-status-badge.coming-soon {
    background: #FFA500;
    color: white;
}

/* Product Body */
.product-body {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.product-category {
    display: inline-block;
    background: rgba(232, 121, 160, 0.15);
    color: #e879a0;
    border: 1px solid rgba(232, 121, 160, 0.3);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    width: fit-content;
    letter-spacing: 0.03em;
}

.product-description {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    flex: 1;
}

/* Product Price */
.product-price-section {
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-md);
    margin-top: auto;
}

.product-price {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--primary-color, #e879a0);
    margin-bottom: var(--spacing-xs);
}

.product-price small {
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: var(--text-secondary);
}

.product-stock-info {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.product-stock-info i {
    color: var(--success);
}

.product-stock-info.low-stock i {
    color: #FFA500;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.btn-buy-product {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: var(--font-size-md);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.btn-buy-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-buy-product:active {
    transform: translateY(0);
}

.btn-buy-product i {
    font-size: 1.2rem;
}

.btn-delete-product {
    padding: 8px 10px;
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-delete-product:hover {
    background: #FF6B6B;
    color: white;
    border-color: #FF6B6B;
}



.btn-edit-product {
    padding: 8px 10px;
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit-product:hover {
    background: #e879a0;
    color: white;
    border-color: #e879a0;
}
/* Out of Stock State */
.product-card.out-of-stock {
    opacity: 0.7;
}

.product-card.out-of-stock .btn-buy-product {
    background: #95A5A6;
    cursor: not-allowed;
}

.product-card.out-of-stock .btn-buy-product:hover {
    transform: none;
    box-shadow: none;
}

/* Product Form Styles */
.product-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.product-form .form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.product-form input[type="checkbox"] {
    width: auto;
    margin-right: var(--spacing-xs);
}

/* Responsive Adjustments for Shop */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .shop-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .shop-filters {
        width: 100%;
    }
    
    .filter-btn {
        flex: 1;
        font-size: 0.85rem;
    }
    
    .product-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card.stat-pending {
    border-left: 4px solid #FFA500;
}

.stat-card.stat-approved {
    border-left: 4px solid var(--success);
}

.stat-card.stat-blocked {
    border-left: 4px solid #FF6B6B;
}

.stat-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

/* Admin Filters */
.admin-filters-card {
    margin-bottom: var(--spacing-xl);
}

.admin-filters {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: var(--spacing-md);
    border: 2px solid var(--border);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-md);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 168, 92, 0.1);
}

.filter-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Users Table */
.users-table-container {
    overflow-x: auto;
    margin-top: var(--spacing-lg);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.users-table thead {
    background: var(--background);
}

.users-table th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
}

.users-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.users-table tbody tr {
    transition: background 0.2s ease;
}

.users-table tbody tr:hover {
    background: var(--background);
}

.user-avatar-cell {
    font-size: 1.5rem;
    text-align: center;
}

.user-name-cell {
    font-weight: 600;
    color: var(--text-primary);
}

.user-email-cell {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.user-status-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.user-status-badge.pending {
    background: #FFF3CD;
    color: #856404;
}

.user-status-badge.approved {
    background: #D4EDDA;
    color: #155724;
}

.user-status-badge.blocked {
    background: #F8D7DA;
    color: #721C24;
}

.user-date-cell {
    color: var(--text-secondary);
    font-size: 0.85em;
}

.user-actions {
    display: flex;
    gap: var(--spacing-xs);
}

.btn-approve,
.btn-block,
.btn-view {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-approve {
    background: var(--success);
    color: white;
}

.btn-approve:hover {
    background: #28a745;
    transform: scale(1.05);
}

.btn-block {
    background: #FF6B6B;
    color: white;
}

.btn-block:hover {
    background: #dc3545;
    transform: scale(1.05);
}

.btn-view {
    background: var(--primary);
    color: white;
}

.btn-view:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.btn-approve:disabled,
.btn-block:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-approve:disabled:hover,
.btn-block:disabled:hover {
    transform: none;
}

/* Responsive Admin Panel */
@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-filters {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
    }
    
    .filter-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-btn {
        flex: 1;
    }
    
    .users-table {
        font-size: 0.75rem;
    }
    
    .users-table th,
    .users-table td {
        padding: var(--spacing-sm);
    }
    
    .user-actions {
        flex-direction: column;
    }
}

/* ============================================
   PROTOCOL PAGE STYLES
   ============================================ */

/* Current Protocol Card */
.protocol-current-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.protocol-current-card h3 {
    color: white;
    margin-bottom: var(--spacing-lg);
}

.protocol-current-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.current-dose-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
}

.dose-label {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    margin-bottom: var(--spacing-sm);
}

.dose-value {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.protocol-progress-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.progress-week-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.progress-bar-mini {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-full);
    overflow: hidden;
}

.progress-bar-mini-fill {
    height: 100%;
    background: white;
    transition: width 0.5s ease;
}

.next-application-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-lg);
}

/* Protocol Alert Card */
.protocol-alert-card {
    background: linear-gradient(135deg, #FFF8F2 0%, #FEE4D0 100%);
    border-left: 4px solid var(--primary);
}

.alert-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.protocol-next-change {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-xl);
    align-items: center;
}

.next-change-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.next-change-label {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
}

.dose-change-display {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--border-radius-md);
}

.current-dose-small {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-secondary);
}

.dose-change-display i {
    color: var(--primary);
    font-size: var(--font-size-xl);
}

.next-dose-big {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
}

.change-date {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
}

.change-checklist {
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--border-radius-md);
    min-width: 250px;
}

.change-checklist p {
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    cursor: pointer;
}

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Protocol Timeline */
.protocol-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-lg);
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50px;
    top: 40px;
    bottom: -16px;
    width: 2px;
    background: var(--border);
}

.timeline-dose {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--accent);
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: var(--font-size-lg);
}

.timeline-dose.current {
    background: var(--primary);
    color: white;
}

.timeline-dose.completed {
    background: var(--success);
    color: white;
}

.timeline-dose.upcoming {
    background: var(--background);
    color: var(--text-secondary);
}

.timeline-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.timeline-weeks {
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-dates {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.timeline-status {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--success);
    color: white;
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    width: fit-content;
}

/* Effectiveness Grid */
.effectiveness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.effectiveness-card {
    padding: var(--spacing-lg);
    background: var(--background);
    border-radius: var(--border-radius-md);
    border: 2px solid var(--border);
}

.effectiveness-card.current {
    border-color: var(--primary);
    background: var(--accent);
}

.effectiveness-card h4 {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.effectiveness-stat {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border);
}

.effectiveness-stat:last-child {
    border-bottom: none;
}

.effectiveness-stat-label {
    color: var(--text-secondary);
}

.effectiveness-stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Adherence Stats */
.adherence-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.adherence-stat {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--background);
    border-radius: var(--border-radius-md);
}

.adherence-stat .stat-label {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.adherence-stat .stat-value {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.adherence-stat .stat-value.success {
    color: var(--success);
}

/* ============================================
   PROGRESS COMPARISON PAGE STYLES
   ============================================ */

/* Comparison Hero Card */
.comparison-hero-card {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: white;
}

.comparison-hero-card h2 {
    color: white;
    margin-bottom: var(--spacing-lg);
}

.comparison-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.comparison-selector label {
    font-weight: 600;
}

.comparison-selector select {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/*
  Some browsers render the <option> list using the select's text color.
  Since we use white text on a semi-transparent background, the dropdown
  list may become hard to read (white on white). Force readable options.
*/
.comparison-selector select option {
    color: #0f172a;
    background: #ffffff;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.comparison-item {
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.comparison-item-label {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    margin-bottom: var(--spacing-sm);
}

.comparison-values {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.comparison-before,
.comparison-after {
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.comparison-before {
    opacity: 0.7;
}

.comparison-arrow {
    font-size: var(--font-size-2xl);
}

.comparison-diff {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(255, 255, 255, 0.25);
    border-radius: var(--border-radius-full);
    font-weight: 700;
    font-size: var(--font-size-lg);
}

.comparison-diff.positive {
    background: rgba(123, 198, 123, 0.3);
}

.comparison-diff.negative {
    background: rgba(255, 107, 107, 0.3);
}

/* Photo Comparison */
.photo-comparison-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

@media (max-width: 600px) {
    .photo-comparison-selector {
        grid-template-columns: 1fr;
    }
}

.photo-selector-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.photo-selector-group label {
    font-weight: 600;
    color: var(--text-primary);
}

.photo-selector-group select {
    padding: var(--spacing-md);
    border: 2px solid var(--border);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-base);
    cursor: pointer;
}

.photo-comparison-display {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--spacing-xl);
    width: 100%;
    align-items: center;
}

.photo-comparison-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.photo-comparison-image {
    width: 100%;
    max-width: 350px;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--border);
}

.photo-comparison-info {
    text-align: center;
}

.photo-comparison-label {
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--primary);
}

.photo-comparison-date,
.photo-comparison-weight {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.photo-comparison-arrow {
    font-size: 3rem;
    color: var(--primary);
}

.photo-comparison-stats {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--accent);
    border-radius: var(--border-radius-md);
    text-align: center;
}

.photo-comparison-stats h4 {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.photo-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-md);
}

.photo-stat-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.photo-stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.photo-stat-value {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary);
}

/* Comparison Charts Grid */
.comparison-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.comparison-chart-card {
    padding: var(--spacing-lg);
    background: var(--background);
    border-radius: var(--border-radius-md);
    border: 2px solid var(--border);
}

.comparison-chart-card h4 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

/* Milestones Achieved */
.milestones-achieved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.milestone-achieved-card {
    padding: var(--spacing-lg);
    background: var(--accent);
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--primary);
    text-align: center;
}

.milestone-achieved-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.milestone-achieved-card h4 {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.milestone-achieved-date {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* Responsive Promotions */
@media (max-width: 768px) {
    .promotions-grid {
        grid-template-columns: 1fr;
    }
    
    .promotions-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .promotions-filters {
        width: 100%;
        overflow-x: auto;
    }
    
    .promotion-emoji {
        font-size: 2.5rem;
    }
    
    .discount-value {
        font-size: 2rem;
    }
    
    /* Protocol Page Responsive */
    .protocol-current-info {
        grid-template-columns: 1fr;
    }
    
    .protocol-next-change {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        grid-template-columns: 80px 1fr;
    }
    
    /* Comparison Responsive */
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-comparison-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .photo-comparison-arrow {
        transform: rotate(90deg);
    }
    
    .photo-comparison-image {
        max-width: 100%;
        height: 300px;
    }
}

/* ============================================================
   DARK THEME HOTFIXES (HostGator)
   ============================================================ */

/* Admin sections (Shop/Admin/Promotions) - keep contrast in dark mode */
[data-theme="dark"] .admin-section {
    background: linear-gradient(135deg, #16213e 0%, #0f1b35 100%);
    border-left: 4px solid var(--primary);
    color: var(--text-primary);
}

[data-theme="dark"] .admin-section h1,
[data-theme="dark"] .admin-section h2,
[data-theme="dark"] .admin-section h3,
[data-theme="dark"] .admin-section h4,
[data-theme="dark"] .admin-section label,
[data-theme="dark"] .admin-section p,
[data-theme="dark"] .admin-section span,
[data-theme="dark"] .admin-section small {
    color: var(--text-primary);
}

[data-theme="dark"] .admin-section .form-group input,
[data-theme="dark"] .admin-section .form-group textarea,
[data-theme="dark"] .admin-section .form-group select {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: var(--border);
}

[data-theme="dark"] .admin-section .form-group input::placeholder,
[data-theme="dark"] .admin-section .form-group textarea::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] .admin-section select option {
    background: #16213e;
    color: var(--text-primary);
}



/* ============================================================
   DARK THEME HOTFIXES (contrast + components that were "white")
   ============================================================ */
[data-theme="dark"] .stat-card{
    background: var(--surface);
    border: 1px solid var(--border);
}

[data-theme="dark"] .admin-section{
    background: var(--surface);
    border: 1px solid var(--border);
}

/* Protocol: alert card and its inner white boxes */
[data-theme="dark"] .protocol-alert-card{
    background: var(--surface);
}

[data-theme="dark"] .dose-change-display,
[data-theme="dark"] .change-checklist{
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
}

[data-theme="dark"] .protocol-alert-card .next-change-label,
[data-theme="dark"] .protocol-alert-card .change-date,
[data-theme="dark"] .protocol-alert-card .change-checklist p,
[data-theme="dark"] .protocol-alert-card .checklist-item span{
    color: var(--text-primary);
}

[data-theme="dark"] .dose-change-display i,
[data-theme="dark"] .protocol-alert-card .change-date i{
    color: var(--text-secondary);
}

/* Progress comparison hero card: empty state text was too low-contrast */
.comparison-hero-card .empty-state{
    color: rgba(255,255,255,0.9);
}

/* Charts: ensure canvas uses available height */
.chart-container canvas{
    display: block;
}


/* Dark theme: improve empty-state contrast (cards/boxes) */
[data-theme="dark"] .empty-state {
    color: var(--text-secondary);
}

[data-theme="dark"] .empty-state small {
    color: var(--text-secondary);
    opacity: 0.9;
}

/* ============================================
   SYMPTOMS PAGE
   ============================================ */

.symptoms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.symptom-checkbox {
    cursor: pointer;
    display: block;
    width: 100%;
}

.symptom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.symptom-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 12px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
}

.symptom-tag:hover {
    border-color: var(--primary-color);
    background: rgba(232,121,160,0.1);
}

.symptom-checkbox input[type="checkbox"]:checked + .symptom-tag {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.03);
    box-shadow: 0 2px 8px rgba(232,121,160,0.4);
}

/* Garante que o label inteiro é clicável */
.symptom-checkbox * {
    pointer-events: none;
}
.symptom-checkbox {
    pointer-events: auto;
}

.intensity-selector {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-sm);
}

.intensity-option {
    cursor: pointer;
    display: block;
}

.intensity-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.intensity-option * {
    pointer-events: none;
}
.intensity-option {
    pointer-events: auto;
}

.intensity-tag {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.intensity-option input[type="radio"]:checked + .intensity-tag.intensity-leve {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

.intensity-option input[type="radio"]:checked + .intensity-tag.intensity-moderado {
    background: #eab308;
    border-color: #eab308;
    color: white;
}

.intensity-option input[type="radio"]:checked + .intensity-tag.intensity-intenso {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.symptoms-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

@media (max-width: 600px) {
    .symptoms-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.symptom-stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.symptom-stat-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.symptom-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

.symptom-stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.symptoms-frequency-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.symptom-freq-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.symptom-freq-name {
    width: 140px;
    font-size: 0.9rem;
    font-weight: 600;
    flex-shrink: 0;
}

.symptom-freq-bar-wrap {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
}

.symptom-freq-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.symptom-freq-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    width: 30px;
    text-align: right;
}

.symptom-tip-card {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.symptom-tip-card .tip-icon-large {
    font-size: 2.5rem;
    flex-shrink: 0;
}

/* History entries */
.symptom-history-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    background: var(--bg-secondary);
    transition: transform 0.2s;
}

.symptom-history-item:hover {
    transform: translateY(-2px);
}

.symptom-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
    gap: 8px;
}

.symptom-history-date {
    font-weight: 700;
    font-size: 0.95rem;
}

.symptom-intensity-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-leve { background: #dcfce7; color: #166534; }
.badge-moderado { background: #fef9c3; color: #854d0e; }
.badge-intenso { background: #fee2e2; color: #991b1b; }

[data-theme="dark"] .badge-leve { background: #14532d; color: #86efac; }
[data-theme="dark"] .badge-moderado { background: #713f12; color: #fde047; }
[data-theme="dark"] .badge-intenso { background: #7f1d1d; color: #fca5a5; }

.symptom-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: var(--spacing-sm) 0;
}

.symptom-mini-tag {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.symptom-history-notes {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 6px;
    font-style: italic;
}

.symptom-delete-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.symptom-delete-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* ============================================
   MACROS CALCULATOR
   ============================================ */

.macro-result-hero {
    padding: var(--spacing-xl);
}

.macro-hero-top {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.macro-hero-cal {
    text-align: center;
}

.macro-hero-label {
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.85;
    margin-bottom: 4px;
}

.macro-hero-value {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.macro-hero-sub {
    font-size: 0.8rem;
    opacity: 0.75;
    margin-top: 4px;
}

.macro-hero-divider {
    width: 2px;
    height: 60px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.macro-deficit-info {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.9;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
}

.macros-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

@media (max-width: 500px) {
    .macros-cards-grid { grid-template-columns: 1fr; }
}

.macro-card {
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    text-align: center;
    color: white;
    box-shadow: var(--shadow-md);
}

.macro-card-protein { background: linear-gradient(135deg, #ef4444, #dc2626); }
.macro-card-carb    { background: linear-gradient(135deg, #f59e0b, #d97706); }
.macro-card-fat     { background: linear-gradient(135deg, #10b981, #059669); }

.macro-card-icon { font-size: 1.8rem; margin-bottom: 4px; }
.macro-card-name { font-size: 0.8rem; font-weight: 700; opacity: 0.9; }
.macro-card-value { font-size: 2rem; font-weight: 900; line-height: 1.1; margin: 4px 0; }
.macro-card-cal { font-size: 0.78rem; opacity: 0.85; }

.gender-selector {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
    flex-wrap: wrap;
}

.gender-option {
    cursor: pointer;
    display: block;
}

.gender-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.gender-tag {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 25px;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.gender-tag:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: scale(1.04);
}

.gender-option input[type="radio"]:checked + .gender-tag {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(232,121,160,0.4);
}

.meal-distribution {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.meal-dist-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.meal-dist-name {
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 150px;
}

.meal-dist-cal {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1rem;
    min-width: 80px;
}

.meal-dist-macros {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.meal-macro {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
}

.meal-macro.protein { background: #fee2e2; color: #991b1b; }
.meal-macro.carb    { background: #fef3c7; color: #92400e; }
.meal-macro.fat     { background: #d1fae5; color: #065f46; }

[data-theme="dark"] .meal-macro.protein { background: #7f1d1d; color: #fca5a5; }
[data-theme="dark"] .meal-macro.carb    { background: #78350f; color: #fde68a; }
[data-theme="dark"] .meal-macro.fat     { background: #064e3b; color: #6ee7b7; }

.macro-tip-glp {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

/* ============================================
   BODY MEASUREMENTS
   ============================================ */

.measurements-input-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

@media (max-width: 600px) {
    .measurements-input-grid { grid-template-columns: repeat(2, 1fr); }
}

.meas-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    margin-bottom: 6px;
}

.meas-icon { font-size: 1rem; }

.meas-evolution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

@media (max-width: 600px) {
    .meas-evolution-grid { grid-template-columns: repeat(2, 1fr); }
}

.meas-evo-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    border: 1px solid var(--border-color);
}

.meas-evo-icon { font-size: 1.6rem; margin-bottom: 4px; }
.meas-evo-name { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); }
.meas-evo-current { font-size: 1.6rem; font-weight: 900; margin: 4px 0; }
.meas-evo-diff { font-size: 1rem; font-weight: 800; }
.meas-evo-initial { font-size: 0.75rem; color: var(--text-secondary); margin-top: 4px; }

.diff-good { color: #22c55e; }
.diff-bad  { color: #ef4444; }
.diff-neutral { color: var(--text-secondary); }

.meas-chart-selectors {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.meas-chart-selectors select {
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
}

.meas-table-wrap {
    overflow-x: auto;
    margin-top: var(--spacing-md);
}

.meas-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.meas-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 800;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.meas-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.meas-table tr:last-child td { border-bottom: none; }
.meas-table tr:hover td { background: var(--bg-secondary); }

/* ============================================
   SMART NOTIFICATIONS
   ============================================ */
#smart-notifications-area { display: flex; flex-direction: column; gap: var(--spacing-sm); margin-bottom: var(--spacing-md); }

.smart-notif {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid;
    animation: slideInNotif 0.4s ease;
    flex-wrap: wrap;
}

@keyframes slideInNotif {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.smart-notif-warning  { background: #fef9c3; border-color: #eab308; color: #713f12; }
.smart-notif-success  { background: #dcfce7; border-color: #22c55e; color: #14532d; }
.smart-notif-info     { background: #eff6ff; border-color: #3b82f6; color: #1e3a8a; }
.smart-notif-care     { background: #fdf2f8; border-color: #ec4899; color: #831843; }

[data-theme="dark"] .smart-notif-warning  { background: #422006; border-color: #eab308; color: #fde68a; }
[data-theme="dark"] .smart-notif-success  { background: #052e16; border-color: #22c55e; color: #86efac; }
[data-theme="dark"] .smart-notif-info     { background: #0c1a3d; border-color: #3b82f6; color: #93c5fd; }
[data-theme="dark"] .smart-notif-care     { background: #4a0d2b; border-color: #ec4899; color: #f9a8d4; }

.snotif-icon { font-size: 1.5rem; flex-shrink: 0; }
.snotif-body { flex: 1; min-width: 180px; }
.snotif-body p { font-size: 0.85rem; margin-top: 2px; opacity: 0.9; }
.snotif-actions { display: flex; gap: 8px; align-items: center; }
.snotif-btn { padding: 6px 14px !important; font-size: 0.82rem !important; border-radius: 20px !important; }
.snotif-dismiss { background: none; border: none; font-size: 1.4rem; cursor: pointer; opacity: 0.5; line-height: 1; padding: 0 4px; }
.snotif-dismiss:hover { opacity: 1; }

/* ============================================
   MOTIVATIONAL PHRASE CARD
   ============================================ */
.motivation-card {
    background: linear-gradient(135deg, #e879a0 0%, #a855f7 50%, #a78bfa 100%);
    color: white;
    margin-bottom: var(--spacing-lg);
}

.motivation-inner {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.motivation-icon { font-size: 2rem; flex-shrink: 0; margin-top: 2px; }

.motivation-content { flex: 1; }

.motivation-text {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.6;
    font-style: italic;
    color: white;
}

.motivation-source {
    display: block;
    font-size: 0.75rem;
    opacity: 0.75;
    margin-top: 6px;
}

.motivation-refresh {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}
.motivation-refresh:hover { background: rgba(255,255,255,0.35); transform: rotate(180deg); }

/* ============================================
   HARD DAY MODE
   ============================================ */
.hard-day-card {
    border: 2px solid #93c5fd;
    background: linear-gradient(135deg, #eff6ff, #fdf2f8);
    animation: gentlePulse 0.5s ease;
}

[data-theme="dark"] .hard-day-card {
    background: linear-gradient(135deg, #0c1a3d, #2d1a3d);
    border-color: #4f8cff;
}

@keyframes gentlePulse {
    0%   { transform: scale(0.98); opacity: 0; }
    100% { transform: scale(1);    opacity: 1; }
}

.hard-day-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.hard-day-icon { font-size: 2rem; flex-shrink: 0; }

.hard-day-header h3 { margin: 0; color: #1e40af; }
[data-theme="dark"] .hard-day-header h3 { color: #93c5fd; }

.hard-day-subtitle { font-size: 0.88rem; color: var(--text-secondary); margin-top: 4px; }

.hard-day-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
    flex-shrink: 0;
}
.hard-day-close:hover { opacity: 1; }

.hard-day-tips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

@media (max-width: 500px) { .hard-day-tips { grid-template-columns: 1fr; } }

.hard-day-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255,255,255,0.6);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.88rem;
    line-height: 1.5;
}

[data-theme="dark"] .hard-day-tip-item { background: rgba(255,255,255,0.06); }

.hard-day-tip-icon { font-size: 1.2rem; flex-shrink: 0; }

.hard-day-message {
    font-size: 0.95rem;
    font-style: italic;
    color: #1e40af;
    text-align: center;
    font-weight: 600;
    border-top: 1px solid rgba(147,197,253,0.4);
    padding-top: var(--spacing-md);
    line-height: 1.6;
}

[data-theme="dark"] .hard-day-message { color: #93c5fd; }

/* Quick actions with 2 buttons */
.quick-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* ============================================
   COMMUNITY RANKING
   ============================================ */
.ranking-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.ranking-hero-text h2 { margin: 0 0 6px; }
.ranking-hero-text p  { opacity: 0.85; font-size: 0.9rem; }

.ranking-my-position {
    text-align: center;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg) var(--spacing-xl);
}

.my-pos-label { font-size: 0.78rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; }
.my-pos-value { font-size: 3rem; font-weight: 900; line-height: 1; }
.my-pos-streak { font-size: 0.82rem; opacity: 0.85; margin-top: 4px; }

.ranking-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.ranking-tab {
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ranking-tab.active, .ranking-tab:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 8px;
    transition: transform 0.2s;
    background: var(--bg-primary);
}

.ranking-item:hover { transform: translateX(4px); }

.ranking-item-me {
    border-color: var(--primary-color);
    background: linear-gradient(90deg, rgba(99,102,241,0.08), transparent);
}

.ranking-pos { font-size: 1.4rem; min-width: 36px; text-align: center; }
.ranking-avatar { font-size: 1.6rem; }
.ranking-info { flex: 1; }
.ranking-name { font-weight: 800; font-size: 0.95rem; }
.ranking-stat { font-size: 0.82rem; color: var(--text-secondary); margin-top: 2px; }
.ranking-you-badge { background: var(--primary-color); color: white; font-size: 0.72rem; font-weight: 800; padding: 3px 10px; border-radius: 20px; }
.ranking-loading { text-align: center; padding: var(--spacing-xl); color: var(--text-secondary); }

.ranking-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.ranking-privacy-note i { flex-shrink: 0; margin-top: 2px; color: var(--primary-color); }

/* ============================================
   PDF EXPORT CARD
   ============================================ */
.pdf-export-card {
    border: 2px dashed var(--primary-color);
    background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(139,92,246,0.05));
    margin-bottom: var(--spacing-lg);
}

.pdf-export-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.pdf-export-controls {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.pdf-export-controls select {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--primary-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

/* ============================================
   MOBILE FIXES GERAIS
   ============================================ */
@media (max-width: 768px) {

    /* Comparação visual — selects empilhados */
    .photo-comparison-selector {
        grid-template-columns: 1fr !important;
    }

    .photo-selector-group select {
        width: 100%;
        font-size: 0.95rem;
    }

    /* Comparação de progresso — hero card */
    .comparison-hero-card {
        padding: var(--spacing-lg);
    }

    .comparison-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .comparison-selector select {
        width: 100%;
    }

    /* Fotos antes/depois — empilhadas no mobile */
    .photo-comparison-grid {
        grid-template-columns: 1fr !important;
    }

    .photo-comparison-arrow {
        transform: rotate(90deg);
        text-align: center;
    }

    /* Cards de comparação — 1 coluna */
    .comparison-charts-grid {
        grid-template-columns: 1fr !important;
    }

    /* Milestones — 1 coluna */
    .milestones-achieved-grid {
        grid-template-columns: 1fr !important;
    }

    /* PDF export card — empilhado */
    .pdf-export-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .pdf-export-controls {
        width: 100%;
    }

    .pdf-export-controls select {
        width: 100%;
    }

    .pdf-export-controls .btn {
        width: 100%;
        justify-content: center;
    }

    /* Ranking hero — empilhado */
    .ranking-hero {
        flex-direction: column;
        text-align: center;
    }

    .ranking-my-position {
        width: 100%;
    }

    /* Macro hero — empilhado */
    .macro-hero-top {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .macro-hero-divider {
        width: 60px;
        height: 2px;
    }

    /* Hard day tips — 1 coluna */
    .hard-day-tips {
        grid-template-columns: 1fr !important;
    }

    /* Smart notifications — texto menor */
    .smart-notif {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .snotif-body strong {
        font-size: 0.9rem;
    }

    .snotif-body p {
        font-size: 0.8rem;
    }

    /* Medidas corporais — 2 colunas no mobile */
    .measurements-input-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .meas-evolution-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Macros cards — 1 coluna no mobile pequeno */
    .macros-cards-grid {
        grid-template-columns: 1fr !important;
    }

    /* Sintomas — 2 colunas no mobile */
    .symptoms-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Intensity selector — empilhado */
    .intensity-selector {
        flex-direction: column;
    }

    /* Tabela de medidas — scroll horizontal */
    .meas-table-wrap {
        -webkit-overflow-scrolling: touch;
    }

    /* Banner de update — largura total */
    #sw-update-banner {
        left: 10px !important;
        right: 10px !important;
        transform: none !important;
        border-radius: 16px !important;
        flex-wrap: wrap;
    }

    /* Ranking tabs — scroll horizontal */
    .ranking-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: var(--spacing-sm);
    }

    .ranking-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Quick actions — empilhado */
    .quick-actions {
        flex-direction: column;
    }

    .quick-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   RECIPES PAGE
   ============================================ */
.recipe-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.recipe-filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.recipe-filter-btn.active,
.recipe-filter-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 3px 10px rgba(232,121,160,0.35);
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.recipe-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.recipe-card-emoji { font-size: 2.5rem; flex-shrink: 0; }

.recipe-card-body { flex: 1; }

.recipe-card-name {
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.recipe-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.recipe-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.recipe-difficulty {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.recipe-diff-easy   { background: #dcfce7; color: #166534; }
.recipe-diff-medium { background: #fef9c3; color: #713f12; }

[data-theme="dark"] .recipe-diff-easy   { background: #14532d; color: #86efac; }
[data-theme="dark"] .recipe-diff-medium { background: #713f12; color: #fde047; }

/* Recipe Modal */
.recipe-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    backdrop-filter: blur(4px);
}

.recipe-modal {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.recipe-modal-close {
    position: sticky;
    top: 12px;
    float: right;
    margin: 12px 12px 0 0;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    line-height: 1;
}

.recipe-modal-hero {
    background: linear-gradient(135deg, #e879a0, #a855f7);
    color: white;
    padding: var(--spacing-xl);
    text-align: center;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.recipe-modal-emoji { font-size: 4rem; margin-bottom: var(--spacing-sm); }
.recipe-modal-hero h2 { color: white; margin-bottom: var(--spacing-sm); }
.recipe-modal-desc { opacity: 0.9; font-size: 0.9rem; }

.recipe-modal-meta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.recipe-meta-item {
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    gap: 6px;
}

.recipe-modal-sections {
    padding: var(--spacing-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

@media (max-width: 500px) {
    .recipe-modal-sections { grid-template-columns: 1fr; }
}

.recipe-modal-section h3 {
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
}

.recipe-ingredients, .recipe-steps {
    padding-left: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recipe-ingredients li, .recipe-steps li {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ============================================
   FAQ + AI PAGE
   ============================================ */
.faq-ai-card {
    background: linear-gradient(135deg, rgba(232,121,160,0.06), rgba(168,85,247,0.06));
    border: 1.5px solid rgba(232,121,160,0.3);
}

.faq-ai-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.faq-ai-icon { font-size: 2.5rem; }
.faq-ai-header h3 { margin: 0; }
.faq-ai-subtitle { font-size: 0.82rem; color: var(--text-secondary); margin-top: 2px; }

.faq-ai-chat {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    scroll-behavior: smooth;
}

.faq-ai-welcome {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    font-size: 0.88rem;
    line-height: 1.6;
}

.faq-ai-welcome span { font-size: 1.5rem; flex-shrink: 0; }

.faq-msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.faq-msg-user { flex-direction: row-reverse; }

.faq-msg-avatar { font-size: 1.3rem; flex-shrink: 0; }

.faq-msg-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 80%;
}

.faq-msg-user .faq-msg-bubble {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.faq-msg-ai .faq-msg-bubble {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.faq-error-bubble {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-color: #fca5a5 !important;
}

.faq-loading-bubble { min-width: 60px; }

.faq-dots span {
    animation: dotBounce 1.2s infinite;
    display: inline-block;
    font-size: 1.4rem;
    line-height: 1;
}
.faq-dots span:nth-child(2) { animation-delay: 0.2s; }
.faq-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40%           { transform: translateY(-6px); }
}

.faq-ai-input-row {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.faq-ai-input-row input {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.faq-ai-input-row input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.faq-quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.faq-quick-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.faq-quick-btn {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.faq-quick-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* FAQ Accordion */
.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: var(--bg-secondary);
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: left;
    color: var(--text-primary);
    gap: var(--spacing-md);
    transition: background 0.2s;
}

.faq-question:hover { background: var(--bg-primary); }

.faq-chevron { flex-shrink: 0; transition: transform 0.3s ease; color: var(--primary-color); }

.faq-answer {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

@media (max-width: 768px) {
    .recipes-grid { grid-template-columns: 1fr; }
    .recipe-filters { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
    .recipe-filter-btn { flex-shrink: 0; }
    .faq-quick-questions { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .faq-quick-btn { flex-shrink: 0; }
}

/* ============================================
   ADMIN — BUMP VERSION CARD
   ============================================ */
.admin-version-card {
    border: 2px solid #e879a0;
    background: linear-gradient(135deg, rgba(232,121,160,0.06), rgba(168,85,247,0.06));
    margin-bottom: var(--spacing-lg);
}

.admin-version-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.admin-version-current {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
}

.admin-version-current strong {
    color: var(--primary-color);
    font-family: monospace;
    font-size: 0.95rem;
}

.admin-version-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.admin-version-log {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    font-family: monospace;
    border-top: 1px solid var(--border-color);
}

.vlog-success { color: #22c55e; font-weight: 700; }
.vlog-error   { color: #ef4444; font-weight: 700; }
.vlog-info    { color: #e879a0; }
.vlog-detail  { color: var(--text-secondary); font-size: 0.8rem; }

/* ============================================
   SHOP V2 — CART, PROMO, CUPOM, AVALIAÇÕES
   ============================================ */

/* Shop header */
.shop-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}
.shop-header-left { flex: 1; }

/* Cart FAB */
.cart-fab {
    position: relative;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(232,121,160,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}
.cart-fab:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(232,121,160,0.5); }

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-primary);
}

/* Cart drawer */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 900;
    backdrop-filter: blur(2px);
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(420px, 100vw);
    background: var(--bg-primary);
    z-index: 901;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.cart-drawer.hidden { display: none; }

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
    padding: 0 4px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.cart-empty span { font-size: 3rem; }

.cart-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm) var(--spacing-md);
}

.cart-item-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    flex-shrink: 0;
    font-size: 1.8rem;
}

.cart-item-img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 0.82rem; color: var(--primary-color); font-weight: 700; }

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.cart-item-controls button {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: background 0.15s;
}
.cart-item-controls button:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }
.cart-item-controls span { font-size: 0.9rem; font-weight: 700; min-width: 20px; text-align: center; }
.cart-remove { color: #ef4444 !important; font-size: 0.75rem !important; }

.cart-footer {
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.cart-coupon-row { display: flex; gap: 8px; }
.cart-coupon-row input { flex: 1; padding: 8px 12px; border-radius: var(--radius-md); border: 1.5px solid var(--border-color); background: var(--bg-primary); color: var(--text-primary); font-size: 0.85rem; }
.cart-discount { font-size: 0.82rem; color: #22c55e; font-weight: 700; }
.cart-subtotal { font-size: 0.82rem; color: var(--text-secondary); text-decoration: line-through; }
.cart-total-value { font-size: 1rem; font-weight: 800; }
.cart-installment { font-size: 0.8rem; color: var(--text-secondary); }
.cart-checkout-btn { width: 100%; font-size: 0.95rem; padding: 14px; margin-top: 4px; }

/* ── PROMO CARD ── */
/* product-card v2 overrides handled above */

.promo-card {
    border: 2px solid #f59e0b !important;
    background: linear-gradient(160deg, var(--bg-primary) 60%, rgba(245,158,11,0.07)) !important;
    animation: promoGlow 2s ease-in-out infinite;
}

@keyframes promoGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245,158,11,0),
                    0 4px 20px rgba(0,0,0,0.2);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(245,158,11,0.18),
                    0 8px 32px rgba(245,158,11,0.2);
    }
}

/* Faixa diagonal de promoção */
.promo-ribbon {
    position: absolute;
    top: 18px;
    right: -30px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 6px 40px;
    transform: rotate(35deg);
    letter-spacing: 0.08em;
    box-shadow: 0 2px 10px rgba(239,68,68,0.5);
    z-index: 3;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Shimmer no thumb quando em promoção */
.promo-card .product-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        transparent 30%,
        rgba(255,255,255,0.12) 50%,
        transparent 70%);
    background-size: 200% 100%;
    animation: shimmer 2.5s linear infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Badge OFERTA piscante no topo do card */
.promo-card::after {
    content: '🔥 OFERTA';
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 4;
    letter-spacing: 0.1em;
    box-shadow: 0 2px 8px rgba(239,68,68,0.5);
    animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.08); }
}

/* Product thumb */
.product-thumb {
    position: relative;
    width: 100%;
    height: 160px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-photo { width: 100%; height: 100%; object-fit: cover; }
.product-emoji-large { font-size: 4rem; }

/* Price */
.product-original-price {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.product-price.price-promo {
    color: #ef4444;
    font-size: 1.4rem;
}

.product-installment {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.5;
}
.product-installment small {
    font-size: 0.75rem;
    opacity: 0.75;
}

/* Actions row */
.product-actions-row {
    display: flex;
    gap: 8px;
    margin-top: var(--spacing-md);
}

.btn-add-cart {
    flex: 1;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-add-cart:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(232,121,160,0.4); }

.btn-whatsapp {
    background: #25d366;
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 10px 14px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-whatsapp:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-notify {
    flex: 1;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-notify:hover { background: var(--primary-color); color: white; }

/* Out of stock overlay */
.out-of-stock-card .product-thumb { filter: grayscale(0.6); opacity: 0.8; }

/* Coupon bar */
.coupon-bar {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: var(--radius-lg);
    padding: 10px 16px;
    margin-bottom: var(--spacing-md);
    color: white;
}
.coupon-bar-inner { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 700; }
.coupon-remove { margin-left: auto; background: rgba(255,255,255,0.2); border: none; color: white; border-radius: 20px; padding: 3px 10px; font-size: 0.8rem; cursor: pointer; }

/* Coupon admin */
.coupon-admin-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: var(--spacing-md) 0;
}
.coupon-admin-form input, .coupon-admin-form select {
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.88rem;
}
.coupon-admin-form input { flex: 1; min-width: 120px; }

.coupon-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 6px;
    font-size: 0.85rem;
    flex-wrap: wrap;
}
.coupon-inactive { opacity: 0.5; }
.coupon-code-badge {
    background: var(--primary-color);
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: monospace;
    letter-spacing: 1px;
}
.coupon-status { margin-left: auto; font-size: 0.8rem; }
.btn-sm {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--text-primary);
}
.btn-danger { border-color: #ef4444; color: #ef4444; }
.btn-danger:hover { background: #ef4444; color: white; }
.btn-load-more {
    display:inline-block;
    padding:8px 20px;
    border-radius:20px;
    border:2px solid var(--accent-primary,#c084fc);
    background:transparent;
    color:var(--accent-primary,#c084fc);
    cursor:pointer;
    font-size:0.85rem;
    transition:all .2s;
    margin:4px 0;
}
.btn-load-more:hover {
    background:var(--accent-primary,#c084fc);
    color:white;
}

/* Product photo preview */
.product-photo-preview { margin-top: 8px; }

/* Reviews */
.product-reviews-section {
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
}

.reviews-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    width: 100%;
    text-align: left;
}
.reviews-toggle-btn i { transition: transform 0.3s; margin-left: auto; }

.reviews-panel {
    margin-top: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.review-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 8px 12px;
}
.review-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.review-stars { font-size: 0.85rem; }
.review-name { font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); }
.review-text { font-size: 0.82rem; color: var(--text-secondary); margin: 0; }

.star-label {
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--border-color);
    transition: color 0.15s;
}
.review-stars-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.review-stars-input input:checked ~ label,
.review-stars-input label:hover,
.review-stars-input label:hover ~ label { color: #f59e0b; }

/* product header row */
.product-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .cart-drawer { width: 100vw; }
    .coupon-admin-form { flex-direction: column; }
    .product-thumb { height: 130px; }
}

/* ============================================
   DASHBOARD HERO — Boas-vindas + Próxima dose
   ============================================ */
.dashboard-hero {
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    color: white;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: 60px;
    width: 240px;
    height: 240px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.dashboard-hero-left { z-index: 1; }

.dashboard-hero-greeting {
    font-size: 0.9rem;
    opacity: 0.85;
    font-weight: 600;
    margin-bottom: 4px;
}

.dashboard-hero-name {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

.dashboard-hero-sub {
    font-size: 0.88rem;
    opacity: 0.8;
}

.dashboard-hero-right {
    z-index: 1;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 160px;
}

.dashboard-next-dose-label {
    font-size: 0.75rem;
    opacity: 0.85;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.dashboard-next-dose-date {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.dashboard-next-dose-days {
    font-size: 0.82rem;
    opacity: 0.8;
}

.dashboard-next-dose-ok {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .dashboard-hero { flex-direction: column; text-align: center; }
    .dashboard-hero-right { width: 100%; }
    .dashboard-hero-name { font-size: 1.4rem; }
}

/* ============================================
   RESPONSIVO MOBILE — REVISÃO COMPLETA
   ============================================ */

/* ── Loja — 2 colunas compactas no mobile ── */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .product-card {
        font-size: 0.9rem;
    }

    .product-thumb {
        height: 110px !important;
    }

    .product-emoji-large {
        font-size: 2.8rem !important;
    }

    .product-body {
        padding: 10px 12px !important;
    }

    .product-name {
        font-size: 0.88rem !important;
        margin-bottom: 4px;
    }

    .product-description {
        font-size: 0.78rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 8px !important;
    }

    .product-price {
        font-size: 1.1rem !important;
    }

    .product-original-price {
        font-size: 0.78rem !important;
    }

    .product-installment {
        font-size: 0.72rem !important;
    }

    .product-actions-row {
        flex-direction: column;
        gap: 6px !important;
        margin-top: 8px !important;
    }



    .product-reviews-section {
        margin-top: 8px;
        padding-top: 8px;
    }

    .promo-ribbon {
        font-size: 0.58rem !important;
        padding: 4px 30px !important;
        top: 12px !important;
        right: -24px !important;
    }

    /* Shop header no mobile */
    .shop-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .shop-filters {
        display: flex;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 4px;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .shop-filters::-webkit-scrollbar { display: none; }

    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 6px 14px !important;
        font-size: 0.8rem !important;
    }

    /* Cart drawer mobile */
    .cart-drawer {
        width: 100vw !important;
    }

    /* Admin shop form */
    .coupon-admin-form {
        flex-direction: column;
    }

    /* Cupom bar */
    .coupon-bar-inner {
        flex-wrap: wrap;
        font-size: 0.82rem;
    }
}

@media (max-width: 420px) {
    /* Tela muito pequena — 1 coluna */
    .products-grid {
        grid-template-columns: 1fr !important;
    }

    .product-thumb {
        height: 150px !important;
    }

    .product-description {
        -webkit-line-clamp: 3;
    }
}

/* ── Dashboard ── */
@media (max-width: 768px) {
    .dashboard-hero {
        padding: var(--spacing-lg) !important;
    }

    .dashboard-hero-name {
        font-size: 1.3rem !important;
    }

    .stats-grid,
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .main-content {
        padding: var(--spacing-md) !important;
        padding-top: calc(var(--header-height) + var(--spacing-md)) !important;
    }

    .page-title {
        font-size: 1.4rem !important;
    }

    .page-subtitle {
        font-size: 0.85rem !important;
    }
}

/* ── Cards gerais ── */
@media (max-width: 768px) {
    .card {
        padding: var(--spacing-md) !important;
        border-radius: var(--border-radius-md) !important;
    }

    /* Receitas — 2 colunas */
    .recipes-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .recipe-card {
        padding: 12px !important;
    }

    /* Ranking */
    .ranking-grid {
        grid-template-columns: 1fr !important;
    }

    /* Comunidade */
    .community-grid,
    .photos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Formulários */
    .form-row {
        grid-template-columns: 1fr !important;
    }

    /* FAQ chat */
    .faq-msg-bubble {
        font-size: 0.85rem !important;
        max-width: 85vw !important;
    }

    /* Botões de ação */
    .btn {
        font-size: 0.88rem !important;
        padding: 10px 16px !important;
    }
}

/* ── Sidebar overlay no mobile ── */
@media (max-width: 768px) {
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 99;
        backdrop-filter: blur(2px);
    }

    .sidebar-overlay.active {
        display: block;
    }

    /* Sidebar compacta no mobile */
    .sidebar {
        z-index: 100;
    }

    .menu-item {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }

    .menu-item i {
        font-size: 1rem !important;
        width: 20px !important;
    }
}

/* ── Tablet — 3 colunas na loja ── */
@media (min-width: 769px) and (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .product-thumb {
        height: 130px !important;
    }
}

/* ── Desktop largo — 4+ colunas na loja ── */
@media (min-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    }
}

/* ── AJUSTES MOBILE FINOS — pós review ── */
@media (max-width: 768px) {

    /* Thumb menor — menos espaço vazio */
    .product-thumb {
        height: 90px !important;
    }

    .product-emoji-large {
        font-size: 2.4rem !important;
    }

    /* Body mais compacto */
    .product-body {
        padding: 8px 10px !important;
        gap: 0 !important;
    }

    .product-name {
        font-size: 0.82rem !important;
        font-weight: 800 !important;
        line-height: 1.25 !important;
        margin-bottom: 3px !important;
    }

    .product-description {
        font-size: 0.73rem !important;
        -webkit-line-clamp: 2 !important;
        margin-bottom: 6px !important;
        line-height: 1.4 !important;
    }

    .product-price-section {
        padding-top: 6px !important;
        margin-top: 4px !important;
    }

    .product-original-price {
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
    }

    .product-price {
        font-size: 1rem !important;
        margin-bottom: 1px !important;
    }

    .product-installment {
        font-size: 0.65rem !important;
        line-height: 1.3 !important;
    }

    /* Botões — linha única compacta */
    .product-actions-row {
        flex-direction: row !important;
        gap: 5px !important;
        margin-top: 6px !important;
    }



    .btn-notify {
        font-size: 0.7rem !important;
        padding: 7px 8px !important;
    }

    /* Faixa promoção — reposiciona para não cortar */
    .promo-ribbon {
        font-size: 0.52rem !important;
        padding: 3px 28px !important;
        top: 10px !important;
        right: -22px !important;
        letter-spacing: 0.03em !important;
    }

    /* Badge DESTAQUE — move para baixo da faixa quando promoção */
    .promo-card.product-card.featured::before {
        top: 34px !important;
    }

    /* Badge OFERTA — menor */
    .promo-card::after {
        font-size: 0.55rem !important;
        padding: 3px 7px !important;
        top: 7px !important;
        left: 7px !important;
    }

    /* Avaliações */
    .reviews-toggle-btn {
        font-size: 0.72rem !important;
        padding: 3px 0 !important;
    }

    /* Stock info */
    .product-stock-info {
        font-size: 0.68rem !important;
        margin-bottom: 4px !important;
    }

    /* Category tag */
    .product-category {
        font-size: 0.62rem !important;
        padding: 2px 7px !important;
        margin-bottom: 4px !important;
    }

    /* Admin buttons no card */
    .btn-edit-product,
    .btn-delete-product {
        padding: 5px 7px !important;
        font-size: 0.72rem !important;
    }

    /* Product card min-height reset */
    .product-card {
        min-height: unset !important;
    }
}

/* ── AJUSTES MOBILE ROUND 3 ── */
@media (max-width: 768px) {

    /* Filtros — scroll horizontal, nunca quebra linha */
    .shop-filters {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        width: 100% !important;
        padding-bottom: 6px !important;
    }

    .filter-btn {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 5px 12px !important;
        font-size: 0.75rem !important;
    }



    /* FAB carrinho menor */
    .cart-fab {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }

    /* Ações em linha compacta */
    .product-actions-row {
        justify-content: flex-start !important;
    }
}

/* ── BOTÕES DA LOJA — mobile definitivo ── */
@media (max-width: 768px) {

    .product-actions-row {
        flex-direction: row !important;
        gap: 6px !important;
        margin-top: 8px !important;
        align-items: center !important;
    }

    /* Botão carrinho: ícone + texto curto, altura fixa */
    .btn-add-cart {
        flex: 1 !important;
        height: 34px !important;
        padding: 0 8px !important;
        font-size: 0.72rem !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        gap: 4px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .btn-add-cart i {
        font-size: 0.85rem !important;
        flex-shrink: 0 !important;
    }

    .btn-label {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    /* Botão WhatsApp: quadrado fixo */
    .btn-whatsapp {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        padding: 0 !important;
        border-radius: 8px !important;
        font-size: 1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    /* Botão "Avise-me" */
    .btn-notify {
        height: 34px !important;
        font-size: 0.7rem !important;
        padding: 0 8px !important;
    }
}

/* ============================================
   MACRO AI — Card de Análise Personalizada
   ============================================ */
.macro-ai-card {
    background: var(--bg-primary);
    border: 1.5px solid rgba(232,121,160,0.3);
    position: relative;
    overflow: hidden;
}

.macro-ai-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.macro-ai-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.macro-ai-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.macro-ai-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 2px 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.macro-ai-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.macro-ai-badge {
    margin-left: auto;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

/* Loading dots */
.macro-ai-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-xl) 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ai-dots {
    display: flex;
    gap: 6px;
}

.ai-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gradient-primary);
    animation: aiDotBounce 1.2s ease-in-out infinite;
}

.ai-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes aiDotBounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
    40% { transform: scale(1.1); opacity: 1; }
}

/* AI content text */
.macro-ai-content p {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.macro-ai-content p:last-child {
    margin-bottom: 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-style: italic;
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-md);
}

/* ── MACROS GENDER BADGE ── */
.macros-gender-info {
    margin-bottom: var(--spacing-md);
}

.macros-gender-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 10px 16px;
    border-radius: var(--border-radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    flex-wrap: wrap;
}

.macros-gender-badge.female {
    background: rgba(232,121,160,0.12);
    border: 1px solid rgba(232,121,160,0.3);
    color: #e879a0;
}

.macros-gender-badge.male {
    background: rgba(99,179,237,0.1);
    border: 1px solid rgba(99,179,237,0.3);
    color: #63b3ed;
}

.macros-gender-detail {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.8;
}

/* ── HARD DAY BUTTON — mobile fix ── */
#hard-day-btn {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(232,121,160,0.2);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.hard-day-close {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Quick actions — botões com área de toque generosa no mobile */
@media (max-width: 768px) {
    #hard-day-btn,
    #quick-register {
        min-height: 48px;
        touch-action: manipulation;
    }
}

/* ============================================
   PWA INSTALL BANNER
   ============================================ */
.pwa-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 12px 16px;
    background: var(--gradient-primary);
    box-shadow: 0 -4px 20px rgba(232,121,160,0.4);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.pwa-banner-show {
    transform: translateY(0) !important;
}

.pwa-banner-hide {
    transform: translateY(100%) !important;
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.pwa-banner-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.pwa-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    color: white;
}

.pwa-banner-text strong {
    font-size: 0.92rem;
    font-weight: 900;
}

.pwa-banner-text span {
    font-size: 0.78rem;
    opacity: 0.9;
}

.pwa-install-btn {
    background: white;
    color: #e879a0;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    transition: transform 0.15s;
}

.pwa-install-btn:hover { transform: scale(1.05); }

.pwa-dismiss-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================================
   PWA POPUP MODAL
   ============================================ */
.pwa-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
}

.pwa-popup-show { pointer-events: all; }
.pwa-popup-show .pwa-popup-overlay { opacity: 1; }
.pwa-popup-show .pwa-popup-box { transform: translateY(0); opacity: 1; }

.pwa-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s;
}

.pwa-popup-box {
    position: relative;
    background: var(--surface);
    border-radius: 24px 24px 16px 16px;
    padding: 28px 24px 20px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
    border-top: 4px solid transparent;
    border-image: var(--gradient-primary) 1;
    box-shadow: 0 -8px 40px rgba(232,121,160,0.25);
}

.pwa-popup-x {
    position: absolute;
    top: 14px; right: 16px;
    background: var(--accent);
    border: none;
    width: 30px; height: 30px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
}

.pwa-popup-icon { font-size: 3rem; margin-bottom: 8px; }

.pwa-popup-title {
    font-size: 1.25rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.pwa-popup-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.pwa-popup-benefits {
    list-style: none;
    text-align: left;
    background: var(--gradient-subtle);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pwa-popup-benefits li {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
}

.pwa-popup-install-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    margin-bottom: 10px;
    transition: filter 0.2s, transform 0.2s;
}

.pwa-popup-install-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.pwa-popup-ios {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--accent);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.pwa-popup-later {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 4px;
    text-decoration: underline;
}

/* ── Dashboard install card ── */
.pwa-dashboard-card {
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius-md);
    background: var(--gradient-subtle);
    border: 1.5px solid rgba(232,121,160,0.3);
    overflow: hidden;
    animation: fadeIn 0.4s ease;
}

.pwa-dashboard-card-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.pwa-dc-icon { font-size: 1.6rem; flex-shrink: 0; }

.pwa-dc-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pwa-dc-text strong {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-primary);
}

.pwa-dc-text span {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.pwa-dc-install {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

.pwa-dc-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 6px;
    flex-shrink: 0;
}

/* Banner persistente — não some mais com X, só minimiza */
.pwa-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    padding: 12px 16px;
    background: var(--gradient-primary);
    box-shadow: 0 -4px 20px rgba(232,121,160,0.4);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.pwa-banner-show { transform: translateY(0) !important; }
.pwa-banner-hide { transform: translateY(100%) !important; }

/* ============================================
   REMEMBER ME + FORGOT PASSWORD
   ============================================ */
.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: 8px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    user-select: none;
}

.remember-label input[type="checkbox"] { display: none; }

.remember-custom {
    width: 18px; height: 18px;
    border: 2px solid var(--border-color, var(--border));
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.remember-label input[type="checkbox"]:checked + .remember-custom {
    background: var(--gradient-primary);
    border-color: transparent;
}

.remember-label input[type="checkbox"]:checked + .remember-custom::after {
    content: '✓';
    color: white;
    font-size: 0.7rem;
    font-weight: 900;
}

.forgot-link {
    font-size: 0.82rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover { text-decoration: underline; }

/* ── Promo dates row ── */
.promo-dates-row { margin-top: 8px; }

.promo-notify-row {
    margin-top: 8px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: rgba(232,121,160,0.08);
    border-radius: 10px;
    border: 1px solid rgba(232,121,160,0.2);
}

/* ── Notification history ── */
.notif-history-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color, var(--border));
    font-size: 0.82rem;
    flex-wrap: wrap;
}

.notif-history-item:last-child { border-bottom: none; }

/* ── Trial badge no admin ── */
.trial-badge {
    display: inline-block;
    background: rgba(168,85,247,0.15);
    color: #a855f7;
    border: 1px solid rgba(168,85,247,0.3);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 4px;
}
.trial-badge.expired {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
    border-color: rgba(239,68,68,0.3);
}

/* ============================================
   PIX PAYMENT MODAL
   ============================================ */
.pix-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pix-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
}

.pix-modal-box {
    position: relative;
    background: var(--surface);
    border-radius: 24px;
    padding: 28px 24px 20px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 20px 60px rgba(232,121,160,0.25);
    border-top: 4px solid #e879a0;
    animation: pixModalIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes pixModalIn {
    from { transform: scale(0.85) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.pix-modal-close {
    position: absolute;
    top: 14px; right: 16px;
    background: var(--accent);
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
}

.pix-modal-header { margin-bottom: 16px; }
.pix-modal-icon { font-size: 2.5rem; margin-bottom: 6px; }
.pix-modal-title {
    font-size: 1.3rem; font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}
.pix-modal-subtitle { font-size: 0.85rem; color: var(--text-secondary); }

.pix-value-box {
    background: var(--gradient-primary);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pix-value-label { color: rgba(255,255,255,0.8); font-size: 0.8rem; font-weight: 600; }
.pix-value-amount { color: white; font-size: 1.8rem; font-weight: 900; }

/* Steps */
.pix-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
}
.pix-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.4;
    transition: opacity 0.3s;
}
.pix-step.active { opacity: 1; }
.pix-step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 800;
    border: 2px solid var(--border-color);
}
.pix-step.active .pix-step-num {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}
.pix-step span { font-size: 0.7rem; color: var(--text-secondary); white-space: nowrap; }
.pix-step-line { width: 30px; height: 2px; background: var(--border-color); margin: 0 4px; margin-bottom: 18px; }

/* QR Section */
.pix-qr-section { margin-bottom: 16px; }
.pix-instruction { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 12px; }
.pix-qr-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
.pix-qr-wrapper canvas {
    border-radius: 12px;
    border: 3px solid rgba(232,121,160,0.3);
    padding: 8px;
    background: white;
}
.pix-copy-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}
.pix-copy-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

.pix-code-box {
    background: var(--accent);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.62rem;
    word-break: break-all;
    color: var(--text-secondary);
    text-align: left;
    max-height: 60px;
    overflow: hidden;
    font-family: monospace;
}

/* Waiting / Confirmed */
.pix-waiting, .pix-confirmed { padding: 12px 0; }
.pix-waiting-icon, .pix-confirmed-icon { font-size: 3rem; margin-bottom: 8px; }
.pix-waiting p, .pix-confirmed p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.pix-waiting-sub { font-size: 0.82rem !important; }

.pix-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Cart checkout buttons */
.cart-checkout-btns { display: flex; flex-direction: column; gap: 8px; }
.cart-checkout-btn { width: 100%; }
.cart-checkout-btn-wpp {
    width: 100%;
    border: 1.5px solid rgba(37,211,102,0.5);
    color: #25d366;
    background: transparent;
    border-radius: 12px;
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.cart-checkout-btn-wpp:hover { background: rgba(37,211,102,0.1); }

/* Pix icon button on product card */
.btn-pix {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: filter 0.2s;
}
.btn-pix:hover { filter: brightness(1.15); }

@media (max-width: 768px) {
    .pix-modal-box { padding: 20px 16px; border-radius: 20px 20px 0 0; }
    .pix-modal { align-items: flex-end; padding: 0; }
}

/* ── Botões Pix + WhatsApp no card do produto ── */
.product-buy-btns {
    display: flex;
    gap: 4px;
}

.btn-pix-small,
.btn-wpp-small {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: filter 0.2s, transform 0.15s;
}

.btn-pix-small {
    background: var(--gradient-primary);
    color: white;
}

.btn-wpp-small {
    background: #25d366;
    color: white;
}

.btn-pix-small:hover,
.btn-wpp-small:hover {
    filter: brightness(1.12);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .btn-pix-small,
    .btn-wpp-small {
        width: 30px;
        height: 30px;
        font-size: 0.78rem;
    }
}

/* ── Pix modal simplificado ── */
.pix-steps-simple {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    text-align: left;
}

.pix-step-simple {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.pix-step-num-simple {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.pix-code-wrapper {
    margin-bottom: 12px;
}

.pix-code-box {
    background: var(--accent);
    border: 1.5px solid rgba(232,121,160,0.25);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.72rem;
    word-break: break-all;
    color: var(--text-secondary);
    text-align: left;
    font-family: monospace;
    line-height: 1.5;
    user-select: all;
    cursor: text;
}

.pix-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 10px;
    text-align: center;
    font-style: italic;
}

/* ============================================
   RELATÓRIO DE VENDAS
   ============================================ */
.sales-period-row {
    display: flex; gap: 8px; align-items: center; margin-bottom: 16px;
}
.sales-period-row select {
    flex: 1; padding: 8px 12px; border-radius: 8px;
    border: 1px solid var(--border-color); background: var(--accent);
    color: var(--text-primary); font-size: 0.85rem;
}
.sales-kpis {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 16px;
}
@media(max-width:600px){ .sales-kpis { grid-template-columns: repeat(2,1fr); } }
.sales-kpi {
    background: var(--accent); border-radius: 12px; padding: 14px 10px;
    text-align: center; border: 1px solid var(--border-color);
}
.sales-kpi-icon { font-size: 1.4rem; margin-bottom: 4px; }
.sales-kpi-value { font-size: 1.1rem; font-weight: 900; color: var(--text-primary); }
.sales-kpi-label { font-size: 0.72rem; color: var(--text-secondary); margin-top: 2px; }
.order-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border-color); gap: 8px;
}
.order-row:last-child { border-bottom: none; }
.order-row-info { display: flex; flex-direction: column; gap: 2px; }
.order-row-info strong { font-size: 0.88rem; }
.order-row-info span { font-size: 0.75rem; color: var(--text-secondary); }
.order-row-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.order-badge { font-size: 0.72rem; padding: 3px 8px; border-radius: 20px; font-weight: 700; }
.order-badge.pending   { background: rgba(234,179,8,0.15);  color: #ca8a04; }
.order-badge.confirmed { background: rgba(34,197,94,0.15);  color: #16a34a; }
.order-badge.cancelled { background: rgba(239,68,68,0.15);  color: #dc2626; }

/* ============================================
   ANTES & DEPOIS
   ============================================ */
.ba-card {
    display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px;
    background: var(--accent); border-radius: 14px; padding: 16px;
    border: 1px solid var(--border-color);
}
.ba-col { text-align: center; }
.ba-label { font-size: 0.72rem; color: var(--text-secondary); margin-bottom: 6px; }
.ba-weight { font-size: 2rem; font-weight: 900; color: var(--text-primary); }
.ba-weight span { font-size: 1rem; font-weight: 600; color: var(--text-secondary); }
.ba-imc  { font-size: 0.78rem; color: var(--text-secondary); }
.ba-mood { font-size: 0.78rem; color: var(--text-secondary); margin-top: 4px; }
.ba-middle {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 4px; padding: 0 8px;
}
.ba-arrow { font-size: 1.5rem; color: var(--text-muted); }
.ba-lost  { font-size: 1.4rem; font-weight: 900; }
.ba-lost.positive { color: #22c55e; }
.ba-lost.negative { color: #ef4444; }
.ba-period { font-size: 0.75rem; color: var(--text-secondary); }
.ba-pct    { font-size: 0.72rem; color: var(--text-muted); }

/* ============================================
   DESAFIOS
   ============================================ */
.challenge-card { margin-bottom: 16px; }
.challenge-header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
    flex-wrap: wrap;
}
.challenge-icon { font-size: 2rem; }
.challenge-header h3 { margin: 0; font-size: 1rem; }
.challenge-header p  { margin: 0; font-size: 0.8rem; color: var(--text-secondary); }
.challenge-my-badge {
    margin-left: auto; background: var(--gradient-primary);
    color: white; border-radius: 20px; padding: 4px 14px; font-size: 0.82rem;
}
.challenge-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid var(--border-color);
}
.challenge-row:last-child { border-bottom: none; }
.challenge-row.challenge-me { background: rgba(232,121,160,0.08); border-radius: 8px; padding: 8px; }
.challenge-pos    { font-size: 1.2rem; width: 32px; text-align: center; }
.challenge-avatar { font-size: 1.2rem; }
.challenge-name   { flex: 1; font-size: 0.88rem; }
.challenge-loss   { font-size: 0.9rem; font-weight: 800; color: #22c55e; }
.challenge-note   { font-size: 0.72rem; color: var(--text-muted); margin-top: 10px; }

/* ============================================
   ANIVERSÁRIO DA JORNADA
   ============================================ */
.anniversary-toast {
    position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(100px);
    background: var(--gradient-primary); color: white;
    border-radius: 20px; padding: 16px 20px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 8px 32px rgba(232,121,160,0.5);
    z-index: 9999; max-width: 340px; width: calc(100% - 32px);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s;
    opacity: 0;
}
.anniversary-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.anniversary-emoji { font-size: 2.5rem; flex-shrink: 0; }
.anniversary-toast strong { font-size: 0.95rem; display: block; margin-bottom: 2px; }
.anniversary-toast p { margin: 0; font-size: 0.82rem; opacity: 0.9; line-height: 1.4; }
.anniversary-toast button {
    position: absolute; top: 8px; right: 10px;
    background: rgba(255,255,255,0.2); border: none; color: white;
    width: 22px; height: 22px; border-radius: 50%;
    cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
}

/* ============================================
   SUGESTÃO INTELIGENTE DE DOSE
   ============================================ */
.dose-suggestion-card {
    border-left: 4px solid var(--primary);
    transition: border-color 0.3s;
}
.dose-suggestion-card.type-advance { border-left-color: #f59e0b; }
.dose-suggestion-card.type-good    { border-left-color: #22c55e; }
.dose-suggestion-card.type-max     { border-left-color: #a855f7; }
.dose-suggestion-card.type-moderate{ border-left-color: #3b82f6; }

.dose-suggestion-header {
    display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px;
}
.dose-suggestion-icon { font-size: 2.2rem; flex-shrink: 0; }
.dose-suggestion-header h3 { margin: 0 0 4px; font-size: 1rem; }

.dose-stat-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 12px; background: var(--accent); border-radius: 8px;
    margin-bottom: 6px; font-size: 0.85rem;
}
.dose-stat-row strong { font-size: 0.95rem; }
.dose-stat-row.warn { background: rgba(245,158,11,0.1); }
.dose-stat-row.good { background: rgba(34,197,94,0.1); }
.dose-next-highlight { color: #e879a0; font-size: 1.1rem; }

.dose-suggestion-tip {
    margin-top: 10px; padding: 10px 14px;
    background: rgba(232,121,160,0.08);
    border-radius: 10px; font-size: 0.82rem;
    color: var(--text-secondary); line-height: 1.6;
    display: flex; gap: 8px; align-items: flex-start;
}
.dose-suggestion-tip i { margin-top: 2px; flex-shrink: 0; color: var(--primary); }
.dose-suggestion-tip.warn { background: rgba(245,158,11,0.08); }
.dose-suggestion-tip.warn i { color: #f59e0b; }
.dose-suggestion-tip.good { background: rgba(34,197,94,0.08); }
.dose-suggestion-tip.good i { color: #22c55e; }

/* ── Banner in-app (promoções/notificações) ── */
.smart-notif-promo {
    background: linear-gradient(135deg, rgba(232,121,160,0.12), rgba(168,85,247,0.12));
    border-left: 3px solid #e879a0;
    animation: slideInBanner 0.4s ease;
}
@keyframes slideInBanner {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SININHO + CENTRAL DE NOTIFICAÇÕES
   ============================================ */
.notif-bell-btn {
    position: relative;
    background: var(--accent);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1rem;
    color: var(--text-primary);
    transition: background 0.2s;
}
.notif-bell-btn:hover { background: rgba(232,121,160,0.15); }

.notif-bell-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: #e879a0;
    color: white;
    font-size: 0.62rem;
    font-weight: 900;
    min-width: 18px; height: 18px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-primary);
    animation: badgePop 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes badgePop {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

/* Overlay */
.notif-center-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9990;
    backdrop-filter: blur(2px);
}

/* Drawer */
.notif-center-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 360px; max-width: 95vw;
    height: 100vh;
    background: var(--surface);
    z-index: 9991;
    display: flex; flex-direction: column;
    box-shadow: -8px 0 40px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    border-left: 1px solid var(--border-color);
}
.notif-center-drawer.open { transform: translateX(0); }

.notif-center-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--gradient-primary);
    color: white;
}
.notif-center-header h3 {
    margin: 0; font-size: 1rem; font-weight: 800;
    display: flex; align-items: center; gap: 8px;
}
.notif-center-actions { display: flex; gap: 8px; align-items: center; }
.notif-clear-btn {
    background: rgba(255,255,255,0.2);
    border: none; color: white;
    border-radius: 8px; padding: 4px 10px;
    font-size: 0.75rem; cursor: pointer;
}
.notif-close-btn {
    background: rgba(255,255,255,0.2);
    border: none; color: white;
    border-radius: 50%; width: 28px; height: 28px;
    font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

.notif-center-list {
    flex: 1; overflow-y: auto; padding: 8px 0;
}

.notif-center-empty {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 10px;
    padding: 60px 20px; color: var(--text-muted);
    font-size: 0.9rem;
}
.notif-center-empty i { font-size: 2.5rem; opacity: 0.4; }

/* Itens */
.notif-center-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
    position: relative;
}
.notif-center-item:hover { background: var(--accent); }
.notif-center-item.unread { background: rgba(232,121,160,0.06); }
.notif-center-item.unread::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: #e879a0;
    border-radius: 0 2px 2px 0;
}
.notif-center-item.dismissed { opacity: 0.45; }

.nci-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.nci-body { flex: 1; min-width: 0; }
.nci-body strong { font-size: 0.88rem; display: block; margin-bottom: 2px; }
.nci-body p { font-size: 0.8rem; color: var(--text-secondary); margin: 0; line-height: 1.4; }
.nci-date { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; display: block; }
.nci-actions { flex-shrink: 0; }
.nci-dismiss-btn {
    background: var(--accent); border: none;
    width: 24px; height: 24px; border-radius: 50%;
    cursor: pointer; font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
}
.nci-dismissed-label { font-size: 0.7rem; color: var(--text-muted); }

@media (max-width: 480px) {
    .notif-center-drawer { width: 100vw; }
}

/* Sidebar header buttons group */
.sidebar-header-btns {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   CARD COMPARTILHÁVEL
   ============================================================ */
.share-card-preview {
    background: var(--accent); border-radius: 12px;
    overflow: hidden; margin-bottom: 12px;
    display: none; text-align: center;
}
.share-card-preview.has-card { display: block; }
.share-card-preview canvas { max-width: 100%; height: auto; display: block; }
.share-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.share-card-actions .btn { flex: 1; min-width: 120px; }

/* ============================================================
   SINTOMAS CHART
   ============================================================ */
.symptom-top-badge {
    display: inline-block; background: rgba(232,121,160,0.12);
    border: 1px solid rgba(232,121,160,0.3);
    color: var(--text-primary); border-radius: 20px;
    padding: 4px 12px; font-size: 0.8rem; margin: 3px;
}

/* ============================================================
   MINI METAS SEMANAIS
   ============================================================ */
.weekly-goals-card { }
.weekly-goals-header {
    display: flex; justify-content: space-between;
    align-items: flex-start; margin-bottom: 16px;
}
.weekly-goals-score {
    font-size: 1.8rem; font-weight: 900;
    color: var(--text-secondary);
    background: var(--accent); border-radius: 50%;
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--border-color);
    font-size: 1rem;
}
.weekly-goals-score.complete {
    background: var(--gradient-primary);
    color: white; border-color: transparent;
    animation: scorePop 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes scorePop { from { transform:scale(0.5); } to { transform:scale(1); } }

.weekly-goal-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--border-color);
    transition: opacity 0.3s;
}
.weekly-goal-item:last-child { border-bottom: none; }
.weekly-goal-item.done { opacity: 0.7; }
.wg-icon { font-size: 1.6rem; flex-shrink: 0; width: 36px; text-align: center; }
.wg-body { flex: 1; }
.wg-body strong { font-size: 0.88rem; display: block; margin-bottom: 2px; }
.wg-body p { font-size: 0.78rem; color: var(--text-secondary); margin: 0 0 6px; }
.wg-bar { height: 6px; background: var(--border-color); border-radius: 3px; overflow: hidden; }
.wg-bar-fill { height: 100%; background: var(--gradient-primary); border-radius: 3px; transition: width 0.6s ease; }
.wg-bar-fill.done { background: linear-gradient(90deg, #22c55e, #16a34a); }
.wg-pct { font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); flex-shrink: 0; width: 36px; text-align: right; }

.weekly-celebration {
    text-align: center; padding: 20px;
    background: linear-gradient(135deg, rgba(232,121,160,0.1), rgba(168,85,247,0.1));
    border-radius: 12px; margin-top: 12px;
    border: 1px solid rgba(232,121,160,0.2);
}
.weekly-celebration.hidden { display: none; }
.celebration-emoji { font-size: 2.5rem; margin-bottom: 8px; }
.weekly-celebration strong { display: block; margin-bottom: 4px; }
.weekly-celebration p { font-size: 0.82rem; color: var(--text-secondary); }

/* ============================================================
   RELATÓRIO MENSAL
   ============================================================ */
.monthly-report-selector {
    display: flex; gap: 10px; align-items: center; margin-bottom: 12px;
}
.monthly-report-selector select {
    flex: 1; padding: 8px 12px; border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--accent); color: var(--text-primary);
    font-size: 0.88rem;
}
.monthly-preview {
    background: var(--accent); border-radius: 12px;
    padding: 16px; border: 1px solid var(--border-color);
}
.report-preview-header {
    font-weight: 700; font-size: 0.95rem;
    margin-bottom: 12px; color: var(--text-primary);
}
.report-preview-grid {
    display: grid; grid-template-columns: repeat(2,1fr); gap: 10px;
}
.rp-stat {
    background: var(--surface); border-radius: 10px;
    padding: 12px; text-align: center;
    border: 1px solid var(--border-color);
}
.rp-stat span { font-size: 1.3rem; font-weight: 900; display: block; color: #e879a0; }
.rp-stat small { font-size: 0.72rem; color: var(--text-secondary); }

/* ============================================================
   PLANO ALIMENTAR SEMANAL
   ============================================================ */
.meal-plan-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:12px; }
.meal-plan-macros-bar { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-bottom:14px; }
.mpb-item { background:var(--accent); border-radius:10px; padding:10px; text-align:center; border:1px solid var(--border-color); }
.mpb-item.prot { border-top:3px solid #e879a0; }
.mpb-item.carb { border-top:3px solid #a855f7; }
.mpb-item.fat  { border-top:3px solid #f59e0b; }
.mpb-val { font-size:1.1rem; font-weight:900; color:var(--text-primary); display:block; }
.mpb-item small { font-size:0.7rem; color:var(--text-secondary); }
.meal-plan-note { font-size:0.78rem; color:var(--text-secondary); background:rgba(232,121,160,0.06); border-radius:8px; padding:8px 12px; margin-bottom:12px; }
.meal-plan-tabs { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px; }
.mpt-tab { padding:6px 12px; border-radius:20px; border:1px solid var(--border-color); background:var(--accent); color:var(--text-secondary); cursor:pointer; font-size:0.8rem; font-weight:700; transition:all 0.2s; }
.mpt-tab.active { background:var(--gradient-primary); color:white; border-color:transparent; }
.meal-plan-day { }
.meal-plan-day.hidden { display:none; }
.meal-day-title { font-size:0.9rem; font-weight:700; margin-bottom:10px; color:var(--text-primary); }
.meal-row { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid var(--border-color); gap:8px; }
.meal-row:last-of-type { border-bottom:none; }
.meal-row-left { display:flex; flex-direction:column; gap:2px; }
.meal-label { font-size:0.72rem; color:var(--primary); font-weight:700; text-transform:uppercase; }
.meal-name  { font-size:0.85rem; color:var(--text-primary); }
.meal-row-macros { display:flex; flex-direction:column; align-items:flex-end; gap:2px; flex-shrink:0; }
.mm-cal  { font-size:0.82rem; font-weight:700; color:var(--text-primary); }
.mm-prot { font-size:0.72rem; color:var(--text-secondary); }
.meal-day-total { margin-top:10px; padding:10px; background:var(--accent); border-radius:8px; font-size:0.8rem; text-align:center; color:var(--text-secondary); }

/* ============================================================
   CHAT
   ============================================================ */
.chat-card { display:flex; flex-direction:column; height:70vh; padding:0 !important; overflow:hidden; }
.chat-messages { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px; }
.chat-loading, .chat-welcome { text-align:center; color:var(--text-secondary); padding:30px 20px; }
.chat-welcome-icon { font-size:2.5rem; margin-bottom:8px; }
.chat-welcome strong { display:block; margin-bottom:6px; font-size:1rem; }
.chat-welcome p { font-size:0.85rem; }
.chat-msg { display:flex; flex-direction:column; max-width:75%; }
.chat-msg.mine { align-self:flex-end; align-items:flex-end; }
.chat-msg.theirs { align-self:flex-start; align-items:flex-start; }
.chat-msg-sender { font-size:0.7rem; color:var(--text-muted); margin-bottom:2px; }
.chat-bubble { padding:10px 14px; border-radius:18px; font-size:0.88rem; line-height:1.5; }
.chat-msg.mine   .chat-bubble { background:var(--gradient-primary); color:white; border-radius:18px 18px 4px 18px; }
.chat-msg.theirs .chat-bubble { background:var(--accent); color:var(--text-primary); border:1px solid var(--border-color); border-radius:18px 18px 18px 4px; }
.chat-time { font-size:0.68rem; color:var(--text-muted); margin-top:3px; }
.chat-input-row { display:flex; gap:8px; padding:12px 16px; border-top:1px solid var(--border-color); background:var(--surface); }
.chat-input { flex:1; padding:10px 14px; border-radius:24px; border:1px solid var(--border-color); background:var(--accent); color:var(--text-primary); font-size:0.9rem; }
.chat-input:focus { outline:none; border-color:var(--primary); }
.chat-send-btn { border-radius:50%; width:42px; height:42px; padding:0; flex-shrink:0; }

/* Admin chat list */
.admin-chat-row { display:flex; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid var(--border-color); cursor:pointer; border-radius:8px; padding:10px; }
.admin-chat-row:hover { background:var(--accent); }
.acr-avatar { font-size:1.6rem; flex-shrink:0; }
.acr-body { flex:1; min-width:0; }
.acr-body strong { font-size:0.88rem; display:block; }
.acr-body p { font-size:0.78rem; color:var(--text-secondary); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.acr-right { display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.acr-time { font-size:0.7rem; color:var(--text-muted); }
.acr-badge { background:#e879a0; color:white; border-radius:10px; padding:2px 7px; font-size:0.7rem; font-weight:700; }

/* ============================================================
   GESTÃO DE ESTOQUE
   ============================================================ */
.stock-summary { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-bottom:16px; }
.stock-kpi { background:var(--accent); border-radius:10px; padding:12px; text-align:center; border:1px solid var(--border-color); }
.stock-kpi span { font-size:1.4rem; font-weight:900; display:block; }
.stock-kpi small { font-size:0.7rem; color:var(--text-secondary); }
.stock-kpi.critical { border-top:3px solid #ef4444; }
.stock-kpi.low      { border-top:3px solid #f59e0b; }
.stock-kpi.ok       { border-top:3px solid #22c55e; }
.stock-section { margin-bottom:14px; }
.stock-section-title { font-size:0.78rem; font-weight:700; color:var(--text-secondary); margin-bottom:8px; text-transform:uppercase; letter-spacing:0.5px; }
.stock-row { display:flex; justify-content:space-between; align-items:center; padding:8px 12px; border-radius:8px; margin-bottom:4px; }
.stock-row.critical { background:rgba(239,68,68,0.08); border-left:3px solid #ef4444; }
.stock-row.low      { background:rgba(245,158,11,0.08); border-left:3px solid #f59e0b; }
.stock-row.ok       { background:var(--accent); }
.stock-product-name { font-size:0.85rem; font-weight:600; }
.stock-row-right { display:flex; align-items:center; gap:8px; }
.stock-qty { font-size:0.8rem; font-weight:700; color:var(--text-secondary); }

/* ============================================================
   DASHBOARD DE ENGAJAMENTO
   ============================================================ */
.eng-section { }
.eng-title { font-size:0.82rem; font-weight:700; color:var(--text-secondary); margin-bottom:10px; text-transform:uppercase; letter-spacing:0.5px; }
.eng-user-row { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px solid var(--border-color); }
.eng-user-row:last-child { border-bottom:none; }
.eng-rank { width:28px; text-align:center; font-size:0.9rem; flex-shrink:0; }
.eng-name { width:100px; font-size:0.82rem; flex-shrink:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.eng-bar-wrap { flex:1; height:8px; background:var(--border-color); border-radius:4px; overflow:hidden; }
.eng-bar { height:100%; background:var(--gradient-primary); border-radius:4px; transition:width 0.5s ease; }
.eng-count { width:60px; text-align:right; font-size:0.75rem; color:var(--text-secondary); flex-shrink:0; }
/* Measurement inputs - remove spinners, show clean numeric keyboard */
.meas-input-clean::-webkit-outer-spin-button,
.meas-input-clean::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.meas-input-clean[type=number] { -moz-appearance: textfield; appearance: textfield; }
.meas-input-clean { font-size: 1.1rem !important; text-align: center; letter-spacing: 1px; }

/* ── Botão fechar menu mobile ── */
.sidebar-close-btn {
    display: none; /* só aparece no mobile */
    background: rgba(128,128,128,0.15);
    border: none;
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.sidebar-close-btn:hover { background: rgba(128,128,128,0.3); }

@media (max-width: 768px) {
    .sidebar-close-btn {
        display: flex;
    }
}

/* ── Botão sincronizar nuvem no footer do menu ── */
.sync-local-btn {
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--primary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.sync-local-btn:hover { background: rgba(168, 85, 247, 0.25); }

/* ── Chat layout admin (sidebar + mensagens) ── */
.chat-layout {
    display: flex;
    height: 600px;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
}
.chat-sidebar {
    display: none; /* escondido por default, JS mostra para admin */
    flex-direction: column;
    width: 280px;
    min-width: 220px;
    border-right: 1px solid var(--border);
    background: var(--bg-secondary, var(--surface));
    overflow-y: auto;
}
.chat-sidebar-header {
    padding: 14px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.chat-layout .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}
.chat-layout .chat-input-row {
    border-top: 1px solid var(--border);
    padding: 12px;
}
/* Linha de conversa admin */
.admin-chat-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.admin-chat-row:hover { background: rgba(168,85,247,0.08); }
.acr-avatar { font-size: 1.6rem; }
.acr-body { flex: 1; min-width: 0; }
.acr-body strong { font-size: 0.85rem; display: block; }
.acr-body p { font-size: 0.75rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.acr-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.acr-time { font-size: 0.7rem; color: var(--text-secondary); }
.acr-badge { background: var(--primary); color: #fff; border-radius: 99px; font-size: 0.7rem; padding: 2px 6px; font-weight: 700; }

@media (max-width: 600px) {
    .chat-layout.is-admin { flex-direction: column; height: auto; }
    .chat-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); max-height: 220px; }
}

/* ── Post actions (editar/apagar) ── */
.post-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.post-action-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 0.78rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.15s;
}
.post-action-btn:hover { background: rgba(168,85,247,0.1); color: var(--primary); border-color: var(--primary); }
.post-action-btn.delete-btn:hover { background: rgba(239,68,68,0.1); color: #ef4444; border-color: #ef4444; }

/* ── Emoji Picker ── */
.chat-emoji-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: transform 0.15s;
    flex-shrink: 0;
}
.chat-emoji-btn:hover { transform: scale(1.2); }

.emoji-picker {
    display: none;
    position: absolute;
    bottom: 70px;
    left: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 100;
    max-width: 320px;
}
.emoji-opt {
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    text-align: center;
    transition: background 0.1s;
}
.emoji-opt:hover { background: rgba(168,85,247,0.15); }

/* Posição relativa no chat-main para o picker */
.chat-main { position: relative; }

/* ── Gender selector no cadastro ── */
.gender-selector-signup {
    display: flex;
    gap: 12px;
}
.gender-option-signup { cursor: pointer; }
.gender-option-signup input { display: none; }
.gender-tag-signup {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    border: 2px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.2s;
    background: var(--surface);
}
.gender-option-signup input:checked + .gender-tag-signup {
    border-color: var(--primary);
    background: rgba(168,85,247,0.15);
    color: var(--primary);
    font-weight: 600;
}

/* ── Community photo preview ── */
.community-photo-preview {
    margin-top: 10px;
    position: relative;
    display: inline-block;
}
.community-photo-preview img {
    max-height: 200px;
    max-width: 100%;
    width: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}
#community-photo-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 0.75rem;
    cursor: pointer;
}
#community-photo-remove:hover { background: rgba(239,68,68,0.8); }

/* ── Reflection action buttons ── */
.reflection-action-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.15s;
    line-height: 1;
}
.reflection-action-btn:hover { opacity: 1; background: rgba(168,85,247,0.1); border-color: var(--primary); }
.reflection-action-btn.delete:hover { background: rgba(239,68,68,0.1); border-color: #ef4444; }

/* ═══════════════════════════════════════════════
   ADMIN PANEL — REDESIGN COMPLETO
   ═══════════════════════════════════════════════ */

/* Header */
#page-admin .page-header {
    background: linear-gradient(135deg, #1e0a3c 0%, #3b0764 50%, #1e0a3c 100%);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 24px;
    border: 1px solid rgba(168,85,247,0.3);
    position: relative;
    overflow: hidden;
}
#page-admin .page-header::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(168,85,247,0.25) 0%, transparent 70%);
    pointer-events: none;
}
#page-admin .page-title {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e879f9, #a855f7, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 4px;
}
#page-admin .page-subtitle {
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    margin: 0;
}

/* Stats grid */
#page-admin .admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    #page-admin .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
#page-admin .stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: none;
    transition: transform 0.2s, border-color 0.2s;
}
#page-admin .stat-card:hover { transform: translateY(-3px); border-color: var(--primary); }
#page-admin .stat-card .stat-icon { font-size: 2rem; line-height: 1; }
#page-admin .stat-card .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
#page-admin .stat-card .stat-label { font-size: 0.75rem; color: var(--text-secondary); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
#page-admin .stat-card.stat-pending  { border-left: 3px solid #f59e0b; }
#page-admin .stat-card.stat-approved { border-left: 3px solid #10b981; }
#page-admin .stat-card.stat-blocked  { border-left: 3px solid #ef4444; }
#page-admin .stat-card:first-child   { border-left: 3px solid #a855f7; }

/* Admin sections — collapsible card style */
#page-admin .card.admin-section,
#page-admin .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: none;
}
#page-admin .card h2,
#page-admin .card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* Version card */
#page-admin .admin-version-card {
    background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(99,102,241,0.06));
    border-color: rgba(168,85,247,0.2);
}
#page-admin .admin-version-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
#page-admin .admin-version-inner h3 { border: none; padding: 0; margin: 0 0 4px; font-size: 1rem; }
#page-admin .admin-version-current {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.8rem;
    background: rgba(168,85,247,0.12);
    color: #c084fc;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(168,85,247,0.2);
}

/* Search and filters */
#page-admin .admin-filters-card { margin-bottom: 14px; }
#page-admin .admin-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
#page-admin .search-input {
    flex: 1; min-width: 200px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}
#page-admin .search-input:focus { outline: none; border-color: var(--primary); }
#page-admin .filter-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
#page-admin .filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
#page-admin .filter-btn:hover { border-color: var(--primary); color: var(--primary); }
#page-admin .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Users table */
#page-admin .users-table-container { overflow-x: auto; margin-top: 4px; }
#page-admin .users-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
#page-admin .users-table thead tr {
    background: rgba(168,85,247,0.06);
    border-bottom: 1px solid var(--border);
}
#page-admin .users-table th {
    padding: 10px 12px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}
#page-admin .users-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
}
#page-admin .users-table tbody tr:hover { background: rgba(168,85,247,0.05); }
#page-admin .users-table td { padding: 10px 12px; color: var(--text-primary); vertical-align: middle; }

/* Status badges */
#page-admin .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
#page-admin .status-badge.approved,
#page-admin .badge-aprovado { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.2); }
#page-admin .status-badge.pending,
#page-admin .badge-pendente { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.2); }
#page-admin .status-badge.blocked,
#page-admin .badge-bloqueado { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }

/* Action buttons in table */
#page-admin .user-actions { display: flex; gap: 6px; flex-wrap: wrap; }
#page-admin .user-actions .btn,
#page-admin .user-actions button {
    padding: 5px 12px !important;
    font-size: 0.75rem !important;
    border-radius: 8px !important;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
#page-admin .btn-approve { background: rgba(16,185,129,0.15); color: #10b981; }
#page-admin .btn-approve:hover { background: #10b981; color: white; }
#page-admin .btn-block { background: rgba(239,68,68,0.12); color: #ef4444; }
#page-admin .btn-block:hover { background: #ef4444; color: white; }
#page-admin .btn-unblock { background: rgba(245,158,11,0.12); color: #f59e0b; }
#page-admin .btn-unblock:hover { background: #f59e0b; color: white; }
#page-admin .btn-delete-user { background: rgba(239,68,68,0.08); color: #ef4444; }
#page-admin .btn-delete-user:hover { background: #ef4444; color: white; }
#page-admin .btn-chat-user { background: rgba(168,85,247,0.12); color: #a855f7; }
#page-admin .btn-chat-user:hover { background: #a855f7; color: white; }

/* Push notification form */
#page-admin .admin-section .form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
#page-admin .admin-section input,
#page-admin .admin-section textarea,
#page-admin .admin-section select {
    background: var(--bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    color: var(--text-primary) !important;
    font-size: 0.88rem;
    padding: 10px 14px;
    width: 100%;
    transition: border-color 0.2s;
}
#page-admin .admin-section input:focus,
#page-admin .admin-section textarea:focus { border-color: var(--primary) !important; outline: none; }

/* Sales KPIs */
#page-admin .sales-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 14px 0;
}
@media (max-width: 600px) { #page-admin .sales-kpis { grid-template-columns: repeat(2,1fr); } }
#page-admin .sales-kpi {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}
#page-admin .sales-kpi-icon { font-size: 1.4rem; margin-bottom: 6px; }
#page-admin .sales-kpi-value { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); }
#page-admin .sales-kpi-label { font-size: 0.72rem; color: var(--text-secondary); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.4px; }

/* Admin chat list */
#page-admin .admin-chat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
    margin-bottom: 6px;
}
#page-admin .admin-chat-row:hover { background: rgba(168,85,247,0.06); border-color: rgba(168,85,247,0.15); }
#page-admin .acr-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(168,85,247,0.15); display:flex;align-items:center;justify-content:center;font-size:1.1rem;flex-shrink:0; }
#page-admin .acr-body { flex:1; overflow:hidden; }
#page-admin .acr-body strong { display:block;font-size:0.88rem;color:var(--text-primary); }
#page-admin .acr-body p { font-size:0.78rem;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:2px 0 0; }
#page-admin .acr-right { display:flex;flex-direction:column;align-items:flex-end;gap:4px; }
#page-admin .acr-time { font-size:0.72rem;color:var(--text-secondary); }
#page-admin .acr-badge { background:#ef4444;color:white;font-size:0.65rem;font-weight:700;padding:2px 6px;border-radius:10px; }


/* User table row badges — targeting existing JS classes */
#page-admin .user-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
#page-admin .user-status-badge.approved { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.2); }
#page-admin .user-status-badge.pending  { background: rgba(245,158,11,0.12);  color: #f59e0b;  border: 1px solid rgba(245,158,11,0.2); }
#page-admin .user-status-badge.blocked,
#page-admin .user-status-badge.inactive { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }

/* Action buttons */
#page-admin .btn-approve {
    background: rgba(16,185,129,0.12); color: #10b981;
    border: 1px solid rgba(16,185,129,0.2);
    padding: 5px 10px; border-radius: 8px; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
#page-admin .btn-approve:hover:not(:disabled) { background: #10b981; color: white; border-color: #10b981; }
#page-admin .btn-block {
    background: rgba(239,68,68,0.1); color: #ef4444;
    border: 1px solid rgba(239,68,68,0.2);
    padding: 5px 10px; border-radius: 8px; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
#page-admin .btn-block:hover:not(:disabled) { background: #ef4444; color: white; border-color: #ef4444; }
#page-admin .btn-access {
    background: rgba(168,85,247,0.1); color: #a855f7;
    border: 1px solid rgba(168,85,247,0.2);
    padding: 5px 10px; border-radius: 8px; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
#page-admin .btn-access:hover:not(:disabled) { background: #a855f7; color: white; border-color: #a855f7; }
#page-admin button:disabled { opacity: 0.35; cursor: not-allowed; }

/* Trial badge */
#page-admin .trial-badge {
    display: inline-block;
    font-size: 0.68rem; font-weight: 700;
    background: rgba(99,102,241,0.12); color: #818cf8;
    border: 1px solid rgba(99,102,241,0.2);
    padding: 2px 7px; border-radius: 10px; margin-left: 6px;
}
#page-admin .trial-badge.expired { background: rgba(239,68,68,0.1); color: #ef4444; border-color: rgba(239,68,68,0.2); }

/* Table cells alignment */
#page-admin .user-avatar-cell { font-size: 1.3rem; width: 40px; text-align: center; }
#page-admin .user-name-cell { font-weight: 600; color: var(--text-primary); }
#page-admin .user-email-cell { color: var(--text-secondary); font-size: 0.82rem; }
#page-admin .user-date-cell { color: var(--text-secondary); font-size: 0.8rem; white-space: nowrap; }

/* Responsive: hide cols on mobile */
@media (max-width: 600px) {
    #page-admin .user-email-cell,
    #page-admin .user-date-cell { display: none; }
}


/* ── Admin Tabs ── */
.admin-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }

.admin-tab {
    flex: 1;
    min-width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    position: relative;
}
.admin-tab:hover { background: rgba(168,85,247,0.08); color: var(--text-primary); }
.admin-tab.active {
    background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(99,102,241,0.15));
    color: #c084fc;
    border: 1px solid rgba(168,85,247,0.25);
}
.admin-tab i { font-size: 0.8rem; }

.admin-tab-badge {
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
    line-height: 1.4;
}
.admin-tab-badge:empty { display: none; }

.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }


/* ── PIX MODAL — Estilo Banco ── */
.pix-modal-box {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    width: 100%;
    max-width: 420px !important;
    padding: 28px 24px 20px !important;
    position: relative;
    z-index: 1;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5) !important;
}

/* Logo Pix no topo */
.pix-bank-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.pix-bank-logo span {
    font-size: 1.1rem;
    font-weight: 800;
    color: #32bcad;
    letter-spacing: -0.5px;
}
.pix-modal-product {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Valor hero */
.pix-value-hero {
    background: linear-gradient(135deg, rgba(50,188,173,0.1), rgba(50,188,173,0.05));
    border: 1px solid rgba(50,188,173,0.2);
    border-radius: 14px;
    padding: 16px 20px;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pix-value-hero-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pix-value-hero-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #32bcad;
    line-height: 1;
}

/* Passos em linha */
.pix-steps-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.pix-step-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.pix-pill-num {
    width: 18px;
    height: 18px;
    background: #32bcad;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* Caixa do código — estilo banco */
.pix-code-bank {
    background: var(--bg);
    border: 2px solid rgba(50,188,173,0.25);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
}
.pix-code-bank-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pix-code-bank-value {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--text-primary);
    word-break: break-all;
    line-height: 1.5;
    background: rgba(168,85,247,0.04);
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px dashed var(--border);
    min-height: 48px;
    margin-bottom: 12px;
    user-select: all;
}
.pix-copy-bank-btn {
    width: 100%;
    background: #32bcad;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}
.pix-copy-bank-btn:hover { background: #29a899; transform: translateY(-1px); }
.pix-copy-bank-btn:active { transform: translateY(0); }

/* Hint */
.pix-hint-bank {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0 0 4px;
    line-height: 1.4;
}

.pix-footer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}


/* ── Admin Settings Tab ── */
.settings-field-group { display: flex; flex-direction: column; gap: 14px; }

.settings-input-row {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.settings-input-row:focus-within { border-color: var(--primary); }
.settings-prefix {
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(168,85,247,0.06);
    border-right: 1px solid var(--border);
    flex-shrink: 0;
}
.settings-input-row input {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}
.settings-input-row input:focus { outline: none; box-shadow: none !important; }

.settings-hint {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 6px;
}
.settings-example {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 5px;
    display: block;
    line-height: 1.4;
}

.settings-preview-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(37,211,102,0.08);
    border: 1px solid rgba(37,211,102,0.2);
    border-radius: 10px;
    margin: 14px 0;
    font-size: 0.85rem;
    font-family: monospace;
    color: #25d366;
    font-weight: 600;
}

.settings-save-btn {
    margin-top: 16px;
    padding: 11px 24px;
    font-size: 0.88rem;
    border-radius: 10px;
}

.settings-pix-info {
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(168,85,247,0.05);
    border: 1px dashed var(--border);
    min-height: 32px;
    margin-bottom: 8px;
    font-family: monospace;
    word-break: break-all;
    line-height: 1.5;
}


/* ── Admin Categories Tab ── */
.cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cat-item:hover { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(168,85,247,0.08); }
.cat-item.is-default { border-style: dashed; opacity: 0.7; }

.cat-drag-handle {
    color: var(--text-secondary);
    cursor: grab;
    font-size: 1rem;
    padding: 4px;
    flex-shrink: 0;
}
.cat-drag-handle:active { cursor: grabbing; }

.cat-icon-input {
    width: 42px !important;
    text-align: center !important;
    font-size: 1.1rem !important;
    padding: 6px 4px !important;
    border-radius: 8px !important;
    flex-shrink: 0;
}
.cat-label-input {
    flex: 2;
    font-weight: 600;
}
.cat-slug-display {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: monospace;
    background: rgba(168,85,247,0.07);
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}
.cat-default-badge {
    font-size: 0.68rem;
    background: rgba(99,102,241,0.15);
    color: #818cf8;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 600;
    flex-shrink: 0;
}
.cat-delete-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: all 0.15s;
    flex-shrink: 0;
    margin-left: auto;
}
.cat-delete-btn:hover { background: rgba(239,68,68,0.12); color: #ef4444; }

.cat-add-box {
    background: var(--bg);
    border: 2px dashed var(--border);
    border-radius: 14px;
    padding: 18px;
    transition: border-color 0.2s;
}
.cat-add-box:focus-within { border-color: var(--primary); }
.cat-add-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.cat-add-row .form-group { flex: 1; min-width: 120px; }

.cat-save-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}


/* ══════════════════════════════════════
   PEPTÍDEOS PAGE
══════════════════════════════════════ */

/* Tabs internas */
.pep-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}
.pep-tabs::-webkit-scrollbar { display: none; }
.pep-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.pep-tab:hover { background: rgba(16,185,129,0.08); color: var(--text-primary); }
.pep-tab.active {
    background: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(5,150,105,0.12));
    color: #34d399;
    border: 1px solid rgba(16,185,129,0.25);
}
.pep-tab-content { display: none; }
.pep-tab-content.active { display: block; }

/* ── Guia cards ── */
.pep-guide-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pep-guide-card:hover { border-color: rgba(16,185,129,0.35); box-shadow: 0 4px 20px rgba(16,185,129,0.08); }

.pep-guide-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
}
.pep-guide-emoji {
    font-size: 2rem;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(5,150,105,0.08));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(16,185,129,0.2);
}
.pep-guide-info { flex: 1; min-width: 0; }
.pep-guide-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}
.pep-guide-aka {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.pep-guide-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.pep-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(16,185,129,0.12);
    color: #34d399;
    border: 1px solid rgba(16,185,129,0.2);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.pep-guide-chevron {
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: transform 0.25s;
    flex-shrink: 0;
}
.pep-guide-card.open .pep-guide-chevron { transform: rotate(180deg); }

.pep-guide-body {
    display: none;
    padding: 0 20px 20px;
    border-top: 1px solid var(--border);
}
.pep-guide-card.open .pep-guide-body { display: block; }

/* Seções dentro do guia */
.pep-section { margin-top: 18px; }
.pep-section-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #34d399;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.pep-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pep-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 12px;
    background: var(--bg);
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text-primary);
}
.pep-step-num {
    width: 22px;
    height: 22px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}
.pep-info-box {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-top: 8px;
}
.pep-info-box.green { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); color: #a7f3d0; }
.pep-info-box.yellow { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.25); color: #fde68a; }
.pep-info-box.red { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); color: #fca5a5; }

/* ── Calculadora ── */
.pep-calc-card { padding: 24px; }
.pep-calc-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.pep-calc-subtitle { font-size: 0.83rem; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.5; }
.pep-calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}
@media (max-width: 480px) { .pep-calc-grid { grid-template-columns: 1fr; } }

.calc-input-row {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.calc-input-row:focus-within { border-color: #10b981; }
.calc-input-row input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 10px 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: none !important;
}
.calc-unit {
    padding: 0 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(16,185,129,0.06);
    border-left: 1px solid var(--border);
    height: 100%;
    display: flex;
    align-items: center;
}

.calc-result {
    background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(5,150,105,0.06));
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    margin-bottom: 14px;
}
.calc-result-main { margin-bottom: 8px; }
.calc-result-value {
    font-size: 3rem;
    font-weight: 900;
    color: #34d399;
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}
.calc-result-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.calc-result-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.calc-disclaimer {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 10px 14px;
    background: rgba(245,158,11,0.06);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 10px;
    display: flex;
    gap: 8px;
    line-height: 1.5;
}
.calc-disclaimer i { color: #f59e0b; flex-shrink: 0; margin-top: 2px; }

/* ── Armazenamento ── */
.pep-storage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 600px) { .pep-storage-grid { grid-template-columns: 1fr; } }
.pep-storage-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
}
.pep-storage-card--warn { border-color: rgba(245,158,11,0.3); }
.pep-storage-card--danger { border-color: rgba(239,68,68,0.3); }
.pep-storage-card--info { border-color: rgba(99,102,241,0.3); }
.pep-storage-icon { font-size: 2rem; margin-bottom: 10px; }
.pep-storage-card h3 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}
.pep-storage-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.pep-storage-list li {
    font-size: 0.79rem;
    color: var(--text-secondary);
    display: flex;
    gap: 7px;
    align-items: flex-start;
    line-height: 1.4;
}
.pep-storage-list li i { flex-shrink: 0; margin-top: 2px; color: #34d399; }

/* Admin edit buttons on guide cards */
.pep-guide-admin-btns {
    display: flex;
    gap: 6px;
    margin-left: auto;
    margin-right: 8px;
}
.pep-guide-admin-btns button {
    background: none;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 4px 8px;
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.15s;
}
.pep-guide-admin-btns button:hover { background: rgba(168,85,247,0.12); color: var(--primary); border-color: var(--primary); }


/* ══════════════════════════════════════
   PLANO ALIMENTAR COM IA
══════════════════════════════════════ */
.meal-prefs-box {
    background: linear-gradient(135deg, rgba(168,85,247,0.06), rgba(99,102,241,0.04));
    border: 1px solid rgba(168,85,247,0.18);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 20px;
}
.meal-prefs-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.meal-prefs-title i { color: var(--primary); }

.meal-prefs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 0;
}
@media (max-width: 480px) { .meal-prefs-grid { grid-template-columns: repeat(2,1fr); } }

.meal-pref-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    color: var(--text-secondary);
}
.meal-pref-check:hover { border-color: var(--primary); color: var(--text-primary); }
.meal-pref-check input[type="checkbox"] { accent-color: var(--primary); width: 14px; height: 14px; cursor: pointer; }
.meal-pref-check:has(input:checked) {
    border-color: var(--primary);
    background: rgba(168,85,247,0.1);
    color: var(--text-primary);
    font-weight: 600;
}

.meal-gen-btn {
    width: 100%;
    margin-top: 14px;
    padding: 13px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
    gap: 8px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    letter-spacing: 0.3px;
}
.meal-gen-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading state */
.meal-ai-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 16px;
    text-align: center;
}
.meal-ai-loading-icon {
    font-size: 2.5rem;
    animation: pulse 1.5s ease-in-out infinite;
}
.meal-ai-loading-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.meal-ai-loading-bar {
    width: 200px;
    height: 3px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.meal-ai-loading-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #a855f7, #6366f1);
    border-radius: 3px;
    animation: loadbar 1.2s ease-in-out infinite;
}
@keyframes loadbar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* Plano gerado pela IA */
.ai-meal-plan-wrap {
    animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
    from { opacity:0; transform: translateY(12px); }
    to   { opacity:1; transform: translateY(0); }
}

.ai-plan-header {
    background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(99,102,241,0.08));
    border: 1px solid rgba(168,85,247,0.2);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 16px;
}
.ai-plan-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.ai-plan-meta i { color: var(--primary); }
.ai-plan-insight {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.55;
    font-style: italic;
}

.ai-day-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 16px;
    padding-bottom: 2px;
}
.ai-day-tabs::-webkit-scrollbar { display: none; }
.ai-day-tab {
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.ai-day-tab.active {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: white;
    border-color: transparent;
}

.ai-day-content { display: none; }
.ai-day-content.active { display: block; }

.ai-meal-row {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}
.ai-meal-row:last-child { border-bottom: none; }
.ai-meal-icon {
    font-size: 1.4rem;
    width: 40px;
    flex-shrink: 0;
    text-align: center;
    margin-top: 2px;
}
.ai-meal-info { flex: 1; min-width: 0; }
.ai-meal-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 3px;
}
.ai-meal-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.35;
}
.ai-meal-detail {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.45;
}
.ai-meal-macros {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.ai-macro-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.ai-macro-pill.prot { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.2); color: #fca5a5; }
.ai-macro-pill.carb { background: rgba(234,179,8,0.08); border-color: rgba(234,179,8,0.2); color: #fde68a; }
.ai-macro-pill.fat  { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.2); color: #93c5fd; }

.ai-plan-regen {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.ai-plan-regen button {
    font-size: 0.8rem;
    padding: 8px 20px;
}


/* ══════════════════════════════════════
   PAYWALL
══════════════════════════════════════ */
#paywall-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--bg);
    overflow-y: auto;
    padding: 20px 16px 40px;
}
#paywall-overlay.active { display: block; }

.paywall-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding-top: 20px;
}
.paywall-card {
    text-align: center;
}
.paywall-lock {
    font-size: 3rem;
    margin-bottom: 12px;
    animation: bounce 1.5s ease infinite;
}
@keyframes bounce {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.paywall-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.paywall-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.5;
}

.paywall-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
    text-align: left;
}
@media (max-width: 480px) { .paywall-options { grid-template-columns: 1fr; } }

.paywall-plan {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px 16px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.paywall-plan.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(99,102,241,0.05));
    box-shadow: 0 0 0 1px rgba(168,85,247,0.3);
}
.paywall-plan-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.paywall-plan-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.paywall-plan h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.paywall-plan-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 14px;
    line-height: 1;
}
.paywall-plan-price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.paywall-plan-price.free {
    color: #10b981;
    font-size: 1.4rem;
}
.paywall-plan-items {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.paywall-plan-items li {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    gap: 7px;
    align-items: flex-start;
    line-height: 1.35;
}
.paywall-plan-items li i.fa-check { color: #10b981; flex-shrink: 0; margin-top: 2px; }
.paywall-plan-items li i.fa-info-circle { flex-shrink: 0; margin-top: 2px; }

.paywall-btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 12px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.paywall-btn-primary:hover { opacity: 0.9; }

.paywall-btn-secondary {
    width: 100%;
    padding: 11px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 12px;
    background: rgba(37,211,102,0.1);
    color: #25d366;
    border: 1px solid rgba(37,211,102,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.paywall-btn-secondary:hover { background: rgba(37,211,102,0.18); }

.paywall-back {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 auto;
    padding: 8px 16px;
    border-radius: 8px;
    transition: color 0.15s;
}
.paywall-back:hover { color: var(--text-primary); }

/* ── Plan badges no admin ── */
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}
.plan-active     { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.plan-subscriber { background: rgba(168,85,247,0.12); color: #c084fc; border: 1px solid rgba(168,85,247,0.25); }
.plan-free       { background: rgba(107,114,128,0.1); color: var(--text-secondary); border: 1px solid var(--border); }

.btn-plan {
    background: rgba(168,85,247,0.1);
    border: 1px solid rgba(168,85,247,0.25);
    color: #c084fc;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-plan:hover { background: rgba(168,85,247,0.2); }
.btn-plan:disabled { opacity: 0.4; cursor: not-allowed; }

.plan-menu {
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 100;
    overflow: hidden;
    min-width: 230px;
}
.plan-menu button {
    display: block;
    width: 100%;
    padding: 10px 14px;
    text-align: left;
    font-size: 0.82rem;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s;
}
.plan-menu button:last-child { border-bottom: none; }
.plan-menu button:hover { background: rgba(168,85,247,0.08); }

/* ── Subscription requests ── */
.sub-request-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    flex-wrap: wrap;
}
.sub-request-row:last-child { border-bottom: none; }
.sub-request-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.sub-request-info strong { font-size: 0.9rem; }
.sub-request-info span   { font-size: 0.78rem; color: var(--text-secondary); }
.sub-request-info small  { font-size: 0.72rem; color: var(--text-secondary); }
.sub-request-actions     { display: flex; gap: 8px; flex-shrink: 0; }

/* Menu item lock icon for premium pages */
.menu-item.premium-locked::after {
    content: '🔒';
    font-size: 0.65rem;
    margin-left: 4px;
    opacity: 0.6;
}


/* ══════════════════════════════════════
   LANDING PAGE — Premium Redesign
══════════════════════════════════════ */

#landing-page {
    min-height: 100vh;
    background: var(--background);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ── Header ── */
.lp-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    background: rgba(12, 8, 18, 0.80);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.lp-logo-icon { font-size: 1rem; filter: drop-shadow(0 0 6px rgba(201,109,145,0.6)); }
.lp-logo-name {
    background: linear-gradient(135deg, #e8a8bf, #b08af7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lp-login-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(240,232,248,0.75);
    padding: 8px 22px;
    border-radius: 40px;
    font-family: var(--font-primary);
    font-size: 0.81rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s;
}
.lp-login-btn:hover {
    border-color: rgba(201,109,145,0.5);
    color: #e8a8bf;
    background: rgba(201,109,145,0.06);
}

/* ── Hero ── */
.lp-hero {
    position: relative;
    text-align: center;
    padding: 100px 24px 84px;
    max-width: 700px;
    margin: 0 auto;
    overflow: visible;
}
.lp-hero::before {
    content: '';
    position: absolute;
    top: -60px; left: -40%; right: -40%; bottom: -40px;
    background:
        radial-gradient(ellipse at 60% 0%, rgba(201,109,145,0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 100%, rgba(124,77,204,0.14) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}
.lp-hero > * { position: relative; z-index: 1; }

.lp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,109,145,0.24);
    color: #e8a8bf;
    font-size: 0.70rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 40px;
    margin-bottom: 36px;
}
.lp-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 7vw, 4.2rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: 28px;
    color: var(--text-primary);
}
.lp-hero-gradient {
    display: block;
    font-style: italic;
    background: linear-gradient(135deg, #e8a8bf 0%, #b08af7 55%, #7dd3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
}
.lp-hero-sub {
    font-size: 0.98rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 auto 48px;
    max-width: 480px;
    letter-spacing: 0.01em;
}
.lp-hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.lp-cta-primary {
    background: linear-gradient(135deg, #c96d91 0%, #7c4dcc 100%);
    color: white;
    border: none;
    padding: 15px 32px;
    border-radius: 40px;
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s, transform 0.18s, box-shadow 0.2s;
    box-shadow: 0 4px 24px rgba(201,109,145,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
}
.lp-cta-primary:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201,109,145,0.45), inset 0 1px 0 rgba(255,255,255,0.12);
}
.lp-cta-secondary {
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 15px 28px;
    border-radius: 40px;
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.lp-cta-secondary:hover {
    border-color: rgba(201,109,145,0.4);
    background: rgba(201,109,145,0.05);
}
.lp-hero-hint {
    font-size: 0.73rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin: 0;
}

/* ── Linha decorativa ── */
.lp-divider {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 0 auto 16px;
    opacity: 0.5;
}

/* ── Features ── */
.lp-features {
    padding: 20px 28px 88px;
    max-width: 980px;
    margin: 0 auto;
}
.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 640px) { .lp-features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .lp-features-grid { grid-template-columns: 1fr; } }

.lp-feature-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-xl);
    padding: 26px 22px;
    transition: border-color 0.25s, background 0.25s, transform 0.22s;
}
.lp-feature-card:hover {
    border-color: rgba(201,109,145,0.22);
    background: rgba(201,109,145,0.035);
    transform: translateY(-4px);
}
.lp-feature-icon {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 14px;
}
.lp-feature-card h3 {
    font-family: var(--font-primary);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.lp-feature-card p {
    font-size: 0.76rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ── Plans ── */
.lp-plans {
    padding: 40px 28px 100px;
    max-width: 1020px;
    margin: 0 auto;
}
.lp-section-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.lp-section-sub {
    text-align: center;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 52px;
    letter-spacing: 0.01em;
    line-height: 1.6;
}
.lp-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}
@media (max-width: 720px) { .lp-plans-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; } }

.lp-plan-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-2xl);
    padding: 34px 28px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.22s;
    position: relative;
    overflow: hidden;
}
.lp-plan-card:hover {
    border-color: rgba(255,255,255,0.13);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.lp-plan-card--featured {
    background: rgba(201,109,145,0.04);
    border-color: rgba(201,109,145,0.28);
    box-shadow: inset 0 0 0 1px rgba(201,109,145,0.12), var(--shadow-md);
}
.lp-plan-card--featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #c96d91, #7c4dcc);
}
.lp-plan-card--featured:hover {
    box-shadow: inset 0 0 0 1px rgba(201,109,145,0.20), var(--shadow-lg);
}
.lp-plan-card--med {
    border-style: dashed;
    border-color: rgba(255,255,255,0.08);
}
.lp-plan-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(201,109,145,0.12), rgba(124,77,204,0.12));
    border: 1px solid rgba(201,109,145,0.22);
    color: #e8a8bf;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 22px;
}
.lp-plan-header { margin-bottom: 26px; }
.lp-plan-icon { font-size: 1.6rem; display: block; margin-bottom: 12px; }
.lp-plan-card h3 {
    font-family: var(--font-primary);
    font-size: 0.93rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.lp-plan-price {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.lp-plan-price.free {
    background: linear-gradient(135deg, #c96d91, #7c4dcc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lp-plan-price span {
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
    letter-spacing: 0;
}
.lp-plan-desc {
    font-size: 0.77rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}
.lp-plan-items {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lp-plan-items li {
    font-size: 0.81rem;
    font-weight: 400;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
    line-height: 1.45;
}
.lp-plan-items li.yes::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    top: 1px;
}
.lp-plan-items li.no { color: var(--text-muted); opacity: 0.45; }
.lp-plan-items li.no::before {
    content: '×';
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-size: 0.75rem;
}
.lp-plan-btn {
    width: 100%;
    padding: 13px 20px;
    border-radius: 40px;
    font-family: var(--font-primary);
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: block;
}
.lp-plan-btn--free {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-primary);
}
.lp-plan-btn--free:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.20);
}
.lp-plan-btn--primary {
    background: linear-gradient(135deg, #c96d91, #7c4dcc);
    color: white;
    box-shadow: 0 4px 20px rgba(201,109,145,0.28);
}
.lp-plan-btn--primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(201,109,145,0.38);
}
.lp-plan-btn--med {
    background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(255,255,255,0.14);
    color: var(--text-secondary);
}
.lp-plan-btn--med:hover { background: rgba(255,255,255,0.07); }
.lp-plan-pix-hint {
    text-align: center;
    font-size: 0.71rem;
    color: var(--text-muted);
    margin: 12px 0 0;
    letter-spacing: 0.03em;
}

/* ── Footer da landing ── */
.lp-footer {
    text-align: center;
    padding: 32px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.73rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* ── Splash screen premium ── */
.splash-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #e8a8bf, #b08af7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.splash-sub {
    font-size: 0.80rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.splash-bar {
    width: 160px;
    height: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}
.splash-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #c96d91, #7c4dcc);
    border-radius: 3px;
    animation: splashLoad 1.8s ease-in-out forwards;
}
@keyframes splashLoad {
    0%   { width: 0%; }
    70%  { width: 85%; }
    100% { width: 100%; }
}

/* ══════════════════════════════════════
   SKELETON LOADING
══════════════════════════════════════ */
.skeleton {
    background: linear-gradient(90deg, var(--surface) 25%, rgba(168,85,247,0.08) 50%, var(--surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 8px;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 12px;
}
.skeleton-line { height: 14px; margin-bottom: 10px; }
.skeleton-line.w-60  { width: 60%; }
.skeleton-line.w-80  { width: 80%; }
.skeleton-line.w-40  { width: 40%; }
.skeleton-line.w-100 { width: 100%; }
.skeleton-circle { width: 44px; height: 44px; border-radius: 50%; }
.skeleton-thumb  { width: 100%; height: 120px; border-radius: 12px; margin-bottom: 12px; }

/* ══════════════════════════════════════
   CHAT BADGE NO MENU
══════════════════════════════════════ */
.menu-badge {
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 14px;
    height: 14px;
    margin-left: auto;
    flex-shrink: 0;
}

/* ══════════════════════════════════════
   BANNER DE RENOVAÇÃO
══════════════════════════════════════ */
.renewal-banner {
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(239,68,68,0.1));
    border-bottom: 1px solid rgba(245,158,11,0.3);
    padding: 10px 16px;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.renewal-banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
    flex-wrap: wrap;
}
#renewal-banner-text {
    flex: 1;
    font-size: 0.82rem;
    color: #fde68a;
    font-weight: 600;
}
.renewal-banner-btn {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: opacity 0.15s;
}
.renewal-banner-btn:hover { opacity: 0.9; }
.renewal-banner-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s;
    flex-shrink: 0;
}
.renewal-banner-close:hover { color: var(--text-primary); }

/* ══════════════════════════════════════
   PÁGINA CONTA BLOQUEADA
══════════════════════════════════════ */
#blocked-account-page {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: var(--bg);
    overflow-y: auto;
    padding: 40px 20px;
}
#blocked-account-page.active { display: flex; align-items: center; justify-content: center; }
.blocked-card {
    max-width: 420px;
    width: 100%;
    text-align: center;
}
.blocked-icon { font-size: 4rem; margin-bottom: 16px; }
.blocked-title { font-size: 1.4rem; font-weight: 900; margin-bottom: 8px; }
.blocked-sub {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}
.blocked-options { display: flex; flex-direction: column; gap: 12px; }
.blocked-btn-primary {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px; border-radius: 14px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: white; border: none; font-size: 0.9rem; font-weight: 700;
    cursor: pointer; transition: opacity 0.2s;
}
.blocked-btn-primary:hover { opacity: 0.9; }
.blocked-btn-wpp {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 13px; border-radius: 14px;
    background: rgba(37,211,102,0.1); color: #25d366;
    border: 1px solid rgba(37,211,102,0.3);
    font-size: 0.88rem; font-weight: 700;
    text-decoration: none; transition: all 0.15s;
}
.blocked-btn-wpp:hover { background: rgba(37,211,102,0.18); }
.blocked-logout {
    background: none; border: none; color: var(--text-secondary);
    font-size: 0.78rem; cursor: pointer; margin-top: 8px;
    padding: 8px; transition: color 0.15s;
}
.blocked-logout:hover { color: var(--text-primary); }

/* ══════════════════════════════════════
   PROTOCOLO — RESET BUTTON
══════════════════════════════════════ */
.protocol-reset-btn {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    color: #f87171;
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 6px;
}
.protocol-reset-btn:hover { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.35); }

/* ══════════════════════════════════════
   CALCULADORA INJECTIONSHOP STYLE
══════════════════════════════════════ */
.inj-calc-card { padding: 24px; }
.inj-calc-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.inj-calc-sub { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 20px; }

.inj-field { margin-bottom: 18px; }
.inj-field-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}
.inj-quick-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.inj-quick-btn {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.inj-quick-btn:hover,
.inj-quick-btn.active {
    border-color: #10b981;
    background: rgba(16,185,129,0.12);
    color: #34d399;
}
.inj-custom-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.inj-custom-input {
    flex: 1;
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.88rem;
    transition: border-color 0.2s;
}
.inj-custom-input:focus { border-color: #10b981; outline: none; }
.inj-custom-unit {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

/* Seringa animada */
.inj-syringe-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
}
.inj-syringe {
    position: relative;
    width: 260px;
    height: 60px;
}
.inj-syringe-body {
    position: absolute;
    left: 20px; right: 40px;
    top: 18px; bottom: 18px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(16,185,129,0.4);
    border-radius: 4px;
    overflow: hidden;
}
.inj-syringe-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(16,185,129,0.6), rgba(5,150,105,0.8));
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
.inj-syringe-needle {
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 3px;
    background: rgba(16,185,129,0.6);
    border-radius: 0 2px 2px 0;
}
.inj-syringe-plunger {
    position: absolute;
    left: 0; top: 10px; bottom: 10px;
    width: 18px;
    background: rgba(168,85,247,0.4);
    border: 2px solid rgba(168,85,247,0.6);
    border-radius: 3px;
    transition: left 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
/* Tick marks */
.inj-syringe-ticks {
    position: absolute;
    left: 20px; right: 40px;
    top: 8px;
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
}
.inj-syringe-tick {
    width: 1px; height: 8px;
    background: rgba(255,255,255,0.2);
}

.inj-result-box {
    text-align: center;
    margin-top: 8px;
}
.inj-result-units {
    font-size: 3rem;
    font-weight: 900;
    color: #34d399;
    line-height: 1;
    display: block;
}
.inj-result-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.inj-result-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 8px;
}
.inj-alert-box {
    display: none;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.8rem;
    color: #fca5a5;
    margin-top: 10px;
    text-align: center;
}
.inj-alert-box.show { display: block; }


/* ══════════════════════════════════════
   CHECK-IN DIÁRIO
══════════════════════════════════════ */
.checkin-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(99,102,241,0.05));
    border: 1px solid rgba(168,85,247,0.2);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    animation: fadeInUp 0.4s ease;
}
.checkin-bar.done {
    background: rgba(16,185,129,0.07);
    border-color: rgba(16,185,129,0.2);
}
.checkin-question {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}
.checkin-moods {
    display: flex;
    gap: 8px;
}
.checkin-mood {
    font-size: 1.4rem;
    background: none;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
}
.checkin-mood:hover { transform: scale(1.25); border-color: rgba(168,85,247,0.3); }
.checkin-done-msg {
    font-size: 0.85rem;
    color: #34d399;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ══════════════════════════════════════
   RESUMO DA SEMANA
══════════════════════════════════════ */
.week-summary-card { margin-bottom: 16px; }
.week-summary-title {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.week-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
@media (max-width: 380px) { .week-summary-grid { grid-template-columns: 1fr 1fr; } }
.week-stat {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
}
.week-stat-icon { font-size: 1.2rem; display: block; margin-bottom: 4px; }
.week-stat-val {
    display: block;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 3px;
}
.week-stat-label {
    display: block;
    font-size: 0.68rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.week-stat.positive .week-stat-val { color: #10b981; }
.week-stat.negative .week-stat-val { color: #f87171; }

/* ══════════════════════════════════════
   ONBOARDING WIZARD
══════════════════════════════════════ */
#onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.onboarding-card {
    background: var(--surface);
    border: 1px solid rgba(168,85,247,0.3);
    border-radius: 24px;
    padding: 32px 28px 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.onboarding-steps-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
}
.onboarding-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s;
}
.onboarding-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}
.onboarding-step { display: none; animation: fadeInUp 0.3s ease; }
.onboarding-step.active { display: block; }
.onboarding-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    animation: splashPulse 2s ease-in-out infinite;
}
.onboarding-card h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.onboarding-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}
.onboarding-card p strong { color: var(--text-primary); }
.onboarding-next-btn {
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.15s;
}
.onboarding-next-btn:hover { opacity: 0.9; }
.onboarding-finish-btn {
    background: linear-gradient(135deg, #10b981, #059669);
}
.onboarding-skip {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    margin-top: 14px;
    padding: 6px;
    transition: color 0.15s;
}
.onboarding-skip:hover { color: var(--text-primary); }

/* ══════════════════════════════════════
   IMC VISUAL BAR
══════════════════════════════════════ */
.bmi-visual-wrap {
    margin-top: 12px;
    padding: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.bmi-visual-bar {
    position: relative;
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(90deg,
        #3b82f6 0%, #3b82f6 22%,     /* Abaixo do peso */
        #10b981 22%, #10b981 47%,    /* Normal */
        #f59e0b 47%, #f59e0b 67%,    /* Sobrepeso */
        #ef4444 67%, #ef4444 100%    /* Obeso */
    );
    margin-bottom: 8px;
}
.bmi-visual-marker {
    position: absolute;
    top: -4px;
    width: 22px; height: 22px;
    background: white;
    border: 3px solid var(--surface);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transform: translateX(-50%);
    transition: left 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
.bmi-visual-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.bmi-visual-value {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}
.bmi-visual-category {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 6px;
}


/* ══════════════════════════════════════════════
   TEMAS DE COR — 5 opções
══════════════════════════════════════════════ */

/* TEMA 1: Rosa/Roxo — padrão feminino (já é o :root) */

/* TEMA 2: Oceano — Azul/Ciano (neutro/masculino) */
[data-color-theme="ocean"] {
    --primary: #3b82f6;
    --primary-light: #93c5fd;
    --primary-dark: #1d4ed8;
    --secondary: #06b6d4;
    --secondary-light: #67e8f9;
    --secondary-dark: #0e7490;
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(59,130,246,0.12) 0%, rgba(6,182,212,0.12) 100%);
    --background: #f0f7ff;
    --border: #bfdbfe;
    --accent: #eff6ff;
    --shadow-sm: 0 2px 8px rgba(59,130,246,0.08);
    --shadow-md: 0 4px 16px rgba(6,182,212,0.12);
    --shadow-lg: 0 8px 32px rgba(59,130,246,0.18);
    --bg-secondary: #e0f2fe;
    --border-color: #bfdbfe;
    --primary-color: #3b82f6;
}
[data-color-theme="ocean"][data-theme="dark"] {
    --background: #0a0f1a;
    --border: #1e3a5f;
    --accent: #0f172a;
    --bg-secondary: #0d1b2e;
}

/* TEMA 3: Floresta — Verde/Esmeralda */
[data-color-theme="forest"] {
    --primary: #10b981;
    --primary-light: #6ee7b7;
    --primary-dark: #047857;
    --secondary: #84cc16;
    --secondary-light: #bef264;
    --secondary-dark: #3f6212;
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #84cc16 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(16,185,129,0.12) 0%, rgba(132,204,22,0.12) 100%);
    --background: #f0fdf4;
    --border: #bbf7d0;
    --accent: #dcfce7;
    --shadow-sm: 0 2px 8px rgba(16,185,129,0.08);
    --shadow-md: 0 4px 16px rgba(16,185,129,0.12);
    --shadow-lg: 0 8px 32px rgba(16,185,129,0.18);
    --bg-secondary: #dcfce7;
    --border-color: #bbf7d0;
    --primary-color: #10b981;
}
[data-color-theme="forest"][data-theme="dark"] {
    --background: #061208;
    --border: #14532d;
    --accent: #0f2818;
    --bg-secondary: #0a1f10;
}

/* TEMA 4: Pôr do Sol — Laranja/Âmbar */
[data-color-theme="sunset"] {
    --primary: #f59e0b;
    --primary-light: #fde68a;
    --primary-dark: #b45309;
    --secondary: #ef4444;
    --secondary-light: #fca5a5;
    --secondary-dark: #b91c1c;
    --gradient-primary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(245,158,11,0.12) 0%, rgba(239,68,68,0.12) 100%);
    --background: #fffbeb;
    --border: #fde68a;
    --accent: #fef3c7;
    --shadow-sm: 0 2px 8px rgba(245,158,11,0.08);
    --shadow-md: 0 4px 16px rgba(245,158,11,0.12);
    --shadow-lg: 0 8px 32px rgba(245,158,11,0.18);
    --bg-secondary: #fef3c7;
    --border-color: #fde68a;
    --primary-color: #f59e0b;
}
[data-color-theme="sunset"][data-theme="dark"] {
    --background: #1a0f00;
    --border: #78350f;
    --accent: #1c1000;
    --bg-secondary: #1f1200;
}

/* TEMA 5: Roxo Escuro — Violeta/Índigo (elegante) */
[data-color-theme="violet"] {
    --primary: #8b5cf6;
    --primary-light: #c4b5fd;
    --primary-dark: #6d28d9;
    --secondary: #6366f1;
    --secondary-light: #a5b4fc;
    --secondary-dark: #4338ca;
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(139,92,246,0.12) 0%, rgba(99,102,241,0.12) 100%);
    --background: #f5f3ff;
    --border: #ddd6fe;
    --accent: #ede9fe;
    --shadow-sm: 0 2px 8px rgba(139,92,246,0.08);
    --shadow-md: 0 4px 16px rgba(139,92,246,0.12);
    --shadow-lg: 0 8px 32px rgba(139,92,246,0.18);
    --bg-secondary: #ede9fe;
    --border-color: #ddd6fe;
    --primary-color: #8b5cf6;
}
[data-color-theme="violet"][data-theme="dark"] {
    --background: #0d0a1a;
    --border: #3730a3;
    --accent: #13102b;
    --bg-secondary: #110e24;
}

/* ── Theme Picker UI ── */
.theme-picker-section {
    margin-bottom: 20px;
}
.theme-picker-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: block;
}
.theme-picker-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.theme-swatch {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    flex-shrink: 0;
}
.theme-swatch:hover { transform: scale(1.15); }
.theme-swatch.active {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text-primary);
}
.theme-swatch .theme-swatch-check {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.theme-swatch.active .theme-swatch-check { display: flex; }
.theme-name-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 4px;
}

/* ── Bulk Actions Bar ── */
.bulk-actions-bar {
    background: linear-gradient(135deg, rgba(168,85,247,0.1), rgba(99,102,241,0.08));
    border: 1px solid rgba(168,85,247,0.25);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    animation: slideDown 0.2s ease;
}
.bulk-count {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}
.bulk-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.bulk-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
    white-space: nowrap;
}
.bulk-btn:hover { transform: translateY(-1px); }
.bulk-approve   { border-color: rgba(16,185,129,0.4); color: #10b981; }
.bulk-approve:hover   { background: rgba(16,185,129,0.1); }
.bulk-active    { border-color: rgba(6,182,212,0.4); color: #06b6d4; }
.bulk-active:hover    { background: rgba(6,182,212,0.1); }
.bulk-subscriber { border-color: rgba(168,85,247,0.4); color: var(--primary); }
.bulk-subscriber:hover { background: rgba(168,85,247,0.1); }
.bulk-block     { border-color: rgba(239,68,68,0.4); color: #ef4444; }
.bulk-block:hover     { background: rgba(239,68,68,0.1); }
.bulk-cancel    { border-color: var(--border); color: var(--text-secondary); }
.user-checkbox  { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }
tr.selected-row { background: rgba(168,85,247,0.06) !important; }

/* ── Profile Editor Grid ── */
.profile-editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}
@media (max-width: 400px) { .profile-editor-grid { grid-template-columns: 1fr; } }


/* ══════════════════════════════════════
   PEPTÍDEOS — BUSCA E FILTROS
══════════════════════════════════════ */
.pep-search-bar {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pep-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.pep-search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    pointer-events: none;
}
#pep-search-input {
    width: 100%;
    padding: 12px 40px 12px 40px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
#pep-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.12);
}
#pep-search-input::placeholder { color: var(--text-muted); }
.pep-search-clear {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
}
.pep-search-clear:hover { color: var(--text-primary); background: var(--bg); }

.pep-category-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.pep-chip {
    padding: 5px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.pep-chip:hover { border-color: var(--primary); color: var(--primary); }
.pep-chip.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.pep-search-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 2px 4px;
}

/* Card highlight ao filtrar */
.pep-guide-card.hidden { display: none !important; }
.pep-guide-card.highlight-match {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(168,85,247,0.15);
}

/* ══════════════════════════════════════
   PROTOCOLO DE PEPTÍDEOS
══════════════════════════════════════ */
.pep-week-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-top: 8px;
}
.pep-week-day {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 8px 4px;
    min-height: 70px;
    text-align: center;
    border: 1.5px solid var(--border);
    transition: all 0.2s;
}
.pep-week-day.today {
    border-color: var(--primary);
    background: rgba(168,85,247,0.07);
    box-shadow: 0 0 0 2px rgba(168,85,247,0.15);
}
.pep-week-day.has-doses { border-color: rgba(168,85,247,0.3); }
.pep-week-day-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}
.today .pep-week-day-label { color: var(--primary); }
.pep-week-dose {
    background: var(--gradient-primary);
    border-radius: 6px;
    padding: 3px 4px;
    margin: 2px 0;
    font-size: 0.6rem;
    color: white;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pep-week-dose span { display: none; }
@media (min-width: 380px) { .pep-week-dose span { display: inline; } }
.pep-week-rest {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Protocol items */
.pep-proto-item {
    background: var(--bg-secondary);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}
.pep-proto-item-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.pep-proto-emoji { font-size: 1.5rem; flex-shrink: 0; }
.pep-proto-info { flex: 1; }
.pep-proto-info strong { display: block; font-size: 0.9rem; color: var(--text-primary); }
.pep-proto-info small { font-size: 0.72rem; color: var(--text-secondary); }
.pep-proto-actions { display: flex; gap: 6px; }
.pep-proto-actions button {
    background: none; border: none; cursor: pointer;
    font-size: 0.9rem; padding: 4px; border-radius: 6px;
    transition: background 0.15s;
}
.pep-proto-actions button:hover { background: var(--border); }

.pep-proto-progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}
.pep-proto-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}
.pep-proto-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--text-secondary);
}


/* ══════════════════════════════════════
   CENTRAL DE FERRAMENTAS + SONS + GALERIA
══════════════════════════════════════ */
.tool-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border-radius: 14px;
    border: 1px solid var(--border);
}
.tool-row-info {
    flex: 1;
    min-width: 0;
}
.tool-row-info strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text-primary);
}
.tool-row-info span {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 1px;
    display: block;
}

/* Toggle switch (reutilizável) */
.toggle-switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; cursor: pointer; inset: 0;
    background: var(--border);
    border-radius: 26px;
    transition: .25s;
}
.toggle-slider:before {
    content: '';
    position: absolute;
    height: 20px; width: 20px;
    left: 3px; bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: .25s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.toggle-switch input:checked + .toggle-slider { background: var(--gradient-primary); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }

/* Sound button no notif center */
.notif-sound-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: color 0.15s, background 0.15s;
}
.notif-sound-btn:hover { color: var(--primary); background: var(--bg-secondary); }

/* Fotos — botões galeria */
.photos-gallery + div { }


/* ══════════════════════════════════════
   ⚙️ SETTINGS PAGE
══════════════════════════════════════ */
.settings-section { margin-bottom: 16px; }
.settings-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    font-weight: 800;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.settings-row-info { flex: 1; }
.settings-row-info strong { display: block; font-size: 0.88rem; color: var(--text-primary); }
.settings-row-info span { font-size: 0.72rem; color: var(--text-secondary); display: block; margin-top: 2px; }

.theme-swatches-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 0;
}
.theme-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.7rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.theme-swatch:hover { border-color: var(--primary); }
.theme-swatch.active { border-color: var(--primary); color: var(--primary); font-weight: 700; }
.swatch-circle {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ══════════════════════════════════════
   🪙 MOEDAS + CONQUISTAS
══════════════════════════════════════ */
.achievement-category-badge {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--border);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: 700;
    display: inline-block;
    margin-top: 3px;
}
.achievement-coins-badge {
    font-size: 0.7rem;
    color: #f59e0b;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
}

/* ══════════════════════════════════════
   📊 BMI BAR — INTERATIVA + ANIMADA
══════════════════════════════════════ */
.bmi-visual-wrap { padding: 4px 0; }

.bmi-bar-track {
    position: relative;
    height: 18px;
    border-radius: 9px;
    background: linear-gradient(
        to right,
        #3b82f6 0%   22%,   /* abaixo do peso */
        #10b981 22%  47%,   /* normal */
        #f59e0b 47%  67%,   /* sobrepeso */
        #ef4444 67%  100%   /* obeso */
    );
    margin-bottom: 4px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.bmi-ideal-zone {
    position: absolute;
    top: -3px;
    bottom: -3px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(16,185,129,0.4);
}

.bmi-visual-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid white;
    transition: left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); /* spring bounce */
    z-index: 2;
    cursor: help;
}

.bmi-bar-labels {
    display: flex;
    font-size: 0.6rem;
    color: var(--text-secondary);
    line-height: 1.3;
    margin-top: 6px;
    margin-bottom: 8px;
}
.bmi-bar-labels span { text-align: center; }

.bmi-bar-value-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}
.bmi-bar-main-val {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.88rem;
}
.bmi-bar-main-val strong { font-size: 1.1rem; }

.bmi-to-ideal {
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 10px;
    font-size: 0.78rem;
    border: 1px solid var(--border);
}
.bmi-ideal-progress {
    height: 5px;
    background: var(--border);
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}
.bmi-ideal-progress-fill {
    height: 100%;
    background: linear-gradient(to right, #10b981, #f59e0b);
    border-radius: 3px;
    transition: width 0.8s ease;
}

/* Pulse animation when BMI updates */
@keyframes bmiPulse {
    0%   { box-shadow: 0 0 0 0 rgba(168,85,247,0.5); }
    70%  { box-shadow: 0 0 0 12px rgba(168,85,247,0); }
    100% { box-shadow: 0 0 0 0 rgba(168,85,247,0); }
}
.bmi-visual-wrap.bmi-updated .bmi-visual-marker {
    animation: bmiPulse 1.2s ease;
}


/* ══════════════════════════════════════
   📶 OFFLINE INDICATOR
══════════════════════════════════════ */
#offline-indicator {
    font-size: 0.75rem;
    font-weight: 700;
}

/* ══════════════════════════════════════
   🎂 BIRTHDAY MODAL
══════════════════════════════════════ */
#birthday-modal {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity:0; transform:scale(0.95); }
    to   { opacity:1; transform:scale(1); }
}

/* ══════════════════════════════════════
   📊 COMPARISON CHART
══════════════════════════════════════ */
#comparison-result canvas {
    width: 100% !important;
}


/* ═══════════════════════════════════════════════
   ⚙️ SIDEBAR FOOTER — avatar clickável p/ Settings
═══════════════════════════════════════════════ */
.user-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.avatar-settings-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: var(--primary, #e879a0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    color: white;
    border: 2px solid var(--surface);
}
.user-profile:hover .avatar-settings-badge {
    transform: scale(1.15);
    transition: transform 0.2s;
}

/* ═══════════════════════════════════════════════
   📸 SIGNUP — foto de perfil upload
═══════════════════════════════════════════════ */
.profile-photo-upload-wrap {
    cursor: pointer;
    display: flex;
    justify-content: center;
}
.profile-photo-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px dashed var(--primary, #e879a0);
    background: var(--bg-secondary, #f9f9f9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    transition: all 0.2s;
    overflow: hidden;
}
.profile-photo-preview i { font-size: 1.4rem; color: var(--primary, #e879a0); }
.profile-photo-preview:hover,
.profile-photo-upload-wrap:hover .profile-photo-preview {
    background: rgba(232,121,160,0.08);
    border-style: solid;
}
.profile-photo-preview.has-photo {
    border-style: solid;
    border-color: var(--primary, #e879a0);
}

/* ═══════════════════════════════════════════════
   ⚙️ SETTINGS — foto de perfil
═══════════════════════════════════════════════ */
.settings-photo-row {
    display: flex;
    justify-content: center;
    padding: 8px 0 4px;
}
.settings-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.settings-avatar-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--primary, #e879a0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(232,121,160,0.25);
}
.settings-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.settings-avatar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}


/* ══════════════════════════════════════════════════════
   🏠 NOVO HERO CARD DO DASHBOARD
══════════════════════════════════════════════════════ */
.dashboard-hero-card {
    background: var(--gradient-primary, linear-gradient(135deg,#e879a0,#a855f7));
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    color: #fff;
    box-shadow: 0 8px 32px rgba(168,85,247,0.3);
    position: relative;
    overflow: hidden;
}
.dashboard-hero-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    pointer-events: none;
}
.dashboard-hero-card::after {
    content: '';
    position: absolute;
    bottom: -30px; left: -20px;
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}

/* Linha topo: avatar + nome + moedas */
.dhc-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.dhc-avatar-wrap {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}
.dhc-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.4);
    position: relative;
    z-index: 1;
    transition: transform 0.2s;
}
.dhc-avatar:hover { transform: scale(1.05); }
.dhc-avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    animation: ring-pulse 2.5s ease-in-out infinite;
}
@keyframes ring-pulse {
    0%, 100% { transform: scale(1);   opacity: 0.6; }
    50%       { transform: scale(1.1); opacity: 0.2; }
}
.dhc-greeting-wrap {
    flex: 1;
    min-width: 0;
}
.dhc-greeting {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 0.3px;
}
.dhc-name {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dhc-coins {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
    white-space: nowrap;
}
.dhc-coins:hover { background: rgba(255,255,255,0.25); }

/* Linha de stats: perdidos / atual / meta */
.dhc-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 10px;
    gap: 4px;
}
.dhc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.dhc-stat-val {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.dhc-stat-label {
    font-size: 0.65rem;
    opacity: 0.75;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dhc-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

/* Barra de progresso */
.dhc-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.dhc-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
}
.dhc-bar-fill {
    height: 100%;
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.dhc-bar-pct {
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.9;
    min-width: 30px;
    text-align: right;
}

/* Linha de próxima dose */
.dhc-dose-row {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 600;
}
.dhc-dose-row i {
    font-size: 0.8rem;
    opacity: 0.8;
}
.dhc-dose-badge {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.72rem;
    font-weight: 700;
}


/* ══════════════════════════════════════════════════════
   🎯 MISSÕES DIÁRIAS
══════════════════════════════════════════════════════ */
.dm-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.dm-date {
    font-size: 0.7rem;
    text-transform: capitalize;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}
.dm-progress-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 2px;
}
.dm-streak-badge {
    background: linear-gradient(135deg,#f59e0b,#ef4444);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.dm-progress-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.dm-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
}
.dm-progress-fill {
    height: 100%;
    background: var(--gradient-primary, linear-gradient(135deg,#e879a0,#a855f7));
    border-radius: 10px;
    transition: width 0.6s ease;
}
.dm-progress-pct {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 28px;
}

.dm-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dm-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.dm-row.dm-done {
    opacity: 0.6;
    background: rgba(16,185,129,0.05);
    border-color: rgba(16,185,129,0.2);
}
.dm-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}
.dm-info {
    flex: 1;
    min-width: 0;
}
.dm-title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
}
.dm-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 1px;
}
.dm-reward {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.dm-coins {
    font-size: 0.75rem;
    font-weight: 800;
    color: #f59e0b;
    white-space: nowrap;
}
.dm-done-badge {
    font-size: 1rem;
}
.dm-locked {
    font-size: 0.9rem;
    opacity: 0.5;
}
.dm-claim-btn {
    font-size: 0.7rem !important;
    padding: 4px 10px !important;
    white-space: nowrap;
}
.dm-row:not(.dm-done):has(.dm-claim-btn) {
    border-color: rgba(168,85,247,0.25);
    background: rgba(168,85,247,0.04);
}


/* ══════════════════════════════════════════════════════════════
   ✦ PREMIUM UPGRADE — Refinamento global do app shell
   Tipografia, cards, botões, sidebar, formulários
══════════════════════════════════════════════════════════════ */

/* ── Tipografia global ── */
h1, h2, h3, .page-title, .stat-value, .card-title {
    font-family: var(--font-display, 'Cormorant Garant', Georgia, serif);
    letter-spacing: -0.01em;
}
.page-title {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 600;
    line-height: 1.15;
}
.page-subtitle {
    font-size: 0.83rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Stat values — display font ── */
.stat-value {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

/* ── Cards — mais arejados e sofisticados ── */
.card {
    border-radius: var(--radius-xl, 18px);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    transition: box-shadow 0.22s, border-color 0.22s, transform 0.18s;
}
.card:hover {
    box-shadow: var(--shadow-md);
}
.card-highlight {
    background: var(--gradient-subtle);
    border-color: var(--border-strong, rgba(180,150,200,0.4));
}

/* ── Botões ── */
.btn {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: 40px;
    padding: 11px 24px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.btn-primary {
    background: linear-gradient(135deg, #c96d91, #7c4dcc);
    color: white;
    box-shadow: 0 4px 16px rgba(201,109,145,0.25);
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(201,109,145,0.35);
}
.btn-secondary {
    background: var(--accent, rgba(255,255,255,0.05));
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(201,109,145,0.06);
}
.btn-sm {
    font-size: 0.77rem;
    padding: 7px 16px;
    letter-spacing: 0.03em;
}

/* ── Sidebar refinada ── */
.sidebar {
    border-right: 1px solid var(--border);
    background: var(--surface);
}
.sidebar-logo {
    font-family: var(--font-display, 'Cormorant Garant', Georgia, serif);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.sidebar-logo span {
    background: linear-gradient(135deg, #c96d91, #7c4dcc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-item {
    border-radius: var(--radius-md, 10px);
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 10px 14px;
    transition: background 0.15s, color 0.15s;
}
.nav-item.active {
    background: linear-gradient(135deg, rgba(201,109,145,0.14), rgba(124,77,204,0.14));
    color: var(--primary);
}

/* ── Forms refinados ── */
input, textarea, select {
    font-family: var(--font-primary);
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    border-radius: var(--radius-md, 10px);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-primary);
    transition: border-color 0.18s, box-shadow 0.18s;
    -webkit-font-smoothing: antialiased;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201,109,145,0.12);
}

/* ── Toasts ── */
.toast {
    font-family: var(--font-primary);
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--radius-lg, 14px);
    box-shadow: var(--shadow-lg);
}

/* ── Badges / pills ── */
.badge, .pill, .tag {
    font-family: var(--font-primary);
    font-size: 0.70rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 40px;
}

/* ── Loading screen ── */
.loading-logo {
    font-family: var(--font-display, 'Cormorant Garant', Georgia, serif);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #e8a8bf, #b08af7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Hero dashboard card ── */
.dashboard-hero-card {
    background: linear-gradient(135deg, #c96d91 0%, #7c4dcc 100%) !important;
    box-shadow: 0 8px 40px rgba(201,109,145,0.28), 0 2px 8px rgba(0,0,0,0.12) !important;
}
.dhc-name {
    font-family: var(--font-display, 'Cormorant Garant', Georgia, serif);
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
}
.dhc-stat-val {
    font-family: var(--font-display, 'Cormorant Garant', Georgia, serif);
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
}

/* ── Auth forms ── */
.auth-title {
    font-family: var(--font-display, 'Cormorant Garant', Georgia, serif) !important;
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
}

/* ── Section headers ── */
.page-header {
    padding: 20px 0 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

/* ── Scrollbar premium ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(201,109,145,0.25);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(201,109,145,0.45); }

/* ── Selection color ── */
::selection {
    background: rgba(201,109,145,0.25);
    color: var(--text-primary);
}

/* ── Dark mode overrides específicos ── */
[data-theme="dark"] .card {
    background: rgba(22, 15, 34, 0.95);
    border-color: rgba(255,255,255,0.065);
}
[data-theme="dark"] .card:hover {
    border-color: rgba(201,109,145,0.18);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,109,145,0.08) inset;
}
[data-theme="dark"] .sidebar {
    background: rgba(18, 11, 28, 0.98);
    border-right-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.09);
    color: var(--text-primary);
}
[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    border-color: rgba(201,109,145,0.5);
    box-shadow: 0 0 0 3px rgba(201,109,145,0.10);
}
[data-theme="dark"] .lp-hero::before {
    background:
        radial-gradient(ellipse at 60% -10%, rgba(201,109,145,0.24) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 110%, rgba(124,77,204,0.20) 0%, transparent 55%);
}

/* ══ END PREMIUM UPGRADE ══ */


/* ══════════════════════════════════════════════════════════════
   SOCIAL PROOF + FOOTER CTA — landing page
══════════════════════════════════════════════════════════════ */

/* ── Social Proof ── */
.lp-proof {
    padding: 0 28px 80px;
    max-width: 720px;
    margin: 0 auto;
}
.lp-proof-inner {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-2xl, 24px);
    background: rgba(255,255,255,0.025);
    padding: 32px 40px;
}
.lp-proof-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.lp-stat {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.lp-stat-num {
    font-family: var(--font-display, 'Cormorant Garant', Georgia, serif);
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #e8a8bf, #b08af7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lp-stat-star {
    font-size: 1.4rem;
    vertical-align: middle;
}
.lp-stat-label {
    font-family: var(--font-primary);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.3;
}
.lp-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
    margin: 0 20px;
}

@media (max-width: 480px) {
    .lp-proof-inner { padding: 24px 20px; }
    .lp-proof-stats { gap: 0; }
    .lp-stat-divider { margin: 0 12px; height: 32px; }
    .lp-stat-num { font-size: 1.7rem; }
    .lp-stat-label { font-size: 0.65rem; }
}

/* ── Footer CTA ── */
.lp-footer-cta {
    padding: 0 24px 96px;
    text-align: center;
}
.lp-footer-cta-inner {
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}
.lp-footer-cta-inner::before {
    content: '';
    position: absolute;
    inset: -60px -40px;
    background:
        radial-gradient(ellipse at 50% 50%,
            rgba(201,109,145,0.12) 0%,
            transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.lp-footer-cta-inner > * { position: relative; z-index: 1; }

.lp-footer-cta-eyebrow {
    display: inline-block;
    font-size: 0.70rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
    opacity: 0.85;
}
.lp-footer-cta-title {
    font-family: var(--font-display, 'Cormorant Garant', Georgia, serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.lp-footer-cta-title em {
    font-style: italic;
    background: linear-gradient(135deg, #e8a8bf, #b08af7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lp-footer-cta-sub {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 32px;
}


/* ══════════════════════════════════════════════════════════════════
   ✦ NÍVEL 1 — Refinamento cirúrgico do app interno
   Sidebar · Nav · Page headers · Cards · Dashboard grid · Forms
══════════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────────────────
   SIDEBAR
──────────────────────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width) !important;
    background: var(--surface) !important;
    border-right: 1px solid var(--border) !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
}

/* Header — logo premium */
.sidebar-header {
    padding: 22px 20px 18px !important;
    border-bottom: 1px solid var(--border) !important;
}
.sidebar-logo {
    font-family: var(--font-display, 'Cormorant Garant', Georgia, serif) !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    background: linear-gradient(135deg, #c96d91, #9066e0) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Menu — lista */
.sidebar-menu {
    padding: 12px 12px !important;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: none;
}
.sidebar-menu::-webkit-scrollbar { display: none; }
.sidebar-menu li { list-style: none; margin-bottom: 2px; }

/* Nav items — pill shape, sem borda lateral */
.menu-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 14px !important;
    border-radius: 10px !important;
    border-left: none !important;
    margin-right: 0 !important;
    font-family: var(--font-primary) !important;
    font-size: 0.83rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em !important;
    color: var(--text-secondary) !important;
    text-decoration: none;
    transition: background 0.15s, color 0.15s !important;
    white-space: nowrap;
}
.menu-item i {
    font-size: 0.85rem !important;
    width: 18px !important;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity 0.15s;
}
.menu-item:hover {
    background: var(--gradient-subtle) !important;
    color: var(--primary) !important;
    box-shadow: none !important;
    transform: none !important;
}
.menu-item:hover i { opacity: 1; }

.menu-item.active {
    background: linear-gradient(135deg,
        rgba(201,109,145,0.14) 0%,
        rgba(124,77,204,0.14) 100%) !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    border-left: none !important;
    box-shadow: none !important;
}
.menu-item.active i {
    color: var(--primary) !important;
    opacity: 1;
}

/* Footer do sidebar */
.sidebar-footer {
    padding: 14px 16px 16px !important;
    border-top: 1px solid var(--border) !important;
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    transition: background 0.15s;
}
.user-profile:hover { background: var(--gradient-subtle); }

.user-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    font-size: 1.1rem !important;
    border: 1.5px solid var(--border-strong, rgba(180,150,200,0.3));
    flex-shrink: 0;
}
.user-name {
    font-family: var(--font-primary) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    color: var(--text-primary) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.logout-link {
    font-size: 0.71rem !important;
    letter-spacing: 0.02em;
}
.avatar-settings-badge {
    width: 14px !important;
    height: 14px !important;
    font-size: 0.45rem !important;
}

/* ────────────────────────────────────────────────────────────────
   MOBILE HEADER
──────────────────────────────────────────────────────────────── */
.mobile-header {
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 1px 0 var(--border) !important;
}
.mobile-logo {
    font-family: var(--font-display, 'Cormorant Garant', Georgia, serif) !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
}

/* ────────────────────────────────────────────────────────────────
   MAIN CONTENT — padding mais generoso
──────────────────────────────────────────────────────────────── */
.main-content {
    padding: 28px 28px 40px !important;
}
@media (max-width: 768px) {
    .main-content { padding: 80px 16px 32px !important; }
}

/* ────────────────────────────────────────────────────────────────
   PAGE HEADERS — hierarquia editorial
──────────────────────────────────────────────────────────────── */
.page-header {
    margin-bottom: 28px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid var(--border) !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.page-title {
    font-family: var(--font-display, 'Cormorant Garant', Georgia, serif) !important;
    font-size: clamp(1.5rem, 3.5vw, 2rem) !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.15 !important;
    color: var(--text-primary) !important;
    /* remove emojis do posicionamento sem esconder */
}
.page-subtitle {
    font-family: var(--font-primary) !important;
    font-size: 0.82rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.6 !important;
    color: var(--text-secondary) !important;
}

/* ────────────────────────────────────────────────────────────────
   CARDS — refinamento completo
──────────────────────────────────────────────────────────────── */
.card {
    background: var(--surface) !important;
    border-radius: 16px !important;
    border: 1px solid var(--border) !important;
    padding: 22px !important;
    box-shadow: var(--shadow-sm) !important;
    margin-bottom: 20px !important;
    transition: box-shadow 0.22s, border-color 0.22s, transform 0.18s !important;
}
.card:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
    border-color: var(--border-strong, rgba(180,150,200,0.4)) !important;
}
.card h3 {
    font-family: var(--font-primary) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: var(--text-secondary) !important;
    margin-bottom: 14px !important;
}
.card-icon {
    font-size: 1.4rem !important;
    margin-bottom: 12px !important;
    display: block;
}
.card-highlight {
    background: linear-gradient(135deg,
        rgba(201,109,145,0.08) 0%,
        rgba(124,77,204,0.08) 100%) !important;
    border-color: rgba(201,109,145,0.20) !important;
}
.card-highlight h3,
.card-highlight .stat-meta {
    color: var(--text-secondary) !important;
}
.stat-value {
    font-family: var(--font-display, 'Cormorant Garant', Georgia, serif) !important;
    font-size: 2.2rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.04em !important;
    line-height: 1 !important;
    color: var(--text-primary) !important;
    margin-bottom: 4px !important;
}
.stat-meta {
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em !important;
    color: var(--text-secondary) !important;
}

/* ────────────────────────────────────────────────────────────────
   DASHBOARD GRID — proporções mais equilibradas
──────────────────────────────────────────────────────────────── */
.dashboard-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
}

/* ────────────────────────────────────────────────────────────────
   PROGRESS BAR — mais fina e refinada
──────────────────────────────────────────────────────────────── */
.progress-bar {
    height: 5px !important;
    background: rgba(0,0,0,0.08) !important;
    border-radius: 99px !important;
    margin-top: 12px !important;
}
[data-theme="dark"] .progress-bar {
    background: rgba(255,255,255,0.08) !important;
}
.progress-fill {
    background: linear-gradient(90deg, #c96d91, #7c4dcc) !important;
    border-radius: 99px !important;
}

/* ────────────────────────────────────────────────────────────────
   BOTÕES — consistência global
──────────────────────────────────────────────────────────────── */
.btn {
    font-family: var(--font-primary) !important;
    font-size: 0.84rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    border-radius: 40px !important;
    padding: 11px 24px !important;
    transition: all 0.18s !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.btn-primary {
    background: linear-gradient(135deg, #c96d91, #7c4dcc) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(201,109,145,0.25) !important;
}
.btn-primary:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 22px rgba(201,109,145,0.35) !important;
}
.btn-secondary {
    background: var(--accent) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
}
.btn-secondary:hover {
    border-color: var(--primary) !important;
    background: rgba(201,109,145,0.07) !important;
}
.btn-danger {
    background: rgba(239,68,68,0.08) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239,68,68,0.2) !important;
}
.btn-sm {
    font-size: 0.76rem !important;
    padding: 7px 16px !important;
}
.btn-xs {
    font-size: 0.71rem !important;
    padding: 5px 12px !important;
}

/* ────────────────────────────────────────────────────────────────
   FORM INPUTS — refinamento global
──────────────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-control,
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
    font-family: var(--font-primary) !important;
    font-size: 0.88rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.01em !important;
    width: 100%;
    padding: 11px 14px !important;
    border-radius: 10px !important;
    border: 1px solid var(--border) !important;
    background: var(--surface) !important;
    color: var(--text-primary) !important;
    transition: border-color 0.16s, box-shadow 0.16s !important;
    -webkit-appearance: none;
    appearance: none;
}
.form-control:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: rgba(201,109,145,0.6) !important;
    box-shadow: 0 0 0 3px rgba(201,109,145,0.10) !important;
}
textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6 !important;
}

/* ────────────────────────────────────────────────────────────────
   TOASTS — mais refinados
──────────────────────────────────────────────────────────────── */
.toast {
    font-family: var(--font-primary) !important;
    font-size: 0.83rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    border-radius: 14px !important;
    padding: 12px 18px !important;
    box-shadow: var(--shadow-lg) !important;
}

/* ────────────────────────────────────────────────────────────────
   DARK MODE — overrides internos
──────────────────────────────────────────────────────────────── */
[data-theme="dark"] .sidebar {
    background: #110b1c !important;
    border-right-color: rgba(255,255,255,0.06) !important;
}
[data-theme="dark"] .sidebar-footer {
    border-top-color: rgba(255,255,255,0.06) !important;
}
[data-theme="dark"] .page-header {
    border-bottom-color: rgba(255,255,255,0.06) !important;
}
[data-theme="dark"] .card {
    background: rgba(22,14,34,0.98) !important;
    border-color: rgba(255,255,255,0.065) !important;
}
[data-theme="dark"] .card:hover {
    border-color: rgba(201,109,145,0.18) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
}
[data-theme="dark"] .card-highlight {
    background: linear-gradient(135deg,
        rgba(201,109,145,0.10) 0%,
        rgba(124,77,204,0.10) 100%) !important;
    border-color: rgba(201,109,145,0.18) !important;
}
[data-theme="dark"] .form-control,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] textarea {
  background: rgba(255,255,255,0.07) !important;
  color: rgba(255,255,255,0.9) !important;
  border-color: rgba(255,255,255,0.15) !important;
}

/* Select no dark mode: fundo escuro solido */
[data-theme="dark"] select {
  background-color: #2a1f35 !important;
  color: rgba(255,255,255,0.9) !important;
  border-color: rgba(255,255,255,0.15) !important;
}

/* Options com texto escuro (dropdown nativo usa fundo branco do SO) */
[data-theme="dark"] select option,
select option {
  background-color: #ffffff !important;
  color: #1a1025 !important;
}
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
    border-color: rgba(201,109,145,0.50) !important;
    box-shadow: 0 0 0 3px rgba(201,109,145,0.09) !important;
}
[data-theme="dark"] .mobile-header {
    background: rgba(14, 9, 22, 0.92) !important;
    border-bottom-color: rgba(255,255,255,0.06) !important;
}

/* ══ END NÍVEL 1 ══ */


/* ══════════════════════════════════════════════════════════════════
   ✦ NÍVEL 2 — Redesign completo do shell
   Sidebar collapsible · Seções · Bottom nav · Dashboard editorial
══════════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────────────────
   VARIÁVEIS DE LAYOUT
──────────────────────────────────────────────────────────────── */
:root {
    --sidebar-w:           256px;
    --sidebar-w-collapsed:  64px;
    --bottom-nav-h:         64px;
    --sidebar-transition:   280ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ────────────────────────────────────────────────────────────────
   APP CONTAINER
──────────────────────────────────────────────────────────────── */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* ────────────────────────────────────────────────────────────────
   SIDEBAR — collapsible desktop
──────────────────────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w) !important;
    min-width: var(--sidebar-w) !important;
    background: var(--surface) !important;
    border-right: 1px solid var(--border) !important;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 200;
    transition:
        width var(--sidebar-transition),
        min-width var(--sidebar-transition),
        transform var(--sidebar-transition) !important;
    overflow: hidden;
    box-shadow: none !important;
}

/* ── Collapsed state ── */
.sidebar--collapsed {
    width: var(--sidebar-w-collapsed) !important;
    min-width: var(--sidebar-w-collapsed) !important;
}
.sidebar--collapsed .sidebar-logo-text,
.sidebar--collapsed .menu-section-label,
.sidebar--collapsed .menu-item span:not(.menu-badge),
.sidebar--collapsed .user-info,
.sidebar--collapsed .sidebar-footer-actions { display: none !important; }

.sidebar--collapsed .sidebar-logo { justify-content: center; }
.sidebar--collapsed .sidebar-logo-icon { margin: 0; }
.sidebar--collapsed .menu-item {
    justify-content: center !important;
    padding: 11px !important;
}
.sidebar--collapsed .menu-item i { width: auto !important; margin: 0; }
.sidebar--collapsed .sidebar-footer { padding: 12px 8px !important; }
.sidebar--collapsed .user-profile { justify-content: center; padding: 8px 0; }
.sidebar--collapsed .sidebar-collapse-btn { justify-content: center; }
.sidebar--collapsed .sidebar-collapse-btn i { transform: rotate(180deg); }

/* Tooltip on collapsed */
.sidebar--collapsed .menu-item {
    position: relative;
}
.sidebar--collapsed .menu-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-primary);
    color: var(--surface);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 300;
}
.sidebar--collapsed .menu-item:hover::after { opacity: 1; }

/* ── Collapse button ── */
.sidebar-collapse-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 14px;
    height: 32px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    transition: color 0.15s;
    flex-shrink: 0;
    margin-bottom: 4px;
}
.sidebar-collapse-btn:hover { color: var(--primary); }
.sidebar-collapse-btn i {
    transition: transform var(--sidebar-transition);
}
@media (max-width: 768px) {
    .sidebar-collapse-btn { display: none; }
}

/* ── Sidebar header ── */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px 14px !important;
    border-bottom: 1px solid var(--border) !important;
    flex-shrink: 0;
}
.sidebar-logo {
    display: flex !important;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
    font-family: var(--font-display, 'Cormorant Garant', Georgia, serif) !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    background: linear-gradient(135deg, #c96d91, #9066e0) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    transition: opacity 0.2s;
}
.sidebar-logo-icon { flex-shrink: 0; }
.sidebar-logo-text { white-space: nowrap; }

.sidebar-header-btns {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}
.sidebar-header-btns button {
    background: none;
    border: none;
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.15s, color 0.15s;
}
.sidebar-header-btns button:hover {
    background: var(--accent);
    color: var(--primary);
}

/* ── Menu sections ── */
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 10px !important;
    scrollbar-width: none;
}
.sidebar-menu::-webkit-scrollbar { display: none; }
.sidebar-menu li { list-style: none; }

.menu-section-label {
    padding: 14px 8px 4px !important;
    transition: opacity 0.2s;
}
.menu-section-label span {
    font-family: var(--font-primary);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ── Nav items ── */
.menu-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 12px !important;
    border-radius: 10px !important;
    border-left: none !important;
    margin-right: 0 !important;
    margin-bottom: 1px;
    font-family: var(--font-primary) !important;
    font-size: 0.83rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em !important;
    color: var(--text-secondary) !important;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.14s, color 0.14s !important;
    box-shadow: none !important;
}
.menu-item i {
    font-size: 0.82rem !important;
    width: 18px !important;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.65;
    transition: opacity 0.14s;
}
.menu-item:hover {
    background: rgba(201,109,145,0.08) !important;
    color: var(--primary) !important;
    transform: none !important;
}
.menu-item:hover i { opacity: 1; }
.menu-item.active {
    background: linear-gradient(135deg,
        rgba(201,109,145,0.13) 0%,
        rgba(124,77,204,0.13) 100%) !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    border-left: none !important;
    box-shadow: none !important;
}
.menu-item.active i { opacity: 1; color: var(--primary) !important; }

.menu-badge {
    margin-left: auto;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
}

/* ── Sidebar footer ── */
.sidebar-footer {
    padding: 12px 14px 16px !important;
    border-top: 1px solid var(--border) !important;
    flex-shrink: 0;
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    overflow: hidden;
}
.user-profile:hover { background: rgba(201,109,145,0.07); }
.user-avatar {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    font-size: 1rem !important;
    border: 1.5px solid var(--border) !important;
    flex-shrink: 0;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-info { min-width: 0; overflow: hidden; }
.user-name {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary) !important;
}
.sidebar-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px 0;
    margin-top: 4px;
    border-top: 1px solid var(--border);
}
.sidebar-footer-actions a,
.sidebar-footer-actions button {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.sidebar-footer-actions a:hover,
.sidebar-footer-actions button:hover {
    color: var(--primary);
    background: rgba(201,109,145,0.07);
}

/* ────────────────────────────────────────────────────────────────
   MAIN CONTENT — ajusta margem quando sidebar colapsa
──────────────────────────────────────────────────────────────── */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-w) !important;
    padding: 28px 32px 48px !important;
    overflow-y: auto;
    height: 100vh;
    transition: margin-left var(--sidebar-transition);
}
.sidebar--collapsed ~ * .main-content,
.app-container:has(.sidebar--collapsed) .main-content {
    margin-left: var(--sidebar-w-collapsed) !important;
}

/* Page transition */
.page-content {
    animation: pageIn 0.22s cubic-bezier(0.4,0,0.2,1) both !important;
}
@keyframes pageIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ────────────────────────────────────────────────────────────────
   MOBILE HEADER + OVERLAY
──────────────────────────────────────────────────────────────── */
.mobile-header {
    background: rgba(var(--surface-rgb, 255,255,255), 0.9) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: none !important;
    height: 56px !important;
}
.mobile-logo {
    font-family: var(--font-display, 'Cormorant Garant', Georgia, serif) !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    background: linear-gradient(135deg, #c96d91, #9066e0) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
.mobile-menu-toggle {
    color: var(--text-secondary) !important;
    font-size: 1rem !important;
}
.mobile-avatar {
    width: 34px !important;
    height: 34px !important;
    font-size: 1rem !important;
    border: 1.5px solid var(--border) !important;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 199;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.25s;
}
.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ────────────────────────────────────────────────────────────────
   BOTTOM NAV — mobile primary navigation
──────────────────────────────────────────────────────────────── */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottom-nav-h);
    background: var(--surface);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 198;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    align-items: center;
    justify-content: space-around;
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.6rem;
    font-family: var(--font-primary);
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: color 0.14s;
    position: relative;
}
.bottom-nav-item i {
    font-size: 1.1rem;
    transition: transform 0.18s;
}
.bottom-nav-item.active {
    color: var(--primary);
}
.bottom-nav-item.active i { transform: translateY(-1px); }
.bottom-nav-item:hover { color: var(--primary); }

/* FAB central */
.bottom-nav-item--fab {
    flex: 0 0 56px;
}
.bottom-nav-fab {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c96d91, #7c4dcc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(201,109,145,0.40);
    transition: transform 0.18s, box-shadow 0.18s;
    margin-bottom: 4px;
}
.bottom-nav-item--fab:hover .bottom-nav-fab,
.bottom-nav-item--fab:active .bottom-nav-fab {
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(201,109,145,0.50);
}

/* ────────────────────────────────────────────────────────────────
   MOBILE RESPONSIVE
──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%) !important;
        width: var(--sidebar-w) !important;
        min-width: var(--sidebar-w) !important;
        z-index: 200;
    }
    .sidebar.mobile-open {
        transform: translateX(0) !important;
        box-shadow: 4px 0 40px rgba(0,0,0,0.2) !important;
    }
    .mobile-header { display: flex !important; }
    .bottom-nav    { display: flex !important; }
    .main-content {
        margin-left: 0 !important;
        padding: 66px 16px calc(var(--bottom-nav-h) + 16px) !important;
    }
    /* Sidebar collapse btn escondido no mobile */
    .sidebar-collapse-btn { display: none !important; }
}

/* ────────────────────────────────────────────────────────────────
   DASHBOARD — grid editorial 2 colunas
──────────────────────────────────────────────────────────────── */
@media (min-width: 769px) {
    .dashboard-grid {
        grid-template-columns: 1.1fr 1fr 1fr 1fr !important;
        gap: 14px !important;
    }
    /* Primeiro card (peso) ocupa mais espaço */
    .dashboard-grid .card:first-child {
        grid-column: span 2;
    }
}
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
}
@media (max-width: 420px) {
    .dashboard-grid { grid-template-columns: 1fr !important; }
}

/* ────────────────────────────────────────────────────────────────
   DARK MODE — Nível 2
──────────────────────────────────────────────────────────────── */
[data-theme="dark"] .sidebar {
    background: #0f0a1a !important;
    border-right-color: rgba(255,255,255,0.055) !important;
}
[data-theme="dark"] .sidebar-footer {
    border-top-color: rgba(255,255,255,0.055) !important;
}
[data-theme="dark"] .sidebar-footer-actions {
    border-top-color: rgba(255,255,255,0.055) !important;
}
[data-theme="dark"] .bottom-nav {
    background: rgba(14, 9, 22, 0.96);
    border-top-color: rgba(255,255,255,0.055);
}
[data-theme="dark"] .mobile-header {
    background: rgba(12, 8, 18, 0.92) !important;
    border-bottom-color: rgba(255,255,255,0.055) !important;
}
[data-theme="dark"] .sidebar-overlay {
    background: rgba(0,0,0,0.65);
}

/* ── Restore sidebar on page load ── */

/* ══ END NÍVEL 2 ══ */


/* ══════════════════════════════════════════════════════════════════
   ✦ MOBILE-FIRST — refinamento completo para telas pequenas
   Touch targets · Tipografia · Espaçamento · Auth · Dashboard
══════════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────────────────
   BASE MOBILE — regras que valem em qualquer tamanho
──────────────────────────────────────────────────────────────── */

/* Previne zoom no iOS ao focar input */
input, textarea, select {
    font-size: max(16px, 0.88rem) !important;
}

/* Touch target mínimo 44px — todos os elementos interativos */
.btn,
.menu-item,
.bottom-nav-item,
.checkin-mood,
.mood-emoji,
.nav-item,
.lp-plan-btn,
.lp-cta-primary,
.lp-cta-secondary,
.lp-login-btn {
    min-height: 44px;
}
/* Exceções: botões pequenos dentro de cards podem ser menores */
.btn-xs { min-height: 36px; }

/* Tap highlight premium */
* {
    -webkit-tap-highlight-color: rgba(201,109,145,0.12);
}
button, a, [onclick] {
    touch-action: manipulation;
}

/* ────────────────────────────────────────────────────────────────
   MOBILE — tudo abaixo de 768px
──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* ── Layout geral ── */
    .main-content {
        padding: 64px 14px calc(var(--bottom-nav-h) + 20px) !important;
    }

    /* ── Tipografia mobile ── */
    .page-title {
        font-size: clamp(1.35rem, 6vw, 1.7rem) !important;
        letter-spacing: -0.015em !important;
    }
    .page-subtitle {
        font-size: 0.82rem !important;
        line-height: 1.55 !important;
    }
    .page-header {
        margin-bottom: 20px !important;
        padding-bottom: 16px !important;
    }

    /* ── Cards mobile ── */
    .card {
        padding: 16px !important;
        border-radius: 14px !important;
        margin-bottom: 12px !important;
    }
    .card h3 {
        font-size: 0.70rem !important;
        margin-bottom: 10px !important;
    }
    .card-icon {
        font-size: 1.2rem !important;
        margin-bottom: 8px !important;
    }
    .stat-value {
        font-size: 1.7rem !important;
        letter-spacing: -0.03em !important;
    }
    .stat-meta { font-size: 0.75rem !important; }

    /* ── Dashboard grid mobile — 2 colunas ── */
    .dashboard-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }
    .dashboard-grid .card:first-child {
        grid-column: span 2 !important;
    }

    /* ── Hero card mobile ── */
    .dashboard-hero-card {
        border-radius: 18px !important;
        padding: 16px !important;
        margin-bottom: 12px !important;
    }
    .dhc-top { margin-bottom: 12px !important; }
    .dhc-avatar { width: 44px !important; height: 44px !important; font-size: 1.3rem !important; }
    .dhc-name { font-size: 1.1rem !important; }
    .dhc-greeting { font-size: 0.72rem !important; }
    .dhc-coins { padding: 4px 8px !important; font-size: 0.72rem !important; }
    .dhc-progress-row { padding: 8px 12px !important; margin-bottom: 8px !important; }
    .dhc-stat-val { font-size: 0.9rem !important; }
    .dhc-stat-label { font-size: 0.58rem !important; }
    .dhc-divider { margin: 0 8px !important; height: 24px !important; }
    .dhc-bar-wrap { margin-bottom: 8px !important; }
    .dhc-dose-row { font-size: 0.74rem !important; padding: 6px 10px !important; }

    /* ── Check-in mobile ── */
    .checkin-bar {
        padding: 14px 16px !important;
        border-radius: 14px !important;
        margin-bottom: 12px !important;
    }
    .checkin-question {
        font-size: 0.84rem !important;
        margin-bottom: 10px !important;
    }
    .checkin-mood {
        font-size: 1.5rem !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
    }

    /* ── Quick actions mobile — botão grande e fácil de tocar ── */
    .quick-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }
    .quick-actions .btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 15px 20px !important;
        font-size: 0.9rem !important;
        border-radius: 14px !important;
        min-height: 52px !important;
    }

    /* ── Motivation card mobile ── */
    .motivation-card { padding: 16px !important; margin-bottom: 12px !important; }
    .motivation-text { font-size: 0.87rem !important; line-height: 1.6 !important; }

    /* ── Week summary mobile ── */
    .week-summary-card { padding: 14px !important; margin-bottom: 12px !important; }
    .week-summary-title { font-size: 0.82rem !important; margin-bottom: 10px !important; }

    /* ── Botões globais mobile ── */
    .btn {
        font-size: 0.87rem !important;
        padding: 12px 20px !important;
        border-radius: 12px !important;
    }
    .btn-sm {
        font-size: 0.78rem !important;
        padding: 9px 14px !important;
        min-height: 38px;
    }

    /* ── Forms mobile ── */
    .form-group { margin-bottom: 16px !important; }
    .form-group label {
        font-size: 0.72rem !important;
        margin-bottom: 5px !important;
    }
    .form-control,
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    input[type="date"],
    select, textarea {
        padding: 13px 14px !important;
        border-radius: 12px !important;
        font-size: 16px !important; /* previne zoom iOS */
    }

    /* ── Sidebar no mobile ── */
    .sidebar {
        width: min(var(--sidebar-w), 85vw) !important;
        min-width: 0 !important;
        box-shadow: 4px 0 40px rgba(0,0,0,0.25) !important;
    }
    .menu-item {
        padding: 13px 16px !important;
        font-size: 0.88rem !important;
        min-height: 48px;
    }
    .menu-item i { font-size: 0.9rem !important; }
    .menu-section-label { padding: 16px 10px 6px !important; }
    .menu-section-label span { font-size: 0.60rem !important; }

    /* ── Mobile header ── */
    .mobile-header {
        height: 56px !important;
        padding: 0 14px !important;
    }
    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-avatar {
        width: 36px !important;
        height: 36px !important;
        cursor: pointer;
    }
    .mobile-logo {
        font-size: 1.1rem !important;
    }

    /* ── Misc ── */
    .toast {
        left: 14px !important;
        right: 14px !important;
        bottom: calc(var(--bottom-nav-h) + 12px) !important;
        font-size: 0.83rem !important;
    }
}

/* ────────────────────────────────────────────────────────────────
   MOBILE PEQUENO — 480px e abaixo
──────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .main-content {
        padding: 60px 12px calc(var(--bottom-nav-h) + 16px) !important;
    }
    .dashboard-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    .dashboard-hero-card { border-radius: 16px !important; padding: 14px !important; }
    .stat-value { font-size: 1.5rem !important; }
    .page-title { font-size: clamp(1.2rem, 6vw, 1.5rem) !important; }
}

/* ────────────────────────────────────────────────────────────────
   AUTH — mobile-first
──────────────────────────────────────────────────────────────── */
.auth-container {
    padding: 0 !important;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.auth-page {
    width: 100% !important;
    max-width: 440px;
    padding: 0 !important;
}
.auth-card {
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 32px 20px 40px !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
@media (min-width: 520px) {
    .auth-container {
        padding: 40px 20px !important;
        align-items: center;
    }
    .auth-card {
        border-radius: 20px !important;
        box-shadow: var(--shadow-lg) !important;
        padding: 40px 36px !important;
        min-height: auto;
    }
}

.auth-logo h1 {
    font-family: var(--font-display, 'Cormorant Garant', Georgia, serif) !important;
    font-size: clamp(1.6rem, 6vw, 2rem) !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
}
.logo-icon { font-size: 2.2rem !important; margin-bottom: 8px !important; }
.auth-logo { margin-bottom: 28px !important; }

/* Auth buttons */
.auth-submit-btn,
button[type="submit"],
.auth-card .btn-primary {
    width: 100% !important;
    min-height: 52px !important;
    font-size: 0.92rem !important;
    border-radius: 14px !important;
    justify-content: center !important;
}

/* ────────────────────────────────────────────────────────────────
   LANDING PAGE — mobile
──────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .lp-header { padding: 14px 18px !important; }
    .lp-hero {
        padding: 64px 18px 56px !important;
    }
    .lp-hero-title {
        font-size: clamp(2rem, 9vw, 2.8rem) !important;
        margin-bottom: 20px !important;
    }
    .lp-hero-sub {
        font-size: 0.92rem !important;
        margin-bottom: 36px !important;
    }
    .lp-hero-ctas {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .lp-cta-primary,
    .lp-cta-secondary {
        width: 100% !important;
        justify-content: center !important;
        min-height: 52px !important;
    }
    .lp-features { padding: 16px 16px 60px !important; }
    .lp-plans { padding: 20px 16px 80px !important; }
    .lp-proof { padding: 0 16px 60px !important; }
    .lp-proof-inner { padding: 22px 16px !important; }
    .lp-stat-num { font-size: 1.8rem !important; }
    .lp-footer-cta { padding: 0 16px 80px !important; }
    .lp-footer-cta-title { font-size: clamp(1.7rem, 7vw, 2.2rem) !important; }
}

/* ══ END MOBILE-FIRST ══ */

/* ============================================================
   MELHORIAS UI — v2026.05.23 (by Claude)
   ============================================================ */

/* === 1. Dashboard — Card de Peso: tamanho balanceado === */
.dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}

/* Card de peso não ocupa toda a largura */
.current-weight,
[class*="weight-card"],
.dashboard-grid > div:first-child {
  max-width: 100%;
}

/* Card sequência — mostrar lado a lado com peso */
.dashboard-grid .sequence-card,
.dashboard-grid [class*="streak"],
.dashboard-grid [class*="sequenc"] {
  min-height: 120px;
}

/* === 2. Sidebar — Separadores de seção mais visíveis === */
.menu-section-label {
  padding: 18px 16px 6px !important;
  margin-top: 4px !important;
  border-top: 1px solid rgba(180, 150, 200, 0.12) !important;
  position: relative;
}

.menu-section-label:first-child {
  border-top: none !important;
  margin-top: 0 !important;
  padding-top: 8px !important;
}

.menu-section-label span {
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--primary) !important;
  opacity: 0.7 !important;
}

/* Menu items com hover mais suave */
.menu-item:not(.active):hover {
  background: rgba(180, 150, 200, 0.08) !important;
  border-radius: 10px !important;
  transition: background 0.15s ease;
}

/* === 3. Chat — Melhorar visual das conversas === */
.admin-chat-row {
  transition: background 0.15s ease, transform 0.1s ease;
  border-radius: 10px !important;
}

.admin-chat-row:hover {
  background: rgba(180, 150, 200, 0.1) !important;
  transform: translateX(2px);
}

/* === 4. Desafios — Estado vazio mais bonito === */
.challenges-empty-state,
.empty-state {
  padding: 40px 20px !important;
  border-radius: 16px !important;
  background: rgba(180, 150, 200, 0.05) !important;
  border: 1px dashed rgba(180, 150, 200, 0.25) !important;
  text-align: center;
}

/* === 5. Dashboard — Card de peso e sequência alinhados === */
.dashboard-grid {
  align-items: start;
}

/* Limitar a altura mínima dos cards de métrica */
.dashboard-grid > * {
  min-height: unset;
}

/* === 6. Geral — Botões com micro-animação === */
.btn-primary, .btn-secondary, button[class*="btn"] {
  transition: transform 0.1s ease, box-shadow 0.1s ease !important;
}

.btn-primary:hover, button[class*="btn"]:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(180, 150, 200, 0.3) !important;
}

.btn-primary:active, button[class*="btn"]:active {
  transform: translateY(0) !important;
}

/* === 7. Progress bar no protocolo — mais arredondada === */
.progress-bar > div,
[class*="progress"] > div {
  border-radius: 999px !important;
}

/* === 8. Cards gerais — borda sutil ao hover === */
.card:hover,
[class*="-card"]:not(.chat-area):hover {
  border-color: rgba(212, 120, 154, 0.25) !important;
  transition: border-color 0.2s ease;
}

/* ============================================================ */


/* ============================================================
   FIX: Logo "Mundo Tirze" cortado + Responsividade Mobile
   ============================================================ */

/* Fix 1: Logo não trunca */
.sidebar-logo {
  overflow: visible !important;
  flex-shrink: 0 !important;
}

.sidebar-logo-text {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.02em !important;
}

/* Fix 2: Sidebar header não comprime o logo */
.sidebar-header {
  overflow: hidden !important;
}

.sidebar-header-btns {
  flex-shrink: 0 !important;
}

/* Fix 3: Mobile — melhorias de legibilidade */
@media (max-width: 768px) {
  /* Hero banner: fonte menor */
  .hero-banner h1,
  .user-greeting h1,
  .welcome-text h1 {
    font-size: 1.3rem !important;
  }

  /* Cards do resumo: grid 2x2 em vez de 3 colunas */
  .summary-grid,
  .week-summary {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Cards de métricas (peso, IMC, sequência): empilhar em 2 */
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Header do painel admin */
  .admin-tabs {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
  }

  .admin-tabs button {
    flex-shrink: 0 !important;
    font-size: 0.72rem !important;
    padding: 6px 10px !important;
  }

  /* Chat layout em mobile: stack vertical */
  .chat-layout {
    flex-direction: column !important;
    height: auto !important;
  }

  .chat-sidebar {
    width: 100% !important;
    max-height: 220px !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }

  /* Protocolo: cronograma mais compacto */
  .protocol-timeline .timeline-item {
    padding: 10px 12px !important;
  }

  /* Conquistas: grid 2x2 */
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* Botão fixo de registrar */
  .fab-register {
    bottom: 80px !important;
  }
}

@media (max-width: 480px) {
  /* Dashboard cards: empilhar 1 coluna */
  .dashboard-grid {
    grid-template-columns: 1fr !important;
  }

  /* Conquistas: 2 por linha mesmo em telas pequenas */
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Formulários: inputs full width */
  .form-row {
    flex-direction: column !important;
  }

  /* Typography: reduzir um pouco */
  .page-title,
  h1.page-title {
    font-size: 1.3rem !important;
  }
}

/* Fix 4: Scrollbar mais fina em mobile */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 3px !important;
    height: 3px !important;
  }
}
/* ============================================================ */


/* ===================================================
   PATCH 2026.05.24 - Dark Mode + Mobile + UX Fixes
   =================================================== */

/* === DARK MODE TEXT READABILITY === */
[data-theme="dark"] .stat-label,
[data-theme="dark"] .card-subtitle,
[data-theme="dark"] .metric-label,
[data-theme="dark"] .info-label,
[data-theme="dark"] .form-hint,
[data-theme="dark"] .helper-text,
[data-theme="dark"] .secondary-text {
  color: rgba(255, 255, 255, 0.75) !important;
}

[data-theme="dark"] .card-title,
[data-theme="dark"] .section-title,
[data-theme="dark"] .stat-value,
[data-theme="dark"] .metric-value {
  color: rgba(255, 255, 255, 0.95) !important;
}

[data-theme="dark"] .card,
[data-theme="dark"] .panel,
[data-theme="dark"] .glass-card {
  color: rgba(255, 255, 255, 0.9);
}

/* Fix input placeholders in dark mode */
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Fix labels in dark mode */
[data-theme="dark"] label,
[data-theme="dark"] .form-label {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Fix table text in dark mode */
[data-theme="dark"] td,
[data-theme="dark"] th {
  color: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(255,255,255,0.08) !important;
}

/* Fix select elements in dark mode */
[data-theme="dark"] select,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] textarea {
  background: rgba(255,255,255,0.07) !important;
  color: rgba(255,255,255,0.9) !important;
  border-color: rgba(255,255,255,0.15) !important;
}

/* Fix toast/notification text in dark mode */
[data-theme="dark"] .toast,
[data-theme="dark"] .alert {
  color: #ffffff !important;
}

/* Fix sidebar section labels in dark mode */
[data-theme="dark"] .sidebar-section-label {
  color: rgba(255,255,255,0.5) !important;
}

/* Fix empty state text in dark mode */
[data-theme="dark"] .empty-state,
[data-theme="dark"] .notif-center-empty p,
[data-theme="dark"] .challenge-empty-title,
[data-theme="dark"] .challenge-empty-text {
  color: rgba(255,255,255,0.6) !important;
}

/* Fix checkin card text */
[data-theme="dark"] .checkin-card p,
[data-theme="dark"] .checkin-card span {
  color: rgba(255,255,255,0.8) !important;
}

/* Fix protocol/diary card text */
[data-theme="dark"] .protocol-card p,
[data-theme="dark"] .diary-entry p,
[data-theme="dark"] .diary-entry span {
  color: rgba(255,255,255,0.8) !important;
}

/* Fix ranking card text */
[data-theme="dark"] .ranking-item,
[data-theme="dark"] .ranking-name,
[data-theme="dark"] .leaderboard-item {
  color: rgba(255,255,255,0.85) !important;
}

/* === COINS ON MOBILE - Ensure visibility === */
#dhc-coins-val {
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.dhc-coins,
.hero-coins-badge,
[class*="coins-badge"] {
  display: flex !important;
  visibility: visible !important;
}

@media (max-width: 768px) {
  #dhc-coins-val {
    display: inline !important;
  }
  /* Ensure the hero section coins badge shows on mobile */
  .dhc-meta-row,
  .hero-meta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* === NOTIFICATION CENTER - Dismissed items styling === */
.notif-center-item.dismissed {
  opacity: 0.4;
  filter: grayscale(0.6);
  pointer-events: none;
}

.nci-dismissed-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-style: italic;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* Notification empty state improved */
.notif-center-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: var(--text-secondary);
  text-align: center;
  gap: 12px;
}

.notif-center-empty i {
  font-size: 2.5rem;
  opacity: 0.4;
  color: var(--primary);
}

.notif-center-empty p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 0;
}

/* Notif center header */
.notif-center-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.notif-center-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

/* === UX IMPROVEMENTS === */

/* Better focus states */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Chat list item improvements */
.admin-chat-row {
  transition: background 0.15s ease, transform 0.1s ease;
}

/* Better scrollbar for dark mode */
[data-theme="dark"] ::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.25);
}

/* Mobile header coins area */
@media (max-width: 768px) {
  .dashboard-hero-card .dhc-coins-area,
  .dashboard-hero .coins-display {
    display: flex !important;
    align-items: center;
    gap: 6px;
  }
  
  /* Prevent coin badge from hiding on mobile */
  span#dhc-coins-val,
  .coin-value {
    display: inline !important;
    font-size: 0.85rem;
  }
}
