/* ================================================================
   FapDiet — Global Stylesheet
   Shared by layouts/app.blade.php and layouts/public.blade.php
   ================================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 8px); }

/* ── CSS VARIABLES ── */
:root {
    /* Primary */
    --primary:       #0b63d6;
    --primary-d:     #084fae;  --primary-dark:   var(--primary-d);
    --primary-l:     #eef5ff;  --primary-light:  var(--primary-l);
    --primary-b:     #c9defb;  --primary-border: var(--primary-b);

    /* Accent */
    --orange: #b45309; --orange-l: #fff7ed; --orange-b: #fed7aa;
    --green:  #15803d; --green-l:  #f0f7f2; --green-b:  #cfe6d6;
    --red:    #dc2626; --red-l:    #fef2f2; --red-b:    #fecaca;
    --warn:   #a16207; --warn-l:   #fefce8;

    /* Aliases (app.blade.php naming) */
    --success: var(--green); --success-light: var(--green-l); --success-border: var(--green-b);
    --danger:  var(--red);   --danger-light:  var(--red-l);   --danger-border:  var(--red-b);

    /* Neutrals */
    --bg:      #f5f6f8; --bg-page:     var(--bg);
    --card:    #fff;    --bg-card:     var(--card);
    --border:  #e2e8f0;
    --border-s:#cbd5e1; --border-strong: var(--border-s);

    /* Text */
    --text-h:  #0f172a; --text-heading: var(--text-h);
    --text-b:  #1e293b; --text-body:    var(--text-b);
    --text-m:  #475569; --text-muted:   var(--text-m);
    --text-sm: #64748b;

    /* Shadows */
    --sh-sm: 0 1px 2px rgba(15,23,42,.05); --shadow-sm: var(--sh-sm);
    --sh:    0 4px 12px rgba(15,23,42,.07); --shadow-md: var(--sh);
    --sh-lg: 0 8px 24px rgba(15,23,42,.08);

    /* Radii */
    --r:    10px; --radius:    var(--r);
    --r-sm: 6px;  --radius-sm: var(--r-sm);
    --r-lg: 12px;
    --r-xl: 14px;

    /* Surface tints (headers/sidebars) */
    --dark:  #ffffff;
    --dark2: #f8fafc;
    --dark3: #f1f5f9;

    /* Layout */
    --hh: 68px;
}

/* ── ANIMATION ── */
@keyframes pg-in {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── BASE ── */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text-b);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    animation: pg-in .22s ease;
}
a { text-decoration: none; color: inherit; }

