@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Cormorant+Garamond:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    color-scheme: dark;
    --bg-main: #101b19;
    --surface: #172622;
    --surface-raised: #1d302a;
    --accent-gold: #d5b47b;
    --accent-cyan: #93b4a2;
    --ink: #eeeae0;
    --muted: #a2b1a9;
    --border-glass: rgba(216,224,210,.12);
    --font-body: 'Manrope', sans-serif;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --text-xs: .75rem;
    --text-sm: .875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.5rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 145px; }
body {
    margin: 0; background: var(--bg-main); color: var(--ink);
    font: 400 var(--text-sm)/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
    padding-bottom: 0; overflow-x: hidden;
}
button, input, textarea, select { font-family: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, [role="button"]:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 4px; }
input:focus, textarea:focus, select:focus { outline: 1px solid var(--accent-gold)!important; border-color: var(--accent-gold)!important; }
.hidden { display: none!important; }
.text-white { color: var(--ink); }
.text-slate-400, .text-slate-500 { color: var(--muted); }
.text-amber-300, .text-amber-400 { color: var(--accent-gold); }
[class*="text-[9px]"], [class*="text-[10px]"], [class*="text-[11px]"] { font-size: var(--text-xs); }
.app-header {
    position: sticky; top: 0; z-index: 50; background: rgba(16,27,25,.96);
    backdrop-filter: blur(18px); border-bottom: 1px solid var(--border-glass);
}
.topbar { max-width: 1200px; margin: auto; height: 84px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.brand-mark { color: var(--accent-gold); width: 43px; height: 49px; display: grid; place-items: center; border: 1px solid #8a7856; border-radius: 50% 50% 6px 6px; }
.brand-mark svg { width: 35px; height: 35px; }
.topbar h1 { font: 600 31px/1 var(--font-display); letter-spacing: -.8px; gap: 0; }
.brand-period { color: var(--accent-gold); }
#status { font-size: var(--text-xs); font-weight: 400; letter-spacing: .3px; margin-top: 5px; color: var(--muted); }
.topbar button { border-radius: 6px; min-height: 37px; background: transparent; border-color: var(--border-glass); font-weight: 500; font-size: var(--text-xs); padding: 8px 12px; box-shadow: none; }
.topbar button:hover { background: var(--surface-raised); }
.topbar [data-support-button] { color: var(--accent-gold); border-color: #5c553d; }
.main-navigation { max-width: 1200px; margin: auto; padding: 0 28px; display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.main-navigation::-webkit-scrollbar { display:none; }
.main-navigation > button { position: relative; flex-shrink: 0; min-height: 46px; padding: 8px 0 14px; border: 0; border-radius: 0; color: var(--muted); background: transparent; font-size: 13px; font-weight: 500; }
.main-navigation > button[aria-current="page"] { color: var(--accent-gold); }
.main-navigation > button[aria-current="page"]::after { content:""; position: absolute; bottom:0; left:0; right:0; height:2px; background: var(--accent-gold); }
.main-navigation > button:hover { color: var(--ink); }
.app-main { max-width:1200px; margin:auto; padding:0 28px; }
.editorial-hero { display:grid; grid-template-columns: 1.05fr 1fr; gap:42px; padding:48px 0 52px; align-items:center; }
.eyebrow { display:flex; align-items:center; gap:10px; color:var(--accent-gold); font-size:12px; font-weight:700; letter-spacing:2px; }
.eyebrow-line { width:24px; height:1px; background:var(--accent-gold); }
.hero-copy h2 { font:500 clamp(44px,5.2vw,72px)/1.01 var(--font-display); letter-spacing:-2.5px; margin:23px 0 21px; }
.hero-copy h2 span { color:var(--accent-gold); }
.hero-copy > p { color:var(--muted); max-width:430px; font-size:14px; line-height:1.9; }
.hero-actions { display:flex; align-items:center; gap:22px; margin-top:28px; }
.primary-action { display:inline-flex; align-items:center; justify-content:space-between; gap:28px; background:var(--accent-gold); color:#17231e; padding:14px 20px; border-radius:5px; font-weight:800; font-size:13px; min-height:48px; border:1px solid var(--accent-gold); transition:background .2s; }
.primary-action:hover { background:#e5c999; }
.text-action { color:var(--ink); font-size:12px; border-bottom:1px solid #46574b; padding:9px 0; display:flex; gap:14px; }
.text-action:hover { color:var(--accent-gold); }
.hero-note { display:flex; align-items:center; gap:8px; color:#8b9d93; font-size:12px; margin-top:31px; letter-spacing:.1px; white-space:nowrap; }
.status-dot { width:5px; height:5px; border-radius:50%; background:#a3bba5; }
.note-divider { width:1px; height:10px; background:#506052; margin:0 4px; }
.hero-photo { position:relative; margin:0; height:360px; overflow:hidden; border-radius:130px 8px 8px 8px; background:#162321; border:1px solid #304135; }
.hero-photo > img { width:100%; height:100%; object-fit:cover; }
.hero-photo::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(4,15,10,.78),transparent 55%); pointer-events:none; }
.hero-photo figcaption { position:absolute; left:30px; bottom:23px; z-index:1; }
.hero-photo figcaption > span { display:block; color:#ddcfb4; font-size:12px; letter-spacing:2px; margin-bottom:9px; }
.hero-photo figcaption strong { font:500 30px/1.05 var(--font-display); color:#f4efdc; }
.photo-edition { position:absolute; right:20px; bottom:26px; writing-mode:vertical-rl; z-index:1; font-size:12px; letter-spacing:1.3px; color:#c1c8b9; }
.discovery-controls { border-top:1px solid var(--border-glass); padding-top:30px; scroll-margin-top:145px; }
.section-intro { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:23px; }
.section-intro h2 { font:500 32px/1.15 var(--font-display); letter-spacing:-.4px; margin:7px 0 0; }
.section-intro .eyebrow { font-size:12px; letter-spacing:1.7px; }
.selection-summary, .section-aside { color:var(--muted); font-size:12px; padding-bottom:4px; }
#discovery-controls > .space-y-2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
#discovery-controls > .space-y-2 > * { margin:0; }
#discovery-controls input { min-height:48px; background:#192923; border:1px solid #34463c; border-radius:6px; font-size:13px; padding:12px 14px 12px 38px; color:var(--ink); }
#discovery-controls input::placeholder { color:#92a097; }
#discovery-controls input + * { margin:0; }
#discovery-controls .relative > span { top:14px; opacity:.55; }
#discovery-controls [data-ui="ui-13"], #discovery-controls [data-ui="ui-15"] { border-radius:6px; border-color:#34463c; background:transparent; color:var(--accent-gold); font-weight:600; font-size:12px; }
.filter-caption { margin:19px 0 10px; color:#87998d; font-size:12px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; }
#discovery-controls > .overflow-x-auto { gap:8px; padding-bottom:5px; }
#discovery-controls > .overflow-x-auto > div:first-child { border:1px solid #34463c; background:#13221c; border-radius:6px; }
#discovery-controls .taste-btn, #btn-fav-filter { min-height:32px; font-size:12px; border-radius:5px; background:transparent; border-color:#34463c; font-weight:500; padding:5px 10px; }
#discovery-controls button[class*="bg-amber-500"]:not(#btn-fav-filter) { background:#d5b47b; color:#17231e; border-color:#d5b47b; box-shadow:none; }
#discovery-controls > .overflow-x-auto > div:first-child > button { border-radius:4px; min-height:28px; }
#ingredients-section { padding:0; margin-top:18px; margin-bottom:42px; }
.ingredient-shelf { position:relative; display:flex; align-items:center; padding:8px 0; border:1px solid var(--border-glass); border-radius:9px; background:#13211d; }
#ingredients-container { gap:10px; padding:9px 45px; min-height:140px; }
#ingredients-container > div { background:#1a2a24; border:1px solid #304439; border-radius:7px; width:99px; height:119px; box-shadow:none; color:#c7d0c9; font-weight:500; transition:background .2s,border-color .2s; }
#ingredients-container > div:hover { background:#25372c; border-color:#857750; transform:translateY(-2px); }
#ingredients-container > div[aria-pressed="true"] { background:#d5b47b; color:#16231d; border-color:#ead0a2; }
#ingredients-container > div > span { font-size:12px; }
.ingredient-shelf > button { background:#20342b; border:1px solid #435442; color:var(--accent-gold); width:28px; height:38px; border-radius:4px; box-shadow:none; font-size:12px; }
.custom-scroll,.no-scrollbar { scrollbar-width:none; }
.custom-scroll::-webkit-scrollbar,.no-scrollbar::-webkit-scrollbar { display:none; }
.recipe-content { display:flex; flex-direction:column; gap:34px; }
#editorial-picks { order:0; }
#ready-section { order:1; }
#missing-section { order:2; }
#affiliate-banner { order:3; margin:6px 0 0; }
.acrylic-card { min-width:0; border:1px solid #34473b; background:var(--surface); box-shadow:none; backdrop-filter:none; transition:border-color .2s,transform .2s; }
.acrylic-card:hover { border-color:#677757; }
.cocktail-card { border-radius:10px; padding:13px; overflow:hidden; background:#172722; }
.cocktail-card > img { width:100%; height:220px; object-fit:cover; border-radius:6px; margin-bottom:18px; background:#102019; box-shadow:none; }
.cocktail-card h3 { font:600 30px/1.1 var(--font-display); letter-spacing:-.3px; color:var(--ink); margin:4px 0 7px; }
.cocktail-card .toggle-icon { font-size:12px; color:var(--accent-gold); padding-top:13px; }
.cocktail-card .instruction-text { background:#102019; line-height:1.85; border-radius:6px; color:#c1cdc4; }
.cocktail-card .details-section > div { border-radius:6px; }
.cocktail-card .details-section > div:first-child { margin-top:12px; }
.cocktail-card .portion-btn { min-width:36px; min-height:30px; border-radius:4px; font-size:12px; }
.cocktail-card .details-section .inline-flex { border-radius:5px; font-size:12px; }
.cocktail-card > button[data-action] { top:24px; border-radius:6px; box-shadow:none; background:#102019e6; min-width:34px; min-height:34px; }
.cocktail-card > button[data-action="favorite"] { right:24px; }
.details-section { max-height:0; overflow:hidden; opacity:0; transition:opacity .2s; }
.details-section.open { max-height:4000px; opacity:1; }
#editorial-picks-grid { gap:20px; }
#recipes-ready,#recipes-missing,#my-recipes-container { gap:20px; grid-template-columns:repeat(3,minmax(0,1fr)); }
#ready-section h2,#missing-section h2 { font-size:12px; letter-spacing:1.2px; color:var(--accent-gold); font-weight:600; }
#ready-section h2 > span:first-child,#missing-section h2 > span:first-child { display:none; }
#count-ready,#count-missing { border-radius:4px; background:#263a2d; color:#c0d2bf; border-color:#435745; }
#affiliate-banner { padding:18px 20px; background:transparent; border:1px solid var(--border-glass); border-radius:7px; box-shadow:none; }
#affiliate-banner > div > div > div:first-child { display:none; }
#affiliate-banner a { background:#25382b; border:1px solid #526346; color:var(--accent-gold); box-shadow:none; border-radius:4px; }
#affiliate-banner .uppercase { background:none; border:0; padding:0; color:var(--accent-gold); font-size:12px; margin-right:5px; }
.app-footer { border-top:1px solid var(--border-glass); padding:28px 0 35px; margin-top:40px; text-align:center; }
.app-footer > p { color:var(--muted); font-size:12px; margin-bottom:18px; }
#smart-recommendation-banner { padding:0; margin:22px 0; }
#smart-recommendation-banner .acrylic-card { border-radius:8px; background:#213629; }
#bar-dashboard,#custom-recipe-panel,#my-recipes-panel,#shopping-list-panel,#sync-panel { padding:0; margin:38px auto 0; max-width:920px; }
#bar-dashboard > .acrylic-card,#custom-recipe-panel > .acrylic-card,#my-recipes-panel > .acrylic-card,#shopping-list-panel > .acrylic-card,#sync-panel > .acrylic-card { padding:30px; border-radius:10px; }
#custom-recipe-panel input,#custom-recipe-panel select,#custom-recipe-panel textarea,#sync-panel textarea { border-radius:6px; font-size:14px; background:#101f19; min-height:46px; }
#custom-recipe-panel .grid > * { min-width:0; width:100%; }
#custom-recipe-panel h2,#my-recipes-panel h2,#shopping-list-panel h2,#sync-panel h2 { color:var(--accent-gold); letter-spacing:1px; font-size:14px; }
#custom-recipe-panel [data-ui="ui-32"],#sync-panel [data-ui="ui-35"] { background:var(--accent-gold); color:#15231a; border-radius:5px; box-shadow:none; font-size:14px; }
#bar-dashboard .grid > div { border-radius:6px; background:#102019; }
dialog { margin:auto; }
dialog::backdrop { background:rgba(0,0,0,.7); }
#shaker-timer-modal > div,#update-modal > div { background:#172922; border-radius:12px; border-color:#526346; }
.pill-btn { transition:background .2s,color .2s,transform .2s; }
.pill-btn:active { transform:scale(.98); }
.animate-fade-in { animation:fadeIn .24s ease both; }
@keyframes fadeIn { from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)} }
.timer-finish-anim { animation:timerPulse .6s ease-in-out infinite; color:var(--accent-gold)!important; }
@keyframes timerPulse { 50%{transform:scale(1.04)} }

@media (max-width:900px) {
    .topbar,.main-navigation { padding-left:24px; padding-right:24px; }
    .main-navigation { gap:23px; }
    .app-main { padding:0 24px; }
    .editorial-hero { gap:25px; padding-top:35px; }
    .hero-photo { height:330px; border-top-left-radius:95px; }
    .hero-copy h2 { font-size:53px; }
    .hero-actions { gap:13px; flex-wrap:wrap; }
    .hero-note { white-space:normal; flex-wrap:wrap; }
    .hero-note .note-divider { display:none; }
    #recipes-ready,#recipes-missing,#my-recipes-container { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width:640px) {
    .topbar span.hidden.sm\:inline { display:inline!important; }
}
@media (max-width:640px) {
    html { scroll-padding-top:123px; }
    .topbar { height:73px; padding:0 18px; }
    .brand-mark { width:32px; height:39px; }
    .brand-mark svg { width:28px; height:28px; }
    .topbar > .gap-3 { gap:9px; }
    .topbar h1 { font-size:27px; }
    #status { font-size:12px; margin-top:4px; }
    .topbar button { width:33px; min-height:33px; padding:6px; border-radius:5px; justify-content:center; }
    .topbar > .shrink-0 { gap:5px; }
    .main-navigation { padding:0 18px; gap:24px; }
    .main-navigation > button { font-size:12px; min-height:43px; }
    .app-main { padding:0 18px; }
    .editorial-hero { grid-template-columns:1fr; gap:25px; padding:30px 0 32px; }
    .hero-copy > .eyebrow { font-size:12px; letter-spacing:1.7px; }
    .hero-copy h2 { font-size:58px; line-height:1; margin:18px 0; letter-spacing:-2px; }
    .hero-copy > p { font-size:13px; line-height:1.8; max-width:340px; }
    .hero-actions { gap:18px; margin-top:22px; }
    .primary-action { font-size:12px; gap:19px; padding:12px 16px; min-height:45px; }
    .text-action { font-size:12px; gap:7px; }
    .hero-note { font-size:12px; gap:6px; margin-top:20px; white-space:normal; }
    .hero-note .note-divider { display:block; }
    .hero-photo { height:244px; border-radius:80px 7px 7px 7px; }
    .hero-photo > img { object-position:center 57%; }
    .hero-photo figcaption { left:23px; bottom:20px; }
    .hero-photo figcaption strong { font-size:27px; }
    .hero-photo figcaption > span { font-size:12px; }
    .photo-edition { font-size:12px; right:16px; bottom:21px; }
    .discovery-controls { padding-top:26px; scroll-margin-top:124px; }
    .section-intro { align-items:start; gap:12px; margin-bottom:20px; flex-direction:column; }
    .section-intro h2 { font-size:29px; }
    .section-intro .eyebrow { font-size:12px; }
    .selection-summary { font-size:12px; }
    .section-aside { font-size:12px; }
    #discovery-controls > .space-y-2 { grid-template-columns:1fr; gap:10px; }
    #discovery-controls input { font-size:12px; min-height:46px; }
    #discovery-controls [data-ui="ui-13"],#discovery-controls [data-ui="ui-15"] { font-size:12px; padding:8px 10px; }
    .filter-caption { font-size:12px; margin-top:17px; }
    #ingredients-section { margin-top:15px; margin-bottom:29px; }
    #ingredients-container { padding:8px 36px; gap:8px; }
    #ingredients-container > div { width:88px; height:112px; }
    .ingredient-shelf > button { width:23px; left:6px; }
    .ingredient-shelf > button:last-child { left:auto; right:6px; }
    #editorial-picks-grid,#recipes-ready,#recipes-missing,#my-recipes-container { grid-template-columns:1fr; gap:18px; }
    .cocktail-card { padding:13px; }
    .cocktail-card > img { height:225px; }
    .cocktail-card h3 { font-size:31px; }
    #affiliate-banner { padding:16px; }
    #affiliate-banner a { padding:8px 10px; }
    .app-footer { margin-top:30px; padding-top:24px; }
    .app-footer > p { font-size:12px; }
    .app-footer > div { flex-direction:column; gap:8px; }
    #bar-dashboard > .acrylic-card,#custom-recipe-panel > .acrylic-card,#my-recipes-panel > .acrylic-card,#shopping-list-panel > .acrylic-card,#sync-panel > .acrylic-card { padding:20px 16px; }
}
@media (prefers-reduced-motion:reduce) {
    *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
