/* ═══════════════════════════════════════════════════════════════
   THEOWELLNESS DESIGN SYSTEM - 2026 Edition
   Theowellness – wellness app with Glassmorphism & Micro-animations
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   ───────────────────────────────────────────────────────────────── */
:root {
    /* Brand Colors */
    --vf-green-50: #F0F7F1;
    --vf-green-100: #DCF0DE;
    --vf-green-200: #BBE0BF;
    --vf-green-300: #8CC892;
    --vf-green-400: #5AAD63;
    --vf-green-500: #3D9147;
    --vf-green-600: #2E7537;
    --vf-green-700: #265D2D;
    --vf-green-800: #224B27;
    --vf-green-900: #1D3F22;

    /* Warm Accent */
    --vf-amber-50: #FFFBEB;
    --vf-amber-100: #FEF3C7;
    --vf-amber-200: #FDE68A;
    --vf-amber-300: #FCD34D;
    --vf-amber-400: #FBBF24;
    --vf-amber-500: #F59E0B;

    /* Semantic Colors */
    --vf-success: #3D9147;
    --vf-warning: #E5A30F;
    --vf-error: #DC4343;
    --vf-info: #3B82F6;

    /* Neutrals - Light Theme */
    --vf-white: #FFFFFF;
    --vf-gray-50: #FAFBF9;
    --vf-gray-100: #F3F4F2;
    --vf-gray-200: #E5E7E4;
    --vf-gray-300: #D1D5CF;
    --vf-gray-400: #9CA398;
    --vf-gray-500: #6B7266;
    --vf-gray-600: #545951;
    --vf-gray-700: #3D413A;
    --vf-gray-800: #272A25;
    --vf-gray-900: #141613;

    /* Typography */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Type Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;

    /* Spacing Scale */
    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(39, 42, 37, 0.04);
    --shadow-sm: 0 2px 4px rgba(39, 42, 37, 0.06);
    --shadow-md: 0 4px 12px rgba(39, 42, 37, 0.08);
    --shadow-lg: 0 8px 24px rgba(39, 42, 37, 0.1);
    --shadow-xl: 0 16px 40px rgba(39, 42, 37, 0.12);
    --shadow-glow: 0 0 40px rgba(61, 145, 71, 0.15);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: 20px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;

    /* Safe Areas: prefer native-injected --safe-area-inset-* (WebView); fall back to a
       sensible minimum so the bottom nav never sits under Android system buttons. */
    --safe-top: 16px;
    --safe-bottom: max(var(--safe-area-inset-bottom, 16px), 16px);
    --safe-left: 16px;
    --safe-right: 16px;

    /* Layout */
    --container-max: 480px;
    --header-height: 56px;
    --bottom-nav-height: 56px;
}

/* Dark Theme */
[data-theme="dark"] {
    --vf-gray-50: #0D0F0C;
    --vf-gray-100: #161816;
    --vf-gray-200: #1E211D;
    --vf-gray-300: #2A2D28;
    --vf-gray-400: #4A4F47;
    --vf-gray-500: #6B7266;
    --vf-gray-600: #9CA398;
    --vf-gray-700: #D1D5CF;
    --vf-gray-800: #E5E7E4;
    --vf-gray-900: #F3F4F2;
    --vf-white: #161816;

    --glass-bg: rgba(22, 24, 22, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* Dark Theme - Profile Header Fix */
[data-theme="dark"] .profile-header {
    background: linear-gradient(180deg, rgba(46, 117, 55, 0.15) 0%, transparent 100%);
}

[data-theme="dark"] .avatar {
    background: linear-gradient(135deg, var(--vf-green-600) 0%, var(--vf-green-700) 100%);
    border: 3px solid var(--vf-gray-200);
}

/* Dark Theme - Summary Card Fix */
[data-theme="dark"] .summary-card {
    background: linear-gradient(135deg, rgba(46, 117, 55, 0.2) 0%, rgba(46, 117, 55, 0.1) 100%);
    border-color: var(--vf-green-700);
}

[data-theme="dark"] .summary-card .font-semibold,
[data-theme="dark"] .summary-card #summary-title {
    color: var(--vf-gray-900) !important;
}

[data-theme="dark"] .summary-card #summary-tip,
[data-theme="dark"] .summary-card p[style*="color: var(--vf-green-700)"] {
    color: var(--vf-green-400) !important;
}

/* Dark Theme - Input Fix */
[data-theme="dark"] .input {
    background: var(--vf-gray-200);
    border-color: var(--vf-gray-300);
    color: var(--vf-gray-900);
}

[data-theme="dark"] .input:focus {
    border-color: var(--vf-green-500);
    box-shadow: 0 0 0 4px rgba(61, 145, 71, 0.2);
}

/* Dark Theme - Card Fix */
[data-theme="dark"] .card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .chart-card {
    background: var(--vf-gray-100);
    border-color: var(--vf-gray-300);
}

/* Dark Theme - Settings Item */
[data-theme="dark"] .settings-item {
    background: var(--vf-gray-100);
}

[data-theme="dark"] .settings-item:hover {
    background: var(--vf-gray-200);
}

/* Topbar Logo */
.topbar-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--vf-green-500) 0%, var(--vf-green-600) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-10) var(--space-5);
}
.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    background: var(--vf-gray-100);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vf-gray-400);
}
.empty-state-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--vf-gray-700);
}
.empty-state-text {
    color: var(--vf-gray-500);
    font-size: var(--text-sm);
}

/* Status Pending */
.status-pending {
    color: var(--vf-gray-500);
}
.status-pending .status-dot {
    background: var(--vf-gray-400);
}

/* Grid */
.grid {
    display: grid;
}
.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Button Outline */
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--vf-gray-300);
    color: var(--vf-gray-700);
}
.btn-outline:hover {
    border-color: var(--vf-green-500);
    color: var(--vf-green-600);
    background: var(--vf-green-50);
}

/* ─────────────────────────────────────────────────────────────────
   2. BASE STYLES
   ───────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--vf-gray-800);
    background: var(--vf-gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* App Container */
.app-container {
    position: relative;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--vf-gray-50);
}

/* Screen wrapper */
.screen {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-top: 0; /* var(--safe-top) */
    padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom));
}

.screen--no-nav {
    padding-bottom: var(--safe-bottom);
}

.screen--centered {
    justify-content: center;
    align-items: center;
}

/* Limit browser pull-to-refresh on nutrition (meals) screens */
body.vfl-nutrition .app-container,
body.vfl-nutrition .screen {
    overscroll-behavior-y: contain;
}

/* Page content */
.page-content {
    flex: 1;
    padding: var(--space-4);
    padding-top: var(--space-6);
    padding-bottom: 50px;
}

/* Gradient Background */
.gradient-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(187, 224, 191, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(254, 243, 199, 0.3) 0%, transparent 50%),
        var(--vf-gray-50);
    z-index: -1;
}

[data-theme="dark"] .gradient-bg {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(46, 117, 55, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
        var(--vf-gray-50);
}

/* ─────────────────────────────────────────────────────────────────
   3. TYPOGRAPHY
   ───────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--vf-gray-900);
}

.heading-4xl { font-size: var(--text-4xl); letter-spacing: -0.02em; }
.heading-3xl { font-size: var(--text-3xl); letter-spacing: -0.015em; }
.heading-2xl { font-size: var(--text-2xl); letter-spacing: -0.01em; }
.heading-xl { font-size: var(--text-xl); }
.heading-lg { font-size: var(--text-lg); }

.text-lg { font-size: var(--text-lg); }
.text-base { font-size: var(--text-base); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }

.text-muted { color: var(--vf-gray-500); }
.text-subtle { color: var(--vf-gray-400); }
.text-success { color: var(--vf-success); }
.text-warning { color: var(--vf-warning); }
.text-error { color: var(--vf-error); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

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

/* ─────────────────────────────────────────────────────────────────
   4. BUTTONS
   ───────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    height: 52px;
    padding: 0 var(--space-6);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.btn:hover::before { opacity: 1; }

.btn:active {
    transform: scale(0.97);
    transition-duration: var(--duration-fast);
}

.btn:focus-visible {
    outline: 3px solid var(--vf-green-300);
    outline-offset: 2px;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, var(--vf-green-500) 0%, var(--vf-green-600) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(61, 145, 71, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(61, 145, 71, 0.45);
    transform: translateY(-1px);
}

/* Secondary Button */
.btn-secondary {
    background: var(--vf-white);
    color: var(--vf-gray-700);
    border: 1.5px solid var(--vf-gray-200);
}

.btn-secondary:hover {
    background: var(--vf-gray-50);
    border-color: var(--vf-gray-300);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--vf-green-600);
    border: 2px solid var(--vf-green-400);
}

.btn-outline:hover {
    background: var(--vf-green-50);
    border-color: var(--vf-green-500);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--vf-gray-600);
    height: 44px;
    padding: 0 var(--space-4);
}

.btn-ghost:hover {
    background: var(--vf-gray-100);
    color: var(--vf-gray-800);
}

/* Button Sizes */
.btn-sm {
    height: 40px;
    padding: 0 var(--space-4);
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
}

.btn-lg {
    height: 56px;
    padding: 0 var(--space-8);
    font-size: var(--text-lg);
}

.btn-full { width: 100%; }

/* Icon Button */
.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn-icon.btn-sm { width: 36px; height: 36px; }
.btn-icon.btn-lg { width: 52px; height: 52px; }

