/* SAMYAR 1.17.8 — dedicated auth and internal workspace polish; core features unchanged. */
:root{--samyar-gold:#e9c77b;--samyar-ink:#071820;--samyar-text:#f6f0e4}
*,*::before,*::after{box-sizing:border-box}
html,body,#root{min-height:100%;margin:0}
.samyar-login-v2{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;width:100%;min-height:100svh;min-height:100dvh;overflow:hidden;padding:max(18px,env(safe-area-inset-top)) 18px max(22px,env(safe-area-inset-bottom));font-family:var(--font-ui,"SamyarYekan",Tahoma,sans-serif);color:var(--samyar-text);background:#07161d}
.samyar-login-backdrop,.samyar-login-photo,.samyar-login-overlay{position:absolute;inset:0;z-index:-1;pointer-events:none}
.samyar-login-photo{background-size:cover;background-position:center center;animation:samyar-photo-arrival 1.15s ease-out both}
.samyar-login-overlay{background:linear-gradient(180deg,rgba(3,10,15,.46),rgba(5,11,14,.48) 35%,rgba(3,9,13,.72)),radial-gradient(circle at 53% 49%,rgba(0,0,0,.32),rgba(1,8,12,.26) 60%,rgba(1,8,10,.64));}
@keyframes samyar-photo-arrival{from{opacity:.5;transform:scale(1.035)}to{opacity:1;transform:scale(1)}}
.samyar-access-shell{width:min(100%,440px);display:flex;flex-direction:column;align-items:center;margin:auto;position:relative;z-index:1;padding:12px 0}
.samyar-access-intro{display:flex;align-items:center;gap:12px;margin:0 0 17px;color:#ecd9b0;letter-spacing:.035em;font-size:12px;font-weight:650;text-shadow:0 2px 15px #000}
.samyar-access-intro-line{display:inline-block;width:24px;height:1px;background:linear-gradient(90deg,transparent,var(--samyar-gold))}
.samyar-access-perspective{width:100%;height:568px;perspective:1250px}
.samyar-access-flipper{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .8s cubic-bezier(.2,.75,.2,1)}
.samyar-access-flipper.turned{transform:rotateY(180deg)}
.samyar-access-face{position:absolute;inset:0;display:flex;flex-direction:column;align-items:stretch;padding:21px clamp(21px,5vw,36px) 27px;border:1px solid rgba(248,221,165,.34);border-radius:29px;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:linear-gradient(145deg,rgba(18,34,41,.78),rgba(8,22,31,.82) 45%,rgba(24,29,26,.80));box-shadow:0 24px 84px #02080bc9,0 0 0 1px #fff1 inset,0 2px 0 rgba(255,255,255,.06) inset;backdrop-filter:blur(28px) saturate(145%);-webkit-backdrop-filter:blur(28px) saturate(145%)}
.samyar-access-back{transform:rotateY(180deg)}
.samyar-access-face[aria-hidden="true"]{pointer-events:none}
.samyar-access-icon{height:101px;display:grid;place-items:center;margin:0 auto 2px;filter:drop-shadow(0 7px 17px rgba(233,189,91,.2))}
.samyar-access-icon img{object-fit:contain;width:98px;height:98px}
.samyar-access-heading{text-align:center;margin:0 0 19px}
.samyar-access-eyebrow{display:block;color:#cfbd97;letter-spacing:.025em;font-size:10.5px;line-height:1.5}
.samyar-access-heading h1{margin:0;color:#f8e6b6;font-size:clamp(32px,5vw,38px);font-weight:900;line-height:1.55;letter-spacing:-.02em;text-shadow:0 6px 22px #0008}
.samyar-access-heading p{margin:1px 0 0;color:#e0e7e6;font-size:11px;line-height:1.7}
.samyar-access-tabs{display:grid;grid-template-columns:repeat(2,1fr);padding:4px;gap:4px;border-radius:15px;border:1px solid #ffffff25;background:rgba(1,12,17,.49);margin-bottom:14px}
.samyar-access-tabs button{border:0;border-radius:11px;min-height:39px;color:#bfc7c8;background:transparent;cursor:pointer;font-size:13px;font-weight:750;font-family:inherit;transition:background .25s,color .25s,box-shadow .25s}
.samyar-access-tabs button.selected{background:linear-gradient(120deg,rgba(232,194,117,.3),rgba(220,170,84,.17));color:#fff1cf;box-shadow:0 2px 10px #0004,inset 0 0 0 1px #eed08d70}
.samyar-access-fields{display:flex;flex-direction:column;gap:10px}
.samyar-access-field{position:relative;display:flex;align-items:center;min-height:46px;border:1px solid rgba(188,205,206,.25);border-radius:13px;background:rgba(3,17,24,.5);color:#dec691;transition:border-color .2s,box-shadow .2s}
.samyar-access-field:focus-within{border-color:#e3bd70;box-shadow:0 0 0 3px #d2a85c24}
.samyar-access-field-symbol{width:47px;display:grid;place-items:center;flex:none;opacity:.95}
.samyar-access-field svg{width:19px;height:19px}
.samyar-access-field input{width:100%;min-width:0;border:0;outline:0;padding:9px 0 9px 13px;background:transparent;color:white;font-size:13px;font-family:inherit;height:44px}
.samyar-access-field input::placeholder{color:#adb8b8;opacity:1;text-align:right}
.samyar-access-field input[dir="ltr"]{text-align:right}
.samyar-password-toggle{width:40px;height:40px;flex:none;display:grid;place-items:center;color:#c3c7c1;background:transparent;border:0;cursor:pointer;padding:9px}
.samyar-password-toggle svg{width:18px;height:18px}
.samyar-access-help{color:#b7c3bd;font-size:10.5px;text-align:center;line-height:1.8;margin:12px auto 10px;max-width:310px}
.samyar-access-submit{display:flex;justify-content:center;gap:12px;align-items:center;width:100%;min-height:47px;margin-top:auto;border-radius:13px;border:1px solid rgba(255,242,199,.26);background:linear-gradient(115deg,#c49a4d,#f5d78f 48%,#bd8d41);color:#14232a;box-shadow:0 8px 22px #0005,inset 0 1px 0 #fff8;cursor:pointer;font-family:inherit;font-weight:900;font-size:14px;transition:filter .2s,transform .2s}
.samyar-access-submit:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-1px)}
.samyar-access-submit:disabled{cursor:wait;opacity:.66}
.samyar-access-submit svg{width:19px;height:19px}
.samyar-access-foot{margin-top:18px;display:flex;justify-content:center;align-items:center;gap:10px;color:#e1d7be;text-shadow:0 2px 12px #000;font-size:11px;letter-spacing:.01em}
.samyar-access-version{direction:rtl;font-variant-numeric:tabular-nums;color:#f1d392;font-weight:850}
.samyar-access-foot-separator{opacity:.55}
.samyar-access-error{width:100%;padding:10px 15px;margin:11px 0 0;background:#5a1c24d9;border:1px solid #ff9e9d80;color:#ffeaea;border-radius:12px;text-align:center;font-size:12px;line-height:1.6}
.samyar-login-pagination{position:absolute;display:flex;bottom:max(15px,env(safe-area-inset-bottom));inset-inline-start:50%;transform:translateX(50%);gap:7px;direction:ltr}
.samyar-login-pagination button{width:8px;height:8px;border:1px solid #fff9;border-radius:20px;padding:0;background:#ffffff85;transition:width .25s,background .25s;cursor:pointer}
.samyar-login-pagination button.current{width:25px;background:#e9c77b;border-color:#e9c77b}
@media(max-width:768px){
 .samyar-login-v2{padding:calc(env(safe-area-inset-top) + 10px) 17px calc(env(safe-area-inset-bottom) + 18px)}
 .samyar-login-photo{background-position:center center}
 .samyar-login-overlay{background:linear-gradient(180deg,#0511164d,#07151a78 43%,#07151bcc),radial-gradient(circle at center,#02090b24,#02090b9c)}
 .samyar-access-perspective{height:551px}
 .samyar-access-shell{width:min(100%,388px)}
 .samyar-access-face{padding:16px 21px 24px;border-radius:25px}
 .samyar-access-icon{height:92px}
 .samyar-access-icon img{width:90px;height:90px}
 .samyar-access-heading{margin-bottom:14px}
 .samyar-access-heading h1{font-size:34px}
 .samyar-access-intro{margin-bottom:13px}
 .samyar-access-foot{margin-top:14px}
}
@media(max-width:385px){.samyar-access-perspective{height:550px}.samyar-access-face{padding-inline:16px}.samyar-access-heading h1{font-size:31px}.samyar-access-heading p{font-size:10px}.samyar-access-intro{font-size:10.5px}}
@media(max-height:720px){.samyar-login-v2{overflow-y:auto;align-items:flex-start}.samyar-access-perspective{height:552px}.samyar-access-shell{margin:auto}.samyar-access-intro{margin-bottom:8px}.samyar-access-foot{margin-top:10px}.samyar-login-pagination{position:relative;bottom:auto;margin:10px auto 0}}
@media(prefers-reduced-motion:reduce){.samyar-access-flipper{transition:none}.samyar-login-photo{animation:none}}

/* Inner workspace: preserve every role/route, improve spacing, density and hierarchy. */
.app-shell .shell-main:has(.samyar-home-tiles){padding:clamp(12px,1.6vw,26px);max-width:1450px;width:100%;margin-inline:auto}
.samyar-home-tiles{max-width:1400px;margin:0 auto;--ui-muted:#b5c2c8}
.samyar-home-tiles .samyar-home-tile-hero{border-radius:24px;border:1px solid rgba(211,185,131,.27);overflow:hidden;box-shadow:0 17px 35px #0004;isolation:isolate}
.samyar-home-tiles .samyar-home-tile-heading{margin-top:23px;margin-bottom:14px}
.samyar-home-tiles .samyar-home-tile-heading h2{letter-spacing:-.02em}
.samyar-home-tiles .samyar-home-tile-grid{gap:clamp(9px,1.2vw,15px)}
.samyar-home-tiles .samyar-home-link{border:1px solid rgba(174,213,211,.17);background:linear-gradient(155deg,rgba(24,42,50,.89),rgba(8,25,37,.92));box-shadow:0 8px 20px #0003,inset 0 1px 0 #ffffff0d;transition:transform .2s,box-shadow .2s,border-color .2s}
.samyar-home-tiles .samyar-home-link:hover{border-color:var(--samyar-tile-accent);transform:translateY(-2px);box-shadow:0 13px 24px #0005}
.samyar-home-tiles .samyar-home-tile-icon{filter:drop-shadow(0 7px 13px #0003)}
.samyar-home-tiles .samyar-home-tile-title{font-weight:800}
@media(max-width:768px){
 .app-shell .shell-main:has(.samyar-home-tiles){padding:11px 12px 26px}
 .samyar-home-tiles .samyar-home-tile-hero{border-radius:19px}
 .samyar-home-tiles .samyar-home-tile-heading{margin:18px 3px 10px}
 .samyar-home-tiles .samyar-home-tile-grid{gap:10px}
 .samyar-home-tiles .samyar-home-link{border-radius:17px;min-width:0}
}

.auth-app.has-live-ticker .samyar-login-v2{padding-bottom:calc(var(--ticker-height,46px) + var(--ticker-bottom-offset,24px) + 24px)}
.auth-app.has-live-ticker .samyar-login-pagination{bottom:calc(var(--ticker-height,46px) + var(--ticker-bottom-offset,24px) + 12px)}


/* Update / install prompts: top of viewport; never overlap the auth card. */
.auth-app .update-toast {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%; right: auto; bottom: auto;
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 28px));
  max-height: min(160px, 30dvh);
  overflow: auto;
  z-index: 1100;
  display: flex;
  flex-wrap: wrap;
  direction: rtl;
  box-sizing: border-box;
  border-radius: 17px;
  box-shadow: 0 16px 42px #000b;
}
.auth-app .update-toast div { min-width: 0; }
.auth-app .update-toast .btn { flex: 0 0 auto; }
.auth-app .install-card {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  bottom: auto; left: 50%; right: auto;
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 28px));
  max-height: min(180px, 32dvh);
  overflow: auto;
  z-index: 1090;
}
/* The auto-updater has priority: don't display two banners over one another. */
.auth-app:has(.update-toast) .install-card { display: none; }
@media (max-width: 768px) {
  .auth-app .update-toast {
    top: max(9px, env(safe-area-inset-top));
    width: calc(100vw - 24px);
    gap: 8px; padding: 10px 12px;
    font-size: 11px; line-height: 1.5;
  }
  .auth-app .update-toast small { font-size: 10px; line-height: 1.5; }
  .auth-app .update-toast .btn { font-size: 10px; padding: 7px 10px; }
  .auth-app .install-card {
    top: max(9px, env(safe-area-inset-top));
    width: calc(100vw - 24px);
    padding: 10px 12px;
  }
  .auth-app .install-card .install-actions { display: flex; grid-column: auto; }
}

@media (max-height: 760px) {
  .auth-app:has(.update-toast) .samyar-login-v2,
  .auth-app:has(.install-card) .samyar-login-v2 { padding-top: 112px; }
}
