@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&family=Heebo:wght@400;500;600;700;800;900&display=swap');

:root {
    color-scheme: dark;
    --bg: #080e18;
    --muted: #9baabe;
    --blue: #58cfff
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: #f1f6ff;
    font-family: Heebo, Arial, sans-serif;
    font-size: 16px
}

button,
a {
    -webkit-tap-highlight-color: transparent
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid #71dbff;
    outline-offset: 6px
}

button {
    border: 0
}

header {
    height: 102px;
    max-width: 1400px;
    margin: auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ffffff0c
}

.brand {
    color: inherit;
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    font-weight: 700;
    font-size: 19px
}

.brand img {
    height: 44px;
    width: 44px;
    border-radius: 12px
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    margin-top: 3px
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 28px
}

.demo {
    font-size: 13px;
    color: #8191a8
}

#motion {
    background: transparent;
    border: 1px solid #ffffff1c;
    border-radius: 30px;
    padding: 10px 17px;
    font-size: 14px
}

#motion span {
    margin-right: 12px;
    color: var(--blue)
}

.hero {
    text-align: center;
    padding-top: 49px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 58%, #12345155, transparent 57%)
}

.eyebrow {
    color: #a4bdd3;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px
}

.eyebrow span {
    width: 6px;
    height: 6px;
    background: #61caff;
    border-radius: 50%;
    box-shadow: 0 0 12px #57c5ff
}

h1 {
    font-size: clamp(44px, 5.1vw, 72px);
    line-height: 1.12;
    letter-spacing: -2px;
    margin: 23px 0 18px;
    font-weight: 800
}

h1 em {
    font-style: normal;
    color: #64d0ff
}

.intro {
    font-size: 18px;
    color: #a6b6c9;
    line-height: 1.8;
    margin: 0
}

.mobile-only {
    display: none
}

.universe {
    position: relative;
    max-width: 1120px;
    height: 490px;
    margin: 0 auto;
    isolation: isolate
}

.orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid #77bef715;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none
}

.orbit-one {
    width: 340px;
    height: 340px;
    border-style: dashed
}

.orbit-two {
    width: 660px;
    height: 420px;
    transform: translate(-50%, -50%) rotate(-16deg)
}

.orbit-three {
    width: 925px;
    height: 470px;
    transform: translate(-50%, -50%) rotate(10deg);
    border-color: #77bef70c
}

.logo-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2
}

.logo {
    position: relative;
    display: block;
    width: 204px;
    height: 204px;
    border-radius: 50%;
    background: #152534;
    box-shadow: 0 0 0 12px #69caff04, 0 0 0 1px #93d9ff33, 0 0 85px #25b7ef26;
    overflow: hidden;
    padding: 0
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.logo-tag {
    position: absolute;
    bottom: 17px;
    left: 0;
    width: 100%;
    font-size: 12px;
    color: #d9f4ff;
    text-shadow: 0 1px 5px #000
}

.click-hint {
    position: absolute;
    top: calc(100% + 28px);
    left: 50%;
    transform: translateX(-50%);
    width: 310px;
    font-size: 14px;
    color: #9cb5c8
}

.click-hint span {
    color: #71d9ff;
    margin-right: 8px
}

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #72cdff;
    box-shadow: 0 0 15px #4aafff
}

.s1 {
    top: 16%;
    left: 35%
}

.s2 {
    top: 73%;
    left: 15%
}

.s3 {
    top: 43%;
    right: 12%
}

.formula {
    position: absolute;
    color: #718dad44;
    direction: ltr;
    font-size: 23px;
    pointer-events: none
}

.f1 {
    top: 26%;
    right: 15%;
    transform: rotate(-13deg)
}

.f2 {
    bottom: 20%;
    left: 25%;
    transform: rotate(13deg)
}

.f3 {
    top: 13%;
    left: 20%;
    font-size: 36px
}

.categories {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none
}

.categories[hidden] {
    display: none
}