.btn-icon svg,
.btn-ghost svg {
    display: block;
    width: 22px;
    height: 22px;
    stroke: currentColor;
    flex-shrink: 0;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading State */
.btn-loading {
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-primary.btn-loading::after {
    border-color: rgba(255,255,255,0.3);
    border-top-color: white;
}

/* ─────────────────────────────────────────────────────────────────
   5. FORM INPUTS
   ───────────────────────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--vf-gray-700);
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--vf-gray-500);
}

.input {
    height: 52px;
    padding: 0 var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--vf-gray-800);
    background: var(--vf-white);
    border: 2px solid var(--vf-gray-200);
    border-radius: var(--radius-lg);
    outline: none;
    transition: all var(--duration-fast) var(--ease-out);
    width: 100%;
}

.input::placeholder {
    color: var(--vf-gray-400);
}

.input:hover:not(:focus) {
    border-color: var(--vf-gray-300);
}

.input:focus {
    border-color: var(--vf-green-500);
    box-shadow: 0 0 0 4px var(--vf-green-100);
}

.input-error {
    border-color: var(--vf-error) !important;
}

.input-error:focus {
    box-shadow: 0 0 0 4px rgba(220, 67, 67, 0.1);
}

.input-success {
    border-color: var(--vf-success) !important;
}

/* Input Wrapper with Icon */
.input-wrapper {
    position: relative;
}

.input-wrapper .input {
    padding-right: 52px;
}

.input-wrapper .input-icon,
.input-wrapper .input-action {
    position: absolute;
    right: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    color: var(--vf-gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast);
}

.input-wrapper .input-action {
    cursor: pointer;
    background: transparent;
    border: none;
}

.input-wrapper .input-action:hover {
    background: var(--vf-gray-100);
    color: var(--vf-gray-600);
}

/* Textarea */
.textarea {
    min-height: 120px;
    padding: var(--space-4);
    resize: vertical;
    line-height: 1.5;
}

/* Select */
.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7266' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 48px;
}

/* ─────────────────────────────────────────────────────────────────
   6. CHECKBOX & TOGGLE
   ───────────────────────────────────────────────────────────────── */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    user-select: none;
}

.checkbox {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--vf-gray-300);
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
    transition: all var(--duration-fast) var(--ease-out);
    flex-shrink: 0;
}

.checkbox:hover { border-color: var(--vf-green-400); }

.checkbox:checked {
    background: var(--vf-green-500);
    border-color: var(--vf-green-500);
}

.checkbox:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

/* Toggle Switch */
.toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    cursor: pointer;
}

.toggle {
    appearance: none;
    width: 52px;
    height: 32px;
    background: var(--vf-gray-300);
    border: none;
    border-radius: var(--radius-full);
    position: relative;
    cursor: pointer;
    transition: background var(--duration-normal) var(--ease-out);
    flex-shrink: 0;
}

.toggle::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    box-shadow: var(--shadow-md);
    transition: transform var(--duration-normal) var(--ease-spring);
}

.toggle:checked { background: var(--vf-green-500); }
.toggle:checked::after { transform: translateX(20px); }

/* ─────────────────────────────────────────────────────────────────
   7. CARDS
   ───────────────────────────────────────────────────────────────── */
.card {
    background: var(--vf-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--vf-gray-200);
    transition: all var(--duration-normal) var(--ease-out);
}

.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
}

.card-elevated {
    border: none;
    box-shadow: var(--shadow-lg);
}

.card-interactive {
    cursor: pointer;
}

.card-interactive:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.card-interactive:active {
    transform: translateY(0);
    transition-duration: var(--duration-fast);
}

.card-body { padding: var(--space-5); }
.card-header {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--vf-gray-100);
}
.card-footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--vf-gray-100);
    background: var(--vf-gray-50);
}

.card-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--vf-gray-900);
    margin-bottom: var(--space-1);
}

.card-description {
    font-size: var(--text-sm);
    color: var(--vf-gray-500);
}

/* ─────────────────────────────────────────────────────────────────
   8. BADGES & TAGS
   ───────────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    min-height: 28px;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    white-space: nowrap;
    line-height: 1.2;
    flex-shrink: 0;
}

.badge-neutral { background: var(--vf-gray-100); color: var(--vf-gray-600); }
.badge-success { background: var(--vf-green-100); color: var(--vf-green-700); }
.badge-warning { background: var(--vf-amber-100); color: #92620E; }
.badge-error { background: #FDECEC; color: #B33A3A; }
.badge-info { background: #EFF6FF; color: #2563EB; }

/* Dark theme badges */
[data-theme="dark"] .badge-success {
    background: rgba(61, 145, 71, 0.2);
    color: var(--vf-green-400);
}
[data-theme="dark"] .badge-neutral {
    background: var(--vf-gray-200);
    color: var(--vf-gray-700);
}
[data-theme="dark"] .badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--vf-amber-400);
}
[data-theme="dark"] .badge-error {
    background: rgba(220, 67, 67, 0.2);
    color: #F87171;
}
[data-theme="dark"] .badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
}

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    height: 36px;
    padding: 0 var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    background: var(--vf-gray-100);
    color: var(--vf-gray-700);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
}

.tag-primary { background: var(--vf-green-100); color: var(--vf-green-700); }
.tag-amber { background: var(--vf-amber-100); color: #92620E; }

.tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background var(--duration-fast);
    border: none;
    padding: 0;
    margin-left: var(--space-1);
}

.tag-remove:hover { background: rgba(0,0,0,0.1); }

/* ─────────────────────────────────────────────────────────────────
   9. STATUS INDICATORS
   ───────────────────────────────────────────────────────────────── */
.status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-lg);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.status-good { background: var(--vf-green-50); color: var(--vf-green-700); }
.status-good .status-dot { background: var(--vf-green-500); }

.status-moderate { background: var(--vf-amber-50); color: #92620E; }
.status-moderate .status-dot { background: var(--vf-amber-500); }

.status-attention { background: #FEF2F2; color: #B33A3A; }
.status-attention .status-dot { background: var(--vf-error); }

/* ─────────────────────────────────────────────────────────────────
   10. AVATARS
   ───────────────────────────────────────────────────────────────── */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vf-green-100) 0%, var(--vf-green-200) 100%);
    color: var(--vf-green-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-lg);
    overflow: hidden;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-xs { width: 28px; height: 28px; font-size: var(--text-xs); }
.avatar-sm { width: 36px; height: 36px; font-size: var(--text-sm); }
.avatar-lg { width: 64px; height: 64px; font-size: var(--text-xl); }
.avatar-xl { width: 96px; height: 96px; font-size: var(--text-3xl); }

.avatar-editable {
    position: relative;
    cursor: pointer;
}

.avatar-editable::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.avatar-editable:hover::after { opacity: 1; }

.avatar-edit-icon {
    position: absolute;
    z-index: 1;
    color: white;
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.avatar-editable:hover .avatar-edit-icon { opacity: 1; }

/* ─────────────────────────────────────────────────────────────────
   11. NAVIGATION
   ───────────────────────────────────────────────────────────────── */
/* Top Bar */
.topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: var(--space-2);
    height: var(--header-height);
    padding: 0 var(--space-4);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--vf-gray-900);
    justify-self: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0 var(--space-1);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.topbar-action {
    color: var(--vf-green-600);
    font-weight: 600;
    font-size: var(--text-base);
}

/* Topbar Left Group */
.topbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* Navigation Buttons - Back & Home */
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    height: 40px;
    padding: 0 var(--space-3);
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--vf-gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    justify-self: end;
    text-decoration: none;
}

.nav-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-btn:hover {
    background: var(--vf-gray-100);
    color: var(--vf-gray-800);
}

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

/* Back Button - Icon Only with Animation */
.nav-btn-back-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-lg);
    color: var(--vf-gray-500);
    position: relative;
    overflow: hidden;
}

.nav-btn-back-icon svg {
    width: 22px;
    height: 22px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn-back-icon:hover {
    background: var(--vf-gray-100);
    color: var(--vf-gray-700);
}

.nav-btn-back-icon:hover svg {
    transform: translateX(-3px);
}

.nav-btn-back-icon:active svg {
    transform: translateX(-5px) scale(0.9);
}

/* Nav Button Variants */
.nav-btn-back {
    margin-left: calc(var(--space-2) * -1);
}

.nav-btn-home {
    color: var(--vf-green-600);
}

.nav-btn-home:hover {
    background: var(--vf-green-50);
    color: var(--vf-green-700);
}

/* Dark Theme Nav Buttons */
[data-theme="dark"] .nav-btn {
    color: var(--vf-gray-700);
}

[data-theme="dark"] .nav-btn-back-icon {
    color: var(--vf-gray-600);
}

[data-theme="dark"] .nav-btn-back-icon:hover {
    background: var(--vf-gray-200);
    color: var(--vf-gray-800);
}

[data-theme="dark"] .nav-btn:hover {
    background: var(--vf-gray-200);
    color: var(--vf-gray-900);
}

[data-theme="dark"] .nav-btn-home {
    color: var(--vf-green-400);
}

[data-theme="dark"] .nav-btn-home:hover {
    background: rgba(61, 145, 71, 0.15);
    color: var(--vf-green-400);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--container-max);
    /* Visible nav row + system gesture / button area below */
    min-height: calc(var(--bottom-nav-height) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    box-sizing: border-box;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: stretch;
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: var(--bottom-nav-height);
    padding: 6px var(--space-2) 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--vf-gray-400);
    transition: all var(--duration-fast);
    position: relative;
    text-decoration: none;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 3px;
    background: var(--vf-green-500);
    border-radius: 0 0 3px 3px;
    transition: transform var(--duration-normal) var(--ease-spring);
}