/* ── CONTAINERS ── */
.wrap    { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.wrap-md { max-width: 900px; }
.wrap-sm { max-width: 760px; }

/* ================================================================
   PUBLIC LAYOUT — header, footer, page hero
   ================================================================ */

#site-hdr {
    position: sticky; top: 0; z-index: 500;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid rgba(15,23,42,.1);
}
.hdr-inner    { display: flex; align-items: center; height: var(--hh); gap: 0; }
.hdr-logo     { display: flex; align-items: center; gap: 10px; margin-right: 32px; flex-shrink: 0; }
.hdr-logo-name{ font-size: 17px; font-weight: 800; color: #0f172a; letter-spacing: -.3px; }
.hdr-nav      { display: flex; align-items: center; gap: 2px; flex: 1; }
.hdr-nav a    { padding: 7px 14px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; color: #1e293b; transition: color .15s, background .15s; white-space: nowrap; }
.hdr-nav a:hover { color: #0f172a; background: rgba(15,23,42,.07); }
.hdr-nav a.on    { color: var(--primary); background: rgba(11,99,214,.1); }
.hdr-auth { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }

.btn-ghost       { padding: 7px 15px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; color: #1e293b; transition: color .15s; }
.btn-ghost:hover { color: #0f172a; }
.btn-cta         { padding: 8px 18px; background: var(--primary); color: #fff; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 700; transition: all .15s; white-space: nowrap; border: none; cursor: pointer; }
.btn-cta:hover   { background: var(--primary-d); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(11,99,214,.45); }

/* Mobile hamburger (guest layout) */
.mob-btn      { display: none; flex-direction: column; justify-content: space-between; width: 34px; height: 24px; background: none; border: none; cursor: pointer; padding: 0; margin-left: 16px; flex-shrink: 0; }
.mob-btn span { display: block; height: 2px; background: rgba(255,255,255,.7); border-radius: 2px; transition: all .25s; }
.mob-btn.open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.mob-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mob-btn.open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* Mobile nav drawer (guest) */
.mob-nav          { display: none; background: var(--dark2); border-top: 1px solid rgba(15,23,42,.1); }
.mob-nav.open     { display: block; }
.mob-nav a        { display: flex; align-items: center; padding: 15px 28px; font-size: 15px; font-weight: 600; color: #1e293b; border-bottom: 1px solid rgba(15,23,42,.1); transition: color .15s, background .15s; }
.mob-nav a:hover,
.mob-nav a.on     { color: #0f172a; background: rgba(15,23,42,.05); }
.mob-nav-foot     { display: flex; gap: 12px; padding: 18px 28px; }
.mob-nav-foot a   { flex: 1; padding: 11px 16px; border-radius: var(--r-sm); font-size: 14px; font-weight: 700; text-align: center; }
.mob-ghost2 { background: rgba(15,23,42,.08); color: #1e293b; }
.mob-cta2   { background: var(--primary); color: #fff; }

/* Page hero */
.pg-hero         { background: linear-gradient(135deg,var(--dark) 0%,var(--dark3) 60%,#eef5ff 100%); padding: 56px 28px 60px; position: relative; overflow: hidden; }
.pg-hero::before { content: ''; position: absolute; top: -60px; right: -80px; width: 400px; height: 400px; background: radial-gradient(circle,rgba(11,99,214,.06) 0%,transparent 70%); pointer-events: none; }
.pg-hero::after  { content: ''; position: absolute; bottom: -40px; left: 10%; width: 300px; height: 300px; background: radial-gradient(circle,rgba(11,99,214,.04) 0%,transparent 70%); pointer-events: none; }
.pg-hero-inner { position: relative; z-index: 1; }
.pg-hero h1    { font-size: clamp(26px,4vw,44px); font-weight: 900; color: #0f172a; line-height: 1.12; margin-bottom: 12px; letter-spacing: -.5px; }
.pg-hero p     { font-size: 16px; color: #1e293b; max-width: 560px; line-height: 1.65; }
.pg-hero-sm    { padding: 40px 28px 44px; }
.pg-hero-sm h1 { font-size: clamp(22px,3vw,32px); }

/* Static page card */
.pg-card             { background: #fff; border-radius: var(--r-xl); padding: 48px 56px; box-shadow: var(--sh-lg); margin-top: 40px; }
.pg-card h2          { font-size: 19px; font-weight: 800; color: var(--text-h); margin: 34px 0 10px; padding-top: 2px; }
.pg-card h2:first-child { margin-top: 0; }
.pg-card p           { font-size: 14.5px; color: var(--text-b); margin-bottom: 14px; line-height: 1.82; }
.pg-card ul          { margin: 8px 0 18px 24px; }
.pg-card ul li       { font-size: 14.5px; color: var(--text-b); margin-bottom: 7px; line-height: 1.75; }
.pg-card a           { color: var(--primary); font-weight: 600; }
.pg-card .updated    { font-size: 12.5px; color: var(--text-sm); margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid #f3f4f6; }

/* Footer */
.site-footer  { background: var(--dark); padding: 64px 28px 32px; margin-top: 0; }
.ft-grid      { display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(15,23,42,.1); }
.ft-brand     { display: flex; flex-direction: column; gap: 16px; }
.ft-logo      { display: flex; align-items: center; gap: 10px; }
.ft-logo span { font-size: 16px; font-weight: 800; color: #0f172a; }
.ft-brand > p { font-size: 13px; color: #334155; line-height: 1.75; max-width: 270px; }
.ft-copy      { font-size: 12px; color: #334155; margin-top: 8px; }
.ft-col       { display: flex; flex-direction: column; gap: 10px; }
.ft-col-ttl   { font-size: 11px; font-weight: 700; color: #334155; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.ft-col a     { font-size: 13.5px; color: #1e293b; transition: color .15s; font-weight: 500; }
.ft-col a:hover { color: #0f172a; }
.ft-btm       { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; flex-wrap: wrap; gap: 12px; }
.ft-btm-note  { font-size: 12.5px; color: #334155; }

/* ================================================================
   SHARED COMPONENTS
   ================================================================ */

/* Card */
.card      { background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh-sm); }
.card-p    { padding: 24px; }
.card-p-lg { padding: 28px 32px; }

/* Buttons */
.btn-primary         { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; background: var(--primary); color: #fff; border: none; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .15s; }
.btn-primary:hover   { background: var(--primary-d); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(11,99,214,.3); }
.btn-secondary       { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; background: #fff; color: var(--text-h); border: 1px solid var(--border-s); border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .15s; }
.btn-secondary:hover { background: var(--bg); }
.btn-danger          { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; background: var(--red); color: #fff; border: none; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .15s; }
.btn-danger:hover    { background: #b91c1c; }

/* Form fields */
.field             { width: 100%; background: #fff; border: 1px solid var(--border-s); border-radius: var(--r-sm); padding: 10px 14px; font-size: 14px; color: var(--text-h); font-family: 'Plus Jakarta Sans', sans-serif; outline: none; transition: border-color .15s, box-shadow .15s; }
.field:focus       { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,99,214,.12); }
.field::placeholder{ color: #94a3b8; }
textarea.field     { resize: none; }

/* Badges */
.badge         { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 100px; font-size: 11.5px; font-weight: 600; }
.badge-primary { background: var(--primary-l); color: var(--primary-d); }
.badge-orange  { background: var(--orange-l);  color: var(--orange);  }
.badge-green   { background: var(--green-l);   color: #166534; }
.badge-red     { background: var(--red-l);     color: #b91c1c; }
.badge-gray    { background: #f1f5f9; color: #334155; }
.badge-blue    { background: #eef5ff; color: #0b63d6; }
.badge-purple  { background: #eef5ff; color: #0b63d6; }
.badge-yellow  { background: var(--warn-l); color: var(--warn); }

/* Stat card */
.stat-card  { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 20px; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--text-h); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-m); margin-top: 4px; font-weight: 500; }

/* Typography helpers */
.section-title { font-size: 15px; font-weight: 800; color: var(--text-h); margin-bottom: 14px; }
.page-title    { font-size: clamp(20px,3vw,26px); font-weight: 900; color: var(--text-h); }
.page-sub      { font-size: 14px; color: var(--text-m); margin-top: 4px; }

/* Prose (article body) */
.prose                    { color: var(--text-b); line-height: 1.9; font-size: 16px; overflow-wrap: break-word; word-break: break-word; }
.prose img,
.prose video,
.prose iframe             { max-width: 100%; height: auto; }
.prose pre                { overflow-x: auto; max-width: 100%; }
.prose h2                 { font-size: 22px; font-weight: 800; color: var(--text-h); margin: 40px 0 14px; padding-top: 4px; }
.prose h3                 { font-size: 18px; font-weight: 700; color: var(--text-h); margin: 28px 0 10px; }
.prose p                  { margin-bottom: 22px; }
.prose ul, .prose ol      { margin: 10px 0 22px 26px; }
.prose li                 { margin-bottom: 9px; line-height: 1.75; }
.prose strong             { color: var(--text-h); font-weight: 700; }
.prose blockquote         { border-left: 3px solid var(--primary); padding: 10px 18px; color: var(--text-m); font-style: italic; margin: 28px 0; background: var(--primary-l); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose a                  { color: var(--primary); font-weight: 600; }

/* Ad units */
.ad-unit     { overflow: hidden; text-align: center; background: transparent; }
.ad-unit ins { display: block; margin: 0 auto; }

/* Toast notifications */
.toast         { position: fixed; top: 20px; right: 20px; z-index: 9999; padding: 12px 20px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 500; box-shadow: var(--sh); max-width: 320px; }
.toast-success { background: var(--green-l); border: 1px solid var(--green-b); color: #14532d; }
.toast-info    { background: #eef5ff; border: 1px solid #c9defb; color: #084fae; }
.toast-error   { background: var(--red-l); border: 1px solid var(--red-b); color: #991b1b; }

/* ================================================================
   SIDEBAR LAYOUT — used by layouts.app and by authenticated
   users in layouts.public
   ================================================================ */

.sidebar              { width: 248px; min-height: 100vh; background: #ffffff; border-right: 1px solid rgba(15,23,42,.1); display: flex; flex-direction: column; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-logo         { padding: 22px 18px; border-bottom: 1px solid rgba(15,23,42,.1); display: flex; align-items: center; gap: 10px; }
.sidebar-logo-text    { font-size: 15px; font-weight: 800; color: #0f172a; letter-spacing: -.2px; }
.sidebar-logo-sub     { font-size: 10.5px; color: #334155; }
.sidebar-user         { padding: 14px 16px; border-bottom: 1px solid rgba(15,23,42,.1); display: flex; align-items: center; gap: 10px; }
.sidebar-user img     { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(11,99,214,.5); }
.sidebar-user-name    { font-size: 13px; font-weight: 700; color: #0f172a; }
.sidebar-user-streak  { font-size: 11px; color: #b45309; font-weight: 600; }
.sidebar-nav          { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.nav-link             { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 500; color: #1e293b; transition: all .15s; cursor: pointer; white-space: nowrap; }
.nav-link:hover       { background: rgba(15,23,42,.07); color: #0f172a; }
.nav-link.active      { background: rgba(11,99,214,.2); color: #0b63d6; font-weight: 700; border: 1px solid rgba(11,99,214,.25); }
.nav-link .icon       { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; }
.nav-divider          { border-top: 1px solid rgba(15,23,42,.1); margin: 8px 0; }
.nav-emergency        { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 700; color: #b91c1c; background: rgba(220,38,38,.12); border: 1px solid rgba(220,38,38,.25); transition: all .15s; }
.nav-emergency:hover  { background: rgba(220,38,38,.2); color: #b91c1c; }
.sidebar-footer       { padding: 12px 10px; border-top: 1px solid rgba(15,23,42,.1); }
.nav-signout          { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500; color: #334155; transition: all .15s; cursor: pointer; width: 100%; background: none; border: none; font-family: inherit; }
.nav-signout:hover    { background: rgba(220,38,38,.12); color: #b91c1c; }

/* Page layout */
.page-wrap    { display: flex; min-height: 100vh; }
.main-content { flex: 1; min-width: 0; padding: 28px 32px; max-width: 1100px; }

/* Mobile header (auth sidebar) */
.mobile-header { display: none; background: #ffffff; border-bottom: 1px solid rgba(15,23,42,.1); padding: 12px 20px; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }

/* Bottom app-style tab bar (mobile only) */
.bottom-nav {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(15,23,42,.1);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)) 4px;
    justify-content: space-around; align-items: stretch;
}
.bottom-nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; flex: 1; min-width: 0; padding: 6px 2px; border-radius: 10px;
    color: #1e293b; text-decoration: none; transition: color .15s, background .15s;
}
.bottom-nav-item .icon  { font-size: 19px; line-height: 1; }
.bottom-nav-item .label { font-size: 10px; font-weight: 600; white-space: nowrap; }
.bottom-nav-item.active { color: #0b63d6; background: rgba(11,99,214,.14); }
.bottom-nav-item:active { background: rgba(15,23,42,.06); }

/* Top banner — notifications + profile for logged-in users */
.app-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 32px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 90;
}
.topbar-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-page);
    border: 1px solid var(--border);
    font-size: 17px;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.topbar-icon-btn:hover { background: var(--primary-light); border-color: var(--primary); }
.topbar-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 100px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
}
.topbar-profile-wrap { position: relative; }
.topbar-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    border-radius: 100px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: background .15s, border-color .15s;
}
.topbar-profile:hover { background: var(--primary-light); border-color: var(--primary); }
.topbar-profile img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.topbar-profile-name { font-size: 13px; font-weight: 700; color: var(--text-heading); white-space: nowrap; }
.topbar-profile-caret { font-size: 10px; color: var(--text-muted); }

.topbar-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    box-shadow: var(--sh, 0 8px 24px rgba(0,0,0,.12));
    padding: 6px;
    z-index: 95;
}
.topbar-dropdown.open { display: block; }
.topbar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border-radius: var(--r-sm);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-heading);
    text-decoration: none;
    background: none;
    border: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    text-align: left;
}
.topbar-dropdown-item:hover { background: var(--bg-page); }
.topbar-dropdown-item--danger { color: #b91c1c; }
.topbar-dropdown-item--danger:hover { background: #fef2f2; }
.topbar-dropdown-divider { height: 1px; background: var(--border); margin: 6px 4px; }

@media (max-width: 640px) {
    .app-topbar { padding: 10px 16px; }
    .topbar-profile-name { display: none; }
    .topbar-profile { padding: 5px; }
}

/* ================================================================
   SCROLLBAR
   ================================================================ */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-s); border-radius: 4px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .mobile-header { display: flex; }
    .sidebar {
        position: fixed; top: 0; left: 0; height: 100vh; z-index: 200;
        transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto;
    }
    .sidebar.open { transform: translateX(0); box-shadow: 0 0 40px rgba(15,23,42,.18); }
    .main-content { padding: 20px 16px calc(78px + env(safe-area-inset-bottom)); }
    .page-wrap    { flex-direction: column; }
    .bottom-nav   { display: flex; }
}
@media (max-width: 900px) {
    .hdr-nav, .hdr-auth { display: none; }
    .mob-btn  { display: flex; margin-left: auto; }
    .ft-grid  { grid-template-columns: 1fr 1fr; gap: 32px; }
    .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .wrap    { padding: 0 16px; }
    .pg-hero { padding: 36px 16px 40px; }
    .pg-card { padding: 28px 20px; }
    .ft-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .wrap          { padding: 0 14px; }
    .hdr-logo-name { font-size: 15px; }
    .mob-nav a     { padding: 13px 20px; font-size: 14px; }
    .mob-nav-foot  { padding: 14px 20px; gap: 10px; }
    .pg-hero       { padding: 28px 14px 32px; }
    .pg-hero h1    { font-size: clamp(22px,6vw,32px); }
    .pg-hero p     { font-size: 14px; }
    .pg-card       { padding: 22px 16px; }
    .site-footer   { padding: 44px 14px 24px; }
    .ft-btm        { flex-direction: column; align-items: flex-start; gap: 8px; }
    .prose         { font-size: 15px; }
    .prose h2      { font-size: 19px; }
    .prose h3      { font-size: 16px; }
    .main-content  { padding: 16px 12px; }
    .card-p        { padding: 18px; }
    .toast         { top: auto; bottom: 16px; right: 12px; left: 12px; max-width: 100%; font-size: 13px; }
    .page-title    { font-size: 19px; }
}

/* ================================================================
   REFINEMENTS — flat, single-accent treatment
   ================================================================ */

/* Buttons */
h1, h2, h3, .page-title, .section-title { letter-spacing: -.02em; }
.btn-cta, .mob-cta2, .btn-primary { background: var(--primary); box-shadow: none; }
.btn-cta:hover, .btn-primary:hover { background: var(--primary-d); transform: none; box-shadow: 0 1px 2px rgba(15,23,42,.12); }
.btn-danger:hover   { background: #b91c1c; }
.btn-secondary:hover{ background: #f8fafc; border-color: #94a3b8; }

/* Navigation */
.hdr-nav a, .btn-ghost, .nav-link, .mob-nav a, .bottom-nav-item { color: #334155; }
.hdr-nav a:hover, .nav-link:hover { color: var(--text-h); background: #f1f5f9; }
.hdr-nav a.on      { color: var(--primary-d); background: var(--primary-l); }
.btn-ghost:hover   { color: var(--text-h); }
.nav-link.active   { background: var(--primary-l); color: var(--primary-d); font-weight: 600; border: 1px solid transparent; box-shadow: none; }
.bottom-nav-item.active { color: var(--primary-d); background: var(--primary-l); }
.sidebar-logo-sub, .sidebar-user-streak { color: var(--text-m); font-weight: 600; }
.sidebar-user img  { border-color: var(--border); }
.mob-btn span      { background: var(--text-h); }

/* Page hero */
.pg-hero         { background: var(--primary); border-bottom: none; }
.pg-hero::before, .pg-hero::after { display: none; }
.pg-hero h1      { color: #fff; font-weight: 800; }
.pg-hero p       { color: rgba(255,255,255,.92); }

/* Surfaces */
.pg-card         { box-shadow: var(--sh-sm); border: 1px solid var(--border); }
.site-footer     { background: #fff; border-top: 1px solid var(--border); }
.ft-brand > p, .ft-col a { color: #334155; }
.ft-col-ttl      { color: var(--text-h); }
.ft-col a:hover  { color: var(--primary); }
.ft-copy, .ft-btm-note { color: var(--text-m); }

/* Stat cards */
.stat-card .stat-value { color: var(--text-h); }

/* Free 1-on-1 trial class — the one orange call-to-action */
:root { --trial: #ea580c; --trial-d: #c2410c; }
.btn-trial        { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 16px; background: var(--trial); color: #fff; border: none; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 700; white-space: nowrap; cursor: pointer; font-family: inherit; transition: background .15s, box-shadow .15s; box-shadow: 0 1px 2px rgba(194,65,12,.35); }
.btn-trial:hover  { background: var(--trial-d); color: #fff; box-shadow: 0 3px 10px rgba(194,65,12,.3); }
.btn-trial-lg     { padding: 16px 28px; font-size: 15px; border-radius: 12px; }
.btn-trial small  { font-size: 11px; font-weight: 700; background: rgba(255,255,255,.22); padding: 2px 8px; border-radius: 100px; letter-spacing: .02em; }
.nav-trial        { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--trial); color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.25; transition: background .15s; }
.nav-trial:hover  { background: var(--trial-d); color: #fff; }
.nav-trial .icon  { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; }
.nav-trial-sub    { display: block; font-size: 11px; font-weight: 600; opacity: .92; }
.mob-nav a.mob-trial, .mob-nav a.mob-trial:hover { background: var(--trial); color: #fff; font-weight: 700; justify-content: space-between; }
@media (max-width: 1100px) { .hdr-auth .btn-trial small { display: none; } }
.nav-section      { padding: 4px 12px 6px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-sm); }

/* ================================================================
   HEADERS — public top bar, app top bar, mobile bar
   ================================================================ */
#site-hdr        { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--border); box-shadow: 0 1px 3px rgba(15,23,42,.04); }
.hdr-logo        { margin-right: 40px; }
.hdr-nav         { gap: 4px; height: 100%; }
.hdr-nav a       { position: relative; display: flex; align-items: center; height: 100%; padding: 0 14px; border-radius: 0; font-size: 14.5px; font-weight: 600; color: var(--text-h); background: none; }
.hdr-nav a:hover { color: var(--primary); background: none; }
.hdr-nav a.on    { color: var(--primary); background: none; }
.hdr-nav a.on::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--primary); border-radius: 2px 2px 0 0; }
.hdr-auth        { gap: 8px; }
.hdr-auth .btn-ghost { font-size: 14px; color: var(--text-h); padding: 9px 14px; }
.hdr-auth .btn-ghost:hover { color: var(--primary); }
.hdr-auth .btn-cta, .hdr-auth .btn-trial { padding: 9px 18px; font-size: 14px; font-weight: 700; border-radius: var(--r-sm); }
.hdr-auth .btn-trial { box-shadow: none; }

.app-topbar      { justify-content: space-between; gap: 16px; height: 60px; padding: 0 32px; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
.topbar-crumb    { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; color: var(--text-sm); margin-right: auto; }
.topbar-crumb .sep    { color: var(--border-s); }
.topbar-crumb strong  { color: var(--text-h); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-icon-btn { width: 36px; height: 36px; border-radius: var(--r-sm); background: #fff; color: var(--text-b); }
.topbar-icon-btn:hover { background: var(--bg); border-color: var(--border-s); color: var(--text-h); }
.topbar-badge    { background: var(--red); font-weight: 700; }
.topbar-profile  { height: 36px; padding: 0 10px 0 4px; border-radius: var(--r-sm); background: #fff; }
.topbar-profile:hover { background: var(--bg); border-color: var(--border-s); }
.topbar-profile img   { width: 26px; height: 26px; }
.topbar-profile-name  { font-weight: 600; }
.topbar-profile-caret { display: flex; color: var(--text-sm); }
.topbar-dropdown      { min-width: 180px; box-shadow: 0 8px 24px rgba(15,23,42,.10); }
.topbar-dropdown-item { padding: 8px 12px; font-weight: 500; }
.topbar-dropdown-item--danger { color: #b91c1c; }

.mobile-header   { background: #fff; border-bottom: 1px solid var(--border); padding: 10px 16px; }
.sidebar-logo    { padding: 18px; }

@media (max-width: 640px) {
    .app-topbar   { height: 52px; padding: 0 16px; }
    .topbar-crumb > span { display: none; }
}

/* Pagination (resources/views/vendor/pagination/fapdiet.blade.php) */
.pager            { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.pager-info       { font-size: 13px; color: var(--text-m); }
.pager-info strong{ color: var(--text-h); font-weight: 600; }
.pager-list       { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.pager-btn        { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-sm); background: #fff; font-size: 13.5px; font-weight: 600; color: var(--text-h); transition: background .15s, border-color .15s, color .15s; }
a.pager-btn:hover { border-color: var(--primary); color: var(--primary); }
.pager-btn.is-current  { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager-btn.is-disabled { color: var(--text-sm); background: var(--bg); cursor: default; }
.pager-gap        { padding: 0 4px; color: var(--text-sm); }
@media (max-width: 480px) { .pager { justify-content: center; } .pager-info { width: 100%; text-align: center; } }