.category {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 223px;
    min-height: 86px;
    margin: -43px 0 0 -111.5px;
    transform: translate(var(--x), var(--y));
    border: 1px solid #a1c3ed28;
    border-radius: 18px;
    background: linear-gradient(135deg, #17283beb, #111b2aed);
    box-shadow: 0 12px 40px #0003;
    display: flex;
    align-items: center;
    text-align: right;
    gap: 13px;
    padding: 17px;
    pointer-events: auto;
    backdrop-filter: blur(16px)
}

.category:hover {
    border-color: var(--tone);
    background: #1a2c40
}

.symbol {
    color: var(--tone);
    font-size: 30px;
    width: 36px;
    text-align: center
}

.symbol.latin {
    font-size: 23px
}

.category b {
    font-size: 17px;
    font-weight: 600;
    display: block
}

.category small {
    font-size: 12px;
    color: #a4b6cb;
    display: block;
    margin-top: 3px
}

.arrow {
    margin-right: auto;
    color: var(--tone);
    font-size: 19px
}

.bottom-note {
    display: flex;
    justify-content: center;
    gap: 27px;
    color: #91a2b8;
    font-size: 14px;
    padding: 9px 0 40px
}

.bottom-note span+span:before {
    content: '·';
    margin-left: 27px;
    color: #45657d
}

.ideas {
    max-width: 1140px;
    margin: 35px auto 70px;
    padding: 35px 24px 0;
    border-top: 1px solid #ffffff10
}

.section-label {
    font-size: 13px;
    color: #59c7f7;
    margin-bottom: 12px
}

h2 {
    font-size: 29px;
    letter-spacing: -.7px;
    margin: 0 0 9px
}

.ideas-intro {
    color: #94a4b8;
    margin: 0 0 28px
}

.idea-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.idea-grid article {
    border: 1px solid #b1ceff15;
    background: linear-gradient(120deg, #12203188, #10172577);
    border-radius: 18px;
    padding: 26px
}

.idea-number {
    display: block;
    direction: ltr;
    text-align: right;
    font-size: 12px;
    letter-spacing: 2px;
    color: #668399
}

h3 {
    font-size: 21px;
    margin: 22px 0 10px
}

.idea-grid p {
    color: #9aadc1;
    line-height: 1.9;
    margin: 0;
    font-size: 16px
}

.idea-pill {
    display: inline-block;
    color: #80bedb;
    font-size: 13px;
    margin-top: 22px
}

.idea-pill:before {
    content: '↗';
    margin-left: 8px
}

footer {
    max-width: 1300px;
    margin: auto;
    border-top: 1px solid #ffffff10;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #718399;
    font-size: 12px
}

footer span:first-child {
    color: #b8c9d8;
    font-size: 14px
}

dialog {
    background: #111e2f;
    color: #eff8ff;
    border: 1px solid #6fcfff55;
    border-radius: 24px;
    padding: 50px 40px;
    max-width: calc(100% - 32px);
    width: 480px;
    text-align: right;
    box-shadow: 0 20px 100px #0008
}

dialog::backdrop {
    background: #030812c9;
    backdrop-filter: blur(7px)
}

dialog p {
    line-height: 1.9;
    color: #a6b8cc
}

#close-dialog {
    position: absolute;
    left: 14px;
    top: 10px;
    font-size: 27px;
    background: transparent
}

#back {
    background: #67d2ff;
    color: #071b28;
    padding: 12px 22px;
    border-radius: 12px;
    margin-top: 12px;
    font-weight: 600
}

.dialog-eyebrow {
    font-size: 14px;
    color: #65caff;
    display: block;
    margin-bottom: 10px
}

@media(max-width:1000px) and (min-width:701px) {
    .category {
        width: 194px;
        margin-left: -97px;
        padding: 12px;
        gap: 8px
    }

    .universe {
        zoom: .82
    }

    .hero {
        padding-top: 35px
    }
}

