/* style-r4-bar.css - design round 4, area 2: HOME (chat list, place cards, + menu), THE BAR PAGE, MENU + CART, MY TAB, ORDERS, and every ADMIN TAB incl. the owner's FEES tab. Same layout + colours; depth, rhythm and tap feedback only. */

/* ---------- home / chat list ---------- */
#chat-list li { padding: 13px 14px; transition: background-color .15s; }
#chat-list li:active { background: #202023; }
#chat-list li .avatar-md { box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
#chat-list li.host-chat, .chat-place-row.here { background: linear-gradient(90deg, rgba(255, 181, 71, .13), rgba(255, 181, 71, .03) 70%); }
#chat-list li.req-card { border-radius: 16px; box-shadow: var(--r4-shadow); }
#chat-list li.req-card.pay-serious { background: linear-gradient(180deg, rgba(255, 159, 10, .24), rgba(255, 159, 10, .12)); }
.chat-row-title { letter-spacing: .005em; }
.topbar { border-bottom: 1px solid #26262A; box-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
#friends-bar { border-bottom: 1px solid #1F1F22; }
#friends-bar .friend-item .avatar { box-shadow: 0 0 0 2px #121212, 0 0 0 3.5px rgba(6, 199, 85, .5); }
.plus-menu button, #btn-plus-menu button { text-align: left; }

/* ---------- places list + place page ---------- */
.place-stats span, .place-stats .chip { border-radius: 99px; }
.place-open { display: inline-block; padding: 3px 12px; border-radius: 99px; font-size: 13px; background: rgba(255, 255, 255, .06); }
.place-open.on { background: rgba(48, 209, 88, .14); } .place-open.off { background: rgba(255, 69, 58, .12); }
.place-page .avatar, .place-cover { box-shadow: 0 6px 20px rgba(0, 0, 0, .45); }
.bar-where { box-shadow: var(--r4-shadow); }
.bar-checkin, .bar-happy { border-radius: 14px; box-shadow: var(--r4-shadow); }
.bar-happy { background: linear-gradient(180deg, #24472E, #1F3A26); border: 1px solid rgba(47, 222, 118, .35); }
.bar-checkin { border: 1px solid rgba(255, 181, 71, .35); }
.place-ig, .place-links a { border-radius: 99px; }
.game-grid button { min-height: 52px; font-size: 15px; }

/* ---------- menu + cart ---------- */
.bar-tabs { background: #161618; } .bar-tabs button { transition: background-color .15s, color .15s; line-height: 1.25; }
.bar-tabs button.on { box-shadow: 4px 0 12px -6px rgba(6, 199, 85, .5) inset; }
.bar-sec { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #9A9A9A; margin: 18px 0 6px; padding-left: 2px; }
.bar-item { padding: 10px 6px; border-radius: 12px; transition: background-color .15s; } .bar-item:active { background: #1C1C1E; }
.bar-item img, .bar-nophoto { border-radius: 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.bar-item-name { font-size: 15.5px; letter-spacing: .005em; }
.bar-item-price { font-size: 15px; font-weight: 700; }
.bar-qty button { box-shadow: 0 2px 8px rgba(6, 199, 85, .35); } .bar-qty button:active { transform: scale(.9); }
.bar-qty span { font-size: 16px; min-width: 22px; }
.bar-cart { background: linear-gradient(transparent, rgba(18, 18, 18, .96) 40%); }
.bar-cart button { border-radius: 16px; font-size: 17px; box-shadow: 0 6px 20px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08) inset; }
#btn-bar-cart.bar-pay-bar { background: linear-gradient(180deg, #FFB84D, #FF9F0A); box-shadow: 0 6px 22px rgba(255, 159, 10, .35), 0 1px 0 rgba(255, 255, 255, .4) inset; }
.bar-lines li { padding: 9px 2px; } .bar-lines li.bar-total { font-weight: 800; }
.bar-order-line > div b { color: #FFD39A; }
.bar-gift-line, .bar-friend-head { border-radius: 8px; }

/* ---------- orders board + history ---------- */
.bar-card { transition: transform .15s var(--r4-ease), box-shadow .15s; }
.bar-card-head b { font-size: 16px; }
.bar-card-lines li { padding: 2px 0; }
.bar-step button { border-radius: 10px; transition: background-color .15s, transform .1s; } .bar-step button:active:not(:disabled) { transform: scale(.94); }
.bar-board-head button, .bar-period button { border-radius: 99px; }
.bar-period button.on, .bar-board-head button.on { background: #06C755; color: #08170D; }
.hist-row { transition: background-color .15s; } .hist-line:active { background: #232326; }
.bar-stats > div { background: linear-gradient(180deg, #202023, #1C1C1E); }
.bar-stats b { letter-spacing: -.01em; }
.bar-bar i { background: linear-gradient(90deg, #06C755, #34E27A); border-radius: 0 6px 6px 0; }

/* ---------- admin tabs: nav, edit lists, settings blocks ---------- */
.bar-admin-nav button, .bar-user-nav button { transition: background-color .15s, color .15s, box-shadow .15s; }
.bar-admin-nav button:active { transform: scale(.95); }
.bar-settings h3, .bar-pad h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 17px; margin: 22px 0 8px; padding-top: 14px; border-top: 1px solid #26262A; }
.bar-settings h3:first-child, .bar-pad h3:first-child { border-top: 0; padding-top: 0; margin-top: 8px; }
.bar-edit-tabs, .bar-edit-items { background: #1C1C1E; border-radius: 14px; padding: 4px 6px; border: 1px solid var(--r4-line); }
.bar-edit-tabs li, .bar-edit-items li { border-radius: 10px; transition: background-color .15s; }
.bar-edit-tabs li.on { background: linear-gradient(90deg, rgba(6, 199, 85, .22), rgba(6, 199, 85, .08)); }
.drag-handle { color: #6E6E73; cursor: grab; }
.bar-qr { box-shadow: 0 8px 24px rgba(0, 0, 0, .5); border-radius: 16px; }
.bar-photo-pick img { box-shadow: var(--r4-shadow); }

/* ---------- the owner's FEES tab (money = amber) ---------- */
.pf-list li { border-left: 4px solid #3A3A3C; }
.pf-list li.pf-wait { border-left-color: #FFB547; background: linear-gradient(90deg, rgba(255, 181, 71, .12), #1C1C1E 55%); }
.pf-list li b { font-variant-numeric: tabular-nums; }
.pf-list .pf-code.small { margin: 0; padding: 4px 10px; border: 1.5px dashed #FFB547; border-radius: 10px; background: #241A08; }
.pf-list .pf-code.small small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #FFD39A; }
.pf-list .pf-code.small b { font-size: 22px; letter-spacing: 4px; display: block; }
.bar-chip.pf-confirmed { background: #1F3A26; color: #9CF2B8; } .bar-chip.pf-rejected, .bar-chip.pf-cancelled, .bar-chip.pf-expired { background: #3A1A1A; color: #FF9A92; } .bar-chip.pf-sent { background: #3A2A12; color: #FFD39A; }
.pf-list .game-row button { min-height: 44px; }

@media (hover: hover) { .bar-item:hover { background: #1A1A1C; } .hist-line:hover { background: #202023; } .bar-edit-tabs li:hover, .bar-edit-items li:hover { background: #242427; } }
@media (prefers-reduced-motion: reduce) { .bar-card, .bar-item, .bar-step button, .bar-qty button { transition: none !important; transform: none !important; } }
