
* { box-sizing: border-box; }
body { font-family: 'Cairo', 'Tajawal', 'IBM Plex Sans Arabic', 'Segoe UI',
       Tahoma, Arial, sans-serif; color: #E9F1FA;
       background: linear-gradient(180deg, #071630 0, #0A2148 150px, #0C2A55);
       margin: 0; padding: 0 14px 112px; direction: rtl; }
header.top { background: linear-gradient(180deg, rgba(10, 28, 54, .97),
             rgba(13, 38, 72, .94));
             backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
             color: #EAF2FC; margin: 0 -14px 14px; padding: 10px 16px;
             display: flex; justify-content: space-between; align-items: center;
             position: sticky; top: 0; z-index: 20;
             box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
             border-bottom: 1px solid #1D3D68; }
header.top b { font-size: 16px; display: flex; align-items: center; gap: 9px;
               color: #F2F7FD; }
header.top b img { width: 34px; height: 34px; border-radius: 10px;
                   box-shadow: 0 3px 8px rgba(0, 0, 0, .4); }
header.top .who { text-align: left; font-size: 12px; color: #8FA9C9;
                  line-height: 1.35; }
header.top .who b { font-size: 13.5px; color: #EAF2FC; display: block; }
header.top a { color: #6FB1EC; text-decoration: none; }
.bell { position: relative; display: inline-block; margin-inline-start: 10px;
        color: #EAF2FC; }
.bell.flash { animation: bellflash .5s ease-in-out 8; border-radius: 50%; }
@keyframes bellflash { 50% { background: #E5484D; color: #fff; } }
.bell .bdg { position: absolute; top: -7px; inset-inline-start: -7px;
             background: #F0564F; color: #fff; border-radius: 12px;
             font-size: 11px; font-weight: bold; padding: 1px 6px;
             border: 2px solid #0A2148; }
.hero { background: linear-gradient(135deg, #14335E, #0E2A4E);
        color: #EAF2FC; border-radius: 24px;
        padding: 16px; margin: 0 0 12px; display: flex; gap: 13px;
        align-items: center;
        box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
.hero .hic { position: relative; flex: 0 0 auto; width: 56px; height: 56px;
             border-radius: 50%; background: rgba(94, 163, 227, .18);
             display: flex; align-items: center; justify-content: center; }
.hero .hic .chk { position: absolute; bottom: -1px; inset-inline-end: -1px;
                  width: 20px; height: 20px; border-radius: 50%;
                  background: #22B573; color: #fff; font-size: 12px;
                  display: flex; align-items: center; justify-content: center;
                  border: 2.5px solid #0E2A4E; font-weight: bold; }
.hero b { font-size: 18.5px; display: block; margin-bottom: 2px; color: #FFFFFF; }
.hero span.sub { font-size: 13px; color: #9FB9DA; }
.card { background: #FFFFFF; border: 1px solid #D8E4F2; border-radius: 22px;
        padding: 15px; margin: 0 0 12px; color: #173A5E;
        box-shadow: 0 8px 24px rgba(3, 20, 40, .22); }
a.card { display: block; text-decoration: none; color: #173A5E;
         transition: transform .08s ease; }
a.card:active { transform: scale(.985); background: #EAF1F8; }
.card a:not(.btn) { color: #1479D4; }
.card.sample { border-right: 5px solid #2F7FD0; }
h1 { font-size: 20px; margin: 8px 0 12px; color: #F2F7FD; }
h2 { font-size: 16px; margin: 6px 0 10px; color: #1479D4; }
label { display: block; font-weight: bold; margin: 12px 0 6px; font-size: 15px;
        color: #33597F; }
input[type=text], input[type=password], input[type=number], textarea, select {
  width: 100%; font-size: 17px; padding: 13px; border: 1.5px solid #C4D6EC;
  border-radius: 14px; background: #F2F6FB; color: #14304F; }
input:focus, textarea:focus, select:focus { outline: none; border-color: #5EA3E3;
  background: #FFFFFF; box-shadow: 0 0 0 3px rgba(94, 163, 227, .25); }
textarea { min-height: 110px; }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px;
  vertical-align: middle; accent-color: #5EA3E3; }
button, .btn { display: block; width: 100%; text-align: center;
  background: linear-gradient(135deg, #2F7FD0, #5EA3E3); color: #fff;
  border: 0; border-radius: 16px; font-size: 17px; font-weight: bold;
  padding: 14px; margin: 12px 0 0; text-decoration: none; cursor: pointer;
  min-height: 53px; box-shadow: 0 8px 18px rgba(47, 127, 208, .25);
  transition: transform .08s ease; }
button:active, .btn:active { transform: scale(.98); }
button.save, .btn.save { background: linear-gradient(135deg, #22B573, #3CCB85);
  box-shadow: 0 8px 18px rgba(34, 181, 115, .25); }
button.draft, .btn.draft { background: linear-gradient(135deg, #FFE135, #FFD93B);
  color: #4A3A00; box-shadow: 0 8px 18px rgba(255, 209, 59, .22); }
.btnrow { display: flex; gap: 10px; }
.btnrow button { flex: 1; }
button.submit { background: linear-gradient(135deg, #2F7FD0, #5EA3E3); }
button.plain, .btn.plain { background: #1A3862; color: #E3EEFA;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
button.danger, .btn.danger { background: linear-gradient(135deg, #F0564F, #F27B72);
  box-shadow: 0 8px 18px rgba(240, 86, 79, .25); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
td, th { border-bottom: 1px solid #DCE6F2; padding: 9px 6px; text-align: right;
         vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.chip { display: inline-block; border-radius: 20px; padding: 3px 12px;
        font-size: 13px; font-weight: bold; color: #2F5B8F; background: #E3EDF9; }
.chip.draft { background: #FFF3C4; color: #8A6D1E; }
.chip.sent { background: #DCEBFB; color: #1D5FA8; }
.chip.ok { background: #D9F2E4; color: #177245; }
.chip.bad { background: #FBE0DE; color: #B03A3A; }
.msg { border-radius: 16px; padding: 12px 14px; margin: 0 0 12px;
       font-weight: bold; font-size: 15px; }
.msg.ok { background: #0E3A28; color: #7FE0AE; border: 1px solid #1E6B47; }
.msg.err { background: #4A1D20; color: #FFB3AE; border: 1px solid #8A3438; }
.msg.warn { background: #4A3A10; color: #FFD94D; border: 1px solid #8A6D1E; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 0 0 12px; }
.tile { --acc: #2F7FD0; --tint: rgba(47, 127, 208, .16); position: relative; overflow: hidden;
        background: #FFFFFF; border: 1px solid #D8E4F2; border-top: 4px solid #2F7FD0;
        border-radius: 24px; padding: 13px; text-decoration: none;
        color: #173A5E; display: block;
        box-shadow: 0 10px 26px rgba(3, 20, 40, .22); }
.tile .n { display: block; font-size: 29px; font-weight: bold;
           color: var(--acc); line-height: 1.15; }
.tile b { font-size: 14px; color: #33597F; }
.tile.big { border-top: 0; min-height: 118px; padding: 13px 13px 17px; }
.tile.big::after { content: ''; position: absolute; left: 0; right: 0;
        bottom: 0; height: 34px;
        background: linear-gradient(to top, var(--tint), rgba(255,255,255,0)); }
.tile.big .ic { position: absolute; top: 12px; inset-inline-start: 12px;
            width: 47px; height: 47px; border-radius: 50%;
            background: var(--tint); display: flex; align-items: center;
            justify-content: center; z-index: 1; }
.tile.big .n { position: absolute; top: 10px; inset-inline-end: 15px;
           font-size: 31px; z-index: 1; }
.tile.big b { display: block; margin-top: 58px; position: relative;
          z-index: 1; }
.tile .arr { position: absolute; bottom: 10px; inset-inline-end: 11px;
             width: 24px; height: 24px; border-radius: 50%;
             background: var(--acc); color: #fff; font-size: 15px;
             display: flex; align-items: center; justify-content: center;
             z-index: 1; }
.qa { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
      margin: 0 0 14px; }
.qa a { background: #FFFFFF; border: 1px solid #D8E4F2; border-radius: 20px;
        padding: 13px 6px; text-align: center; text-decoration: none;
        color: #173A5E; font-weight: bold; font-size: 13.5px;
        box-shadow: 0 8px 22px rgba(3, 20, 40, .22); }
.qa svg { display: block; margin: 0 auto 6px; }
.cta-row { display: flex; gap: 10px; margin: 0 0 12px; }
a.primary-cta { flex: 1.25; display: flex; align-items: center;
  justify-content: center; gap: 6px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #2F7FD0, #5EA3E3); border-radius: 18px;
  padding: 15px 10px; font-size: 17px; font-weight: bold; text-decoration: none;
  box-shadow: 0 10px 22px rgba(47, 127, 208, .30); }
a.ghost-cta { flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 6px; text-align: center; color: #0F5A9E; background: #FFFFFF;
  border: 1px solid #D8E4F2; border-radius: 18px; padding: 15px 10px;
  font-size: 16px; font-weight: bold; text-decoration: none;
  box-shadow: 0 8px 22px rgba(3, 20, 40, .22); }
.stages { display: flex; justify-content: space-between; text-align: center; }
.stage { flex: 1; font-size: 12.5px; font-weight: bold; color: #33597F; }
.stage .dot { font-size: 21px; display: block; line-height: 1.2; }
.stage .d { font-weight: normal; color: #7A90A8; font-size: 11.5px; }
.mut { color: #486A8D; font-size: 13.5px; }
body.login .mut { color: #9FB9DA; }
details.card summary { font-weight: bold; color: #1479D4; cursor: pointer;
                       font-size: 16px; padding: 2px 0; }
.menu-btn { flex: 0 0 auto; width: 42px; height: 42px; min-height: 42px;
            margin: 0 0 0 9px; padding: 0; border: 0; border-radius: 13px;
            background: #1B3A63; color: #EAF2FC; box-shadow: none;
            display: flex; align-items: center; justify-content: center; }
.mnav { display: none; background: #0D2447; margin: 0 -14px 12px;
        padding: 6px 18px; border-bottom: 1px solid #1D3D68;
        box-shadow: 0 12px 24px rgba(0, 0, 0, .35); }
.mnav.open { display: block; }
.mnav a { display: block; padding: 11px 4px; color: #EAF2FC;
          text-decoration: none; font-weight: bold; font-size: 15px;
          border-bottom: 1px solid #1A3358; }
.mnav a:last-child { border-bottom: 0; color: #FF9D97; }
body.login { background: linear-gradient(180deg, #061224 0, #0A2148 45%,
             #0D2C5C 100%); padding-top: 30px; }
.login-hero { text-align: center; margin: 6px 0 16px; }
.login-hero img { width: 104px; height: 104px; border-radius: 50%;
                  background: #fff; padding: 6px;
                  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
                  display: block; margin: 0 auto 10px; }
.login-hero b { display: block; font-size: 21px; color: #FFFFFF; }
.login-hero span { color: #9CC8F5; font-size: 13.5px; }
nav.tabbar { position: fixed; bottom: 10px; right: 10px; left: 10px;
             background: rgba(11, 30, 58, .94);
             backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
             border: 1px solid #1E3E68; border-radius: 26px;
             display: flex; z-index: 30; align-items: flex-end;
             box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
             padding: 5px 5px calc(5px + env(safe-area-inset-bottom)); }
nav.tabbar a { flex: 1; text-align: center; padding: 6px 2px 5px;
               color: #7E97B5; text-decoration: none; font-size: 11.5px;
               font-weight: bold; border-radius: 16px; }
nav.tabbar a.on { color: #6FB1EC; }
nav.tabbar a.on svg { background: rgba(94, 163, 227, .22); border-radius: 12px;
                      padding: 3px; box-sizing: content-box; }
nav.tabbar svg { display: block; margin: 0 auto 2px; }
nav.tabbar a[href='/reception'] svg { width: 46px; height: 46px; padding: 11px;
  border-radius: 50%; color: #fff; margin-top: -24px;
  background: linear-gradient(135deg, #2F7FD0, #5EA3E3);
  border: 3.5px solid #0B2447; box-shadow: 0 10px 20px rgba(47, 127, 208, .35);
  box-sizing: border-box; }
