:root {
  --bg1: #020617;
  --bg2: #0f172a;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #0891b2;
  --accent2: #06b6d4;
  --soft: #f8fafc;
  --border: #e2e8f0;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: linear-gradient(135deg, var(--bg1), var(--bg2)); color: white; min-height: 100vh; }
.app { max-width: 1200px; margin: auto; padding: 28px 16px 60px; }
.hidden { display: none !important; }
.header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.3em; color: var(--accent2); font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.eyebrow.dark { color: #0e7490; }
h1 { margin: 0; font-size: 46px; line-height: 1; }
.subtitle { margin-top: 10px; color: #cbd5e1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; min-width: 280px; }
.stat { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; padding: 14px; text-align: center; }
.stat strong { display: block; font-size: 26px; }
.stat span { color: #cbd5e1; font-size: 12px; }
.admin-panel, .user-bar, .locked-panel { background: white; color: var(--text); border-radius: 28px; box-shadow: 0 24px 70px rgba(0,0,0,0.28); padding: 24px; margin-bottom: 22px; }
.admin-panel h2, .locked-panel h2 { margin: 4px 0 8px; font-size: 28px; }
.admin-panel p, .locked-panel p { margin: 0 0 18px; color: var(--muted); line-height: 1.5; }
.admin-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 10px; }
.admin-row button, .user-bar button { border: 0; border-radius: 14px; padding: 13px 18px; background: #020617; color: white; font-weight: 900; cursor: pointer; }
.user-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.message { margin-top: 12px; color: #0e7490; font-weight: 800; font-size: 14px; }
.toolbar { display: grid; grid-template-columns: 1fr 180px 180px; gap: 12px; margin-bottom: 22px; }
input, textarea, select { width: 100%; border: 1px solid var(--border); border-radius: 14px; padding: 13px 14px; font-size: 15px; outline: none; background: white; color: var(--text); }
input:focus, textarea:focus, select:focus { border-color: var(--accent2); box-shadow: 0 0 0 4px rgba(6,182,212,0.18); }
textarea { min-height: 110px; resize: vertical; }
.layout { display: grid; grid-template-columns: 420px 1fr; gap: 22px; align-items: start; }
.panel, .recipe-card { background: var(--card); color: var(--text); border-radius: 28px; box-shadow: 0 24px 70px rgba(0,0,0,0.28); overflow: hidden; }
.panel, .locked-panel { padding: 24px; position: sticky; top: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.panel-head h2 { margin: 4px 0 0; font-size: 28px; }
.plus { width: 52px; height: 52px; border-radius: 18px; background: #cffafe; display: grid; place-items: center; font-size: 30px; color: #155e75; font-weight: 900; }
label { display: block; font-weight: 800; font-size: 13px; margin-bottom: 7px; }
.field { margin-bottom: 16px; }
.drink-box { background: #ecfeff; border: 1px solid #a5f3fc; border-radius: 22px; padding: 16px; margin-bottom: 16px; }
.drink-title { font-weight: 900; color: #164e63; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.food-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 22px; padding: 16px; margin-bottom: 16px; }
.food-title { font-weight: 900; color: #166534; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tool-btn { border: 1px solid #a5f3fc; background: white; color: #0f172a; padding: 10px; border-radius: 13px; text-align: left; cursor: pointer; font-weight: 700; }
.tool-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
.form-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.primary, .secondary { border: 0; padding: 15px; border-radius: 18px; font-weight: 900; cursor: pointer; font-size: 15px; }
.primary { width: 100%; background: #020617; color: white; }
.primary:hover { background: var(--accent); }
.secondary { background: #e2e8f0; color: #0f172a; }
.list { display: grid; gap: 18px; }
.recipe-top { padding: 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.badge { border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 900; background: #020617; color: white; }
.badge.favorite { background: #fef3c7; color: #92400e; }
.badge.vote { background: #ede9fe; color: #5b21b6; }
.badge.food { background: #dcfce7; color: #166534; }
.recipe-card h3 { font-size: 30px; margin: 0; }
.created-by { color: var(--muted); margin-top: 8px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: start; justify-content: flex-end; }
.small-btn { border: 0; border-radius: 13px; padding: 10px 12px; cursor: pointer; font-weight: 800; }
.like-btn { background: #fef3c7; color: #92400e; }
.like-btn.active { background: #f59e0b; color: #ffffff; }
.edit-btn { background: #dbeafe; color: #1d4ed8; }
.delete-btn { background: #ffe4e6; color: #be123c; }
.vote-row { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.avg-rating { font-weight: 900; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 999px; padding: 7px 11px; }
.rating { display: flex; gap: 2px; }
.star { border: 0; background: transparent; color: #f59e0b; font-size: 26px; cursor: pointer; padding: 0 2px; }
.star.mine { color: #b45309; transform: scale(1.08); }
.drink-info { background: #ecfeff; border-bottom: 1px solid #a5f3fc; padding: 18px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.food-info { background: #f0fdf4; border-bottom: 1px solid #bbf7d0; padding: 18px 24px; display: grid; grid-template-columns: 1fr; gap: 14px; }
.info-box { background: white; border: 1px solid #bae6fd; border-radius: 18px; padding: 15px; }
.food-info .info-box { border-color: #bbf7d0; }
.info-box small { display: block; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 900; color: #0e7490; margin-bottom: 8px; }
.food-info .info-box small { color: #15803d; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { background: #cffafe; color: #164e63; border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 800; }
.recipe-body { padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.section-title { text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; color: var(--muted); font-weight: 900; margin-bottom: 10px; }
pre { white-space: pre-wrap; font-family: inherit; line-height: 1.55; background: var(--soft); border: 1px solid var(--border); border-radius: 18px; padding: 16px; margin: 0; }
.notes { padding: 0 24px 24px; }
.notes-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: 18px; padding: 16px; color: #78350f; white-space: pre-wrap; }
.empty { color: #cbd5e1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 26px; padding: 40px; text-align: center; }
@media (max-width: 900px) { .header { flex-direction: column; align-items: stretch; } .layout { grid-template-columns: 1fr; } .panel, .locked-panel { position: static; } .toolbar, .admin-row, .form-actions { grid-template-columns: 1fr; } .drink-info, .recipe-body { grid-template-columns: 1fr; } .recipe-top, .user-bar { flex-direction: column; align-items: stretch; } .actions { justify-content: flex-start; } .stats { min-width: 0; } h1 { font-size: 38px; } }