.nav-item:hover { color: var(--vf-gray-600); }
.nav-item.active { color: var(--vf-green-600); }
.nav-item.active::before { transform: translateX(-50%) scaleX(1); }

.nav-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    transition: transform var(--duration-fast) var(--ease-spring);
}

.nav-item:active .nav-icon { transform: scale(0.9); }

.nav-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* FAB */
.fab {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + var(--space-4));
    right: var(--space-4);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vf-green-500) 0%, var(--vf-green-600) 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(61, 145, 71, 0.4);
    transition: all var(--duration-normal) var(--ease-spring);
    z-index: 50;
}

.fab:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 28px rgba(61, 145, 71, 0.5);
}

.fab:active { transform: scale(0.95); }

/* Dev Admin Pill - Only visible in dev mode for admins */
.dev-admin-pill {
    position: fixed;
    bottom: var(--space-3);
    left: var(--space-3);
    padding: 6px 12px 6px 10px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.85);
    color: white;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.6;
    transition: all 0.2s ease;
    z-index: 9999;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.dev-admin-pill:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}
.dev-admin-pill:active {
    transform: scale(0.95);
    opacity: 1;
}

/* ─────────────────────────────────────────────────────────────────
   12. MODALS & OVERLAYS
   ───────────────────────────────────────────────────────────────── */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 22, 19, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    z-index: 200;
}

.overlay.active { opacity: 1; visibility: visible; }

.modal {
    background: var(--vf-white);
    border-radius: var(--radius-2xl);
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--duration-normal) var(--ease-spring);
}

.overlay.active .modal { transform: scale(1) translateY(0); }

.modal-header {
    padding: var(--space-6) var(--space-5) var(--space-4);
    text-align: center;
}

.modal-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
}

.modal-body { padding: var(--space-4) var(--space-5); }

.modal-footer {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5) var(--space-5);
}

.modal-footer .btn { flex: 1; }

/* Confirm Modal */
.confirm-modal {
    max-width: 340px;
    text-align: center;
}

.confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(220, 67, 67, 0.1), rgba(220, 67, 67, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: confirmIconPulse 2s ease-in-out infinite;
}

.confirm-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--vf-error);
}

.confirm-icon.warning {
    background: linear-gradient(135deg, rgba(229, 163, 15, 0.1), rgba(229, 163, 15, 0.2));
}

.confirm-icon.warning svg {
    stroke: var(--vf-warning);
}

.confirm-icon.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.2));
}

.confirm-icon.info svg {
    stroke: var(--vf-info);
}

@keyframes confirmIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.confirm-message {
    color: var(--vf-gray-600);
    font-size: var(--text-base);
    line-height: 1.5;
    margin: 0;
}

.btn-danger {
    background: linear-gradient(135deg, var(--vf-error), #c43838);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c43838, #a32e2e);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 67, 67, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--vf-gray-100);
    color: var(--vf-gray-700);
    border: 1px solid var(--vf-gray-200);
}

.btn-secondary:hover {
    background: var(--vf-gray-200);
}

.btn-warning {
    background: linear-gradient(135deg, var(--vf-warning), #d49109);
    color: white;
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d49109, #b87a07);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 163, 15, 0.3);
}

/* Dark theme confirm modal */
[data-theme="dark"] .confirm-modal {
    background: var(--vf-gray-800);
}

[data-theme="dark"] .confirm-icon {
    background: linear-gradient(135deg, rgba(220, 67, 67, 0.15), rgba(220, 67, 67, 0.25));
}

[data-theme="dark"] .confirm-message {
    color: var(--vf-gray-400);
}

[data-theme="dark"] .btn-secondary {
    background: var(--vf-gray-700);
    color: var(--vf-gray-200);
    border-color: var(--vf-gray-600);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--vf-gray-600);
}

/* Bottom Sheet */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: var(--container-max);
    background: var(--vf-white);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    padding: var(--space-4) var(--space-4) calc(var(--space-6) + var(--safe-bottom));
    max-height: 90vh;
    overflow: auto;
    transition: transform var(--duration-slow) var(--ease-out);
    z-index: 201;
}

.overlay.active .bottom-sheet { transform: translateX(-50%) translateY(0); }

.sheet-handle {
    width: 40px;
    height: 5px;
    background: var(--vf-gray-300);
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-5);
}

.sheet-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--space-5);
}

.sheet-option {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    width: 100%;
    padding: var(--space-4) var(--space-5);
    background: var(--vf-gray-50);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--vf-gray-800);
    transition: all var(--duration-fast);
    margin-bottom: var(--space-3);
}

.sheet-option:hover { background: var(--vf-gray-100); }
.sheet-option:active { transform: scale(0.98); }

.sheet-option-danger { color: var(--vf-red-500); }
.sheet-option-danger .sheet-option-icon { color: var(--vf-red-500); }
.sheet-option-danger:hover { background: var(--vf-red-50); }

.sheet-option-icon {
    width: 24px;
    height: 24px;
    color: var(--vf-gray-500);
}

/* ─────────────────────────────────────────────────────────────────
   13. TOAST NOTIFICATIONS
   ───────────────────────────────────────────────────────────────── */
.toast {
    position: fixed;
    top: calc(var(--safe-top) + var(--space-4));
    bottom: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--vf-gray-800);
    color: white;
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    z-index: 9999;
    pointer-events: none;
    max-width: calc(100% - var(--space-8));
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-success { background: var(--vf-green-600); }
.toast-error { background: var(--vf-error); }
.toast-warning { background: var(--vf-warning); }

/* ─────────────────────────────────────────────────────────────────
   14. LOADING STATES
   ───────────────────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--vf-gray-100) 0%,
        var(--vf-gray-50) 50%,
        var(--vf-gray-100) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

.skeleton-text { height: 16px; margin-bottom: var(--space-2); }
.skeleton-text-sm { height: 12px; width: 60%; }
.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }
.skeleton-card { height: 140px; border-radius: var(--radius-xl); }
.skeleton-image { aspect-ratio: 4/3; border-radius: var(--radius-lg); }

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--vf-gray-200);
    border-top-color: var(--vf-green-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-sm { width: 20px; height: 20px; border-width: 2.5px; }
.spinner-lg { width: 40px; height: 40px; border-width: 4px; }

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(250, 251, 249, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    z-index: 500;
}

.loading-text {
    font-weight: 500;
    color: var(--vf-gray-600);
}

/* ─────────────────────────────────────────────────────────────────
   15. FOOD ENTRY CARD (специфично за хранене модула)
   ───────────────────────────────────────────────────────────────── */
.food-card {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--vf-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--vf-gray-200);
    transition: all var(--duration-normal) var(--ease-out);
}

.food-card:hover {
    box-shadow: var(--shadow-md);
}

.food-card-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    background: var(--vf-gray-100);
}

.food-card-content {
    flex: 1;
    min-width: 0;
}

.food-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.food-card-time {
    font-size: var(--text-xs);
    color: var(--vf-gray-500);
    font-weight: 500;
}

.food-card-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--vf-gray-900);
    margin-bottom: var(--space-1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.food-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.food-card-tags .tag {
    height: 28px;
    padding: 0 var(--space-3);
    font-size: var(--text-xs);
}

/* Admin Comment */
.admin-comment {
    margin-top: var(--space-3);
    padding: var(--space-3);
    background: var(--vf-gray-50);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--vf-green-500);
}

.admin-comment-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--vf-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1);
}

.admin-comment-text {
    font-size: var(--text-sm);
    color: var(--vf-gray-700);
}

/* Food Comment - Status-based colors */
.food-comment {
    margin-top: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--vf-gray-400);
    background: linear-gradient(135deg, var(--vf-gray-100), var(--vf-gray-50));
}

.food-comment-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--vf-gray-600);
    margin-bottom: 0.25rem;
}

.food-comment-text {
    font-size: 0.875rem;
    color: var(--vf-gray-700);
    margin: 0;
}

/* Good status - Green */
.food-comment--good {
    background: linear-gradient(135deg, var(--vf-green-50), var(--vf-gray-50));
    border-left-color: var(--vf-green-500);
}

.food-comment--good .food-comment-label {
    color: var(--vf-green-700);
}

/* Moderate status - Yellow/Amber */
.food-comment--moderate {
    background: linear-gradient(135deg, var(--vf-amber-50), var(--vf-gray-50));
    border-left-color: var(--vf-amber-500);
}

.food-comment--moderate .food-comment-label {
    color: #92620E;
}

