@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #203b32;
  --muted: #78877e;
  --green: #396e56;
  --green-deep: #28533f;
  --mint: #e4eee4;
  --peach: #e8a383;
  --peach-pale: #f8e9de;
  --lilac: #eeeaf5;
  --paper: #f4f6f1;
  --white: #fffefa;
  --line: #e3e9e1;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans Arabic", "Geeza Pro", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, a, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #bb7957; outline-offset: 4px; }
::selection { background: #d3e4d3; color: var(--ink); }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.ambient { position: fixed; z-index: -1; width: 460px; aspect-ratio: 1; border-radius: 50%; pointer-events: none; filter: blur(3px); animation: float 14s ease-in-out infinite alternate; }
.ambient-one { top: -260px; inset-inline-end: -110px; background: radial-gradient(circle, rgba(220, 234, 219, .8), rgba(220, 234, 219, 0) 67%); }
.ambient-two { bottom: -300px; inset-inline-start: -170px; background: radial-gradient(circle, rgba(246, 224, 207, .65), rgba(246, 224, 207, 0) 68%); animation-delay: -6s; }
@keyframes float { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(17px, 23px, 0) scale(1.05); } }

.topbar { position: relative; z-index: 2; height: 96px; flex: 0 0 auto; }
.header-inner { position: relative; width: min(1140px, calc(100% - 64px)); height: 100%; display: flex; align-items: center; justify-content: space-between; margin-inline: auto; }
.brand { position: absolute; top: 50%; left: 50%; display: inline-flex; align-items: center; gap: 9px; transform: translate(-50%, -50%); text-align: center; }
.brand-mark { width: 37px; height: 37px; display: grid; grid-template: repeat(2, 1fr) / repeat(2, 1fr); gap: 3px; padding: 6px; border-radius: 12px; background: var(--green-deep); transform: rotate(-5deg); box-shadow: 0 5px 12px rgba(40, 83, 63, .12); }
.brand-mark i { border-radius: 3px; background: #f2f2e8; }
.brand-mark i:nth-child(2) { opacity: .7; }.brand-mark i:nth-child(3) { opacity: .55; }
.brand-text { display: grid; line-height: 1.2; }
.brand-text strong { font-size: 19px; letter-spacing: -.04em; }
.brand-text small { margin-top: 4px; color: #859188; font-size: 10px; white-space: nowrap; }
.login-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; font-size: 12px; font-weight: 700; transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease); cursor: pointer; }
.login-button { padding: 0 15px; border: 1px solid var(--green-deep); background: var(--green-deep); color: white; box-shadow: 0 5px 12px rgba(40, 83, 63, .12); }
.login-button:hover { transform: translateY(-2px); background: #376b50; }
.login-button .icon { width: 16px; height: 16px; }
.account-control { position: relative; display: inline-flex; align-items: center; }
.account-control[hidden], .account-menu[hidden], .profile-avatar[hidden], .profile-avatar-fallback[hidden], .login-button[hidden] { display: none !important; }
.account-trigger { width: 46px; height: 46px; display: grid; place-items: center; padding: 2px; overflow: hidden; border: 1px solid #dce7dc; border-radius: 50%; background: #fff; box-shadow: 0 5px 12px rgba(40, 83, 63, .12); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.account-trigger:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(40, 83, 63, .16); }
.profile-avatar { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; background: #e8eee7; }
.profile-avatar-fallback { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; background: var(--green-deep); color: #fff; font-size: 16px; font-weight: 700; }
.account-menu { position: absolute; z-index: 20; top: calc(100% + 10px); inset-inline-start: 0; width: min(252px, calc(100vw - 32px)); padding: 7px; border: 1px solid #e2e9e1; border-radius: 16px; background: #fffefa; box-shadow: 0 16px 40px rgba(36, 69, 54, .16); }
.account-menu-details { display: grid; gap: 4px; padding: 10px 11px 12px; border-bottom: 1px solid #edf0eb; }
.account-menu-details strong { overflow: hidden; color: #2b4d3b; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-details small { overflow: hidden; color: #839087; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-action { width: 100%; min-height: 44px; display: flex; align-items: center; padding: 0 11px; border: 0; border-radius: 10px; background: transparent; color: #385244; font: inherit; font-size: 12px; text-align: right; cursor: pointer; transition: background .18s var(--ease), color .18s var(--ease); }
.account-menu-action:hover { background: #f0f5ee; }
.account-menu-signout { color: #8b594e; }
.account-menu-signout:hover { background: #fbf0ec; color: #74483e; }

main { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
.launchpad { position: relative; width: min(1020px, calc(100% - 48px)); margin: 14px auto 52px; padding-block: 38px 24px; text-align: center; }
.launchpad::before { content: ""; position: absolute; z-index: -1; top: 52%; left: 50%; width: min(780px, 95vw); aspect-ratio: 1.9; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,255,252,.88), rgba(255,255,252,0) 70%); transform: translate(-50%, -50%); pointer-events: none; }
.intro { animation: rise-in .8s var(--ease) both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(17px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid #dce7dc; border-radius: 99px; background: rgba(255, 255, 251, .78); color: #6e8875; font-size: 10px; font-weight: 700; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #8cad8d; box-shadow: 0 0 0 4px rgba(140, 173, 141, .13); }
.intro h1 { margin: 19px 0 8px; color: #244536; font-size: clamp(36px, 5.3vw, 55px); line-height: 1.35; letter-spacing: -.05em; }
.intro h1 span { color: #5d8a6a; }
.intro > p { margin: 0; color: #7d8a80; font-size: 14px; }

.system-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; width: min(980px, 100%); margin: 45px auto 0; }
.system-card { --card-accent: #477b5b; --card-bg: #e7f0e5; position: relative; min-height: 224px; display: flex; flex-direction: column; align-items: flex-start; padding: 24px 23px 18px; overflow: hidden; border: 1px solid rgba(60, 93, 68, .1); border-radius: 20px; background: rgba(255, 255, 252, .82); text-align: right; box-shadow: 0 10px 28px rgba(37, 62, 44, .045); cursor: pointer; animation: rise-in .8s var(--ease) both; transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease); }
.system-card:nth-child(1) { animation-delay: .12s; }
.system-card:nth-child(2) { animation-delay: .23s; }
.system-card:nth-child(3) { animation-delay: .34s; }
.system-card:hover { transform: translateY(-7px); border-color: rgba(60, 93, 68, .19); background: #fffefa; box-shadow: 0 18px 34px rgba(37, 62, 44, .1); }
.system-card:active { transform: translateY(-3px) scale(.99); }
.card-ledger { --card-accent: #518260; --card-bg: #e6f0e5; }
.card-appointment { --card-accent: #b47959; --card-bg: #f8e9de; }
.card-team { --card-accent: #7c6d9c; --card-bg: #eeeaf5; }
.system-card[data-icon="store"] { --card-accent: #518260; --card-bg: #e6f0e5; }
.system-card[data-icon="calendar"] { --card-accent: #b47959; --card-bg: #f8e9de; }
.system-card[data-icon="team"] { --card-accent: #7c6d9c; --card-bg: #eeeaf5; }
.system-card[data-icon="medical"] { --card-accent: #54816b; --card-bg: #e4f0e7; }
.card-icon { position: relative; z-index: 1; width: 55px; height: 55px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 17px; background: var(--card-bg); color: var(--card-accent); transition: transform .3s var(--ease); }
.card-icon .icon { width: 26px; height: 26px; stroke-width: 1.65; }
.system-card:hover .card-icon { transform: rotate(-6deg) scale(1.06); }
.card-title { position: relative; z-index: 1; color: #2b4d3b; font-size: 21px; font-weight: 750; line-height: 1.35; }
.card-description { position: relative; z-index: 1; margin-top: 2px; color: #829087; font-size: 11px; }
.card-footer { position: relative; z-index: 1; width: 100%; display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 15px; color: #809087; font-size: 10px; }
.card-footer .icon { width: 23px; height: 23px; display: grid; padding: 4px; border: 1px solid #e1e9e0; border-radius: 50%; color: var(--card-accent); transition: transform .25s var(--ease), background .25s var(--ease); }
.card-footer .card-demo-label { padding: 3px 8px; border-radius: 99px; background: #edf4e9; color: #5e8266; font-size: 9px; }
.system-card:hover .card-footer .icon { transform: translateX(-3px); background: var(--card-bg); }
.card-decoration { position: absolute; z-index: 0; width: 90px; height: 90px; top: -35px; inset-inline-end: -35px; border: 1px solid color-mix(in srgb, var(--card-accent) 13%, transparent); border-radius: 50%; transition: transform .5s var(--ease); }
.card-decoration::before, .card-decoration::after { content: ""; position: absolute; inset: 10px; border: 1px solid color-mix(in srgb, var(--card-accent) 10%, transparent); border-radius: inherit; }
.card-decoration::after { inset: 21px; }
.system-card:hover .card-decoration { transform: scale(1.24) rotate(16deg); }
.subscription-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; color: #839087; font-size: 11px; animation: rise-in .8s .4s var(--ease) both; }
.note-dot { width: 6px; height: 6px; border-radius: 50%; background: #91ae91; }
.note-line { width: 1px; height: 13px; background: #d8e0d7; }
.empty-systems { grid-column: 1 / -1; margin: 0; padding: 38px 20px; border: 1px dashed #d8e2d7; border-radius: 18px; color: #7b8a80; font-size: 13px; }

.about-strip { width: min(810px, calc(100% - 48px)); display: flex; align-items: center; gap: 12px; margin: 0 auto 24px; padding: 14px 18px; border: 1px solid rgba(218, 228, 216, .85); border-radius: 15px; background: rgba(255, 255, 251, .58); animation: rise-in 1s .15s var(--ease) both; scroll-margin-top: 28px; }
.about-mark { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: #e5efe3; color: #5c8365; }
.about-mark .icon { width: 16px; height: 16px; }
.about-strip p { display: grid; flex: 1; margin: 0; text-align: right; line-height: 1.5; }
.about-strip p strong { color: #4c6755; font-size: 11px; }
.about-strip p span { color: #8b978e; font-size: 10px; }
.about-aside { display: inline-flex; align-items: center; gap: 7px; color: #819086; font-size: 9px; white-space: nowrap; }
.about-aside i { width: 3px; height: 3px; border-radius: 50%; background: #b1c1b0; }
.page-footer { width: min(1140px, calc(100% - 64px)); display: flex; justify-content: space-between; gap: 15px; margin: 0 auto; padding: 16px 0 19px; border-top: 1px solid rgba(219, 228, 217, .82); color: #96a096; font-size: 10px; }

.login-dialog { width: min(420px, calc(100% - 32px)); padding: 0; overflow: visible; border: 1px solid #e4eae1; border-radius: 23px; background: var(--white); color: var(--ink); box-shadow: 0 28px 90px rgba(28, 54, 39, .22); }
.login-dialog::backdrop { background: rgba(26, 49, 37, .34); backdrop-filter: blur(5px); animation: fade-in .2s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.login-form { position: relative; display: flex; flex-direction: column; padding: 29px; }
.dialog-close { position: absolute; top: 15px; inset-inline-start: 15px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #e7ece5; border-radius: 12px; background: #fafbf8; color: #718077; cursor: pointer; }
.dialog-close .icon { width: 17px; height: 17px; }
.dialog-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #e7f0e5; color: #5a8063; }
.dialog-mark .icon { width: 21px; height: 21px; }
.dialog-eyebrow { margin: 16px 0 1px; color: #79907d; font-size: 10px; font-weight: 700; }
.login-form h2 { margin: 0; color: #2b4a38; font-size: 25px; }
.dialog-description { margin: 4px 0 20px; color: #7f8b82; font-size: 12px; }
.login-form label { margin: 12px 0 6px; color: #52685a; font-size: 11px; font-weight: 700; }
.login-form input { min-height: 47px; padding: 0 13px; border: 1px solid #dfe7de; border-radius: 11px; background: #fcfdfa; color: var(--ink); font-size: 13px; }
.login-form input::placeholder { color: #a4aea5; font-size: 11px; }
.dialog-submit { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 20px; border: 0; border-radius: 11px; background: var(--green-deep); color: white; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease); }
.dialog-submit:hover { transform: translateY(-1px); background: #376b50; }
.dialog-submit .icon { width: 17px; height: 17px; }
.form-status { margin: 11px 0 0; color: #929d93; font-size: 10px; text-align: center; }
.form-status.is-error { color: #aa514b; }
.oauth-login { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; border: 1px solid #dfe7de; border-radius: 11px; background: #fff; color: #2f4638; font-size: 12px; font-weight: 700; cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); }
.oauth-login:hover { transform: translateY(-1px); border-color: #bdcfc0; background: #fbfdfa; }
.oauth-login span { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid #e3e8e2; border-radius: 50%; color: #4285f4; font-family: Arial, sans-serif; font-size: 13px; font-weight: 800; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 17px 0 1px; color: #98a398; font-size: 10px; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: #e9eee8; content: ""; }
.otp-fields { display: flex; flex-direction: column; }
.otp-fields[hidden] { display: none; }
.login-form button:focus-visible, .login-form input:focus-visible { outline: 3px solid rgba(91, 136, 104, .32); outline-offset: 2px; }

@media (max-width: 680px) {
  .topbar { height: 82px; }
  .header-inner, .page-footer { width: calc(100% - 36px); }
  .brand { gap: 7px; }
  .brand-mark { width: 32px; height: 32px; padding: 5px; border-radius: 10px; }
  .brand-text strong { font-size: 17px; }
  .brand-text small { font-size: 8px; }
  .login-button { min-height: 42px; padding-inline: 10px; gap: 6px; font-size: 10px; }
  .login-button .icon { width: 14px; height: 14px; }
  .account-trigger { width: 42px; height: 42px; }
  .launchpad { width: calc(100% - 34px); margin-block: 12px 32px; padding-block: 29px 12px; }
  .intro h1 { margin-top: 15px; font-size: clamp(34px, 9vw, 46px); }
  .intro > p { max-width: 310px; margin-inline: auto; font-size: 12px; }
  .system-grid { width: min(420px, 100%); grid-template-columns: 1fr; gap: 11px; margin-top: 28px; }
  .system-card { min-height: 96px; display: grid; grid-template-columns: 54px 1fr 32px; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 13px 15px; border-radius: 16px; }
  .card-icon { width: 48px; height: 48px; grid-column: 1; grid-row: 1 / span 2; margin: 0; border-radius: 14px; }
  .card-icon .icon { width: 23px; height: 23px; }
  .card-title { grid-column: 2; grid-row: 1; align-self: end; font-size: 17px; }
  .card-description { grid-column: 2; grid-row: 2; align-self: start; font-size: 10px; }
  .card-footer { width: 29px; height: 29px; grid-column: 3; grid-row: 1 / span 2; justify-self: end; margin: 0; padding: 0; }
  .card-footer > span { display: none; }
  .card-footer .icon { width: 27px; height: 27px; padding: 6px; }
  .card-decoration { width: 80px; height: 80px; top: -34px; inset-inline-end: -33px; }
  .subscription-note { flex-wrap: wrap; gap: 7px; margin-top: 17px; font-size: 9px; }
  .about-strip { width: calc(100% - 34px); gap: 9px; margin-bottom: 16px; padding: 12px; }
  .about-strip p strong { font-size: 10px; }
  .about-strip p span { font-size: 9px; }
  .about-aside { display: none; }
  .page-footer { padding-top: 12px; padding-bottom: 15px; font-size: 9px; }
}

@media (min-width: 681px) and (max-width: 920px) {
  .system-grid { width: min(620px, 100%); grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 390px) {
  .header-inner, .page-footer { width: calc(100% - 26px); }
  .brand { gap: 5px; }
  .brand-mark { width: 29px; height: 29px; padding: 4px; }
  .brand-text strong { font-size: 15px; }
  .brand-text small { font-size: 7px; }
  .login-button { padding-inline: 8px; font-size: 9px; }
  .account-trigger { width: 36px; height: 36px; }
  .launchpad { width: calc(100% - 26px); }
  .eyebrow { font-size: 9px; }
  .subscription-note { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
.system-card:disabled{opacity:.72;cursor:default;transform:none;box-shadow:none}.system-card:disabled:hover{transform:none}

