/* hawklynx.com navy + cyan mesh (dark) / ice + cyan glass (light).
   Gold highlights from abcwellnessjourney.com. */

:root {
    --flag-blue:     #002868;
    --cyan:          #06b6d4;
    --cyan-light:    #22d3ee;
    --cyan-bright:   #67e8f9;
    --cyan-dark:     #0891b2;
    --cyan-deep:     #0e7490;

    --navy-base:     #0c1222;
    --navy-deep:     #080d18;
    --navy-mid:      #111827;
    --navy-surface:  #1a2332;
    --navy-ink-faint:#64748b;
    --navy-border:   rgba(148, 163, 184, 0.22);
    --cyan-glow:     rgba(6, 182, 212, 0.28);

    --bg:            var(--navy-base);
    --bg-2:          var(--navy-mid);
    --glass-bg:      rgba(15, 23, 42, 0.55);
    --glass-border:  rgba(148, 163, 184, 0.18);
    --text-primary:  #f1f5f9;
    --text-secondary:#94a3b8;
    --text-muted:    var(--navy-ink-faint);
    --accent:        var(--cyan);
    --accent-light:  var(--cyan-light);
    --accent-glow:   var(--cyan-glow);

    --bg-dark: var(--navy-base);
    --bg-sidebar: var(--navy-deep);
    --card-bg: var(--glass-bg);
    --border-color: var(--navy-border);
    --border-hover: rgba(6, 182, 212, 0.4);
    --input-bg: var(--navy-surface);
    --input-fg: var(--text-primary);

    --gold-primary: #f59e0b;
    --gold-hover: #fbbf24;
    --gold-glow: rgba(245, 158, 11, 0.25);

    --green-primary: #10b981;
    --green-hover: #34d399;
    --green-glow: rgba(16, 185, 129, 0.25);

    --danger-primary: #f43f5e;
    --danger-glow: rgba(244, 63, 94, 0.2);

    --transition-speed: 0.25s;
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --bg-mesh:
      radial-gradient(ellipse 80% 60% at 12% 8%, rgba(6, 182, 212, 0.18) 0%, transparent 55%),
      radial-gradient(ellipse 70% 50% at 88% 92%, rgba(56, 189, 248, 0.12) 0%, transparent 50%),
      radial-gradient(ellipse 50% 40% at 50% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
      linear-gradient(165deg, #080d18 0%, #0c1222 35%, #111827 100%);
}

:root.light-mode {
    --ice-base:      #e8f4fc;
    --ice-deep:      #dbeafe;
    --ice-mid:       #eff6ff;
    --ice-surface:   #f8fafc;
    --ice-border:    rgba(6, 182, 212, 0.22);
    --cyan-glow:     rgba(6, 182, 212, 0.18);

    --bg:            var(--ice-base);
    --bg-2:          var(--ice-mid);
    --glass-bg:      rgba(255, 255, 255, 0.62);
    --glass-border:  rgba(6, 182, 212, 0.2);
    --text-primary:  #0f172a;
    --text-secondary:#475569;
    --text-muted:    #64748b;
    --accent:        #0891b2;
    --accent-light:  #06b6d4;
    --accent-glow:   var(--cyan-glow);

    --bg-dark: var(--ice-base);
    --bg-sidebar: var(--ice-deep);
    --card-bg: var(--glass-bg);
    --border-color: var(--ice-border);
    --border-hover: rgba(6, 182, 212, 0.45);
    --input-bg: rgba(255, 255, 255, 0.75);
    --input-fg: #0f172a;

    --cyan: #06b6d4;
    --cyan-light: #22d3ee;
    --cyan-bright: #67e8f9;
    --cyan-dark: #0891b2;
    --cyan-deep: #0e7490;

    --bg-mesh:
      radial-gradient(ellipse 75% 55% at 10% 12%, rgba(6, 182, 212, 0.22) 0%, transparent 50%),
      radial-gradient(ellipse 65% 45% at 90% 88%, rgba(56, 189, 248, 0.18) 0%, transparent 48%),
      linear-gradient(165deg, #dbeafe 0%, #eff6ff 45%, #e0f2fe 100%);
}

html.light-mode,
html.light-mode body {
    background-color: var(--bg-dark) !important;
    background-image: var(--bg-mesh) !important;
    color: var(--text-primary) !important;
}

html.light-mode #app-splash,
html.light-mode .app-splash-overlay,
html.light-mode .sidebar,
html.light-mode .main-content,
html.light-mode .app-footer {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

html.light-mode .sidebar,
html.light-mode .hl-nav {
    background-color: var(--bg-sidebar);
}

html.light-mode select,
html.light-mode input,
html.light-mode textarea,
html.light-mode .form-group input,
html.light-mode .form-group select,
html.light-mode .auth-input,
html.light-mode .field-input,
html.light-mode .qty-input {
    background-color: var(--input-bg) !important;
    color: var(--input-fg) !important;
    border-color: rgba(15, 23, 42, 0.16);
}

html.light-mode option {
    background-color: #f8fafc;
    color: #0f172a;
}

html.light-mode,
html.light-mode body,
html.light-mode .main-content,
html.light-mode .sidebar,
html.light-mode .glass-card,
html.light-mode .card-header h4,
html.light-mode .header-title h2,
html.light-mode .header-title p,
html.light-mode .brand-text h1,
html.light-mode .item-name,
html.light-mode .item-details,
html.light-mode label,
html.light-mode .app-footer,
html.light-mode .btn-secondary,
html.light-mode .auth-splash-panel,
html.light-mode .app-splash-title,
html.light-mode .inv-list-card,
html.light-mode .inv-list-card__name {
    color: var(--text-primary) !important;
}

html.light-mode .header-sub,
html.light-mode .text-muted,
html.light-mode .item-meta,
html.light-mode .inv-list-card__meta,
html.light-mode .nav-item,
html.light-mode .brand-text span,
html.light-mode .app-splash-subtitle,
html.light-mode .app-splash-status {
    color: var(--text-secondary) !important;
}

html.light-mode .nav-item.active,
html.light-mode a,
html.light-mode .inventory-status-link,
html.light-mode .welcome-content h3,
html.light-mode .stat-val,
html.light-mode .inventory-status-stat__val,
html.light-mode .btn-secondary:hover {
    color: var(--accent) !important;
}

html.light-mode .btn-primary,
html.light-mode .btn-primary:hover {
    color: #ffffff !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent 1024px assets from breaking the layout */
img, svg, video {
    max-width: 100%;
    height: auto;
}

body {
    background-color: var(--bg-dark);
    background-image: var(--bg-mesh);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Decorative noise off — content first */
.bg-grid,
.glow-orb {
    display: none !important;
}

/* Site top menu (same as splash / marketing pages) */
.hl-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
}

.hl-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.15rem;
}

.hl-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: transparent;
}

.hl-nav__links {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.hl-nav__link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
}

.hl-nav__link:hover,
.hl-nav__link.active {
    color: var(--cyan);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
}

/* Layout Shell */
.app-container {
    display: flex;
    min-height: calc(100vh - 70px);
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar Navigation */
.sidebar {
    width: 220px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 1rem 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.sidebar-brand-logo {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 8px;
    object-fit: contain;
    background: transparent;
    border: none;
    flex-shrink: 0;
}

.theme-toggle-btn {
    padding: 6px !important;
    font-size: 0.9rem !important;
    border: 1px solid rgba(6, 182, 212, 0.25) !important;
    background: rgba(6, 182, 212, 0.06) !important;
    color: var(--cyan) !important;
    border-radius: 8px;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    border-color: var(--cyan) !important;
    background: rgba(6, 182, 212, 0.12) !important;
}

.brand-logo {
    font-size: 2rem;
    color: var(--gold-primary);
    filter: drop-shadow(0 0 8px var(--gold-glow));
}

.brand-text h1 {
    font-family: var(--font-header);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text-primary);
    line-height: 1.15;
}

.brand-text span {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-top: 1px;
    display: block;
}

.sidebar-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 1.75rem;
    padding: 8px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: color var(--transition-speed), border-color var(--transition-speed), background var(--transition-speed);
}

.sidebar-back-link:hover {
    color: var(--cyan);
    border-color: var(--border-color);
    background: rgba(6, 182, 212, 0.06);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-header);
    font-size: 0.82rem;
    font-weight: 500;
    text-align: left;
    transition: all var(--transition-speed) ease;
    width: 100%;
}

.nav-item i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-item:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(6, 182, 212, 0.1);
}

.nav-item:hover i {
    transform: translateX(3px);
}

.nav-item.active {
    color: var(--cyan);
    background-color: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.05);
}