/* Problem status - Red */
.food-comment--problem {
    background: linear-gradient(135deg, #FEF2F2, var(--vf-gray-50));
    border-left-color: var(--vf-error);
}

.food-comment--problem .food-comment-label {
    color: #B33A3A;
}

/* Pending status - Gray */
.food-comment--pending {
    background: linear-gradient(135deg, var(--vf-gray-100), var(--vf-gray-50));
    border-left-color: var(--vf-gray-400);
}

.food-comment--pending .food-comment-label {
    color: var(--vf-gray-600);
}

/* Dark theme food comment */
[data-theme="dark"] .food-comment {
    background: linear-gradient(135deg, var(--vf-gray-200), var(--vf-gray-100));
}

[data-theme="dark"] .food-comment--good {
    background: linear-gradient(135deg, rgba(61, 145, 71, 0.15), var(--vf-gray-100));
}

[data-theme="dark"] .food-comment--good .food-comment-label {
    color: var(--vf-green-400);
}

[data-theme="dark"] .food-comment--moderate {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), var(--vf-gray-100));
}

[data-theme="dark"] .food-comment--moderate .food-comment-label {
    color: var(--vf-amber-400);
}

[data-theme="dark"] .food-comment--problem {
    background: linear-gradient(135deg, rgba(220, 67, 67, 0.15), var(--vf-gray-100));
}

[data-theme="dark"] .food-comment--problem .food-comment-label {
    color: #F87171;
}

[data-theme="dark"] .food-comment--pending {
    background: linear-gradient(135deg, var(--vf-gray-200), var(--vf-gray-100));
}

[data-theme="dark"] .food-comment-text {
    color: var(--vf-gray-800);
}

/* ─────────────────────────────────────────────────────────────────
   16. PHOTO UPLOAD
   ───────────────────────────────────────────────────────────────── */
.photo-upload {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--vf-gray-100);
    border: 2px dashed var(--vf-gray-300);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    overflow: hidden;
}

.photo-upload:hover {
    border-color: var(--vf-green-400);
    background: var(--vf-green-50);
}

.photo-upload.has-image {
    border: none;
}

.photo-upload-icon {
    width: 48px;
    height: 48px;
    color: var(--vf-gray-400);
    transition: all var(--duration-normal);
}

.photo-upload:hover .photo-upload-icon {
    color: var(--vf-green-500);
    transform: scale(1.1);
}

.photo-upload-text {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--vf-gray-500);
}

.photo-upload-hint {
    font-size: var(--text-xs);
    color: var(--vf-gray-400);
}

.photo-upload-preview {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    background: var(--vf-gray-100);
    border-radius: inherit;
}

.photo-upload-remove {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.7);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--duration-fast);
    backdrop-filter: blur(4px);
}

.photo-upload:hover .photo-upload-remove,
.photo-upload.has-image .photo-upload-remove {
    opacity: 1;
}

.photo-upload-remove:hover {
    background: rgba(220, 67, 67, 0.9);
    transform: scale(1.1);
}

.photo-upload-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--vf-gray-100);
}

/* Enhanced Photo Upload - Golden Ratio */
.photo-upload-enhanced {
    position: relative;
    width: 100%;
    aspect-ratio: 1.618 / 1;
    background: linear-gradient(135deg, var(--vf-gray-100) 0%, var(--vf-gray-50) 100%);
    border: 2px dashed var(--vf-gray-300);
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    overflow: hidden;
}

.photo-upload-enhanced:hover {
    border-color: var(--vf-green-400);
    background: linear-gradient(135deg, var(--vf-green-50) 0%, var(--vf-gray-50) 100%);
}

.photo-upload-enhanced.has-image {
    border: none;
    background: var(--vf-gray-100);
    overflow: hidden;
}

.photo-upload-enhanced.has-image .photo-upload-preview {
    border-radius: var(--radius-2xl);
    object-fit: cover;
}

/* Show remove button on enhanced photo upload */
.photo-upload-enhanced .photo-upload-remove {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.7);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    z-index: 10;
    transition: all var(--duration-fast);
    backdrop-filter: blur(4px);
}

.photo-upload-enhanced .photo-upload-remove:hover {
    background: rgba(220, 67, 67, 0.95);
    transform: scale(1.1);
}

.photo-upload-enhanced .photo-upload-remove:active {
    transform: scale(0.95);
}

.photo-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-4);
}

.upload-icon-circle {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--vf-green-100) 0%, var(--vf-green-50) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
    color: var(--vf-green-600);
}

.upload-icon-circle svg {
    width: 28px;
    height: 28px;
}

.upload-text {
    text-align: center;
}

.upload-text-main {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--vf-gray-700);
    margin-bottom: 4px;
}

.upload-text-hint {
    font-size: 0.875rem;
    color: var(--vf-gray-500);
}

.upload-text-size {
    font-size: 0.75rem;
    color: var(--vf-gray-400);
    margin-top: 4px;
}

/* Upload Progress Bar - Beautiful Modern Design */
.vfl-upload-progress-modern {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 255, 0.98) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.vfl-upload-progress-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    box-sizing: border-box;
}

.vfl-upload-progress-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
    max-width: 240px;
    width: 100%;
    box-sizing: border-box;
}

.vfl-upload-progress-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vfl-upload-progress-icon {
    position: relative;
    z-index: 2;
    width: 32px;
    height: 32px;
    color: var(--vf-green-500);
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(61, 145, 71, 0.2));
}

.vfl-upload-progress-icon.complete {
    color: var(--vf-green-500);
    transform: scale(1.15);
    filter: drop-shadow(0 4px 12px rgba(61, 145, 71, 0.3));
}

.vfl-upload-progress-icon.error {
    color: #ef4444;
    filter: drop-shadow(0 2px 8px rgba(239, 68, 68, 0.2));
}

.vfl-upload-progress-icon svg {
    width: 100%;
    height: 100%;
}

.vfl-upload-progress-ring {
    position: absolute;
    inset: 0;
    z-index: 1;
    filter: drop-shadow(0 2px 12px rgba(61, 145, 71, 0.15));
}

.vfl-upload-progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.vfl-upload-progress-ring .progress-ring-bg {
    stroke: var(--vf-gray-200);
    opacity: 0.25;
}

.vfl-upload-progress-ring .progress-ring-fill {
    stroke: url(#progressGradient);
    stroke-dasharray: 175.9;
    stroke-dashoffset: 175.9;
    transition: stroke-dashoffset 0.15s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(61, 145, 71, 0.5));
}

.vfl-upload-progress-ring .progress-ring-fill.complete {
    stroke: var(--vf-green-500);
    stroke-dashoffset: 0;
    animation: progressCompletePulse 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.vfl-upload-progress-ring .progress-ring-fill.error {
    stroke: #ef4444;
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.5));
}

/* Add gradient definition */
.vfl-upload-progress-ring svg {
    --progress-gradient: linear-gradient(135deg, #3D9147 0%, #22c55e 100%);
}

.vfl-upload-progress-ring svg defs {
    display: none;
}

.vfl-upload-progress-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    width: 100%;
    flex-shrink: 0;
}

.vfl-upload-progress-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--vf-gray-900);
    margin-bottom: 0;
    letter-spacing: -0.1px;
    line-height: 1.3;
}

.vfl-upload-progress-subtitle {
    font-size: 0.8125rem;
    color: var(--vf-gray-500);
    transition: color 0.3s ease;
    font-weight: 500;
    line-height: 1.3;
}

.vfl-upload-progress-subtitle.error {
    color: #ef4444;
    font-weight: 600;
}

.vfl-upload-progress-percent {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vf-green-500);
    margin-top: var(--space-2);
    letter-spacing: -0.5px;
    line-height: 1.1;
    padding-bottom: 2px; /* prevent visual clipping at card bottom */
    text-shadow: 0 2px 8px rgba(61, 145, 71, 0.15);
}

@keyframes progressCompletePulse {
    0% {
        stroke-width: 3;
        filter: drop-shadow(0 0 6px rgba(61, 145, 71, 0.5));
        transform: scale(1);
    }
    50% {
        stroke-width: 4;
        filter: drop-shadow(0 0 10px rgba(61, 145, 71, 0.7));
        transform: scale(1.02);
    }
    100% {
        stroke-width: 3;
        filter: drop-shadow(0 0 6px rgba(61, 145, 71, 0.5));
        transform: scale(1);
    }
}

.photo-upload-enhanced.uploading {
    pointer-events: none;
    position: relative;
}

.vfl-upload-progress-modern.fade-out {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ─────────────────────────────────────────────────────────────────
   17. DATA WIDGETS (за Google Sheets интеграция)
   ───────────────────────────────────────────────────────────────── */
.widget-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.widget {
    background: var(--vf-white);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    border: 1px solid var(--vf-gray-200);
    text-align: center;
}

.widget-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto var(--space-3);
    background: var(--vf-green-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vf-green-600);
}

.widget-value {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--vf-gray-900);
    margin-bottom: var(--space-1);
}

.widget-label {
    font-size: var(--text-sm);
    color: var(--vf-gray-500);
}

.widget-trend {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    font-weight: 600;
    margin-top: var(--space-2);
}

.widget-trend.up { color: var(--vf-success); }
.widget-trend.down { color: var(--vf-error); }

/* ─────────────────────────────────────────────────────────────────
   18. SECTION HEADERS
   ───────────────────────────────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--vf-gray-900);
}

.section-action {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--vf-green-600);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* ─────────────────────────────────────────────────────────────────
   19. EMPTY STATES
   ───────────────────────────────────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-12) var(--space-6);
    text-align: center;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-5);
    color: var(--vf-gray-300);
}

.empty-state-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--vf-gray-700);
    margin-bottom: var(--space-2);
}

.empty-state-text {
    font-size: var(--text-sm);
    color: var(--vf-gray-500);
    margin-bottom: var(--space-6);
    max-width: 280px;
}

/* ─────────────────────────────────────────────────────────────────
   20. LIST ITEMS
   ───────────────────────────────────────────────────────────────── */