@media(max-width:700px) {
    header {
        height: 84px;
        padding: 0 20px
    }

    .brand {
        font-size: 16px
    }

    .brand small,
    .demo {
        display: none
    }

    .header-actions {
        gap: 0
    }

    #motion {
        font-size: 12px;
        padding: 8px 10px
    }

    #motion span {
        margin-right: 4px
    }

    .hero {
        padding-top: 35px
    }

    h1 {
        font-size: 49px
    }

    .intro {
        font-size: 16px;
        padding: 0 20px
    }

    .mobile-only {
        display: block
    }

    .universe {
        height: 360px;
        margin-top: 10px
    }

    .universe.open {
        height: auto;
        min-height: 360px;
        padding: 306px 16px 28px
    }

    .logo-wrap {
        top: 157px
    }

    .logo {
        height: 182px;
        width: 182px
    }

    .click-hint {
        font-size: 13px;
        top: calc(100% + 25px)
    }

    .orbit-one {
        width: 270px;
        height: 270px;
        top: 157px
    }

    .orbit-two {
        width: 480px;
        height: 295px;
        top: 157px
    }

    .orbit-three {
        width: 630px;
        height: 350px;
        top: 157px
    }

    .categories {
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px
    }

    .category {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        margin: 0;
        min-height: 94px;
        transform: none;
        gap: 10px;
        padding: 13px
    }

    .category b {
        font-size: 16px
    }

    .category small {
        font-size: 12px
    }

    .symbol {
        font-size: 26px;
        width: 27px
    }

    .arrow {
        display: none
    }

    .bottom-note {
        gap: 12px;
        font-size: 12px;
        padding-bottom: 17px
    }

    .bottom-note span+span:before {
        margin-left: 12px
    }

    .ideas {
        margin-top: 25px;
        padding-top: 28px
    }

    .ideas h2 {
        font-size: 26px
    }

    .idea-grid {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .idea-grid article {
        padding: 22px
    }

    h3 {
        margin-top: 15px
    }

    .idea-pill {
        margin-top: 15px
    }

    footer {
        flex-wrap: wrap;
        padding: 24px;
        font-size: 12px
    }

    footer span:last-child {
        display: none
    }

    .f1 {
        right: 5%
    }

    .f2 {
        left: 10%
    }

    .f3 {
        left: 9%
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        scroll-behavior: auto !important
    }
}

/* The symbol's own whitespace is balanced inside a fixed circular frame. */
.logo {
    width: 224px;
    height: 224px;
    border: 1px solid #93d9ff50;
    overflow: hidden
}

.logo img {
    position: absolute;
    width: 112%;
    height: 112%;
    max-width: none;
    left: 0;
    top: -6%;
    object-fit: contain;
    pointer-events: none
}

.click-hint {
    top: calc(100% + 23px)
}

.header-actions {
    gap: 14px
}

#theme {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ffffff25;
    background: #ffffff08;
    border-radius: 30px;
    padding: 10px 17px;
    font-size: 14px;
    white-space: nowrap
}

#theme>span:first-child {
    font-size: 19px;
    line-height: 1
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f7faff;
    --muted: #52677e;
    --blue: #0877b5
}

[data-theme="light"] body {
    color: #142e47
}

[data-theme="light"] header,
[data-theme="light"] .ideas,
[data-theme="light"] footer {
    border-color: #16457515
}

[data-theme="light"] #theme,
[data-theme="light"] #motion {
    background: #fff;
    border-color: #bad2e5;
    color: #264760
}