.sidebar-footer {
    margin-top: 2rem;
}

.phase-badge {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--gold-primary);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    font-family: var(--font-header);
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.05);
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    padding: 1.25rem 1.5rem 2rem;
    overflow-y: auto;
    width: 100%;
    min-width: 0;
}

/* App Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.85rem;
}

.header-title h2 {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.header-title p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.header-actions {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.seed-hint {
    position: relative;
    align-self: center;
}

.seed-hint__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--cyan);
    font-family: var(--font-header);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: help;
    background-color: rgba(6, 182, 212, 0.08);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.05);
    transition: all var(--transition-speed) ease;
}

.seed-hint__label i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.seed-hint:hover .seed-hint__label,
.seed-hint:focus-within .seed-hint__label {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(6, 182, 212, 0.1);
    box-shadow: none;
}

.seed-hint:hover .seed-hint__label i,
.seed-hint:focus-within .seed-hint__label i {
    transform: translateX(3px);
}

.seed-hint__tip {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 40;
    width: min(320px, 70vw);
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--card-bg);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: var(--text-primary);
    font-size: 0.78rem;
    line-height: 1.45;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.seed-hint:hover .seed-hint__tip,
.seed-hint:focus-within .seed-hint__tip {
    display: block;
}

.ob-drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.ob-drop-zone.is-dragover {
    border-color: #22d3ee;
    background: rgba(6, 182, 212, 0.08);
}

/* Phase Selector in Header */
.my-data-site-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.my-data-site-links a {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
}