.list-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--vf-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--vf-gray-200);
    transition: all var(--duration-fast);
}

.list-item:hover {
    background: var(--vf-gray-50);
}

.list-item + .list-item {
    margin-top: var(--space-3);
}

.list-item-icon {
    width: 44px;
    height: 44px;
    background: var(--vf-gray-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vf-gray-500);
    flex-shrink: 0;
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-weight: 600;
    color: var(--vf-gray-800);
    margin-bottom: var(--space-1);
}

.list-item-subtitle {
    font-size: var(--text-sm);
    color: var(--vf-gray-500);
}

.list-item-action {
    color: var(--vf-gray-400);
}

/* ─────────────────────────────────────────────────────────────────
   21. DIVIDER
   ───────────────────────────────────────────────────────────────── */
.divider {
    height: 1px;
    background: var(--vf-gray-200);
    margin: var(--space-6) 0;
}

.divider-text {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    color: var(--vf-gray-400);
    font-size: var(--text-sm);
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--vf-gray-200);
}

/* ─────────────────────────────────────────────────────────────────
   22. UTILITIES
   ───────────────────────────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }

.m-0 { margin: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.rounded-full { border-radius: var(--radius-full); }
.overflow-hidden { overflow: hidden; }

.hidden { display: none !important; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }

/* ─────────────────────────────────────────────────────────────────
   23. ANIMATIONS
   ───────────────────────────────────────────────────────────────── */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Animation utility classes */
.animate-fade-in { animation: fadeIn 0.3s var(--ease-out) forwards; }
.animate-fade-in-up { animation: fadeInUp 0.4s var(--ease-out) forwards; }
.animate-fade-in-down { animation: fadeInDown 0.4s var(--ease-out) forwards; }
.animate-scale-in { animation: scaleIn 0.3s var(--ease-spring) forwards; }
.animate-slide-in-right { animation: slideInRight 0.4s var(--ease-out) forwards; }
.animate-slide-in-left { animation: slideInLeft 0.4s var(--ease-out) forwards; }
.animate-bounce { animation: bounce 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* Staggered animation delays */
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }
.delay-5 { animation-delay: 0.25s; }
.delay-6 { animation-delay: 0.3s; }

/* AUTH PAGE ANIMATIONS - run once then stay visible */
.auth-logo {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.6s var(--ease-out) forwards;
}
.auth-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s 0.1s var(--ease-out) forwards;
}
/* After animation completes, disable further animations */
.auth-logo.animated,
.auth-card.animated {
    opacity: 1;
    transform: none;
    animation: none;
}

/* PAGE LOADING INDICATOR - subtle top bar */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.page-loader.active {
    opacity: 1;
}
.page-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, transparent, var(--vf-green-500), var(--vf-green-400), transparent);
    animation: pageLoaderSlide 1.2s ease-in-out infinite;
}
@keyframes pageLoaderSlide {
    0% { left: -30%; }
    100% { left: 100%; }
}

/* ─────────────────────────────────────────────────────────────────
   24. RESPONSIVE
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 374px) {
    :root {
        --text-4xl: 2rem;
        --text-3xl: 1.75rem;
    }

    .widget-grid {
        gap: var(--space-3);
    }

    .widget {
        padding: var(--space-4);
    }

    .widget-value {
        font-size: var(--text-xl);
    }
}

@media (min-width: 481px) {
    .app-container {
        box-shadow: 0 0 60px rgba(0,0,0,0.1);
    }

    body {
        background: var(--vf-gray-100);
    }

    .bottom-nav {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
}

/* ─────────────────────────────────────────────────────────────────
   25. ICONS (базови стилове)
   ───────────────────────────────────────────────────────────────── */
.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }

/* ─────────────────────────────────────────────────────────────────
   32. GOLDEN RATIO UTILITIES
   ───────────────────────────────────────────────────────────────── */
.aspect-golden {
    aspect-ratio: 1.618 / 1;
}

.grid-golden {
    display: grid;
    grid-template-columns: 61.8% 38.2%;
    gap: var(--space-4);
}

.grid-golden-reverse {
    display: grid;
    grid-template-columns: 38.2% 61.8%;
    gap: var(--space-4);
}

/* ─────────────────────────────────────────────────────────────────
   33. ENHANCED FOOD CARD V2
   ───────────────────────────────────────────────────────────────── */
.food-card-v2 {
    background: var(--vf-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--vf-gray-200);
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
}

.food-card-v2:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.food-card-v2:active {
    transform: translateY(0);
}

.food-card-v2-image {
    width: 100%;
    min-height: 200px;
    max-height: 400px;
    height: auto;
    object-fit: contain;
    object-position: center;
    background: var(--vf-gray-100);
    border-radius: var(--radius-lg);
}

.food-card-v2-no-image {
    width: 100%;
    min-height: 200px;
    max-height: 400px;
    height: 250px; /* Default height for placeholder */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--vf-gray-50) 0%, var(--vf-gray-100) 50%, var(--vf-gray-50) 100%);
    color: var(--vf-gray-300);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}
.food-card-v2-no-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
}
.food-card-v2-no-image svg {
    position: relative;
    z-index: 1;
    opacity: 0.6;
    transition: all 0.3s ease;
}
.food-card-v2:hover .food-card-v2-no-image svg {
    opacity: 0.8;
    transform: scale(1.05);
}

.food-detail-no-image {
    width: 100%;
    min-height: 250px;
    max-height: 500px;
    height: 300px; /* Default height for placeholder */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--vf-gray-50) 0%, var(--vf-gray-100) 50%, var(--vf-gray-50) 100%);
    color: var(--vf-gray-300);
    border-radius: var(--vf-radius-xl);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.food-detail-no-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
}
.food-detail-no-image svg {
    position: relative;
    z-index: 1;
    opacity: 0.5;
    margin-bottom: 1.25rem;
}

.vfl-admin-card-no-image {
    width: 100%;
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    background: var(--vf-gray-100);
    color: var(--vf-gray-400);
}

.vfl-admin-card-no-image svg {
    opacity: 0.5;
}

.vfl-admin-card-no-image span {
    font-size: var(--text-sm);
}

.food-card-v2-body {
    padding: var(--space-4);
}

/* ─────────────────────────────────────────────────────────────────
   34. INGREDIENT BADGES
   ───────────────────────────────────────────────────────────────── */
.ingredient-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    background: var(--vf-gray-100);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--vf-gray-600);
}

.ingredient-badge .emoji {
    font-size: 12px;
}

/* ─────────────────────────────────────────────────────────────────
   35. STATUS BADGES V2
   ───────────────────────────────────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}

.status-badge-good {
    background: var(--vf-green-100);
    color: var(--vf-green-700);
}

.status-badge-moderate {
    background: var(--vf-amber-100);
    color: #92620E;
}

.status-badge-problem {
    background: #FEF2F2;
    color: #B33A3A;
}

.status-badge-pending {
    background: var(--vf-gray-100);
    color: var(--vf-gray-500);
}

.status-badge .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.status-badge-good .status-dot { background: var(--vf-green-500); }
.status-badge-moderate .status-dot { background: var(--vf-amber-500); }
.status-badge-problem .status-dot { background: var(--vf-error); }
.status-badge-pending .status-dot { background: var(--vf-gray-400); }

/* Problem Status (alias for attention) */
.status-problem { background: #FEF2F2; color: #B33A3A; }
.status-problem .status-dot { background: var(--vf-error); }

/* ─────────────────────────────────────────────────────────────────
   36. COMMENT CARD
   ───────────────────────────────────────────────────────────────── */
.comment-card {
    padding: var(--space-4);
    background: linear-gradient(135deg, var(--vf-green-50) 0%, var(--vf-gray-50) 100%);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--vf-green-500);
}

.comment-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.comment-card-header svg {
    width: 16px;
    height: 16px;
    color: var(--vf-green-600);
}

.comment-card-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vf-green-700);
}

.comment-card-text {
    font-size: var(--text-sm);
    color: var(--vf-gray-700);
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────
   37. FLEX UTILITIES (expanded)
   ───────────────────────────────────────────────────────────────── */
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }

/* ─────────────────────────────────────────────────────────────────
   38. SLIDE MENU - Beautiful animated navigation
   ───────────────────────────────────────────────────────────────── */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 22, 19, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 300;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.slide-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: var(--vf-white);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 301;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    will-change: transform;
    -webkit-overflow-scrolling: touch;
}

.menu-overlay.active .slide-menu {
    transform: translateX(0);
}

.menu-header {
    padding: calc(var(--safe-top) + var(--space-6)) var(--space-5) var(--space-5);
    background: linear-gradient(135deg, var(--vf-green-500) 0%, var(--vf-green-600) 100%);
    color: white;
}

.menu-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.menu-logo-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-logo-text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
}

.menu-user {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.menu-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.menu-user-info {
    flex: 1;
}

.menu-user-name {
    font-weight: 600;
    font-size: var(--text-base);
}

.menu-user-email {
    font-size: var(--text-sm);
    opacity: 0.8;
}

.menu-nav {
    flex: 1;
    padding: var(--space-4) 0;
}

.menu-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    color: var(--vf-gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--duration-fast);
    position: relative;
    overflow: hidden;
}

