/* 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: sol menü + içerik */
.shell-web { display: grid; grid-template-columns: 272px 1fr; min-height: 100dvh; }
.side {
  position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 28px; padding: 26px 18px 22px;
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(14px); border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; color: inherit; text-decoration: none; }
.brand img { width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 6px 18px rgba(184, 69, 122, .22); }
.brand b { display: block; font-size: 19px; line-height: 1.1; }
.brand span { font-size: 13px; color: var(--muted); }
.side-nav { display: flex; flex-direction: column; gap: 6px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: var(--muted); text-decoration: none; font-weight: 700; transition: background .15s, color .15s;
}
.side-nav a:hover { background: var(--blush-50); color: var(--cocoa); }
.side-nav a[aria-current="page"] { background: var(--blush-100); color: var(--berry-dark); }
.side-user { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: var(--blush-50); border: 1px solid var(--line); }
.side-user .who { display: flex; align-items: center; gap: 12px; }
.side-user .avatar { width: 42px; height: 42px; font-size: 15px; }
.side-user b { display: block; line-height: 1.2; }
.side-user span { font-size: 13px; color: var(--muted); }
.side-user .row { gap: 8px; }
.side-user .btn { flex: 1; }

.web-main { padding: 44px 52px 60px; min-width: 0; }
.page { max-width: 1060px; margin: 0 auto; }
.page-head { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.page-head h1 { flex: 1; }
.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); }
