/* 📱 Telefon menüsü (Parametreler → Görünüm → "Telefon menüsü"; 0 = bugünkü çekmece). Bkz. js/mobil-menu.js.
   Yalnız <900px'te; masaüstünde hiçbir kural eşleşmez. Renkler kurumsal: lacivert + çelik mavisi (portal teması varsa onu izler). */
.mm { display: none; }
@media (max-width: 899px) {
  html.mm-var { --mm-v: var(--primary, #2f6fb0); --mm-l: #1f3b5c; --mm-y: var(--surface, #fff); --mm-c: var(--border, #e3e8ef); --mm-t: var(--text, #1e293b); --mm-s: var(--text-muted, #64748b); --mm-a: #e8f0fa;
    --mm-cam: rgba(255,255,255,.72); --mm-golge: 0 10px 34px rgba(15,35,65,.18); }
  html.mm-var .mm { display: block; font-family: inherit; }
  html.mm-var #hamburger { display: none !important; }
  html.mm-var .content { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)) !important; }
  .mm a { text-decoration: none; color: inherit; }
  .mm i { font-style: normal; display: grid; place-items: center; font-size: 20px; line-height: 1; }
  .mm i svg, .mm i .ikon-svg { width: 22px !important; height: 22px !important; }
  .mm i .ikon-emoji { font-size: 20px; line-height: 1; }
  .mm svg { width: 22px; height: 22px; }
  .mm-bar .mm-tablar, .mm-tumu, .mm-cubuk, .mm-oneri .mm-cip { background: var(--mm-cam); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
    border: 1px solid rgba(255,255,255,.7); box-shadow: var(--mm-golge), inset 0 1px 0 rgba(255,255,255,.9); }
  .mm-perde { position: fixed; inset: 0; z-index: 1190; background: rgba(15,23,42,.38); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s; }
  html.mm-acik .mm-perde { opacity: 1; pointer-events: auto; }
  html.mm-acik body { overflow: hidden; }

  /* Ortak alttan çekmece (1 ve 4) */
  .mm-cekmece { position: fixed; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow: auto; z-index: 1200; background: var(--mm-y); color: var(--mm-t); border-radius: 26px 26px 0 0;
    padding: 10px max(16px, env(safe-area-inset-left, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-right, 0px));
    box-shadow: 0 -12px 40px rgba(15,35,65,.2); transform: translateY(105%); transition: transform .26s cubic-bezier(.23,1,.32,1); }
  html.mm-acik .mm-cekmece { transform: none; }
  .mm-tut { width: 44px; height: 5px; border-radius: 3px; background: var(--mm-c); margin: 0 auto 12px; }
  .mm-ara { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--mm-c); background: var(--mm-a); color: var(--mm-s); margin-bottom: 6px; }
  .mm-ara input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; padding: 12px 0; color: var(--mm-t); outline: none; }
  .mm-grup h5 { margin: 14px 4px 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mm-s); font-weight: 700; }
  .mm-izg, .mm-sik { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; }
  .mm-oge { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; text-align: center; line-height: 1.25; color: var(--mm-t) !important; padding: 4px 2px; border-radius: 12px; }
  .mm-oge i { width: 50px; height: 50px; border-radius: 16px; background: var(--mm-a); color: var(--mm-l); transition: transform .15s; }
  .mm-oge:active i { transform: scale(.92); }
  .mm-oge.on i { background: linear-gradient(135deg, var(--mm-l), var(--mm-v)); color: #fff; }
  .mm-oge span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

  /* 1 · Cam şerit */
  .mm-bar { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 1150; display: flex; gap: 8px; align-items: center; max-width: calc(100vw - 24px); }
  .mm-tablar { display: flex; padding: 5px; border-radius: 99px; min-width: 0; }
  .mm-tab { position: relative; width: 66px; height: 54px; border-radius: 99px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; font-weight: 600; color: var(--mm-s) !important; transition: width .3s, height .3s, color .2s, background .3s; }
  .mm-tab span { max-width: 60px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mm-tab.on { color: #fff !important; background: linear-gradient(135deg, var(--mm-l), var(--mm-v)); box-shadow: 0 6px 18px rgba(31,59,92,.35), inset 0 1px 0 rgba(255,255,255,.3); }
  .mm-tab i svg, .mm-tab i .ikon-svg { width: 21px !important; height: 21px !important; }
  .mm-tumu { width: 54px; height: 54px; border-radius: 50%; color: var(--mm-l); cursor: pointer; display: grid; place-items: center; flex: none; transition: width .3s, height .3s; }
  html.mm-kucuk .mm-tab { width: 46px; height: 40px; } html.mm-kucuk .mm-tab span { display: none; } html.mm-kucuk .mm-tumu { width: 44px; height: 44px; }

  /* 2 · Ada */
  .mm-ada { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: 230px; height: 58px; border-radius: 30px; z-index: 1200; overflow: hidden;
    background: var(--mm-l); color: #fff; box-shadow: 0 14px 40px rgba(15,35,65,.4), inset 0 0 0 1px rgba(255,255,255,.08);
    transition: width .3s cubic-bezier(.23,1,.32,1), height .3s cubic-bezier(.23,1,.32,1), border-radius .3s, bottom .3s; }
  html.mm-acik .mm-ada { width: calc(100vw - 20px); height: min(78vh, 640px); border-radius: 30px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--mm-y); color: var(--mm-t); }
  .mm-ada-kapali { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 20px; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: opacity .2s; }
  .mm-nokta { width: 9px; height: 9px; border-radius: 50%; background: #5fd3a5; box-shadow: 0 0 10px #5fd3a5; flex: none; }
  .mm-ada-ad { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mm-ada-d { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: none; }
  .mm-ada-acik { position: absolute; inset: 0; padding: 18px 16px; overflow: auto; opacity: 0; pointer-events: none; transition: opacity .2s; }
  html.mm-acik .mm-ada-kapali { opacity: 0; pointer-events: none; }
  html.mm-acik .mm-ada-acik { opacity: 1; pointer-events: auto; transition-delay: .18s; }
  .mm-ada-ust, .mm-deste-ust { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  .mm-ada-ust b, .mm-deste-ust b { font-size: 20px; }
  .mm-kapa { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--mm-a); color: var(--mm-t); display: grid; place-items: center; cursor: pointer; }
  .mm-kapa svg { width: 18px; height: 18px; }
  .mm-sik { margin: 12px 0 4px; padding-bottom: 12px; border-bottom: 1px solid var(--mm-c); }
  .mm-sik .mm-oge i { background: linear-gradient(135deg, var(--mm-l), var(--mm-v)); color: #fff; }

  /* 3 · Yay */
  .mm-fab { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 64px; height: 64px; margin-left: -32px; border-radius: 50%; border: 0; z-index: 1210; cursor: pointer; color: #fff;
    background: linear-gradient(135deg, var(--mm-l), var(--mm-v)); box-shadow: 0 12px 30px rgba(31,59,92,.45), inset 0 1px 0 rgba(255,255,255,.35); display: grid; place-items: center; transition: transform .4s cubic-bezier(.23,1,.32,1); }
  .mm-fab svg { width: 28px; height: 28px; }
  html.mm-acik .mm-fab { transform: rotate(135deg); }
  .mm-yay { position: fixed; left: 50%; bottom: calc(52px + env(safe-area-inset-bottom, 0px)); width: 0; height: 0; z-index: 1205; }
  .mm-yay .mm-oge { position: absolute; width: 74px; margin: -34px 0 0 -37px; color: #fff !important; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.45); opacity: 0; pointer-events: none;
    transition: transform .3s cubic-bezier(.23,1,.32,1), opacity .2s; }
  .mm-yay .mm-oge i { background: var(--mm-y); color: var(--mm-l); box-shadow: 0 8px 22px rgba(0,0,0,.25); border-radius: 50%; }
  .mm-yay .mm-oge.on i { background: linear-gradient(135deg, var(--mm-l), var(--mm-v)); color: #fff; }
  html.mm-acik .mm-yay .mm-oge { opacity: 1; pointer-events: auto; }
  .mm-yay-zemin { position: fixed; left: 0; right: 0; bottom: 0; height: 320px; z-index: 1195; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(70% 100% at 50% 100%, rgba(47,111,176,.45), transparent 70%); }
  html.mm-acik .mm-yay-zemin { opacity: 1; }
  .mm-cipler { position: fixed; left: 0; right: 0; bottom: calc(250px + env(safe-area-inset-bottom, 0px)); z-index: 1205; display: flex; gap: 6px; overflow-x: auto; padding: 0 16px; justify-content: safe center; opacity: 0; pointer-events: none; transition: opacity .3s; scrollbar-width: none; }
  html.mm-acik .mm-cipler { opacity: 1; pointer-events: auto; }
  .mm-cipler button { flex: none; font: inherit; font-size: 12.5px; font-weight: 600; border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.18); color: #fff; padding: 7px 13px; border-radius: 99px; cursor: pointer; }
  .mm-cipler button.on { background: #fff; color: var(--mm-l); }

  /* 4 · Akıllı çubuk */
  .mm-cubuk { position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); height: 58px; border-radius: 20px; z-index: 1150;
    display: flex; align-items: center; gap: 10px; padding: 0 7px 0 16px; color: var(--mm-s); font: inherit; font-size: 15px; cursor: text; text-align: left; }
  .mm-cubuk span { flex: 1; }
  .mm-cubuk i { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--mm-l), var(--mm-v)); color: #fff; }
  .mm-cubuk i svg { width: 20px; height: 20px; }
  .mm-oneri { position: fixed; left: 0; right: 0; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); z-index: 1140; display: flex; gap: 8px; overflow-x: auto; padding: 4px 12px 8px; scrollbar-width: none; transition: opacity .2s; }
  .mm-oneri::-webkit-scrollbar, .mm-cipler::-webkit-scrollbar { display: none; }
  html.mm-kucuk .mm-oneri { opacity: 0; pointer-events: none; }
  .mm-cip { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 14px; font-size: 12.5px; font-weight: 600; color: var(--mm-t) !important; }
  .mm-cip i { width: 28px; height: 28px; border-radius: 9px; background: var(--mm-a); color: var(--mm-l); }
  .mm-cip i svg, .mm-cip i .ikon-svg { width: 16px !important; height: 16px !important; }
  .mm-cip span { max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* 5 · Kart destesi */
  .mm-tetik { position: fixed; left: 0; right: 0; bottom: 0; height: calc(44px + env(safe-area-inset-bottom, 0px)); z-index: 1150; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
    background: linear-gradient(to top, rgba(255,255,255,.95), rgba(255,255,255,0)); padding-bottom: env(safe-area-inset-bottom, 0px); }
  html.mm-acik .mm-tetik { opacity: 0; pointer-events: none; }
  .mm-ipucu { font-size: 11px; font-weight: 700; color: var(--mm-s); letter-spacing: .04em; }
  .mm-cizgi { width: 120px; height: 5px; border-radius: 3px; background: var(--mm-l); opacity: .65; }
  .mm-deste { position: fixed; inset: 0; z-index: 1200; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); opacity: 0; pointer-events: none; transition: opacity .3s; }
  html.mm-acik .mm-deste { opacity: 1; pointer-events: auto; }
  .mm-deste-ust { padding: 0 max(20px, env(safe-area-inset-left, 0px)); color: #fff; }
  .mm-deste-ust .mm-kapa { background: rgba(255,255,255,.2); color: #fff; }
  .mm-kayar { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 32px 8px; scrollbar-width: none; }
  .mm-kayar::-webkit-scrollbar { display: none; }
  .mm-kart { flex: none; width: min(78vw, 320px); max-height: 62vh; overflow: auto; border-radius: 28px; padding: 20px; scroll-snap-align: center; color: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.35);
    transform: translateY(60px) scale(.92); transition: transform .3s cubic-bezier(.23,1,.32,1); }
  html.mm-acik .mm-kart { transform: none; }
  .mm-kart small { opacity: .8; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; } .mm-kart > b { display: block; font-size: 24px; margin: 2px 0 14px; }
  .mm-kart .mm-oge { flex-direction: row; justify-content: flex-start; gap: 10px; text-align: left; font-size: 14px; font-weight: 600; color: #fff !important; padding: 8px 10px; background: rgba(255,255,255,.14); border-radius: 14px; margin-bottom: 8px; }
  .mm-kart .mm-oge i { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.2); color: #fff; }
  .mm-kart .mm-oge.on { background: rgba(255,255,255,.3); }
  .mm-kart.k0 { background: linear-gradient(150deg, #1f3b5c, #2f6fb0); } .mm-kart.k1 { background: linear-gradient(150deg, #1d5f6b, #3a8fa0); }
  .mm-kart.k2 { background: linear-gradient(150deg, #334155, #5b6b82); } .mm-kart.k3 { background: linear-gradient(150deg, #24507a, #4f86b8); } .mm-kart.k4 { background: linear-gradient(150deg, #2c5a4d, #4f8f7c); }
  /* Yüzen düğmeler (IBP Asistan, Victor) menü çubuğunun ÜSTÜNE çıkar; menü açıkken gizlenir (2026-11-08: çubuktaki
     sekmelerin üstüne biniyorlardı). Kullanıcı sürükleyip yer verdiyse satır içi "bottom" onu korur. */
  html.mm-var { --mm-yukari: 0px; }
  html.mm-var[data-mobilmenu="1"] { --mm-yukari: 72px; } html.mm-var[data-mobilmenu="2"] { --mm-yukari: 68px; }
  html.mm-var[data-mobilmenu="4"] { --mm-yukari: 122px; } html.mm-var[data-mobilmenu="5"] { --mm-yukari: 36px; }
  html.mm-var #asDugme { bottom: calc(20px + var(--mm-yukari) + env(safe-area-inset-bottom, 0px)); }
  html.mm-var #victorDugme { bottom: calc(18px + var(--mm-yukari) + env(safe-area-inset-bottom, 0px)); }
  html.mm-var #asPanel, html.mm-var #asBalon { bottom: calc(84px + var(--mm-yukari) + env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - 140px - var(--mm-yukari)); }
  html.mm-acik #asDugme, html.mm-acik #victorDugme, html.mm-acik .yd-sakla { visibility: hidden; }
  html.mm-var[data-mobilmenu="4"] .content { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)) !important; }
}
@media (prefers-reduced-motion: reduce) { .mm *, .mm-ada, .mm-cekmece { transition: none !important; } }