.menu-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--vf-green-500);
    transform: scaleY(0);
    transition: transform var(--duration-fast) var(--ease-out);
}

.menu-nav-item:hover {
    background: var(--vf-gray-50);
    color: var(--vf-green-600);
}

.menu-nav-item:hover::before {
    transform: scaleY(1);
}

.menu-nav-item.active {
    background: var(--vf-green-50);
    color: var(--vf-green-600);
}

.menu-nav-item.active::before {
    transform: scaleY(1);
}

.menu-nav-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.menu-nav-label {
    flex: 1;
}

.menu-nav-badge {
    padding: var(--space-1) var(--space-2);
    background: var(--vf-green-100);
    color: var(--vf-green-700);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.menu-divider {
    height: 1px;
    background: var(--vf-gray-200);
    margin: var(--space-3) var(--space-5);
}

.menu-footer {
    padding: var(--space-4) var(--space-5) calc(var(--safe-bottom) + var(--space-5));
    border-top: 1px solid var(--vf-gray-200);
}

.menu-footer-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    color: var(--vf-gray-500);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: color var(--duration-fast);
}

.menu-footer-item:hover {
    color: var(--vf-gray-700);
}

.menu-footer-item svg {
    width: 18px;
    height: 18px;
}

/* Menu trigger button */
.menu-trigger {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--vf-gray-600);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast);
}

.menu-trigger:hover {
    background: var(--vf-gray-100);
    color: var(--vf-gray-800);
}

.menu-trigger:active {
    transform: scale(0.95);
}

/* Hamburger animation */
.hamburger {
    width: 20px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: all var(--duration-normal) var(--ease-out);
    transform-origin: center;
}

/* Dark mode menu */
[data-theme="dark"] .slide-menu {
    background: var(--vf-gray-100);
}

[data-theme="dark"] .menu-nav-item:hover {
    background: var(--vf-gray-200);
}

[data-theme="dark"] .menu-nav-item.active {
    background: rgba(61, 145, 71, 0.15);
}

[data-theme="dark"] .menu-divider,
[data-theme="dark"] .menu-footer {
    border-color: var(--vf-gray-300);
}

/* ─────────────────────────────────────────────────────────────────
   26. SOCIAL LOGIN BUTTONS
   ───────────────────────────────────────────────────────────────── */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    width: 100%;
    height: 52px;
    background: var(--vf-white);
    border: 2px solid var(--vf-gray-200);
    border-radius: var(--radius-lg);
    font-weight: 600;
    color: var(--vf-gray-700);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.btn-social:hover {
    background: var(--vf-gray-50);
    border-color: var(--vf-gray-300);
}

.btn-social img,
.btn-social svg {
    width: 20px;
    height: 20px;
}

/* ─────────────────────────────────────────────────────────────────
   27. BIOMETRIC LOGIN
   ───────────────────────────────────────────────────────────────── */
.biometric-btn {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-xl);
    background: var(--vf-white);
    border: 2px solid var(--vf-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--vf-gray-700);
}

.biometric-btn:hover {
    border-color: var(--vf-green-400);
    background: var(--vf-green-50);
    color: var(--vf-green-700);
}

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

.biometric-btn svg {
    width: 24px;
    height: 24px;
    color: var(--vf-green-600);
    flex-shrink: 0;
}

.biometric-btn span {
    color: inherit;
}

/* ─────────────────────────────────────────────────────────────────
   PASSWORD STRENGTH INDICATOR
   ───────────────────────────────────────────────────────────────── */
.password-strength {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.password-strength-bar {
    height: 6px;
    background: var(--vf-gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.3s ease;
    background: var(--vf-gray-300);
}

.password-strength-fill.weak {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.password-strength-fill.medium {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.password-strength-fill.strong {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.password-strength-fill.very-strong {
    background: linear-gradient(90deg, #3D9147, #22c55e);
}

.password-strength-text {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--vf-gray-500);
    transition: color 0.3s ease;
}

.password-strength-text.weak { color: #ef4444; }
.password-strength-text.medium { color: #f59e0b; }
.password-strength-text.strong { color: #22c55e; }
.password-strength-text.very-strong { color: #3D9147; }

/* Password Requirements */
.password-requirements {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.75rem;
    background: var(--vf-gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--vf-gray-200);
}

.password-req {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: var(--vf-gray-500);
    transition: color 0.2s ease;
}

.password-req .req-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--vf-gray-400);
    transition: color 0.2s ease;
}

.password-req.met {
    color: var(--vf-green-600);
}

.password-req.met .req-icon {
    color: var(--vf-green-500);
}

.password-req.unmet {
    color: var(--vf-gray-400);
}

/* Password Match Indicator */
.password-match-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    padding: 0.375rem 0;
}

.password-match-indicator .match-icon {
    font-size: 14px;
}

.password-match-indicator.match {
    color: var(--vf-green-600);
}

.password-match-indicator.no-match {
    color: #ef4444;
}

/* Divider with text */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--vf-gray-400);
    font-size: var(--text-sm);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--vf-gray-200);
}

.divider span {
    padding: 0 1rem;
}

/* ─────────────────────────────────────────────────────────────────
   28. PROFILE HEADER
   ───────────────────────────────────────────────────────────────── */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-6) var(--space-4);
    background: linear-gradient(180deg, var(--vf-green-50) 0%, transparent 100%);
    margin-bottom: var(--space-4);
}

.profile-name {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--vf-gray-900);
    margin-top: var(--space-4);
    margin-bottom: var(--space-1);
}

.profile-email {
    font-size: var(--text-sm);
    color: var(--vf-gray-500);
}

/* ─────────────────────────────────────────────────────────────────
   29. SETTINGS LIST
   ───────────────────────────────────────────────────────────────── */
.settings-group {
    margin-bottom: var(--space-6);
}

.settings-group-title {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--vf-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 var(--space-4);
    margin-bottom: var(--space-3);
}

.settings-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--vf-white);
    cursor: pointer;
    transition: background var(--duration-fast);
}

.settings-item:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.settings-item:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.settings-item:only-child {
    border-radius: var(--radius-lg);
}

.settings-item + .settings-item {
    border-top: 1px solid var(--vf-gray-100);
}

.settings-item:hover {
    background: var(--vf-gray-50);
}

.settings-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--vf-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vf-gray-600);
    flex-shrink: 0;
}

.settings-item-icon.green {
    background: var(--vf-green-100);
    color: var(--vf-green-600);
}

.settings-item-icon.red {
    background: #FDECEC;
    color: var(--vf-error);
}

.settings-item-content {
    flex: 1;
    min-width: 0;
}

.settings-item-title {
    font-weight: 500;
    color: var(--vf-gray-800);
}

.settings-item-subtitle {
    font-size: var(--text-sm);
    color: var(--vf-gray-500);
}

.settings-item-value {
    font-size: var(--text-sm);
    color: var(--vf-gray-500);
}

.settings-item-arrow {
    color: var(--vf-gray-400);
}

/* ─────────────────────────────────────────────────────────────────
   30. DATE HEADER
   ───────────────────────────────────────────────────────────────── */
.date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
}

.date-display {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.date-day {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--vf-gray-900);
    line-height: 1;
}

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

.date-weekday {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--vf-gray-800);
}

.date-month {
    font-size: var(--text-sm);
    color: var(--vf-gray-500);
}

.date-nav {
    display: flex;
    gap: var(--space-2);
}

.date-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--vf-white);
    border: 1px solid var(--vf-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--vf-gray-600);
    transition: all var(--duration-fast);
}

.date-nav-btn:hover {
    background: var(--vf-gray-50);
    border-color: var(--vf-gray-300);
}

.btn-today {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--vf-green-50, #f0fdf4);
    border: 1px solid var(--vf-green-200, #bbf7d0);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--vf-green-700, #15803d);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.btn-today:hover {
    background: var(--vf-green-100, #dcfce7);
    border-color: var(--vf-green-300, #86efac);
    color: var(--vf-green-800, #166534);
}

.btn-today:active {
    background: var(--vf-green-200, #bbf7d0);
}

/* Dark mode */
[data-theme="dark"] .btn-today,
.dark .btn-today {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--vf-green-400, #4ade80);
}

[data-theme="dark"] .btn-today:hover,
.dark .btn-today:hover {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.4);
    color: var(--vf-green-300, #86efac);
}

[data-theme="dark"] .btn-today:active,
.dark .btn-today:active {
    background: rgba(34, 197, 94, 0.3);
}

.btn-today.hidden {
    display: none;
}

/* ─────────────────────────────────────────────────────────────────
   31. PROGRESS RING
   ───────────────────────────────────────────────────────────────── */
.progress-ring {
    position: relative;
    width: 60px;
    height: 60px;
}

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

.progress-ring-bg {
    fill: none;
    stroke: var(--vf-gray-200);
    stroke-width: 6;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--vf-green-500);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s var(--ease-out);
}

.progress-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--vf-gray-800);
}

/* ─────────────────────────────────────────────────────────────────
   32. AVATAR UPLOAD PROGRESS
   ───────────────────────────────────────────────────────────────── */
.avatar-upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.avatar-upload-progress-ring {
    position: relative;
    width: 60px;
    height: 60px;
}

.avatar-upload-progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.avatar-upload-progress-ring .circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 3;
}

.avatar-upload-progress-ring .circle-progress {
    fill: none;
    stroke: var(--vf-green-400);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s ease;
}

.avatar-upload-percent {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

/* ─────────────────────────────────────────────────────────────────
   33. NATIVE UPLOAD PROGRESS (for camera/gallery uploads)
   ───────────────────────────────────────────────────────────────── */
.native-upload-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    gap: var(--space-5);
    min-height: 200px;
}

.native-upload-ring-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.native-upload-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.native-upload-ring .ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    filter: drop-shadow(0 2px 8px rgba(61, 145, 71, 0.2));
}