[data-theme="light"] .hero {
    background: radial-gradient(ellipse at 50% 58%, #c8edff8c, transparent 60%)
}

[data-theme="light"] h1 em {
    color: #087ebd
}

[data-theme="light"] .eyebrow,
[data-theme="light"] .intro,
[data-theme="light"] .click-hint,
[data-theme="light"] .bottom-note,
[data-theme="light"] .ideas-intro,
[data-theme="light"] .idea-grid p,
[data-theme="light"] dialog p {
    color: #526b82
}

[data-theme="light"] .demo,
[data-theme="light"] .idea-number,
[data-theme="light"] footer {
    color: #5c7489
}

[data-theme="light"] footer span:first-child {
    color: #254961
}

[data-theme="light"] .section-label,
[data-theme="light"] .idea-pill,
[data-theme="light"] .dialog-eyebrow {
    color: #0874a8
}

[data-theme="light"] .orbit {
    border-color: #278bcb26
}

[data-theme="light"] .orbit-three {
    border-color: #278bcb17
}

[data-theme="light"] .formula {
    color: #3683ab40
}

[data-theme="light"] .star {
    background: #239dd6;
    box-shadow: 0 0 12px #53bbeb65
}

[data-theme="light"] .logo {
    background: #eff8ff;
    border-color: #b9def2;
    box-shadow: 0 0 0 11px #ffffff85, 0 0 0 12px #69bde620, 0 20px 65px #248cc828
}

[data-theme="light"] .category {
    background: linear-gradient(135deg, #fffffffa, #eff7fffa);
    border-color: #c9dfef;
    box-shadow: 0 12px 32px #1952810d
}

[data-theme="light"] .category:hover {
    background: #fff;
    border-color: #298cc0;
    box-shadow: 0 15px 35px #1952811f
}

[data-theme="light"] .category small {
    color: #5b7185
}

[data-theme="light"] .category .symbol,
[data-theme="light"] .category .arrow {
    color: color-mix(in srgb, var(--tone) 45%, #203453)
}

[data-theme="light"] .idea-grid article {
    background: linear-gradient(120deg, #fff, #f0f7fd);
    border-color: #d7e5f0;
    box-shadow: 0 8px 28px #25496705
}

[data-theme="light"] dialog {
    background: #fff;
    color: #142e47;
    border-color: #bedbed;
    box-shadow: 0 20px 100px #163c6240
}

[data-theme="light"] dialog::backdrop {
    background: #233f6560
}

@media(max-width:700px) {
    .logo {
        width: 194px;
        height: 194px
    }

    .header-actions {
        gap: 7px
    }

    #theme,
    #motion {
        padding: 9px 10px;
        font-size: 12px
    }

    .brand img {
        width: 35px;
        height: 35px
    }

    .brand {
        gap: 7px;
        font-size: 14px
    }

    .click-hint {
        top: calc(100% + 23px)
    }
}

@media(max-width:390px) {
    header {
        padding: 0 12px
    }

    .brand img {
        width: 29px;
        height: 29px
    }

    #motion span {
        display: none
    }

    .header-actions {
        gap: 5px
    }

    #theme,
    #motion {
        padding: 9px 8px
    }
}

/* Bilingual category labels share clear, readable spacing. */
[lang="ar"] {
    font-family: Tajawal, Arial, sans-serif;
    letter-spacing: normal
}

.category {
    width: 244px;
    margin-left: -122px;
    min-height: 94px;
    padding: 14px;
    gap: 10px
}

.category-label {
    min-width: 0;
    flex: 1
}

.category .symbol {
    flex-shrink: 0;
    width: 28px;
    font-size: 27px
}

.category b {
    font-size: 16px;
    line-height: 1.55
}

.category small[lang="ar"] {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    margin-top: 3px
}

.category .arrow {
    font-size: 16px
}

#subject-arabic {
    font-size: 22px;
    line-height: 1.7;
    color: var(--muted)
}

.calculator {
    max-width: 1092px;
    margin: 0 auto 70px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    border: 1px solid #275672;
    border-radius: 26px;
    background: linear-gradient(125deg, #102538, #123e50);
    box-shadow: 0 18px 50px #00000012
}

.calculator-copy h2 {
    font-size: 32px;
    margin-bottom: 2px
}

.calculator-copy p {
    font-size: 16px;
    line-height: 1.8;
    margin: 7px 0;
    color: #b6cedb
}

.calculator-copy .calculator-ar {
    font-size: 26px;
    color: #85d9ec;
    margin-bottom: 18px;
    font-weight: 700
}

.calculator-copy .calculator-note {
    font-size: 13px;
    color: #a1bfce;
    margin: 4px 0
}

.calculator-controls {
    background: #07142150;
    border: 1px solid #86cde12b;
    border-radius: 20px;
    padding: 24px;
    text-align: center
}

.calculator-controls label {
    font-size: 15px;
    font-weight: 500
}

.calculator-controls label span {
    display: block;
    font-size: 16px;
    color: #b5d0df;
    margin-top: 3px
}

.score-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 18px 0 24px
}

