@font-face {
  font-family: Vazirmatn;
  src: url('/assets/fonts/Vazirmatn-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy-950: #061426;
  --navy-900: #091d34;
  --navy-800: #102d4b;
  --ink: #102337;
  --muted: #6d7e8d;
  --muted-2: #94a2ae;
  --line: #e2eaf0;
  --surface: #ffffff;
  --surface-soft: #f5f9fc;
  --blue: #087ec5;
  --blue-2: #1ba8dc;
  --cyan: #42d2df;
  --green: #16ad82;
  --red: #e44f62;
  --shadow-sm: 0 8px 24px rgba(20, 52, 78, .08);
  --shadow-lg: 0 28px 80px rgba(8, 34, 56, .18);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --key-size: clamp(64px, min(20vw, 8.3vh), 82px);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #eef5f9; }
body {
  min-width: 280px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: #eef5f9;
  color: var(--ink);
  font-family: Vazirmatn, Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid rgba(27, 168, 220, .28);
  outline-offset: 2px;
}
.hidden { display: none !important; }

.boot-view {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  background:
    radial-gradient(circle at 50% 36%, rgba(53, 194, 220, .16), transparent 25%),
    linear-gradient(150deg, #f9fcfe 0%, #edf6fa 100%);
}
.boot-view::before {
  position: absolute;
  width: min(80vw, 440px);
  aspect-ratio: 1;
  border: 1px solid rgba(20, 139, 194, .08);
  border-radius: 50%;
  content: '';
}
.boot-mark { position: relative; width: 82px; height: 82px; }
.boot-mark img { width: 100%; height: 100%; border-radius: 25px; box-shadow: var(--shadow-lg); }
.boot-mark i {
  position: absolute;
  inset: -10px;
  border: 2px solid transparent;
  border-top-color: var(--blue-2);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.boot-view b { margin-top: 10px; font-size: 23px; }
.boot-view span { color: var(--muted); font-size: 12px; }

.toast {
  position: fixed;
  z-index: 300;
  top: calc(18px + env(safe-area-inset-top));
  right: 50%;
  width: min(calc(100% - 32px), 430px);
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 15px;
  background: rgba(9, 35, 57, .94);
  box-shadow: 0 18px 48px rgba(4, 25, 42, .25);
  color: #fff;
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, -18px) scale(.97);
  transition: opacity .22s ease, transform .22s ease;
  backdrop-filter: blur(16px);
}
.toast.show { opacity: 1; transform: translate(50%, 0) scale(1); }
.toast.error { background: rgba(154, 40, 58, .96); }

.login-view {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(480px, 1.08fr);
  min-height: 100dvh;
  overflow: hidden;
  background: var(--surface);
}
.login-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: clamp(34px, 5vw, 70px);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(55, 199, 223, .24), transparent 24%),
    radial-gradient(circle at 78% 76%, rgba(16, 126, 197, .28), transparent 34%),
    linear-gradient(145deg, var(--navy-950), #0a3154 58%, #075f8f);
  color: #fff;
}
.login-brand::before,
.login-brand::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  content: '';
}
.login-brand::before { top: -24vw; right: -22vw; width: 58vw; height: 58vw; }
.login-brand::after { bottom: -25vw; left: -22vw; width: 62vw; height: 62vw; }
.brand-lockup, .mobile-brand { display: flex; align-items: center; gap: 12px; }
.brand-lockup img { width: 54px; height: 54px; border-radius: 17px; box-shadow: 0 16px 36px rgba(0,0,0,.18); }
.brand-lockup span { display: grid; }
.brand-lockup b { font-size: 21px; }
.brand-lockup small { color: #8fb5cc; font-size: 9px; letter-spacing: .7px; }
.login-story { width: min(100%, 640px); margin: auto 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #9ad0e4; font-size: 11px; font-weight: 700; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #55dec1; box-shadow: 0 0 0 6px rgba(85,222,193,.11); }
.eyebrow.dark { color: var(--blue); }
.login-story h1 { margin: 24px 0 16px; font-size: clamp(38px, 4.2vw, 65px); font-weight: 860; line-height: 1.25; letter-spacing: -1.2px; }
.login-story h1 em { color: #56d8e6; font-style: normal; }
.login-story > p { max-width: 540px; margin: 0; color: #b5cedd; font-size: clamp(13px, 1.2vw, 16px); line-height: 2; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 44px; }
.feature-grid article { display: grid; gap: 5px; min-height: 126px; padding: 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 21px; background: rgba(255,255,255,.06); backdrop-filter: blur(12px); }
.feature-grid article > span { color: #61ddeb; font-size: 22px; }
.feature-grid article b { align-self: end; font-size: 12px; }
.feature-grid article small { color: #89afc6; font-size: 9px; }
.brand-foot { color: #7195ad; font-size: 9px; }

.login-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  padding: clamp(28px, 4vw, 64px);
  overflow-y: auto;
  background: radial-gradient(circle at 92% 10%, rgba(32, 169, 215, .08), transparent 28%), #fff;
}
.login-card { width: min(100%, 520px); }
.mobile-brand { display: none; }
.online-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid #d9eee8; border-radius: 999px; background: #f3fbf8; color: #218169; font-size: 9px; font-weight: 750; }
.online-pill i { width: 7px; height: 7px; border-radius: 50%; background: #27bf92; box-shadow: 0 0 0 5px rgba(39,191,146,.12); }
.login-card h2 { margin: 25px 0 5px; font-size: clamp(27px, 3vw, 35px); line-height: 1.35; }
.login-card > p { margin: 0 0 21px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.login-card > label:not(.remember-row), .form-row label { display: grid; gap: 7px; margin-top: 13px; color: #3a4b5b; font-size: 10px; font-weight: 720; }
.login-card input:not([type='checkbox']) { width: 100%; height: 52px; padding: 0 16px; border: 1px solid #dce5eb; border-radius: 14px; background: #fbfdfe; color: var(--ink); font-size: 14px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.login-card input:not([type='checkbox']):focus { border-color: #72bddf; background: #fff; box-shadow: 0 0 0 4px rgba(27,168,220,.09); outline: 0; }
.form-row { display: grid; grid-template-columns: .65fr 1fr; gap: 12px; }
.remember-row { position: relative; display: flex; align-items: center; gap: 11px; min-height: 52px; margin-top: 14px; padding: 9px 12px; border: 1px solid #e4ebef; border-radius: 14px; background: #fafcfd; cursor: pointer; }
.remember-row input { position: absolute; opacity: 0; }
.remember-row > i { order: -1; position: relative; flex: 0 0 39px; width: 39px; height: 23px; margin-right: auto; border-radius: 999px; background: #ccd7de; transition: background .2s ease; }
.remember-row > i::after { position: absolute; top: 3px; right: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.15); content: ''; transition: transform .2s ease; }
.remember-row input:checked ~ i { background: var(--green); }
.remember-row input:checked ~ i::after { transform: translateX(-16px); }
.remember-row span { display: grid; }
.remember-row b { font-size: 10px; }
.remember-row small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.primary-button { display: flex; justify-content: center; align-items: center; gap: 14px; width: 100%; height: 55px; margin-top: 17px; border: 0; border-radius: 15px; background: linear-gradient(115deg, var(--blue-2), var(--blue)); box-shadow: 0 15px 32px rgba(8,126,197,.21); color: #fff; cursor: pointer; font-size: 13px; font-weight: 800; transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease; }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 18px 38px rgba(8,126,197,.27); }
.primary-button:active { transform: scale(.985); }
.primary-button:disabled { opacity: .65; cursor: wait; }
.primary-button b { font-size: 18px; }
.form-error { margin-top: 11px; padding: 11px 13px; border-radius: 11px; background: #fff0f2; color: #af394a; font-size: 10px; line-height: 1.8; }
.privacy-note { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 12px; color: var(--muted-2); font-size: 8px; }
.privacy-note span { color: var(--green); }
.context-warning { width: min(100%, 520px); margin-bottom: 16px; padding: 14px; border: 1px solid #f0d59f; border-radius: 14px; background: #fff9ed; color: #7c5b1f; }
.context-warning b, .context-warning span { display: block; }
.context-warning b { font-size: 11px; }
.context-warning span { margin-top: 4px; font-size: 9px; line-height: 1.8; }
.app-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(100%, 520px); margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.app-option { display: grid; grid-template-columns: 42px 1fr 18px; align-items: center; gap: 9px; min-height: 65px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-align: right; text-decoration: none; cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.app-option:hover { border-color: #b7dbe9; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.app-option.disabled { opacity: .55; pointer-events: none; }
.app-option-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #eaf8f5; color: var(--green); }
.app-option.web .app-option-icon { background: #eef7fc; color: var(--blue); }
.app-option > span:nth-child(2) { display: grid; min-width: 0; }
.app-option b { font-size: 10px; }
.app-option small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.app-option > i { color: var(--muted-2); font-style: normal; }
.app-option.windows { grid-column: 1 / -1; }
.app-option.windows .app-option-icon { background: #edf1ff; color: #3857aa; }
.back-link { grid-column: 1 / -1; justify-self: center; margin-top: 2px; color: var(--muted); font-size: 8px; text-decoration: none; }

.phone-view { position: relative; min-height: 100dvh; background: radial-gradient(circle at 50% -5%, rgba(43, 170, 216, .11), transparent 30%), linear-gradient(180deg, #f8fbfd, #eff5f8); }
.phone-header { position: sticky; z-index: 12; top: 0; display: flex; justify-content: space-between; align-items: center; width: min(100%, 620px); min-height: calc(75px + env(safe-area-inset-top)); margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) clamp(16px, 4vw, 27px) 12px; border-bottom: 1px solid rgba(222,232,238,.72); background: rgba(248,251,253,.82); backdrop-filter: blur(18px) saturate(140%); }
.phone-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.phone-person img { width: 43px; height: 43px; border-radius: 14px; box-shadow: 0 8px 20px rgba(14,100,151,.16); }
.phone-person span { display: grid; min-width: 0; }
.phone-person b { overflow: hidden; max-width: 190px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.phone-person small { color: var(--muted); font-size: 9px; }
.registration { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 11px; border: 1px solid #d8e6ed; border-radius: 999px; background: rgba(255,255,255,.8); color: var(--muted); font: inherit; font-size: 9px; font-weight: 750; cursor: pointer; }
.registration i { width: 7px; height: 7px; border-radius: 50%; background: #99a8b3; }
.registration.connecting i { background: #e7aa38; animation: pulse 1.1s ease infinite; }
.registration.online { border-color: #cce9df; background: #f2fbf7; color: #167f62; }
.registration.online i { background: #1ab587; box-shadow: 0 0 0 4px rgba(26,181,135,.11); }
.registration.error, .registration.offline { border-color: #f1d7dc; color: #b44352; }
.registration.error i, .registration.offline i { background: var(--red); }
.phone-shell { width: min(100%, 620px); min-height: calc(100dvh - 75px); margin: 0 auto; padding: 0 clamp(16px, 4vw, 28px) calc(94px + env(safe-area-inset-bottom)); }
.phone-tab { animation: tab-in .22s ease both; }
#dialTab { display: flex; flex-direction: column; min-height: calc(100dvh - 169px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
.dial-display { padding: clamp(10px, 2.6vh, 24px) 0 8px; text-align: center; }
.connection-line { display: flex; justify-content: space-between; align-items: center; min-height: 34px; margin-bottom: clamp(8px, 2vh, 19px); padding: 7px 11px; border: 1px solid rgba(214,229,237,.9); border-radius: 12px; background: rgba(255,255,255,.68); color: var(--muted); font-size: 8px; }
.connection-line span { display: flex; align-items: center; gap: 7px; }
.connection-line span i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22,173,130,.1); }
.connection-line em { color: var(--blue); font-style: normal; font-weight: 700; }
.dial-display > span { color: var(--muted-2); font-size: 10px; }
.dial-display > b { display: block; height: clamp(45px, 7vh, 66px); overflow: hidden; color: var(--navy-900); font-size: clamp(27px, 8vw, 40px); font-weight: 650; letter-spacing: 2px; line-height: clamp(45px, 7vh, 66px); text-overflow: ellipsis; white-space: nowrap; }
.dial-display > small { display: block; min-height: 20px; color: var(--muted); font-size: 9px; }
.dial-pad { display: grid; grid-template-columns: repeat(3, var(--key-size)); justify-content: center; gap: clamp(7px, 1.4vh, 13px) clamp(16px, 6vw, 34px); margin: auto 0; padding: clamp(4px, 1vh, 10px) 0; }
.dial-pad button { display: grid; place-items: center; align-content: center; width: var(--key-size); height: calc(var(--key-size) * .88); border: 1px solid rgba(218,229,235,.9); border-radius: clamp(20px, 6vw, 28px); background: rgba(255,255,255,.82); box-shadow: 0 7px 18px rgba(22,58,84,.045); color: var(--navy-900); cursor: pointer; touch-action: manipulation; transition: transform .1s ease, background .1s ease, border-color .1s ease; }
.dial-pad button:hover { border-color: #bfdce8; background: #fff; }
.dial-pad button:active { background: #e8f5fa; transform: scale(.93); }
.dial-pad b { font-size: clamp(20px, 5.5vw, 27px); font-weight: 560; line-height: 1; }
.dial-pad small { height: 10px; margin-top: 4px; color: #98a8b3; font-family: Arial, sans-serif; font-size: 7px; letter-spacing: 1.5px; }
.dial-actions { display: grid; grid-template-columns: 52px 52px 76px 52px; justify-content: center; align-items: center; gap: clamp(10px, 3.5vw, 20px); margin-top: clamp(8px, 2vh, 17px); }
.dial-actions button { cursor: pointer; touch-action: manipulation; }
.round { width: 52px; height: 52px; border: 0; border-radius: 18px; font-size: 19px; }
.secondary { background: transparent; color: #81909d; }
.secondary:active { background: #e3edf2; transform: scale(.94); }
.call-button { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border: 0; border-radius: 27px; background: linear-gradient(145deg, #25c49c, #139575); box-shadow: 0 16px 34px rgba(22,173,130,.28), inset 0 1px rgba(255,255,255,.28); color: #fff; font-size: 27px; transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease; }
.call-button::before { position: absolute; width: 86px; height: 86px; border: 1px solid rgba(22,173,130,.14); border-radius: 30px; content: ''; }
.call-button:active { transform: scale(.93); box-shadow: 0 8px 20px rgba(22,173,130,.24); }
.call-button:disabled { opacity: .52; cursor: wait; }
.call-button span { transform: rotate(-15deg); }

.tab-title { display: flex; justify-content: space-between; align-items: end; padding: 27px 2px 18px; }
.tab-title h2 { margin: 5px 0 0; font-size: 25px; }
.tab-title > button { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--red); cursor: pointer; font-size: 9px; }
.tab-title > #refreshDirectory { color: var(--blue); }
.directory-search { display: grid; grid-template-columns: 34px 1fr; align-items: center; min-height: 51px; padding: 0 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.88); }
.directory-search span { color: var(--blue); font-size: 23px; text-align: center; }
.directory-search input { width: 100%; height: 49px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 11px; }
.directory-search input::placeholder { color: #94a3ad; }
.directory-status { display: block; min-height: 29px; padding: 8px 4px 5px; color: var(--muted); font-size: 8px; }
.directory-list { display: grid; gap: 8px; }
.directory-row { display: grid; grid-template-columns: 38px minmax(0,1fr) auto 40px; align-items: center; gap: 9px; min-height: 70px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.86); }
.directory-row > i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #eaf6fb; color: var(--blue); font-style: normal; }
.directory-row > span { display: grid; min-width: 0; }
.directory-row b, .directory-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.directory-row b { font-size: 11px; }
.directory-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.directory-row > em { min-width: 43px; padding: 7px 8px; border-radius: 10px; background: #eef7fb; color: var(--blue); font-style: normal; font-size: 10px; font-weight: 800; text-align: center; }
.directory-row > button { width: 40px; height: 40px; border: 0; border-radius: 13px; background: #e8f8f2; color: var(--green); cursor: pointer; font-size: 16px; }
.history-list { display: grid; gap: 8px; }
.history-row { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 10px; width: 100%; min-height: 68px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.82); color: var(--ink); text-align: right; cursor: pointer; }
.history-row > i, .history-row > em { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-style: normal; }
.history-row > i { background: #eaf8f4; color: var(--green); }
.history-row > i.failed { background: #fff0f2; color: var(--red); }
.history-row > em { background: #eef7fb; color: var(--blue); }
.history-row span { display: grid; min-width: 0; }
.history-row b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.history-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.empty-history { display: grid; place-items: center; min-height: 290px; text-align: center; }
.empty-history span { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 25px; background: #eaf4f8; color: var(--blue); font-size: 28px; }
.empty-history b { margin-top: 14px; font-size: 12px; }
.empty-history small { max-width: 250px; color: var(--muted); font-size: 9px; line-height: 1.8; }
.profile-card { display: grid; grid-template-columns: 57px 1fr auto; align-items: center; gap: 13px; padding: 16px; border-radius: 21px; background: linear-gradient(135deg, var(--navy-900), #0c4c76); box-shadow: var(--shadow-sm); color: #fff; }
.profile-card img { width: 57px; height: 57px; border-radius: 18px; }
.profile-card div { display: grid; }
.profile-card b { font-size: 13px; }
.profile-card span { color: #a5c4d5; font-size: 9px; }
.profile-card em { display: grid; place-items: center; min-width: 47px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.1); color: #54d7e4; font-style: normal; font-size: 15px; font-weight: 800; }
.settings-card { margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.85); }
.settings-card > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; padding: 12px 15px; border-bottom: 1px solid #edf2f5; }
.settings-card > div:last-child { border-bottom: 0; }
.settings-card span { color: var(--muted); font-size: 9px; }
.settings-card b { overflow: hidden; max-width: 65%; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.settings-card .safe-value { color: var(--green); }
.settings-card select, .inline-setting { min-height: 36px; padding: 0 10px; border: 1px solid #cfe0e8; border-radius: 10px; background: #f6fafc; color: var(--ink); font: inherit; font-size: 9px; cursor: pointer; }
.inline-setting { color: var(--blue); font-weight: 750; }
.forwarding-card { margin-top: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.88); }
.forwarding-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.forwarding-head > span { display: grid; gap: 3px; }
.forwarding-head b { font-size: 11px; }
.forwarding-head small, .forwarding-status { color: var(--muted); font-size: 8px; line-height: 1.7; }
.mini-switch { position: relative; flex: 0 0 auto; width: 44px; height: 25px; }
.mini-switch input { position: absolute; opacity: 0; }
.mini-switch i { position: absolute; inset: 0; border-radius: 99px; background: #d7e1e7; cursor: pointer; transition: .18s ease; }
.mini-switch i::after { position: absolute; top: 3px; right: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgba(23,51,69,.2); content: ''; transition: .18s ease; }
.mini-switch input:checked + i { background: var(--green); }
.mini-switch input:checked + i::after { transform: translateX(-19px); }
.forwarding-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 13px; }
.forwarding-form input { min-width: 0; height: 43px; padding: 0 12px; border: 1px solid #d8e5eb; border-radius: 12px; background: #f9fcfd; font: inherit; font-size: 11px; }
.forwarding-form button { min-width: 68px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; cursor: pointer; font: inherit; font-size: 9px; font-weight: 750; }
.forwarding-form input:disabled { opacity: .55; }
.forwarding-status { display: block; margin-top: 8px; }
.forwarding-status.active { color: var(--green); }
.native-ringtone { display: none !important; }
.native-android .native-ringtone { display: flex !important; }
.native-android .web-ringtone { display: none !important; }
.ringtone-control { display: flex !important; align-items: center; gap: 7px; color: inherit !important; }
.ringtone-control button { min-height: 34px; padding: 0 10px; border: 1px solid #c7dfeb; border-radius: 10px; background: #f4fafc; color: var(--blue); cursor: pointer; font: inherit; font-weight: 750; }
.outline-button, .logout-button { width: 100%; min-height: 49px; margin-top: 11px; border-radius: 14px; cursor: pointer; font-weight: 750; }
.outline-button { border: 1px solid #bcdbe8; background: #f5fbfd; color: var(--blue); }
.logout-button { border: 1px solid #f0d7dc; background: #fff8f9; color: #b83c4e; }
.bottom-nav { position: fixed; z-index: 15; right: 50%; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); width: min(100%, 620px); min-height: calc(72px + env(safe-area-inset-bottom)); padding: 7px 12px env(safe-area-inset-bottom); border-top: 1px solid rgba(220,230,236,.85); background: rgba(255,255,255,.91); box-shadow: 0 -12px 32px rgba(20,53,77,.06); transform: translateX(50%); backdrop-filter: blur(20px) saturate(150%); }
.bottom-nav button { position: relative; display: grid; place-items: center; align-content: center; gap: 3px; min-height: 58px; border: 0; border-radius: 15px; background: transparent; color: #8494a1; cursor: pointer; }
.bottom-nav button::before { position: absolute; inset: 7px 14px; border-radius: 13px; background: #eaf6fb; opacity: 0; content: ''; transform: scale(.8); transition: opacity .17s ease, transform .17s ease; }
.bottom-nav span, .bottom-nav b { position: relative; z-index: 1; }
.bottom-nav span { font-size: 19px; }
.bottom-nav b { font-size: 8px; }
.bottom-nav button.active { color: var(--blue); }
.bottom-nav button.active::before { opacity: 1; transform: scale(1); }

.call-overlay { position: fixed; z-index: 100; inset: 0; display: flex; flex-direction: column; align-items: center; min-height: 100dvh; padding: calc(24px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom)); overflow: hidden; background: radial-gradient(circle at 50% 30%, rgba(43, 194, 215, .26), transparent 27%), linear-gradient(160deg, #07172a, #0b3458 57%, #0876ad); color: #fff; animation: overlay-in .24s ease both; }
.call-ambient { position: absolute; pointer-events: none; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; }
.call-ambient.one { top: -190px; width: 540px; height: 540px; }
.call-ambient.two { bottom: -300px; width: 650px; height: 650px; }
.call-brand { position: relative; z-index: 2; display: flex; align-items: center; align-self: flex-start; gap: 8px; color: #b7d1df; font-size: 10px; }
.call-brand img { width: 37px; height: 37px; border-radius: 12px; }
.caller-avatar { position: relative; z-index: 2; display: grid; place-items: center; width: clamp(112px, 30vw, 140px); height: clamp(112px, 30vw, 140px); margin-top: auto; border: 1px solid rgba(255,255,255,.17); border-radius: 43%; background: rgba(255,255,255,.1); box-shadow: 0 25px 70px rgba(0,0,0,.23); backdrop-filter: blur(14px); }
.caller-avatar > span { position: relative; z-index: 2; font-size: 46px; transform: rotate(-12deg); }
.caller-avatar > i { position: absolute; z-index: 3; left: 6px; bottom: 6px; width: 22px; height: 22px; border: 5px solid #0b4771; border-radius: 50%; background: #43dfb7; }
.signal-ring { position: absolute; inset: -14px; border: 1px solid rgba(100,222,231,.18); border-radius: 45%; animation: ring 2.2s ease-out infinite; }
.signal-ring.r2 { animation-delay: 1.1s; }
.call-direction { position: relative; z-index: 2; margin-top: 30px; color: #8cc6df; font-size: 9px; }
.call-overlay h2 { position: relative; z-index: 2; margin: 8px 0 3px; max-width: 90vw; overflow: hidden; font-size: clamp(26px, 7vw, 33px); text-overflow: ellipsis; white-space: nowrap; }
.call-overlay > p { position: relative; z-index: 2; margin: 0; color: #c4d9e4; font-size: 15px; }
.call-overlay > time { position: relative; z-index: 2; min-height: 23px; margin-top: 10px; color: #65dfc0; font-size: 10px; }
.call-quality { position: relative; z-index: 2; min-height: 25px; margin-top: 7px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.07); color: #b8d6e4; font-size: 8px; }
.call-quality.good { color: #65dfc0; }
.call-quality.fair { color: #ffd275; }
.call-quality.poor { color: #ff9daa; }
.call-controls { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, minmax(62px, 1fr)); width: min(100%, 390px); gap: 10px; margin-top: 22px; }
.call-controls button { display: grid; place-items: center; gap: 7px; border: 0; background: transparent; color: #c6d8e3; cursor: pointer; touch-action: manipulation; }
.call-controls span { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid rgba(255,255,255,.13); border-radius: 19px; background: rgba(255,255,255,.08); font-size: 19px; }
.call-controls b { max-width: 74px; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.call-controls button.active span { background: #fff; color: #153d5f; }
.incoming-actions { position: relative; z-index: 3; display: flex; gap: 76px; margin-top: auto; }
.incoming-actions button, .hangup { width: 72px; height: 72px; border: 0; border-radius: 26px; color: #fff; cursor: pointer; font-size: 26px; touch-action: manipulation; transition: transform .12s ease; }
.incoming-actions button:active, .hangup:active { transform: scale(.9); }
.incoming-actions .decline, .hangup { background: var(--red); box-shadow: 0 15px 32px rgba(228,79,98,.27); }
.incoming-actions .answer { background: var(--green); box-shadow: 0 15px 32px rgba(22,173,130,.28); }
.hangup { position: relative; z-index: 3; margin-top: auto; }
.dtmf-pad { position: absolute; z-index: 5; right: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); width: min(calc(100% - 28px), 360px); padding: 15px; border: 1px solid rgba(255,255,255,.14); border-radius: 26px; background: rgba(4,25,43,.94); box-shadow: 0 28px 70px rgba(0,0,0,.34); transform: translateX(50%); backdrop-filter: blur(24px); }
.dtmf-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; margin-bottom: 12px; }
.dtmf-head > span { display: grid; text-align: center; }
.dtmf-head small { color: #7fa9bf; font-size: 8px; }
.dtmf-head b { min-height: 21px; overflow: hidden; color: #fff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.dtmf-head > button { width: 44px; height: 38px; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); color: #b8d2df; font-size: 11px; cursor: pointer; }
.dtmf-keys { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.dtmf-keys button { display: grid; place-items: center; align-content: center; min-height: 54px; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; touch-action: manipulation; }
.dtmf-keys button:active { background: rgba(87,216,230,.22); transform: scale(.95); }
.dtmf-keys b { font-size: 19px; line-height: 1; }
.dtmf-keys small { min-height: 9px; margin-top: 3px; color: #7fa9bf; font: 6px Arial,sans-serif; letter-spacing: 1px; }

.route-sheet { position: fixed; z-index: 140; inset: 0; display: grid; align-items: end; }
.route-backdrop { position: absolute; inset: 0; border: 0; background: rgba(3,17,31,.58); backdrop-filter: blur(6px); cursor: default; }
.route-sheet article { position: relative; z-index: 2; width: min(100%, 620px); margin: 0 auto; padding: 12px 18px calc(20px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: #fff; box-shadow: 0 -24px 60px rgba(3,23,39,.22); animation: sheet-in .22s ease both; }
.route-sheet article > i { display: block; width: 42px; height: 4px; margin: 0 auto 14px; border-radius: 99px; background: #dbe5ea; }
.route-sheet h3 { margin: 4px 0 14px; font-size: 18px; }
.route-menu { display: grid; gap: 8px; }
.route-menu button { display: grid; grid-template-columns: 42px 1fr 24px; align-items: center; gap: 10px; width: 100%; min-height: 57px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 16px; background: #f9fbfc; color: var(--ink); text-align: right; cursor: pointer; }
.route-menu button > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #eaf5fa; color: var(--blue); }
.route-menu button b { font-size: 11px; }
.route-menu button i { color: transparent; font-style: normal; }
.route-menu button.active { border-color: #a9d9cd; background: #f1faf7; }
.route-menu button.active i { color: var(--green); }

.ios-install-sheet { position: fixed; z-index: 180; inset: 0; display: grid; align-items: end; }
.ios-install-backdrop { position: absolute; inset: 0; border: 0; background: rgba(3,17,31,.62); backdrop-filter: blur(7px); }
.ios-install-sheet article { position: relative; z-index: 2; width: min(100%, 560px); margin: 0 auto; padding: 12px 22px calc(22px + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0; background: #fff; box-shadow: 0 -30px 80px rgba(3,23,39,.28); animation: sheet-in .22s ease both; }
.ios-install-sheet article > i { display: block; width: 44px; height: 4px; margin: 0 auto 8px; border-radius: 99px; background: #dbe5ea; }
.ios-install-close { position: absolute; top: 18px; left: 18px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 12px; background: #eff5f7; color: #58707e; font-size: 20px; }
.ios-install-sheet article > img { display: block; width: 74px; height: 74px; margin: 3px 0 12px; border-radius: 23px; box-shadow: 0 12px 30px rgba(8,86,136,.18); }
.ios-install-sheet h3 { margin: 6px 0 5px; color: var(--ink); font-size: 21px; }
.ios-install-sheet article > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.ios-install-sheet ol { display: grid; gap: 8px; margin: 17px 0 0; padding: 0; list-style: none; }
.ios-install-sheet li { display: grid; grid-template-columns: 30px 1fr 34px; align-items: center; gap: 9px; min-height: 55px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 16px; background: #f9fbfc; }
.ios-install-sheet li > b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: #e8f5fa; color: var(--blue); font-size: 11px; }
.ios-install-sheet li > span { color: #3b5362; font-size: 10px; line-height: 1.8; }
.ios-install-sheet li > em { color: var(--blue); font-size: 20px; font-style: normal; text-align: center; }
.ios-install-sheet .primary-button { height: 51px; margin-top: 15px; }
.ios-install-sheet article > small { display: block; margin-top: 10px; color: var(--muted-2); font-size: 8px; line-height: 1.8; text-align: center; }
.ios-device button, .ios-device a { touch-action: manipulation; }
.ios-device input, .ios-device select { font-size: 16px !important; }
.standalone-pwa .app-option.web { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .4; transform: scale(.75); } }
@keyframes tab-in { from { opacity: 0; transform: translateY(5px); } }
@keyframes overlay-in { from { opacity: 0; transform: scale(1.025); } }
@keyframes ring { 0% { opacity: .6; transform: scale(.82); } 70%,100% { opacity: 0; transform: scale(1.25); } }
@keyframes sheet-in { from { transform: translateY(24px); opacity: .5; } }

@media (max-width: 920px) {
  .login-view { display: block; }
  .login-brand { display: none; }
  .login-panel { justify-content: flex-start; min-height: 100dvh; padding: calc(23px + env(safe-area-inset-top)) clamp(18px, 5vw, 30px) calc(26px + env(safe-area-inset-bottom)); }
  .mobile-brand { display: flex; justify-content: center; margin-bottom: 24px; }
  .mobile-brand img { width: 49px; height: 49px; border-radius: 16px; box-shadow: 0 10px 25px rgba(14,100,151,.17); }
  .mobile-brand b { font-size: 18px; }
  .app-options { margin-bottom: 10px; }
}

@media (max-width: 460px) {
  .form-row { grid-template-columns: .62fr 1fr; gap: 10px; }
  .app-options { grid-template-columns: 1fr; }
  .back-link { grid-column: 1; }
  .phone-person b { max-width: 142px; }
  .phone-person b { font-size: 12px; }
  .phone-person small, .registration, .dial-display > span, .dial-display > small { font-size: 9px; }
  .bottom-nav b, .call-controls b, .settings-card span, .settings-card b { font-size: 9px; }
  .forwarding-head small, .forwarding-status { font-size: 9px; }
  .ios-install-sheet article { padding-right: 18px; padding-left: 18px; }
}

@media (max-width: 350px) {
  :root { --key-size: 59px; }
  .phone-header { padding-right: 12px; padding-left: 12px; }
  .phone-shell { padding-right: 12px; padding-left: 12px; }
  .registration { padding: 6px 8px; }
  .dial-pad { column-gap: 15px; }
  .form-row { grid-template-columns: 1fr; }
  .dial-actions { gap: 19px; }
}

@media (max-height: 730px) and (max-width: 920px) {
  :root { --key-size: clamp(56px, 16vw, 66px); }
  .login-panel { padding-top: calc(13px + env(safe-area-inset-top)); }
  .mobile-brand { margin-bottom: 10px; }
  .mobile-brand img { width: 42px; height: 42px; }
  .login-card h2 { margin-top: 13px; font-size: 25px; }
  .login-card > p { margin-bottom: 8px; }
  .login-card > label:not(.remember-row), .form-row label { margin-top: 8px; }
  .login-card input:not([type='checkbox']) { height: 45px; }
  .remember-row { min-height: 45px; margin-top: 9px; }
  .primary-button { height: 49px; margin-top: 10px; }
  .privacy-note { margin-top: 7px; }
  .app-options { margin-top: 10px; padding-top: 10px; }
  .app-option { min-height: 57px; }
  .connection-line { margin-bottom: 5px; }
  .dial-display { padding-top: 5px; }
  .dial-display > b { height: 42px; line-height: 42px; }
  .dial-pad { gap: 5px 21px; }
  .dial-actions { margin-top: 6px; }
  .call-button { width: 67px; height: 67px; border-radius: 23px; }
}

@media (orientation: landscape) and (max-height: 560px) {
  .phone-header { position: fixed; right: 0; width: 100%; min-height: calc(61px + env(safe-area-inset-top)); padding-top: calc(7px + env(safe-area-inset-top)); padding-bottom: 7px; }
  .phone-person img { width: 37px; height: 37px; }
  .phone-shell { width: min(100%, 850px); padding-top: calc(65px + env(safe-area-inset-top)); padding-bottom: 12px; }
  #dialTab { display: grid; grid-template-columns: .8fr 1.2fr; grid-template-rows: 1fr auto; column-gap: 24px; min-height: calc(100dvh - 82px); }
  .dial-display { grid-row: 1; align-self: center; }
  .dial-pad { grid-column: 2; grid-row: 1 / 3; align-self: center; gap: 5px 18px; }
  .dial-actions { grid-column: 1; grid-row: 2; margin-bottom: 8px; }
  .connection-line { margin-bottom: 10px; }
  .bottom-nav { right: auto; left: 0; grid-template-columns: 1fr; width: 72px; min-height: 100dvh; padding: calc(65px + env(safe-area-inset-top)) 7px 8px; border-top: 0; border-right: 1px solid var(--line); transform: none; }
  .bottom-nav button { min-height: 58px; }
  .phone-shell { padding-left: 84px; }
  .caller-avatar { width: 94px; height: 94px; margin-top: 18px; }
  .call-direction { margin-top: 14px; }
  .call-overlay h2 { margin-top: 3px; }
  .call-controls { margin-top: 12px; }
  .incoming-actions, .hangup { margin-top: auto; }
}

@media (min-width: 921px) {
  .phone-view::before { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 15% 35%, rgba(24,152,205,.08), transparent 23%), radial-gradient(circle at 85% 70%, rgba(22,173,130,.06), transparent 25%); content: ''; }
  .phone-header, .phone-shell, .bottom-nav { box-shadow: 0 0 70px rgba(27,59,82,.07); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
