:root {
    --bg: #0b1020;
    --card: rgba(255, 255, 255, .06);
    --card2: rgba(255, 255, 255, .10);
    --text: #e9f0ff;
    --muted: rgba(233, 240, 255, .7);
    --border: rgba(255, 255, 255, .12);
    --shadow: 0 18px 50px rgba(0, 0, 0, .35);
    --accent: #7c5cff;
    --accent2: #00d4ff;
    --good: #2ee59d;
    --bad: #ff4d6d;
    --warn: #ffd166;

    --radius: 18px;
    --radius2: 26px;

    --headerH: 78px;
}

body[data-theme="light"] {
    --bg: #f6f7fb;
    --card: rgba(0, 0, 0, .04);
    --card2: rgba(0, 0, 0, .06);
    --text: #0b1220;
    --muted: rgba(11, 18, 32, .68);
    --border: rgba(0, 0, 0, .10);
    --shadow: 0 18px 50px rgba(11, 18, 32, .12);
    --accent: #5b4bff;
    --accent2: #00a9ff;
    --good: #12b981;
    --bad: #e11d48;
    --warn: #b45309;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(1200px 600px at 12% 10%, rgba(124, 92, 255, .28), transparent 55%),
        radial-gradient(900px 500px at 88% 22%, rgba(0, 212, 255, .20), transparent 50%),
        var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}
h2{

color: var(--text);
}

.container {
    width: min(1150px, 92vw);
    margin: 0 auto;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--headerH);
    backdrop-filter: blur(14px);
    background: linear-gradient(to bottom, rgba(0, 0, 0, .28), rgba(0, 0, 0, .10));
    border-bottom: 1px solid var(--border);
}

body[data-theme="light"] header {
    background: linear-gradient(to bottom, rgba(255, 255, 255, .7), rgba(255, 255, 255, .45));
}

.headerInner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: .2px;
}

.logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    box-shadow: 0 10px 25px rgba(124, 92, 255, .35);
    position: relative;
    overflow: hidden;
}

.logo::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 90deg, rgba(255, 255, 255, .0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
    animation: spinshine 3.3s linear infinite;
}

@keyframes spinshine {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.navItem {
    position: relative;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--muted);
    transition: .25s ease;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
}

.navItem::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(124, 92, 255, .0), rgba(124, 92, 255, .45), rgba(0, 212, 255, .22));
    transform: translateY(18px);
    opacity: 0;
    transition: .25s ease;
    filter: blur(8px);
}

.navItem span {
    position: relative;
    z-index: 2;
}

.navItem:hover {
    color: var(--text);
    border-color: var(--border);
    transform: translateY(-1px);
}

.navItem:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.themeBtn {
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    padding: 10px 14px;
    cursor: pointer;
    transition: .25s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.themeBtn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, .25);
}

/* Hero */
section {
    padding: 72px 0;
    scroll-margin-top: calc(var(--headerH) + 14px);
}

.hero {
    padding-top: 46px;
}

.heroGrid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 22px;
    align-items: center;
}

@media (max-width: 950px) {
    .heroGrid {
        grid-template-columns: 1fr;
    }
}

.heroCard {
    background: linear-gradient(180deg, var(--card), rgba(255, 255, 255, .02));
    border: 1px solid var(--border);
    border-radius: var(--radius2);
    box-shadow: var(--shadow);
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.heroCard::after {
    content: "";
    position: absolute;
    inset: -120px -120px auto auto;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at 30% 30%, rgba(124, 92, 255, .35), transparent 55%);
    transform: rotate(12deg);
    pointer-events: none;
}

.kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
}

.pill {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    position: relative;
    overflow: hidden;
}

.pill::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 180deg, rgba(124, 92, 255, .0), rgba(124, 92, 255, .35), rgba(0, 212, 255, .25), rgba(124, 92, 255, .0));
    animation: spinshine 4.5s linear infinite;
    opacity: .8;
}

.pill {
    color: var(--text);
}

.heroTitle {
    margin: 14px 0 8px;
    font-size: clamp(26px, 3vw, 44px);
    line-height: 1.25;
    letter-spacing: -0.7px;
    font-weight: 900;
}

