/* WEB TASARIMI (≥ 768px): daha yumuşak ve ferah. Sol menü, pastel zemin, yumuşak gölgeli kartlar, ortada açılan pencereler. */
body {
  background:
    radial-gradient(1100px 560px at 100% -8%, var(--blush-100), transparent 62%),
    radial-gradient(900px 520px at -8% 108%, #FFF0D6, transparent 58%),
    var(--bg);
  background-attachment: fixed;
}
h1 { font-size: 32px; }

.btn { min-height: 44px; padding: 0 20px; border-radius: 14px; font-size: 15px; }
.btn:hover { background: var(--berry-dark); border-color: var(--berry-dark); }
.btn.secondary:hover { background: var(--blush-50); color: var(--berry-dark); }
.btn.ghost:hover { background: rgba(184, 69, 122, .08); }
.btn.danger:hover { background: #8F1D17; border-color: #8F1D17; }
.btn.danger.secondary:hover { background: var(--danger-bg); color: var(--danger); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
input, select, textarea { min-height: 46px; padding: 10px 14px; border-radius: 12px; }
.icon-btn { width: 40px; height: 40px; }
.icon-btn:hover { background: rgba(184, 69, 122, .1); }

/* Gövde: üstte ince bir çubuk (logo, bölüm menüsü, kullanıcı kartı), altında tam genişlikte içerik. Kasa bilgisayarında F11 ile ekranın tamamı içeriğe kalır. */
.shell-web { display: flex; flex-direction: column; min-height: 100dvh; }
.topbar-web {
  position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; height: 60px; padding: 0 22px;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 4px 12px rgba(184, 69, 122, .22); }
.brand b { display: block; font-size: 16px; line-height: 1.1; }
.brand span { font-size: 12px; color: var(--muted); }
.top-nav { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; grid-column: 2; }
.top-nav::-webkit-scrollbar { display: none; }
.top-nav a {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; transition: background .15s, color .15s;
}
.top-nav a .icon { width: 19px; height: 19px; }
.top-nav a:hover { background: var(--blush-50); color: var(--cocoa); }
.top-nav a[aria-current="page"] { background: var(--blush-100); color: var(--berry-dark); }
.brand { grid-column: 1; justify-self: start; }
.user-wrap { grid-column: 3; justify-self: end; }

/* Kullanıcı kartı: kompakt hap; tıklayınca menü açılır */
.user-wrap { position: relative; flex: none; }
.user-chip {
  display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--cocoa); transition: background .15s, border-color .15s, box-shadow .15s;
}
.user-chip:hover, .user-chip[aria-expanded="true"] { background: var(--blush-50); border-color: var(--blush-300); box-shadow: 0 4px 14px rgba(184, 69, 122, .12); }
.user-chip .avatar { width: 36px; height: 36px; font-size: 14px; }
.user-chip .uc-text { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.user-chip .uc-text b { font-size: 14px; }
.user-chip .uc-text span { font-size: 12px; color: var(--muted); }
.user-chip > .icon { width: 16px; height: 16px; color: var(--muted); }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 290px; padding: 8px; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 20px 48px rgba(62, 42, 29, .2); animation: pop .14s ease-out;
}
.user-menu[hidden] { display: none; }
.um-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.um-head b { display: block; line-height: 1.2; }
.um-head div span { display: block; font-size: 13px; color: var(--muted); }
.um-head .chip { margin-top: 6px; font-style: normal; }
.um-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 12px; border: 0; background: none; color: var(--cocoa); font-weight: 700; font-size: 15px; text-decoration: none; text-align: left; }
.um-item:hover { background: var(--blush-50); }
.um-item .icon { width: 19px; height: 19px; color: var(--berry-dark); }
.um-item.danger { color: var(--danger); }
.um-item.danger .icon { color: var(--danger); }
.um-item.danger:hover { background: var(--danger-bg); }
.user-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

.web-main { padding: 22px 28px 44px; min-width: 0; flex: 1; }
.page { max-width: 1560px; margin: 0 auto; }
.page-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.page-head h1 { flex: 1; font-size: 28px; }
.fab { display: none; }  /* web'de "yeni" düğmesi sayfa başlığında */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: 0 1px 2px rgba(62, 42, 29, .04), 0 14px 34px rgba(184, 69, 122, .07); }

/* Ekran seçimi: üç büyük yumuşak kart */
.greeting { margin-bottom: 34px; }
.greeting h1 { font-size: 36px; }
.greeting p { margin-top: 6px; font-size: 17px; }
.screen-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.screen-card {
  display: flex; flex-direction: column; gap: 18px; padding: 30px 28px; border-radius: 28px; background: var(--surface); text-decoration: none; color: inherit;
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(62, 42, 29, .04), 0 14px 34px rgba(184, 69, 122, .07); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.screen-card:hover { transform: translateY(-4px); border-color: var(--blush-300); box-shadow: 0 2px 4px rgba(62, 42, 29, .05), 0 24px 48px rgba(184, 69, 122, .16); }
.screen-card .ico { width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blush-100), var(--blush-200)); color: var(--berry-dark); }
.screen-card .ico .icon { width: 34px; height: 34px; }
.screen-card h2 { font-size: 24px; }
.screen-card .chev { display: none; }

