/* =====================================================================
 * Hayalhanem Ankara — İçecek Talep Sistemi
 * Global stylesheet · açık tema · mobile-first · iOS app hissi
 * Marka kırmızısı #d60012 · yuvarlak köşeler · soft shadow
 * ===================================================================== */

:root {
    --hyl-red:        #d60012;
    --hyl-red-dark:   #a8000e;
    --hyl-red-light:  #ffe5e7;
    --hyl-red-tint:   #fff3f4;

    --bg:             #f7f7fb;
    --surface:        #ffffff;
    --surface-2:      #fafafd;
    --border:         #ececf2;
    --border-strong:  #d9d9e3;
    --text:           #16171a;
    --text-muted:     #6b6f78;
    --text-soft:      #a3a6ae;

    --success:        #16a34a;
    --success-bg:     #e8f8ee;
    --warning:        #d97706;
    --warning-bg:     #fff4e1;
    --info:           #2563eb;
    --info-bg:        #e6efff;
    --danger:         #dc2626;
    --danger-bg:      #ffe8e8;

    --radius-sm:      10px;
    --radius:         16px;
    --radius-lg:      22px;
    --radius-pill:    999px;

    --shadow-1: 0 2px 8px rgba(20,20,30,.05), 0 1px 2px rgba(20,20,30,.04);
    --shadow-2: 0 8px 24px rgba(20,20,30,.07), 0 2px 6px rgba(20,20,30,.04);
    --shadow-3: 0 16px 36px rgba(214,0,18,.22);

    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Inter',
            'Helvetica Neue', Arial, sans-serif;

    --safe-top:    env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------------------------------------------------------------------
 * RESET
 * ------------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
}
a { color: var(--hyl-red); text-decoration: none; }
a:hover { color: var(--hyl-red-dark); }
h1,h2,h3,h4,h5,h6 { margin: 0; }
small { color: var(--text-muted); }
code.player-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }

/* ---------------------------------------------------------------------
 * APP HEADER (mutfak / kullanıcı sayfaları)
 * ------------------------------------------------------------------- */
.app-header {
    position: sticky; top: 0; z-index: 60;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.app-header-inner {
    max-width: 980px; margin: 0 auto;
    padding: 10px 16px; display: flex; align-items: center; gap: 12px;
}
.app-brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex: 1; min-width: 0; }
.app-brand img {
    width: 36px; height: 36px; border-radius: 10px; object-fit: cover;
    box-shadow: var(--shadow-1);
}
.app-brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.app-brand-text strong { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-brand-text small { font-size: 11px; color: var(--text-muted); }
.app-header-user { margin-left: auto; }

.app-shell {
    max-width: 980px; margin: 0 auto;
    padding: 16px;
}

/* ---------------------------------------------------------------------
 * CARDS
 * ------------------------------------------------------------------- */
.card-h {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    border: 1px solid var(--border);
    overflow: hidden;
}
.card-h-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-h-head h3 {
    font-size: 15px; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}
.card-h-head h3 i { color: var(--hyl-red); }
.card-h-body { padding: 18px; }
.card-h-body.p-0 { padding: 0; }
.card-h-foot,
.card-h-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
}

/* ---------------------------------------------------------------------
 * BUTTONS
 * ------------------------------------------------------------------- */