.my-data-site-links a:hover {
    text-decoration: underline;
}

.phase-selector-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phase-selector-container label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

select {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-family: var(--font-header);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all var(--transition-speed) ease;
}

select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.25);
}

/* Cards / panels — compact */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
    transition: border-color 0.15s ease;
    box-shadow: none;
    backdrop-filter: none;
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: none;
    transform: none;
}

:root.light-mode .glass-card {
    background: rgba(255, 255, 255, 0.95);
}

.card-header {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.card-header.justify-between {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.card-header h4 {
    font-family: var(--font-header);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.header-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.card-body {
    width: 100%;
}

/* Dashboard Grid Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.welcome-card {
    background: linear-gradient(135deg, rgba(14, 20, 38, 0.8), rgba(6, 182, 212, 0.05));
    border-color: rgba(6, 182, 212, 0.25);
    display: flex;
    align-items: center;
}

:root.light-mode .welcome-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(6, 182, 212, 0.15));
    border-color: rgba(6, 182, 212, 0.35);
}

.welcome-content h3 {
    font-family: var(--font-header);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 4px;
    text-shadow: none;
}

.welcome-heading-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    min-width: 0;
}

.restart-phase-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.restart-phase-row label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-primary);
    white-space: nowrap;
}

.restart-phase-row select {
    padding: 0.3rem 0.65rem;
    font-size: 0.82rem;
    border-radius: 6px;
}

.welcome-content p {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.stats-row {
    display: flex;
    gap: 2rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-family: var(--font-header);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* Dashboard Main Layout */
.dashboard-main-row {
    margin-top: 1.5rem;
}

/* Tab Management */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

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

/* Checklist Items — gold pending / green complete wellness highlights */
.checklist-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.section-title--gold {
    color: var(--gold-primary) !important;
}

.section-title--gold i {
    color: var(--gold-primary);
}

.section-title--green {
    color: var(--green-primary) !important;
}

.section-title--green i {
    color: var(--green-primary);
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.68rem 0.8rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-left: 3px solid var(--gold-primary);
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 0 0 0 transparent;
}

.checklist-item--green {
    border-color: rgba(16, 185, 129, 0.22);
    border-left-color: var(--green-primary);
}

.checklist-item:hover {
    background-color: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 14px var(--gold-glow);
}

.checklist-item--green:hover {
    background-color: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 14px var(--green-glow);
}

.checklist-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold-primary);
    border-radius: 5px;
    background-color: rgba(245, 158, 11, 0.08);
    cursor: pointer;
    position: relative;
    top: 2px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 0 6px var(--gold-glow);
}

.checklist-item--green input[type="checkbox"] {
    border-color: var(--green-primary);
    background-color: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 6px var(--green-glow);
}

.checklist-item input[type="checkbox"]:checked {
    background-color: var(--green-primary);
    border-color: var(--green-primary);
    box-shadow: 0 0 10px var(--green-glow);
}

.checklist-item input[type="checkbox"]:checked::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #04120c;
    font-size: 0.7rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checklist-item.checked {
    border-color: rgba(16, 185, 129, 0.45);
    border-left-color: var(--green-primary);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.12), rgba(255, 255, 255, 0.02));
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.12);
}

