:root {
            --color-bg-base: #0f172a;
            --color-bg-elevated: #020617;
            --color-bg-surface: #1e293b;
            --color-bg-muted: #334155;
            --color-text-primary: #f1f5f9;
            --color-text-secondary: #cbd5e1;
            --color-text-muted: #94a3b8;
            --color-primary: #38bdf8;
            --color-primary-hover: #0ea5e9;
            --color-success: #22c55e;
            --color-warning: #f59e0b;
            --color-error: #ef4444;
            --bottom-nav-h: 64px;
            --safe-top: env(safe-area-inset-top, 0px);
            --safe-bottom: env(safe-area-inset-bottom, 0px);
        }

        /* LIGHT THEME */
        body.light-mode {
            --color-bg-base: #f1f5f9;
            --color-bg-elevated: #e2e8f0;
            --color-bg-surface: #ffffff;
            --color-bg-muted: #cbd5e1;
            --color-text-primary: #0f172a;
            --color-text-secondary: #334155;
            --color-text-muted: #64748b;
            --color-primary: #0284c7;
            --color-primary-hover: #0369a1;
            --color-success: #16a34a;
            --color-warning: #d97706;
            --color-error: #dc2626;
        }
        body.light-mode header {
            background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 60%, #e0f2fe 100%);
            box-shadow: 0 6px 24px rgba(0,0,0,.10), inset 0 1px 0 rgba(2,132,199,.15);
            border: 1px solid rgba(2,132,199,.18);
        }
        body.light-mode header::before {
            background: radial-gradient(ellipse, rgba(2,132,199,.14) 0%, transparent 70%);
        }
        body.light-mode h1 {
            background: linear-gradient(90deg, #e11d48 0%, #f43f5e 50%, #be123c 100%);
            background-size: 200% auto;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        body.light-mode .iob-banner {
            background: rgba(2,132,199,.10);
            border-color: rgba(2,132,199,.3);
        }
        body.light-mode .fab-main {
            background: #fff;
            box-shadow: 0 4px 16px rgba(0,0,0,.15);
        }
        body.light-mode .stat-card:hover {
            box-shadow: 0 6px 20px rgba(2,132,199,.18);
        }
        body.light-mode .stat-card.active-card {
            box-shadow: 0 0 0 2px rgba(2,132,199,.35), 0 6px 20px rgba(2,132,199,.2);
        }

        * { transition: border-color .2s, color .15s; }
        h1, .auth-logo-title, .splash-title { transition: none !important; }
        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

        html, body {
            max-width: 100%;
            overflow-x: hidden;
            background: var(--color-bg-base);
            color: var(--color-text-primary);
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-size: 15px;
            line-height: 1.6;
        }

        .container {
            max-width: 980px;
            margin: 0 auto;
            padding: 12px 12px calc(var(--bottom-nav-h) + var(--safe-bottom) + 84px);
        }

        header {
            padding-top: max(18px, var(--safe-top));
            padding-bottom: 16px;
            padding-left: 20px;
            padding-right: 20px;
            background: linear-gradient(135deg, #0c1a2e 0%, #0f2240 60%, #0a1628 100%);
            border-radius: 16px;
            text-align: center;
            margin-bottom: 16px;
            box-shadow: 0 6px 24px rgba(0,0,0,.45), inset 0 1px 0 rgba(56,189,248,.12);
            border: 1px solid rgba(56,189,248,.12);
            position: relative;
            overflow: hidden;
        }
        .header-bell {
            position: absolute; top: 14px; right: 14px;
            width: 36px; height: 36px; border-radius: 50%;
            background: rgba(255,255,255,.06);
            border: none; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: background .2s;
            -webkit-tap-highlight-color: transparent;
        }
        /* ← position:absolute do pai garante que a bolinha se posiciona em relação ao botão */
        .header-bell:active { background: rgba(244,63,94,.2); }
        .header-bell img { width: 20px; height: 20px; object-fit: contain; }
        .header-bell-dot {
            position: absolute;
            top: 2px; right: 2px;
            width: 10px; height: 10px; border-radius: 50%;
            background: #f43f5e;
            border: 2px solid #0c1a2e;
            display: none;
            animation: pulse-dot 1.8s ease-in-out infinite;
        }
        .header-bell-dot.show { display: block; }
        @keyframes pulse-dot {
            0%, 100% { transform: scale(1); opacity: 1; }
            50%       { transform: scale(1.3); opacity: .7; }
        }
        /* Aba de notificações */
        .notif-item {
            display: flex; align-items: flex-start; gap: 12px;
            padding: 14px 0; border-bottom: 1px solid var(--color-bg-muted);
        }
        .notif-item:last-child { border-bottom: none; }
        .notif-icon {
            width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
            display: flex; align-items: center; justify-content: center;
            font-size: 1rem; background: var(--color-bg-muted);
        }
        .notif-text { flex: 1; }
        .notif-title { font-size: .88rem; font-weight: 700; color: var(--color-text-primary); }
        .notif-sub { font-size: .77rem; color: var(--color-text-muted); margin-top: 2px; }
        .notif-time { font-size: .7rem; color: var(--color-text-muted); margin-top: 4px; }
        .notif-empty { text-align: center; padding: 40px 20px; color: var(--color-text-muted); }

            content: '';
            position: absolute;
            top: -40px; left: 50%;
            transform: translateX(-50%);
            width: 200px; height: 80px;
            background: radial-gradient(ellipse, rgba(56,189,248,.18) 0%, transparent 70%);
            pointer-events: none;
        }

        .card, .home-card, .btn, .auth-btn, .nav-btn, .fab-option,
        .post-card, .ach-card, .registro, .stat-card, .theme-pill,
        .bottom-nav, header, body {
            transition: background-color .25s, border-color .2s, color .15s;
        }
        h1 {
            font-size: 1.75rem;
            font-weight: 800;
            letter-spacing: -0.5px;
            color: #f43f5e;
            background: linear-gradient(90deg, #f43f5e 0%, #fb7185 40%, #e11d48 100%);
            background-size: 200% auto;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: shimmer 4s linear infinite;
            margin-bottom: 4px;
            transition: none !important;
            will-change: background-position;
        }
        @keyframes shimmer {
            0%   { background-position: 0% center; }
            100% { background-position: 200% center; }
        }
        .subtitle {
            color: var(--color-text-muted);
            font-size: 0.78rem;
            letter-spacing: 0.8px;
            text-transform: uppercase;
        }

        /* IOB BANNER */
        .iob-banner {
            display: none;
            align-items: center; justify-content: center; gap: 8px;
            padding: 6px 12px;
            background: rgba(56,189,248,.10);
            border: 1px solid rgba(56,189,248,.28);
            border-radius: 20px;
            font-size: 0.74rem; font-weight: 600;
            color: var(--color-primary);
            letter-spacing: 0.3px;
            animation: iobPulse 2.4s ease-in-out infinite;
            cursor: pointer;
            white-space: nowrap;
        }
        .iob-banner.visible { display: inline-flex; }
        .iob-banner-dot {
            width: 7px; height: 7px; border-radius: 50%;
            background: var(--color-primary);
            animation: dotBlink 1.2s ease-in-out infinite;
            flex-shrink: 0;
        }

        /* LAST READING BADGE */
        .last-reading-badge {
            display: none;
            align-items: center; gap: 7px;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.74rem; font-weight: 600;
            letter-spacing: 0.3px;
            cursor: pointer;
            white-space: nowrap;
            border: 1px solid;
        }
        .last-reading-badge.visible { display: inline-flex; }
        .last-reading-badge.ok   { background: rgba(34,197,94,.12);  border-color: rgba(34,197,94,.35);  color: var(--color-success); }
        .last-reading-badge.low  { background: rgba(239,68,68,.12);  border-color: rgba(239,68,68,.35);  color: var(--color-error); }
        .last-reading-badge.high { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.35); color: var(--color-warning); }
        .last-reading-dot {
            width: 7px; height: 7px; border-radius: 50%;
            background: currentColor; flex-shrink: 0;
        }

        .header-row {
            display: none;
            align-items: center; justify-content: center;
            gap: 8px; margin-top: 10px; flex-wrap: wrap;
        }
        .header-row.visible {
            display: flex;
        }

        @keyframes iobPulse {
            0%,100% { box-shadow: 0 0 0 0 rgba(56,189,248,.0); }
            50%      { box-shadow: 0 0 0 5px rgba(56,189,248,.12); }
        }
        @keyframes dotBlink {
            0%,100% { opacity: 1; }
            50%      { opacity: .3; }
        }

        .card {
            background: var(--color-bg-surface);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 14px;
            box-shadow: 0 2px 8px rgba(0,0,0,.2);
        }
        .card h2 { font-size: 1.1rem; margin-bottom: 14px; color: var(--color-primary); }

        .form-group { margin-bottom: 14px; }
        label { display: block; margin-bottom: 6px; color: var(--color-text-secondary); font-weight: 500; font-size: 0.84rem; }
        input, select, textarea {
            width: 100%; padding: 11px 12px;
            background: var(--color-bg-base);
            border: 2px solid var(--color-bg-muted);
            border-radius: 8px;
            color: var(--color-text-primary);
            font-size: 16px;
            transition: border-color .3s;
        }
        input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-primary); }

        .btn {
            display: block; width: 100%;
            padding: 12px 16px;
            background: var(--color-primary);
            color: var(--color-bg-base);
            border: none; border-radius: 8px;
            font-size: 0.95rem; font-weight: 600;
            cursor: pointer; transition: all .25s;
        }
        .btn:active { transform: scale(.97); }
        .btn-secondary { background: var(--color-bg-muted); color: var(--color-text-primary); }
        .btn-secondary:active { background: var(--color-bg-surface); }

        .btn-mini {
            padding: 8px 10px; border: none; border-radius: 7px;
            font-size: 0.8rem; font-weight: 500; cursor: pointer;
            transition: all .2s; flex: 1;
        }
        .btn-edit { background: var(--color-bg-muted); color: var(--color-text-primary); }
        .btn-edit:active { background: var(--color-primary); color: var(--color-bg-base); }
        .btn-delete { background: rgba(239,68,68,.15); color: var(--color-error); border: 1px solid var(--color-error); }
        .btn-delete:active { background: var(--color-error); color: #fff; }

        .tab-content { display: none; }
        .tab-content.active { display: block; }

        .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
        .stat-card {
            background: var(--color-bg-elevated); padding: 14px; border-radius: 10px;
            border-left: 4px solid var(--color-primary);
            cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s;
            position: relative; overflow: hidden;
        }
        .stat-card::after {
            content: ''; position: absolute; inset: 0;
            background: rgba(56,189,248,.0); transition: background .18s;
            border-radius: 10px; pointer-events: none;
        }
        .stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(56,189,248,.18); }
        .stat-card:hover::after { background: rgba(56,189,248,.04); }
        .stat-card.active-card { border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(56,189,248,.35), 0 6px 20px rgba(56,189,248,.2); }
        .stat-card:active { transform: scale(.97); }
        .stat-card-hint { font-size: 0.62rem; color: var(--color-text-muted); margin-top: 4px; letter-spacing: .3px; }

        /* CHART PANEL */
        .chart-panel {
            background: var(--color-bg-surface); border-radius: 14px;
            border: 1.5px solid var(--color-primary);
            margin-bottom: 14px; overflow: hidden;
            animation: fadeIn .3s;
            box-shadow: 0 4px 20px rgba(56,189,248,.12);
        }
        .chart-panel-header {
            display: flex; align-items: center; justify-content: space-between;
            padding: 14px 16px 0; flex-wrap: wrap; gap: 10px;
        }
        .chart-panel-title {
            font-size: 1rem; font-weight: 700; color: var(--color-primary);
            display: flex; align-items: center; gap: 8px;
        }
        .chart-period-btns { display: flex; gap: 6px; flex-wrap:wrap; }
        .chart-period-btn-pro { border-color:rgba(168,85,247,.4)!important; color:#a855f7!important; background:rgba(168,85,247,.08)!important; }
        .chart-period-btn-pro.active { background:linear-gradient(135deg,#7c3aed,#a855f7)!important; color:#fff!important; border-color:transparent!important; }
        .chart-period-btn {
            padding: 5px 14px; border-radius: 20px; border: 1.5px solid var(--color-bg-muted);
            background: var(--color-bg-base); color: var(--color-text-muted);
            font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all .2s;
        }
        .chart-period-btn.active {
            background: var(--color-primary); color: var(--color-bg-base);
            border-color: var(--color-primary);
        }
        .chart-period-btn:active { transform: scale(.95); }
        .chart-canvas-wrap { padding: 10px 12px 4px; position: relative; }
        .chart-canvas-wrap canvas { max-height: 220px; }
        .chart-panel-footer {
            display: flex; justify-content: flex-end; align-items: center;
            padding: 8px 16px 14px; gap: 10px;
        }
        .btn-pdf {
            display: flex; align-items: center; gap: 6px;
            padding: 8px 16px; border-radius: 8px; border: none;
            background: rgba(239,68,68,.15); color: var(--color-error);
            border: 1px solid var(--color-error);
            font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all .2s;
        }
        .btn-pdf:hover { background: var(--color-error); color: #fff; }
        .btn-pdf:active { transform: scale(.96); }
        .chart-empty { text-align: center; padding: 28px; color: var(--color-text-muted); font-size: 0.9rem; }
        .stat-label { color: var(--color-text-muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: .5px; }
        .stat-value { font-size: 1.5rem; font-weight: 700; margin-top: 6px; }
        .stat-unit { font-size: 0.82rem; color: var(--color-text-secondary); margin-left: 3px; }

        /* ── SWIPE CARDS ── */
        /* ── SWIPE CARDS ── */
        .swipe-wrap {
            position: relative; overflow: hidden;
            border-radius: 12px; margin-bottom: 0;
        }
        .swipe-wrap + .swipe-wrap { border-top: 1px solid rgba(255,255,255,.06); }
        .swipe-wrap + .swipe-wrap .registro { border-radius: 0; }
        .swipe-wrap:first-child .registro { border-radius: 12px 12px 0 0; }
        .swipe-wrap:last-child  .registro { border-radius: 0 0 12px 12px; }
        .swipe-wrap:only-child  .registro { border-radius: 12px; }
        body.light-mode .swipe-wrap + .swipe-wrap { border-top: 1px solid rgba(0,0,0,.07); }

        /* Botões de ação — só ocupam sua largura (70px), não a tela toda */
        .swipe-btn-edit, .swipe-btn-del {
            position: absolute; top: 0; bottom: 0; width: 72px;
            display: flex; flex-direction: column; align-items: center;
            justify-content: center; gap: 4px;
            font-size: 0.72rem; font-weight: 700; color: #fff;
            cursor: pointer; border: none;
            -webkit-tap-highlight-color: transparent;
            /* ESCONDIDO por padrão — não bloqueia toques */
            opacity: 0; pointer-events: none;
            transition: opacity .15s;
        }
        .swipe-wrap.is-swiping .swipe-btn-edit,
        .swipe-wrap.is-swiping .swipe-btn-del {
            opacity: 1; pointer-events: auto;
        }
        .swipe-btn-edit {
            left: 0;
            background: linear-gradient(135deg,#22c55e,#16a34a);
            border-radius: 0; /* swipe-wrap já tem overflow:hidden */
        }
        .swipe-btn-del {
            right: 0;
            background: linear-gradient(135deg,#ef4444,#dc2626);
            border-radius: 0;
        }
        .swipe-btn-icon { font-size: 1.3rem; line-height: 1; }

        .registro {
            position: relative; z-index: 1;
            background: var(--color-bg-surface);
            padding: 13px 14px; border-radius: 12px;
            border-left: 3px solid var(--color-bg-muted);
            touch-action: pan-y; user-select: none;
            box-shadow: 0 2px 8px rgba(0,0,0,.12);
            will-change: transform;
        }
        .registro-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
        .registro-time { color: var(--color-text-muted); font-size: 0.76rem; }
        .registro-value { font-size: 1.05rem; font-weight: 700; }

        .badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 0.72rem; font-weight: 600; }
        .badge-success { background: rgba(34,197,94,.2); color: var(--color-success); }
        .badge-warning { background: rgba(245,158,11,.2); color: var(--color-warning); }
        .badge-error   { background: rgba(239,68,68,.2);  color: var(--color-error); }
        .badge-primary { background: rgba(56,189,248,.2); color: var(--color-primary); }

        .alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; font-weight: 500; font-size: 0.9rem; }
        .alert-success { background: rgba(34,197,94,.15);  border: 1px solid var(--color-success); color: var(--color-success); }
        .alert-warning { background: rgba(245,158,11,.15); border: 1px solid var(--color-warning); color: var(--color-warning); }
        .alert-error   { background: rgba(239,68,68,.15);  border: 1px solid var(--color-error);   color: var(--color-error); }

        .calculo-resultado { background: var(--color-bg-elevated); padding: 14px; border-radius: 10px; margin-top: 14px; border: 2px solid var(--color-primary); }
        .calculo-linha { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--color-bg-muted); font-size: 0.9rem; gap: 8px; }
        .calculo-linha:last-of-type { border-bottom: none; font-size: 1.1rem; font-weight: 700; color: var(--color-primary); padding-top: 12px; }

        .empty-state { text-align: center; padding: 28px 14px; color: var(--color-text-muted); }
        .empty-state-icon { font-size: 2.2rem; margin-bottom: 10px; }

        /* LANG DROPDOWN */
        .lang-dropdown-wrap { position: relative; margin-bottom: 4px; }

        .lang-selected {
            display: flex; align-items: center; justify-content: space-between;
            padding: 13px 16px;
            background: var(--color-bg-base);
            border: 2px solid var(--color-bg-muted);
            border-radius: 12px;
            cursor: pointer;
            transition: border-color .25s, box-shadow .25s;
            user-select: none;
        }
        .lang-selected:hover { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(56,189,248,.1); }
        .lang-selected.open  { border-color: var(--color-primary); border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: 0 0 0 3px rgba(56,189,248,.1); }

        .lang-selected-left { display: flex; align-items: center; gap: 10px; }
        .lang-flag { font-size: 1.35rem; line-height: 1; }
        .lang-name { font-size: 0.93rem; font-weight: 600; color: var(--color-text-primary); }
        .lang-tag  { font-size: 0.72rem; color: var(--color-text-muted); margin-left: 2px; font-weight: 400; }

        .lang-chevron {
            width: 18px; height: 18px; color: var(--color-text-muted);
            transition: transform .25s cubic-bezier(.4,0,.2,1);
            flex-shrink: 0;
        }
        .lang-selected.open .lang-chevron { transform: rotate(180deg); color: var(--color-primary); }

        .lang-options {
            position: absolute; top: 100%; left: 0; right: 0;
            background: var(--color-bg-surface);
            border: 2px solid var(--color-primary);
            border-top: none;
            border-bottom-left-radius: 12px; border-bottom-right-radius: 12px;
            overflow: hidden;
            max-height: 0;
            opacity: 0;
            pointer-events: none;
            transition: max-height .3s cubic-bezier(.4,0,.2,1), opacity .22s;
            z-index: 100;
            box-shadow: 0 12px 32px rgba(0,0,0,.35);
        }
        .lang-options.open { max-height: 200px; opacity: 1; pointer-events: auto; }

        .lang-option {
            display: flex; align-items: center; gap: 12px;
            padding: 13px 16px;
            cursor: pointer;
            transition: background .15s;
            border-bottom: 1px solid var(--color-bg-muted);
        }
        .lang-option:last-child { border-bottom: none; }
        .lang-option:hover { background: rgba(56,189,248,.07); }
        .lang-option.active { background: rgba(56,189,248,.12); }

        .lang-option-flag { font-size: 1.3rem; }
        .lang-option-text { display: flex; flex-direction: column; }
        .lang-option-name { font-size: 0.9rem; font-weight: 600; color: var(--color-text-primary); }
        .lang-option-native { font-size: 0.74rem; color: var(--color-text-muted); }
        .lang-option-check {
            margin-left: auto;
            width: 18px; height: 18px;
            color: var(--color-primary);
            opacity: 0; transition: opacity .15s;
        }
        .lang-option.active .lang-option-check { opacity: 1; }

        /* THEME TOGGLE */
        .theme-toggle-wrap {
            display: flex; align-items: center; justify-content: space-between;
            background: var(--color-bg-base);
            border: 2px solid var(--color-bg-muted);
            border-radius: 12px;
            padding: 12px 16px;
        }
        .theme-toggle-info { display: flex; align-items: center; gap: 10px; }
        .theme-toggle-icon { font-size: 1.3rem; }
        .theme-toggle-text { display: flex; flex-direction: column; }
        .theme-toggle-name { font-size: 0.9rem; font-weight: 600; color: var(--color-text-primary); }
        .theme-toggle-sub  { font-size: 0.72rem; color: var(--color-text-muted); }

        .theme-pill {
            position: relative; width: 72px; height: 34px;
            background: var(--color-bg-muted);
            border-radius: 17px; cursor: pointer;
            transition: background .3s;
            flex-shrink: 0;
            border: none;
            display: flex; align-items: center;
            padding: 3px;
        }
        .theme-pill.light { background: var(--color-primary); }
        .theme-pill-icons {
            position: absolute; inset: 0;
            display: flex; align-items: center;
            justify-content: space-between;
            padding: 0 8px;
            pointer-events: none;
        }
        .theme-pill-icon { font-size: 0.82rem; }
        .theme-pill-knob {
            width: 28px; height: 28px;
            background: #fff;
            border-radius: 50%;
            box-shadow: 0 2px 8px rgba(0,0,0,.25);
            transition: transform .3s cubic-bezier(.4,0,.2,1);
            position: relative; z-index: 1;
        }
        .theme-pill.light .theme-pill-knob { transform: translateX(38px); }

        .bottom-nav {
            position: fixed;
            bottom: 0; left: 0; right: 0;
            height: calc(var(--bottom-nav-h) + var(--safe-bottom));
            padding-bottom: var(--safe-bottom);
            background: var(--color-bg-elevated);
            border-top: 1px solid var(--color-bg-muted);
            display: flex;
            justify-content: space-around;
            align-items: center;
            z-index: 900;
            box-shadow: 0 -4px 20px rgba(0,0,0,.4);
        }
        .nav-btn {
            display: flex; flex-direction: column; align-items: center; gap: 3px;
            background: transparent; border: none; cursor: pointer;
            color: var(--color-text-muted); font-size: 0.7rem; font-weight: 600;
            padding: 6px 14px; border-radius: 10px; transition: all .2s;
            min-width: 72px;
        }
        .nav-btn .nav-icon { font-size: 1.35rem; }
        .nav-custom-icon {
            width: 26px; height: 26px;
            object-fit: contain;
            opacity: 0.45;
            transition: opacity .2s, transform .2s;
        }
        .nav-btn.active .nav-custom-icon {
            opacity: 1;
            transform: scale(1.15);
        }
        body.light-mode .nav-custom-icon {
            filter: invert(0); opacity: 0.5;
        }
        body.light-mode .nav-btn.active .nav-custom-icon {
            opacity: 1;
        }
        .nav-btn.active { color: var(--color-primary); }
        .nav-btn.active .nav-icon { transform: scale(1.15); }
        .nav-btn:active { transform: scale(.93); }

        .fab-wrap {
            position: fixed;
            right: 16px;
            bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 12px);
            z-index: 950;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            /* gap removido — options usa position absolute, não empurra o layout */
        }
        .fab-options {
            display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
            opacity: 0; pointer-events: none; visibility: hidden;
            transform: translateY(12px);
            transition: opacity .22s, transform .22s, visibility .22s;
            position: absolute; bottom: calc(100% + 10px); right: 0;
            min-width: max-content;
        }
        .fab-options.open {
            opacity: 1; pointer-events: auto; visibility: visible;
            transform: translateY(0);
        }
        .fab-option {
            display: flex; align-items: center; gap: 8px;
            background: var(--color-bg-surface);
            border: 1.5px solid var(--color-bg-muted);
            border-radius: 28px;
            padding: 10px 16px;
            cursor: pointer;
            color: var(--color-text-primary); font-size: 0.9rem; font-weight: 600;
            box-shadow: 0 4px 14px rgba(0,0,0,.35);
            white-space: nowrap;
            transition: background .2s;
        }
        .fab-option:active { background: var(--color-bg-muted); }
        .fab-main {
            width: 56px; height: 56px;
            border-radius: 50%;
            background: var(--color-bg-surface);
            border: 2px solid var(--color-bg-muted);
            cursor: pointer;
            box-shadow: 0 4px 16px rgba(0,0,0,.35);
            transition: transform .25s, background .2s, box-shadow .2s;
            display: flex; align-items: center; justify-content: center;
            -webkit-tap-highlight-color: transparent;
        }
        .fab-main img {
            width: 30px; height: 30px; object-fit: contain;
            opacity: 0.75;
            transition: opacity .2s, transform .25s;
        }
        .fab-main.open img { transform: rotate(45deg); opacity: 1; }
        .fab-main.open { background: rgba(239,68,68,.15); border-color: var(--color-error); box-shadow: 0 6px 18px rgba(239,68,68,.3); }
        .fab-main:active { transform: scale(.92); }

        .fab-backdrop {
            position: fixed; inset: 0;
            background: rgba(2,6,23,.5);
            z-index: 940;
            display: none;
        }
        .fab-backdrop.show { display: block; }

        .modal-overlay {
            position: fixed; inset: 0;
            background: rgba(2,6,23,.7);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .modal-overlay.show { display: flex; }
        .modal-box {
            background: var(--color-bg-surface);
            border-radius: 16px;
            padding: 24px;
            width: 100%; max-width: 360px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0,0,0,.6);
            border: 1px solid var(--color-bg-muted);
            animation: modalIn .2s ease;
        }
        @keyframes modalIn { from { opacity:0; transform:scale(.92); } to { opacity:1; transform:scale(1); } }
        .modal-title { color: var(--color-primary); font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
        .modal-message { color: var(--color-text-secondary); font-size: 0.9rem; margin-bottom: 14px; line-height: 1.5; }
        .modal-inputs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
        .modal-inputs .form-group { margin-bottom: 0; }
        .modal-actions { display: flex; gap: 10px; }
        .modal-actions .btn { flex: 1; }

        /* HYPO ALERT MODAL */
        .hypo-overlay {
            position: fixed; inset: 0;
            background: rgba(0,0,0,.75);
            z-index: 3000;
            display: none;
            align-items: center; justify-content: center;
            padding: 20px;
            backdrop-filter: blur(4px);
        }
        .hypo-overlay.show { display: flex; }

        .hypo-box {
            background: #1a0a0a;
            border: 2px solid var(--color-error);
            border-radius: 20px;
            padding: 28px 24px 20px;
            width: 100%; max-width: 340px;
            text-align: center;
            position: relative;
            overflow: hidden;
            box-shadow: 0 0 0 4px rgba(239,68,68,.2), 0 24px 60px rgba(0,0,0,.7);
            animation: hypoIn .35s cubic-bezier(.34,1.56,.64,1);
        }
        body.light-mode .hypo-box { background: #fff5f5; }

        @keyframes hypoIn {
            from { opacity:0; transform: scale(.85); }
            to   { opacity:1; transform: scale(1); }
        }

        .hypo-pulse-ring {
            position: absolute; inset: -2px;
            border-radius: 22px;
            border: 3px solid var(--color-error);
            animation: hypoPulseRing 1.4s ease-out infinite;
            pointer-events: none;
        }
        @keyframes hypoPulseRing {
            0%   { opacity:.8; transform: scale(1); }
            100% { opacity:0;  transform: scale(1.06); }
        }

        .hypo-icon {
            font-size: 3rem; margin-bottom: 6px;
            animation: hypoShake .5s ease-in-out infinite alternate;
        }
        @keyframes hypoShake {
            from { transform: rotate(-6deg) scale(1); }
            to   { transform: rotate(6deg)  scale(1.08); }
        }

        .hypo-title {
            font-size: 1.1rem; font-weight: 900;
            color: var(--color-error);
            letter-spacing: 2px; text-transform: uppercase;
            margin-bottom: 4px;
        }
        .hypo-value {
            font-size: 2rem; font-weight: 800;
            color: var(--color-error);
            margin-bottom: 14px;
        }
        .hypo-question {
            font-size: 1.15rem; font-weight: 700;
            color: var(--color-text-primary);
            margin-bottom: 6px;
        }
        .hypo-sub {
            font-size: 0.8rem; color: var(--color-text-muted);
            line-height: 1.5; margin-bottom: 20px;
        }
        .hypo-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
        .hypo-btn-ok {
            padding: 13px; border-radius: 10px; border: none;
            background: var(--color-success); color: #fff;
            font-size: 1rem; font-weight: 700; cursor: pointer;
            transition: transform .15s, opacity .15s;
            box-shadow: 0 4px 14px rgba(34,197,94,.35);
        }
        .hypo-btn-ok:active { transform: scale(.97); }
        .hypo-btn-help {
            padding: 13px; border-radius: 10px;
            background: rgba(239,68,68,.15);
            border: 1.5px solid var(--color-error);
            color: var(--color-error);
            font-size: 1rem; font-weight: 700; cursor: pointer;
            transition: transform .15s, background .2s;
        }
        .hypo-btn-help:hover { background: var(--color-error); color: #fff; }
        .hypo-btn-help:active { transform: scale(.97); }

        .hypo-timer-wrap {
            height: 4px; background: rgba(239,68,68,.15);
            border-radius: 2px; overflow: hidden; margin-bottom: 10px;
        }
        .hypo-timer-bar {
            height: 100%; width: 100%;
            background: var(--color-error);
            border-radius: 2px;
            transform-origin: left;
            transition: transform linear;
        }
        .hypo-footer-note {
            font-size: 0.7rem; color: var(--color-text-muted);
        }

        /* ══ AUTH SCREEN ══ */
        #auth-screen {
            position: fixed; inset: 0;
            background: url('../images/bg.jpg') center center / cover no-repeat;
            z-index: 9999;
            display: flex; align-items: center; justify-content: center;
            padding: 24px;
        }
        #auth-screen::before {
            content: '';
            position: absolute; inset: 0;
            background: rgba(10, 10, 20, 0.45);
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
        }
        #auth-screen.hidden { display: none; }
        .auth-box {
            position: relative; z-index: 1;
            width: 100%; max-width: 380px;
            background: rgba(15, 23, 42, 0.82);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 24px;
            padding: 32px 24px 28px;
            box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 0 0 1px rgba(244,63,94,.18);
            border: 1px solid rgba(255,255,255,.08);
        }
        .auth-logo {
            text-align: center; margin-bottom: 24px;
        }
        .beta-badge {
            display: inline-block; font-size: 0.55rem; font-weight: 800;
            background: linear-gradient(135deg,#f43f5e,#fb923c);
            color: #fff !important;
            -webkit-text-fill-color: #fff !important;
            background-clip: unset !important;
            -webkit-background-clip: unset !important;
            padding: 2px 6px; border-radius: 4px;
            vertical-align: super; margin-left: 4px; letter-spacing: .5px;
            text-transform: uppercase; line-height: 1.4;
        }
        .auth-logo-title {
            font-size: 2rem; font-weight: 800;
            background: linear-gradient(90deg, #f43f5e 0%, #fb7185 40%, #e11d48 100%);
            background-size: 200% auto;
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: shimmer 4s linear infinite;
        }
        .auth-logo-sub {
            font-size: 0.75rem; color: var(--color-text-muted);
            letter-spacing: 0.8px; text-transform: uppercase; margin-top: 2px;
        }
        .auth-tabs {
            display: flex; gap: 0; margin-bottom: 24px;
            background: var(--color-bg-base);
            border-radius: 10px; padding: 4px;
        }
        .auth-tab {
            flex: 1; padding: 9px; border: none; border-radius: 8px;
            font-size: 0.88rem; font-weight: 700; cursor: pointer;
            background: transparent; color: var(--color-text-muted);
            transition: all .2s;
        }
        .auth-tab.active {
            background: var(--color-bg-surface);
            color: var(--color-primary);
            box-shadow: 0 2px 8px rgba(0,0,0,.2);
        }
        .auth-form { display: flex; flex-direction: column; gap: 14px; }
        .auth-form input:not([type="checkbox"]) {
            width: 100%; padding: 12px 14px;
            background: var(--color-bg-base);
            border: 2px solid var(--color-bg-muted);
            border-radius: 10px; color: var(--color-text-primary);
            font-size: 15px; transition: border-color .25s;
        }
        .auth-form input[type="checkbox"] {
            width: 18px; height: 18px; min-width: 18px;
            margin-top: 2px; cursor: pointer; accent-color: #38bdf8;
            flex-shrink: 0;
        }
        .auth-form input:not([type="checkbox"]):focus { outline: none; border-color: var(--color-primary); }
        .auth-btn {
            padding: 13px; border: none; border-radius: 10px;
            background: var(--color-primary); color: var(--color-bg-base);
            font-size: 1rem; font-weight: 800; cursor: pointer;
            transition: all .2s; margin-top: 4px;
        }
        .auth-btn:active { transform: scale(.97); }
        .auth-error {
            background: rgba(239,68,68,.12); border: 1px solid var(--color-error);
            color: var(--color-error); border-radius: 8px;
            padding: 10px 12px; font-size: 0.84rem; font-weight: 600;
            display: none;
        }
        .auth-error.show { display: block; }
        .auth-success {
            background: rgba(34,197,94,.12); border: 1px solid var(--color-success);
            color: var(--color-success); border-radius: 8px;
            padding: 10px 12px; font-size: 0.84rem; font-weight: 600;
            display: none;
        }
        .auth-success.show { display: block; }
        .auth-user-bar {
            display: flex; align-items: center; justify-content: space-between;
            gap: 8px; margin-top: 10px; flex-wrap: wrap;
        }
        .auth-user-info {
            font-size: 0.78rem; color: var(--color-text-muted);
            display: flex; align-items: center; gap: 5px;
        }
        .btn-logout {
            padding: 5px 12px; border-radius: 20px; border: 1px solid var(--color-error);
            background: rgba(239,68,68,.1); color: var(--color-error);
            font-size: 0.75rem; font-weight: 700; cursor: pointer; transition: all .2s;
        }
        .btn-logout:hover { background: var(--color-error); color: #fff; }

        /* ══ COMUNIDADE ══ */
        /* ── COMUNIDADE ── */

        .community-topbar {
            display:flex; align-items:center; justify-content:space-between;
            gap:12px; margin-bottom:8px;
        }
        .community-rules-trigger {
            background:none; border:none; padding:0;
            color:var(--color-text-muted); font-size:0.8rem; font-weight:600;
            cursor:pointer; transition:opacity .2s,color .2s;
        }
        .community-rules-trigger:hover,
        .community-rules-trigger:focus-visible {
            color:var(--color-text-secondary); opacity:1; text-decoration:underline; outline:none;
        }
        .community-favorites-btn {
            display:flex; align-items:center; gap:6px; margin-left:auto;
            background:var(--color-bg-surface); border:1px solid var(--color-bg-muted);
            border-radius:20px; padding:6px 14px; font-size:0.78rem; font-weight:600;
            color:var(--color-text-muted); cursor:pointer;
        }

        .feed-composer { background:var(--color-bg-surface); border-radius:14px; padding:14px; margin-bottom:14px; box-shadow:0 2px 8px rgba(0,0,0,.2); }
        .community-safety-note {
            display:flex; align-items:flex-start; gap:10px;
            margin-bottom:12px; padding:12px 14px;
            border:1px solid rgba(255,107,107,.55);
            border-radius:12px; background:rgba(255,107,107,.08);
            color:var(--color-text-primary);
        }
        .community-safety-note.compact {
            margin-bottom:10px; padding:10px 12px; border-radius:10px;
            background:rgba(255,107,107,.07);
        }
        .community-safety-note-icon {
            flex-shrink:0; width:22px; height:22px;
            display:flex; align-items:center; justify-content:center;
            font-size:0.95rem; line-height:1; margin-top:1px;
        }
        .community-safety-note-text {
            font-size:0.82rem; line-height:1.45; color:var(--color-text-secondary);
        }
        .community-safety-note-text strong {
            color:#ff8f8f;
        }
        .feed-composer-top { display:flex; gap:10px; align-items:flex-start; }
        .feed-avatar-mini { width:38px; height:38px; border-radius:50%; background:var(--color-bg-muted); display:flex; align-items:center; justify-content:center; font-size:0.85rem; font-weight:800; color:var(--color-primary); flex-shrink:0; overflow:hidden; border:2px solid #f59e0b; }
        .feed-avatar-mini img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
        .feed-textarea { flex:1; background:var(--color-bg-base); border:2px solid var(--color-bg-muted); border-radius:10px; padding:10px 12px; color:var(--color-text-primary); font-size:0.95rem; resize:none; min-height:70px; font-family:inherit; transition:border-color .25s; line-height:1.5; }
        .feed-textarea:focus { outline:none; border-color:var(--color-primary); }
        .feed-composer-bottom { display:flex; justify-content:space-between; align-items:center; margin-top:10px; }
        .feed-char-count { font-size:0.75rem; color:var(--color-text-muted); }
        .feed-char-count.warn { color:var(--color-warning); }
        .feed-char-count.over { color:var(--color-error); }
        .btn-post { padding:8px 20px; border-radius:20px; border:none; background:var(--color-primary); color:var(--color-bg-base); font-size:0.88rem; font-weight:700; cursor:pointer; transition:all .2s; }
        .btn-post:active { transform:scale(.96); }
        .btn-post:disabled { opacity:.5; cursor:not-allowed; }
        .post-card { background:var(--color-bg-surface); border-radius:14px; padding:14px; margin-bottom:12px; box-shadow:0 2px 8px rgba(0,0,0,.18); animation:fadeIn .3s; overflow:visible; cursor:pointer; }
        .post-card:active { opacity:.92; }
        /* ── Comentários ── */
        .comment-item {
            display:flex; gap:10px; padding:10px 0;
            border-bottom:1px solid var(--color-bg-muted);
        }
        .comment-item:last-child { border-bottom:none; }
        .comment-avatar {
            width:30px; height:30px; border-radius:50%; flex-shrink:0;
            background:var(--color-bg-muted);
            display:flex; align-items:center; justify-content:center;
            font-size:0.7rem; font-weight:800; color:var(--color-primary);
            overflow:hidden; border:1.5px solid #f59e0b;
        }
        .comment-avatar img { width:100%; height:100%; object-fit:cover; }
        .comment-body { flex:1; min-width:0; }
        .comment-name {
            font-size:0.8rem; font-weight:700; color:var(--color-text-primary);
            display:flex; align-items:center; gap:4px;
        }
        .comment-time { font-size:0.68rem; color:var(--color-text-muted); margin-left:4px; }
        .comment-text {
            font-size:0.88rem; color:var(--color-text-primary);
            line-height:1.5; margin-top:3px; white-space:pre-wrap; word-break:break-word;
        }
        .comment-actions { display:flex; gap:8px; margin-top:6px; align-items:center; }
        .btn-comment-like {
            background:none; border:none; cursor:pointer; font-size:0.75rem;
            color:var(--color-text-muted); display:flex; align-items:center; gap:3px;
            padding:3px 6px; border-radius:8px; transition:all .2s;
            -webkit-tap-highlight-color:transparent;
        }
        .btn-comment-like.liked { color:var(--color-error); }
        .btn-comment-reply {
            background:none; border:none; cursor:pointer; font-size:0.75rem;
            color:var(--color-text-muted); padding:3px 6px; border-radius:8px;
            -webkit-tap-highlight-color:transparent;
        }
        .btn-comment-del {
            background:none; border:none; cursor:pointer; font-size:0.75rem;
            color:var(--color-text-muted); padding:3px 6px; border-radius:8px;
            margin-left:auto;
        }
        .comment-reply-indent {
            margin-left:40px; border-left:2px solid var(--color-bg-muted);
            padding-left:10px;
        }
        .post-detail-header {
            display:flex; align-items:center; gap:10px;
            padding:12px 0 14px; margin-bottom:4px;
            border-bottom:1px solid var(--color-bg-muted);
        }
        .btn-back {
            background:none; border:none; cursor:pointer;
            color:var(--color-primary); font-size:1.2rem; padding:4px 8px;
            border-radius:8px; -webkit-tap-highlight-color:transparent;
        }
        .comment-input-wrap { display:none; } /* replaced by #comment-bar */
        /* ── Comment Bar ── */
                /* ── Comment Bar ── */
        .comment-bar-wrap {
            display: none;
            position: fixed; bottom: 0; left: 0; right: 0;
            z-index: 951;
            background: var(--color-bg-base);
            border-top: 1.5px solid var(--color-bg-muted);
            padding: 10px 14px calc(10px + var(--safe-bottom));
            box-shadow: 0 -6px 24px rgba(0,0,0,.35);
        }
        .reply-banner {
            display: flex; align-items: center; justify-content: space-between;
            background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.2);
            border-radius: 8px; padding: 6px 10px; margin-bottom: 8px;
        }
        .comment-composer-row {
            display: flex; gap: 10px; align-items: flex-end;
        }
        .comment-input-wrap {
            flex: 1; min-width: 0;
            display: flex; flex-direction: column;
        }
        .comment-input {
            width: 100%; box-sizing: border-box;
            background: var(--color-bg-surface);
            border: 1.5px solid var(--color-bg-muted);
            border-radius: 22px;
            padding: 10px 14px;
            color: var(--color-text-primary);
            font-size: 0.9rem; font-family: inherit;
            resize: none; outline: none;
            min-height: 42px; max-height: 110px;
            line-height: 1.45; transition: border-color .18s, height .1s;
            display: block;
        }
        .comment-input:focus { border-color: var(--color-primary); }
        .comment-char-count {
            font-size: .67rem; color: var(--color-text-muted);
            text-align: right; padding: 3px 4px 0; display: block;
        }
        .btn-send-comment {
            background: var(--color-primary); border: none; cursor: pointer;
            width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
            display: flex; align-items: center; justify-content: center;
            transition: transform .15s, background .15s;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
            margin-bottom: 22px;
        }
        .btn-send-comment:active { transform: scale(.88); }
        .btn-send-comment:disabled { opacity: .4; cursor: default; }
        .reply-banner {
            background: rgba(56,189,248,.08);
            border: 1px solid rgba(56,189,248,.2);
            border-radius: 10px;
            padding: 7px 12px;
            display: flex; align-items: center; justify-content: space-between;
            margin-bottom: 8px;
        }
        .post-header { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
        .post-user-info { flex:1; min-width:0; }
        .post-user-name { font-size:0.9rem; font-weight:700; color:var(--color-text-primary); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
        .post-user-meta { font-size:0.72rem; color:var(--color-text-muted); margin-top:1px; }
        .post-text { font-size:0.92rem; color:var(--color-text-primary); line-height:1.6; white-space:pre-wrap; word-break:break-word; margin-bottom:12px; }
        .post-actions { display:flex; gap:8px; align-items:center; }
        .btn-fav {
            background:none; border:none; cursor:pointer;
            padding:8px 10px; border-radius:20px;
            display:flex; align-items:center; justify-content:center;
            -webkit-tap-highlight-color:transparent; touch-action:manipulation;
            transition:transform .15s;
        }
        .btn-fav:active { transform:scale(.88); }
        .btn-fav img { width:18px; height:18px; object-fit:contain; opacity:.4; transition:opacity .2s; }
        .btn-fav.saved img { opacity:1; }
        .btn-report {
            background:none; border:none; cursor:pointer;
            padding:6px 8px; border-radius:20px;
            display:flex; align-items:center; justify-content:center;
            -webkit-tap-highlight-color:transparent; touch-action:manipulation;
            color:var(--color-text-muted); font-size:1rem; opacity:.5;
            transition:opacity .2s, color .2s;
        }
        .btn-report:active { opacity:1; color:var(--color-error); }
        .btn-like { display:flex; align-items:center; gap:5px; background:none; border:none; cursor:pointer; color:var(--color-text-muted); font-size:0.82rem; font-weight:600; padding:8px 12px; border-radius:20px; transition:all .2s; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
        .btn-like:active { background:rgba(239,68,68,.1); }
        .btn-like.liked { color:var(--color-error); background:rgba(239,68,68,.1); }
        .btn-like .like-icon { font-size:1.1rem; }
        .btn-post-menu { background:none; border:none; cursor:pointer; color:var(--color-text-muted); width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; transition:background .2s; -webkit-tap-highlight-color:transparent; touch-action:manipulation; margin-left:auto; flex-shrink:0; }
        .btn-post-menu:active { background:var(--color-bg-muted); }
        /* Action sheet overlay */
        .post-overlay { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:9998; display:none; }
        .post-overlay.show { display:block; }
        .post-sheet { position:fixed; bottom:0; left:0; right:0; background:var(--color-bg-surface); border-radius:20px 20px 0 0; padding:8px 0 max(24px,env(safe-area-inset-bottom)); z-index:9999; transform:translateY(100%); transition:transform .28s cubic-bezier(.4,0,.2,1); box-shadow:0 -8px 40px rgba(0,0,0,.5); }
        .post-sheet.show { transform:translateY(0); }
        .post-sheet-handle { width:36px; height:4px; border-radius:2px; background:var(--color-bg-muted); margin:10px auto 16px; }
        .post-sheet-btn { display:block; width:100%; padding:16px 24px; background:none; border:none; cursor:pointer; font-size:1rem; font-weight:600; text-align:left; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
        .post-sheet-btn.danger { color:var(--color-error); border-bottom:1px solid var(--color-bg-muted); }
        .post-sheet-btn.cancel { color:var(--color-text-muted); }
        /* User card */
        /* ── User Card — espelho do perfil ── */
        .user-card-popup { position:fixed; background:linear-gradient(180deg,rgba(15,20,40,.97),rgba(10,15,32,.98)); border:1px solid rgba(90,114,154,.25); border-radius:22px; padding:0 16px 16px; width:240px; box-shadow:0 20px 48px rgba(0,0,0,.55); z-index:9997; display:none; animation:fadeIn .18s; overflow:hidden; backdrop-filter:blur(14px); }
        .user-card-popup.open { display:block; }
        /* Ring wrap — igual ao perfil */
        .uc-ring-wrap { position:relative; width:88px; height:88px; margin:16px auto 0; }
        .uc-ring-svg { position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); }
        .uc-ring-track { fill:none; stroke:var(--color-bg-muted); stroke-width:5; }
        .uc-ring-fill { fill:none; stroke-width:5; stroke-linecap:round; stroke-dasharray:283; stroke-dashoffset:283; transition:stroke-dashoffset .8s ease; }
        .uc-avatar { position:absolute; inset:7px; border-radius:50%; overflow:hidden; background:var(--color-bg-muted); display:flex; align-items:center; justify-content:center; font-size:1.1rem; font-weight:800; color:var(--color-primary); }
        .uc-avatar img { width:100%; height:100%; object-fit:cover; }
        .uc-name { margin-top:10px; text-align:center; font-weight:800; font-size:1rem; color:var(--color-text-primary); display:flex; align-items:center; justify-content:center; gap:5px; }
        .uc-age { margin-top:3px; text-align:center; font-size:.8rem; color:var(--color-text-muted); }
        .uc-bio { margin-top:6px; text-align:center; font-size:.77rem; line-height:1.4; color:var(--color-text-secondary); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-style:italic; }
        .uc-level { margin:8px auto 0; width:fit-content; background:linear-gradient(90deg,#fb7185,#f43f5e); color:#fff; font-size:.8rem; font-weight:800; padding:5px 14px; border-radius:999px; }
        .uc-badges-row { display:flex; flex-wrap:wrap; gap:5px; justify-content:center; margin-top:8px; }
        .uc-badge { display:inline-flex; align-items:center; gap:3px; background:rgba(245,158,11,.14); border:1px solid rgba(245,158,11,.5); color:#fbbf24; font-size:.68rem; font-weight:700; padding:4px 9px; border-radius:20px; }
        .uc-badge-pro { background:linear-gradient(135deg,rgba(124,58,237,.2),rgba(168,85,247,.15)); border-color:rgba(168,85,247,.5); color:#d8b4fe; }
        /* Legado — manter para não quebrar referências antigas */
        .user-card-level { display:none; }
        .user-card-badge-wrap,.user-card-badge,.user-card-cover,.user-card-avatar-wrap,.user-card-avatar,.user-card-name,.user-card-age,.user-card-bio { display:none; }
        .feed-empty { text-align:center; padding:40px 20px; color:var(--color-text-muted); font-size:0.9rem; }
        .feed-empty-icon { font-size:2.5rem; margin-bottom:10px; }
        .feed-loading { text-align:center; padding:20px; color:var(--color-text-muted); font-size:0.88rem; }

        /* ══ HOME CARDS ══ */
        .home-hero {
            text-align: center;
            padding: 10px 0 16px;
        }
        .home-greeting {
            font-size: 1.1rem; font-weight: 700;
            color: var(--color-text-primary); margin-bottom: 2px;
            display: flex; align-items: center; justify-content: center; gap: 4px;
        }
        .home-sub {
            font-size: 0.78rem; color: var(--color-text-muted);
        }
        .home-cards-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-bottom: 16px;
        }
        .home-card {
            background: var(--color-bg-surface);
            border-radius: 16px;
            padding: 16px 8px;
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            gap: 8px; cursor: pointer;
            border: 1.5px solid var(--color-bg-muted);
            transition: all .2s; text-align: center;
            box-shadow: 0 2px 8px rgba(0,0,0,.15);
            min-height: 90px;
            -webkit-tap-highlight-color: transparent;
        }
        .home-card:active { transform: scale(.95); }
        .home-card:hover { border-color: var(--color-primary); box-shadow: 0 4px 16px rgba(56,189,248,.18); }
        .home-card-icon { font-size: 1.8rem; line-height: 1; }
        .home-card-icon img { width: 36px; height: 36px; object-fit: contain; display: block; }
        .home-card-label {
            font-size: 0.72rem; font-weight: 700;
            color: var(--color-text-secondary);
            letter-spacing: 0.3px; line-height: 1.2;
        }
        .home-card.rose { border-color: rgba(244,63,94,.35); }
        .home-card.rose:hover { border-color: #f43f5e; box-shadow: 0 4px 16px rgba(244,63,94,.2); }
        .home-card.green { border-color: rgba(34,197,94,.35); }
        .home-card.green:hover { border-color: #22c55e; box-shadow: 0 4px 16px rgba(34,197,94,.2); }
        .home-card.amber { border-color: rgba(245,158,11,.35); }
        .home-card.amber:hover { border-color: #f59e0b; box-shadow: 0 4px 16px rgba(245,158,11,.2); }
        .home-card.blue { border-color: rgba(56,189,248,.35); }
        .home-card.blue:hover { border-color: #38bdf8; box-shadow: 0 4px 16px rgba(56,189,248,.2); }
        .home-card.purple { border-color: rgba(129,140,248,.35); }
        .home-card.purple:hover { border-color: #818cf8; box-shadow: 0 4px 16px rgba(129,140,248,.2); }
        .home-card.teal { border-color: rgba(45,212,191,.35); }
        .home-card.teal:hover { border-color: #2dd4bf; box-shadow: 0 4px 16px rgba(45,212,191,.2); }

        /* ══ RESET PASSWORD SCREEN ══ */
        #reset-screen {
            position: fixed; inset: 0;
            background: url('../images/bg.jpg') center center / cover no-repeat;
            z-index: 9998;
            display: none; align-items: center; justify-content: center;
            padding: 24px;
        }
        #reset-screen::before {
            content: ''; position: absolute; inset: 0;
            background: rgba(10,10,20,.45);
            backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
        }
        #reset-screen.show { display: flex; }
        .reset-box {
            position: relative; z-index: 1;
            width: 100%; max-width: 380px;
            background: rgba(15,23,42,.82);
            backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            border-radius: 24px; padding: 32px 24px 28px;
            box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 0 0 1px rgba(244,63,94,.18);
            border: 1px solid rgba(255,255,255,.08);
        }
        .reset-title {
            font-size: 1.3rem; font-weight: 800; text-align: center;
            margin-bottom: 6px; color: var(--color-text-primary);
        }
        .reset-sub {
            font-size: 0.78rem; color: var(--color-text-muted);
            text-align: center; margin-bottom: 22px;
        }
        .reset-form { display: flex; flex-direction: column; gap: 12px; }

        /* ══ SPLASH SCREEN ══ */
        #splash-screen {
            position: fixed; inset: 0; z-index: 99997;
            background: var(--color-bg-base);
            display: flex; flex-direction: column;
            align-items: center; justify-content: center; gap: 16px;
            transition: opacity .4s ease;
        }
        #splash-screen.fade-out { opacity: 0; pointer-events: none; }
        #splash-screen.hidden   { display: none; }
        .splash-title {
            font-size: 2.2rem; font-weight: 800;
            background: linear-gradient(90deg, #f43f5e 0%, #fb7185 40%, #e11d48 100%);
            background-size: 200% auto;
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: shimmer 3s linear infinite;
        }
        .splash-sub {
            font-size: 0.78rem; color: var(--color-text-muted);
            letter-spacing: 1px; text-transform: uppercase;
        }
        .splash-phrase {
            font-size: 0.92rem; color: var(--color-text-secondary);
            text-align: center; max-width: 280px; line-height: 1.6;
            font-style: italic; padding: 0 20px;
            animation: fadeIn 1s ease;
        }
        .splash-phrase-author {
            font-size: 0.72rem; color: var(--color-text-muted);
            text-align: center; margin-top: 4px; letter-spacing: 0.3px;
        }
        .splash-spinner {
            width: 32px; height: 32px; border-radius: 50%;
            border: 3px solid var(--color-bg-muted);
            border-top-color: #f43f5e;
            animation: spin .8s linear infinite;
            margin-top: 8px;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* ══ PERFIL ══ */
        .profile-hero {
            display: flex; flex-direction: column; align-items: center;
            padding: 20px 16px 16px;
        }
        .avatar-ring-wrap {
            position: relative; width: 110px; height: 110px; margin-bottom: 14px;
        }
        .avatar-ring-svg {
            position: absolute; inset: 0; width: 100%; height: 100%;
            transform: rotate(-90deg);
        }
        .avatar-ring-track { fill: none; stroke: var(--color-bg-muted); stroke-width: 5; }
        .avatar-ring-fill  {
            fill: none; stroke-width: 5; stroke-linecap: round;
            stroke-dasharray: 283; stroke-dashoffset: 283;
            transition: stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1), stroke .6s;
        }
        .avatar-circle {
            position: absolute; inset: 8px;
            border-radius: 50%; overflow: hidden;
            background: var(--color-bg-muted);
            display: flex; align-items: center; justify-content: center;
            cursor: pointer;
        }
        .avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
            font-size: 2rem; font-weight: 800;
            color: var(--color-primary); user-select: none;
        }
        .avatar-edit-overlay { display: none; } /* removido — foto só editável em Editar Perfil */

        .profile-name-display {
            font-size: 1.2rem; font-weight: 700; color: var(--color-text-primary);
            margin-bottom: 2px; text-align: center;
            display: flex; align-items: center; justify-content: center; gap: 6px;
        }
        .profile-meta { font-size: 0.8rem; color: var(--color-text-muted); text-align: center; }
        
        /* XP BAR CSS */
        .xp-bar-wrap { width: 100%; margin-top: 14px; }
        .xp-bar-labels { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--color-text-muted); margin-bottom: 5px; }
        .xp-bar-track {
            height: 8px; background: var(--color-bg-muted); border-radius: 4px; overflow: hidden;
        }
        .xp-bar-fill {
            height: 100%; border-radius: 4px;
            background: linear-gradient(90deg, #f59e0b, #fbbf24);
            transition: width 1s cubic-bezier(.4,0,.2,1);
        }

        .level-badge {
            display: inline-flex; align-items: center; gap: 6px;
            background: linear-gradient(135deg, #f43f5e, #fb7185);
            color: var(--color-bg-base); font-size: 0.78rem; font-weight: 800;
            padding: 4px 12px; border-radius: 12px; margin-top: 8px;
            letter-spacing: .5px;
        }

        /* ACHIEVEMENTS */
        .achievements-grid {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 10px; margin-top: 4px;
        }
        .ach-card {
            background: var(--color-bg-elevated); border-radius: 12px;
            padding: 12px 8px; text-align: center;
            border: 1.5px solid var(--color-bg-muted);
            transition: border-color .2s, transform .2s;
        }
        .ach-card.unlocked {
            border-color: var(--color-primary);
            background: rgba(56,189,248,.06);
        }
        .ach-card.unlocked:hover { transform: translateY(-2px); }
        .ach-card-icon { font-size: 1.6rem; margin-bottom: 5px; }
        .ach-card.locked .ach-card-icon { filter: grayscale(1) opacity(.35); }
        .ach-card-name { font-size: 0.68rem; font-weight: 600; color: var(--color-text-secondary); line-height: 1.3; }
        .ach-card.locked .ach-card-name { color: var(--color-text-muted); }
        .ach-card-lv { font-size: 0.6rem; color: var(--color-primary); font-weight: 700; margin-top: 3px; }
        .ach-card.locked .ach-card-lv { color: var(--color-bg-muted); }

        .ach-card.unlocked.bronze   { border-color: #cd7f32; background: rgba(205,127,50,.08); }
        .ach-card.unlocked.silver   { border-color: #9ca3af; background: rgba(156,163,175,.08); }
        .ach-card.unlocked.gold     { border-color: #f59e0b; background: rgba(245,158,11,.10); }
        .ach-card.unlocked.platinum { border-color: #818cf8; background: rgba(129,140,248,.10); }
        .ach-card.unlocked.diamond  { border-color: #22d3ee; background: rgba(34,211,238,.12);
            box-shadow: 0 0 12px rgba(34,211,238,.25); animation: diamondGlow 2s ease-in-out infinite; }
        @keyframes diamondGlow {
            0%,100% { box-shadow: 0 0 8px rgba(34,211,238,.2); }
            50%      { box-shadow: 0 0 18px rgba(34,211,238,.45); }
        }
        /* Conquista selecionada para exibir no perfil */
        .ach-card.unlocked { cursor: pointer; }
        .ach-card.ach-selected {
            border-color: #f59e0b !important;
            background: rgba(245,158,11,.15) !important;
            box-shadow: 0 0 12px rgba(245,158,11,.3);
        }
        .ach-selected-label {
            font-size: 0.58rem; font-weight: 800;
            color: #f59e0b; margin-top: 3px;
            letter-spacing: .3px;
        }
        /* Conquistas especiais (lv 0) — borda rosa */
        .ach-card.unlocked.special-ach {
            border-color: #f472b6;
            background: rgba(244,114,182,.08);
        }

        /* profile form fields */
        .profile-form-input {
            width: 100%; padding: 11px 12px;
            background: var(--color-bg-base);
            border: 2px solid var(--color-bg-muted);
            border-radius: 8px; color: var(--color-text-primary);
            font-size: 16px; transition: border-color .3s;
        }
        .profile-form-input:focus { outline: none; border-color: var(--color-primary); }

/* ── Premium / assinatura ───────────────────────── */
.premium-fab {
    position: fixed;
    right: 16px;
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 82px);
    z-index: 960;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.premium-fab-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 156px;
    padding: 10px 14px;
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, .28);
    background: linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(37, 99, 235, .22));
    box-shadow: 0 10px 28px rgba(2, 6, 23, .35);
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.premium-fab-main:active { transform: scale(.97); }
.premium-fab-main img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}
.premium-fab-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}
.premium-fab-copy strong {
    font-size: .9rem;
    font-weight: 800;
}
.premium-fab-copy span {
    font-size: .72rem;
    color: rgba(255,255,255,.78);
    margin-top: 3px;
}
.premium-fab-close {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .24);
    background: rgba(15, 23, 42, .86);
    color: rgba(255,255,255,.85);
    cursor: pointer;
    flex-shrink: 0;
}
.premium-fab-close:active { transform: scale(.92); }

.premium-config-card {
    border: 1px solid rgba(245, 158, 11, .22);
    background:
        radial-gradient(circle at top right, rgba(245,158,11,.12), transparent 34%),
        linear-gradient(180deg, rgba(99,102,241,.06), rgba(15,23,42,.02));
}
.premium-config-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(15, 23, 42, .18);
    border: 1px solid rgba(148, 163, 184, .12);
}
.premium-config-icon-wrap,
.premium-modal-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255,255,255,.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.premium-config-icon,
.premium-modal-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
}
.premium-benefits-list,
.premium-modal-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}
.premium-benefit-item,
.premium-modal-item {
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--color-bg-elevated);
    border: 1px solid rgba(148,163,184,.12);
    color: var(--color-text-secondary);
    font-size: .82rem;
}
.premium-config-actions,
.premium-modal-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}
.premium-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.premium-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(245, 158, 11, .12);
    border: 1px solid rgba(245, 158, 11, .24);
    color: #f59e0b;
    font-size: .74rem;
    font-weight: 800;
    white-space: nowrap;
}
.premium-modal-box {
    position: relative;
    max-width: 440px;
}
.premium-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,.18);
    background: rgba(15,23,42,.12);
    color: var(--color-text-muted);
    cursor: pointer;
}
.premium-modal-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-right: 42px;
}
.premium-modal-kicker {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #f59e0b;
    font-weight: 800;
    margin-bottom: 4px;
}
.premium-modal-title-main {
    font-size: 1.28rem;
    font-weight: 900;
    color: var(--color-text-primary);
}
.premium-modal-subtitle {
    margin-top: 4px;
    color: var(--color-text-secondary);
    font-size: .88rem;
}
.premium-price-card {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(99,102,241,.08));
    border: 1px solid rgba(245,158,11,.18);
}
.premium-price-amount {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--color-text-primary);
}
.premium-price-amount span {
    font-size: .92rem;
    color: var(--color-text-secondary);
    font-weight: 700;
    margin-left: 4px;
}
.premium-price-trial,
.premium-modal-note {
    margin-top: 6px;
    color: var(--color-text-secondary);
    font-size: .8rem;
    line-height: 1.5;
}
.premium-modal-note {
    padding: 12px;
    border-radius: 14px;
    background: rgba(15,23,42,.16);
    border: 1px solid rgba(148,163,184,.12);
}

body.light-mode .premium-fab-main {
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(250,204,21,.2));
    color: #0f172a;
    border-color: rgba(245, 158, 11, .26);
}
body.light-mode .premium-fab-copy span { color: rgba(15,23,42,.68); }
body.light-mode .premium-fab-close {
    background: rgba(255,255,255,.96);
    color: #334155;
}
body.light-mode .premium-config-icon-wrap,
body.light-mode .premium-modal-icon-wrap {
    background: rgba(255,255,255,.96);
}
body.light-mode .premium-config-highlight,
body.light-mode .premium-modal-note {
    background: rgba(255,255,255,.72);
}

@media (max-width: 640px) {
    .premium-fab {
        right: 12px;
        bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 74px);
    }
    .premium-fab-main {
        min-width: 144px;
        padding: 9px 12px;
    }
    .premium-price-card {
        flex-direction: column;
        align-items: flex-start;
    }
}


.avatar-ring-wrap{position:relative}
/* Conquista Pro — estética roxa */
.ach-card.pro-ach.unlocked{background:linear-gradient(135deg,rgba(109,40,217,.25),rgba(168,85,247,.15));border-color:rgba(168,85,247,.6);box-shadow:0 0 16px rgba(168,85,247,.25)}
.ach-card.pro-ach.unlocked .ach-card-icon{filter:drop-shadow(0 0 6px rgba(168,85,247,.7))}
.ach-card.pro-ach .ach-lv{color:#d8b4fe}
.avatar-pro-badge{position:absolute;right:-2px;bottom:8px;width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,#0f172a,#1e293b);border:2px solid rgba(56,189,248,.5);box-shadow:0 10px 24px rgba(15,23,42,.32);align-items:center;justify-content:center;z-index:2}
.avatar-pro-badge img{width:13px;height:13px;object-fit:contain}
/* ── Cards Pro na home e perfil ── */
.pro-home-card,.profile-pro-card{border:1px solid rgba(168,85,247,.3);background:linear-gradient(135deg,rgba(30,27,75,.95),rgba(45,31,94,.95));box-shadow:0 4px 24px rgba(124,58,237,.18)}
.pro-home-card{display:flex;align-items:center;justify-content:space-between;cursor:pointer}
.pro-home-card-left,.profile-pro-left{display:flex;align-items:center;gap:14px}
.pro-home-icon-wrap,.profile-pro-icon-wrap{width:58px;height:58px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#7c3aed,#a855f7);flex-shrink:0;box-shadow:0 0 16px rgba(168,85,247,.4)}
.pro-home-icon-wrap img,.profile-pro-icon-wrap img{width:34px;height:34px;object-fit:contain}
.pro-home-kicker,.profile-pro-kicker{font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.14em;color:#fb923c;margin-bottom:4px}
.pro-home-title,.profile-pro-title{font-size:1.05rem;font-weight:800;color:#f8fafc}
.pro-home-subtitle,.profile-pro-subtitle{font-size:.82rem;color:rgba(226,232,240,.74);line-height:1.55;margin-top:4px}
.pro-home-arrow{font-size:1.7rem;color:#a855f7;opacity:.9;padding-left:14px}
.profile-pro-row{display:flex;align-items:center;justify-content:space-between;gap:18px}

/* ── Hero banner da tab Pro ── */
.pro-hero-banner{position:relative;border-radius:20px;overflow:hidden;padding:22px 20px;margin-bottom:4px;background:linear-gradient(135deg,#1e1b4b 0%,#2d1f5e 50%,#1c1730 100%);border:1px solid rgba(168,85,247,.35);box-shadow:0 8px 32px rgba(124,58,237,.25)}
.pro-hero-glow{position:absolute;top:-40px;right:-40px;width:160px;height:160px;border-radius:50%;background:radial-gradient(circle,rgba(249,115,22,.25),transparent 70%);pointer-events:none}
.pro-hero-inner{display:flex;align-items:center;gap:16px;position:relative;z-index:1}
.pro-hero-icon{width:52px;height:52px;object-fit:contain;filter:drop-shadow(0 0 10px rgba(168,85,247,.6))}
.pro-hero-kicker{font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.15em;color:#fb923c;margin-bottom:2px}
.pro-hero-title{font-size:1.3rem;font-weight:900;color:#f8fafc;letter-spacing:-.01em}
.pro-hero-badge{display:inline-block;margin-top:6px;font-size:.72rem;font-weight:700;padding:3px 10px;border-radius:20px;background:rgba(168,85,247,.2);border:1px solid rgba(168,85,247,.4);color:#d8b4fe}

/* ── Grid de cards Pro (igual ao início) ── */
.pro-cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}
.pro-card{background:var(--color-bg-surface);border:1px solid rgba(168,85,247,.2);border-radius:18px;padding:16px 10px 14px;display:flex;flex-direction:column;align-items:center;gap:10px;cursor:pointer;transition:transform .15s,box-shadow .15s;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.pro-card:active{transform:scale(.95)}
.pro-card-icon-wrap{width:52px;height:52px;border-radius:16px;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(0,0,0,.25)}
.pro-card-icon-wrap img{width:28px;height:28px;object-fit:contain}
.pro-card-label{font-size:.75rem;font-weight:700;color:var(--color-text-secondary);text-align:center}

/* ── Cards destaque Pro ── */
.pro-highlight-card{display:flex;align-items:center;gap:14px;background:linear-gradient(135deg,rgba(30,27,75,.6),rgba(20,14,40,.7));border:1px solid rgba(168,85,247,.18);border-radius:16px;padding:14px 16px;margin-bottom:10px}
.pro-highlight-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;box-shadow:0 0 8px currentColor}
.pro-highlight-card>div:nth-child(2){flex:1;min-width:0}
.pro-highlight-title{font-size:.9rem;font-weight:800;color:#f8fafc}
.pro-highlight-sub{font-size:.78rem;color:rgba(226,232,240,.65);line-height:1.45;margin-top:3px}
.pro-highlight-btn{flex-shrink:0;background:rgba(168,85,247,.15);border:1px solid rgba(168,85,247,.35);border-radius:10px;color:#c4b5fd;font-size:.75rem;font-weight:700;padding:6px 12px;cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent}

/* ── Light mode Pro ── */
body.light-mode .pro-home-card,body.light-mode .profile-pro-card{background:linear-gradient(135deg,#f5f3ff,#ede9fe);border-color:rgba(124,58,237,.25)}
body.light-mode .pro-home-title,body.light-mode .profile-pro-title{color:#3b0764}
body.light-mode .pro-home-subtitle,body.light-mode .profile-pro-subtitle{color:rgba(76,29,149,.7)}
body.light-mode .pro-hero-banner{background:linear-gradient(135deg,#ede9fe,#ddd6fe)}
body.light-mode .pro-hero-title{color:#3b0764}
body.light-mode .pro-highlight-card{background:rgba(237,233,254,.6);border-color:rgba(124,58,237,.2)}
body.light-mode .pro-highlight-title{color:#3b0764}
body.light-mode .pro-card{background:#f5f3ff;border-color:rgba(124,58,237,.2)}

@media (max-width:720px){.profile-pro-row{flex-direction:column;align-items:flex-start}.pro-home-card{align-items:flex-start}.pro-home-arrow{align-self:flex-end}}

/* Busca de alimentos Pro */
.food-result-item:hover,.food-result-item:active{background:rgba(168,85,247,.08)!important;}
.food-result-item:last-child{border-bottom:none!important;}

/* ── Pro Feature Cards ── */
.pro-feature-card {
    display: flex; align-items: flex-start; gap: 14px;
    margin: 0 16px 10px;
    background: var(--color-bg-surface);
    border: 1.5px solid var(--color-bg-muted);
    border-radius: 16px; padding: 14px 12px;
    cursor: pointer; transition: border-color .2s, background .2s;
    -webkit-tap-highlight-color: transparent;
}
.pro-feature-card:active { background: var(--color-bg-elevated); }
.pro-feature-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.pro-feature-body { flex: 1; min-width: 0; }
.pro-feature-title {
    font-weight: 800; font-size: .88rem;
    color: var(--color-text-primary); margin-bottom: 4px;
}
.pro-feature-desc {
    font-size: .76rem; color: var(--color-text-muted); line-height: 1.5;
}
.pro-feature-arrow {
    font-size: 1.3rem; color: var(--color-text-muted);
    align-self: center; flex-shrink: 0; margin-left: 4px;
}

/* ── Configuração de Notificações ── */
.notif-config-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 12px 0;
    border-bottom: 1px solid var(--color-bg-muted);
}
.notif-config-row:last-of-type { border-bottom: none; }
.notif-config-title { font-weight: 700; font-size: .84rem; color: var(--color-text-primary); margin-bottom: 3px; }
.notif-config-desc  { font-size: .74rem; color: var(--color-text-muted); line-height: 1.4; }

/* Toggle switch */
.notif-toggle { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.notif-toggle input { opacity: 0; width: 0; height: 0; }
.notif-toggle-slider {
    position: absolute; cursor: pointer; inset: 0;
    background: var(--color-bg-muted); border-radius: 24px;
    transition: background .2s;
}
.notif-toggle-slider:before {
    content: ''; position: absolute;
    height: 18px; width: 18px; left: 3px; bottom: 3px;
    background: #fff; border-radius: 50%;
    transition: transform .2s;
}
.notif-toggle input:checked + .notif-toggle-slider { background: var(--color-primary); }
.notif-toggle input:checked + .notif-toggle-slider:before { transform: translateX(18px); }

/* ── Post Detail: FAB some, comment-bar fica fixo e acessível ── */
body.in-post-detail .fab-wrap { display: none !important; }
#comment-bar {
    z-index: 951; /* Acima do FAB */
}

/* ── AdSense Feed ── */
.feed-ad-wrap {
    margin: 8px 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--color-bg-muted);
    background: #fff;
}
.feed-ad-label {
    font-size: .65rem;
    color: #94a3b8;
    text-align: right;
    padding: 4px 10px 0;
    background: #fff;
    text-transform: uppercase;
    letter-spacing: .06em;
}
