/* =========================================================================
   YENİ DİZAYN (2026-11-30) — saytın öz rəngləri ilə
   Yalnız bunlara təsir edir: göy başlıq zolağı (caption), forum, çat,
   bildirişlər, BB kod paneli. Üst panel (top-nav) DƏYİŞMİR.
   Səhifə sinifləri <body> üzərində: pg-forum, pg-chat, pg-notifications, pg-photo
   ========================================================================= */
:root {
    --pm-paper: #ffecc7; --pm-card: #fff8e1; --pm-card2: #fffdf8;
    --pm-line: #fbdc99; --pm-line2: #e6c888;
    --pm-ink: #4a331c; --pm-ink2: #7a5a36; --pm-brown: #6b441b;
    --pm-orange: #d35400; --pm-blue: #1b81ca; --pm-blue-d: #0b5a94;
    --pm-green: #1d992c; --pm-green-d: #114a17; --pm-red: #dd3b25; --pm-red-d: #852317;
}

/* ---------- Göy başlıq zolağı: üst paneldən aşağıda, yumru ---------- */
div.caption {
    margin: 8px 10px 10px;
    height: 24px;
    border-radius: 9px;
    box-shadow: 0 2px 0 #00508a;
}
div.caption h1 {
    font-size: 12.5px !important;
    line-height: 24px !important;
    font-weight: 700;
    letter-spacing: .2px;
}