.heroSubtitle {
    color: var(--muted);
    margin: 0 0 18px;
    line-height: 1.8;
    font-size: 15px;
}

.ctaRow {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 14px;
}

.btnPrimary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none;
    color: #061022;
    font-weight: 900;
    padding: 12px 16px;
    border-radius: 14px;
    cursor: pointer;
    transition: .25s ease;
    box-shadow: 0 18px 40px rgba(124, 92, 255, .35);
    position: relative;
    overflow: hidden;
}

.btnPrimary:hover {
    transform: translateY(-2px);
}

.btnPrimary::after {
    content: "";
    position: absolute;
    inset: -80px;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .55), transparent 45%);
    opacity: .0;
    transition: .25s ease;
}

.btnPrimary:hover::after {
    opacity: .55;
}

.btnGhost {
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-weight: 800;
    padding: 12px 16px;
    cursor: pointer;
    transition: .25s ease;
}

.btnGhost:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .28);
}

/* “writing sheet” animation */
.sheetWrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.sheet {
    width: 100%;
    max-width: 420px;
    min-height: 320px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
    box-shadow: var(--shadow);
    padding: 18px 18px 16px;
    position: relative;
    overflow: hidden;
}

.sheet::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 20% 20%, rgba(124, 92, 255, .25), transparent 55%);
    pointer-events: none;
}

.sheetHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-weight: 800;
    margin-bottom: 12px;
}

.clockMini {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
}

.typing {
    margin-top: 14px;
    font-weight: 900;
    line-height: 1.9;
    color: var(--text);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.cursor {
    width: 10px;
    height: 24px;
    border-radius: 6px;
    background: var(--accent2);
    animation: blink 0.8s step-end infinite;
    margin-top: 4px;
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.typedText {
    white-space: pre-wrap;
    word-break: break-word;
    color:var(--text)
}

/* Small sections */
.sectionTitle {
    font-size: 22px;
    margin: 0 0 10px;
    font-weight: 950;
    letter-spacing: -0.2px;
}

.sectionDesc {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.8;
    font-weight: 700;
    font-size: 14px;
}

/* Progress cards */
.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 900px) {
    .grid3 {
        grid-template-columns: 1fr;
    }
}

.statCard {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
    position: relative;
    overflow: hidden;
}

.statCard::after {
    content: "";
    position: absolute;
    inset: -80px -80px auto auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at 20% 20%, rgba(124, 92, 255, .18), transparent 55%);
    pointer-events: none;
}

.statTop {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.statLabel {
    color: var(--muted);
    font-weight: 850;
}

.statValue {
    font-size: 26px;
    font-weight: 1000;
}

.bar {
    height: 10px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.bar>div {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 999px;
    transition: width .35s ease;
    position: relative;
}

.bar>div::after {
    content: "";
    position: absolute;
    inset: -12px -40px;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, .55), transparent 50%);
    opacity: .35;
    animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-20px);
        opacity: .2;
    }

    50% {
        transform: translateX(30px);
        opacity: .4;
    }

    100% {
        transform: translateX(-20px);
        opacity: .2;
    }
}

/* Form + Table */
.twoCol {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 14px;
    align-items: start;
}

@media (max-width: 980px) {
    .twoCol {
        grid-template-columns: 1fr;
    }
}

.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius2);
    padding: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
}

.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 720px) {
    .fields {
        grid-template-columns: 1fr;
    }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    color: var(--muted);
    font-weight: 850;
    font-size: 13px;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    outline: none;
    transition: .2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(124, 92, 255, .55);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, .15);
}

textarea {
    resize: vertical;
    min-height: 84px;
}

.rowBtn {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
    align-items: center;
    justify-content: flex-start;
}

.btnAdd {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none;
    color: #061022;
    font-weight: 1000;
    padding: 12px 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: .25s ease;
    position: relative;
    overflow: hidden;
}

.btnAdd:hover {
    transform: translateY(-2px);
}

.btnSecondary {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    font-weight: 950;
    padding: 12px 16px;
    cursor: pointer;
    transition: .25s ease;
}

.btnSecondary:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .28);
}

table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
}

th,
td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
    vertical-align: middle;
    font-weight: 800;
    font-size: 13px;
}