.native-upload-ring .ring-bg {
    stroke: var(--vf-gray-200);
    opacity: 0.3;
}

.native-upload-ring .ring-progress {
    stroke: url(#progressGradient);
    stroke-linecap: round;
    stroke-dasharray: 263.9; /* 2 * PI * 42 */
    stroke-dashoffset: 263.9;
    transition: stroke-dashoffset 0.05s linear, stroke 0.3s ease;
    filter: drop-shadow(0 0 4px rgba(61, 145, 71, 0.4));
}

.native-upload-ring .ring-progress.complete {
    stroke: var(--vf-green-500);
    animation: progressComplete 0.5s ease;
}

.native-upload-percent {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--vf-gray-800);
    letter-spacing: -0.5px;
    z-index: 2;
}


.native-upload-text {
    text-align: center;
}

.native-upload-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--vf-gray-800);
    margin-bottom: 6px;
}

.native-upload-subtitle {
    font-size: var(--text-sm);
    color: var(--vf-gray-500);
    transition: color 0.3s ease;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes progressComplete {
    0% {
        stroke-width: 6;
        filter: drop-shadow(0 0 4px rgba(61, 145, 71, 0.4));
    }
    50% {
        stroke-width: 8;
        filter: drop-shadow(0 0 8px rgba(61, 145, 71, 0.6));
    }
    100% {
        stroke-width: 6;
        filter: drop-shadow(0 0 4px rgba(61, 145, 71, 0.4));
    }
}


.photo-upload-enhanced.uploading {
    pointer-events: none;
    background: var(--vf-gray-50);
}

.photo-upload-enhanced.upload-error .native-upload-title {
    color: #ef4444;
}

.photo-upload-enhanced.upload-error .native-upload-subtitle {
    color: #f87171;
}

/* ─────────────────────────────────────────────────────────────────
   EXTERNAL LINKS - Premium Card Design
   ───────────────────────────────────────────────────────────────── */

.external-links-section {
    margin-bottom: var(--space-5);
}

.external-links-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--vf-gray-800);
    margin-bottom: var(--space-3);
}

.external-links-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* Premium External Link Card */
.external-link-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    width: 100%;
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8faf9 50%, #f0f7f1 100%);
    border: 1px solid var(--vf-gray-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease-out);
    transform: translateY(0);
}

/* Shine animation overlay */
.external-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 70%,
        transparent 100%
    );
    transform: skewX(-25deg);
    transition: left 0.8s ease;
    pointer-events: none;
}

/* Gradient border glow effect */
.external-link-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, var(--vf-green-300), var(--vf-amber-300), var(--vf-green-400));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.external-link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(61, 145, 71, 0.1);
}

.external-link-card:hover::before {
    left: 130%;
}

.external-link-card:hover::after {
    opacity: 1;
}

.external-link-card:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: var(--shadow-md);
}

/* Icon container with gradient */
.external-link-icon {
    position: relative;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--vf-green-100) 0%, var(--vf-green-200) 100%);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5),
                0 2px 8px rgba(61, 145, 71, 0.15);
    overflow: hidden;
}

.external-link-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

.external-link-icon svg {
    width: 28px;
    height: 28px;
    color: var(--vf-green-600);
}

/* Subtle pulse on icon */
.external-link-card:hover .external-link-icon {
    animation: iconPulse 1s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Content area */
.external-link-content {
    flex: 1;
    min-width: 0;
}

.external-link-name {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--vf-gray-800);
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.external-link-desc {
    font-size: var(--text-sm);
    color: var(--vf-gray-500);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Arrow indicator */
.external-link-arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--vf-gray-400);
    transition: all 0.3s ease;
}

.external-link-card:hover .external-link-arrow {
    color: var(--vf-green-500);
    transform: translateX(4px);
}

/* Entry animation for cards */
.external-link-card.animate-in {
    animation: cardSlideIn 0.5s var(--ease-out) forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

/* Stagger animation delays */
.external-link-card:nth-child(1) { animation-delay: 0ms; }
.external-link-card:nth-child(2) { animation-delay: 80ms; }
.external-link-card:nth-child(3) { animation-delay: 160ms; }
.external-link-card:nth-child(4) { animation-delay: 240ms; }
.external-link-card:nth-child(5) { animation-delay: 320ms; }

/* Variant: Featured link with premium gradient */
.external-link-card.featured {
    background: linear-gradient(135deg,
        var(--vf-green-50) 0%,
        #e8f5e9 25%,
        #fff8e1 75%,
        var(--vf-amber-50) 100%
    );
    border: 1px solid rgba(61, 145, 71, 0.2);
}

.external-link-card.featured .external-link-icon {
    background: linear-gradient(145deg, var(--vf-green-400) 0%, var(--vf-green-500) 100%);
    box-shadow: 0 4px 12px rgba(61, 145, 71, 0.3);
}

.external-link-card.featured .external-link-icon svg,
.external-link-card.featured .external-link-icon img {
    color: white;
    filter: brightness(0) invert(1);
}

/* Empty state */
.external-links-empty {
    text-align: center;
    padding: var(--space-8);
    color: var(--vf-gray-400);
    font-size: var(--text-sm);
}

/* Meals page specific styling */
.meals-external-links {
    margin-bottom: var(--space-4);
    padding: var(--space-4) 0;
    background: linear-gradient(135deg, var(--vf-gray-50) 0%, #f5f8f5 100%);
    border-radius: var(--radius-lg);
}

/* Dashboard specific styling */
.dashboard-external-links {
    background: linear-gradient(135deg, var(--vf-green-50) 0%, var(--vf-amber-50) 100%);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-5);
}

/* Dark Theme - External Links */
[data-theme="dark"] .external-link-card {
    background: linear-gradient(135deg, var(--vf-gray-200) 0%, var(--vf-gray-100) 50%, var(--vf-gray-200) 100%);
    border-color: var(--vf-gray-300);
}

[data-theme="dark"] .external-link-card::before {
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 70%,
        transparent 100%
    );
}

[data-theme="dark"] .external-link-icon {
    background: linear-gradient(145deg, rgba(46, 117, 55, 0.3) 0%, rgba(46, 117, 55, 0.2) 100%);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1),
                0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .external-link-icon svg {
    color: var(--vf-green-400);
}

[data-theme="dark"] .external-link-title {
    color: var(--vf-gray-900);
}

[data-theme="dark"] .external-link-desc {
    color: var(--vf-gray-600);
}

[data-theme="dark"] .external-link-arrow {
    color: var(--vf-gray-500);
}

[data-theme="dark"] .external-link-card:hover .external-link-arrow {
    color: var(--vf-green-400);
}

[data-theme="dark"] .external-links-title {
    color: var(--vf-gray-900);
}

[data-theme="dark"] .meals-external-links {
    background: linear-gradient(135deg, var(--vf-gray-100) 0%, var(--vf-gray-200) 100%);
}

[data-theme="dark"] .dashboard-external-links {
    background: linear-gradient(135deg, rgba(46, 117, 55, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
}

/* ─────────────────────────────────────────────────────────────────
   TOPBAR ACTIONS - Notification Bell & Theme Toggle
   ───────────────────────────────────────────────────────────────── */

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
}

.topbar-action-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar-action-btn:hover {
    background: var(--vf-gray-100);
}

.topbar-action-btn:active {
    transform: scale(0.92);
}

.topbar-action-btn svg {
    width: 20px;
    height: 20px;
    color: var(--vf-gray-600);
    transition: color 0.2s;
}

.topbar-action-btn:hover svg {
    color: var(--vf-gray-800);
}

/* Notification Bell Specific */
.notification-bell-btn {
    position: relative;
}

.notification-bell-btn.has-notifications svg {
    color: var(--vf-green-600);
}

/* Pulsing animation behind bell when there are unread notifications */
.notification-bell-btn.has-notifications::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 12px;
    background: var(--vf-green-500);
    opacity: 0.2;
    animation: bellPulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes bellPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.1;
    }
}

/* Bell ring animation on click */
.notification-bell-btn.ringing svg {
    animation: bellRing 0.5s ease;
}