.score-stepper button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 31px;
    line-height: 1;
    background: linear-gradient(145deg, #269ed5, #116099);
    color: #fff;
    box-shadow: 0 4px 12px #00588b25;
    border: 1px solid #7bd9ff55
}

.score-stepper button:disabled {
    opacity: .35;
    cursor: not-allowed
}

.score-stepper input {
    width: 88px;
    text-align: center;
    font: 600 36px Heebo, Arial, sans-serif;
    color: inherit;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #82b5cf50;
    border-radius: 0;
    appearance: textfield;
    -moz-appearance: textfield
}

.score-stepper input::-webkit-inner-spin-button,
.score-stepper input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0
}

.score-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    text-align: right;
    margin: 0 0 20px
}

.score-total input {
    width: 88px;
    min-width: 0;
    padding: 10px;
    border: 1px solid #72a8c14d;
    background: #ffffff09;
    color: inherit;
    border-radius: 10px;
    font: 500 19px Heebo, Arial, sans-serif;
    text-align: center
}

.calculate-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 12px 18px;
    border-radius: 11px;
    background: #79ddf0;
    color: #0c3549;
    font-size: 17px;
    font-weight: 700
}

.calculate-button span:last-child {
    margin-right: auto;
    font-size: 24px;
    line-height: 1
}

.calculate-button span:first-child {
    margin-right: auto
}

.calculate-button:hover {
    filter: brightness(1.06)
}

.score-result:empty {
    display: none
}

.score-result {
    padding-top: 18px;
    color: #d3f7ff;
    font-size: 16px;
    line-height: 1.8
}

.score-result strong {
    display: block;
    font-size: 38px;
    line-height: 1.35
}

.calculator input:focus-visible {
    outline: 3px solid #36b5e8;
    outline-offset: 3px
}