.item-details {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.checklist-item.checked .item-name {
    color: var(--green-primary);
    text-decoration: none;
    opacity: 0.92;
}

.checklist-item.checked .item-meta {
    color: rgba(16, 185, 129, 0.75);
}

.item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.badge {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-gold {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--gold-primary);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-green {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--green-primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Timeline/Schedule — interactive daily check-off */
.timeline {
    position: relative;
    padding-left: 8px;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline::before {
    display: none;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 28px 88px 1fr;
    gap: 10px 12px;
    align-items: start;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-left: 3px solid var(--gold-primary);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
}

.timeline-item:hover {
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.05);
    box-shadow: 0 0 12px var(--gold-glow);
}

.timeline-item.done {
    border-color: rgba(16, 185, 129, 0.4);
    border-left-color: var(--green-primary);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), rgba(255, 255, 255, 0.02));
}

.timeline-item.done:hover {
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 0 12px var(--green-glow);
}

.timeline-item::before {
    display: none;
}

.timeline-check {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2px;
}

.timeline-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.08);
    box-shadow: 0 0 6px var(--gold-glow);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    pointer-events: none;
    transition: all 0.15s ease;
}

.timeline-item.done .timeline-check input[type="checkbox"] {
    background: var(--green-primary);
    border-color: var(--green-primary);
    box-shadow: 0 0 8px var(--green-glow);
}

.timeline-item.done .timeline-check input[type="checkbox"]::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #04120c;
    font-size: 0.65rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.timeline-time {
    font-family: var(--font-header);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 0.04em;
    padding-top: 3px;
}

.timeline-item.done .timeline-time {
    color: var(--green-primary);
}

.timeline-content {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    min-width: 0;
}

.timeline-content h5 {
    font-family: var(--font-header);
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.timeline-item.done .timeline-content h5 {
    color: var(--green-primary);
}

.timeline-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .timeline-item {
        grid-template-columns: 28px 1fr;
    }
    .timeline-time {
        grid-column: 2;
        padding-top: 0;
    }
    .timeline-content {
        grid-column: 2;
    }
}

/* Warnings and alerts */
.warning-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.warning-item {
    background-color: rgba(244, 63, 94, 0.05);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 6px;
    padding: 0.35rem 0.45rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.7rem;
    min-width: 0;
}

.warning-item span {
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.warning-item .warning-item__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
}

.warning-item .btn {
    padding: 0.15rem 0.4rem;
    font-size: 0.62rem;
    gap: 3px;
}

.warning-list > .empty-state {
    grid-column: 1 / -1;
}

@media (max-width: 700px) {
    .warning-list {
        grid-template-columns: 1fr;
    }
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 1rem 0;
}

.guide-list {
    margin: 0 0 1.25rem 1.15rem;
    padding: 0;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.guide-list li {
    line-height: 1.45;
}

#tab-guide .card-body a {
    color: var(--cyan);
    text-decoration: underline;
}

/* Daily log section titles */
.section-title {
    font-family: var(--font-header);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gold-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tables styling */
.overflow-x {
    overflow-x: auto;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    text-align: left;
    min-width: 720px;
}

.inventory-table th {
    border-bottom: 1px solid var(--border-color);
    padding: 0.45rem 0.5rem;
    color: var(--text-muted);
    font-family: var(--font-header);
    font-weight: 600;
    white-space: nowrap;
}

.inventory-table td {
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.inventory-table tr:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

/* Cost matrix highlight styling */
.cost-val {
    font-weight: 500;
    color: var(--text-muted);
}

.cost-val.preferred {
    color: var(--gold-primary);
    font-weight: 700;
}

.cost-val.cheapest {
    color: var(--green-primary);
    font-weight: 700;
    background-color: rgba(16, 185, 129, 0.08);
    padding: 2px 4px;
    border-radius: 4px;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem 1rem;
}

.price-matrix-grid {
    border-left: 2px solid var(--border-color);
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.pricing-title {
    font-family: var(--font-header);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin: 1.5rem 0 0.5rem 0;
}

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

.form-group label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.form-group input, .form-group select, .field-input, .qty-input {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.25);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

/* Button UI */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--cyan);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--cyan-light);
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.4);
    color: #fff;
}