th {
    color: var(--muted);
    background: rgba(255, 255, 255, .05);
    position: sticky;
    top: var(--headerH);
    z-index: 1;
}

tr:hover td {
    background: rgba(124, 92, 255, .08);
}

.taskTitle {
    text-align: right;
    font-weight: 1000;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.smallMeta {
    color: var(--muted);
    font-weight: 850;
    font-size: 12px;
}

.statusWrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.checkRow {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.checkBadge {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    border-radius: 999px;
    padding: 7px 10px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: .2s ease;
    font-weight: 950;
    color: var(--muted);
}

.checkBadge:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, .25);
    color: var(--text);
}

.checkBadge input {
    display: none;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .25);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .08);
}

.checkBadge[data-v="done"] .dot {
    background: var(--good);
    box-shadow: 0 0 0 3px rgba(46, 229, 157, .18);
}

.checkBadge[data-v="notdone"] .dot {
    background: var(--bad);
    box-shadow: 0 0 0 3px rgba(255, 77, 109, .18);
}

.checkBadge[data-active="true"] {
    color: var(--text);
    border-color: rgba(124, 92, 255, .45);
    transform: translateY(-1px);
    background: rgba(124, 92, 255, .12);
}

.reason {
    width: 100%;
    margin-top: 8px;
    padding: 9px 10px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .02);
    color: var(--muted);
    display: none;
}

.reason[data-show="true"] {
    display: block;
    animation: pop .22s ease both;
}

@keyframes pop {
    from {
        transform: translateY(-6px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Calendar + Future */
.sideStack {
    display: grid;
    gap: 14px;
}

.calGrid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.dow {
    color: var(--muted);
    font-weight: 950;
    font-size: 12px;
    text-align: center;
    padding: 8px 0;
}

.calCell {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .03);
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 1000;
    color: var(--muted);
    cursor: pointer;
    transition: .2s ease;
    position: relative;
    overflow: hidden;
}

.calCell:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .25);
    color: var(--text);
}

.calCell[data-today="true"] {
    border-color: rgba(0, 212, 255, .55);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, .12);
    color: var(--text);
    background: rgba(0, 212, 255, .08);
}

.calCell[data-has="true"]::after {
    content: "";
    position: absolute;
    bottom: 7px;
    left: 50%;
    width: 16px;
    height: 6px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 999px;
    opacity: .9;
}

.futureList {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.futureItem {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    transition: .2s ease;
}

.futureItem:hover {
    border-color: rgba(124, 92, 255, .45);
    transform: translateY(-2px);
}

.futureLeft {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.futureTitle {
    font-weight: 1000;
}

.tag {
    font-size: 12px;
    color: var(--muted);
    font-weight: 900;
    border: 1px solid rgba(255, 255, 255, .14);
    padding: 6px 10px;
    border-radius: 999px;
    width: fit-content;
    background: rgba(255, 255, 255, .03);
}

/* Footer */
.footer {
    padding: 30px 0 60px;
    color: var(--muted);
    font-weight: 850;
    text-align: center;
}

/* Smooth reveal */
.reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: 0.6s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .cursor {
        display: none;
    }
}

/* مودال سبک */
#motivationModal {
    position: fixed;
    inset: 0;

    display: none;

    justify-content: center;
    align-items: center;
    margin-top: 25%;
    z-index: 9999;
}

.modalContent {
    background: #494848;

    padding: 25px 30px;

    border-radius: 18px;

    min-width: 300px;

    text-align: center;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);

    animation: popup .3s ease;
}

@keyframes popup {
    from {
        opacity: 0;
        transform: scale(.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* باکس */

.modalContent {
    background: rgb(112, 112, 112);

    padding: 18px 24px;

    border-radius: 16px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .15);

    text-align: center;

    animation: popup .25s ease;
}

/* confetti */

.confetti {
    position: fixed;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    top: -10px;

    animation: fall linear forwards;
}

/* انیمیشن */

@keyframes fall {
    to {
        transform:
            translateY(100vh) rotate(360deg);

        opacity: 0;
    }
}

@keyframes popup {
    from {
        opacity: 0;
        transform: scale(.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}