:root{
  --bg:#0f1511;
  --bg-soft:#161f18;
  --surface:#1c2720;
  --surface-2:#243228;
  --surface-3:#2f3d31;
  --text:#f3f7f2;
  --muted:#a8b8ac;
  --line:rgba(202,227,209,.16);
  --primary:#57d890;
  --primary-strong:#25c173;
  --accent:#d9ff6e;
  --danger:#ff5d72;
  --warm:#ffc46b;
  --glow:0 16px 36px rgba(8,18,12,.45);
}

*{box-sizing:border-box;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
html{background:#0f1511;height:100%}
body{
  margin:0;
  min-height:100vh;
  min-height:100dvh;
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 8% -20%,rgba(103,219,146,.22),transparent 55%),
    radial-gradient(900px 500px at 92% 0%,rgba(217,255,110,.14),transparent 60%),
    linear-gradient(180deg,#0a100c,#101812 30%,#0f1511);
  display:flex;
  justify-content:center;
}
body.cordova-immersive{
  display:block;
  min-height:100%;
  overflow:hidden;
}

h1,h2,h3,p{margin:0}

.phone{width:100%;max-width:420px;min-height:100vh;min-height:100dvh;padding:calc(20px + env(safe-area-inset-top)) 18px calc(82px + env(safe-area-inset-bottom)) ;position:relative}
.phone-swipe{display:flex;flex-direction:column;width:100%;max-width:420px;min-height:100vh;min-height:100dvh;padding:calc(16px + env(safe-area-inset-top)) 16px calc(112px + env(safe-area-inset-bottom))}

.header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:12px}
.header h1{font-size:28px;letter-spacing:.01em}

.btn{
  border:1px solid var(--line);
  background:linear-gradient(180deg,#233227,#1c2620);
  box-shadow:0 8px 18px rgba(0,0,0,.2);
  color:var(--text);
  padding:10px 14px;
  border-radius:14px;
  cursor:pointer;
  transition:.2s ease;
}
.btn:hover{transform:translateY(-1px)}

.search{
  width:100%;padding:14px 16px;border:1px solid var(--line);border-radius:16px;
  background:#1a241d;color:var(--text);margin-bottom:18px;outline:none
}
.search::placeholder{color:#86988a}

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

.hero{
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  background:linear-gradient(145deg,#2f4c38,#1f3227 52%,#26372b);
  box-shadow:var(--glow);
  margin-bottom:20px;
}
.hero-image{
  height:192px;
  background:radial-gradient(circle at 20% 20%,rgba(217,255,110,.25),transparent 45%),
    linear-gradient(130deg,#203227,#30573d);
  display:flex;
  align-items:flex-end;
  padding:18px;
}
.hero-title{font-size:30px;font-weight:800;line-height:1.1}
.hero-sub{padding:14px 18px;color:#d2e2d6;font-size:14px}

.section-title{font-size:25px;font-weight:800;margin:14px 0 14px}

.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.card{
  border:1px solid var(--line);
  padding:14px;background:linear-gradient(180deg,#202d24,#1a251d);
  cursor:pointer;border-radius:18px;
  box-shadow:0 12px 28px rgba(0,0,0,.25);transition:.25s ease;
  min-width:0;
}
.card:hover{transform:translateY(-3px)}
.recipe-img{height:144px;border-radius:14px;overflow:hidden;background:#111a14;border:1px solid rgba(202,227,209,.12)}
.recipe-photo{width:100%;height:100%;object-fit:cover;display:block}
.recipe-emoji{font-size:54px;text-align:center;padding:36px 0}
.recipe-badge{
  margin-top:10px;
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(126,225,165,.45);
  background:rgba(87,216,144,.14);
  color:#d9f7e3;
  font-size:11px;
  font-weight:700;
  letter-spacing:.02em;
}
.card-title{font-weight:700;line-height:1.25;margin-top:6px;overflow-wrap:anywhere}
.small{font-size:12px;color:var(--muted);margin-top:6px}

.bottom-nav{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:0;
  width:min(420px,100vw);
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:0;
  align-items:center;
  padding:6px 10px 8px;
  min-height:64px;
  background:rgba(8,13,10,.94);
  backdrop-filter:blur(14px);
  border-top:1px solid rgba(144,194,160,.24);
  border-left:1px solid rgba(202,227,209,.09);
  border-right:1px solid rgba(202,227,209,.09);
  border-radius:0;
  box-shadow:0 -14px 34px rgba(0,0,0,.52)
}
.nav-btn{
  position:relative;
  border:none;
  border-radius:16px;
  padding:2px 4px 1px;
  text-align:center;
  cursor:pointer;
  color:#95a89c;
  background:transparent;
  transition:.2s ease;
  font-weight:500;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
}
.nav-btn .nav-icon{font-size:22px;line-height:1}
.nav-btn .nav-label{font-size:10px;line-height:1.05}
.nav-btn.active{color:var(--text)}
.nav-btn.active .nav-icon{color:var(--primary)}
.nav-btn:hover{color:#dce6df}

.swipe-stage{display:flex;align-items:flex-start;justify-content:center;margin-top:12px;flex:1 1 auto;min-height:0}
.phone-swipe .small{margin-bottom:2px;padding-left:2px}
.swipe-stack{position:relative;width:100%;max-width:420px;height:clamp(500px,calc(100dvh - 280px),700px)}
.big-card{
  width:100%;height:100%;border:1px solid var(--line);background:linear-gradient(160deg,#24382d,#1d2b23 40%,#18221c);min-height:0;
  border-radius:34px;box-shadow:0 28px 50px rgba(2,8,5,.6);position:absolute;inset:0;touch-action:none;transition:transform .32s cubic-bezier(.22,.8,.23,1),opacity .32s ease,box-shadow .32s ease;overflow:hidden
}
.swipe-card-active{z-index:2}
.swipe-card-next,.swipe-card-placeholder{transform:translateY(16px) scale(.965);opacity:.88;filter:saturate(.9);z-index:1}
.swipe-card-placeholder{background:linear-gradient(160deg,#1c2a22,#162019 40%,#131b16);border-style:dashed}
.big-media{height:100%;overflow:hidden;background:#111a14;position:relative}
.big-media::after{
  content:'';
  position:absolute;
  inset:auto 0 0;
  height:36%;
  background:linear-gradient(180deg,rgba(8,14,11,0) 0%,rgba(8,14,11,.12) 22%,rgba(12,18,14,.54) 64%,rgba(15,21,17,.84) 100%);
  pointer-events:none;
}
.swipe-photo{width:100%;height:100%;object-fit:cover;display:block}
.swipe-body{position:absolute;left:0;right:0;bottom:0;padding:24px 20px 22px;display:flex;flex-direction:column;justify-content:flex-end;gap:14px;z-index:1;pointer-events:none}
.big-card h2{font-size:clamp(32px,6vw,40px);line-height:1.02;margin:0;overflow-wrap:anywhere;text-shadow:0 6px 18px rgba(0,0,0,.35)}
.big-meta{display:flex;flex-wrap:wrap;gap:10px}
.big-meta span{font-size:14px;color:#d5e3d8;padding:10px 14px;border-radius:999px;background:rgba(34,50,41,.92);border:1px solid var(--line)}

.swipe-badge{
  position:absolute;top:28px;padding:9px 16px;border:2px solid currentColor;border-radius:12px;font-weight:800;letter-spacing:.16em;
  opacity:0;background:rgba(10,21,14,.75);transition:opacity .16s ease
}
.swipe-badge-like{left:20px;color:var(--primary);transform:rotate(-14deg)}
.swipe-badge-nope{right:20px;color:var(--danger);transform:rotate(14deg)}
.fly-right{transform:translate3d(130%, -4%, 0) rotate(24deg)!important;opacity:0}
.fly-left{transform:translate3d(-130%, -4%, 0) rotate(-24deg)!important;opacity:0}

.actions{display:flex;gap:24px;justify-content:center;align-items:center;margin-top:18px;margin-bottom:12px;padding:0 4px 6px;flex-shrink:0;position:relative;z-index:2}
.circle{width:72px;height:72px;border-radius:999px;border:1px solid rgba(202,227,209,.3);display:flex;align-items:center;justify-content:center;font-size:34px;cursor:pointer;background:rgba(22,34,27,.96);box-shadow:0 14px 28px rgba(0,0,0,.26),inset 0 0 0 1px rgba(255,255,255,.04);transition:transform .18s ease,box-shadow .18s ease}
.circle:hover{transform:translateY(-2px)}
.circle.like{color:var(--primary)}
.circle.dislike{color:#e6ece7}
.circle#swipeInfo{font-weight:600;font-size:38px}

.list-item{border:1px solid var(--line);padding:14px;background:linear-gradient(180deg,#202d24,#18221b);margin-bottom:12px;display:flex;justify-content:space-between;align-items:center;border-radius:16px;box-shadow:0 10px 24px rgba(0,0,0,.2)}
.profile{text-align:center;margin:16px 0 30px}
.profile-hero{padding-top:8px;padding-bottom:10px}
.profile-subtitle{margin:10px 0 0;letter-spacing:.02em}
.avatar{width:106px;height:106px;border-radius:30px;background:linear-gradient(140deg,#76e7a9,#2a9f67);margin:0 auto 12px;display:flex;justify-content:center;align-items:center;font-size:44px;border:2px solid rgba(255,255,255,.3);box-shadow:0 18px 30px rgba(18,72,46,.5)}
.avatar-image{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}
.profile-stats-primary{margin-top:6px}
.profile-stats-secondary{margin-top:10px}
.profile-card{padding:18px 16px;border-radius:22px}
.profile-action-card{display:flex;align-items:center;min-height:76px;font-size:18px;line-height:1.35;font-weight:600}
.profile-list-item{padding:18px 20px;border-radius:20px;gap:14px;justify-content:flex-start;font-size:18px}
.profile-list-item span:first-child{font-size:26px;line-height:1}
.profile-settings-btn{min-width:54px;min-height:54px;font-size:25px;border-radius:17px;padding:10px 15px}
.profile-admob-btn{width:100%;margin:10px 0 8px;font-size:18px;font-weight:700;padding:15px 18px}
.profile-admob-hint,.profile-admob-status{margin:0 0 10px;text-align:left;color:#d7e5db;line-height:1.45}
.profile-admob-status.error{color:#ffb1b1}
.modal-back-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.compact-back-btn{width:auto;max-width:max-content;padding:11px 16px;border-radius:16px}

.modal{position:fixed;inset:0;z-index:1000;background:rgba(6,10,8,.72);display:flex;justify-content:center;align-items:flex-start;overflow:auto;padding:20px}
.modal-content{width:420px;background:linear-gradient(180deg,#141f18,#19251d);padding:18px;border:1px solid var(--line);margin-bottom:30px;border-radius:20px;box-shadow:0 22px 52px rgba(0,0,0,.55)}
.modal.auth-backdrop{background:#0c120e;align-items:center;padding:0}
.modal.auth-backdrop .modal-content{
  width:min(100vw,520px);
  min-height:100vh;
  margin:0;
  border:none;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  padding:0;
}
.tags .btn.active{background:linear-gradient(135deg,var(--primary),#84e8af);color:#0b2819;font-weight:700}
.filter-modal{display:flex;flex-direction:column;gap:14px}
.filter-section{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background:linear-gradient(180deg,#1d2a22,#17211b);
}
.filter-section h3{margin-bottom:10px;font-size:16px;color:#dce9df}
.filter-options{display:flex;gap:10px;flex-wrap:wrap}
.filter-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.filter-actions .btn{padding:12px 10px}
.ingredient{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:8px 0}
input,textarea,select{border:1px solid var(--line);padding:10px;background:#111a14;color:var(--text);width:100%;border-radius:12px}
textarea{min-height:100px}
.empty-state{background:linear-gradient(180deg,#1c2b22,#18231c);border:1px solid var(--line);padding:22px;border-radius:20px;box-shadow:var(--glow)}
.swipe-limit-empty-state{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.swipe-limit-empty-state h3{
  font-size:20px;
  line-height:1.1;
}
.swipe-limit-empty-state p{
  color:#d7e4da;
  line-height:1.45;
}
.swipe-limit-empty-state #watchRewardedForSwipes{
  margin-top:6px;
  align-self:flex-start;
}
.hidden{display:none}

.lists-stack{display:flex;flex-direction:column;gap:12px}

.new-list-button{width:100%;font-size:20px;padding:16px 20px;font-weight:700;display:block;margin-bottom:8px}
.new-list-button.disabled,.new-list-button:disabled{opacity:.6;cursor:not-allowed;transform:none;box-shadow:none}
.list-limit-hint{margin:0 0 14px;color:#bdd0c2;font-size:12px;text-align:right}
.list-form-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:8px}

.favorite-add-card{display:flex;flex-direction:column;justify-content:flex-start}
.add-favorite-media{display:flex;align-items:center;justify-content:center}
.add-favorite-plus{font-size:84px;line-height:1;color:var(--primary);font-weight:800}
.favorite-add-label{margin-top:10px;font-weight:800}

.list-overview-copy{color:#d3e3d6;line-height:1.45}

.list-card{
  width:100%;
  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(180deg,#1f2b23,#17211b);
  display:grid;
  grid-template-columns:28px 1fr;
  gap:12px;
  padding:14px;
  align-items:center;
}

.list-color{width:24px;height:24px;border-radius:999px;box-shadow:0 0 0 3px rgba(255,255,255,.08)}
.list-main{min-width:0}
.list-main h3{font-size:20px;margin-top:2px;overflow-wrap:anywhere}
.list-count{font-size:13px;color:#bdd0c2;margin-top:6px}

.recipe-detail{display:flex;flex-direction:column;gap:14px}
.recipe-detail-top{display:flex;justify-content:space-between;align-items:center}
.recipe-like-btn{font-size:24px;line-height:1;padding:9px 13px;color:#fff;min-width:64px;min-height:59px;display:flex;align-items:center;justify-content:center;border-radius:18px}
.recipe-dislike-btn{font-size:30px;line-height:1;padding:8px 14px;color:#fff;min-width:74px;min-height:62px;display:flex;align-items:center;justify-content:center}
.recipe-like-btn.active{color:var(--primary)}
.heart-icon{display:block;width:1em;height:1em;fill:currentColor}
.nav-heart-icon{font-size:20px}
.swipe-heart-icon{font-size:36px}
.modal-heart-icon{font-size:27px}

.recipe-hero{
  border:1px solid var(--line);
  background:linear-gradient(140deg,#2c4336,#1b2a22);
  border-radius:20px;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:14px;
  align-items:stretch;
}

.recipe-hero-media{
  width:100%;height:clamp(180px,28vh,280px);border-radius:18px;overflow:hidden;
  border:1px solid var(--line);background:rgba(10,18,14,.35);
  flex-shrink:0;
}
.detail-photo{width:100%;height:100%;object-fit:cover;display:block}

.recipe-hero-content{padding:0 6px 4px}
.recipe-hero-content h1{font-size:clamp(28px,6vw,38px);line-height:1.08;overflow-wrap:anywhere}
.recipe-meta-tags{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.recipe-meta-tags span{font-size:12px;padding:6px 10px;border-radius:999px;background:#213129;border:1px solid var(--line);color:#dbe9dd}

.recipe-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:4px}
.recipe-tabs .btn{padding:10px 8px;text-align:center}

.portion-panel{display:flex;justify-content:space-between;align-items:center;padding:14px;border-radius:18px;border:1px solid var(--line);background:#1a251e}

.recipe-section-title{font-size:30px;line-height:1.1;margin-top:8px}
.recipe-ingredients{display:flex;flex-direction:column;gap:8px}
.ingredient-card{border:1px solid var(--line);border-radius:14px;background:#152019;padding:12px 14px;display:flex;gap:10px;align-items:center;justify-content:space-between}
.ingredient-card:last-child{border-bottom:1px solid var(--line)}
.ingredient-text{line-height:1.4;flex:1}
.ingredient-pick{border:1px solid var(--line);background:#1e2b23;color:#dce8dd;border-radius:999px;width:34px;height:34px;cursor:pointer;font-size:18px;line-height:1}
.ingredient-pick.picked{background:rgba(87,216,144,.2);border-color:rgba(87,216,144,.7);color:var(--primary);font-weight:700}
.ingredient-card.picked{border-color:rgba(87,216,144,.5)}
.portion-panel .btn:disabled{opacity:.45;cursor:not-allowed;transform:none}

.tip-banner{border:1px solid rgba(126,214,223,.28);background:linear-gradient(130deg,rgba(126,214,223,.2),rgba(87,216,144,.18));padding:14px;border-radius:16px;color:#e6f5ee;line-height:1.4}

.nutrition-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.nutrition-item{border:1px solid var(--line);background:#16221b;border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:6px}
.nutrition-item span{color:#b8c9bc;font-size:13px}
.nutrition-item strong{font-size:24px}
.nutrition-item.highlight{background:linear-gradient(145deg,rgba(87,216,144,.2),rgba(217,255,110,.14));border-color:rgba(126,225,165,.45)}

.steps-list{display:flex;flex-direction:column;gap:10px}
.step-card{border:1px solid var(--line);border-radius:18px;padding:14px;background:#151f19;display:flex;gap:12px;align-items:flex-start}
.step-card h3{font-size:24px;margin-bottom:8px}
.step-card p{color:#d2dfd4;line-height:1.5}
.step-index{min-width:42px;height:42px;border-radius:999px;background:#1f2f26;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-weight:700;color:#bcd0c1}

.shopping-items{display:flex;flex-direction:column;gap:10px;margin:12px 0}
.shopping-row{border:1px solid var(--line);border-radius:16px;padding:12px;background:#161f1a;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center}
.shopping-name{line-height:1.35}
.shopping-name.done{text-decoration:line-through;color:#8ea194}
.shopping-check{display:flex;align-items:center}
.shopping-check input{display:none}
.shopping-dot{width:24px;height:24px;border-radius:999px;border:2px solid #9eb3a4;display:inline-block;position:relative}
.shopping-check input:checked + .shopping-dot{border-color:var(--primary);background:rgba(87,216,144,.15)}
.shopping-check input:checked + .shopping-dot::after{content:'✓';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--primary);font-size:14px}

@media (pointer:coarse){
  body{display:block}
  .phone,.phone-swipe,.swipe-stack{max-width:none}
  .modal-content{width:min(calc(100% - 20px),520px)}
}

@media (max-width:520px){
  .phone{width:100%;padding:calc(16px + env(safe-area-inset-top)) 12px calc(98px + env(safe-area-inset-bottom))}
  .phone-swipe{width:100%;padding:calc(12px + env(safe-area-inset-top)) 12px calc(96px + env(safe-area-inset-bottom))}
  .header{margin-bottom:14px}
  .header h1{font-size:clamp(24px,7vw,34px)}
  .swipe-stack{width:100%;height:clamp(420px,calc(100dvh - 290px),580px)}
  .big-card{border-radius:30px}
  .swipe-body{padding:18px 16px 18px}
  .big-card h2{font-size:clamp(24px,8.6vw,38px)}
  .big-meta{gap:8px}
  .big-meta span{font-size:13px;padding:8px 11px}
  .actions{gap:16px;padding:0 0 4px}
  .circle{width:64px;height:64px;font-size:30px}
  .list-card{padding:16px;grid-template-columns:28px minmax(0,1fr)}
  .new-list-button{font-size:18px;padding:16px 18px}
  .settings-topbar{align-items:flex-start}
  .settings-topbar h2{font-size:24px}
}

@media (max-height:860px){
  .phone-swipe{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
  .swipe-stack{height:clamp(400px,calc(100dvh - 300px),540px)}
  .big-card h2{font-size:clamp(25px,5vw,32px)}
  .swipe-body{padding:18px 16px 16px}
}

@media (max-height:760px){
  .phone{padding-bottom:calc(94px + env(safe-area-inset-bottom))}
  .phone-swipe{padding-bottom:calc(90px + env(safe-area-inset-bottom))}
  .swipe-stack{height:clamp(360px,calc(100dvh - 280px),470px)}
  .big-card h2{font-size:clamp(22px,4vw,26px);margin-bottom:4px}
  .swipe-body{padding:14px 14px 14px;gap:10px}
  .big-meta span{padding:6px 10px;font-size:12px}
  .actions{margin-top:10px}
  .circle{width:54px;height:54px;font-size:26px}
}

@media (max-width:440px){
  .phone,.bottom-nav,.modal-content{width:100%}
  .bottom-nav{width:100%}
}

@media (min-width:700px){
  .recipe-hero-content h1{font-size:34px}
}

.list-form{display:flex;flex-direction:column;gap:12px}
.form-group{display:flex;flex-direction:column;gap:8px}
.form-group label{font-size:13px;color:#d7e6da}
.color-row{gap:12px;margin-top:4px}
.color-pick{width:32px;height:32px;border-radius:999px;border:2px solid rgba(255,255,255,.25);cursor:pointer;box-shadow:0 6px 14px rgba(0,0,0,.25)}
.color-pick.active{transform:scale(1.08);border-color:#fff;box-shadow:0 0 0 3px rgba(126,214,223,.35)}

.settings-modal{display:flex;flex-direction:column;gap:16px}
.settings-topbar{display:flex;justify-content:space-between;align-items:center;gap:12px}
.settings-topbar h2{font-size:28px;line-height:1.1}
.settings-close-btn{padding:10px 14px;border-radius:16px;min-width:auto}
.settings-hero{padding:18px;border:1px solid rgba(126,225,165,.22);border-radius:22px;background:radial-gradient(circle at top right,rgba(87,216,144,.18),transparent 35%),linear-gradient(145deg,#203027,#17211b 60%,#141d17);box-shadow:var(--glow)}
.settings-kicker{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#b8d7bf;margin-bottom:8px}
.settings-hero p{color:#d7e4d9;line-height:1.5}
.settings-section{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#1d2a22,#17211b)}
.settings-section label{font-size:13px;color:#d2e2d6;font-weight:700}
.settings-note{border:1px solid var(--line);border-radius:14px;padding:14px;background:#111a14;color:#d7e4d9;line-height:1.5}
.settings-actions{display:flex;flex-direction:column;gap:10px;margin-top:2px}
.settings-actions .btn{width:100%}
.settings-danger{color:#ff9ba8}

.excluded-modal{display:flex;flex-direction:column;gap:14px}
.excluded-hero{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:16px 18px;border:1px solid rgba(126,225,165,.24);border-radius:20px;background:radial-gradient(circle at top right,rgba(87,216,144,.16),transparent 34%),linear-gradient(145deg,#203027,#17211b 60%,#141d17)}
.excluded-kicker{margin:0 0 6px;color:#b8d7bf;font-size:12px;letter-spacing:.12em;text-transform:uppercase}
.excluded-note{color:#c7d9cc;line-height:1.5;margin-top:8px}
.excluded-count{padding:9px 12px;border-radius:999px;border:1px solid rgba(126,225,165,.28);background:rgba(255,255,255,.05);font-weight:700;white-space:nowrap}
.excluded-count.is-limit{border-color:rgba(255,93,114,.45);color:#ffd2d8}
.excluded-add-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.excluded-add-row .search{margin:0}
.excluded-limit-note{font-size:12px;color:#ffd2d8;margin-top:-4px}
.excluded-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:2px}
.excluded-chip{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border-radius:999px;border:1px solid rgba(126,225,165,.45);background:linear-gradient(160deg,rgba(64,122,88,.45),rgba(24,34,27,.95));max-width:100%}
.excluded-chip span{font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.excluded-remove{width:24px;height:24px;border-radius:999px;border:1px solid rgba(255,255,255,.28);background:#152019;color:#f3ffef;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}
.excluded-remove:hover{border-color:#ff9ba8;color:#ffb7c0}

.diet-modal{display:flex;flex-direction:column;gap:12px}
.diet-options{display:flex;flex-direction:column;gap:10px;margin-top:4px}
.diet-option{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,#202d24,#18221b);cursor:pointer;transition:.2s ease;box-shadow:0 10px 24px rgba(0,0,0,.2)}
.diet-option:hover{transform:translateY(-1px)}
.diet-option input{display:none}
.diet-radio-dot{width:18px;height:18px;border-radius:999px;border:2px solid #9eb3a4;display:inline-block;position:relative;flex-shrink:0}
.diet-option.active{border-color:rgba(87,216,144,.6);background:linear-gradient(180deg,rgba(87,216,144,.18),rgba(24,34,27,.95))}
.diet-option input:checked + .diet-radio-dot{border-color:var(--primary);background:rgba(87,216,144,.14)}
.diet-option input:checked + .diet-radio-dot::after{content:'';position:absolute;inset:3px;border-radius:999px;background:var(--primary)}

.auth-shell{
  width:100%;
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:24px 18px;
}
.auth-panel{
  width:min(100%,420px);
  display:flex;
  flex-direction:column;
  gap:24px;
  padding:28px 22px 22px;
  border-radius:28px;
  border:1px solid rgba(202,227,209,.16);
  background:
    radial-gradient(140px 140px at top right,rgba(217,255,110,.12),transparent 60%),
    linear-gradient(180deg,rgba(24,35,28,.96),rgba(14,22,17,.98));
  box-shadow:0 22px 56px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
}
.auth-hero{display:flex;flex-direction:column;gap:16px}
.auth-brand-row{display:flex;align-items:center;gap:14px}
.auth-brand-logo{
  width:54px;
  height:54px;
  object-fit:contain;
  flex:0 0 auto;
  filter:drop-shadow(0 12px 24px rgba(57,148,98,.22));
}
.auth-brand{
  font-size:15px;
  font-weight:700;
  letter-spacing:.02em;
  color:#f4f8f3;
}
.auth-kicker{font-size:13px;color:#9eb3a4;line-height:1.4;margin-top:3px}
.auth-panel h2{font-size:32px;line-height:1.08;letter-spacing:-.03em;max-width:12ch}
.auth-copy{color:#d1dfd3;line-height:1.6;font-size:16px;max-width:30ch}
.auth-actions{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding-top:4px;
}
.auth-google-slot{display:flex;justify-content:center}
.auth-google-slot > div{width:100% !important;display:flex;justify-content:center}
.auth-google-slot iframe{max-width:100%}
.auth-google-btn,.auth-guest-btn{
  width:100%;
  min-height:54px;
  padding:14px 16px;
  font-weight:700;
  border-radius:18px;
}
.auth-google-btn{
  background:linear-gradient(180deg,#2b3c30,#223128);
}
.auth-guest-btn{
  background:rgba(255,255,255,.03);
  box-shadow:none;
}
.auth-note{margin-top:2px}
@media (max-width:480px){
  .auth-shell{padding:20px 14px}
  .auth-panel{padding:24px 18px 18px;border-radius:24px}
  .auth-panel h2{font-size:28px}
  .auth-copy{font-size:15px}
}

.feedback-modal{display:flex;flex-direction:column;gap:14px}
.feedback-hero{padding:18px;border:1px solid rgba(126,214,223,.24);border-radius:20px;background:radial-gradient(circle at top right,rgba(126,214,223,.14),transparent 36%),linear-gradient(145deg,#203027,#162019)}
.feedback-kicker{margin:0 0 6px;color:#b9d6df;font-size:12px;letter-spacing:.12em;text-transform:uppercase}
.feedback-intro{margin-top:10px;margin-bottom:0;color:#c7d9cc;line-height:1.55}
.feedback-form{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:linear-gradient(180deg,#1c2821,#17211b);
}
.feedback-form label{font-size:13px;color:#d7e6da;font-weight:600;margin-top:2px}
.feedback-form input,.feedback-form textarea{background:#111a14}
.feedback-label-note{color:#a9bbaf;font-weight:500}
.feedback-hint,.feedback-counter{font-size:12px;color:#a9bbaf;margin-top:-4px}
.feedback-counter{text-align:right}

.legal-modal{display:flex;flex-direction:column;gap:14px}
.legal-topbar{display:flex;justify-content:space-between;align-items:center;gap:12px}
.legal-badge{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(202,227,209,.22);
  background:rgba(255,255,255,.04);
  color:#d7e6da;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.legal-hero-card{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:12px;
  align-items:end;
  border:1px solid rgba(126,225,165,.28);
  border-radius:22px;
  padding:18px;
  background:radial-gradient(circle at top right,rgba(217,255,110,.12),transparent 36%),linear-gradient(145deg,#223328,#18241d 55%,#162019);
  box-shadow:0 18px 36px rgba(0,0,0,.24);
}
.legal-eyebrow{margin:0 0 6px;color:#b8d7bf;font-size:12px;letter-spacing:.12em;text-transform:uppercase}
.legal-hero-card h2,.legal-reader-hero h2{font-size:28px;line-height:1.08;margin:0 0 10px}
.legal-intro{color:#c7d9cc;line-height:1.55}
.legal-list{display:flex;flex-direction:column;gap:12px}
.legal-entry{
  width:100%;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  text-align:left;
  color:var(--text);
  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(180deg,#1d2a22,#17211b);
  padding:16px;
  cursor:pointer;
  box-shadow:0 12px 28px rgba(0,0,0,.2);
  transition:.2s ease;
}
.legal-entry:hover{transform:translateY(-1px);border-color:rgba(126,225,165,.42)}
.legal-entry-icon{
  width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);font-size:22px;flex-shrink:0;
}
.legal-entry-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.legal-entry-copy strong{font-size:18px;line-height:1.2}
.legal-entry-copy span,.legal-entry-copy small{color:#c7d9cc;line-height:1.4}
.legal-entry-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.legal-entry-arrow{font-size:22px;color:#b6cabd}
.legal-privacy .legal-entry-icon,.legal-reader.legal-privacy .legal-entry-icon{background:rgba(87,216,144,.16);border-color:rgba(87,216,144,.28)}
.legal-imprint .legal-entry-icon,.legal-reader.legal-imprint .legal-entry-icon{background:rgba(126,214,223,.16);border-color:rgba(126,214,223,.3)}
.legal-terms .legal-entry-icon,.legal-reader.legal-terms .legal-entry-icon{background:rgba(217,255,110,.13);border-color:rgba(217,255,110,.26)}
.legal-reader-hero{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:14px;
  align-items:start;
  padding:18px;
  border-radius:20px;
  border:1px solid var(--line);
  background:linear-gradient(180deg,#1c2821,#17211b);
  overflow:hidden;
}
.legal-reader-hero > div:last-child,.legal-reader-body, .legal-entry-copy{min-width:0}
.legal-reader-hero h2,.legal-reader-body p,.legal-reader-body li{overflow-wrap:anywhere;word-break:break-word}
.legal-reader-body h3{overflow-wrap:anywhere}
.legal-reader-body{
  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(180deg,#121a15,#141d17);
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height:62vh;
  overflow:auto;
}
.legal-reader-body p{margin:0;color:#dce8de;line-height:1.65}
.legal-reader-body li{margin-left:18px;color:#dce8de;line-height:1.6}
.legal-spacer{height:4px}
@media (max-width:440px){
  .phone{padding:22px 18px 106px}
  .header{margin-bottom:14px}
  .profile{margin:10px 0 22px}
  .stats{gap:12px;margin-bottom:14px}
  .profile-card{padding:16px 14px}
  .profile-action-card{min-height:72px;font-size:17px}
  .profile-list-item{padding:16px 18px;font-size:17px}
  .modal-content{padding:16px}
  .excluded-hero,.feedback-hero,.legal-reader-hero{padding:16px}
  .excluded-add-row{grid-template-columns:1fr}
  .excluded-add-row .btn{width:100%}
  .legal-topbar{align-items:flex-start;flex-wrap:wrap}
  .legal-reader-hero{grid-template-columns:1fr}
}

.add-to-list-modal{display:flex;flex-direction:column;gap:14px}
.add-to-list-head{display:flex;flex-direction:column;gap:8px}
.add-to-list-grid{display:flex;flex-direction:column;gap:10px}
.add-to-list-option{
  width:100%;
  border:1px solid var(--line);
  border-radius:16px;
  background:linear-gradient(160deg,#233227,#1b261f);
  color:var(--text);
  text-align:left;
  padding:14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,.2);
  transition:.2s ease;
}
.add-to-list-option:hover{transform:translateY(-1px);border-color:rgba(126,225,165,.45)}
.add-to-list-name{font-weight:700;line-height:1.3}
.add-to-list-meta{
  font-size:12px;
  color:#d7e6da;
  border:1px solid rgba(202,227,209,.2);
  background:rgba(255,255,255,.04);
  padding:5px 9px;
  border-radius:999px;
  white-space:nowrap;
}

body.cordova-immersive .phone,
body.cordova-immersive .phone-swipe{
  min-height:100%;
  min-height:100dvh;
}