[data-theme="light"] .calculator {
    background: linear-gradient(120deg, #e9f9fd, #cfedf4);
    border-color: #b4dce7;
    box-shadow: 0 18px 50px #237fa60a
}

[data-theme="light"] .calculator-copy p {
    color: #365e73
}

[data-theme="light"] .calculator-copy .calculator-ar {
    color: #167393
}

[data-theme="light"] .calculator-copy .calculator-note {
    color: #526f7e
}

[data-theme="light"] .calculator-controls {
    background: #ffffffb8;
    border-color: #ffffff
}

[data-theme="light"] .calculator-controls label span {
    color: #527181
}

[data-theme="light"] .score-total input {
    background: #fff;
    border-color: #b8d5e0
}

[data-theme="light"] .score-stepper input {
    border-color: #b8d5e0
}

[data-theme="light"] .calculate-button {
    background: #0b80b5;
    color: #fff
}

[data-theme="light"] .score-result {
    color: #106486
}

@media(max-width:760px) {
    .calculator {
        margin: 0 20px 45px;
        padding: 26px 20px;
        grid-template-columns: 1fr;
        gap: 23px
    }

    .calculator-controls {
        padding: 20px
    }

    .calculator-copy {
        text-align: center
    }

    .calculator-copy h2 {
        font-size: 28px
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.pricing {
    max-width: 1240px;
    margin: 0 auto 70px;
    padding: 0 24px
}

.pricing-heading {
    text-align: center;
    margin-bottom: 30px
}

.pricing-heading h2 {
    font-size: 32px;
    margin: 10px 0
}

.pricing-heading>p {
    font-size: 23px;
    color: var(--muted);
    margin: 0
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px
}

.price-card {
    --plan-color: #2196a6;
    --plan-pale: #d7f4f5;
    display: flex;
    flex-direction: column;
    border: 1px solid #a7cfff24;
    border-radius: 22px;
    overflow: hidden;
    background: #111e2d;
    box-shadow: 0 10px 30px #00000015
}

.price-blue {
    --plan-color: #057eb6;
    --plan-pale: #dcf2ff
}

.price-purple {
    --plan-color: #7650c0;
    --plan-pale: #eee5fc
}

.price-pink {
    --plan-color: #b8309b;
    --plan-pale: #fce5f5
}

.price-top {
    padding: 25px 20px 20px;
    text-align: center;
    background: color-mix(in srgb, var(--plan-color) 18%, #111e2d);
    border-bottom: 1px solid #a7cfff14
}

.price-top h3 {
    font-size: 20px;
    margin: 0 0 2px
}

.price-top>p {
    font-size: 18px;
    margin: 0;
    color: #c4d5e4
}

.plan-price {
    font-size: 50px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.4;
    margin: 14px 0 9px;
    font-variant-numeric: tabular-nums
}

.plan-price>span {
    font-size: 24px;
    font-weight: 500;
    vertical-align: middle;
    letter-spacing: 0
}

.plan-duration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    color: #d9e8f2
}

.plan-duration>[aria-hidden] {
    opacity: .4
}

.plan-duration>[lang] {
    font-size: 18px
}

.plan-features {
    list-style: none;
    margin: 0;
    padding: 24px 19px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px
}

.plan-features li {
    display: flex;
    gap: 10px;
    align-items: flex-start
}

.feature-status {
    color: #83d6e3;
    line-height: 1.6;
    font-size: 18px;
    flex-shrink: 0;
    width: 16px
}

.feature-he {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5
}

.plan-features [lang="ar"] {
    display: block;
    font-size: 16px;
    line-height: 1.6;
    color: #adc1d2
}

.plan-features .excluded .feature-he,
.plan-features .excluded [lang="ar"] {
    text-decoration: line-through;
    color: #8396a6
}

.excluded .feature-status {
    color: #8396a6
}

.plan-select {
    margin: 0 19px 22px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 11px;
    background: var(--plan-color);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: filter .2s
}

.plan-select:hover {
    filter: brightness(1.12)
}

.plan-select span:last-child {
    margin-right: auto
}

.plan-select span:first-child {
    margin-right: auto
}

.plan-select [lang] {
    font-size: 18px
}

.pricing-note {
    text-align: center;
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
    margin: 24px 0 0
}

.pricing-note [lang] {
    display: block;
    font-size: 16px
}

#plan-dialog-ar {
    font-size: 23px;
    color: var(--muted)
}

#plan-summary {
    font-size: 24px;
    font-weight: 700;
    color: var(--blue)
}

#plan-close {
    position: absolute;
    left: 14px;
    top: 10px;
    font-size: 27px;
    background: transparent
}

#plan-back {
    background: #67d2ff;
    color: #071b28;
    padding: 12px 18px;
    border-radius: 12px;
    margin-top: 12px;
    font-weight: 600
}

#plan-back [lang] {
    display: block;
    font-size: 16px;
    margin-top: 3px
}

[data-theme="light"] .price-card {
    background: #fff;
    border-color: #d5e4ef;
    box-shadow: 0 10px 30px #17496809
}

[data-theme="light"] .price-top {
    background: linear-gradient(130deg, var(--plan-pale), #fff);
    border-color: #d5e4ef
}

[data-theme="light"] .price-top>p,
[data-theme="light"] .plan-duration {
    color: #466074
}

[data-theme="light"] .plan-price {
    color: #16354a
}

[data-theme="light"] .feature-status {
    color: var(--plan-color)
}

[data-theme="light"] .plan-features [lang="ar"] {
    color: #4d6679
}

[data-theme="light"] .plan-features .excluded .feature-he,
[data-theme="light"] .plan-features .excluded [lang="ar"],
[data-theme="light"] .excluded .feature-status {
    color: #6f7f8b
}

[data-theme="light"] .price-aqua {
    --plan-color: #127c8b
}

@media(max-width:1100px) {
    .pricing {
        max-width: 800px
    }

    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px
    }
}

