/* global_cohesion.css — one visual system across the entire mini-app */
:root{--gc-bg:#071017;--gc-surface:#0d1a24;--gc-surface-2:#122533;--gc-surface-3:#172f3b;--gc-line:rgba(149,190,193,.19);--gc-line-strong:rgba(218,188,108,.48);--gc-ink:#edf4ef;--gc-muted:#91a9b1;--gc-gold:#e0bd6d;--gc-cyan:#72d6d2;--gc-safe:#75d7ae;--gc-danger:#ed978a;--gc-radius:14px;--gc-radius-sm:10px;--gc-shadow:0 20px 60px rgba(0,0,0,.42);--gc-font:Vazirmatn,Tahoma,system-ui,sans-serif}
html,body{background:radial-gradient(ellipse at 50% -10%,#173442 0,#09151e 42%,#050b10 100%)!important;color:var(--gc-ink)!important;font-family:var(--gc-font)!important}body{min-height:100dvh}button,input,select,textarea{font-family:inherit!important}button,a,input,select,textarea{touch-action:manipulation}
/* shell */
.app-shell{background:linear-gradient(180deg,rgba(15,30,40,.98),rgba(6,14,21,.99))!important;border-color:rgba(140,186,187,.24)!important;box-shadow:0 30px 100px rgba(0,0,0,.62)!important}.topbar{border-bottom-color:var(--gc-line)!important}.brand b{color:#f0dfb8!important}.brand small{color:var(--gc-muted)!important}.brand__mark{background:linear-gradient(145deg,#f0d28a,#9b7138)!important;box-shadow:0 0 0 4px rgba(224,189,109,.1),inset 0 1px rgba(255,255,255,.35)!important}.icon-button{background:rgba(17,40,51,.86)!important;border-color:rgba(126,191,193,.34)!important;transition:transform .16s,border-color .16s,background .16s}.icon-button:hover{border-color:var(--gc-gold)!important;background:#193846!important;transform:translateY(-1px)}
/* universal surfaces */
:where(.sheet,.cc-shell,.alliance-shell,.ops-sheet,.sg-sheet,.inv-sheet,.rw-sheet,.sw-sheet,.scene-sheet,.gc-dialog,.gc-forward-dialog,.gc-profile-dialog,.eco-sheet,.rep-sheet,.shop-sheet,.v20-modal){background:linear-gradient(155deg,rgba(20,43,55,.98),rgba(7,17,25,.99))!important;border:1px solid rgba(147,193,195,.28)!important;border-radius:20px 20px 0 0!important;box-shadow:var(--gc-shadow)!important;color:var(--gc-ink)!important}:where(.cc-head,.alliance-head,.ops-sheet>header,.sg-head,.inv-head,.rw-head,.sw-head,.scene-sheet__head,.eco-sheet__head,.rep-head,.shop-head,.gc-header){background:linear-gradient(100deg,rgba(21,52,64,.94),rgba(12,29,39,.88))!important;border-bottom:1px solid var(--gc-line)!important}:where(.cc-card,.ops-card,.sg-card,.inv-card,.rw-card,.sw-card,.alliance-card,.eco-card,.rep-row,.in-game-module-card,.gc-compose-card,.gc-player-row,.v20-card){background:linear-gradient(145deg,rgba(24,52,65,.88),rgba(10,25,34,.96))!important;border:1px solid var(--gc-line)!important;border-radius:var(--gc-radius-sm)!important;box-shadow:inset 0 1px rgba(255,255,255,.045),0 10px 26px rgba(0,0,0,.16)!important}
:where(.cc-row,.alliance-member-row,.alliance-directory-row,.inv-row,.sg-row,.sw-target,.sw-chip,.resource-row,.building-row,.army-row,.research-row,.player-row,.country-row,.owned-row,.mkt-hist-row,.table-row){border-color:rgba(141,187,190,.16)!important;background:rgba(12,31,41,.62)!important;min-height:46px;border-radius:10px!important;transition:border-color .16s,background .16s,transform .16s}:where(.cc-row,.alliance-member-row,.alliance-directory-row,.inv-row,.sg-row,.sw-target,.sw-chip,.resource-row,.building-row,.army-row,.research-row,.player-row,.country-row,.owned-row,.mkt-hist-row,.table-row):hover{border-color:rgba(224,189,109,.42)!important;background:rgba(27,57,68,.8)!important;transform:translateX(-2px)}
/* headings and module language */
:where(.cc-hero,.ops-head,.eco-hero,.shop-head,.rep-head,.scene-head,.rw-head,.sg-head,.inv-head,.sw-head) h1,:where(.cc-hero,.ops-head,.eco-hero,.shop-head,.rep-head,.scene-head,.rw-head,.sg-head,.inv-head,.sw-head) h2{color:#f2dfb3!important;letter-spacing:-.2px}:where(.cc-eyebrow,.rw-eyebrow,.sg-eyebrow,.inv-eyebrow,.sw-eyebrow,.pp-eyebrow){color:var(--gc-cyan)!important;letter-spacing:1px!important;font-weight:900!important}:where(.cc-note,.rw-card small,.sg-card small,.inv-card small,.sw-card small,.gc-subhead){color:var(--gc-muted)!important;line-height:1.8!important}
/* controls */
:where(.cc-button,.cc-button-secondary,.cc-mini-btn,.cc-danger,.primary-button,.outline-button,.danger-button,.shop-btn,.rw-run,.inv-run,.sg-card button.run,.sw-run,.ops-card button,.scene-sheet button,.gc-composer button){min-height:42px!important;border-radius:10px!important;font-weight:800!important;transition:transform .14s,filter .14s,border-color .14s,box-shadow .14s!important}:where(.cc-button,.primary-button,.shop-btn,.rw-run,.inv-run,.sg-card button.run,.sw-run){background:linear-gradient(135deg,#e9c878,#ad7c37)!important;color:#101b20!important;border:1px solid #f6dfa2!important;box-shadow:0 4px 0 #604720,0 10px 22px rgba(221,178,72,.15)!important}:where(.cc-button-secondary,.outline-button,.cc-mini-btn,.scene-sheet button,.gc-composer button){background:rgba(21,50,62,.92)!important;color:#d8ebe7!important;border:1px solid rgba(128,192,193,.35)!important}:where(.cc-danger,.danger-button){background:linear-gradient(135deg,#5b2a2b,#321a22)!important;color:#ffd0c2!important;border:1px solid rgba(237,151,138,.5)!important}:where(.cc-button,.cc-button-secondary,.cc-mini-btn,.cc-danger,.primary-button,.outline-button,.danger-button,.shop-btn,.rw-run,.inv-run,.sg-card button.run,.sw-run,.ops-card button,.scene-sheet button,.gc-composer button):hover{transform:translateY(-1px)!important;filter:brightness(1.1)}:where(.cc-button,.cc-button-secondary,.cc-mini-btn,.cc-danger,.primary-button,.outline-button,.danger-button,.shop-btn,.rw-run,.inv-run,.sg-card button.run,.sw-run,.ops-card button,.scene-sheet button,.gc-composer button):active{transform:translateY(1px)!important}
:where(input,select,textarea,.jg-search input,.gc-composer textarea){min-height:42px!important;border:1px solid rgba(132,187,190,.25)!important;border-radius:10px!important;background:#07151e!important;color:var(--gc-ink)!important;box-shadow:inset 0 2px 8px rgba(0,0,0,.22)!important;outline:none!important}:where(input,select,textarea,.jg-search input,.gc-composer textarea):focus{border-color:var(--gc-cyan)!important;box-shadow:0 0 0 3px rgba(114,214,210,.12),inset 0 2px 8px rgba(0,0,0,.22)!important}
/* chat */
#jang-comms-root{background:linear-gradient(180deg,#0b1d28,#071219)!important}#jang-comms-root .gc-header{padding:16px!important}#jang-comms-root .gc-message{border-radius:14px!important;border-color:rgba(137,193,192,.22)!important;box-shadow:0 8px 20px rgba(0,0,0,.18)!important}#jang-comms-root .gc-composer{border-color:rgba(128,193,193,.28)!important;background:rgba(11,31,41,.92)!important}
/* globe and battle surfaces */
:where(.jg-shell,.war-combat,.jb-battle-card,.jb-report-card){border-color:rgba(124,193,194,.34)!important;box-shadow:inset 0 1px rgba(255,255,255,.06),0 18px 44px rgba(0,0,0,.32)!important}.jg-shell{background:linear-gradient(145deg,#102b36,#07131b 72%)!important}.war-combat{background:radial-gradient(ellipse at 50% 0,#17384a,#061019 72%)!important}
/* loading, empty, toast */
:where(.cc-empty,.gc-empty,.inv-empty,.sg-empty,.sw-empty,.eco-empty,.mt-empty,.jg-empty,.empty-state){min-height:110px!important;display:grid!important;place-items:center!important;padding:18px!important;border:1px dashed rgba(132,187,190,.3)!important;border-radius:12px!important;background:linear-gradient(135deg,rgba(18,49,60,.55),rgba(8,19,27,.75))!important;color:var(--gc-muted)!important;text-align:center!important;line-height:1.9!important}:where(.cc-loader,.gc-loading,.inv-loading,.sg-loading,.sw-loading,.mt-loading){min-height:100px!important;border-radius:12px!important;background:linear-gradient(110deg,rgba(20,49,61,.4),rgba(52,103,111,.18),rgba(20,49,61,.4))!important;background-size:220% 100%!important;animation:gc-shimmer 1.4s ease-in-out infinite!important}@keyframes gc-shimmer{to{background-position:-220% 0}}:where(.toast,.gc-toast,.shop-toast,.eco-toast,.sc-toast,.game-toast){border:1px solid rgba(224,189,109,.45)!important;border-radius:11px!important;box-shadow:0 14px 35px rgba(0,0,0,.42)!important}
/* nav and accessibility */
.bottom-nav{background:rgba(6,18,26,.94)!important;border-top-color:rgba(133,191,192,.3)!important}.bottom-nav button{color:#7f9da5!important}.bottom-nav button.active{color:var(--gc-gold)!important;background:linear-gradient(0deg,rgba(224,189,109,.15),transparent)!important}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--gc-gold)!important;outline-offset:3px!important}
@media(max-width:600px){:where(.sheet,.cc-shell,.alliance-shell,.ops-sheet,.sg-sheet,.inv-sheet,.rw-sheet,.sw-sheet,.scene-sheet,.gc-dialog,.gc-forward-dialog,.gc-profile-dialog,.eco-sheet,.rep-sheet,.shop-sheet,.v20-modal){border-radius:20px 20px 0 0!important}:where(.cc-row,.alliance-member-row,.alliance-directory-row,.inv-row,.sg-row,.sw-target,.sw-chip,.resource-row,.building-row,.army-row,.research-row,.player-row,.country-row,.owned-row,.mkt-hist-row,.table-row):hover{transform:none!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}}

/* زبان رابط: فارسی */
.app-shell .action-grid.hq-refit-board::after{content:'برد عملیاتی  ·  '+attr(data-board-count)+' بخش'!important;direction:rtl;letter-spacing:0!important;font-family:var(--gc-font)!important}
.app-shell .action-grid.hq-refit-board .hq-refit-node:not([data-world-slot=extra]) b::before{content:'بخش '+attr(data-hq-node)!important;direction:rtl;letter-spacing:0!important;font-family:var(--gc-font)!important}
#command-center-overlay .mc-main-missions::before{content:'مرکز مأموریت  //  اهداف اصلی'!important;direction:rtl;letter-spacing:0!important;font-family:var(--gc-font)!important}
#command-center-overlay .mc-main-missions .cc-row[data-mission-state="pending"]::after{content:'در انتظار'!important;direction:rtl;letter-spacing:0!important;font-family:var(--gc-font)!important}
.mc-side-mission::before{content:'عملیات جانبی'!important;direction:rtl;letter-spacing:0!important;font-family:var(--gc-font)!important}
.mc-active-mission::before{content:'هدف فعال'!important;direction:rtl;letter-spacing:0!important;font-family:var(--gc-font)!important}