.btn-secondary {
    background-color: rgba(6, 182, 212, 0.06);
    border-color: rgba(6, 182, 212, 0.22);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: rgba(6, 182, 212, 0.12);
    border-color: var(--cyan);
    color: var(--cyan-light);
}

:root.light-mode .btn-secondary {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

:root.light-mode .btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.08);
    border-color: var(--border-hover);
}

.btn-danger {
    background-color: rgba(244, 63, 94, 0.08);
    border-color: rgba(244, 63, 94, 0.4);
    color: #fb7185;
}
.btn-danger:hover,
.btn-danger:focus-visible {
    background-color: #e11d48;
    border-color: #e11d48;
    color: #fff;
    box-shadow: 0 0 16px rgba(244, 63, 94, 0.45);
}
:root.light-mode .btn-danger,
html.light-mode .btn-danger {
    background-color: rgba(225, 29, 72, 0.1);
    border-color: rgba(225, 29, 72, 0.4);
    color: #be123c;
}
:root.light-mode .btn-danger:hover,
:root.light-mode .btn-danger:focus-visible,
html.light-mode .btn-danger:hover,
html.light-mode .btn-danger:focus-visible {
    background-color: #e11d48;
    border-color: #e11d48;
    color: #fff;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
}

.btn-icon-only {
    padding: 0.4rem;
    border-radius: 6px;
    aspect-ratio: 1;
}

/* Shopping Tab layouts */
.shopping-summary-bar {
    display: flex;
    gap: 2rem;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
}

.summary-item .label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.summary-item .value {
    font-family: var(--font-header);
    font-size: 1.3rem;
    font-weight: 700;
}

.text-gold {
    color: var(--gold-primary);
}

.text-amber {
    color: var(--gold-primary);
}

.supplier-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.supplier-filters span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.supplier-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.supplier-tab {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.supplier-tab:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.supplier-tab.active {
    background-color: rgba(6, 182, 212, 0.1);
    border-color: var(--cyan);
    color: var(--cyan);
}

.shopping-list-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shopping-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-left: 3px solid var(--gold-primary);
}

.shopping-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shopping-item-buy {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.shopping-supplier-select {
    min-width: 128px;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--input-fg);
    font: inherit;
    font-size: 0.8rem;
}

.shopping-item-price {
    font-weight: 700;
    color: var(--cyan);
    min-width: 4.5rem;
    text-align: right;
}

.shopping-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--gold-primary);
    border-radius: 4px;
    background-color: rgba(245, 158, 11, 0.08);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 0 6px var(--gold-glow);
}

.shopping-item input[type="checkbox"]:checked {
    background-color: var(--green-primary);
    border-color: var(--green-primary);
    box-shadow: 0 0 8px var(--green-glow);
}

.shopping-item input[type="checkbox"]:checked::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #04120c;
    font-size: 0.65rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.shopping-item.completed {
    border-left-color: var(--green-primary) !important;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), rgba(255, 255, 255, 0.02));
}

.shopping-item.completed .item-name {
    text-decoration: none;
    color: var(--green-primary);
}

/* Keto List Layout styles */
.keto-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

@media (max-width: 1100px) {
    .keto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .keto-grid { grid-template-columns: 1fr; }
}

.border-reboot {
    border-bottom: 2px solid var(--gold-primary);
}

.border-maintenance {
    border-bottom: 2px solid var(--green-primary);
}

.keto-food-category {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.toast {
    background: rgba(10, 14, 28, 0.95);
    border: 1px solid var(--gold-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5), 0 0 10px var(--gold-glow);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Media Queries for responsive views */
@media (max-width: 900px) {
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
        position: static;
        height: auto;
    }
    .sidebar-brand {
        margin-bottom: 1.5rem;
    }
    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    .nav-item {
        white-space: nowrap;
    }
    .main-content {
        padding: 1.5rem;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .hl-nav {
        position: relative;
    }
    .hl-nav__links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-sidebar);
        border-bottom: 1px solid var(--border-color);
        padding: 16px 20px;
        gap: 16px;
    }
    .hl-nav__links.active {
        display: flex;
    }
}

