:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#142943;background:#f1f6fa;font-size:16px;--nav:#102d4b;--green:#08795f;--blue:#155aa0;--muted:#4e647b;--line:#dce7ef;--surface:#fff}
*{box-sizing:border-box}body{margin:0;min-height:100vh}a{color:var(--blue)}h1,h2,h3,p{margin:0 0 .75rem}h1{font-size:clamp(1.7rem,3vw,2.4rem);letter-spacing:-.035em}h2{font-size:1.16rem}h3{font-size:1rem;margin-top:1.2rem}p,li{line-height:1.6}li{margin-bottom:.45rem}small{display:block;color:var(--muted);font-size:.82rem;margin-top:.25rem}footer{margin-top:2rem;color:var(--muted);font-size:.85rem}button,input,textarea,select{font:inherit}button,.button{background:var(--green);color:white;border:1px solid transparent;border-radius:.58rem;padding:.65rem .95rem;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:2.55rem;font-weight:650;font-size:.88rem}button:hover,.button:hover{filter:brightness(.92)}button:disabled{opacity:.55;cursor:wait}.secondary{background:#edf5fa;color:#174e7a;border-color:#d6e5f0}.danger{background:#fcebef;color:#922442;border-color:#f1ccd6}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #1979c9;outline-offset:3px}
.auth{display:grid;place-items:center;padding:1.25rem;background:linear-gradient(130deg,#dceff7,#eef8f3 60%,#dceff3)}.auth-card{width:min(100%,36rem);padding:clamp(1.2rem,4vw,2.5rem)!important}.auth-links{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1rem}.public-content{max-width:65rem;margin:auto;padding:1.5rem}.public-content>.brand,.auth-card>.brand{margin-bottom:1.5rem}
.panel{display:grid;grid-template-columns:16rem minmax(0,1fr)}aside{background:var(--nav);color:white;position:sticky;top:0;height:100dvh;padding:1.35rem 1rem;display:flex;flex-direction:column;gap:1.5rem;overflow:auto}.brand{display:flex;gap:.7rem;align-items:center;color:inherit;text-decoration:none;font-weight:750;line-height:1.2}.brand img{width:2.55rem;height:2.55rem;object-fit:contain;flex:0 0 auto}.brand small,.account small{color:#c1d5e8}.light small{color:var(--muted)}nav{display:grid;gap:.25rem}nav a{color:#e0ebf5;text-decoration:none;padding:.65rem .7rem;border-radius:.55rem;display:flex;align-items:center;gap:.65rem;font-size:.92rem}nav svg{width:1.15rem;height:1.15rem;flex:none}nav a:hover,nav a[aria-current]{background:#1d4970;color:white}nav a[aria-current]{box-shadow:inset 3px 0 #42d4a9}.account{margin-top:auto;overflow-wrap:anywhere}.account form{margin-top:.7rem}.nav-toggle{display:none}.content{min-width:0;padding:clamp(1rem,3vw,2.4rem);max-width:105rem;width:100%;margin:auto auto auto 0}.page-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}.page-head p{margin:0;color:var(--muted)}
.card{background:var(--surface);border:1px solid var(--line);border-radius:.9rem;padding:1.1rem;box-shadow:0 5px 16px #16395408;margin-bottom:1rem;min-width:0}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:.8rem;margin-bottom:1rem}.metric{margin:0;min-height:6rem;display:grid;align-content:center;gap:.35rem;border-top:3px solid #68cdb6}.metric:nth-child(even){border-top-color:#79b4e1}.metric span{color:var(--muted);font-size:.86rem}.metric strong{font-size:clamp(1rem,2vw,1.35rem);overflow-wrap:anywhere}.split{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,24rem),1fr));gap:1rem;align-items:start}.chart-row{display:grid;grid-template-columns:3rem 1fr 2rem;align-items:center;gap:.75rem;margin:.5rem 0;font-size:.86rem}.chart-row meter{width:100%;height:.9rem}.chart-row meter::-webkit-meter-optimum-value{background:#138b75}.chart-row b{text-align:right}
form{display:grid;gap:.7rem;max-width:46rem}form+form{margin-top:.85rem}form>button{justify-self:start}label{display:grid;gap:.32rem;font-size:.9rem;font-weight:650}input,textarea,select{width:100%;min-width:0;padding:.58rem .68rem;background:#fbfdff;border:1px solid #c9d9e7;border-radius:.5rem;color:#142943;font-size:.95rem}textarea{min-height:6.25rem;resize:vertical}select{appearance:none;padding-right:2rem;background-image:url("chevron.svg");background-repeat:no-repeat;background-position:right .65rem center;background-size:.9rem}input[type=checkbox]{width:1.05rem;height:1.05rem;margin:0;accent-color:var(--green)}.check{display:flex;align-items:center;gap:.5rem}.filters{display:flex;flex-wrap:wrap;align-items:end;gap:.65rem;margin-bottom:1rem;max-width:none}.filters label{min-width:min(100%,12rem)}.copy{display:flex;gap:.5rem;margin:.35rem 0 .8rem}.copy input{font-family:ui-monospace,monospace}.inline{display:flex;gap:.4rem;flex-wrap:wrap}.inline form{margin-top:0}
.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:.89rem}th,td{text-align:left;padding:.65rem .65rem;border-bottom:1px solid var(--line);vertical-align:top}th{background:#f2f7fc;color:#35546d;white-space:nowrap}td{overflow-wrap:anywhere}td details[open]{min-width:min(72vw,17rem)}details{min-width:5rem}summary{cursor:pointer;color:var(--blue);font-weight:650;margin-bottom:.35rem}.badge{display:inline-block;padding:.18rem .48rem;border-radius:999px;background:#e8eff6;color:#385875;font-size:.8rem;font-weight:700;white-space:nowrap}.active,.online,.running,.delivered,.complete,.sent{background:#ddf5ec;color:#08644e}.failed,.suspended,.error{background:#fae8ed!important;color:#84314a!important}.unknown,.pending,.reserved,.paused,.sending{background:#fff0d6;color:#815415}.offline,.stopped,.cancelled{background:#edf0f3;color:#546576}.sms-text{min-width:10rem;max-width:24rem}.pages{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-top:1rem}.empty,.counter{color:var(--muted)}.notice,.toast{border-radius:.6rem;padding:.75rem 1rem;background:#e1f4ed;color:#075b47;margin-bottom:1rem}.toast{position:fixed;z-index:5;right:1rem;bottom:1rem;box-shadow:0 5px 20px #12283635}.tester-result,pre{background:#122c46;color:#e5f3fc;padding:.85rem;border-radius:.65rem;overflow:auto;font-size:.84rem}code{overflow-wrap:anywhere}progress{accent-color:var(--green);width:5rem}
@media(max-width:760px){.panel{display:block}.nav-toggle{display:inline-flex;margin:1rem 1rem 0}.panel aside{display:none;position:static;height:auto;margin-top:.7rem}.panel.nav-open aside{display:flex}.content{padding:1rem}.page-head{align-items:flex-start}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

.gateway-auth {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100dvh;
    background: var(--login-gradient);
    background-size: 250% 250%;
    animation: admin-gradient 18s ease-in-out infinite alternate;
    color: #fff;
}
.gateway-auth-waves {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.gateway-auth-waves svg {
    display: block;
    width: 120%;
    height: 100%;
    margin-left: -10%;
    opacity: .9;
    filter: drop-shadow(0 0 6px var(--login-glow)) drop-shadow(0 0 18px var(--login-halo));
    animation: admin-wave-drift 12s ease-in-out infinite alternate;
}
@keyframes admin-gradient {
    from { background-position: 0% 40%; }
    to { background-position: 100% 65%; }
}
@keyframes admin-wave-drift {
    from { transform: translate(-3%, 2%); }
    to { transform: translate(3%, -4%); }
}
.gateway-auth-intro {
    display: grid;
    align-content: space-between;
    justify-items: start;
    gap: clamp(2rem, 7vh, 5rem);
    padding: clamp(1.5rem, 6vw, 6rem);
}
.gateway-auth-heading {
    max-width: 29rem;
    text-shadow: 0 2px 12px #04091b;
}
.gateway-auth-heading svg {
    display: block;
    width: 3rem;
    height: 3rem;
    padding: .65rem;
    margin-bottom: 1.4rem;
    border: 1px solid #6edcff70;
    border-radius: .75rem;
    background: #102b57;
    color: #9cecff;
}
.gateway-auth-heading h2 {
    font-size: clamp(2.1rem, 5vw, 4.1rem);
    line-height: 1.04;
    letter-spacing: -.05em;
}
.gateway-auth-heading p { color: #e4efff; }
.gateway-auth-switch { color: #e4efff; text-underline-offset: .25rem; }
.gateway-auth-form {
    align-self: center;
    justify-self: center;
    width: min(calc(100% - 3rem), 30rem);
    margin-block: 2rem;
    padding: clamp(1.4rem, 4vw, 3rem);
    border: 1px solid var(--login-border);
    border-radius: 1.25rem;
    background: var(--login-form);
    box-shadow: 0 16px 70px #02071199, 0 0 38px #137aff26;
}
.gateway-auth-form .page-head { margin-bottom: 1.5rem; }
.gateway-auth-form form { gap: 1rem; }
.gateway-auth-form input {
    border-color: #406089;
    background: var(--login-input);
    color: white;
}
.gateway-auth-form button { min-width: 8rem; background: var(--login-button); }
.gateway-auth-form footer { color: #bdd2ee; }
.gateway-auth-form a { color: #d3efe5; }
@media (max-width: 760px) {
    .gateway-auth { grid-template-columns: minmax(0, 1fr); align-content: start; }
    .gateway-auth-intro { gap: 1.25rem; padding-bottom: 0; }
    .gateway-auth-heading svg { display: none; }
    .gateway-auth-waves svg { height: min(100%, 48rem); }
}
@media (prefers-reduced-motion: reduce) {
    .gateway-auth, .gateway-auth-waves svg { animation: none; }
}

.admin-auth {
    --login-gradient: linear-gradient(125deg, #050b20 12%, #123168 40%, #26144d 67%, #094656 92%);
    --login-glow: #168cff;
    --login-halo: #204dff;
    --login-form: #0a1832f5;
    --login-border: #70bfff66;
    --login-input: #14284b;
    --login-button: #1663d2;
}
.customer-auth {
    --login-gradient: linear-gradient(125deg, #071b19 12%, #135b49 40%, #143929 67%, #226648 92%);
    --login-glow: #28edac;
    --login-halo: #19a977;
    --login-form: #0c2621f5;
    --login-border: #70eab580;
    --login-input: #154036;
    --login-button: #087958;
}
.customer-auth .gateway-auth-heading svg {
    border-color: #80e9c470;
    background: #123d33;
    color: #a4ffcf;
}
.customer-auth .gateway-auth-form input { border-color: #4a8573; }

.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.dialog-heading h2 { margin: 0; }
.user-dialog {
    width: min(calc(100% - 2rem), 32rem);
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: clamp(1rem, 4vw, 1.75rem);
    background: var(--surface);
    color: #142943;
    box-shadow: 0 16px 70px #102d4b44;
}
.user-dialog::backdrop { background: #10233b90; }
.demo-alert { max-width: 26rem; text-align: center; }
.demo-alert form { justify-items: center; }
.demo-alert form button { justify-self: center; min-width: 5rem; }
.demo-alert-icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border: 2px solid #e8ad56;
    border-radius: 50%;
    background: #fff3df;
    color: #8d5010;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-group { min-width: 0; }
.nav-group summary {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0;
    padding: .65rem .7rem;
    border-radius: .55rem;
    list-style: none;
    color: #e0ebf5;
    font-size: .92rem;
    font-weight: 400;
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary:hover, .nav-group[open] summary { background: #1d4970; color: white; }
.nav-group summary::after {
    content: "";
    width: .44rem;
    height: .44rem;
    margin: 0 .2rem .2rem auto;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}
.nav-group[open] summary::after { margin-bottom: -.2rem; transform: rotate(225deg); }
.nav-children {
    display: grid;
    gap: .15rem;
    margin: .25rem 0 .35rem 1.2rem;
    padding-left: .5rem;
    border-left: 1px solid #47719a;
}
.nav-children a { padding: .5rem .65rem; }

@font-face {
    font-family: "Noto Nastaliq Urdu";
    src: url("fonts/NotoNastaliqUrdu.ttf") format("truetype");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}
.simulator-notice { border-inline-start: .25rem solid #0b8368; }
.simulator-notice p { margin: 0; }
.simulator-notice .simulator-urdu {
    margin-top: .5rem;
    padding-top: .35rem;
    border-top: 1px solid #9ed5c6;
    font-family: "Jameel Noori Nastaleeq", "Jameel Noori Nastaleeq Regular", "Noto Nastaliq Urdu", serif;
    color: #000;
    text-shadow: 0 1px 2px #a5d9ff;
    font-size: 1.13rem;
    line-height: 2.45;
    text-align: start;
}

.device-actions, .device-copy { display: flex; align-items: center; gap: .4rem; }
.device-actions form { display: flex; margin: 0; }
.device-copy input:not([hidden]) { width: 10rem; }
.device-icon {
    position: relative;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    padding: .6rem;
}
.device-icon svg { width: 1.15rem; height: 1.15rem; }
.device-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    z-index: 2;
    inset-inline-end: calc(100% + .4rem);
    top: 50%;
    transform: translateY(-50%);
    padding: .36rem .55rem;
    border-radius: .35rem;
    background: #10233b;
    color: #fff;
    font-size: .75rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
}
.device-icon:hover::after, .device-icon:focus-visible::after { opacity: 1; }

.setup-requirements { list-style: none; padding: 0; }
.setup-requirements li { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; }
[data-install-form] fieldset {
    display: grid;
    gap: .7rem;
    min-width: 0;
    margin: 0;
    padding: .85rem;
    border: 1px solid var(--line);
    border-radius: .65rem;
}
[data-install-form] legend { font-weight: 700; padding-inline: .35rem; }
[data-install-form] button:disabled::before {
    content: "";
    width: .9rem;
    height: .9rem;
    margin-right: .55rem;
    border: 2px solid #ffffff72;
    border-top-color: #fff;
    border-radius: 50%;
    animation: setup-spinner .8s linear infinite;
}
@keyframes setup-spinner { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    [data-install-form] button:disabled::before { animation: none; }
}

.setup-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(7rem,1fr));
    gap: .45rem;
    padding: 0;
    margin: 0 0 1.15rem;
    list-style: none;
}
.setup-steps li {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin: 0;
    padding: .4rem;
    border: 1px solid var(--line);
    border-radius: .45rem;
    font-size: .79rem;
    line-height: 1.3;
}
.setup-steps li[aria-current=step] { background: #e1f4ed; color: #075b47; border-color: #8bc6b6; }
.setup-steps span { font-weight: 750; }
.setup-actions { margin-top: .35rem; }