@keyframes bellRing {
    0% { transform: rotate(0); }
    15% { transform: rotate(14deg); }
    30% { transform: rotate(-12deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(-8deg); }
    75% { transform: rotate(4deg); }
    100% { transform: rotate(0); }
}

/* Notification Badge (counter) - Highly visible design */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    line-height: 1;
    box-shadow:
        0 0 0 2px rgba(239, 68, 68, 0.3),
        0 4px 12px rgba(239, 68, 68, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
    z-index: 10;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.notification-badge.hidden {
    display: none;
}

/* Pulse animation for badge - More visible */
.notification-badge::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 15px;
    background: #ef4444;
    opacity: 0.5;
    animation: badgePulse 2s infinite;
    z-index: -1;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Dark theme */
[data-theme="dark"] .topbar-action-btn:hover {
    background: var(--vf-gray-200);
}

[data-theme="dark"] .topbar-action-btn svg {
    color: var(--vf-gray-500);
}

[data-theme="dark"] .topbar-action-btn:hover svg {
    color: var(--vf-gray-800);
}

[data-theme="dark"] .notification-badge {
    border-color: var(--vf-gray-100);
    box-shadow:
        0 0 0 2px rgba(239, 68, 68, 0.4),
        0 4px 16px rgba(239, 68, 68, 0.6),
        0 2px 6px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .notification-badge::after {
    background: #ef4444;
    opacity: 0.6;
}

/* ─────────────────────────────────────────────────────────────────
   NOTIFICATION DRAWER
   ───────────────────────────────────────────────────────────────── */

/* Drawer Overlay */
.notification-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-drawer-overlay.visible {
    opacity: 1;
}

.notification-drawer-overlay.hidden {
    display: none;
}

/* Drawer - flat, clean */
.notification-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 340px;
    height: 100%;
    background: var(--vf-white);
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.06);
}

.notification-drawer.visible {
    transform: translateX(0);
}

.notification-drawer.hidden {
    display: none;
}

/* Header - flat, compact */
.notification-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--vf-gray-100);
    background: var(--vf-white);
}

.notification-drawer-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-drawer-title svg {
    width: 18px;
    height: 18px;
    color: var(--vf-green-600);
}

.notification-drawer-title h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--vf-gray-900);
    letter-spacing: -0.01em;
}

.notification-close-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}

.notification-close-btn:hover {
    background: var(--vf-gray-100);
}

.notification-close-btn svg {
    width: 14px;
    height: 14px;
    color: var(--vf-gray-500);
}

/* Actions bar - flat */
.notification-drawer-actions {
    padding: 8px 16px;
    border-bottom: 1px solid var(--vf-gray-100);
    background: var(--vf-white);
}

.notification-mark-all {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--vf-green-600);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.15s;
}

.notification-mark-all svg {
    width: 12px;
    height: 12px;
}

.notification-mark-all:hover {
    background: var(--vf-gray-50);
    color: var(--vf-green-700);
}

/* Content */
.notification-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Empty State - flat, compact */
.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}

.notification-empty-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--vf-gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border: 1px solid var(--vf-gray-100);
}

.notification-empty-icon svg {
    width: 20px;
    height: 20px;
    color: var(--vf-gray-400);
}

.notification-empty p {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--vf-gray-700);
    letter-spacing: -0.01em;
}

.notification-empty span {
    font-size: 12px;
    color: var(--vf-gray-500);
    line-height: 1.45;
}

/* ─────────────────────────────────────────────────────────────────
   NOTIFICATION ITEMS - Modern Clean Design
   ───────────────────────────────────────────────────────────────── */

.notification-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--vf-gray-50);
    background: var(--vf-white);
}

.notification-item:hover {
    background: var(--vf-gray-50);
}

.notification-item:active {
    background: var(--vf-gray-100);
}

/* Unread: light blue background + narrow blue left line + bold title */
.notification-item.unread {
    background: rgba(59, 130, 246, 0.08);
    border-left: 2px solid #2563eb;
    padding-left: 14px;
}

.notification-item.unread::before {
    display: none;
}

.notification-item.unread:hover {
    background: rgba(59, 130, 246, 0.12);
}

/* Read state: no tint, normal weight */
.notification-item:not(.unread) {
    opacity: 0.92;
}

.notification-item:not(.unread):hover {
    opacity: 1;
}

/* Icon - small, flat, no shadow */
.notification-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--vf-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
}

.notification-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.notification-icon.meal-rated {
    background: #d1fae5;
    color: #059669;
}

.notification-icon.new-meal {
    background: #fef3c7;
    color: #d97706;
}

.notification-icon.reminder {
    background: #dbeafe;
    color: #2563eb;
}

.notification-icon.system {
    background: var(--vf-gray-200);
    color: var(--vf-gray-600);
}

.notification-icon.admin-broadcast {
    background: #ede9fe;
    color: #7c3aed;
}

.notification-icon.admin-direct {
    background: #fce7f3;
    color: #db2777;
}

.notification-item:hover .notification-icon {
    /* no transform/shadows - flat */
}

/* Content - clear, readable typography */
.notification-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notification-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--vf-gray-900);
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.notification-item.unread .notification-title {
    font-weight: 700;
}

.notification-body {
    font-size: 13px;
    color: var(--vf-gray-600);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.notification-time {
    font-size: 12px;
    color: var(--vf-gray-400);
    font-weight: 400;
    letter-spacing: 0;
}

.notification-item.unread .notification-time {
    color: #2563eb;
    font-weight: 500;
}

/* Unread dot - small */
.notification-item.unread .notification-time::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #2563eb;
    margin-right: 5px;
    vertical-align: middle;
}

/* Arrow - small, flat */
.notification-arrow {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: var(--vf-gray-300);
    align-self: center;
    margin-top: 6px;
    transition: color 0.15s;
}

.notification-item:hover .notification-arrow {
    color: var(--vf-gray-500);
}

/* Loading State - compact */
.notification-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.notification-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--vf-gray-200);
    border-top-color: var(--vf-green-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dark Theme - Notifications (flat) */
[data-theme="dark"] .notification-drawer {
    background: var(--vf-gray-100);
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .notification-drawer-header {
    background: var(--vf-gray-100);
    border-bottom-color: var(--vf-gray-300);
}

[data-theme="dark"] .notification-drawer-title h3 {
    color: var(--vf-gray-900);
}

[data-theme="dark"] .notification-close-btn:hover {
    background: var(--vf-gray-200);
}

[data-theme="dark"] .notification-drawer-actions {
    background: var(--vf-gray-100);
    border-bottom-color: var(--vf-gray-300);
}

[data-theme="dark"] .notification-item {
    border-bottom-color: var(--vf-gray-200);
    background: var(--vf-gray-100);
}

[data-theme="dark"] .notification-item:hover {
    background: var(--vf-gray-200);
}

[data-theme="dark"] .notification-item.unread {
    background: rgba(59, 130, 246, 0.12);
    border-left: 2px solid #3b82f6;
}

[data-theme="dark"] .notification-item:not(.unread) {
    opacity: 0.92;
}

[data-theme="dark"] .notification-item.unread:hover {
    background: rgba(59, 130, 246, 0.18);
}

[data-theme="dark"] .notification-title {
    color: var(--vf-gray-900);
}

[data-theme="dark"] .notification-body {
    color: var(--vf-gray-600);
}

[data-theme="dark"] .notification-empty-icon {
    background: var(--vf-gray-200);
}

[data-theme="dark"] .notification-empty p {
    color: var(--vf-gray-800);
}

/* Mobile - compact panel */
@media (max-width: 480px) {
    .notification-drawer {
        max-width: 100%;
    }

    .notification-drawer-header {
        padding: 12px 14px;
    }

    .notification-drawer-content .notification-item {
        padding: 10px 14px;
        gap: 8px;
    }

    .notification-icon {
        width: 24px;
        height: 24px;
    }

    .notification-icon svg {
        width: 12px;
        height: 12px;
    }

    .topbar-action-btn {
        width: 34px;
        height: 34px;
    }

    .topbar-action-btn svg {
        width: 18px;
        height: 18px;
    }

    .notification-badge {
        min-width: 20px;
        height: 20px;
        top: -3px;
        right: -3px;
        font-size: 11px;
        padding: 0 6px;
        border-width: 2.5px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL IMAGE LIGHTBOX WITH ZOOM
   ═══════════════════════════════════════════════════════════════ */
#vfl-lightbox-overlay {
    z-index: 300;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}
.vfl-lightbox-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    -webkit-touch-callout: none;
}
.vfl-lightbox-image {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.12s ease-out;
    transform-origin: center center;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}
.vfl-lightbox-image.vfl-lb-no-transition {
    transition: none;
}
.vfl-lightbox-close {
    position: fixed;
    top: max(env(safe-area-inset-top, 0px), 1rem);
    right: 1rem;
    z-index: 310;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.vfl-lightbox-close:active,
.vfl-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}
.vfl-lightbox-close svg {
    width: 20px;
    height: 20px;
}
.vfl-lightbox-hint {
    position: fixed;
    bottom: max(env(safe-area-inset-bottom, 0px), 1.5rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 310;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}

/* Zoom-in cursor on lightbox-ready images */
.food-detail-image,
.admin-card-image {
    cursor: zoom-in;
}

/* Zoom button overlay on edit form image */
.photo-upload-enhanced .photo-upload-crop {
    position: absolute;
    top: var(--space-3);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--vf-gray-800);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: transform var(--duration-fast), box-shadow var(--duration-fast), background var(--duration-fast);
}

.photo-upload-enhanced .photo-upload-crop svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--vf-green-600);
}

.photo-upload-enhanced .photo-upload-crop:active {
    transform: translateX(-50%) scale(0.96);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .photo-upload-enhanced .photo-upload-crop {
    background: rgba(22, 24, 22, 0.88);
    color: var(--vf-gray-800);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .photo-upload-enhanced .photo-upload-crop svg {
    color: var(--vf-green-400);
}

.photo-upload-zoom {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.photo-upload-zoom:active {
    background: rgba(0, 0, 0, 0.75);
}
.photo-upload-zoom svg {
    width: 18px;
    height: 18px;
}