/* Full App Splash + centered auth panel */
.app-splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-dark);
    background-image: var(--bg-mesh);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
    visibility: visible;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.app-splash-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Centered card — never left-docked */
.auth-splash-panel {
    width: min(100%, 420px);
    margin: auto;
    padding: 1.75rem 1.5rem 1.35rem;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(6, 182, 212, 0.06) inset;
    text-align: center;
    flex-shrink: 0;
}

.auth-splash-brand {
    margin-bottom: 1.15rem;
}

.auth-splash-logo {
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
    object-fit: contain;
    background: #061018;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin: 0 auto 0.75rem;
    display: block;
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.2);
}

.app-splash-content {
    text-align: center;
    max-width: 400px;
    padding: 20px;
}

.app-splash-logo-container {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.app-splash-logo {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin: 0 auto 0.85rem;
    display: block;
    animation: none;
}

.app-splash-title {
    font-family: var(--font-header);
    font-size: clamp(1.2rem, 4vw, 1.45rem);
    font-weight: 750;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.app-splash-subtitle {
    font-size: 0.72rem;
    color: var(--cyan);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0;
}

.app-splash-loader {
    width: 100%;
    max-width: 240px;
    height: 4px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 2px;
    margin: 0 auto 1rem;
    overflow: hidden;
    position: relative;
}

.app-splash-spinner {
    position: absolute;
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    animation: loadingBar 1.5s infinite linear;
}

.app-splash-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.auth-loading {
    padding: 0.5rem 0 0.25rem;
}

/* Auth tabs */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 4px;
    margin: 1.15rem 0 1rem;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.auth-tab {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-header);
    font-size: 0.82rem;
    font-weight: 650;
    padding: 0.55rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.auth-tab:hover {
    color: var(--text-primary);
}

.auth-tab.active {
    background: rgba(6, 182, 212, 0.16);
    color: var(--cyan-light);
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.25);
}

[hidden] {
    display: none !important;
}

.auth-form {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-form .form-group {
    gap: 5px;
}

.auth-form .form-group label {
    font-size: 0.78rem;
}

.auth-optional {
    font-weight: 500;
    color: var(--text-muted);
    opacity: 0.85;
}

.auth-input {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

:root.light-mode .auth-input {
    background-color: var(--input-bg);
}

html.light-mode .toast,
html.light-mode .seed-hint__tip {
    background: #ffffff;
    color: #0f172a;
}

html.light-mode .seed-hint__label {
    color: var(--accent);
}

html.light-mode .seed-hint:hover .seed-hint__label,
html.light-mode .seed-hint:focus-within .seed-hint__label {
    color: var(--text-primary);
}

.auth-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}

.auth-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.auth-submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.15rem;
    padding: 0.75rem 1rem;
}

.auth-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.auth-error {
    margin: 0;
    font-size: 0.82rem;
    color: #fb7185;
    line-height: 1.35;
    min-height: 1.2em;
}

.auth-hint {
    margin: 0;
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 0.75rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-guest-btn {
    width: 100%;
    justify-content: center;
}

.auth-footer-note {
    margin: 0.9rem 0 0;
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Sidebar session chip */
.auth-user-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 0.65rem;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(6, 182, 212, 0.06);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.auth-user-chip strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 650;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-user-chip button {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--cyan);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    padding: 2px 4px;
    white-space: nowrap;
}

.auth-user-chip button:hover {
    color: var(--cyan-light);
    text-decoration: underline;
}

@media (max-width: 480px) {
    .auth-splash-panel {
        width: 100%;
        padding: 1.35rem 1.1rem 1.15rem;
        border-radius: 14px;
    }

    .auth-tab {
        font-size: 0.78rem;
        padding: 0.5rem 0.35rem;
    }

    .auth-input {
        font-size: 16px; /* avoid iOS zoom */
    }
}

@media (max-height: 700px) {
    .app-splash-overlay {
        align-items: flex-start;
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .auth-splash-panel {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .auth-splash-logo {
        width: 42px !important;
        height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
        border-color: var(--border-color);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 0 45px rgba(6, 182, 212, 0.45);
        border-color: var(--cyan);
    }
}

@keyframes loadingBar {
    0% {
        left: -50%;
    }
    100% {
        left: 100%;
    }
}

/* Tracker Grid and Layout Shifts */
.tracker-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .tracker-sections-grid {
        grid-template-columns: 1fr;
    }
}

/* Water intake panel */
.water-card .water-goal-edit {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.water-input {
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
    max-width: 88px;
}

.water-card .card-header {
    margin-bottom: 0.45rem;
}

.water-card .header-sub {
    display: none;
}

.water-meter {
    margin-bottom: 0.45rem;
}

.water-meter__track {
    height: 8px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    overflow: hidden;
}

.water-meter__fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan-dark), var(--cyan-light));
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
    transition: width 0.35s ease;
}

.water-meter__labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

#tab-dashboard .large-card {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

#tab-dashboard .large-card .card-header {
    margin-bottom: 0.55rem;
}