.btn-h {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 18px;
    background: var(--hyl-red); color: #fff;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 14px; font-weight: 600; line-height: 1;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .2s ease, background .15s ease, color .15s ease, border-color .15s ease;
    text-decoration: none; user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.btn-h:hover { background: var(--hyl-red-dark); color: #fff; box-shadow: var(--shadow-3); }
.btn-h:active { transform: scale(.97); }
.btn-h:disabled,
.btn-h.is-disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-h i { font-size: 16px; }

.btn-h-primary { background: var(--hyl-red); color: #fff; }
.btn-h-lg     { padding: 16px 22px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-h-sm     { padding: 8px 12px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-h-block  { width: 100%; }
.btn-h-pill   { border-radius: var(--radius-pill); }

.btn-h-ghost {
    background: transparent; color: var(--text);
    border-color: transparent;
}
.btn-h-ghost:hover { background: var(--hyl-red-light); color: var(--hyl-red-dark); box-shadow: none; }

.btn-h-outline {
    background: transparent; color: var(--hyl-red);
    border-color: var(--hyl-red);
}
.btn-h-outline:hover { background: var(--hyl-red); color: #fff; }

.btn-h-success { background: var(--success); color: #fff; }
.btn-h-success:hover { background: #138a3f; color: #fff; }

.btn-h-warning { background: var(--warning); color: #fff; }
.btn-h-warning:hover { background: #b96005; color: #fff; }

.btn-h-danger  { background: var(--danger); color: #fff; }
.btn-h-danger:hover { background: #b91c1c; color: #fff; }

.btn-h-ghost.btn-h-danger { background: transparent; color: var(--danger); }
.btn-h-ghost.btn-h-danger:hover { background: var(--danger-bg); color: var(--danger); }

.btn-h-dark    { background: #16171a; color: #fff; }
.btn-h-dark:hover { background: #000; color: #fff; }

.btn-h-icon {
    padding: 9px; min-width: 38px; min-height: 38px;
    border-radius: var(--radius);
}
.btn-h-icon i { font-size: 18px; }

/* ---------------------------------------------------------------------
 * FORMS
 * ------------------------------------------------------------------- */
.form-h-group { margin-bottom: 16px; display: flex; flex-direction: column; }
.form-h-grow  { flex: 1 1 200px; }
.form-h-actions { flex-direction: row; gap: 8px; align-items: flex-end; }
.form-h-label {
    display: block; font-size: 13px; font-weight: 600;
    margin-bottom: 6px; color: var(--text);
}
.form-h-help { color: var(--text-muted); font-size: 12px; margin-top: 6px; display: block; }

.form-h-control,
.form-h-select,
.form-h-textarea {
    width: 100%;
    background: var(--surface);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 12px 14px;
    font: inherit; color: var(--text);
    font-size: 16px;   /* iOS zoom önler */
    transition: border-color .15s, box-shadow .15s;
    outline: 0;
}
.form-h-textarea { min-height: 88px; resize: vertical; }
.form-h-select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%236b6f78' d='M6 8.5 1.5 4h9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    background-size: 12px; padding-right: 36px;
}
.form-h-control:focus,
.form-h-select:focus,
.form-h-textarea:focus {
    border-color: var(--hyl-red);
    box-shadow: 0 0 0 4px rgba(214,0,18,.10);
}
.form-h-control.is-invalid,
.form-h-textarea.is-invalid,
.form-h-select.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(220,38,38,.10);
}
.form-h-error {
    color: var(--danger); font-size: 12.5px; margin-top: 6px; min-height: 16px;
}

.input-h-icon { position: relative; }
.input-h-icon i {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 16px; pointer-events: none;
}
.input-h-icon .form-h-control { padding-left: 40px; }

/* ---------------------------------------------------------------------
 * SWITCH
 * ------------------------------------------------------------------- */
.switch-h {
    display: inline-flex; align-items: center; gap: 10px;
    cursor: pointer; user-select: none;
    font-size: 14px; color: var(--text);
}
.switch-h input { position: absolute; opacity: 0; pointer-events: none; }
.switch-h-track {
    width: 44px; height: 26px; background: #cfd0d6;
    border-radius: 999px; position: relative;
    transition: background .2s ease;
    flex-shrink: 0;
}
.switch-h-thumb {
    position: absolute; top: 3px; left: 3px;
    width: 20px; height: 20px; background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,.15);
    transition: transform .2s ease;
}
.switch-h input:checked + .switch-h-track { background: var(--hyl-red); }
.switch-h input:checked + .switch-h-track .switch-h-thumb { transform: translateX(18px); }
.switch-h-label { font-weight: 600; }

.switch-h-sm .switch-h-track { width: 34px; height: 20px; }
.switch-h-sm .switch-h-thumb  { width: 14px; height: 14px; }
.switch-h-sm input:checked + .switch-h-track .switch-h-thumb { transform: translateX(14px); }

/* ---------------------------------------------------------------------
 * BADGES
 * ------------------------------------------------------------------- */
.badge-h {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: var(--radius-pill);
    font-size: 11.5px; font-weight: 700;
    letter-spacing: .2px;
    background: var(--surface-2); color: var(--text);
    border: 1px solid var(--border);
    white-space: nowrap;
}
.badge-h-primary { background: var(--hyl-red-light); color: var(--hyl-red-dark); border-color: transparent; }
.badge-h-success { background: var(--success-bg); color: var(--success); border-color: transparent; }
.badge-h-warning { background: var(--warning-bg); color: var(--warning); border-color: transparent; }
.badge-h-info    { background: var(--info-bg); color: var(--info); border-color: transparent; }
.badge-h-danger  { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.badge-h-soft    { background: #eef0f4; color: var(--text-muted); border-color: transparent; }

/* ---------------------------------------------------------------------
 * HERO CARD (kullanıcı sayfası üstü)
 * ------------------------------------------------------------------- */
.hero-card {
    background: linear-gradient(135deg, var(--hyl-red) 0%, var(--hyl-red-dark) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex; align-items: center; gap: 16px;
    box-shadow: var(--shadow-3);
    position: relative;
    overflow: hidden;
}
.hero-card::after {
    content: ''; position: absolute; right: -40px; top: -40px;
    width: 160px; height: 160px; background: rgba(255,255,255,.08);
    border-radius: 50%;
}
.hero-card-logo img {
    width: 60px; height: 60px; border-radius: 16px;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.4);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.hero-card-text h1 { font-size: 22px; font-weight: 800; margin-bottom: 2px; }
.hero-card-text h1 span { font-size: 22px; }
.hero-card-text p { margin: 0; opacity: .92; font-size: 13.5px; }

/* ---------------------------------------------------------------------
 * DRINK GRID (kullanıcı sayfasında içecek seçim)
 * ------------------------------------------------------------------- */
.drink-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}
.drink-card {
    position: relative;
    background: var(--surface-2);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 10px 12px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    cursor: pointer;
    transition: all .15s ease;
    text-align: center;
    font: inherit; color: var(--text);
    -webkit-tap-highlight-color: transparent;
}
.drink-card:hover:not(.is-disabled) {
    border-color: var(--hyl-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-1);
}
.drink-card.is-selected {
    background: var(--hyl-red-light);
    border-color: var(--hyl-red);
    box-shadow: 0 0 0 4px rgba(214,0,18,.12);
}
.drink-card.is-disabled,
.drink-card.soldout {
    opacity: .55; cursor: not-allowed;
    background: var(--surface-2);
}
.drink-card-icon {
    width: 42px; height: 42px; border-radius: 50%;
    background: #fff; box-shadow: var(--shadow-1);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--hyl-red);
}
.drink-card-icon i { font-size: 22px; }
.drink-card.is-selected .drink-card-icon { background: var(--hyl-red); color: #fff; }
.drink-card-name { font-weight: 700; font-size: 13.5px; line-height: 1.2; }
.drink-card-desc { font-size: 11px; color: var(--text-muted); line-height: 1.2; }
.drink-card-flag {
    position: absolute; top: 6px; right: 6px;
    background: var(--danger); color: #fff;
    font-size: 10px; font-weight: 700; padding: 2px 6px;
    border-radius: var(--radius-pill);
}

/* ---------------------------------------------------------------------
 * USER PAGE
 * ------------------------------------------------------------------- */
.user-page { display: flex; flex-direction: column; gap: 4px; }
.user-foot { padding: 10px 0 30px; }

/* ---------------------------------------------------------------------
 * AUTH (login) PAGES
 * ------------------------------------------------------------------- */
.auth-page {
    min-height: calc(100vh - var(--safe-top) - var(--safe-bottom));
    display: flex; align-items: center; justify-content: center;
    padding: 24px 16px;
    background: linear-gradient(180deg, var(--hyl-red-tint) 0%, var(--bg) 60%);
}
.auth-card {
    width: 100%; max-width: 420px;
    padding: 28px 24px;
}
.auth-card-head { text-align: center; margin-bottom: 22px; }
.auth-card-head img {
    width: 64px; height: 64px;
    border-radius: 18px; object-fit: cover;
    margin: 0 auto 14px;
    box-shadow: var(--shadow-3);
    display: block;
}
.auth-card-head h1 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.auth-card-head p  { margin: 0; color: var(--text-muted); font-size: 13.5px; }
.auth-form { display: flex; flex-direction: column; }
.auth-foot { color: var(--text-muted); }

/* ---------------------------------------------------------------------
 * KITCHEN PAGE
 * ------------------------------------------------------------------- */
.kitchen-page-wrap { display: flex; flex-direction: column; gap: 12px; }

.kitchen-toolbar {
    padding: 14px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    flex-wrap: wrap;
}
.kitchen-status { display: flex; flex-direction: column; gap: 2px; }
.kitchen-status-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.kitchen-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.online-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #cfd0d6; display: inline-block;
    box-shadow: 0 0 0 0 rgba(0,0,0,0);
}
.online-dot.is-online {
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(22,163,74,.15);
    animation: pulse-green 2s infinite;
}
.online-dot.is-offline { background: var(--danger); }
@keyframes pulse-green {
    0%   { box-shadow: 0 0 0 0 rgba(22,163,74,.40); }
    70%  { box-shadow: 0 0 0 10px rgba(22,163,74,0); }
    100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
.online-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: var(--radius-pill);
    background: #eef0f4; color: var(--text-muted);
    font-size: 11.5px; font-weight: 700;
}
.online-pill.is-online { background: var(--success-bg); color: var(--success); }

#soundEnableBtn.is-active {
    background: var(--success-bg);
    color: var(--success);
    border-color: var(--success);
}

.kitchen-tabs {
    display: flex; gap: 8px; padding: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
}
.kitchen-tab {
    flex: 1; padding: 10px 12px;
    background: transparent; border: 0;
    border-radius: var(--radius-sm);
    font-weight: 600; font-size: 13.5px; color: var(--text-muted);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    -webkit-tap-highlight-color: transparent;
}
.kitchen-tab.is-active {
    background: var(--hyl-red-light); color: var(--hyl-red-dark);
}
.kitchen-tab i { font-size: 16px; }

.kitchen-tab-pane { display: none; }
.kitchen-tab-pane.is-active { display: block; }

/* ürün yönetimi listesi */
.kitchen-products { display: flex; flex-direction: column; gap: 8px; }
.kitchen-product-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.kitchen-product-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kitchen-product-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: #fff; box-shadow: var(--shadow-1);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--hyl-red); flex-shrink: 0;
}
.kitchen-product-info strong { display: block; font-size: 14px; }
.kitchen-product-info small  { display: block; color: var(--text-muted); font-size: 12px; }
.kitchen-product-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* request kartları */
.req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.req-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--hyl-red);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-1);
    display: flex; flex-direction: column; gap: 10px;
    animation: card-in .25s ease;
}
@keyframes card-in {
    from { transform: translateY(6px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.req-card--preparing { border-left-color: var(--warning); }
.req-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.req-card-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.req-card-name i { color: var(--text-muted); }
.req-card-body { display: flex; flex-direction: column; gap: 6px; }
.req-card-product {
    display: flex; align-items: center; gap: 8px;
    font-weight: 600; font-size: 15px;
}
.req-card-product i { color: var(--hyl-red); font-size: 20px; }
.req-card-note {
    font-size: 13px; color: var(--text-muted);
    background: var(--surface-2);
    padding: 8px 10px; border-radius: var(--radius-sm);
    border-left: 3px solid var(--border-strong);
}
.req-card-meta {
    display: flex; gap: 12px; font-size: 12px; color: var(--text-muted);
    border-top: 1px dashed var(--border); padding-top: 8px;
}
.req-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.req-card-actions { margin-top: 2px; }

/* ---------------------------------------------------------------------
 * EMPTY STATE
 * ------------------------------------------------------------------- */
.empty-state {
    text-align: center; padding: 40px 20px;
    color: var(--text-muted);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.empty-state i { font-size: 48px; color: var(--text-soft); }
.empty-state h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-top: 4px; }
.empty-state p { margin: 0; font-size: 13.5px; }
.empty-state-inline {
    padding: 16px; text-align: center; color: var(--text-muted);
    font-size: 13.5px;
}
.empty-state-inline i { color: var(--text-soft); margin-right: 4px; }

/* ---------------------------------------------------------------------
 * ADMIN LAYOUT
 * ------------------------------------------------------------------- */
.admin-page { background: var(--bg); }
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}
.admin-side {
    background: #16171a;
    color: #fff;
    display: flex; flex-direction: column;
    padding: 18px 14px;
    gap: 18px;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 6px 14px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-side-brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.admin-side-brand strong { display: block; font-size: 15px; }
.admin-side-brand small  { display: block; color: rgba(255,255,255,.55); font-size: 11px; }

.admin-side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 12px; border-radius: var(--radius);
    color: rgba(255,255,255,.7); font-weight: 600; font-size: 14px;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.admin-nav-item i { font-size: 18px; }
.admin-nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav-item.is-active { background: var(--hyl-red); color: #fff; }

.admin-side-foot { display: flex; flex-direction: column; gap: 10px; }
.admin-side-user {
    display: flex; align-items: center; gap: 10px;
    padding: 10px; background: rgba(255,255,255,.05);
    border-radius: var(--radius);
}
.admin-side-user i { font-size: 28px; color: rgba(255,255,255,.7); }
.admin-side-user strong { display: block; color: #fff; font-size: 13.5px; }
.admin-side-user small  { display: block; color: rgba(255,255,255,.5); font-size: 11px; }
.admin-side .btn-h-outline { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.2); }
.admin-side .btn-h-outline:hover { background: var(--hyl-red); border-color: var(--hyl-red); color: #fff; }

.admin-main { display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    display: flex; align-items: center; gap: 12px;
}
.admin-page-title { font-size: 17px; font-weight: 700; }
.admin-topbar-right { margin-left: auto; }
.admin-content { padding: 20px; flex: 1; }

.admin-mobile-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-top: 1px solid var(--border);
    display: flex; padding: 6px 4px calc(6px + var(--safe-bottom));
}
.admin-mobile-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 4px; color: var(--text-muted);
    font-size: 11px; font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
}
.admin-mobile-nav a i { font-size: 18px; }
.admin-mobile-nav a.is-active { color: var(--hyl-red); }

@media (max-width: 767.98px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-side {
        position: fixed; left: -260px; top: 0; bottom: 0;
        width: 260px; transition: left .25s ease;
        z-index: 80;
        box-shadow: 4px 0 24px rgba(0,0,0,.2);
        padding-bottom: calc(20px + var(--safe-bottom));
    }
    .admin-side.is-open { left: 0; }
    .admin-content { padding: 14px 14px 90px; }
    .admin-topbar { padding: 10px 14px; }
}

/* ---------------------------------------------------------------------
 * STATS GRID (dashboard)
 * ------------------------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    padding: 16px;
    display: flex; align-items: center; gap: 14px;
}
.stat-card-icon {
    width: 48px; height: 48px; border-radius: var(--radius);
    background: var(--hyl-red-light); color: var(--hyl-red);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.stat-card-body { display: flex; flex-direction: column; min-width: 0; }
.stat-card-body small { font-size: 12px; color: var(--text-muted); }
.stat-card-body strong { font-size: 24px; font-weight: 800; line-height: 1.1; }

.stat-card-primary .stat-card-icon { background: var(--hyl-red-light); color: var(--hyl-red); }
.stat-card-success .stat-card-icon { background: var(--success-bg); color: var(--success); }
.stat-card-warning .stat-card-icon { background: var(--warning-bg); color: var(--warning); }
.stat-card-danger  .stat-card-icon { background: var(--danger-bg); color: var(--danger); }

/* top products list */
.top-products { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.top-products li {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: var(--surface-2);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.top-products .rank {
    width: 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--hyl-red-light); color: var(--hyl-red-dark);
    font-weight: 800; font-size: 13px;
    flex-shrink: 0;
}
.top-products .rank-1 { background: #fef3c7; color: #92400e; }
.top-products .rank-2 { background: #e5e7eb; color: #374151; }
.top-products .rank-3 { background: #fed7aa; color: #9a3412; }
.top-products .name  { flex: 1; font-weight: 600; }
.top-products .count {
    background: var(--hyl-red); color: #fff;
    font-size: 12px; font-weight: 800;
    padding: 3px 10px; border-radius: var(--radius-pill);
}

/* live list */
.admin-live-list { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; }
.admin-live-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.admin-live-info { display: flex; flex-direction: column; min-width: 0; }
.admin-live-info strong { font-size: 13.5px; }
.admin-live-info small  { color: var(--text-muted); font-size: 12px; }

/* ---------------------------------------------------------------------
 * PAGE TOOLBAR
 * ------------------------------------------------------------------- */
.page-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 16px; flex-wrap: wrap;
}
.page-title { font-size: 22px; font-weight: 800; }
.page-sub   { margin: 2px 0 0; color: var(--text-muted); font-size: 13.5px; }

/* ---------------------------------------------------------------------
 * TABLES
 * ------------------------------------------------------------------- */
.table-h-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-h {
    width: 100%; border-collapse: collapse;
    font-size: 13.5px;
}
.table-h thead th {
    text-align: left;
    padding: 12px 14px;
    background: var(--surface-2);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.table-h tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.table-h tbody tr:hover { background: var(--surface-2); }
.table-h tbody tr.is-dragging { opacity: .35; background: var(--hyl-red-light); }
.table-h .text-end   { text-align: right; }
.table-h .text-center{ text-align: center; }

.w-handle { width: 30px; }
.drag-handle { color: var(--text-soft); cursor: grab; }
.drag-handle:active { cursor: grabbing; }

.prod-cell { display: flex; align-items: center; gap: 10px; }
.prod-icon {
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--hyl-red-light); color: var(--hyl-red);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.row-actions { display: inline-flex; gap: 4px; justify-content: flex-end; }
.row-actions .btn-h { padding: 6px 8px; min-width: 32px; min-height: 32px; }
.row-actions .btn-h i { font-size: 14px; }

/* ---------------------------------------------------------------------
 * FILTER BAR / PAGINATION
 * ------------------------------------------------------------------- */
.filter-row {
    display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
}
.filter-row .form-h-group { margin-bottom: 0; min-width: 140px; }

.pagination-h { display: inline-flex; align-items: center; gap: 6px; }
.pagination-h-info { font-size: 12.5px; color: var(--text-muted); font-weight: 600; min-width: 50px; text-align: center; }

/* ---------------------------------------------------------------------
 * SETTINGS / INFO BANNER
 * ------------------------------------------------------------------- */
.settings-form { display: block; }
.info-banner {
    display: flex; gap: 12px;
    padding: 14px;
    background: var(--info-bg);
    border-radius: var(--radius);
    color: var(--info);
    margin-top: 8px;
}
.info-banner i { font-size: 20px; flex-shrink: 0; }
.info-banner strong { color: var(--text); }
.info-banner ol { color: var(--text); font-size: 13px; }

/* ---------------------------------------------------------------------
 * MODAL
 * ------------------------------------------------------------------- */
.modal-h-host {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(20,20,30,.55);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    animation: fade-in .15s ease;
}
.modal-h-host[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal-h {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0,0,0,.3);
    width: 100%; max-width: 480px;
    max-height: 90vh; overflow: hidden;
    display: flex; flex-direction: column;
    animation: modal-in .2s cubic-bezier(.4,0,.2,1);
}
@keyframes modal-in {
    from { transform: translateY(20px) scale(.96); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
.modal-h-head {
    padding: 16px 20px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.modal-h-head h2 { font-size: 17px; font-weight: 700; }
.modal-h-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-h-foot {
    padding: 14px 20px; border-top: 1px solid var(--border);
    display: flex; gap: 8px; justify-content: flex-end;
    background: var(--surface-2);
}

/* başarı modal */
.modal-h-success {
    text-align: center;
    padding: 30px 24px 24px;
    max-width: 380px;
}
.modal-h-icon {
    width: 84px; height: 84px; margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--success-bg); color: var(--success);
    display: inline-flex; align-items: center; justify-content: center;
    animation: pop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-h-icon i { font-size: 48px; }
.modal-h-success h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.modal-h-success p  { color: var(--text-muted); margin: 0 0 18px; }

/* ---------------------------------------------------------------------
 * TOAST
 * ------------------------------------------------------------------- */
.toast-h-host {
    position: fixed; top: calc(16px + var(--safe-top)); left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    display: flex; flex-direction: column; gap: 8px;
    pointer-events: none;
    width: calc(100% - 32px); max-width: 420px;
}
.toast-h {
    background: var(--surface); color: var(--text);
    padding: 12px 14px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-2);
    border-left: 4px solid var(--hyl-red);
    display: flex; align-items: center; gap: 10px;
    font-size: 14px;
    pointer-events: auto;
    animation: toast-in .25s cubic-bezier(.4,0,.2,1);
}
.toast-h.is-leaving { animation: toast-out .2s forwards; }
@keyframes toast-in  { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to   { transform: translateY(-10px); opacity: 0; } }

.toast-h i { font-size: 20px; flex-shrink: 0; }
.toast-h.toast-h-success { border-left-color: var(--success); }
.toast-h.toast-h-success i { color: var(--success); }
.toast-h.toast-h-warning { border-left-color: var(--warning); }
.toast-h.toast-h-warning i { color: var(--warning); }
.toast-h.toast-h-danger  { border-left-color: var(--danger); }
.toast-h.toast-h-danger i  { color: var(--danger); }
.toast-h.toast-h-info    { border-left-color: var(--info); }
.toast-h.toast-h-info i    { color: var(--info); }

/* ---------------------------------------------------------------------
 * UTILS
 * ------------------------------------------------------------------- */
.text-muted  { color: var(--text-muted) !important; }
.text-soft   { color: var(--text-soft) !important; }
.text-danger { color: var(--danger) !important; }
.text-truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.spinner-border { display: inline-block; vertical-align: middle; }

/* küçük ekran ayarları */
@media (max-width: 480px) {
    .hero-card { padding: 16px; gap: 12px; }
    .hero-card-text h1 { font-size: 19px; }
    .drink-grid { grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); gap: 8px; }
    .req-grid   { grid-template-columns: 1fr; }
    .app-shell  { padding: 12px; }
    .page-title { font-size: 19px; }
    .filter-row .form-h-group { min-width: 120px; }
}

/* iOS safari extra */
@supports (-webkit-touch-callout: none) {
    input, select, textarea { font-size: 16px; }
}