@media(max-width:540px) {
    .pricing {
        padding: 0 20px;
        margin-bottom: 45px
    }

    .pricing-grid {
        grid-template-columns: 1fr
    }

    .pricing-heading h2 {
        font-size: 26px
    }

    .price-top {
        padding-top: 23px
    }

    .plan-features {
        padding: 24px
    }

    .plan-select {
        margin-left: 24px;
        margin-right: 24px
    }
}

@media(min-width:701px) and (max-width:1000px) {
    .category {
        width: 224px;
        margin-left: -112px;
        padding: 12px;
        gap: 8px
    }
}

@media(max-width:700px) {
    .category {
        width: 100%;
        margin: 0;
        padding: 13px 10px;
        gap: 7px;
        min-height: 108px;
        align-items: flex-start
    }

    .category .symbol {
        width: 20px;
        font-size: 23px;
        line-height: 1.5
    }

    .category b {
        font-size: 15px
    }

    .category small[lang="ar"] {
        font-size: 16px;
        line-height: 1.65
    }
}

.category,
.plan-select {
    text-decoration: none;
    color: inherit
}

.plan-select {
    color: #fff
}

.account-link {
    display: flex;
    align-items: center;
    gap: 7px;
    color: inherit;
    text-decoration: none;
    border: 1px solid #8ab4ce55;
    border-radius: 24px;
    padding: 9px 14px;
    font-size: 14px;
    background: transparent
}

.signup-link {
    background: #087ebd;
    color: white;
    border-color: transparent
}

.logout-form {
    margin: 0
}

.student-name {
    font-size: 14px
}

.header-actions {
    flex-wrap: wrap;
    justify-content: flex-end
}

.learning-tools,
.site-news {
    max-width: 1140px;
    margin: 35px auto 60px;
    padding: 25px 24px
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px
}

.learning-grid>a {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    background: #ffffff08;
    border: 1px solid #97bfdd30;
    border-radius: 18px
}

.learning-grid>a:hover {
    border-color: var(--blue)
}

.learning-grid [lang] {
    font-size: 18px;
    color: var(--muted)
}

.learning-grid small {
    color: var(--blue)
}

.service-message {
    margin: 20px auto;
    max-width: 1000px;
    padding: 15px 22px;
    border: 1px solid #b3984555;
    background: #b3984515;
    border-radius: 12px;
    text-align: center
}

.service-message span {
    display: block
}

.news-item {
    position: relative;
    border: 1px solid #8cb0d240;
    border-radius: 14px;
    padding: 14px 20px 14px 45px;
    margin-top: 12px;
    background: #ffffff08
}

.news-item[hidden] {
    display: none
}

.news-item p {
    white-space: pre-wrap;
    line-height: 1.8
}

.news-dismiss {
    position: absolute;
    left: 10px;
    top: 10px;
    background: transparent;
    font-size: 24px
}

.restore-news {
    padding: 10px 18px;
    border-radius: 10px;
    background: #78c4e525;
    color: inherit;
    margin-top: 12px
}

.exam-notice {
    padding: 22px;
    border-radius: 16px;
    border: 1px solid #85bfd544;
    margin-bottom: 25px
}

.exam-notice p {
    white-space: pre-wrap;
    line-height: 1.8
}

footer nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap
}

footer a {
    color: inherit;
    text-decoration: none
}

.score-total-label {
    color: var(--muted);
    font-size: 15px
}

.score-total-label span {
    display: block;
    margin-top: 4px;
    font-size: 16px
}

[data-theme=light] .learning-grid>a,
[data-theme=light] .news-item {
    background: #fff
}

@media(max-width:700px) {
    header {
        height: auto;
        min-height: 100px;
        gap: 15px;
        padding-top: 14px;
        padding-bottom: 14px;
        align-items: flex-start
    }

    .header-actions {
        gap: 7px;
        max-width: 65%
    }

    .account-link {
        font-size: 12px;
        padding: 8px 10px
    }

    .account-link [lang] {
        display: none
    }

    .learning-grid {
        grid-template-columns: 1fr
    }

    .learning-tools h2 {
        font-size: 26px
    }

    .student-name {
        width: 100%;
        text-align: left
    }
}