#tab-dashboard .large-card .timeline {
    margin-top: 0;
}

.water-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.custom-tag {
    font-style: normal;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-left: 6px;
}

.custom-food-form {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(6, 182, 212, 0.15);
}

.food-del-btn,
.food-edit-btn {
    flex-shrink: 0;
    opacity: 0.75;
}
.food-edit-btn:hover,
.food-del-btn:hover {
    opacity: 1;
}

/* App footer branding */
.app-footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(6, 182, 212, 0.15);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    width: 100%;
}

.app-footer__disclaimer {
    margin: 0 auto 12px;
    max-width: 520px;
    line-height: 1.45;
}

.app-footer__disclaimer a {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
}

.app-footer__disclaimer a:hover {
    text-decoration: underline;
}

.app-footer__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.app-footer__logo {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    object-fit: contain;
    opacity: 0.9;
}

.app-footer__brand a {
    color: var(--text-muted);
    text-decoration: none;
}

.app-footer__brand a:hover {
    color: var(--cyan);
}

/* Inventory Top Row Grid */
.inventory-top-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    align-items: start;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .inventory-top-row {
        grid-template-columns: 1fr;
    }
}

.inv-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.inv-list-card {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    min-width: 0;
}

.inv-list-card__top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.35rem;
}

.inv-list-card__name {
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1.25;
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.inv-list-card__meta {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 0;
    flex-shrink: 0;
}

.inv-list-card__top .badge {
    font-size: 0.62rem;
    padding: 1px 6px;
    flex-shrink: 0;
}

.inv-list-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
}

.inv-list-card__qty {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
}

.inv-qty-btn {
    width: 20px;
    height: 20px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.6rem;
    line-height: 1;
}

.inv-qty-btn:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

@media (max-width: 1100px) {
    .inv-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .inv-list-grid { grid-template-columns: 1fr; }
}

/* Inventory status snapshot (links to full DB tab) */
.inventory-status-card {
    margin-top: 1.25rem;
}

.inventory-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.inventory-status-stat {
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 8px;
    padding: 12px 10px;
    text-align: center;
}

.inventory-status-stat--warn {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}

.inventory-status-stat__val {
    display: block;
    font-family: var(--font-header);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--cyan);
    line-height: 1.2;
}

.inventory-status-stat--warn .inventory-status-stat__val {
    color: var(--gold-primary);
}

.inventory-status-stat__lbl {
    display: block;
    margin-top: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.inventory-status-hint {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
}

.inventory-status-link {
    color: var(--cyan);
    font-weight: 700;
    text-decoration: none;
}

.inventory-status-link:hover {
    text-decoration: underline;
}

.inventory-status-hint .text-muted {
    color: var(--text-muted);
    font-weight: 400;
}

@media (max-width: 700px) {
    .inventory-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

#tab-my-data .card-header {
    margin-bottom: 0.4rem;
}

#tab-my-data .my-data-account-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}

#tab-my-data .my-data-inventory-card {
    margin-top: 0.65rem;
}

#tab-my-data .my-data-inv-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 0.55rem;
}

#tab-my-data .my-data-inv-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.55rem;
}

#tab-my-data .ob-drop-zone {
    padding: 0.7rem;
}

.more-extras-link {
    margin: 0.85rem 0 0;
    text-align: left;
}