/* ---------- BB kod paneli (forum, şərh, birlik forumu) ---------- */
html body .bb-toolbar { gap: 6px !important; padding: 8px !important; background: #fff4dd !important; border: 1px solid var(--pm-line2) !important; border-bottom: 0 !important; border-radius: 13px 13px 0 0 !important; }
html body .bb-btn { display: inline-flex !important; align-items: center; justify-content: center; box-sizing: border-box; height: 32px; min-height: 0 !important; min-width: 32px !important; width: auto !important; padding: 0 10px !important; font-size: 12.5px !important; line-height: 1; border-radius: 9px; border: 1px solid var(--pm-line); background: var(--pm-card2); color: var(--pm-brown); font-weight: 800; box-shadow: 0 2px 0 var(--pm-line2); }
html body .bb-btn:hover { background: #ffe9bd; color: var(--pm-brown); border-color: var(--pm-line2); }
html body .bb-btn:active { transform: translateY(2px); box-shadow: none; }

/* ---------- Ümumi düymə/kart stili (yalnız yeni səhifələrdə) ---------- */
body.pg-forum .mf-container,
body.pg-notifications .pm-notif-wrap,
body.pg-chat #chatWrapper { font-family: 'Nunito', Tahoma, Arial, sans-serif; }

/* ================================ FORUM ================================ */
body.pg-forum {
    --f-bg: var(--pm-card); --f-bg-alt: #fff4dd; --f-border: var(--pm-line);
    --f-text-main: var(--pm-ink); --f-text-minor: var(--pm-ink2);
    --f-accent: var(--pm-orange); --f-accent-hover: #a84300; --f-blue: var(--pm-blue);
    --f-radius: 18px; --f-shadow: 0 3px 0 var(--pm-line2);
}
body.pg-forum .mf-container { padding: 10px; }
body.pg-forum .mf-card,
body.pg-forum .surg-card { background: var(--pm-card); border: 1px solid var(--pm-line); border-radius: 18px; box-shadow: 0 3px 0 var(--pm-line2); overflow: hidden; }
body.pg-forum .mf-card-header,
body.pg-forum .surg-card-header {
    background: linear-gradient(180deg, #fff4dd, #ffe7b8) !important;
    color: var(--pm-brown) !important;
    border-bottom: 1px solid var(--pm-line);
    padding: 12px 14px; font-size: 15px; font-weight: 900;
}
body.pg-forum .mf-card-header img,
body.pg-forum .surg-card-header img { filter: none !important; }

body.pg-forum .mf-list-item { padding: 10px 12px; border-bottom: 1px solid #f6e3b8; gap: 0; }
body.pg-forum .mf-list-item.unread { background: #fff4dd; }
body.pg-forum .mf-list-item.actual,
body.pg-forum .mf-list-item.most-viewed,
body.pg-forum .mf-list-item.most-liked,
body.pg-forum .mf-list-item.poll,
body.pg-forum .mf-list-item.pined,
body.pg-forum .mf-list-item.locked { border-left-width: 4px; }
body.pg-forum .mf-item-icon { width: 46px; height: 46px; border-radius: 14px; background: #ffe2a8; flex-shrink: 0; }
body.pg-forum .mf-item-icon img { width: 26px !important; height: 26px; object-fit: contain; }
body.pg-forum .mf-item-title { font-size: 14.5px !important; font-weight: 400 !important; color: var(--pm-brown); }
body.pg-forum .mf-item-meta { font-size: 12px; font-weight: 700; color: var(--pm-ink2); }

body.pg-forum .mf-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 6px; padding: 10px; background: #fff4dd; border-bottom: 1px solid var(--pm-line); }
body.pg-forum .mf-stat-box { border: 1px solid var(--pm-line); border-radius: 12px; background: var(--pm-card2); padding: 6px 4px; }
body.pg-forum .mf-stat-box:last-child { border-right: 1px solid var(--pm-line); }
body.pg-forum .mf-stat-label { font-size: 10.5px; font-weight: 900; color: var(--pm-ink2); }
body.pg-forum .mf-stat-value { font-size: 14px; font-weight: 900; color: var(--pm-brown); }

body.pg-forum .mf-post { background: var(--pm-card2) !important; border: 1px solid var(--pm-line) !important; border-radius: 18px !important; box-shadow: 0 3px 0 var(--pm-line2) !important; padding: 12px 14px; }
body.pg-forum .mf-card > .mf-post { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
body.pg-forum .mf-post-header { border-bottom: 1px dashed #f1dcae; padding-bottom: 8px; }
body.pg-forum .mf-post-author { font-size: 14px; font-weight: 900; }
body.pg-forum .mf-post-time { font-size: 11.5px; font-weight: 700; color: var(--pm-ink2); }
body.pg-forum .mf-post-body { font-size: 14.5px; line-height: 1.55; color: var(--pm-ink); }
body.pg-forum .mf-post-footer { gap: 6px; flex-wrap: wrap; }
body.pg-forum .mf-post-footer a { padding: 6px 11px; border-radius: 999px; background: #fff4dd; border: 1px solid var(--pm-line); color: var(--pm-brown); font-weight: 800; }
body.pg-forum .mf-post-footer a:hover { background: #ffe9bd; color: var(--pm-brown); }
body.pg-forum .mf-best-answer { background: #eef9ea !important; border: 2px solid #9bd593 !important; }
body.pg-forum .mf-best-badge { background: var(--pm-green); border-radius: 999px; padding: 3px 10px; }

body.pg-forum .mf-btn {
    min-height: 44px; padding: 0 18px; border-radius: 14px; font-size: 14px; font-weight: 900;
    background: linear-gradient(180deg, #ffb256, #ff9b3a); color: #3a2100; box-shadow: 0 4px 0 #b85d0b;
}
body.pg-forum .mf-btn:hover { transform: none; color: #3a2100; box-shadow: 0 4px 0 #b85d0b; filter: brightness(1.04); }
body.pg-forum .mf-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #b85d0b; }
body.pg-forum .mf-btn.green { background: linear-gradient(180deg, #2bb33b, #1d992c); color: #fff; box-shadow: 0 4px 0 var(--pm-green-d); }
body.pg-forum .mf-btn.red { background: linear-gradient(180deg, #ef5038, #dd3b25); color: #fff; box-shadow: 0 4px 0 var(--pm-red-d); }
body.pg-forum .mf-btn.outline { background: var(--pm-card2); color: var(--pm-brown); border: 1px solid var(--pm-line); box-shadow: 0 3px 0 var(--pm-line2); }
body.pg-forum .mf-card > .mf-btn, body.pg-forum .mf-card .mf-btn.full { margin-bottom: 8px; }
body.pg-forum .mf-input,
body.pg-forum textarea.wide,
body.pg-forum input.wide { min-height: 44px; border: 1px solid var(--pm-line2) !important; border-radius: 13px; background: #fff; font-size: 15px; font-family: inherit; }
body.pg-forum .bb-toolbar + div textarea,
body.pg-forum .bb-wrapper ~ textarea,
body.pg-forum #textarea { border-radius: 0 0 13px 13px !important; }
body.pg-forum .btn-action { min-height: 44px; border-radius: 14px !important; font-weight: 900; box-shadow: 0 4px 0 rgba(0,0,0,.25); }

/* ================================ ÇAT ================================ */
body.pg-chat #chatWrapper { background: var(--pm-paper); border-radius: 0; box-shadow: none; }
body.pg-chat .chat-top-panel { background: linear-gradient(180deg, #fff4dd, #ffe7b8); border-bottom: 1px solid var(--pm-line); padding: 4px 6px; }
body.pg-chat .chat-messages-area { padding: 12px; gap: 10px; }
body.pg-chat .msg-bubble { font-size: 14.5px; line-height: 1.4; padding: 8px 11px 9px; box-shadow: 0 2px 0 rgba(230, 200, 136, .55); }
body.pg-chat .msg-other { background: #fff; border: 1px solid #f1dcae; border-radius: 4px 16px 16px 16px; }
body.pg-chat .msg-me { background: #fff3cf; border: 1px solid #f6d58e; border-radius: 16px 4px 16px 16px; }
body.pg-chat .msg-system { background: var(--pm-card); color: var(--pm-brown); border: 1px solid var(--pm-line); border-radius: 999px; font-weight: 800; }
body.pg-chat .msg-sender { font-size: 13px; font-weight: 900; }
body.pg-chat .msg-text-content { color: var(--pm-ink); }
body.pg-chat .msg-time-inline,
body.pg-chat .msg-me .msg-time-inline { color: var(--pm-ink2); font-weight: 700; }
body.pg-chat .action-btn { width: 30px; height: 30px; background: var(--pm-card2); border: 1px solid var(--pm-line); box-shadow: 0 2px 0 var(--pm-line2); color: var(--pm-brown); }
body.pg-chat .action-btn.btn-delete { color: #b42318; }
body.pg-chat .pinned-banner { background: rgba(255, 248, 225, .96); border: 1px solid var(--pm-line2); border-radius: 16px; box-shadow: 0 4px 0 var(--pm-line2); }
body.pg-chat .pinned-banner-icon { background: #ffe2a8; color: var(--pm-orange); border-radius: 12px; }
body.pg-chat .pinned-banner-nick { color: var(--pm-brown); font-weight: 900; }
body.pg-chat .pinned-banner-text { color: var(--pm-ink2); }
body.pg-chat .chat-input-area { background: #fff4dd; border-top: 1px solid var(--pm-line); padding: 8px; }
body.pg-chat .chat-input-wrapper { border: 1px solid var(--pm-line2); border-radius: 16px; padding: 4px 6px 4px 10px; min-height: 46px; align-items: center; }
body.pg-chat .chat-input-wrapper:focus-within { border-color: var(--pm-orange) !important; }
body.pg-chat .chat-btn-send { width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(180deg, #2bb33b, #1d992c); box-shadow: 0 3px 0 var(--pm-green-d); align-self: center; margin: 0; }
body.pg-chat .chat-btn-send:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--pm-green-d); }
body.pg-chat .chat-btn-outside { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(180deg, #2a93d8, #1b81ca); box-shadow: 0 3px 0 var(--pm-blue-d); }
body.pg-chat .chat-btn-online-user { background: linear-gradient(180deg, #2bb33b, #1d992c) !important; box-shadow: 0 3px 0 var(--pm-green-d) !important; }
body.pg-chat #replyBox { background: #fff8e1; border: 1px solid var(--pm-line); border-radius: 12px; color: var(--pm-brown); }
body.pg-chat .chat-admin-menu-full { border: 1px solid var(--pm-line2); border-radius: 16px; background: var(--pm-card2); }
body.pg-chat .chat-admin-menu-full a { color: var(--pm-brown); border-bottom-color: #f6e3b8; }

/* ============================ BİLDİRİŞLƏR ============================ */
.pm-notif-wrap { padding: 10px; }
.pm-notif-list { background: var(--pm-card); border: 1px solid var(--pm-line); border-radius: 18px; box-shadow: 0 3px 0 var(--pm-line2); overflow: hidden; }
.pm-notif-row { display: flex; align-items: flex-start; gap: 11px; padding: 11px 12px; border-bottom: 1px solid #f6e3b8; }
.pm-notif-row:last-child { border-bottom: 0; }
.pm-notif-row.is-new { background: #fff4dd; }
.pm-ic { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #ffe2a8; }
.pm-ic img { width: 24px; height: 24px; object-fit: contain; }
.pm-ic.b { background: #d6ebfa; } .pm-ic.g { background: #d8f3d4; } .pm-ic.r { background: #fde0d8; } .pm-ic.p { background: #eadff7; }
.pm-notif-main { flex: 1; min-width: 0; }
.pm-notif-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; font-weight: 900; color: var(--pm-brown); }
.pm-notif-top a { color: var(--pm-blue); text-decoration: none; }
.pm-tag { font-size: 10.5px; font-weight: 900; padding: 2px 8px; border-radius: 999px; background: var(--pm-card2); border: 1px solid var(--pm-line); color: var(--pm-ink2); }
.pm-notif-text { font-size: 14px; line-height: 1.45; color: var(--pm-ink); margin-top: 2px; word-break: break-word; }
.pm-notif-row.is-new .pm-notif-text { font-weight: 700; }
.pm-notif-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--pm-ink2); }
.pm-notif-btn { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 10px; background: linear-gradient(180deg, #2a93d8, #1b81ca); box-shadow: 0 3px 0 var(--pm-blue-d); color: #fff !important; font-weight: 900; font-size: 12.5px; text-decoration: none !important; }
.pm-dot { width: 10px; height: 10px; border-radius: 50%; background: #e0281e; flex-shrink: 0; margin-top: 6px; }
.pm-notif-empty { text-align: center; padding: 30px 14px; color: var(--pm-ink2); font-weight: 800; background: var(--pm-card); border: 1px solid var(--pm-line); border-radius: 18px; box-shadow: 0 3px 0 var(--pm-line2); }
.pm-del-all { display: flex; justify-content: center; margin: 18px 0 6px; }
.pm-btn-red { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 20px; border-radius: 14px; background: linear-gradient(180deg, #ef5038, #dd3b25); box-shadow: 0 4px 0 var(--pm-red-d); color: #fff !important; font-weight: 900; font-size: 14px; text-decoration: none !important; }
.pm-btn-red:active, .pm-notif-btn:active { transform: translateY(3px); box-shadow: none; }

@media (prefers-reduced-motion: no-preference) {
    body.pg-forum .mf-btn, .pm-btn-red, .pm-notif-btn, body.pg-chat .chat-btn-send, html body .bb-btn { transition: transform .08s ease, box-shadow .08s ease, filter .15s; }
}
html body [id^="bb-dialog-"] { background: #fff8e1 !important; border-color: var(--pm-line2) !important; }

/* ======================= DƏHLİZ (round H) ======================= */
/* Şəklin üstündə: onlayn SMS → evlənənlər → təqvimlər. Hamısı şəklə sığır. */
#cabinetHero.cabinet-hero { height: auto; min-height: 160px; display: block; }
#cabinetHero img.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#cabinetHero .hero-stack { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 6px; padding: 8px; box-sizing: border-box; min-height: 160px; }
#cabinetHero .online-sms-bar { margin: 0; padding: 4px 8px; border-width: 1.5px; border-radius: 12px; background: linear-gradient(135deg, rgba(15,43,72,.92) 0%, rgba(8,26,46,.92) 100%); }
#cabinetHero .sms-plus-btn { width: 28px; height: 28px; font-size: 18px; }
#cabinetHero .hero-zags { display: flex; align-items: center; gap: 4px; overflow: hidden; padding: 4px 8px; border-radius: 10px; background: rgba(255, 241, 248, .93); border: 1px solid #fbcfe8; box-shadow: 0 2px 6px rgba(0,0,0,.18); font-size: 13px; }
#cabinetHero .hero-cal-row { display: flex; justify-content: flex-end; gap: 10px; margin-top: auto; }
#cabinetHero .hero-cal-row #calendar-trigger,
#cabinetHero .hero-cal-row #halloween-calendar-trigger { position: relative; top: auto; right: auto; left: auto; flex: 0 0 auto; display: block; width: 44px; height: 44px; }

/* Aksiya / bank bloku şəklin altında */
.pg-cabinet .epic-split-container, body .block > .epic-split-container { margin-top: 0; }

/* Yan panel: 2x/3x təcrübə və premium kart (profil məlumatının altında) */
#sidebarMenu .side-exp-banners { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 6px; }
#sidebarMenu .side-exp-banners .foot-banner-slim { margin: 0; width: 100%; box-sizing: border-box; border-radius: 12px; border-left: 0; height: 34px; }
#sidebarMenu .side-exp-banners .banner-title { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#sidebarMenu .side-exp-banners .banner-time { font-size: 11.5px; padding: 2px 6px; white-space: nowrap; flex-shrink: 0; margin-left: 6px; }
#cabinetHero .hero-cal-row #halloween-calendar-trigger { background: url('/assets/images/halloween_calendar/icon_calendar_daily_rewards_86x86.png') no-repeat center/contain; filter: drop-shadow(0 2px 5px rgba(0,0,0,.5)) drop-shadow(0 0 8px rgba(255,140,0,.75)); }

/* ======================= round I ======================= */
/* Qurğular: seçim düymələri (hamısı eyni çip formasında) */
.set-opt-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.set-opt { flex: 1 1 auto; min-width: 95px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border-radius: 10px; border: 1.5px solid #e2e8f0; background: #f8fafc; color: #475569; font-size: 12.5px; font-weight: 700; cursor: pointer; box-sizing: border-box; transition: background .15s, border-color .15s; }
.set-opt input { accent-color: #10b981; margin: 0; width: 15px; height: 15px; flex-shrink: 0; }
.set-opt:has(input:checked) { background: #ecfdf5; border-color: #10b981; color: #065f46; }

/* Yan menyu: İttifaq / Heyət düymələri (almaz/qızıl yerinə) */
/* İttifaq / Heyət: nik və ID-dən sonra bitişik mavi blok, xətlə bölünmüş iki sətir */
#sidebarMenu .side-union-btns { display: flex; flex-direction: column; gap: 0; margin: 12px -14px -12px; background: rgba(0, 60, 120, .22); border-top: 1px solid rgba(255,255,255,.35); position: relative; z-index: 2; }
#sidebarMenu .side-union-btn { display: flex; align-items: center; justify-content: flex-start; gap: 10px; height: 42px; padding: 0 16px; border: 0; border-radius: 0; background: transparent; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: none; }
#sidebarMenu .side-union-btn + .side-union-btn { border-top: 1px solid rgba(255,255,255,.3); }
#sidebarMenu .side-union-btn::after { content: '›'; margin-left: auto; font-size: 20px; line-height: 1; opacity: .8; }
#sidebarMenu .side-union-btn img { width: 20px; height: 20px; object-fit: contain; }
#sidebarMenu .side-union-btn:active { background: rgba(255,255,255,.15); transform: none; }
#sidebarMenu .side-union-btn.is-locked { opacity: .55; cursor: default; }

/* Dəhliz: mini oyunlar (Gizli almazlar, Loto) geniş sətir kartları */
.cab-games { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; }
.cab-game-row { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 12px; border-radius: 16px; border: 1px solid #fbdc99; box-shadow: 0 3px 0 #e6c888; color: #4a331c; text-decoration: none; box-sizing: border-box; }
.cab-game-row:active { transform: translateY(2px); box-shadow: 0 1px 0 #e6c888; }
.cab-game-gold { background: linear-gradient(135deg, #fff1c2, #ffd98a); }
.cab-game-blue { background: linear-gradient(135deg, #eaf6ff, #c7e5fb); border-color: #9fd0f3; box-shadow: 0 3px 0 #7fb8e0; }
.cab-game-ic { width: 42px; height: 42px; border-radius: 13px; background: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cab-game-ic img { width: 26px; height: 26px; object-fit: contain; }
.cab-game-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cab-game-txt b { font-size: 14.5px; font-weight: 900; color: #6b441b; }
.cab-game-txt small { font-size: 12px; font-weight: 700; color: #7a5a36; }
.cab-game-chev { color: #6b441b; flex-shrink: 0; }

/* ======================= round J ======================= */
/* Mobil tətbiq stili: krem fon ekranın sonunadək, balans zolağı ekranın altına yapışıq */
html { background-color: #332f28; }
body > div.content { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body > div.content > main#mainGameContent { flex: 1 0 auto; }
.app-bottom-bar { position: sticky; bottom: 0; z-index: 60; margin-top: auto; box-shadow: 0 -3px 10px rgba(0,0,0,.18); padding-bottom: env(safe-area-inset-bottom, 0); background: #85633b; }
.app-bottom-bar #userStatusSummary { margin: 0; }

/* ======================= ÇAT round K ======================= */
/* Üst seçimlər: Ümumi / Birlik / A klub / Onlayn (dizayndakı kimi) */
.chat-room-tabs { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--pm-paper); border-bottom: 1px solid var(--pm-line); flex-shrink: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; position: relative; z-index: 5; font-family: 'Nunito', Tahoma, Arial, sans-serif; }
.chat-room-tabs::-webkit-scrollbar { display: none; }
.chat-room-tab { position: relative; padding: 7px 13px; border-radius: 999px; background: var(--pm-card2); border: 1px solid var(--pm-line); font-weight: 800; font-size: 12.5px; color: var(--pm-ink2); text-decoration: none; white-space: nowrap; }
.chat-room-tab.active { background: var(--pm-brown); border-color: var(--pm-brown); color: #fff; }
.chat-tab-dot { display: none; position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: #e0281e; border: 1.5px solid #fff; }
.chat-online-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--pm-card2); border: 1px solid var(--pm-line); font-weight: 900; font-size: 13px; color: var(--pm-ink); text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.chat-online-pill .badge-online { position: static !important; display: inline !important; transform: none !important; background: none !important; color: inherit !important; padding: 0 !important; font-size: inherit !important; min-width: 0 !important; height: auto !important; box-shadow: none !important; border: 0 !important; }
.chat-online-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }

/* Yazma sətri: [smaylik] [sahə] [göndər] — dizayndakı kimi */
body.pg-chat .chat-input-area, body.pg-mail .chat-input-area { background: var(--pm-paper); border-top: 1px solid var(--pm-line); padding: 8px 10px; }
body.pg-chat .chat-bottom-wrapper { display: flex; align-items: center; gap: 8px; }
body.pg-chat .chat-input-wrapper { flex: 1; display: flex; align-items: center; gap: 8px; border: 0 !important; background: transparent !important; padding: 0 !important; min-height: 44px; box-shadow: none !important; }
body.pg-chat .chat-btn-smile { width: 44px; height: 44px; min-width: 44px; border-radius: 13px; background: var(--pm-card2); border: 1px solid var(--pm-line); box-shadow: 0 2px 0 var(--pm-line2); color: var(--pm-orange); display: flex; align-items: center; justify-content: center; padding: 0; margin: 0; cursor: pointer; }
body.pg-chat .chat-btn-smile:active { transform: translateY(2px); box-shadow: none; }
body.pg-chat #chatInput { flex: 1; min-width: 0; min-height: 44px; box-sizing: border-box; border-radius: 13px; border: 1px solid var(--pm-line2); background: #fff; padding: 11px 12px; font: inherit; font-family: 'Nunito', Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; color: var(--pm-ink); resize: none; outline: none; }
body.pg-chat #chatInput:focus { border-color: var(--pm-orange); }
body.pg-chat .chat-btn-send { width: auto; min-width: 48px; height: 44px; padding: 0 14px; border-radius: 14px; border: 0; background: linear-gradient(180deg, #2bb33b, #1d992c); box-shadow: 0 4px 0 var(--pm-green-d); display: flex; align-items: center; justify-content: center; margin: 0 0 4px; cursor: pointer; }
body.pg-chat .chat-btn-send:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--pm-green-d); }

/* Admin: yazma yerinin altında iki nazik düymə */
.chat-admin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.chat-admin-btn { height: 28px; border-radius: 9px; font: inherit; font-family: 'Nunito', Tahoma, Arial, sans-serif; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; background: var(--pm-card2); border: 1px solid var(--pm-line); color: var(--pm-brown); box-shadow: 0 2px 0 var(--pm-line2); }
.chat-admin-btn:active { transform: translateY(2px); box-shadow: none; }
.chat-admin-clear { color: #b42318; border-color: #f3c3b8; }
#chatWrapper[data-room="aklub"] .chat-admin-actions { grid-template-columns: 1fr; }
#chatWrapper[data-room="aklub"] .chat-admin-lock { display: none; }

/* ======================= POÇT round K ======================= */
/* Yazışma: çatın yeni stili */
body.pg-mail.pg-id #chatWrapper { background: var(--pm-paper); border-radius: 0; box-shadow: none; font-family: 'Nunito', Tahoma, Arial, sans-serif; }
.mail-chat-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--pm-paper); border-bottom: 1px solid var(--pm-line); flex-shrink: 0; position: relative; z-index: 5; }
.mail-chat-back { width: 36px; height: 36px; border-radius: 12px; background: var(--pm-card2); border: 1px solid var(--pm-line); box-shadow: 0 2px 0 var(--pm-line2); color: var(--pm-brown); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mail-chat-user { display: flex; align-items: center; gap: 9px; min-width: 0; text-decoration: none; }
.mail-chat-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--pm-line2); flex-shrink: 0; }
.mail-chat-nick { font-weight: 900; font-size: 15px; color: var(--pm-brown); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.pg-mail.pg-id .chat-messages-area { padding: 12px; gap: 10px; }
body.pg-mail.pg-id .msg-bubble { font-size: 14.5px; line-height: 1.4; padding: 8px 11px 9px; box-shadow: 0 2px 0 rgba(230, 200, 136, .55); }
body.pg-mail.pg-id .msg-other { background: #fff; border: 1px solid #f1dcae; border-radius: 4px 16px 16px 16px; }
body.pg-mail.pg-id .msg-me { background: #fff3cf; border: 1px solid #f6d58e; border-radius: 16px 4px 16px 16px; }
body.pg-mail.pg-id .msg-sender { font-size: 13px; font-weight: 900; }
body.pg-mail.pg-id .msg-text-content { color: var(--pm-ink); }
body.pg-mail.pg-id .msg-time-inline, body.pg-mail.pg-id .msg-me .msg-time-inline { color: var(--pm-ink2); font-weight: 700; }
body.pg-mail.pg-id .action-btn { width: 30px; height: 30px; background: var(--pm-card2); border: 1px solid var(--pm-line); box-shadow: 0 2px 0 var(--pm-line2); color: var(--pm-brown); }
body.pg-mail.pg-id .action-btn.btn-delete { color: #b42318; }
body.pg-mail.pg-id .chat-input-area { background: var(--pm-paper); border-top: 1px solid var(--pm-line); padding: 8px 10px; }
body.pg-mail.pg-id .chat-bottom-wrapper { display: flex; align-items: center; gap: 8px; }
body.pg-mail.pg-id .chat-input-wrapper { flex: 1; display: flex; align-items: center; gap: 8px; border: 0 !important; background: transparent !important; padding: 0 !important; min-height: 44px; box-shadow: none !important; }
body.pg-mail.pg-id .chat-btn-smile { width: 44px; height: 44px; min-width: 44px; border-radius: 13px; background: var(--pm-card2); border: 1px solid var(--pm-line); box-shadow: 0 2px 0 var(--pm-line2); color: var(--pm-orange); display: flex; align-items: center; justify-content: center; padding: 0; margin: 0; cursor: pointer; }
body.pg-mail.pg-id #chatInput { flex: 1; min-width: 0; min-height: 44px; box-sizing: border-box; border-radius: 13px; border: 1px solid var(--pm-line2); background: #fff; padding: 11px 12px; font-family: 'Nunito', Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; color: var(--pm-ink); resize: none; outline: none; }
body.pg-mail.pg-id #chatInput:focus { border-color: var(--pm-orange); }
body.pg-mail.pg-id .chat-btn-send { width: auto; min-width: 48px; height: 44px; padding: 0 14px; border-radius: 14px; border: 0; background: linear-gradient(180deg, #2bb33b, #1d992c); box-shadow: 0 4px 0 var(--pm-green-d); display: flex; align-items: center; justify-content: center; margin: 0 0 4px; cursor: pointer; }
body.pg-mail.pg-id .chat-btn-send:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--pm-green-d); }

/* Mesaj qutusu (siyahı): dizayndakı kimi */
body.pg-mail:not(.pg-id) #inbox-index-container { font-family: 'Nunito', Tahoma, Arial, sans-serif; padding: 10px; }
body.pg-mail:not(.pg-id) .pill-tabs { display: flex; gap: 6px; justify-content: flex-start; background: none; border: 0; box-shadow: none; padding: 0; }
body.pg-mail:not(.pg-id) .pill-tab { padding: 7px 12px; border-radius: 999px; background: var(--pm-card2); border: 1px solid var(--pm-line); font-weight: 800; font-size: 12.5px; color: var(--pm-ink2); box-shadow: none; }
body.pg-mail:not(.pg-id) .pill-tab.active { background: var(--pm-brown) !important; border-color: var(--pm-brown) !important; color: #fff !important; }
body.pg-mail:not(.pg-id) #mailListContainer { background: var(--pm-card); border: 1px solid var(--pm-line); border-radius: 18px; box-shadow: 0 3px 0 var(--pm-line2); overflow: hidden; }
body.pg-mail:not(.pg-id) .mail-inbox-row { border-bottom: 1px solid #f6e3b8 !important; }
body.pg-mail:not(.pg-id) .mail-inbox-row:last-child { border-bottom: 0 !important; }
body.pg-mail:not(.pg-id) .mail-inbox-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; text-decoration: none; background: transparent !important; border-bottom: 1px solid #f6e3b8; }
body.pg-mail:not(.pg-id) .mail-avatar { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--pm-line2); flex-shrink: 0; }
body.pg-mail:not(.pg-id) .mail-name { font-weight: 900; font-size: 14px; color: var(--pm-brown); }
body.pg-mail:not(.pg-id) .mail-time { font-size: 11px; font-weight: 700; color: var(--pm-ink2); }
body.pg-mail:not(.pg-id) .mail-preview { font-size: 13px; color: var(--pm-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.pg-mail:not(.pg-id) .mail-inbox-item.unread .mail-preview { color: var(--pm-ink); font-weight: 700; }
body.pg-mail:not(.pg-id) .mail-unread-badge { background: #e0281e; color: #fff; font-weight: 900; font-size: 11px; padding: 2px 8px; border-radius: 999px; flex-shrink: 0; margin-left: 6px; }
body.pg-mail:not(.pg-id) .mail-del-btn { display: flex; align-items: center; justify-content: center; width: 44px; flex-shrink: 0; text-decoration: none; }
body.pg-mail:not(.pg-id) .mf-btn.outline { border-radius: 11px !important; background: var(--pm-card2) !important; border: 1px solid var(--pm-line) !important; box-shadow: 0 3px 0 var(--pm-line2) !important; color: var(--pm-brown) !important; font-weight: 900; }

/* ======================= FORUM round L ======================= */
/* Yazılar daha nazik */
body.pg-forum .mf-post { padding: 8px 11px !important; border-radius: 14px !important; margin-top: 6px !important; margin-bottom: 6px !important; box-shadow: 0 2px 0 var(--pm-line2) !important; }
body.pg-forum .mf-post-header { padding-bottom: 5px; margin-bottom: 5px; }
body.pg-forum .mf-post-author { font-size: 13px; gap: 6px; }
body.pg-forum .mf-post-author img { width: 28px !important; height: 28px !important; min-width: 28px !important; }
body.pg-forum .mf-post-time { font-size: 10.5px; }
body.pg-forum .mf-post-body { font-size: 13.5px; line-height: 1.42; }
body.pg-forum .mf-post-footer { margin-top: 5px; gap: 5px; }
body.pg-forum .mf-post-footer a { padding: 3px 9px; font-size: 11.5px; }
body.pg-forum .mf-best-badge { font-size: 11px; padding: 2px 8px; }

/* Mövzuda yazma yeri — çatdakı kimi */
.mf-composer { position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: 640px; box-sizing: border-box; bottom: var(--abb, 30px); z-index: 55; margin: 0; padding: 8px 10px; background: var(--pm-paper); border: 0; border-top: 1px solid var(--pm-line); border-radius: 0; box-shadow: 0 -3px 10px rgba(74, 51, 28, .08); }
body.pg-forum .mf-container.has-composer { padding-bottom: calc(var(--mfc, 110px) + 12px) !important; }
/* köhnə forum/BB stilləri sahənin üst künclərini düz edirdi — çatdakı kimi tam yuvarlaq */
html body #mfComposer #textarea { border-radius: 13px !important; border: 1px solid var(--pm-line2) !important; min-height: 44px !important; margin: 0 !important; box-shadow: none !important; width: auto !important; }
html body #mfComposer #textarea:focus { border-color: var(--pm-orange) !important; }
.mf-composer.mf-composer-solo { position: static; transform: none; width: auto; margin: 12px 0 0; padding: 8px; border: 1px solid var(--pm-line); border-radius: 16px; box-shadow: 0 3px 0 var(--pm-line2); }
.mf-composer-reply { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 800; color: var(--pm-brown); background: #fff8e1; border: 1px solid var(--pm-line); border-radius: 10px; padding: 5px 10px; margin-bottom: 6px; }
.mf-composer-reply a { color: #b42318; text-decoration: none; font-weight: 900; }
.mf-composer-panel .bb-wrapper { margin-bottom: 0; }
.mf-composer-panel .bb-toolbar { display: none !important; border-radius: 13px !important; border: 1px solid var(--pm-line2) !important; margin-bottom: 6px !important; }
.mf-composer.bb-open .mf-composer-panel .bb-toolbar { display: flex !important; }
.mf-composer-panel .bb-toolbar > a:first-child { display: none !important; }
.mf-composer-panel [id^="bb-dialog-"] { border: 1px solid var(--pm-line2) !important; border-radius: 13px; margin-bottom: 6px; }
.mf-composer-row { display: flex; align-items: flex-end; gap: 6px; }
.mf-c-btn { width: 44px; height: 44px; min-width: 44px; border-radius: 13px; background: var(--pm-card2); border: 1px solid var(--pm-line); box-shadow: 0 2px 0 var(--pm-line2); color: var(--pm-orange); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; font-family: 'Nunito', Tahoma, Arial, sans-serif; }
.mf-c-btn:active { transform: translateY(2px); box-shadow: none; }
.mf-c-bb { font-weight: 900; font-size: 13px; color: var(--pm-brown); }
.mf-c-bb.on { background: var(--pm-brown); border-color: var(--pm-brown); color: #fff; }
body.pg-forum textarea.mf-c-input, .mf-c-input { flex: 1; min-width: 0; min-height: 44px !important; height: 44px; max-height: 160px; box-sizing: border-box; border-radius: 13px !important; border: 1px solid var(--pm-line2) !important; background: #fff; padding: 11px 12px; font-family: 'Nunito', Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; color: var(--pm-ink); resize: none; outline: none; }
.mf-c-input:focus { border-color: var(--pm-orange) !important; }
.mf-c-send { min-width: 48px; height: 44px; padding: 0 14px; border-radius: 14px; border: 0; background: linear-gradient(180deg, #2bb33b, #1d992c); box-shadow: 0 4px 0 var(--pm-green-d); display: flex; align-items: center; justify-content: center; cursor: pointer; margin-bottom: 4px; }
.mf-c-send:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--pm-green-d); }
.mf-manage-open { width: 100%; height: 28px; margin-top: 6px; border-radius: 9px; background: var(--pm-card2); border: 1px solid var(--pm-line); box-shadow: 0 2px 0 var(--pm-line2); color: var(--pm-brown); font-family: 'Nunito', Tahoma, Arial, sans-serif; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.mf-manage-open:active { transform: translateY(2px); box-shadow: none; }

/* İdarəetmə pəncərəsi */
.mf-modal { display: none; position: fixed; inset: 0; z-index: 9000; background: rgba(40, 25, 8, .45); align-items: center; justify-content: center; padding: 16px; }
.mf-modal.open { display: flex; }
.mf-modal-box { width: 100%; max-width: 380px; max-height: 85vh; overflow-y: auto; background: var(--pm-card); border: 1px solid var(--pm-line); border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-family: 'Nunito', Tahoma, Arial, sans-serif; }
.mf-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: linear-gradient(180deg, #fff4dd, #ffe7b8); border-bottom: 1px solid var(--pm-line); font-weight: 900; font-size: 14px; color: var(--pm-brown); }
.mf-modal-head span { display: inline-flex; align-items: center; gap: 6px; }
.mf-modal-x { width: 30px; height: 30px; border-radius: 10px; border: 1px solid var(--pm-line); background: var(--pm-card2); color: var(--pm-brown); font-weight: 900; cursor: pointer; }
.mf-modal-body { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.mf-modal-body .mf-btn { margin: 0 !important; justify-content: center; }

/* ======================= FORUM round O: incə, yüngül görünüş ======================= */
body.pg-forum {
    --f-radius: 12px; --f-shadow: 0 1px 2px rgba(107, 68, 27, .07);
    --f-border: #f3dfb3; --f-bg: #fffaf0; --f-bg-alt: #fff4dd;
}
body.pg-forum .mf-container { padding: 8px; font-family: 'Nunito', Tahoma, Arial, sans-serif; }
/* Kartlar: nazik xətt, yumşaq kölgə, 3D yoxdur */
body.pg-forum .mf-card, body.pg-forum .surg-card { background: var(--f-bg) !important; border: 1px solid var(--f-border) !important; border-radius: 12px !important; box-shadow: var(--f-shadow) !important; margin-bottom: 10px; }
body.pg-forum .mf-card-header, body.pg-forum .surg-card-header { background: #fff4dd !important; color: var(--pm-brown) !important; border-bottom: 1px solid var(--f-border) !important; padding: 8px 12px !important; font-size: 13px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-shadow: none !important; gap: 6px; }
body.pg-forum .mf-card-header img, body.pg-forum .surg-card-header img { filter: none !important; width: 16px !important; height: auto; opacity: .85; }
/* Siyahılar */
body.pg-forum .mf-list-item { padding: 8px 12px; border-bottom: 1px solid #f6e7c6; background: transparent; border-left: 0 !important; }
body.pg-forum .mf-list-item:hover { background: #fff6e3; }
body.pg-forum .mf-list-item.unread { background: #fff6e3; }
body.pg-forum .mf-list-item.unread .mf-item-title { color: var(--pm-orange); }
body.pg-forum .mf-list-item.actual,
body.pg-forum .mf-list-item.most-viewed,
body.pg-forum .mf-list-item.most-liked,
body.pg-forum .mf-list-item.poll,
body.pg-forum .mf-list-item.pined,
body.pg-forum .mf-list-item.locked { background: transparent; box-shadow: inset 2px 0 0 var(--f-mark, #e6c888); }
body.pg-forum .mf-list-item.pined { --f-mark: #f59e0b; background: #fffbf0; }
body.pg-forum .mf-list-item.most-viewed { --f-mark: #a78bfa; }
body.pg-forum .mf-list-item.most-liked { --f-mark: #60a5fa; }
body.pg-forum .mf-list-item.poll { --f-mark: #4ade80; }
body.pg-forum .mf-list-item.locked { --f-mark: #cbd5e1; opacity: .85; }
body.pg-forum .mf-item-icon { width: 34px; height: 34px; border-radius: 10px; background: #fff1d2; margin-right: 10px; }
body.pg-forum .mf-item-icon img { width: 20px !important; height: 20px; }
body.pg-forum .mf-item-title { font-size: 14px !important; font-weight: 400 !important; margin-bottom: 2px; color: var(--pm-ink) !important; }
body.pg-forum .mf-item-meta { font-size: 11px; font-weight: 600; gap: 10px; color: #9a7a55; }
body.pg-forum .mf-item-meta img { width: 12px !important; opacity: .55; }
/* Statistika qutuları */
body.pg-forum .mf-stats-row { gap: 4px; padding: 8px; background: transparent; border-bottom: 1px solid var(--f-border); }
body.pg-forum .mf-stat-box { border: 1px solid #f6e7c6; border-radius: 9px; background: #fff; padding: 4px 2px; }
body.pg-forum .mf-stat-label { font-size: 10px; font-weight: 700; }
body.pg-forum .mf-stat-value { font-size: 13px; font-weight: 800; }
/* Yazılar */
body.pg-forum .mf-post { background: #fff !important; border: 1px solid #f6e7c6 !important; border-radius: 12px !important; box-shadow: var(--f-shadow) !important; }
body.pg-forum .mf-post-header { border-bottom: 1px solid #f8ecd2; }
body.pg-forum .mf-post-author { font-weight: 700; }
body.pg-forum .mf-post-footer a { background: transparent; border: 1px solid #f3dfb3; font-weight: 700; }
body.pg-forum .mf-best-answer { background: #f3fbf0 !important; border: 1px solid #b7e3ae !important; }
/* Düymələr: incə, alçaq */
body.pg-forum .mf-btn { min-height: 36px !important; padding: 0 14px !important; border-radius: 10px !important; font-size: 13px !important; font-weight: 800 !important; box-shadow: 0 2px 0 #c97412 !important; gap: 6px; }
body.pg-forum .mf-btn:active { transform: translateY(2px); box-shadow: none !important; }
body.pg-forum .mf-btn.green { box-shadow: 0 2px 0 var(--pm-green-d) !important; }
body.pg-forum .mf-btn.red { box-shadow: 0 2px 0 var(--pm-red-d) !important; }
body.pg-forum .mf-btn.outline { background: #fff !important; border: 1px solid var(--f-border) !important; box-shadow: none !important; color: var(--pm-brown) !important; }
body.pg-forum .mf-btn img { width: 14px !important; height: auto; }
body.pg-forum .mf-card > .mf-btn, body.pg-forum .mf-card .mf-btn.full { margin-bottom: 6px; }
/* Sahələr */
body.pg-forum .mf-input, body.pg-forum textarea.wide, body.pg-forum input.wide, body.pg-forum select.mf-input { min-height: 38px; border: 1px solid var(--f-border) !important; border-radius: 10px; font-size: 14px; }
body.pg-forum .pill-tabs { gap: 5px; }
body.pg-forum .pill-tab { padding: 5px 11px; font-size: 12px; font-weight: 700; border-radius: 999px; box-shadow: none; }
/* Yazma zolağı və idarəetmə pəncərəsi də incə */
body.pg-forum .mf-c-btn { box-shadow: none; border-color: var(--f-border); }
body.pg-forum .mf-c-send { box-shadow: 0 2px 0 var(--pm-green-d); margin-bottom: 2px; }
body.pg-forum .mf-manage-open { box-shadow: none; border-color: var(--f-border); }
body.pg-forum .mf-modal-box { border-radius: 14px; }
body.pg-forum .mf-modal-head { background: #fff4dd; font-size: 13px; font-weight: 800; padding: 9px 12px; }

/* ======================= FORUM round P ======================= */
/* Mövzu: baxış / bəyən / abunə / bəxşiş zolağı */
.mf-react-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 10px; font-family: 'Nunito', Tahoma, Arial, sans-serif; }
.mf-rc { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 11px; box-sizing: border-box; border-radius: 999px; background: #fff; border: 1px solid #f3dfb3; color: var(--pm-ink2); font-size: 13px; text-decoration: none; white-space: nowrap; }
.mf-rc a, .mf-rc span { text-decoration: none; color: inherit; display: inline-flex; align-items: center; gap: 5px; }
.mf-rc svg { flex-shrink: 0; }
.mf-rc b, .mf-rc-n { font-weight: 800; color: var(--pm-brown); font-size: 13px; }
.mf-rc-lbl { font-weight: 700; font-size: 12px; }
.mf-rc-views .mf-rc-lbl { display: none; }
.mf-rc-vote { gap: 7px; }
.mf-rc-vote .up { color: #16a34a; }
.mf-rc-vote .down { color: #dc2626; }
.mf-rc-vote .mf-rc-n.up, .mf-rc-vote .mf-rc-n.down { color: inherit; }
.mf-rc-sep { width: 1px; height: 16px; background: #f3dfb3; margin: 0 2px; }
.mf-rc-sub { color: var(--pm-blue, #1b81ca); }
.mf-rc-sub .mf-rc-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #eef6fd; color: #1b81ca; font-size: 11.5px; justify-content: center; }
.mf-rc-sub.on { background: #f1fbf2; border-color: #bfe6c3; color: #15803d; }
.mf-rc-sub.on .mf-rc-n { background: #dcf3df; color: #15803d; }
.mf-rc-tip { color: #b45309; font-weight: 800; background: #fff7e6; }
.mf-rc:active, .mf-rc-ic:active { opacity: .7; }

/* Ekranı dartanda alt zolaq yerindən oynamasın */
html, body { overscroll-behavior-y: none; }

/* Yazma yerlərinin fonu bir az tünd — ortadakı hissədən seçilsin */
body.pg-chat .chat-input-area, body.pg-mail .chat-input-area, body.pg-mail.pg-id .chat-input-area, .mf-composer { background: #f5d8a0 !important; border-top: 1px solid #e6c888 !important; }
.mf-composer.mf-composer-solo { border: 1px solid #e6c888 !important; }
body.pg-chat .chat-btn-smile, body.pg-mail.pg-id .chat-btn-smile, .mf-c-btn, .mf-manage-open, .chat-admin-btn { background: #fff8e8; }

/* ===== Bildirişlər (round X): rəngli, saytın ikonları, üst panelin altında açılan boşluq ===== */
.pn-queue { display: none !important; }
.pn-wrap { margin: 0 10px; }
.pn-box { height: 0; overflow: hidden; opacity: 0; transform: translateY(-6px); transition: height .35s cubic-bezier(.2, 0, 0, 1), opacity .25s ease, transform .35s cubic-bezier(.2, 0, 0, 1); }
.pn-box.show { opacity: 1; transform: none; }
.pn-box.open { overflow: visible; }
.pn-box.hide { opacity: 0; transform: translateY(-4px) scale(.98); }
.pn-in { padding: 7px 0 3px; }
.pn { --c: #6b441b; --bg: #fff8e1; --bd: #f3dfb3; display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 10px; box-sizing: border-box; background: var(--bg); border: 1px solid var(--bd); border-left: 4px solid var(--c); border-radius: 9px; box-shadow: 0 1px 3px rgba(107, 68, 27, .14); font: 600 13px/1.4 'Nunito', Tahoma, Arial, sans-serif; color: var(--c); cursor: pointer; }
.pn-ic { display: inline-flex; flex-shrink: 0; }
.pn-ic img { width: 16px; height: 16px; display: block; }
.pn-lb { font-size: 12.5px; font-weight: 700; opacity: .8; white-space: nowrap; }
.pn-v { flex: 1; min-width: 0; word-wrap: break-word; }
.pn-v.num { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.pn-v img { vertical-align: middle; max-height: 16px; width: auto; }
.pn-v a { color: #1b81ca; font-weight: 800; text-decoration: none; }
.pn-v div { margin: 0 !important; }
.pn-income, .pn-ok { --c: #157a37; --bg: #e9f7ee; --bd: #b9e4c6; }
.pn-expense, .pn-err { --c: #b42318; --bg: #fdecea; --bd: #f6c3bd; }
.pn-exp { --c: #b45309; --bg: #fff4dd; --bd: #f6d7a0; }
.pn-diamond { --c: #0b6aa8; --bg: #e8f4fc; --bd: #b8dcf3; }
.pn-harvest { --c: #6b441b; --bg: #fff8e1; --bd: #f3dfb3; }
.pn-text { --c: #6b441b; --bg: #fff8e1; --bd: #f3dfb3; }
.pn-text .pn-v { color: #4a331c; font-weight: 600; }

/* ===== Səhifələmə (round U) ===== */
.pgn { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5px; margin: 10px auto 12px; padding: 0 8px; font-family: 'Nunito', Tahoma, Arial, sans-serif; }
.pgn-a { min-width: 34px; height: 34px; padding: 0 8px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #fffaf0; border: 1px solid #f3dfb3; color: #6b441b !important; font-size: 13.5px; font-weight: 800; text-decoration: none !important; box-shadow: 0 1px 2px rgba(107,68,27,.08); transition: background .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
a.pgn-a:hover { background: #fff1d6; }
a.pgn-a:active { transform: scale(.94); }
.pgn-a.cur { background: #006db7; border-color: #006db7; color: #fff !important; box-shadow: 0 2px 6px rgba(0,109,183,.3); }
.pgn-nav { font-size: 20px; line-height: 1; padding-bottom: 2px; color: #d35400 !important; }
.pgn-a.off { opacity: .4; box-shadow: none; }
.pgn-gap { color: #b08a5a; font-weight: 800; padding: 0 2px; }

/* ===== Gündəlik və almaz tapşırıqları (round V): incə, zərif ===== */
.tk-wrap { max-width: 640px; margin: 0 auto; padding: 0 10px 10px; font-family: 'Nunito', Tahoma, Arial, sans-serif; color: #4a331c; }
.tk-streak { background: #fffaf0; border: 1px solid #f3dfb3; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.tk-streak-h { font-size: 13.5px; font-weight: 600; color: #6b441b; }
.tk-streak-s { font-size: 11.5px; line-height: 1.4; color: #9a7a55; margin: 3px 0 8px; }
.tk-days { display: flex; gap: 5px; }
.tk-day { flex: 1; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #b08a5a; background: #fff; border: 1px solid #f3dfb3; }
.tk-day.done { background: #e7f6ea; border-color: #b7e2c0; color: #1e8e3e; }
.tk-day.cur { background: #006db7; border-color: #006db7; color: #fff; }
.tk-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 2px 4px 8px; font-size: 12px; color: #9a7a55; }
.tk-head b { font-weight: 800; color: #6b441b; white-space: nowrap; }
.tk-item { display: flex; align-items: center; gap: 10px; background: #fffaf0; border: 1px solid #f3dfb3; border-radius: 12px; padding: 9px 10px 9px 12px; margin-bottom: 6px; }
.tk-main { flex: 1; min-width: 0; }
.tk-name { font-size: 13.5px; font-weight: 600; color: #4a331c; line-height: 1.3; }
.tk-bar { height: 4px; border-radius: 999px; background: #f3e3c3; overflow: hidden; margin: 6px 0 4px; }
.tk-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f59e0b, #d35400); transition: width .4s; }
.tk-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px; color: #9a7a55; font-variant-numeric: tabular-nums; }
.tk-rw { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; color: #6b441b; }
.tk-rw img + img { margin-left: 6px; }
.tk-btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 30px; padding: 0 12px; border-radius: 9px; font-size: 12px; font-weight: 800; text-decoration: none !important; white-space: nowrap; }
.tk-btn.go { background: #fff; border: 1px solid #f3dfb3; color: #d35400 !important; }
.tk-btn.get { background: #1e8e3e; color: #fff !important; box-shadow: 0 1px 3px rgba(30,142,62,.35); }
.tk-btn.done { background: #e7f6ea; color: #1e8e3e; padding: 0; width: 30px; }
.tk-btn.lock { background: #f6eedd; padding: 0; width: 30px; font-size: 13px; }
.tk-item.is-ready { border-color: #b7e2c0; background: #f6fcf7; }
.tk-item.is-ready .tk-bar i { background: #1e8e3e; }
.tk-item.is-done { opacity: .7; }
.tk-item.is-done .tk-bar i { background: #1e8e3e; }
.tk-item.is-locked { opacity: .6; }

/* Həftəlik almaz tapşırıqları: başlıq bloku */
.tk-hero { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #fff8e1, #ffecc7); border: 1px solid #f3dfb3; border-radius: 14px; padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(107,68,27,.1); }
.tk-hero-ic { width: 46px; height: 46px; border-radius: 12px; background: #fff; border: 1px solid #f3dfb3; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tk-hero-ic img { width: 30px; height: 30px; }
.tk-hero-tx { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.4; color: #7a5a36; }
.tk-hero-tx b { display: block; font-size: 14px; font-weight: 600; color: #6b441b; margin-bottom: 2px; }
.tk-hero-time { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: #006db7; color: #fff; font-size: 12px; font-weight: 700; }
.tk-hero-time img { width: 14px; height: 14px; }

/* ===================== ƏMƏLİYYAT OTAĞI (canlı masa) round Z ===================== */
.or-app { max-width: 640px; margin: 0 auto; padding: 6px 8px 10px; font-family: 'Nunito', Tahoma, Arial, sans-serif; color: #4a331c; }
.or-k { font-size: 11px; color: #8c6a46; font-weight: 600; }
.or-kicked { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; background: #fdecea; border: 1px solid #f6c3bd; color: #b42318; border-radius: 12px; padding: 9px 12px; margin-bottom: 10px; font-size: 12.5px; font-weight: 700; }
.or-kicked span { display: flex; align-items: center; gap: 6px; }
.or-kicked a { background: #157a37; color: #fff; padding: 6px 12px; border-radius: 999px; text-decoration: none; font-size: 12px; }

/* baş hissə */
.or-head { background: linear-gradient(180deg, #fffaf0, #fff3d6); border: 1px solid #f3dfb3; border-radius: 16px; padding: 10px 10px 12px; box-shadow: 0 2px 8px rgba(107,68,27,.08); margin-bottom: 10px; }
.or-top { display: flex; align-items: center; gap: 10px; }
.or-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; padding: 5px 8px; background: #006db7; color: #fff; border-radius: 12px; line-height: 1.1; }
.or-stage .or-k { color: #cfe8fb; font-size: 10px; }
.or-stage-n { font-size: 16px; font-weight: 800; white-space: nowrap; }
.or-patient { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; }
.or-patient > img { opacity: .75; }
.or-p-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.or-p-dis { font-size: 11.5px; color: #d35400; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.or-timer { position: relative; width: 44px; height: 44px; flex: 0 0 44px; }
.or-timer svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.or-timer circle { fill: none; stroke-width: 4; }
.or-timer .bg { stroke: #f3dfb3; }
.or-timer .fg { stroke: #157a37; stroke-linecap: round; transition: stroke-dashoffset .5s linear, stroke .3s; }
.or-timer b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: #4a331c; }
.or-timer.low .fg { stroke: #d92d20; }
.or-timer.low b { color: #d92d20; animation: orPulse .9s ease-in-out infinite; }
.or-mute { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; border: 1px solid #f3dfb3; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; color: #6b441b; }
.or-mute.off { opacity: .45; }
.or-mute.off::after { content: ''; position: absolute; width: 20px; height: 2px; background: #b42318; transform: rotate(-45deg); }
.or-mute { position: relative; }
.or-steps { display: flex; gap: 3px; margin: 10px 0 7px; }
.or-steps i { flex: 1; height: 6px; border-radius: 4px; background: #f3dfb3; transition: background .3s; }
.or-steps i.ok { background: #157a37; }
.or-steps i.cur { background: #f0a020; animation: orPulse 1.2s ease-in-out infinite; }
.or-steps i.po { flex: 0 0 14px; background: repeating-linear-gradient(45deg, #f3dfb3 0 3px, #fff3d6 3px 6px); }
.or-steps i.po.cur { background: #d92d20; }
.or-next { font-size: 13px; line-height: 1.35; margin-bottom: 8px; }
.or-next #orAction { font-weight: 700; color: #6b441b; }
.or-ctrl:empty { display: none; }
.or-roll { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 14px; padding: 13px 16px; font: 800 16px 'Nunito', sans-serif; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, #2fb36a, #157a37); box-shadow: 0 4px 0 #0e5a28, 0 8px 16px rgba(21,122,55,.25); transition: transform .08s; animation: orGlow 1.8s ease-in-out infinite; }
.or-roll:active { transform: translateY(3px); box-shadow: 0 1px 0 #0e5a28; }
.or-roll-ic { width: 30px; height: 30px; border-radius: 9px; background: #fff url(/assets/images/icons/dice.png) center/20px no-repeat; box-shadow: 0 2px 0 rgba(0,0,0,.15); animation: orWiggle 1.8s ease-in-out infinite; }
.or-skills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.or-skill { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; border: 1px solid #f3dfb3; background: #fff; border-radius: 12px; padding: 8px 10px 8px; cursor: pointer; font-family: 'Nunito', sans-serif; color: #4a331c; transition: border-color .15s, transform .08s; }
.or-skill b { font-size: 13px; font-weight: 700; color: #006db7; }
.or-skill small { font-size: 10.5px; color: #8c6a46; line-height: 1.25; padding-right: 30px; }
.or-skill:active { transform: scale(.97); }
.or-skill.sel { border-color: #006db7; box-shadow: 0 0 0 2px rgba(0,109,183,.15); }
.or-skill.poor { opacity: .5; cursor: not-allowed; }
.or-price { position: absolute; right: 8px; top: 8px; display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 800; color: #0b6aa8; background: #e8f4fc; border-radius: 999px; padding: 1px 6px; }
.or-targets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: #8c6a46; }
.or-targets[hidden] { display: none; }
.or-targets button { border: 1px solid #f6c3bd; background: #fdecea; color: #b42318; border-radius: 999px; padding: 5px 12px; font: 700 12px 'Nunito', sans-serif; cursor: pointer; }
.or-note { margin-top: 8px; font-size: 11.5px; color: #b45309; background: #fff4dd; border: 1px dashed #f6ad55; border-radius: 10px; padding: 6px 10px; text-align: center; }
.or-wait { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: #8c6a46; background: #fff; border: 1px dashed #f3dfb3; border-radius: 12px; padding: 10px; }
.or-dots { display: inline-flex; gap: 3px; }
.or-dots i { width: 6px; height: 6px; border-radius: 50%; background: #d35400; animation: orDot 1s ease-in-out infinite; }
.or-dots i:nth-child(2) { animation-delay: .15s; } .or-dots i:nth-child(3) { animation-delay: .3s; }
.or-btn { display: inline-block; margin-top: 10px; padding: 9px 22px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 13px; }
.or-btn-brown { background: #6b441b; color: #fff !important; box-shadow: 0 3px 0 #4a331c; }

/* yekun lövhə */
.or-final { text-align: center; background: #e9f7ee; border: 1px solid #b9e4c6; border-radius: 14px; padding: 12px; margin-bottom: 4px; }
.or-final-t { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 800; color: #157a37; margin-bottom: 8px; }
.or-final-w { display: inline-flex; align-items: center; gap: 10px; text-align: left; background: #fff; border-radius: 12px; padding: 6px 14px 6px 6px; margin-bottom: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.or-final-w img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #f0c419; }
.or-final-w b { font-size: 15px; color: #6b441b; }
.or-final-rw { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.or-final-rw span { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid #b9e4c6; color: #157a37; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 700; }
.or-final-note { font-size: 12px; color: #b42318; background: #fdecea; border-left: 3px solid #b42318; border-radius: 0 8px 8px 0; padding: 6px 10px; margin: 4px auto 8px; text-align: left; max-width: 92%; }

/* zər masası */
.or-table-wrap { display: flex; justify-content: center; margin-bottom: 10px; }
.or-table { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1 / 1; border-radius: 26px; padding: 12px;
  background: linear-gradient(145deg, #8a5a2b, #5a3714); box-shadow: 0 10px 22px rgba(74,51,28,.28), inset 0 2px 0 rgba(255,255,255,.18); }
.or-felt { position: absolute; inset: 12px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #2e9a62 0%, #1d7a4b 55%, #145c37 100%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.08), inset 0 6px 18px rgba(0,0,0,.35); }
.or-felt::before { content: ''; position: absolute; inset: 16%; border: 2px dashed rgba(255,255,255,.14); border-radius: 50%; }
.or-felt::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Ccircle cx='1' cy='1' r='.6' fill='%23ffffff' fill-opacity='.05'/%3E%3C/svg%3E"); }
.or-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); text-align: center; color: rgba(255,255,255,.85); z-index: 1; pointer-events: none; width: 44%; }
.or-center b { display: block; font-size: 15px; font-weight: 700; letter-spacing: .3px; }
.or-center small { display: block; font-size: 11.5px; opacity: .8; margin-top: 1px; }
.or-seats { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.or-seat { position: absolute; display: flex; flex-direction: column; align-items: center; width: 84px; pointer-events: auto; transition: opacity .3s; }
.or-s-b { left: 50%; bottom: 10px; transform: translateX(-50%); }
.or-s-t { left: 50%; top: 10px; transform: translateX(-50%); flex-direction: column-reverse; }
.or-s-l { left: 10px; top: 50%; transform: translateY(-50%); width: 70px; }
.or-s-r { right: 10px; top: 50%; transform: translateY(-50%); width: 70px; }
.or-ava { position: relative; width: 48px; height: 48px; border-radius: 50%; background: #fff8e1; border: 3px solid #fbdc99; box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.or-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.or-seat.me .or-ava { border-color: #3fa9f5; }
.or-seat.think .or-ava::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255,214,90,.95); border-top-color: transparent; animation: orSpin 1.1s linear infinite; }
.or-ok { display: none; position: absolute; right: -4px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; background: #157a37 url(/assets/images/icons/tick.png) center/11px no-repeat; border: 2px solid #fff; }
.or-seat.done .or-ok { display: block; animation: orPop .35s ease-out; }
.or-nick { max-width: 100%; margin-top: 3px; padding: 1px 7px; border-radius: 8px; background: rgba(40,24,8,.72); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.or-s-t .or-nick { margin: 0 0 3px; }
.or-pts { display: inline-flex; align-items: center; gap: 3px; margin-top: 2px; background: #fff8e1; border: 1px solid #fbdc99; border-radius: 999px; padding: 0 7px; font-size: 12px; color: #6b441b; }
.or-s-t .or-pts { margin: 0 0 2px; order: -1; }
.or-pts b { font-weight: 800; }
.or-seat.kicked { opacity: .45; filter: grayscale(1); }
.or-seat.kicked .or-nick { text-decoration: line-through; }
.or-seat.empty .or-ava { border-style: dashed; background: rgba(255,255,255,.15); box-shadow: none; }
.or-seat.throw .or-ava { animation: orThrow .45s ease-out; }
.or-seat.crown .or-ava { border-color: #f0c419; box-shadow: 0 0 0 4px rgba(240,196,25,.35), 0 0 22px rgba(240,196,25,.85); }
.or-seat.crown .or-ava::before { content: ''; position: absolute; left: 50%; top: -19px; width: 22px; height: 22px; margin-left: -11px; background: url(/assets/images/icons/crown.png) center/contain no-repeat; animation: orPop .4s ease-out; }
.or-float { position: absolute; left: 50%; top: 0; transform: translateX(-50%); font-size: 18px; font-weight: 900; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,.45); animation: orFloat 1.8s ease-out forwards; pointer-events: none; z-index: 5; }
.or-float.win { color: #ffd54a; font-size: 22px; }

/* 3D zər */
.or-dice { position: absolute; inset: 0; z-index: 2; pointer-events: none; perspective: 600px; }
.or-die { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; transform-style: preserve-3d; filter: drop-shadow(0 6px 5px rgba(0,0,0,.45)); transition: opacity .45s; }
.or-die.out { opacity: 0; }
.or-cube { position: relative; width: 30px; height: 30px; transform-style: preserve-3d; }
.or-cube .f { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(3,1fr); padding: 4px; border-radius: 6px; background: linear-gradient(145deg, #ffffff, #e9e4dc); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), inset 0 -2px 3px rgba(0,0,0,.08); backface-visibility: hidden; }
.or-cube .f s { display: block; margin: auto; width: 5px; height: 5px; border-radius: 50%; text-decoration: none; }
.or-cube .f s.on { background: radial-gradient(circle at 35% 35%, #555, #111); }
.or-cube .f1 s.on { background: radial-gradient(circle at 35% 35%, #e0443a, #a3150c); width: 7px; height: 7px; }
.or-cube .f1 { transform: translateZ(15px); }
.or-cube .f6 { transform: rotateY(180deg) translateZ(15px); }
.or-cube .f2 { transform: rotateY(90deg) translateZ(15px); }
.or-cube .f5 { transform: rotateY(-90deg) translateZ(15px); }
.or-cube .f3 { transform: rotateX(90deg) translateZ(15px); }
.or-cube .f4 { transform: rotateX(-90deg) translateZ(15px); }
.or-die.hid .f s { visibility: hidden; }
.or-die.hid .f::after { content: '?'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 900 16px 'Nunito', sans-serif; color: #6b441b; }

/* səhnə */
.or-scene { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid #f3dfb3; box-shadow: 0 2px 8px rgba(107,68,27,.1); margin-bottom: 10px; background: #cfe9ec; }
.or-svg { display: block; width: 100%; height: auto; aspect-ratio: 9 / 5; }
.or-beam { animation: orBeam 4s ease-in-out infinite; transform-origin: 180px 30px; }
.or-ecg { stroke-dasharray: 90; animation: orEcg 1.6s linear infinite; }
.or-drip { animation: orDrip 1.8s ease-in infinite; }
.or-chest { animation: orBreath 3.2s ease-in-out infinite; transform-origin: 190px 128px; }
.or-arm-r { transform-origin: 210px 88px; animation: orArm 3s ease-in-out infinite; }
.or-arm-l { transform-origin: 170px 88px; animation: orArmL 3.4s ease-in-out infinite; }
.or-scene.work .or-arm-r { animation: orCut .45s ease-in-out 5; }
.or-scene.work .or-spark { animation: orSpark .45s ease-in-out 5; }
.or-scene.work .or-surgeon { animation: orLean 2.2s ease-in-out; transform-origin: 190px 128px; }
.or-healed .or-ecg { stroke: #ffd54a; }
.or-dr { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.92); color: #006db7; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.or-scene.work .or-dr { animation: orPop .4s ease-out; }
.or-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 9px; background: linear-gradient(180deg, rgba(20,40,48,0), rgba(20,40,48,.78)); color: #fff; font-size: 13px; font-weight: 600; text-align: center; }
.or-caption::first-letter { text-transform: uppercase; }

/* jurnal */
.or-log { background: #fffaf0; border: 1px solid #f3dfb3; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(107,68,27,.07); }
.or-log-h { display: flex; align-items: center; gap: 7px; padding: 9px 12px; font-size: 14px; font-weight: 600; color: #6b441b; border-bottom: 1px solid #f3dfb3; background: #fff3d6; }
.or-log-list { max-height: 300px; overflow-y: auto; padding: 4px 0; }
.or-li { display: flex; align-items: flex-start; gap: 8px; padding: 6px 12px; font-size: 12.5px; line-height: 1.4; border-bottom: 1px solid #f8ecd0; }
.or-li:last-child { border-bottom: 0; }
.or-li img { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; }
.or-li-dot { width: 6px; height: 6px; border-radius: 50%; background: #d9c39a; flex: 0 0 6px; margin: 6px 5px 0; }
.or-li.log-type-stage { background: #fff4dd; color: #6b441b; }
.or-li.log-type-action { color: #8c6a46; font-size: 12px; }
.or-li.new { animation: orIn .45s ease-out; }
.or-li.empty { justify-content: center; color: #8c6a46; }

@keyframes orPulse { 50% { opacity: .55; } }
@keyframes orGlow { 50% { box-shadow: 0 4px 0 #0e5a28, 0 8px 22px rgba(47,179,106,.55); } }
@keyframes orWiggle { 0%,70%,100% { transform: rotate(0); } 78% { transform: rotate(-18deg); } 86% { transform: rotate(14deg); } 94% { transform: rotate(-6deg); } }
@keyframes orDot { 50% { transform: translateY(-4px); opacity: .5; } }
@keyframes orSpin { to { transform: rotate(360deg); } }
@keyframes orPop { 0% { transform: scale(.3); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes orThrow { 30% { transform: scale(1.12) rotate(-6deg); } 100% { transform: none; } }
@keyframes orFloat { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -10px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -46px) scale(1); } }
@keyframes orBeam { 50% { opacity: .8; } }
@keyframes orEcg { from { stroke-dashoffset: 180; } to { stroke-dashoffset: 0; } }
@keyframes orDrip { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }
@keyframes orBreath { 50% { transform: scaleY(1.06); } }
@keyframes orArm { 50% { transform: rotate(6deg); } }
@keyframes orArmL { 50% { transform: rotate(-5deg); } }
@keyframes orCut { 50% { transform: rotate(-16deg) translate(-4px, 4px); } }
@keyframes orSpark { 50% { opacity: 1; } }
@keyframes orLean { 30%,70% { transform: translateY(5px); } }
@keyframes orIn { from { opacity: 0; transform: translateY(-8px); background: #e9f7ee; } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .or-app * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* Əməliyyat səhnəsi: şəkilli canlı variant */
.or-scene.ors { background: #2a6f7c; }
.ors-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.ors-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: orsCam 18s ease-in-out infinite; transform-origin: 50% 40%; }
.ors-glow { position: absolute; left: 52%; top: 17%; width: 46%; aspect-ratio: 2 / 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,240,.75), rgba(255,255,240,0)); mix-blend-mode: screen; animation: orsGlow 3.5s ease-in-out infinite; pointer-events: none; }
.ors-beam { position: absolute; left: 32%; top: 20%; width: 42%; height: 62%; clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255,255,235,.38), rgba(255,255,235,.06)); mix-blend-mode: screen; animation: orsBeam 5s ease-in-out infinite; }
.ors-beam i { position: absolute; bottom: 0; width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.9); animation: orsDust 7s linear infinite; opacity: 0; }
.ors-beam i:nth-child(1) { left: 30%; animation-delay: 0s; } .ors-beam i:nth-child(2) { left: 45%; animation-delay: 1.2s; } .ors-beam i:nth-child(3) { left: 60%; animation-delay: 2.5s; }
.ors-beam i:nth-child(4) { left: 52%; animation-delay: 3.6s; width: 2px; height: 2px; } .ors-beam i:nth-child(5) { left: 38%; animation-delay: 4.4s; } .ors-beam i:nth-child(6) { left: 68%; animation-delay: 5.3s; width: 2px; height: 2px; } .ors-beam i:nth-child(7) { left: 25%; animation-delay: 6.1s; }
.ors-drop { position: absolute; top: 42%; width: 4px; height: 6px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: rgba(200,235,255,.95); box-shadow: 0 0 2px rgba(255,255,255,.8); animation: orsDrop 2.2s ease-in infinite; }
.ors-drop.d2 { animation-delay: 1.1s; }
.ors-doc { position: absolute; left: 35.5%; bottom: 37%; width: 28%; transform-origin: 50% 100%; animation: orsSway 4.5s ease-in-out infinite; }
.ors-doc img { display: block; width: 100%; height: auto; }
.ors-doc .ors-cut { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .35s; }
.ors-doc .ors-idle { transition: opacity .35s; }
.ors-pat { position: absolute; left: 7%; bottom: -3%; width: 74%; }
.ors-pat img { display: block; width: 100%; height: auto; }
.ors-pat .ors-breath { position: absolute; left: 0; top: 0; clip-path: polygon(37% 17%, 100% 20%, 100% 46%, 37% 46%); transform-origin: 50% 46%; animation: orsBreath 3.4s ease-in-out infinite; }
.ors-rig { position: absolute; right: 2%; top: 36%; bottom: 0; width: 27%; display: flex; flex-direction: column; align-items: stretch; z-index: 2; }
.ors-mon { position: relative; width: 100%; box-sizing: border-box; padding: 4px 5px 3px; border-radius: 7px; background: linear-gradient(180deg, #1d2b33, #11191e); border: 2px solid #5f7380; box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.ors-mon-top { display: flex; justify-content: space-between; font: 800 10px 'Nunito', sans-serif; color: #39e39a; }
.ors-spo { color: #4fc3f7; font-weight: 700; }
.ors-mon svg { display: block; width: 100%; height: 26px; }
.ors-mon polyline { fill: none; stroke: #39e39a; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ors-mon .or-ecg { stroke-dasharray: 160; animation: orEcg2 1.6s linear infinite; }
.ors-spark { position: absolute; left: 49%; top: 44%; width: 0; height: 0; }
.ors-spark i { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle, #fffde0 0, rgba(255,230,120,.8) 30%, rgba(255,230,120,0) 70%); opacity: 0; }
.or-scene.work .ors-doc .ors-cut { opacity: 1; }
.or-scene.work .ors-doc .ors-idle { opacity: 0; }
.or-scene.work .ors-doc { animation: orsLean 2.4s ease-in-out; }
.or-scene.work .ors-spark i { animation: orsSpark .6s ease-out 4; }
.or-scene.work .ors-spark i:nth-child(2) { left: -30px; top: -4px; animation-delay: .2s; }
.or-scene.work .ors-spark i:nth-child(3) { left: 4px; top: -8px; animation-delay: .4s; }
.or-scene.work .ors-glow { animation: orsFlash .5s ease-in-out 3; }
.or-scene.work .ors-mon { border-color: #39e39a; box-shadow: 0 0 14px rgba(57,227,154,.6); }
.or-healed .ors-mon polyline { stroke: #ffd54a; }
.or-healed .ors-stage::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 45% 60%, rgba(120,255,170,.28), rgba(120,255,170,0) 60%); animation: orsGlow 2.5s ease-in-out infinite; }
@keyframes orsCam { 50% { transform: scale(1.04); } }
@keyframes orsGlow { 50% { opacity: .65; } }
@keyframes orsBeam { 50% { opacity: .75; } }
@keyframes orsDust { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-160px) translateX(12px); opacity: 0; } }
@keyframes orsDrop { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { transform: translateY(26px); opacity: 1; } 100% { transform: translateY(30px); opacity: 0; } }
@keyframes orsSway { 50% { transform: translateY(1.5%) rotate(.6deg); } }
@keyframes orsBreath { 50% { transform: scaleY(1.035) translateY(-.6%); } }
@keyframes orsLean { 20%, 80% { transform: translateY(5%) scale(1.02); } }
@keyframes orsSpark { 0% { opacity: 0; transform: scale(.3); } 40% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0; transform: scale(.6); } }
@keyframes orsFlash { 50% { opacity: 1; filter: brightness(1.5); } }
@keyframes orEcg2 { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }


/* Z4: monitor xəstənin qabağında, nazik dayaq üstündə */
.ors-rig .ors-mon { padding: 5px 5px 4px; border-radius: 9px; background: linear-gradient(180deg, #0f171c, #0a1013); border: 3px solid #3d4a52; box-shadow: 0 0 0 1px #8fa1ab, 0 8px 18px rgba(0,0,0,.45); }
.ors-row { display: flex; align-items: center; gap: 3px; border-bottom: 1px solid rgba(255,255,255,.06); }
.ors-row svg { flex: 1; height: 19px; display: block; }
.ors-row polyline, .ors-row path { fill: none; stroke-width: 1.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ors-row .or-ecg { stroke: #39e39a; }
.ors-pleth { stroke: #4fc3f7; stroke-dasharray: 260; animation: orEcg2 2.2s linear infinite; }
.ors-resp { stroke: #ffd54a; stroke-dasharray: 200; animation: orEcg2 3.6s linear infinite; }
.ors-num { min-width: 34%; text-align: right; font: 800 12px 'Nunito', sans-serif; line-height: 1; }
.ors-num small { font-size: 8px; }
.ors-num.g { color: #39e39a; } .ors-num.b { color: #4fc3f7; } .ors-num.y { color: #ffd54a; }
.ors-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; font: 700 8.5px 'Nunito', sans-serif; color: #c9d6dc; }
.ors-foot b { color: #fff; }
.ors-led { width: 6px; height: 6px; border-radius: 50%; background: #39e39a; box-shadow: 0 0 5px #39e39a; animation: orPulse 1.6s ease-in-out infinite; }
.ors-pole { flex: 1; width: 6px; margin: 0 auto; background: linear-gradient(90deg, #6f828c, #e3ebee, #6f828c); position: relative; }
.ors-pole::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 44px; height: 7px; margin-left: -22px; border-radius: 4px; background: linear-gradient(180deg, #8fa1ab, #55656e); }
.or-scene.work .ors-rig .ors-mon { border-color: #39e39a; }

/* Z5: səhnə masanın altından kəsilir, monitor yuxarıda */
.ors-stage { aspect-ratio: 16 / 7.7; }
.or-scene.ors .or-caption { padding: 14px 12px 6px; font-size: 12.5px; }
.ors-inner { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 16 / 9; }
.ors-rig { top: 46%; right: .8%; width: 23.5%; }

/* Z7: düzəlişlər */
.ors-stage { aspect-ratio: 16 / 6.9; }
.or-scene.ors .or-caption, .or-scene .or-caption { top: 0; bottom: auto; padding: 9px 12px 22px; background: linear-gradient(180deg, rgba(16,34,42,.78), rgba(16,34,42,0)); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; }
.or-cap-dr { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.92); color: #006db7; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 700; }
.or-cap-tx { font-size: 12.5px; font-weight: 600; }
.or-cap-tx::first-letter { text-transform: uppercase; }
.or-scene.work .or-cap-dr { animation: orPop .4s ease-out; }
.or-dr { display: none !important; }
.ors-pat::after { content: ''; position: absolute; left: 42%; top: 16%; width: 30%; height: 26%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.22), rgba(255,255,255,0)); animation: orsBreathGlow 3.4s ease-in-out infinite; pointer-events: none; }
@keyframes orsBreathGlow { 50% { opacity: .2; transform: translateY(-2%) scale(1.05); } }
.or-healed .ors-doc, .or-healed .ors-pat, .or-healed .ors-rig, .or-healed .ors-spark, .or-healed .ors-drop { display: none; }
.or-healed .ors-stage::after { display: none; }
.or-log-list { scrollbar-width: none; -ms-overflow-style: none; }
.or-log-list::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* həqiqi 3D zər */
.or-dice { perspective: none; }
.or-die { filter: none; perspective: 240px; transform-style: flat; width: 30px; height: 30px; }
.or-die::after { content: ''; position: absolute; left: 1px; right: 1px; bottom: -7px; height: 9px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.45), rgba(0,0,0,0)); z-index: -1; }
.or-cube { transform-style: preserve-3d; }
.or-cube .f { border-radius: 5px; background: radial-gradient(circle at 35% 30%, #ffffff, #f1ece4 70%, #e2dbd0); box-shadow: inset 0 0 0 1px rgba(120,100,80,.18), inset 0 0 6px rgba(0,0,0,.08); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ors-rig { top: 38%; right: 1%; width: 21.5%; }

/* Z8 */
.ors-stage { aspect-ratio: 16 / 6.5; }
.ors-rig { top: 36%; right: 1%; width: 21.5%; bottom: auto; height: 35.5%; }
.ors-rig .ors-mon { height: 100%; display: flex; flex-direction: column; }
.ors-rig .ors-row { flex: 1; min-height: 0; }
.ors-rig .ors-row svg { height: 100%; max-height: 34px; }
.ors-rig .ors-pole { display: none; }
.ors-pat::after { display: none; }
.ors-pat .ors-chest { position: absolute; left: 0; top: 0; width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 13% 15% at 43% 41%, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 13% 15% at 43% 41%, #000 45%, transparent 100%);
  transform-origin: 43% 60%; animation: orsChest 3.6s ease-in-out infinite; }
@keyframes orsChest { 0%, 100% { transform: translateY(0) scale(1); } 45% { transform: translateY(-.7%) scale(1.012); } }
/* zər: düz yuxarıdan, yalnız bir üz görünür; kənarlar təmiz */
.or-die { width: 32px; height: 32px; margin: -16px 0 0 -16px; perspective: 400px; will-change: transform; }
.or-cube { width: 32px; height: 32px; will-change: transform; }
.or-cube .f { inset: -.5px; border-radius: 3px; background: #fbf8f2; box-shadow: inset 0 0 0 1px rgba(120,100,80,.22), inset 0 -3px 5px rgba(0,0,0,.07), inset 0 2px 3px rgba(255,255,255,.9); }
.or-cube .f1 { transform: translateZ(16px); } .or-cube .f6 { transform: rotateY(180deg) translateZ(16px); }
.or-cube .f2 { transform: rotateY(90deg) translateZ(16px); } .or-cube .f5 { transform: rotateY(-90deg) translateZ(16px); }
.or-cube .f3 { transform: rotateX(90deg) translateZ(16px); } .or-cube .f4 { transform: rotateX(-90deg) translateZ(16px); }
.or-cube .f s { width: 6px; height: 6px; }
.or-cube .f1 s.on { width: 8px; height: 8px; }
.or-die::after { left: 0; right: 0; bottom: -6px; height: 8px; }

/* Z9: yığcam idarə bloku */
.or-head { padding: 8px 10px 10px; }
.or-top { gap: 8px; }
.or-stage { min-width: 50px; padding: 3px 8px; border-radius: 10px; }
.or-stage .or-k { font-size: 9px; }
.or-stage-n { font-size: 14px; }
.or-patient > img { width: 20px; height: 20px; }
.or-p-name { font-size: 12.5px; }
.or-p-dis { font-size: 11px; }
.or-timer, .or-timer svg { width: 38px; height: 38px; flex-basis: 38px; }
.or-timer b { font-size: 12.5px; }
.or-mute { width: 28px; height: 28px; flex-basis: 28px; }
.or-steps { margin: 7px 0 5px; }
.or-steps i { height: 4px; }
.or-next { font-size: 12px; margin-bottom: 7px; }
.or-roll { padding: 8px 14px; border-radius: 12px; font-size: 14.5px; gap: 8px; box-shadow: 0 3px 0 #0e5a28, 0 5px 10px rgba(21,122,55,.2); }
.or-roll:active { transform: translateY(2px); }
.or-roll-ic { width: 24px; height: 24px; border-radius: 7px; background-size: 16px; }
.or-skills { gap: 6px; margin-top: 7px; }
.or-skill { flex-direction: row; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 10px; min-width: 0; }
.or-skill b { font-size: 12px; white-space: nowrap; }
.or-skill small { flex: 1; min-width: 0; font-size: 10px; padding-right: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.or-price { position: static; flex: 0 0 auto; font-size: 10.5px; padding: 0 5px; }
.or-targets { margin-top: 6px; }
.or-targets button { padding: 3px 10px; font-size: 11.5px; }
.or-wait { padding: 7px; font-size: 12px; border-radius: 10px; }
@media (max-width: 600px) { .or-skill small { display: none; } .or-skill b { flex: 1; overflow: hidden; text-overflow: ellipsis; } }

/* Z10: otaqda başlıq gizli, üst sətir və düymə daha nazik */
body:has(#orApp) .caption { display: none; }
.or-top { gap: 7px; }
.or-stage { flex-direction: row; align-items: baseline; gap: 4px; min-width: 0; padding: 4px 9px; border-radius: 999px; }
.or-stage .or-k { font-size: 10px; }
.or-stage-n { font-size: 13px; }
.or-patient { gap: 5px; line-height: 1.15; }
.or-patient > img { width: 16px; height: 16px; }
.or-p-name { font-size: 12px; }
.or-p-dis { font-size: 10.5px; }
.or-timer, .or-timer svg { width: 32px; height: 32px; flex-basis: 32px; }
.or-timer circle { stroke-width: 3.5; }
.or-timer b { font-size: 11.5px; }
.or-mute { width: 26px; height: 26px; flex-basis: 26px; }
.or-mute svg { width: 14px; height: 14px; }
.or-steps { margin: 6px 0 4px; }
.or-next { font-size: 11.5px; margin-bottom: 6px; }
.or-roll { padding: 6px 12px; font-size: 14px; border-radius: 11px; box-shadow: 0 2px 0 #0e5a28, 0 4px 8px rgba(21,122,55,.18); }
.or-roll-ic { width: 20px; height: 20px; border-radius: 6px; background-size: 14px; }

/* Z11: əməliyyat otağı giriş (lobby) */
.orl { margin: 0 4px 10px; }
.orl-hero { position: relative; border-radius: 18px 18px 0 0; overflow: hidden; aspect-ratio: 16 / 9; max-height: 340px; width: 100%; background: #0d3b4f; }
.orl-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: orlZoom 18s ease-in-out infinite alternate; }
.orl-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,30,44,0) 35%, rgba(6,30,44,.55) 68%, rgba(6,30,44,.88) 100%); }
.orl-hero-tx { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #fff; }
.orl-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(0,109,183,.9); font-size: 11px; font-weight: 700; letter-spacing: .2px; }
.orl-live i { width: 7px; height: 7px; border-radius: 50%; background: #5cf08c; box-shadow: 0 0 0 0 rgba(92,240,140,.8); animation: orlPing 1.6s infinite; }
.orl-h1 { margin-top: 6px; font-size: 19px; font-weight: 600; line-height: 1.2; text-shadow: 0 2px 6px rgba(0,0,0,.45); }
.orl-sub { margin-top: 3px; font-size: 12px; opacity: .9; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.orl-panel { background: linear-gradient(180deg, #fffaf0, #fff3d6); border: 1px solid #f3dfb3; border-top: 0; border-radius: 0 0 18px 18px; padding: 12px; box-shadow: 0 4px 14px rgba(107,68,27,.1); }
.orl-q { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.orl-slots { display: flex; gap: 6px; }
.orl-slots i { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed #e8c98a; background: #fff url(/assets/images/icons/emergency2.png) center/0 no-repeat; transition: all .3s; }
.orl-slots i.on { border: 2px solid #157a37; background-color: #e9f7ee; background-image: none; position: relative; }
.orl-slots i.on::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #2fb36a 0 30%, transparent 31%), radial-gradient(ellipse 60% 40% at 50% 100%, #2fb36a 0 98%, transparent 100%); }
.orl-q-tx { display: flex; flex-direction: column; line-height: 1.15; }
.orl-q-tx b { font-size: 17px; font-weight: 800; color: #d35400; }
.orl-q-tx span { font-size: 11.5px; color: #8c6a46; }
.orl-join { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: #fff !important; background: linear-gradient(180deg, #2fb36a, #157a37); box-shadow: 0 3px 0 #0e5a28, 0 8px 16px rgba(21,122,55,.25); animation: orGlow 2.2s ease-in-out infinite; }
.orl-join:active { transform: translateY(2px); box-shadow: 0 1px 0 #0e5a28; }
.orl-join-ic { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; background: #fff url(/assets/images/icons/emergency2.png) center/18px no-repeat; animation: orWiggle 2s ease-in-out infinite; }
.orl-join-t { flex: 1; font-size: 16px; font-weight: 800; }
.orl-cost { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.95); color: #6b441b; font-size: 12px; font-weight: 800; white-space: nowrap; }
.orl-cost img { width: 15px; height: 15px; }
.orl-hint { margin: 8px 2px 0; font-size: 11.5px; color: #8c6a46; text-align: center; }
.orl-waitbox { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: #fff; border: 1px dashed #f6ad55; }
.orl-radar { position: relative; width: 44px; height: 44px; flex: 0 0 44px; display: flex; align-items: center; justify-content: center; }
.orl-radar img { width: 22px; height: 22px; position: relative; animation: orWiggle 1.4s ease-in-out infinite; }
.orl-radar span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #f0a020; animation: orlRadar 2s ease-out infinite; }
.orl-radar span + span { animation-delay: 1s; }
.orl-wait-tx { font-size: 12px; color: #6b441b; line-height: 1.35; }
.orl-leave { display: block; margin-top: 8px; padding: 7px; border-radius: 10px; text-align: center; text-decoration: none; font-size: 12.5px; font-weight: 700; color: #b42318 !important; background: #fdecea; border: 1px solid #f6c3bd; }
.orl-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.orl-links a { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid #f3dfb3; text-decoration: none; color: #6b441b !important; font-size: 12px; font-weight: 700; line-height: 1.2; }
.orl-links a.gold { color: #b45309 !important; background: #fff8e1; border-color: #fbdc99; }
.orl-links img { width: 20px; height: 20px; flex: 0 0 20px; }
.orl-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.orl-facts div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1px; padding: 9px 6px; border-radius: 14px; background: #fff8e1; border: 1px solid #fbdc99; }
.orl-facts img { width: 24px; height: 24px; margin-bottom: 2px; }
.orl-facts b { font-size: 16px; font-weight: 800; color: #006db7; }
.orl-facts span { font-size: 10.5px; color: #8c6a46; line-height: 1.2; }
.orl-rules > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.orl-rules > summary::-webkit-details-marker { display: none; }
.orl-chev { margin-left: auto; width: 9px; height: 9px; border-right: 2px solid #8c6a46; border-bottom: 2px solid #8c6a46; transform: rotate(45deg); transition: transform .2s; }
.orl-rules[open] .orl-chev { transform: rotate(-135deg); }
.orl-rules:not([open]) { padding-bottom: 0; }
@keyframes orlZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes orlPing { 0% { box-shadow: 0 0 0 0 rgba(92,240,140,.8); } 100% { box-shadow: 0 0 0 8px rgba(92,240,140,0); } }
@keyframes orlRadar { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
@media (min-width: 700px) { .orl-h1 { font-size: 24px; } .orl-sub { font-size: 13.5px; } }

/* Z12: otaqda foot gizli, idarə paneli ekranın altına bərkidilir, jurnal açılıb-bağlanır */
body:has(#orApp) .app-bottom-bar { display: none !important; }
.or-app:not(.or-healed) { display: flex; flex-direction: column; }
.or-app:not(.or-healed) > * { order: 1; }
.or-app:not(.or-healed) > .or-head { order: 99; position: sticky; bottom: 0; z-index: 61; margin: 10px 0 0; border-radius: 16px 16px 0 0; border-bottom: 0;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 16px rgba(107,68,27,.18); }
.or-app:not(.or-healed) > .or-head .or-next { margin-bottom: 5px; }
.or-log { margin-top: 0; }
.or-log > summary { list-style: none; cursor: pointer; user-select: none; border-bottom: 0; }
.or-log > summary::-webkit-details-marker { display: none; }
.or-log[open] > summary { border-bottom: 1px solid #f3dfb3; }
.or-log-chev { margin-left: auto; width: 8px; height: 8px; border-right: 2px solid #8c6a46; border-bottom: 2px solid #8c6a46; transform: rotate(45deg); transition: transform .2s; }
.or-log[open] .or-log-chev { transform: rotate(-135deg); }
.or-log-new { margin-left: 6px; padding: 0 7px; border-radius: 999px; background: #d35400; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; }
.or-log-new[hidden] { display: none; }
.or-cube.flat .f { display: none; }
.or-cube.flat .f.top { display: grid; transform: none; }
#orCenter { transition: opacity .3s; }
.or-table:has(.or-die:not(.out)) #orCenter { opacity: .2; }

/* Z13: jurnal düymə ilə ekranda açılır */
.or-logbtn { position: relative; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; border: 1px solid #f3dfb3; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.or-logbtn .or-log-new { position: absolute; top: -7px; right: -9px; margin: 0; padding: 0 5px; font-size: 10px; line-height: 16px; box-shadow: 0 0 0 2px #fff8e8; }
.or-logm { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
.or-logm[hidden] { display: none; }
.or-logm-bg { position: absolute; inset: 0; background: rgba(30,18,6,.55); animation: orlFade .2s ease-out; }
.or-logm .or-log { position: relative; width: 100%; max-width: 640px; max-height: 78vh; display: flex; flex-direction: column; border-radius: 18px 18px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); animation: orlUp .25s ease-out; box-shadow: 0 -6px 24px rgba(0,0,0,.25); }
.or-logm .or-log-h { border-bottom: 1px solid #f3dfb3; }
.or-logm .or-log-list { max-height: none; flex: 1; overflow-y: auto; }
.or-logm-x { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; color: #6b441b; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 1px 3px rgba(107,68,27,.2); }
html.or-noscroll, html.or-noscroll body { overflow: hidden; }
@keyframes orlUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes orlFade { from { opacity: 0; } to { opacity: 1; } }

/* Z14: canlı keçidlər, əməliyyatlar siyahısı pəncərədə, kiçik lobby şəkli */
.orl-hero { aspect-ratio: 21 / 9; max-height: 180px; }
.orl-bg { object-position: center 35%; }
.orl-h1 { font-size: 16px; margin-top: 4px; }
.orl-sub { font-size: 11px; }
.orl-hero-tx { bottom: 9px; left: 12px; right: 12px; }
@media (min-width: 700px) { .orl-hero { max-height: 220px; } .orl-h1 { font-size: 20px; } .orl-sub { font-size: 12.5px; } }
html.or-loading #operation-container { opacity: .55; transition: opacity .15s; pointer-events: none; }
#operation-container a.busy { opacity: .6; pointer-events: none; }
.or-oplist { padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.or-op { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; background: #fff; border: 1px solid #f3dfb3; text-decoration: none; color: #4a331c !important; }
.or-op:active { transform: scale(.99); }
.or-op-st { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; padding: 4px 8px; border-radius: 10px; background: #006db7; color: #cfe8fb; font-size: 9.5px; line-height: 1.15; }
.or-op-st b { color: #fff; font-size: 13px; }
.or-op-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.or-op-tx b { font-size: 13px; font-weight: 700; color: #6b441b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.or-op-tx small { font-size: 11px; color: #8c6a46; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.or-op-go { flex: 0 0 auto; padding: 5px 11px; border-radius: 999px; background: linear-gradient(180deg, #2fb36a, #157a37); color: #fff; font-size: 11.5px; font-weight: 800; }
.or-op-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 10px; color: #8c6a46; font-size: 13px; text-align: center; }
.or-op-empty img { width: 30px; height: 30px; opacity: .6; }
.or-wait.watch { position: relative; }
.or-watch-back { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fdecea; color: #b42318 !important; text-decoration: none; font-weight: 800; font-size: 12px; }
/* lobby şəkli: üz görünsün deyə yazı sağ tərəfdə */
.orl-shade { background: linear-gradient(90deg, rgba(6,30,44,0) 34%, rgba(6,30,44,.55) 58%, rgba(6,30,44,.9) 100%); }
.orl-hero-tx { left: auto; right: 12px; top: 50%; bottom: auto; transform: translateY(-50%); width: 56%; text-align: right; }

/* Z15: idarə paneli ekranın altına sabit; taymer/səs masanın künclərində; mərhələ xətləri masanın üstündə; xəstə səhnənin sağ üst küncündə; pəncərələr ortada */
.or-app:not(.or-healed) { padding-bottom: calc(var(--orDockH, 120px) + 8px); }
.or-app:not(.or-healed) > .or-head { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 640px; margin: 0; z-index: 900; }
.or-steps { display: flex; gap: 4px; margin: 2px 2px 8px; }
.or-steps i { flex: 1 1 0; min-width: 0; height: 5px; }
.or-table { overflow: visible; }
.or-corner { position: absolute; top: 9px; z-index: 6; display: flex; gap: 6px; align-items: center; }
.or-tl { left: 9px; } .or-tr { right: 9px; }
.or-corner .or-timer { background: rgba(255,250,240,.95); border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.or-corner .or-mute, .or-corner .or-logbtn { width: 30px; height: 30px; flex-basis: 30px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.or-center { display: none; }
.or-pat-chip { position: absolute; top: 8px; right: 8px; z-index: 5; flex: none; max-width: 46%; padding: 4px 9px 4px 6px; border-radius: 12px; background: rgba(255,250,240,.93); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.or-pat-chip > img { opacity: 1; }
.or-scene.ors .or-caption, .or-scene .or-caption { justify-content: flex-start; text-align: left; padding-right: 48%; }
.or-healed .or-pat-chip { display: none; }
/* pəncərələr: forumdakı kimi ekranın ortasında */
.or-logm { align-items: center; padding: 16px; z-index: 9000; }
.or-logm-bg { background: rgba(40,25,8,.45); }
.or-logm .or-log { max-width: 420px; max-height: 80vh; border-radius: 18px; border-bottom: 1px solid #f3dfb3; padding-bottom: 0; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: orlPop .2s ease-out; }
.or-logm .or-log-h { background: linear-gradient(180deg, #fff4dd, #ffe7b8); }
.or-logm-x { border-radius: 10px; border: 1px solid #f3dfb3; box-shadow: none; }
@keyframes orlPop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.or-app:not(.or-healed) > .or-head { box-sizing: border-box; padding: 9px 10px calc(9px + env(safe-area-inset-bottom, 0px)); border-radius: 16px 16px 0 0; border: 1px solid #f3dfb3; border-bottom: 0; background: linear-gradient(180deg, #fffaf0, #fff3d6); box-shadow: 0 -4px 16px rgba(107,68,27,.18); }
.or-logm .or-log-list { flex: 1 1 auto; min-height: 0; }

/* Z17: otaq ekrana sığır; qalib masada; çıxış düyməsi altda sabit */
.or-app > .or-head { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 640px; margin: 0; z-index: 900; order: 99;
  box-sizing: border-box; padding: 9px 10px calc(9px + env(safe-area-inset-bottom, 0px)); border-radius: 16px 16px 0 0; border: 1px solid #f3dfb3; border-bottom: 0; background: linear-gradient(180deg, #fffaf0, #fff3d6); box-shadow: 0 -4px 16px rgba(107,68,27,.18); }
.or-app { padding-bottom: calc(var(--orDockH, 120px) + 8px); }
.or-leave-dock .or-btn { display: block; margin: 0; text-align: center; padding: 11px; border-radius: 12px; font-size: 15px; }
.or-scene { margin-left: auto; margin-right: auto; }
.or-felt .or-final { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 2; width: 52%; margin: 0; padding: 8px 6px; border-radius: 14px; background: rgba(255,250,240,.94); border: 1px solid #f3dfb3; box-shadow: 0 4px 14px rgba(0,0,0,.25); animation: orlPop .3s ease-out; }
.or-felt .or-final-t { font-size: 11.5px; gap: 4px; margin-bottom: 4px; line-height: 1.15; }
.or-felt .or-final-t img { width: 16px; }
.or-felt .or-final-w { display: block; background: none; box-shadow: none; padding: 0; margin: 0 0 4px; text-align: center; font-size: 11px; }
.or-felt .or-final-w img { display: none; }
.or-felt .or-final-w b { font-size: 13px; }
.or-felt .or-final-rw { flex-direction: column; align-items: center; gap: 3px; }
.or-felt .or-final-rw span { font-size: 10.5px; padding: 2px 7px; }
.or-felt .or-final-rw img { width: 12px; }
.or-felt .or-final-note { font-size: 10px; padding: 3px 6px; margin: 2px 0; max-width: none; }
.or-seat.win .or-ava::before { animation: orPop .4s ease-out, orCrown 2.4s ease-in-out .4s infinite; }
@keyframes orCrown { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
/* kiçik masa: avatarlar da kiçilir */
.or-app.or-sm .or-seat { width: 64px; }
.or-app.or-sm .or-s-l, .or-app.or-sm .or-s-r { width: 56px; }
.or-app.or-sm .or-s-b { bottom: 5px; } .or-app.or-sm .or-s-t { top: 5px; } .or-app.or-sm .or-s-l { left: 4px; } .or-app.or-sm .or-s-r { right: 4px; }
.or-app.or-sm .or-ava { width: 36px; height: 36px; border-width: 2px; }
.or-app.or-sm .or-nick { font-size: 10px; padding: 0 5px; }
.or-app.or-sm .or-corner .or-timer, .or-app.or-sm .or-corner .or-timer svg { width: 28px; height: 28px; flex-basis: 28px; }
.or-app.or-sm .or-corner .or-mute, .or-app.or-sm .or-corner .or-logbtn { width: 26px; height: 26px; flex-basis: 26px; }
.or-app.or-sm .or-felt .or-final { width: 56%; }
.or-app.or-sm .ors-num { font-size: 8.5px; }
.or-app.or-sm .ors-num small { font-size: 6px; }
.or-app.or-sm .ors-foot { font-size: 6.5px; }
.or-app.or-sm .or-pat-chip { padding: 3px 7px 3px 5px; }
.or-app.or-sm .or-pat-chip .or-p-name { font-size: 10.5px; }
.or-app.or-sm .or-pat-chip .or-p-dis { font-size: 9.5px; }
.or-app.or-sm .or-pat-chip > img { width: 14px; height: 14px; }
.or-app.or-sm .or-scene .or-caption { font-size: 10.5px; padding-top: 6px; }
.or-app.or-sm .or-cap-tx { font-size: 10.5px; }

/* ======================= round Z21 ======================= */
/* Mobil brauzerin paneli gizlənib-açılanda balans zolağı sıçramasın: sticky əvəzinə ekranın altına bərkidilir (fixed).
   Yeri boş qalmasın deyə .content altına zolağın hündürlüyü qədər boşluq verilir (--abbH, foot.php ölçür).
   Çat və əməliyyat otağı öz düzülüşünü saxlayır. :has dəstəkləməyən köhnə brauzerlərdə köhnə (sticky) qayda qalır. */
body:not(:has(#orApp)):not(:has(#chatWrapper)) .app-bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; margin: 0 auto; width: 100%; max-width: 640px; box-sizing: border-box; transform: translateZ(0); }
body:not(:has(#orApp)):not(:has(#chatWrapper)) > div.content { padding-bottom: var(--abbH, 56px); box-sizing: border-box; }

/* ======================= round Z22 ======================= */
/* Toxunma ekranlı cihazlarda brauzerin alt/üst paneli gizlənməsin: səhifəni brauzer yox, .content bloku sürüşdürür.
   Brauzer paneli yalnız bütün sənəd sürüşəndə gizlənir, ona görə panel həmişə yerində qalır və sıçrama olmur.
   Çat və əməliyyat otağı öz düzülüşünü saxlayır. Kompüterdə (siçan) heç nə dəyişmir. */
@media (hover: none) and (pointer: coarse) {
  html:not(:has(#orApp)):not(:has(#chatWrapper)),
  html:not(:has(#orApp)):not(:has(#chatWrapper)) > body { height: 100%; overflow: hidden; }
  html:not(:has(#orApp)):not(:has(#chatWrapper)) > body > div.content { height: 100%; min-height: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
}

/* ======================= round Z23 ======================= */
/* "Əsas oyuna keç / Balans və səviyyəyə keç" keçid düymələri yalnız klaviatura ilə (Tab) gələndə görünsün.
   Telefonda toxunuşla və ya səhifə yerini bərpa edəndə fokus alsa belə ekranda çıxmır; ekran oxuyucular üçün qalır. */
.a11y-skip-nav .a11y-skip-link:not(:focus-visible) { top: 0 !important; width: 1px; height: 1px; padding: 0; border: 0; box-shadow: none; overflow: hidden; clip-path: inset(50%); white-space: nowrap; outline: 0; }
@media (hover: none) and (pointer: coarse) { .a11y-skip-nav { display: none !important; } }

/* ======================= round Z24 ======================= */
/* Klaviatura keçid düymələri heç yerdə görünməsin (İlkin istəmir) */
.a11y-skip-nav { display: none !important; }
/* Bildiriş bloku: hamar açılma (boşluq yavaş açılır, yazı sonra görünür) və hamar bağlanma (yazı solur, sonra boşluq yığılır) */
.pn-box { transition: height .5s cubic-bezier(.4, 0, .2, 1), opacity .35s ease, transform .45s cubic-bezier(.4, 0, .2, 1); will-change: height; }
.pn-box.fade { opacity: 0; transform: translateY(-3px); transition: opacity .26s ease, transform .26s ease; }
.pn-box.shut { transition: height .55s cubic-bezier(.4, 0, .2, 1); }
.pn-box.hide { opacity: 0; }
.pn-box.pn-now { transition: none !important; }
/* Z22 düzəlişi: .content sürüşən blok olanda içindəki hissələr (göy başlıq, skalpel zolağı və s.) sıxılıb itməsin */
@media (hover: none) and (pointer: coarse) {
  html:not(:has(#orApp)):not(:has(#chatWrapper)) > body > div.content > * { flex-shrink: 0; }
}