/* Hesap listesi: tek tablo kartı, gruplar alt başlıkla ayrılır */
.user-table { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 1px 2px rgba(62, 42, 29, .04), 0 14px 34px rgba(184, 69, 122, .07); }
.group-title { margin: 0; padding: 16px 24px 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.user-head, .user-row { display: grid; grid-template-columns: 48px minmax(0, 1.7fr) minmax(0, .9fr) minmax(0, 1.2fr) 112px; align-items: center; gap: 18px; padding: 0 24px; }
.user-head { min-height: 44px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--blush-50); border-bottom: 1px solid var(--line); }
.user-row { width: 100%; min-height: 72px; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); transition: background .12s; }
.user-row:last-child { border-bottom: 0; }
.user-row:hover { background: var(--blush-50); }
.user-row.is-off { opacity: .6; }
.user-row .avatar { width: 44px; height: 44px; font-size: 16px; }
.user-row .who b { display: block; }
.user-row .who span { color: var(--muted); font-size: 14px; }
.user-row .badges { display: none; }
.user-row .chev { display: none; }
.user-row .manage-btn { display: inline-flex; justify-self: end; }

/* Ortada açılan pencere */
dialog.sheet {
  width: min(520px, calc(100% - 48px)); max-height: 88dvh; margin: auto; border-radius: 28px; box-shadow: 0 30px 80px rgba(62, 42, 29, .3);
}
dialog.sheet[open] { animation: pop .18s ease-out; }
@keyframes pop { from { transform: scale(.97) translateY(8px); opacity: 0; } }
.sheet-head { padding: 22px 18px 6px 28px; }
.sheet-head h2 { font-size: 21px; }
.sheet-body { padding: 8px 28px 22px; }
.sheet-actions { padding: 16px 28px 26px; }
.action-list { display: flex; flex-direction: column; gap: 8px; }
.action-list .btn { justify-content: flex-start; }
#toasts { top: 24px; }

/* Giriş: sol yumuşak tanıtım alanı, sağ form */
.login { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr .9fr; }
.login-hero {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 10px; padding: 60px;
  background: linear-gradient(150deg, var(--blush-200) 0%, var(--blush-100) 55%, #FFF0D6 100%);
}
.login-hero img { position: relative; width: 230px; height: 230px; border-radius: 50%; box-shadow: 0 24px 60px rgba(184, 69, 122, .3); z-index: 1; }
.login-hero h1 { position: relative; margin-top: 18px; font-size: 44px; z-index: 1; }
.login-hero p { position: relative; max-width: 360px; font-size: 18px; color: var(--muted); z-index: 1; }
.login-hero .deco { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.login-hero .deco.d1 { width: 340px; height: 340px; top: -120px; left: -100px; }
.login-hero .deco.d2 { width: 260px; height: 260px; bottom: -90px; right: -60px; }
.login-panel { display: grid; place-items: center; padding: 48px; }
.login-form {
  width: min(440px, 100%); display: flex; flex-direction: column; gap: 18px; padding: 38px; background: var(--surface); border: 1px solid var(--line); border-radius: 30px;
  box-shadow: 0 2px 4px rgba(62, 42, 29, .04), 0 26px 60px rgba(184, 69, 122, .12);
}
.login-form h2 { font-size: 24px; }
.login-form .btn { min-height: 50px; margin-top: 4px; font-size: 16px; }

.placeholder { text-align: center; padding: 70px 20px; }
.placeholder .ico { width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 30px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blush-100), var(--blush-200)); color: var(--berry-dark); }
.placeholder .ico .icon { width: 42px; height: 42px; }
.placeholder p { margin-top: 8px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

/* Ekran seçimi sayfası (menü yok): ortada, ferah, yumuşak */
.select-page { min-height: 100dvh; display: grid; place-items: center; padding: 56px 48px; }
.select-inner { width: min(1020px, 100%); display: flex; flex-direction: column; align-items: center; }
.select-logo { width: 96px; height: 96px; margin-bottom: 22px; border-radius: 50%; box-shadow: 0 14px 36px rgba(184, 69, 122, .26); }
.select-page .greeting { text-align: center; margin-bottom: 40px; }
.select-page .screen-cards { width: 100%; }
.select-page .screen-card { align-items: flex-start; }
.select-user { margin-top: 44px; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(184, 69, 122, .08); }
.select-user b { display: block; line-height: 1.2; }
.select-user span { font-size: 13px; color: var(--muted); }

/* Geniş ekranda masa kutuları ve mutfak fişleri daha büyük */
.table-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.table-tile { min-height: 96px; }
.tickets { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* Bilgisayarda kategori sekmeleri sağa sola kaydırmak yerine alt satıra geçer: hepsi bir bakışta görünür */
.chip-tabs { flex-wrap: wrap; overflow: visible; }

/* Masa penceresi geniş: solda sipariş, sağda menü (kaydırmadan ikisi birden). Dar pencerede tek sütuna döner. */
dialog.sheet.wide { width: min(1040px, calc(100% - 48px)); }
dialog.sheet.wide .sheet-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 8px 28px; align-items: start; }
@media (max-width: 960px) { dialog.sheet.wide .sheet-body { grid-template-columns: 1fr; } }
dialog.sheet.wide .menu-content { height: clamp(280px, 52dvh, 520px); }

/* Yönetim ana sayfası: bilgisayarda 3 sütun, geniş widget'lar 2 sütun kaplar */
.widgets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.widgets { align-items: start; }
.widget.w-wide { grid-column: span 2; }
.widget.w-full { grid-column: 1 / -1; }
@media (max-width: 1100px) { .widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); } .widget.w-wide { grid-column: 1 / -1; } }
