/* =========================================================
   مِرْقاة
   النظام التصميمي — نسخة محسّنة
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f5f1e8;
    color: #182335;
    font-family: Tahoma, Arial, sans-serif;
    min-height: 100vh;
}

button,
input,
textarea {
    font-family: inherit;
}

/* =========================================================

   الشريط العلوي

   تصميم أنحف وأكثر فخامة

========================================================= */

.topbar {

    width: 100%;

    min-height: 76px;

    padding: 13px 5%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;

    background: rgba(255, 255, 255, 0.78);

    border-bottom: 1px solid rgba(24, 35, 53, 0.07);

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    position: relative;

    z-index: 20;

}

.brand {

    display: flex;

    align-items: center;

    gap: 11px;

    flex-shrink: 0;

}

.brand-mark {

    width: 42px;

    height: 42px;

    border-radius: 13px;

    background:

        linear-gradient(

            145deg,

            #202e43,

            #182335

        );

    color: #d4b36a;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 19px;

    font-weight: bold;

    box-shadow:

        0 8px 22px rgba(24, 35, 53, 0.14),

        inset 0 1px 0 rgba(255, 255, 255, 0.08);

}

.brand h1 {

    font-size: 22px;

    line-height: 1;

    margin-bottom: 4px;

    color: #182335;

}

.brand span {

    font-size: 9px;

    color: #7b7469;

}
/* =========================================================
مِرْقاة — أيقونات الشريط العلوي
========================================================= */

.navigation {
display: flex;
align-items: center;
gap: 9px;
}

/* =========================
الأيقونة
========================= */

.nav-icon {
position: relative;


width: 44px;
height: 44px;

display: inline-flex;
align-items: center;
justify-content: center;

border: 1px solid rgba(212, 179, 106, 0.22);
border-radius: 14px;

background: rgba(255, 255, 255, 0.035);

color: #d4b36a;

text-decoration: none;

cursor: pointer;

transition:
    transform 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    color 0.28s ease;

}

/* SVG */

.nav-icon svg {
width: 21px;
height: 21px;


fill: none;

stroke: currentColor;

stroke-width: 1.65;

stroke-linecap: round;
stroke-linejoin: round;

transition:
    transform 0.28s ease,
    filter 0.28s ease;


}

/* =========================
Hover
========================= */

.nav-icon:hover {
transform: translateY(-3px);


color: #f0d58e;

background:
    linear-gradient(
        145deg,
        rgba(212, 179, 106, 0.17),
        rgba(212, 179, 106, 0.045)
    );

border-color: rgba(212, 179, 106, 0.62);

box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.16),
    0 0 20px rgba(212, 179, 106, 0.13);


}

.nav-icon:hover svg {
transform: scale(1.12);


filter:
    drop-shadow(
        0 0 6px rgba(212, 179, 106, 0.42)
    );


}

/* =========================
Tooltip
========================= */

.nav-icon::after {
content: attr(data-label);


position: absolute;

top: calc(100% + 11px);
right: 50%;

transform:
    translateX(50%)
    translateY(-5px);

padding: 7px 11px;

white-space: nowrap;

border-radius: 9px;

background: #182335;
color: #f5f1e8;

border: 1px solid rgba(212, 179, 106, 0.3);

font-size: 11px;
font-weight: 600;

letter-spacing: 0.1px;

opacity: 0;
visibility: hidden;

pointer-events: none;

box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.2);

transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;

z-index: 1000;


}

.nav-icon:hover::after {
opacity: 1;
visibility: visible;


transform:
    translateX(50%)
    translateY(0);

}

/* =========================
مساعد رُقيّ
========================= */

.nav-ai {
border-radius: 50%;
}

.nav-ai svg {
width: 22px;
height: 22px;
}

/* =========================
الروتين المشترك
========================= */

.nav-shared {
border-radius: 16px;
}

.nav-shared svg {
width: 22px;
height: 22px;
}

/* =========================
تسجيل الخروج
========================= */

.nav-logout {
opacity: 0.72;
}

.nav-logout:hover {
opacity: 1;
}

/* =========================
التنبيهات
========================= */

.notification-wrapper {
position: relative;
}

.notification-button {
font-family: inherit;
}

.notification-button .notification-badge {
position: absolute;


top: -4px;
right: -4px;

min-width: 17px;
height: 17px;

padding: 0 4px;

display: flex;
align-items: center;
justify-content: center;

border-radius: 999px;

background: #b94b4b;
color: #fff;

font-size: 9px;
font-weight: 700;

border: 2px solid #182335;

z-index: 3;

}

/* =========================
الوضع الليلي
========================= */

.theme-toggle {
background: transparent;
}

/* =========================
الجوال
========================= */

@media (max-width: 700px) {


.navigation {
    gap: 6px;

    flex-wrap: wrap;

    justify-content: center;
}

.nav-icon {
    width: 40px;
    height: 40px;

    border-radius: 12px;
}

.nav-icon svg {
    width: 19px;
    height: 19px;
}

/* نخفي الـ Tooltip في الجوال
   لأن الضغط أهم من التحويم */

.nav-icon::after {
    display: none;
}
}


/* =========================================================
   المحتوى
========================================================= */

.container {
    width: min(850px, 92%);
    margin: 42px auto;
}


/* =========================================================
   الترحيب
========================================================= */

.welcome {
    margin-bottom: 24px;
}

.welcome-small {
    color: #a18752;
    font-size: 12px;
    margin-bottom: 6px;
}

.welcome h2 {
    font-size: 29px;
    line-height: 1.25;
    margin-bottom: 7px;
    color: #182335;
}

.welcome-text {
    color: #777267;
    font-size: 14px;
}


/* =========================================================
   البطاقة الرئيسية
========================================================= */

.main-card {
    background: #ffffff;

    border-radius: 21px;

    padding: 27px;

    box-shadow:
        0 16px 45px rgba(24, 35, 53, 0.065);

    border: 1px solid rgba(24, 35, 53, 0.045);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.section-label {
    display: block;
    color: #a18752;
    font-size: 11px;
    margin-bottom: 6px;
}

.card-header h3,
.tasks-title h3 {
    font-size: 18px;
    color: #182335;
}

.progress-number {
    font-size: 24px;
    font-weight: bold;
    color: #a18752;
}


/* =========================================================
   شريط التقدم
========================================================= */

.progress-bar {
    width: 100%;
    height: 8px;

    background: #eee9df;

    border-radius: 20px;
    overflow: hidden;

    margin-top: 21px;
}

.progress-fill {
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #b28d49,
            #d9bb78
        );

    border-radius: 20px;

    transition: width 0.7s ease;
}

.progress-message {
    margin-top: 11px;
    color: #817b71;
    font-size: 12px;
}

.divider {
    height: 1px;
    background: #eeeae2;
    margin: 25px 0;
}


/* =========================================================
   عنوان المهام
========================================================= */

.tasks-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 16px;
}

.task-count {
    background: #f4efe4;
    color: #7d6b46;

    padding: 6px 10px;

    border-radius: 18px;

    font-size: 11px;
}


/* =========================================================
   إضافة مهمة
========================================================= */

.task-form {
    display: flex;
    gap: 9px;
    margin-bottom: 21px;
}

.task-form input {
    flex: 1;

    min-width: 0;
    height: 46px;

    border: 1px solid #e2ddd3;
    background: #faf9f6;

    padding: 0 14px;

    border-radius: 11px;

    outline: none;

    font-family: inherit;
    font-size: 13px;
    color: #182335;

    transition: 0.25s ease;
}

.task-form input:focus {
    border-color: #c5a35d;

    box-shadow:
        0 0 0 3px rgba(197, 163, 93, 0.08);
}

.task-form input::placeholder {
    color: #aaa49a;
}

.task-form button {
    height: 46px;

    border: none;

    background: #182335;
    color: white;

    padding: 0 21px;

    border-radius: 11px;

    font-family: inherit;
    font-size: 12px;

    cursor: pointer;

    transition: 0.25s ease;
}

.task-form button:hover {
    background: #26344a;
    transform: translateY(-1px);

    box-shadow:
        0 8px 18px rgba(24, 35, 53, 0.10);
}


/* =========================================================
   مِرْقاة — منتقي وقت المهمة
   Luxury Unique Time Picker
========================================================= */

.task-time-picker {
    position: relative;

    height: 58px;
    min-width: 190px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 7px 9px 7px 14px;

    border: 1px solid rgba(197, 163, 93, 0.28);
    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fbf9f5 55%,
            #f6f0e3 100%
        );

    box-shadow:
        0 6px 20px rgba(24, 35, 53, 0.045),
        inset 0 1px 0 rgba(255,255,255,0.95);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


/* =========================================================
   عند المرور
========================================================= */

.task-time-picker:hover {

    transform: translateY(-2px);

    border-color: rgba(197, 163, 93, 0.65);

    box-shadow:
        0 10px 28px rgba(24, 35, 53, 0.075),
        0 0 0 1px rgba(197, 163, 93, 0.06);
}


/* =========================================================
   عرض الوقت
========================================================= */

.task-time-display {

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 82px;

    line-height: 1;
}


/* العنوان */

.task-time-label {

    margin-bottom: 6px;

    color: #9a8d76;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.7px;
}


/* الوقت */

.task-time-value {

    display: flex;
    align-items: baseline;
    gap: 5px;
}


.task-time-hour {

    color: #182335;

    font-family:
        Tahoma,
        Arial,
        sans-serif;

    font-size: 17px;
    font-weight: 800;

    letter-spacing: 0.5px;
}


/* AM / PM */

.task-time-period {

    color: #b08d4d;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.5px;
}


/* =========================================================
   زر اختيار الوقت
========================================================= */

.task-time-open {

    height: 42px;
    min-width: 105px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 0 12px;

    border: 1px solid rgba(197, 163, 93, 0.35);
    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            #182335,
            #253248
        );

    color: #f5ead1;

    font-family:
        Tahoma,
        Arial,
        sans-serif;

    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 5px 14px rgba(24, 35, 53, 0.16);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.task-time-open:hover {

    transform: translateY(-1px);

    background:
        linear-gradient(
            145deg,
            #202d42,
            #2b3a52
        );

    box-shadow:
        0 8px 20px rgba(24, 35, 53, 0.22);
}


.task-time-open:active {

    transform: scale(0.97);
}


/* =========================================================
   أيقونة الساعة
========================================================= */

.task-clock-icon {

    position: relative;

    width: 24px;
    height: 24px;

    flex-shrink: 0;

    border: 1.5px solid #c5a35d;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 30%,
            rgba(255,255,255,0.08),
            transparent 55%
        );

    box-shadow:
        0 0 0 3px rgba(197, 163, 93, 0.07),
        inset 0 0 8px rgba(197, 163, 93, 0.08);
}


/* =========================================================
   عقارب الساعة
========================================================= */

.clock-hand {

    position: absolute;

    left: 50%;
    top: 50%;

    width: 1.5px;

    border-radius: 10px;

    background: #d8bd7e;

    transform-origin: 50% 100%;
}


.clock-hour {

    height: 6px;

    transform:
        translate(-50%, -100%)
        rotate(35deg);
}


.clock-minute {

    height: 8px;

    transform:
        translate(-50%, -100%)
        rotate(145deg);
}


/* مركز الساعة */

.clock-center {

    position: absolute;

    left: 50%;
    top: 50%;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: #c5a35d;

    transform: translate(-50%, -50%);

    box-shadow:
        0 0 5px rgba(197, 163, 93, 0.45);
}


/* =========================================================
   input المخفي
========================================================= */

.task-time-picker .task-time {

    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}


/* =========================================================
   لمعة ذهبية صغيرة
========================================================= */

.task-time-picker::after {

    content: "";

    position: absolute;

    right: 18px;
    bottom: -2px;

    width: 38px;
    height: 2px;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #c5a35d,
            transparent
        );

    opacity: 0.55;
}


/* =========================================================
   الجوال
========================================================= */

@media (max-width: 700px) {

    .task-time-picker {

        width: 100%;
        min-width: 0;

        height: 56px;
    }

    .task-time-open {

        min-width: 102px;
    }

    .task-time-hour {

        font-size: 16px;
    }
}

/* =========================================================
   المهام
========================================================= */

.task-list {
    list-style: none;
}

.task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 13px;

    padding: 13px;

    margin-bottom: 8px;

    border: 1px solid #eeeae2;
    border-radius: 14px;

    background: #fff;

    transition: 0.25s ease;
}

.task-item:hover {
    border-color: #d8c49a;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(24, 35, 53, 0.045);
}

.task-info {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 0;
}

.step-number {
    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    border-radius: 50%;

    background: #f3eee3;
    color: #9a7e45;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: bold;
}

.task-name {
    display: flex;
    flex-direction: column;
    gap: 4px;

    min-width: 0;
}

.task-name strong {
    font-size: 13px;
    font-weight: normal;
    color: #263143;

    overflow: hidden;
    text-overflow: ellipsis;
}

.task-name s {
    color: #9a968f;
}

.task-name span {
    font-size: 10px;
    color: #b08e4a;
}

.task-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.complete-button,
.delete-button {
    width: 32px;
    height: 32px;

    border-radius: 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    transition: 0.25s ease;
}

.complete-button {
    background: #eef3ec;
    color: #66815d;
}

.complete-button:hover {
    background: #dce9d8;
    transform: scale(1.06);
}

.delete-button {
    background: #f6eeee;
    color: #a66c6c;
}

.delete-button:hover {
    background: #f0dddd;
    transform: scale(1.06);
}


/* =========================================================
   لا توجد مهام
========================================================= */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 7px;

    padding: 34px 20px;

    color: #817b71;
}

.empty-icon {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: #f3eee3;
    color: #b08e4a;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 4px;
}

.empty-state strong {
    color: #3a4350;
    font-size: 13px;
}

.empty-state span {
    font-size: 11px;
}


/* =========================================================
   رُقيّ
========================================================= */

.ruqi-card {
    margin-top: 17px;

    background:
        linear-gradient(
            135deg,
            #182335,
            #202e43
        );

    color: white;

    border-radius: 18px;

    padding: 19px 21px;

    display: flex;
    align-items: center;

    gap: 13px;

    box-shadow:
        0 14px 32px rgba(24, 35, 53, 0.11);
}

.ruqi-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            #ead08e,
            #b9944d
        );

    color: #182335;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    font-weight: bold;
}

.ruqi-content {
    flex: 1;
    min-width: 0;
}

.ruqi-content span {
    color: #d4b36a;
    font-size: 11px;
}

.ruqi-content h3 {
    margin: 3px 0;
    font-size: 15px;
}

.ruqi-content p {
    color: #b9bec7;
    font-size: 10px;
}

.ruqi-button {
    text-decoration: none;

    color: #182335;
    background: #f2e8d0;

    padding: 10px 14px;

    border-radius: 10px;

    font-size: 11px;

    white-space: nowrap;

    transition: 0.25s ease;
}

.ruqi-button:hover {
    background: #ffffff;
    transform: translateY(-2px);
}


/* =========================================================
   التذييل
========================================================= */

footer {
    text-align: center;

    padding: 21px;

    color: #969087;

    font-size: 10px;
}

footer span:first-child {
    color: #a18752;
    font-weight: bold;
    margin-left: 7px;
}


/* =========================================================
   صفحات الإحصائيات
========================================================= */

.page-header {
    margin-bottom: 25px;
}

.brand-name {
    color: #a18752;
    font-size: 12px;
    margin-bottom: 7px;
    font-weight: bold;
}

.page-header h1 {
    font-size: 29px;
    color: #182335;
    margin-bottom: 7px;
}

.subtitle {
    color: #777267;
    font-size: 13px;
}


/* =========================================================
   بطاقات الإحصائيات
========================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 13px;

    margin-bottom: 21px;
}

.stat-card {
    position: relative;
    overflow: hidden;

    background: #ffffff;

    border: 1px solid rgba(24, 35, 53, 0.045);

    border-radius: 18px;

    padding: 20px 16px;

    text-align: center;

    box-shadow:
        0 10px 30px rgba(24, 35, 53, 0.055);

    transition: 0.25s ease;
}

.stat-card::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 100%;
    height: 2px;

    background: #c5a35d;

    opacity: 0.8;
}

.stat-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 16px 38px rgba(24, 35, 53, 0.085);
}


/* =========================================================
   أيقونات الإحصائيات
========================================================= */

.stat-icon {
    width: 44px;
    height: 44px;

    margin: 0 auto 13px;

    border-radius: 13px;

    background: #f5f0e5;

    border: 1px solid #e7dcc4;

    color: #a18752;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}

.icon-list {
    width: 19px;
    height: 15px;

    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;

    position: relative;
}

.icon-list::before {
    content: "";

    position: absolute;

    right: 0;
    top: 5px;

    width: 19px;

    border-top: 2px solid currentColor;
}

.icon-check {
    width: 18px;
    height: 10px;

    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;

    transform: rotate(-45deg);

    margin-top: -4px;
}

.icon-chart {
    width: 19px;
    height: 17px;

    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;

    position: relative;
}

.icon-chart::before,
.icon-chart::after {
    content: "";

    position: absolute;

    bottom: 3px;

    width: 3px;

    background: currentColor;

    border-radius: 2px;
}

.icon-chart::before {
    right: 4px;
    height: 7px;
}

.icon-chart::after {
    right: 10px;
    height: 11px;
}


/* =========================================================
   نصوص الإحصائيات
========================================================= */

.stat-card h3 {
    color: #777267;

    font-size: 11px;

    font-weight: normal;

    margin-bottom: 7px;
}

.stat-card strong {
    display: block;

    color: #182335;

    font-size: 29px;

    margin-bottom: 4px;

    letter-spacing: -1px;
}

.stat-card p {
    color: #9a8a6a;
    font-size: 10px;
}


/* =========================================================
   مستوى الإنجاز
========================================================= */

.progress-section {
    background: #ffffff;

    border: 1px solid rgba(24, 35, 53, 0.045);

    border-radius: 20px;

    padding: 24px;

    box-shadow:
        0 12px 34px rgba(24, 35, 53, 0.055);

    margin-bottom: 19px;
}

.progress-heading {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 18px;
}

.progress-heading h2 {
    color: #182335;
    font-size: 17px;
}

.progress-percentage {
    color: #a18752;
    font-size: 22px;
    font-weight: bold;
}

.progress-section .progress-bar {
    margin-top: 17px;
}

.progress-text {
    color: #817b71;
    font-size: 11px;
    margin-top: 10px;
}

.back-button {
    display: inline-block;

    text-decoration: none;

    color: #182335;
    background: #f2e8d0;

    padding: 10px 16px;

    border-radius: 10px;

    font-size: 11px;

    transition: 0.25s ease;
}

.back-button:hover {
    background: #d4b36a;
    transform: translateY(-2px);
}


/* =========================================================
   صفحة AI
========================================================= */

.ai-container {
    max-width: 850px;
}

.ai-hero {
    text-align: center;
    margin-bottom: 25px;
}

.ai-icon {
    width: 56px;
    height: 56px;

    margin: 0 auto 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #202e43,
            #182335
        );

    color: #d4b36a;

    font-size: 24px;
    font-weight: bold;

    box-shadow:
        0 11px 27px rgba(24, 35, 53, 0.11);
}

.ai-hero .section-label {
    margin-bottom: 5px;
}

.ai-hero h2 {
    font-size: 28px;
    color: #182335;
    margin-bottom: 8px;
}

.ai-hero p {
    max-width: 540px;

    margin: auto;

    color: #777267;

    font-size: 13px;

    line-height: 1.85;
}

.ai-card {
    background: #ffffff;

    border-radius: 21px;

    padding: 26px;

    border: 1px solid rgba(24, 35, 53, 0.045);

    box-shadow:
        0 16px 45px rgba(24, 35, 53, 0.065);
}

.ai-card-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 17px;
}

.ai-card-header h3 {
    font-size: 18px;
    color: #182335;
}

.ai-star {
    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #f4efe4;
    color: #b08e4a;

    font-size: 17px;
}

.ai-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-form textarea {
    width: 100%;

    resize: vertical;

    min-height: 155px;

    border: 1px solid #e2ddd3;

    background: #faf9f6;

    border-radius: 14px;

    padding: 15px;

    outline: none;

    font-family: inherit;
    font-size: 12px;

    line-height: 1.9;

    color: #182335;

    transition: 0.25s ease;
}

.ai-form textarea:focus {
    border-color: #c5a35d;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(197, 163, 93, 0.08);
}

.ai-form textarea::placeholder {
    color: #aaa49a;
}

.ai-button {
    border: none;

    width: 100%;

    min-height: 48px;

    border-radius: 12px;

    background: #182335;

    color: #ffffff;

    font-family: inherit;
    font-size: 12px;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    transition: 0.25s ease;
}

.ai-button:hover {
    background: #26344a;

    transform: translateY(-1px);

    box-shadow:
        0 9px 22px rgba(24, 35, 53, 0.13);
}

.routine-card {
    margin-top: 17px;

    background: #ffffff;

    border-radius: 21px;

    padding: 26px;

    border: 1px solid rgba(24, 35, 53, 0.045);

    box-shadow:
        0 16px 45px rgba(24, 35, 53, 0.065);
}

.routine-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 13px;

    margin-bottom: 18px;
}

.routine-header h3 {
    color: #182335;
    font-size: 18px;
}

.routine-icon {
    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #eef3ec;
    color: #66815d;

    font-weight: bold;
}

.routine-content {
    background: #faf9f6;

    border: 1px solid #eeeae2;

    border-radius: 14px;

    padding: 19px;

    overflow-x: auto;
}

.routine-content pre {
    white-space: pre-wrap;

    word-wrap: break-word;

    margin: 0;

    font-family: Tahoma, Arial, sans-serif;

    font-size: 12px;

    line-height: 2;

    color: #303947;

    text-align: right;
}

.routine-note {
    margin-top: 14px;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 11px 13px;

    background: #f7f2e7;

    border-radius: 10px;
}

.routine-note span {
    color: #b08e4a;
    font-size: 13px;
}

.routine-note p {
    color: #817b71;
    font-size: 10px;
}

.ai-back {
    margin-top: 17px;
    text-align: center;
}


/* =========================================================
   صفحات تسجيل الدخول وإنشاء الحساب
========================================================= */

.auth-page {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

.auth-brand {
    width: 100%;

    padding: 22px 5%;

    display: flex;
    align-items: center;

    gap: 11px;
}

.auth-brand h1 {
    font-size: 22px;
    margin-bottom: 4px;
    color: #182335;
}

.auth-brand span {
    font-size: 9px;
    color: #7b7469;
}

.auth-container {
    width: min(420px, 92%);

    margin: 25px auto 40px;

    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;

    background: #ffffff;

    border-radius: 22px;

    padding: 32px 29px;

    border: 1px solid rgba(24, 35, 53, 0.045);

    box-shadow:
        0 18px 52px rgba(24, 35, 53, 0.075);

    text-align: center;
}

.auth-icon {
    width: 54px;
    height: 54px;

    margin: 0 auto 16px;

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #202e43,
            #182335
        );

    color: #d4b36a;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 22px;
    font-weight: bold;

    box-shadow:
        0 11px 27px rgba(24, 35, 53, 0.11);
}

.auth-card .section-label {
    margin-bottom: 5px;
}

.auth-card h2 {
    color: #182335;

    font-size: 25px;

    margin-bottom: 8px;
}

.auth-description {
    color: #817b71;

    font-size: 12px;

    line-height: 1.8;

    margin-bottom: 24px;
}

.auth-form {
    display: flex;

    flex-direction: column;

    gap: 15px;

    text-align: right;
}

.auth-field {
    display: flex;

    flex-direction: column;

    gap: 6px;
}

.auth-field label {
    color: #4f5662;

    font-size: 11px;

    font-weight: bold;
}

.auth-field input {
    width: 100%;

    height: 46px;

    border: 1px solid #e2ddd3;

    background: #faf9f6;

    border-radius: 11px;

    padding: 0 14px;

    outline: none;

    font-family: inherit;

    font-size: 12px;

    color: #182335;

    transition: 0.25s ease;
}

.auth-field input:focus {
    border-color: #c5a35d;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(197, 163, 93, 0.08);
}

.auth-field input::placeholder {
    color: #aaa49a;
}

.auth-button {
    width: 100%;

    min-height: 48px;

    margin-top: 3px;

    border: none;

    border-radius: 12px;

    background: #182335;

    color: #ffffff;

    font-family: inherit;

    font-size: 12px;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    transition: 0.25s ease;
}

.auth-button span {
    color: #d4b36a;
}

.auth-button:hover {
    background: #26344a;

    transform: translateY(-1px);

    box-shadow:
        0 9px 22px rgba(24, 35, 53, 0.13);
}

.auth-divider {
    display: flex;

    align-items: center;

    gap: 11px;

    margin: 22px 0 18px;

    color: #aaa49a;

    font-size: 10px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";

    height: 1px;

    flex: 1;

    background: #eeeae2;
}

.auth-switch {
    color: #817b71;
    font-size: 11px;
}

.auth-switch a {
    color: #a18752;

    text-decoration: none;

    font-weight: bold;

    margin-right: 4px;

    transition: 0.2s ease;
}

.auth-switch a:hover {
    color: #7d6539;
}

.auth-back {
    display: inline-block;

    margin-top: 19px;

    color: #8c867c;

    text-decoration: none;

    font-size: 10px;

    transition: 0.2s ease;
}

.auth-back:hover {
    color: #a18752;
}


/* =========================================================
   الصفحة الافتتاحية
   مِرْقاة
========================================================= */

.landing-page {
    --mouse-x: 0;
    --mouse-y: 0;

    min-height: 100vh;

    width: 100%;

    margin: 0;

    overflow: hidden;

    position: relative;

    background:
        radial-gradient(
            circle at 50% 42%,
            #2b3d58 0%,
            #18263a 32%,
            #101a29 65%,
            #070e18 100%
        );

    color: #ffffff;
}


/* =========================================================
   طبقة الخلفية
========================================================= */

.landing-background {
    position: fixed;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 0;
}


/* =========================================================
   شبكة مستقبلية
========================================================= */

.background-grid {
    position: absolute;

    inset: -30%;

    opacity: 0.09;

    background-image:
        linear-gradient(
            rgba(212, 179, 106, 0.32) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(212, 179, 106, 0.32) 1px,
            transparent 1px
        );

    background-size: 80px 80px;

    transform:
        perspective(600px)
        rotateX(62deg)
        translateY(18%);

    transform-origin: center bottom;

    animation:
        gridMove 20s linear infinite;
}

@keyframes gridMove {

    0% {
        transform:
            perspective(600px)
            rotateX(62deg)
            translateY(18%);
    }

    50% {
        transform:
            perspective(600px)
            rotateX(62deg)
            translateY(9%);
    }

    100% {
        transform:
            perspective(600px)
            rotateX(62deg)
            translateY(0%);
    }
}


/* =========================================================
   الإضاءات
========================================================= */

.background-glow {
    position: absolute;

    border-radius: 50%;

    filter: blur(100px);

    pointer-events: none;

    transition:
        transform 1.5s ease-out;
}

.glow-one {
    width: 500px;
    height: 500px;

    background: #c5a35d;

    top: -220px;
    right: -150px;

    opacity: 0.22;

    transform:
        translate(
            calc(var(--mouse-x) * -25px),
            calc(var(--mouse-y) * -20px)
        );

    animation:
        glowPulse 7s ease-in-out infinite;
}

.glow-two {
    width: 600px;
    height: 600px;

    background: #29466a;

    bottom: -300px;
    left: -250px;

    opacity: 0.30;

    transform:
        translate(
            calc(var(--mouse-x) * 30px),
            calc(var(--mouse-y) * 25px)
        );

    animation:
        glowPulse 9s ease-in-out infinite reverse;
}

.glow-three {
    width: 300px;
    height: 300px;

    background: #d4b36a;

    top: 42%;
    left: 47%;

    opacity: 0.09;

    animation:
        centerGlow 5s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

@keyframes centerGlow {

    0%,
    100% {
       opacity: 0 .06;
        transform: scale(0.9);
    }

    50% {
        opacity: 0.13;
        transform: scale(1.15);
    }
}


/* =========================================================
   الدوائر العائمة
========================================================= */

.floating-orb {
    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(
        212,
        179,
        106,
        0.20
    );

    box-shadow:
        0 0 50px
        rgba(212, 179, 106, 0.08);
}

.orb-one {
    width: 260px;
    height: 260px;

    top: 10%;
    left: 7%;

    animation:
        floatingOne 10s ease-in-out infinite;
}

.orb-two {
    width: 170px;
    height: 170px;

    bottom: 14%;
    right: 9%;

    animation:
        floatingTwo 8s ease-in-out infinite;
}

.orb-one::after {
    content: "";

    position: absolute;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #d4b36a;

    box-shadow:
        0 0 25px #d4b36a;

    top: 15%;
    right: 18%;

    animation:
        dotPulse 3s ease-in-out infinite;
}

@keyframes floatingOne {

    0%,
    100% {
        transform:
            translate(0, 0)
            rotate(0deg)
            scale(1);
    }

    50% {
        transform:
            translate(30px, -25px)
            rotate(15deg)
            scale(1.06);
    }
}

@keyframes floatingTwo {

    0%,
    100% {
        transform:
            translate(0, 0)
            scale(1);
    }

    50% {
        transform:
            translate(-25px, 25px)
            scale(1.08);
    }
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.4);
    }
}


/* =========================================================
   طبقة لمعان الشاشة
========================================================= */

.landing-page::before {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    z-index: 1;

    background:
        radial-gradient(
            circle at center,
            transparent 20%,
            rgba(0, 0, 0, 0.18) 100%
        );
}


/* =========================================================
   محتوى الصفحة
========================================================= */

.landing-content {
    position: relative;

    z-index: 2;

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 35px 20px;
}


/* =========================================================
   شعار البرنامج
========================================================= */

.landing-symbol {
    width: 60px;
    height: 60px;

    border-radius: 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #ead08e,
            #b9944d
        );

    color: #182335;

    font-size: 25px;
    font-weight: bold;

    box-shadow:
        0 18px 50px
        rgba(0, 0, 0, 0.28),

        0 0 45px
        rgba(212, 179, 106, 0.20);

    opacity: 0;

    transform:
        translateY(30px)
        scale(0.75);

    transition:
        1.2s cubic-bezier(
            .16,
            1,
            .3,
            1
        );
}

.landing-loaded .landing-symbol {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   اسم البرنامج
========================================================= */

.landing-title {
    margin-top: 24px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #ffffff;

    font-size:
        clamp(
            60px,
            9vw,
            105px
        );

    font-weight: 500;

    letter-spacing: 2px;

    line-height: 1;

    text-shadow:
        0 0 30px
        rgba(255, 255, 255, 0.08),

        0 20px 60px
        rgba(0, 0, 0, 0.40);
}

.title-letter {
    display: inline-block;

    opacity: 0;

    filter: blur(14px);

    transform:
        translateY(45px)
        scale(0.72)
        rotateX(25deg);

    animation:
        titleReveal
        1.25s
        cubic-bezier(
            .16,
            1,
            .3,
            1
        )
        forwards;
}

.title-letter:nth-child(1) {
    animation-delay: 0.20s;
}

.title-letter:nth-child(2) {
    animation-delay: 0.32s;
}

.title-letter:nth-child(3) {
    animation-delay: 0.44s;
}

.title-letter:nth-child(4) {
    animation-delay: 0.56s;
}

.title-letter:nth-child(5) {
    animation-delay: 0.68s;
}

.title-letter:nth-child(6) {
    animation-delay: 0.80s;
}

.title-letter:nth-child(7) {
    animation-delay: 0.92s;
}

.title-letter:nth-child(8) {
    animation-delay: 1.04s;
}

@keyframes titleReveal {

    0% {
        opacity: 0;

        filter: blur(14px);

        transform:
            translateY(45px)
            scale(0.72)
            rotateX(25deg);
    }

    65% {
        opacity: 1;

        filter: blur(0);

        transform:
            translateY(-4px)
            scale(1.04)
            rotateX(0);
    }

    100% {
        opacity: 1;

        filter: blur(0);

        transform:
            translateY(0)
            scale(1)
            rotateX(0);
    }
}


/* =========================================================
   الخط الذهبي
========================================================= */

.landing-line {
    width: 0;

    height: 1px;

    margin-top: 25px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #d4b36a,
            transparent
        );

    animation:
        lineReveal
        1.3s
        ease
        1.45s
        forwards;

    position: relative;
}

.landing-line span {
    display: block;

    width: 6px;
    height: 6px;

    margin:
        -3px auto 0;

    border-radius: 50%;

    background: #d4b36a;

    box-shadow:
        0 0 18px
        rgba(212, 179, 106, 0.9);
}

@keyframes lineReveal {

    0% {
        width: 0;
        opacity: 0;
    }

    100% {
        width: 180px;
        opacity: 1;
    }
}


/* =========================================================
   العبارة
========================================================= */

.landing-subtitle {
    margin-top: 19px;

    color: #d4b36a;

    font-size: 14px;

    letter-spacing: 0.6px;

    opacity: 0;

    transform: translateY(18px);

    animation:
        fadeUp
        1s
        ease
        1.65s
        forwards;
}

.landing-description {
    margin-top: 13px;

    max-width: 540px;

    color: #b8c0cb;

    font-size: 12px;

    line-height: 1.9;

    opacity: 0;

    transform: translateY(18px);

    animation:
        fadeUp
        1s
        ease
        1.85s
        forwards;
}

@keyframes fadeUp {

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================================================
   أزرار البداية
========================================================= */

.landing-actions {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 28px;

    opacity: 0;

    transform:
        translateY(18px);

    animation:
        fadeUp
        1s
        ease
        2.05s
        forwards;
}

.landing-primary {
    min-width: 170px;

    padding: 14px 20px;

    border-radius: 13px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 13px;

    text-decoration: none;

    background:
        linear-gradient(
            135deg,
            #ead08e,
            #b28d49
        );

    color: #182335;

    font-size: 12px;

    font-weight: bold;

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.25);

    transition:
        0.3s ease;
}

.landing-primary:hover {
    transform:
        translateY(-4px)
        scale(1.02);

    box-shadow:
        0 20px 55px
        rgba(0, 0, 0, 0.34);
}

.button-arrow {
    font-size: 17px;

    transition:
        transform 0.3s ease;
}

.landing-primary:hover
.button-arrow {
    transform:
        translateX(-6px);
}

.landing-secondary {
    padding: 13px 21px;

    border-radius: 13px;

    text-decoration: none;

    color: #dfe3e8;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.15
        );

    background:
        rgba(
            255,
            255,
            255,
            0.045
        );

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    font-size: 12px;

    transition:
        0.3s ease;
}

.landing-secondary:hover {
    background:
        rgba(
            255,
            255,
            255,
            0.09
        );

    border-color:
        rgba(
            212,
            179,
            106,
            0.4
        );

    transform:
        translateY(-4px);
}


/* =========================================================
   المزايا
========================================================= */

.landing-features {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 16px;

    margin-top: 46px;

    color: #8e99a8;

    font-size: 10px;

    opacity: 0;

    animation:
        fadeUp
        1s
        ease
        2.3s
        forwards;
}

.landing-feature {
    display: flex;

    align-items: center;

    gap: 6px;
}

.feature-icon {
    color: #c5a35d;

    font-size: 12px;
}

.feature-divider {
    width: 1px;

    height: 14px;

    background:
        rgba(
            255,
            255,
            255,
            0.12
        );
}


/* =========================================================
   التذييل
========================================================= */

.landing-footer {
    position: fixed;

    z-index: 3;

    bottom: 19px;

    left: 0;
    right: 0;

    display: flex;

    justify-content: center;

    gap: 7px;

    color: #697586;

    font-size: 9px;
}

.landing-footer span:first-child {
    color: #a18752;

    font-weight: bold;
}


/* =========================================================
   تأثير دخول الصفحة
========================================================= */

.landing-page {
    animation:
        pageFadeIn
        1.2s
        ease
        both;
}

@keyframes pageFadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* =========================================================
   الجوال — الموقع العام
========================================================= */

@media (max-width: 700px) {

    html,
    body {
        width: 100%;
        min-height: 100%;
        overflow-x: hidden;
    }


    /* =====================================================
       الشريط العلوي
    ===================================================== */

    .topbar {
        min-height: auto;

        flex-direction: column;

        align-items: center;

        padding: 14px 15px;

        gap: 11px;
    }

    .brand {
        gap: 9px;
    }

    .brand-mark {
        width: 39px;
        height: 39px;

        border-radius: 12px;

        font-size: 18px;
    }

    .brand h1 {
        font-size: 20px;
    }

    .brand span {
        font-size: 8px;
    }


    /* الأيقونات في الجوال */

    .navigation {
        width: 100%;

        justify-content: center;

        gap: 5px;
    }

    .navigation a {
        width: 38px;
        height: 38px;

        border-radius: 12px;
    }

    .navigation a::before {
        font-size: 16px;
    }


    /* =====================================================
       المحتوى
    ===================================================== */

    .container {
        width: 92%;

        margin:
            26px auto;
    }

    .main-card {
        padding: 20px;

        border-radius: 18px;
    }

    .welcome {
        margin-bottom: 20px;
    }

    .welcome h2 {
        font-size: 25px;
    }

    .welcome-text {
        font-size: 13px;
    }


    /* =====================================================
       إضافة المهمة
    ===================================================== */

    .task-form {
        flex-direction: column;

        gap: 8px;
    }

    .task-form input {
        width: 100%;

        height: 45px;
    }

    .task-form input[type="time"] {
        width: 100%;

        min-width: 0;

        height: 45px;
    }

    .task-form button {
        width: 100%;

        height: 45px;
    }


    /* =====================================================
       المهام
    ===================================================== */

    .task-item {
        padding: 11px;

        gap: 8px;

        border-radius: 13px;
    }

    .task-info {
        gap: 9px;
    }

    .step-number {
        width: 30px;
        height: 30px;

        flex-basis: 30px;

        font-size: 11px;
    }

    .task-name strong {
        font-size: 12px;
    }

    .task-name span {
        font-size: 9px;
    }

    .complete-button,
    .delete-button {
        width: 30px;
        height: 30px;

        border-radius: 8px;
    }


    /* =====================================================
       رُقيّ
    ===================================================== */

    .ruqi-card {
        flex-wrap: wrap;

        padding: 17px;
    }

    .ruqi-content h3 {
        font-size: 14px;
    }

    .ruqi-content p {
        font-size: 9px;
    }

    .ruqi-button {
        width: 100%;

        text-align: center;

        padding: 10px;
    }


    /* =====================================================
       الإحصائيات
    ===================================================== */

    .stats-grid {
        grid-template-columns: 1fr;

        gap: 11px;
    }

    .page-header h1 {
        font-size: 25px;
    }

    .progress-section {
        padding: 20px;

        border-radius: 18px;
    }

    .progress-heading {
        align-items: flex-start;
    }

    .progress-percentage {
        font-size: 20px;
    }


    /* =====================================================
       رُقي / AI
    ===================================================== */

    .ai-hero h2 {
        font-size: 25px;
    }

    .ai-hero p {
        font-size: 12px;

        line-height: 1.8;
    }

    .ai-card,
    .routine-card {
        padding: 20px;

        border-radius: 18px;
    }

    .ai-form textarea {
        min-height: 175px;
    }

    .routine-content {
        padding: 15px;
    }

    .routine-content pre {
        font-size: 11px;
    }


    /* =====================================================
       صفحات الحساب والتسجيل
    ===================================================== */

    .auth-brand {
        padding: 15px;
    }

    .auth-container {
        width: 92%;

        margin-top: 15px;
    }

    .auth-card {
        padding: 25px 19px;

        border-radius: 19px;
    }

    .auth-card h2 {
        font-size: 23px;
    }


    /* =====================================================
       الصفحة الافتتاحية — الجوال
    ===================================================== */

    .landing-content {
        min-height: 100svh;

        width: 100%;

        padding:
            clamp(18px, 5vh, 30px)
            clamp(14px, 5vw, 22px)
            68px;

        justify-content: center;
    }


    /* شعار مِرْقاة */

    .landing-symbol {
        width: clamp(48px, 14vw, 58px);

        height: clamp(48px, 14vw, 58px);

        border-radius:
            clamp(14px, 4vw, 17px);

        font-size:
            clamp(20px, 6vw, 24px);

        box-shadow:
            0 14px 35px
            rgba(0, 0, 0, 0.24),

            0 0 32px
            rgba(212, 179, 106, 0.18);
    }


    /* اسم مِرْقاة */

    .landing-title {
        width: 100%;

        max-width: 100%;

        margin-top:
            clamp(16px, 4vw, 21px);

        font-size:
            clamp(42px, 14vw, 62px);

        letter-spacing: 0;

        line-height: 1.05;

        white-space: nowrap;

        text-align: center;
    }


    /* الخط */

    .landing-line {
        margin-top:
            clamp(15px, 4vw, 20px);
    }

    @keyframes landingMobileLine {

        from {
            width: 0;
            opacity: 0;
        }

        to {
            width:
                clamp(
                    110px,
                    34vw,
                    145px
                );

            opacity: 1;
        }
    }

    .landing-line {
        animation:
            landingMobileLine
            1.1s
            ease
            1.35s
            forwards;
    }


    /* العبارة */

    .landing-subtitle {
        width: 100%;

        max-width: 92vw;

        margin-top:
            clamp(12px, 3vw, 17px);

        font-size:
            clamp(12px, 3.3vw, 14px);

        line-height: 1.7;

        letter-spacing: 0;
    }


    /* الوصف */

    .landing-description {
        width:
            min(
                88vw,
                330px
            );

        margin-top:
            clamp(9px, 2.5vw, 13px);

        font-size:
            clamp(10px, 2.8vw, 12px);

        line-height: 1.85;
    }


    /* الأزرار */

    .landing-actions {
        width:
            min(
                88vw,
                320px
            );

        margin-top:
            clamp(20px, 5vw, 26px);

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap:
            clamp(8px, 2.5vw, 10px);
    }

    .landing-primary,
    .landing-secondary {
        width: 100%;

        min-width: 0;

        border-radius:
            clamp(
                12px,
                3.5vw,
                14px
            );

        text-align: center;
    }

    .landing-primary {
        min-height:
            clamp(
                48px,
                13vw,
                52px
            );

        padding:
            12px
            17px;

        font-size:
            clamp(
                12px,
                3.3vw,
                13px
            );

        gap:
            clamp(
                8px,
                2.5vw,
                12px
            );
    }

    .landing-secondary {
        min-height:
            clamp(
                45px,
                12vw,
                49px
            );

        padding:
            11px
            17px;

        font-size:
            clamp(
                11px,
                3vw,
                12px
            );
    }

    .button-arrow {
        font-size:
            clamp(
                15px,
                5vw,
                18px
            );
    }


    /* =====================================================
       المزايا
    ===================================================== */

    .landing-features {
        width:
            min(
                90vw,
                330px
            );

        max-width: 330px;

        margin-top:
            clamp(
                24px,
                7vw,
                32px
            );

        display: flex;

        flex-wrap: wrap;

        align-items: center;

        justify-content: center;

        gap:
            8px
            clamp(
                11px,
                3.5vw,
                17px
            );

        font-size:
            clamp(
                8px,
                2.6vw,
                10px
            );

        line-height: 1.5;
    }

    .landing-feature {
        gap:
            clamp(
                4px,
                1.5vw,
                6px
            );
    }

    .feature-icon {
        font-size:
            clamp(
                10px,
                3.3vw,
                13px
            );
    }

    .feature-divider {
        display: none;
    }


    /* =====================================================
       التذييل
    ===================================================== */

    .landing-footer {
        position: absolute;

        bottom:
            clamp(
                10px,
                3vw,
                15px
            );

        left: 0;
        right: 0;

        width: 100%;

        padding:
            0
            12px;

        display: flex;

        justify-content: center;

        gap:
            clamp(
                5px,
                2vw,
                7px
            );

        font-size:
            clamp(
                7px,
                2.1vw,
                9px
            );

        text-align: center;
    }


    /* =====================================================
       الدوائر
    ===================================================== */

    .orb-one {
        width:
            clamp(
                120px,
                38vw,
                175px
            );

        height:
            clamp(
                120px,
                38vw,
                175px
            );

        top: 13%;

        left:
            clamp(
                -105px,
                -18vw,
                -45px
            );
    }

    .orb-two {
        width:
            clamp(
                85px,
                28vw,
                120px
            );

        height:
            clamp(
                85px,
                28vw,
                120px
            );

        bottom: 13%;

        right:
            clamp(
                -65px,
                -14vw,
                -25px
            );
    }
}


/* =========================================================
   شاشات صغيرة جدًا
========================================================= */

@media (max-width: 380px) {

    .topbar {
        padding-left: 10px;
        padding-right: 10px;
    }

    .navigation {
        gap: 3px;
    }

    .navigation a {
        width: 35px;
        height: 35px;
    }

    .navigation a::before {
        font-size: 15px;
    }

    .container {
        width: 94%;
    }

    .main-card {
        padding: 17px;
    }

    .landing-title {
        font-size: 40px;
    }
}
/* =========================================================
   مِرْقاة — الجوال
   تحسين الشبكة والإضاءات
========================================================= */

@media (max-width: 700px) {

    /* =====================================================
       الشبكة
    ===================================================== */

    .background-grid {
        background-size: clamp(42px, 13vw, 55px);
        opacity: 0.055;
    }

    /* =====================================================
       الإضاءات
    ===================================================== */

    .glow-one {
        width: clamp(260px, 75vw, 340px);
        height: clamp(260px, 75vw, 340px);
        top: clamp(-170px, -32vw, -110px);
        right: clamp(-170px, -32vw, -95px);
        opacity: 0.16;
    }

    .glow-two {
        width: clamp(290px, 82vw, 380px);
        height: clamp(290px, 82vw, 380px);
        bottom: clamp(-190px, -34vw, -120px);
        left: clamp(-210px, -38vw, -100px);
        opacity: 0.21;
    }

    .glow-three {
        width: clamp(170px, 48vw, 220px);
        height: clamp(170px, 48vw, 220px);
        top: 40%;
        left: 50%;
        opacity: 0.055;
        transform: translate(-50%, -50%);
    }

    /* =====================================================
       زر الوضع الليلي
    ===================================================== */

    .theme-toggle {
        width: 38px;
        height: 38px;
        margin: 0 auto;
    }
}


/* =========================================================
   الجوالات الصغيرة جدًا
========================================================= */

@media (max-width: 380px) {

    .landing-content {
        min-height: 100svh;
        width: 100%;
        padding: 16px 14px 64px;
    }

    .landing-symbol {
        width: 50px;
        height: 50px;
        border-radius: 15px;
        font-size: 21px;
    }

    .landing-title {
        font-size: clamp(38px, 13.5vw, 46px);
        margin-top: 16px;
    }

    .landing-line {
        margin-top: 15px;
    }

    .landing-subtitle {
        margin-top: 13px;
        font-size: 12px;
    }

    .landing-description {
        width: 88vw;
        max-width: 285px;
        font-size: 10px;
        line-height: 1.8;
    }

    .landing-actions {
        width: 90vw;
        max-width: 295px;
        margin-top: 20px;
        gap: 8px;
    }

    .landing-primary {
        min-height: 47px;
        font-size: 12px;
    }

    .landing-secondary {
        min-height: 44px;
        font-size: 11px;
    }

    .landing-features {
        width: 92vw;
        max-width: 290px;
        margin-top: 24px;
        gap: 7px 11px;
        font-size: 8px;
    }

    .landing-feature {
        gap: 4px;
    }

    .feature-icon {
        font-size: 10px;
    }

    .landing-footer {
        bottom: 11px;
        font-size: 7px;
    }

    .orb-one {
        width: 125px;
        height: 125px;
        left: -75px;
    }

    .orb-two {
        width: 90px;
        height: 90px;
        right: -42px;
    }
}


/* =========================================================
   منع الحركة المبالغ فيها على الأجهزة الضعيفة
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .landing-page,
    .background-grid,
    .background-glow,
    .floating-orb,
    .landing-symbol,
    .title-letter,
    .landing-line,
    .landing-subtitle,
    .landing-description,
    .landing-actions,
    .landing-features {
        animation: none !important;
        transition: none !important;
    }
}


/* =========================================================
   صفحة حسابي
========================================================= */

.account-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid rgba(24, 35, 53, 0.05);
    box-shadow:
        0 14px 40px rgba(24, 35, 53, 0.06);
}


/* =========================================================
   الملف الشخصي
========================================================= */

.account-profile {
    display: flex;
    align-items: center;
    gap: 17px;
    padding-bottom: 22px;
    border-bottom: 1px solid #eeeae2;
}

.account-avatar {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    background: #182335;
    color: #d4b36a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    box-shadow:
        0 10px 25px rgba(24, 35, 53, 0.12);
}

.account-label {
    display: block;
    color: #a18752;
    font-size: 11px;
    margin-bottom: 5px;
}

.account-profile h2 {
    color: #182335;
    font-size: 22px;
}


/* =========================================================
   معلومات الحساب
========================================================= */

.account-info {
    margin-top: 20px;
}

.account-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.account-info-item span {
    color: #817b71;
    font-size: 12px;
}

.account-info-item strong {
    color: #3a4350;
    font-size: 12px;
}


/* =========================================================
   إحصائيات الحساب
========================================================= */

.account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.account-stat {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 15px;
    text-align: center;
    border: 1px solid rgba(24, 35, 53, 0.05);
    box-shadow:
        0 12px 30px rgba(24, 35, 53, 0.05);
}

.account-stat span {
    display: block;
    color: #817b71;
    font-size: 11px;
    margin-bottom: 8px;
}

.account-stat strong {
    display: block;
    color: #a18752;
    font-size: 27px;
}


/* =========================================================
   عناوين الأقسام
========================================================= */

.account-section-title {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
}

.account-section-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f4efe4;
    color: #b08e4a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.account-section-title h3 {
    color: #182335;
    font-size: 17px;
    margin-bottom: 4px;
}

.account-section-title p {
    color: #817b71;
    font-size: 11px;
}


/* =========================================================
   النماذج
========================================================= */

.account-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.account-form label {
    color: #4f5662;
    font-size: 11px;
    font-weight: bold;
    margin-top: 5px;
}

.account-form input {
    width: 100%;
    height: 48px;
    border: 1px solid #e2ddd3;
    background: #faf9f6;
    border-radius: 12px;
    padding: 0 14px;
    outline: none;
    font-family: inherit;
    color: #182335;
    transition: 0.25s ease;
}

.account-form input:focus {
    border-color: #c5a35d;
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(197, 163, 93, 0.08);
}

.account-form button {
    width: 100%;
    min-height: 48px;
    margin-top: 10px;
    border: none;
    border-radius: 12px;
    background: #182335;
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: 0.25s ease;
}

.account-form button:hover {
    background: #26344a;
    transform: translateY(-1px);
    box-shadow:
        0 10px 25px rgba(24, 35, 53, 0.12);
}


/* =========================================================
   رسالة الخطأ
========================================================= */

.account-error {
    background: #f6eeee;
    border: 1px solid #ead5d5;
    color: #9a6666;
    border-radius: 12px;
    padding: 13px 15px;
    margin-bottom: 20px;
    font-size: 12px;
    text-align: center;
}


/* =========================================================
   تسجيل الخروج
========================================================= */

.account-logout {
    text-align: center;
    margin: 25px 0 10px;
}

.account-logout a {
    display: inline-block;
    text-decoration: none;
    color: #a66c6c;
    background: #f6eeee;
    padding: 12px 20px;
    border-radius: 11px;
    font-size: 12px;
    transition: 0.25s ease;
}

.account-logout a:hover {
    background: #f0dddd;
    transform: translateY(-2px);
}


/* =========================================================
   حسابي — الجوال
========================================================= */

@media (max-width: 700px) {

    .account-card {
        padding: 20px;
        border-radius: 19px;
        margin-bottom: 16px;
    }

    .account-profile {
        gap: 13px;
        padding-bottom: 18px;
    }

    .account-avatar {
        width: 52px;
        height: 52px;
        border-radius: 15px;
        font-size: 20px;
    }

    .account-profile h2 {
        font-size: 19px;
    }

    .account-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .account-stat {
        padding: 17px 14px;
        border-radius: 15px;
    }

    .account-stat strong {
        font-size: 24px;
    }

    .account-info-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .account-section-title {
        gap: 10px;
        margin-bottom: 18px;
    }

    .account-section-icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }
}


/* =========================================================
   زر الوضع الليلي
========================================================= */

.theme-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid #e2ddd3;
    border-radius: 10px;
    background: #faf9f6;
    color: #a18752;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 17px;
    cursor: pointer;
    transition: 0.25s ease;
}

.theme-toggle:hover {
    background: #eee7d9;
    transform: translateY(-1px);
}


/* =========================================================
   مِرْقاة — الوضع الليلي العام
========================================================= */

body.dark-mode {
    background: #0f1724;
    color: #e8ebef;
}


/* =========================================================
   الشريط العلوي — ذهبي على الأطراف فقط
========================================================= */

body.dark-mode .topbar {
    position: relative;
    z-index: 1000;
    background: rgba(15, 23, 36, 0.88);
    border-bottom: 1px solid rgba(212, 179, 106, 0.18);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.20);
    overflow: visible !important;
}

body.dark-mode .topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(212, 179, 106, 0.45),
            transparent 12%,
            transparent 88%,
            rgba(212, 179, 106, 0.45)
        );
    opacity: 0.8;
}

body.dark-mode .topbar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(212, 179, 106, 0.65),
            transparent
        );
    opacity: 0.7;
}

body.dark-mode .topbar > * {
    position: relative;
    z-index: 1;
}


/* =========================================================
   الهوية والتنقل
========================================================= */

body.dark-mode .brand h1 {
    color: #f4f5f7;
}

body.dark-mode .brand span {
    color: #929baa;
}

body.dark-mode .navigation {
    position: relative;
    z-index: 1001;
    overflow: visible !important;
}

body.dark-mode .navigation a {
    color: #b7bec8;
}

body.dark-mode .navigation a:hover {
    background: #1b2738;
    color: #ffffff;
}


/* =========================================================
   زر الوضع
========================================================= */

body.dark-mode .theme-toggle {
    background: #1b2738;
    border-color: rgba(212, 179, 106, 0.25);
    color: #d4b36a;
}

body.dark-mode .theme-toggle:hover {
    background: #26344a;
}


/* =========================================================
   الصفحة الرئيسية
========================================================= */

body.dark-mode .welcome h2 {
    color: #f4f5f7;
}

body.dark-mode .welcome-text {
    color: #9ca5b2;
}

body.dark-mode .main-card {
    background: #172131;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.22);
}

body.dark-mode .card-header h3,
body.dark-mode .tasks-title h3 {
    color: #f0f2f5;
}

body.dark-mode .divider {
    background: #273344;
}

body.dark-mode .progress-bar {
    background: #273344;
}

body.dark-mode .progress-message {
    color: #929baa;
}

body.dark-mode .task-count {
    background: #222d3c;
    color: #d4b36a;
}


/* =========================================================
   نموذج إضافة المهمة
========================================================= */

body.dark-mode .task-form input,
body.dark-mode .task-form select {
    background: #111b29;
    border-color: #2b3849;
    color: #e8ebef;
}

body.dark-mode .task-form input::placeholder {
    color: #707b89;
}

body.dark-mode .task-form input:focus,
body.dark-mode .task-form select:focus {
    background: #172131;
    border-color: #c5a35d;
}


/* =========================================================
   المهام
========================================================= */

body.dark-mode .task-item {
    border-color: #293646;
    background: transparent;
}

body.dark-mode .task-item:hover {
    border-color: #6d5a35;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.15);
}

body.dark-mode .step-number {
    background: #222d3c;
    color: #d4b36a;
}

body.dark-mode .task-name strong {
    color: #e4e7eb;
}

body.dark-mode .task-name s {
    color: #747e8c;
}

body.dark-mode .task-name span {
    color: #d4b36a;
}


/* =========================================================
   الحالة الفارغة
========================================================= */

body.dark-mode .empty-state {
    color: #8e98a6;
}

body.dark-mode .empty-icon {
    background: #222d3c;
    color: #d4b36a;
}

body.dark-mode .empty-state strong {
    color: #dce0e5;
}


/* =========================================================
   رُقيّ
========================================================= */

body.dark-mode .ruqi-card {
    background: #0c1420;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.25);
}

body.dark-mode .ruqi-content p {
    color: #9da7b4;
}

body.dark-mode .ruqi-button {
    background: #ead08e;
    color: #182335;
}

body.dark-mode .ruqi-button:hover {
    background: #ffffff;
}


/* =========================================================
   التذييل
========================================================= */

body.dark-mode footer {
    color: #6f7987;
}


/* =========================================================
   الإحصائيات
========================================================= */

body.dark-mode .page-header h1 {
    color: #f4f5f7;
}

body.dark-mode .subtitle {
    color: #929baa;
}

body.dark-mode .stat-card {
    background: #172131;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.22);
}

body.dark-mode .stat-card h3 {
    color: #929baa;
}

body.dark-mode .stat-card strong {
    color: #f0f2f5;
}

body.dark-mode .stat-card p {
    color: #b08e4a;
}

body.dark-mode .stat-icon {
    background: #222d3c;
    border-color: #344154;
    color: #d4b36a;
}

body.dark-mode .progress-section {
    background: #172131;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.22);
}

body.dark-mode .progress-heading h2 {
    color: #f0f2f5;
}

body.dark-mode .progress-text {
    color: #929baa;
}

body.dark-mode .back-button {
    background: #ead08e;
    color: #182335;
}

body.dark-mode .back-button:hover {
    background: #d4b36a;
}


/* =========================================================
   صفحة رُقيّ والذكاء الاصطناعي
========================================================= */

body.dark-mode .ai-hero h2 {
    color: #f4f5f7;
}

body.dark-mode .ai-hero p {
    color: #9ca5b2;
}

body.dark-mode .ai-card,
body.dark-mode .routine-card {
    background: #172131;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.22);
}

body.dark-mode .ai-card-header h3,
body.dark-mode .routine-header h3 {
    color: #f0f2f5;
}

body.dark-mode .ai-star {
    background: #222d3c;
    color: #d4b36a;
}

body.dark-mode .ai-form textarea {
    background: #111b29;
    border-color: #2b3849;
    color: #e8ebef;
}

body.dark-mode .ai-form textarea:focus {
    background: #172131;
    border-color: #c5a35d;
}

body.dark-mode .ai-form textarea::placeholder {
    color: #707b89;
}

body.dark-mode .routine-content {
    background: #111b29;
    border-color: #2b3849;
}

body.dark-mode .routine-content pre {
    color: #dce1e7;
}

body.dark-mode .routine-note {
    background: #222d3c;
}

body.dark-mode .routine-note p {
    color: #9ca5b2;
}


/* =========================================================
   تسجيل الدخول وإنشاء الحساب
========================================================= */

body.dark-mode .auth-brand h1 {
    color: #f4f5f7;
}

body.dark-mode .auth-brand span {
    color: #929baa;
}

body.dark-mode .auth-card {
    background: #172131;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.28);
}

body.dark-mode .auth-card h2 {
    color: #f4f5f7;
}

body.dark-mode .auth-description {
    color: #929baa;
}

body.dark-mode .auth-field label {
    color: #b7bec8;
}

body.dark-mode .auth-field input {
    background: #111b29;
    border-color: #2b3849;
    color: #e8ebef;
}

body.dark-mode .auth-field input::placeholder {
    color: #707b89;
}

body.dark-mode .auth-field input:focus {
    background: #172131;
    border-color: #c5a35d;
}

body.dark-mode .auth-divider {
    color: #707b89;
}

body.dark-mode .auth-divider::before,
body.dark-mode .auth-divider::after {
    background: #293646;
}

body.dark-mode .auth-switch {
    color: #929baa;
}

body.dark-mode .auth-back {
    color: #7f8997;
}


/* =========================================================
   حسابي — الوضع الليلي
========================================================= */

body.dark-mode .account-card,
body.dark-mode .account-stat {
    background: #172131;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.22);
}

body.dark-mode .account-profile {
    border-bottom-color: #293646;
}

body.dark-mode .account-profile h2 {
    color: #f4f5f7;
}

body.dark-mode .account-info-item span {
    color: #929baa;
}

body.dark-mode .account-info-item strong {
    color: #dce1e7;
}

body.dark-mode .account-stat span {
    color: #929baa;
}

body.dark-mode .account-stat strong {
    color: #d4b36a;
}

body.dark-mode .account-section-title h3 {
    color: #f0f2f5;
}

body.dark-mode .account-section-title p {
    color: #929baa;
}

body.dark-mode .account-section-icon {
    background: #222d3c;
    color: #d4b36a;
}

body.dark-mode .account-form label {
    color: #b7bec8;
}

body.dark-mode .account-form input {
    background: #111b29;
    border-color: #2b3849;
    color: #e8ebef;
}

body.dark-mode .account-form input:focus {
    background: #172131;
    border-color: #c5a35d;
}

body.dark-mode .account-error {
    background: #302024;
    border-color: #55343a;
    color: #d99a9a;
}


/* =========================================================
   جرس التنبيهات
========================================================= */

.notification-wrapper {
    position: relative;
    z-index: 1002;
    display: flex;
    align-items: center;
}

.notification-button {
    position: relative;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    cursor: pointer;
    border-radius: 50%;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.notification-button:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}


/* =========================================================
   رقم التنبيهات
========================================================= */

.notification-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 20px;
    background: #b79a63;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    display: none;
}


/* =========================================================
   نافذة التنبيهات
========================================================= */

.notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: auto;
    width: min(330px, calc(100vw - 24px));
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
    z-index: 99999;
}

.notification-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* =========================================================
   رأس نافذة التنبيهات
========================================================= */

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.notification-header strong {
    font-size: 15px;
}

.notification-header button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    color: #888;
}

.notification-header button:hover {
    color: #b79a63;
}


/* =========================================================
   قائمة التنبيهات
========================================================= */

.notification-list {
    max-height: 360px;
    overflow-y: auto;
}


/* =========================================================
   لا توجد تنبيهات
========================================================= */

.notification-empty {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #999;
    text-align: center;
}

.notification-empty span {
    font-size: 25px;
    opacity: 0.55;
}

.notification-empty p {
    margin: 0;
    font-size: 13px;
}


/* =========================================================
   التنبيه
========================================================= */

.notification-item {
    display: flex;
    gap: 12px;
    padding: 15px 18px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.notification-item:hover {
    background: rgba(0, 0, 0, 0.025);
}

.notification-unread {
    background: rgba(183, 154, 99, 0.07);
}

.notification-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(183, 154, 99, 0.12);
}

.notification-content {
    min-width: 0;
}

.notification-content strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.notification-content p {
    margin: 0;
    font-size: 12px;
    color: #777;
    line-height: 1.6;
}

.notification-content small {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    color: #aaa;
}


/* =========================================================
   التنبيهات — الوضع الليلي
========================================================= */

body.dark-mode .notification-panel {
    background: #171f2d;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.4);
}

body.dark-mode .notification-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .notification-header strong {
    color: #ffffff;
}

body.dark-mode .notification-header button {
    color: #aaa;
}

body.dark-mode .notification-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .notification-unread {
    background: rgba(183, 154, 99, 0.10);
}

body.dark-mode .notification-content strong {
    color: #ffffff;
}

body.dark-mode .notification-content p {
    color: #aaa;
}

body.dark-mode .notification-content small {
    color: #707b89;
}

body.dark-mode .notification-empty {
    color: #aaa;
}

body.dark-mode .notification-button:hover {
    background: rgba(255, 255, 255, 0.07);
}


/* =========================================================
   إصلاح ظهور نافذة التنبيهات
========================================================= */

.topbar,
.navigation {
    overflow: visible !important;
}


/* =========================================================
   إعدادات الحساب
========================================================= */

.settings-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
}

.settings-option strong {
    display: block;
    margin-bottom: 5px;
}

.settings-option p {
    margin: 0;
    opacity: 0.7;
    font-size: 14px;
}

.settings-sub-option {
    padding-right: 25px;
    opacity: 0.95;
}


/* =========================================================
   مفتاح الإعدادات
========================================================= */

.settings-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    min-width: 52px;
    height: 28px;
    cursor: pointer;
}

.settings-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.settings-switch span {
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background: #d6d6d6;
    transition: 0.25s;
}

.settings-switch span::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    right: 3px;
    top: 3px;
    border-radius: 50%;
    background: #ffffff;
    transition: 0.25s;
}

.settings-switch input:checked + span {
    background: #222;
}

.settings-switch input:checked + span::before {
    transform: translateX(-24px);
}


/* =========================================================
   زر حفظ الحساب
========================================================= */

.account-save-button {
    margin-top: 20px;
    width: 100%;
    min-height: 48px;
    padding: 13px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* =========================================================
   انتقال موحد للوضع الليلي
========================================================= */

body,
.topbar,
.main-card,
.task-item,
.stat-card,
.progress-section,
.ai-card,
.routine-card,
.account-card,
.account-stat,
.auth-card,
.task-form input,
.task-form select,
.auth-field input,
.account-form input,
.notification-panel {
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================================================
   إعدادات الحساب — الجوال
========================================================= */

@media (max-width: 700px) {

    .settings-option {
        gap: 14px;
        padding: 15px 0;
    }

    .settings-option p {
        font-size: 12px;
        line-height: 1.7;
    }

    .settings-sub-option {
        padding-right: 15px;
    }

    .settings-switch {
        width: 48px;
        min-width: 48px;
        height: 26px;
    }

    .settings-switch span::before {
        width: 20px;
        height: 20px;
        right: 3px;
        top: 3px;
    }

    .settings-switch input:checked + span::before {
        transform: translateX(-22px);
    }

    .account-save-button {
        min-height: 46px;
        font-size: 13px;
    }

    /* نافذة التنبيهات على الجوال */
    .notification-panel {
        position: fixed;
        top: 70px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        border-radius: 17px;
    }
}

/* =========================================
   حذف الحساب
========================================= */

.account-danger {
    margin-top: 30px;
    padding: 28px;
    border: 1px solid rgba(160, 80, 80, 0.20);
    border-radius: 22px;
    background: rgba(255, 250, 250, 0.78);
    box-shadow:
        0 12px 35px rgba(80, 50, 50, 0.06);
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.delete-account-button {
    width: 100%;
    margin-top: 22px;
    padding: 14px 20px;
    border: 1px solid rgba(150, 70, 70, 0.30);
    border-radius: 14px;
    background: transparent;
    color: #9b4d4d;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.delete-account-button:hover {
    background: #9b4d4d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(155, 77, 77, 0.18);
}


/* =========================================
   نافذة حذف الحساب
========================================= */

.delete-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 18, 17, 0.48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.delete-modal-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =========================================
   البطاقة المنبثقة
========================================= */

.delete-modal {
    position: relative;
    width: min(460px, 100%);
    padding: 36px 30px 30px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(180, 160, 140, 0.22);
    box-shadow:
        0 30px 80px rgba(30, 25, 20, 0.22);
    text-align: center;
    transform: translateY(18px) scale(0.97);
    transition:
        transform 0.28s ease;
}

.delete-modal-overlay.show .delete-modal {
    transform: translateY(0) scale(1);
}


/* =========================================
   زر إغلاق النافذة
========================================= */

.delete-modal-close {
    position: absolute;
    top: 15px;
    left: 17px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #777;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.delete-modal-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #333;
}


/* =========================================
   أيقونة التحذير
========================================= */

.delete-modal-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(155, 77, 77, 0.09);
    border: 1px solid rgba(155, 77, 77, 0.18);
    color: #9b4d4d;
    font-size: 28px;
}


/* =========================================
   نص النافذة
========================================= */

.delete-modal h2 {
    margin: 0 0 12px;
    color: #302b28;
    font-size: 23px;
    font-weight: 800;
}

.delete-modal p {
    margin: 0 auto;
    max-width: 370px;
    color: #716a65;
    font-size: 14px;
    line-height: 1.9;
}

.delete-modal-warning {
    display: block;
    margin-top: 14px;
    color: #9b4d4d;
    font-size: 13px;
    font-weight: 700;
}


/* =========================================
   أزرار النافذة
========================================= */

.delete-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.delete-modal-actions button {
    width: 100%;
    padding: 13px 18px;
    border-radius: 13px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.delete-modal-cancel {
    border: 1px solid rgba(120, 110, 100, 0.20);
    background: #f6f3f0;
    color: #625b56;
}

.delete-modal-cancel:hover {
    background: #ece7e2;
    transform: translateY(-1px);
}

.delete-modal-confirm {
    border: 1px solid #9b4d4d;
    background: #9b4d4d;
    color: #ffffff;
    box-shadow:
        0 7px 18px rgba(155, 77, 77, 0.15);
}

.delete-modal-confirm:hover {
    background: #843f3f;
    transform: translateY(-1px);
}


/* =========================================
   الوضع الليلي — حذف الحساب
========================================= */

body.dark-mode .account-danger {
    background: rgba(35, 31, 30, 0.78);
    border-color: rgba(190, 110, 110, 0.22);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.18);
}

body.dark-mode .delete-account-button {
    border-color: rgba(210, 120, 120, 0.35);
    color: #d99a9a;
}

body.dark-mode .delete-account-button:hover {
    background: #9b4d4d;
    color: #ffffff;
}

body.dark-mode .delete-modal {
    background: rgba(30, 34, 41, 0.98);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.48);
}

body.dark-mode .delete-modal h2 {
    color: #f1f3f5;
}

body.dark-mode .delete-modal p {
    color: #aeb6c1;
}

body.dark-mode .delete-modal-close {
    color: #9da5af;
}

body.dark-mode .delete-modal-close:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

body.dark-mode .delete-modal-cancel {
    background: #252d38;
    border-color: rgba(255, 255, 255, 0.08);
    color: #d6dce3;
}

body.dark-mode .delete-modal-cancel:hover {
    background: #303a47;
}


/* =========================================
   نافذة الإنجاز التحفيزية
========================================= */

.achievement-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(25, 22, 20, 0.42);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    animation: achievementOverlayIn 0.3s ease forwards;
}

.achievement-modal {
    position: relative;
    width: min(440px, 100%);
    padding: 38px 30px 30px;
    text-align: center;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(180, 160, 140, 0.22);
    box-shadow:
        0 30px 80px rgba(30, 25, 20, 0.20);
    overflow: hidden;
    animation: achievementModalIn 0.45s ease forwards;
}


/* =========================================
   زر الإغلاق
========================================= */

.achievement-close {
    position: absolute;
    top: 14px;
    left: 16px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #777;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.achievement-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #333;
}


/* =========================================
   الأيقونة
========================================= */

.achievement-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(212, 179, 106, 0.10);
    border: 1px solid rgba(212, 179, 106, 0.28);
    color: #a8843d;
    font-size: 32px;
    font-weight: 800;
    box-shadow:
        0 10px 30px rgba(212, 179, 106, 0.12);
    animation: achievementIconPop 0.55s ease 0.15s both;
}


/* =========================================
   العنوان الصغير
========================================= */

.achievement-label {
    display: block;
    margin-bottom: 8px;
    color: #a8843d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
}


/* =========================================
   العنوان
========================================= */

.achievement-modal h2 {
    margin: 0 0 12px;
    color: #302b28;
    font-size: 25px;
    font-weight: 800;
}


/* =========================================
   الرسالة
========================================= */

.achievement-modal p {
    margin: 0 auto;
    max-width: 350px;
    color: #716a65;
    font-size: 15px;
    line-height: 1.9;
}


/* =========================================
   الخط الفاصل
========================================= */

.achievement-line {
    width: 55px;
    height: 2px;
    margin: 20px auto 16px;
    border-radius: 10px;
    background: rgba(212, 179, 106, 0.50);
}


/* =========================================
   الرسالة السفلية
========================================= */

.achievement-footer {
    display: block;
    color: #817973;
    font-size: 12.5px;
    line-height: 1.8;
}


/* =========================================
   زر المتابعة
========================================= */

.achievement-button {
    width: 100%;
    margin-top: 22px;
    padding: 13px 18px;
    border: 1px solid #182335;
    border-radius: 14px;
    background: #182335;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 8px 20px rgba(24, 35, 53, 0.15);
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.achievement-button:hover {
    background: #243249;
    transform: translateY(-2px);
    box-shadow:
        0 12px 25px rgba(24, 35, 53, 0.20);
}


/* =========================================
   النجوم
========================================= */

.achievement-sparkles span {
    position: absolute;
    color: rgba(168, 132, 61, 0.45);
    font-size: 18px;
    animation: sparkleFloat 2.5s ease-in-out infinite;
}

.achievement-sparkles span:nth-child(1) {
    top: 45px;
    right: 55px;
    animation-delay: 0s;
}

.achievement-sparkles span:nth-child(2) {
    top: 95px;
    left: 65px;
    font-size: 13px;
    animation-delay: 0.5s;
}

.achievement-sparkles span:nth-child(3) {
    top: 125px;
    right: 35px;
    font-size: 12px;
    animation-delay: 1s;
}

.achievement-sparkles span:nth-child(4) {
    top: 70px;
    left: 35px;
    font-size: 17px;
    animation-delay: 1.4s;
}

.achievement-sparkles span:nth-child(5) {
    top: 155px;
    right: 75px;
    font-size: 11px;
    animation-delay: 1.8s;
}


/* =========================================
   الحركات
========================================= */

@keyframes achievementOverlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes achievementModalIn {
    from {
        opacity: 0;
        transform:
            translateY(25px)
            scale(0.94);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes achievementIconPop {
    0% {
        opacity: 0;
        transform:
            scale(0.5)
            rotate(-15deg);
    }

    70% {
        transform:
            scale(1.08)
            rotate(3deg);
    }

    100% {
        opacity: 1;
        transform:
            scale(1)
            rotate(0);
    }
}

@keyframes sparkleFloat {
    0%,
    100% {
        transform:
            translateY(0)
            rotate(0deg);
        opacity: 0.35;
    }

    50% {
        transform:
            translateY(-8px)
            rotate(12deg);
        opacity: 0.8;
    }
}


/* =========================================
   الوضع الليلي — الإنجاز
========================================= */

body.dark-mode .achievement-overlay {
    background: rgba(5, 9, 15, 0.68);
}

body.dark-mode .achievement-modal {
    background: rgba(25, 32, 42, 0.98);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.50);
}

body.dark-mode .achievement-modal h2 {
    color: #f1f3f5;
}

body.dark-mode .achievement-modal p {
    color: #b5bec9;
}

body.dark-mode .achievement-footer {
    color: #949eaa;
}

body.dark-mode .achievement-close {
    color: #9da5af;
}

body.dark-mode .achievement-close:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

body.dark-mode .achievement-icon {
    background: rgba(212, 179, 106, 0.10);
    border-color: rgba(212, 179, 106, 0.24);
    color: #d4b36a;
}

body.dark-mode .achievement-label {
    color: #d4b36a;
}

body.dark-mode .achievement-line {
    background: rgba(212, 179, 106, 0.38);
}


/* =========================================
   الجوال
========================================= */

@media (max-width: 600px) {

    .achievement-overlay {
        padding: 16px;
    }

    .achievement-modal {
        padding: 34px 22px 24px;
        border-radius: 24px;
    }

    .achievement-modal h2 {
        font-size: 22px;
    }

    .achievement-modal p {
        font-size: 14px;
    }

    .achievement-icon {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }

    .achievement-sparkles span:nth-child(1) {
        right: 30px;
    }

    .achievement-sparkles span:nth-child(2) {
        left: 35px;
    }

    .achievement-sparkles span:nth-child(4) {
        left: 20px;
    }
}


/* =========================================================
   رُقيّ — التصميم الجديد
   هوية مِرْقاة
========================================================= */

.ai-container {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px;
}


/* =========================================================
   مقدمة رُقيّ
========================================================= */

.ai-hero {
    text-align: center;
    margin: 50px auto 35px;
    max-width: 720px;
}

.ai-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #182335;
    color: #d4b36a;
    font-size: 25px;
    font-weight: 700;
    box-shadow:
        0 12px 30px rgba(24, 35, 53, 0.16);
}

.ai-hero h2 {
    margin: 8px 0 12px;
    color: #182335;
    font-size: 34px;
    font-weight: 700;
}

.ai-hero p {
    margin: 0;
    color: #737373;
    line-height: 1.9;
    font-size: 15px;
}


/* =========================================================
   بطاقة المحادثة
========================================================= */

.ai-chat-card {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 35px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid rgba(212, 179, 106, 0.18);
    border-radius: 30px;
    box-shadow:
        0 18px 55px rgba(24, 35, 53, 0.08);
}


/* =========================================================
   رسائل المحادثة
========================================================= */

.chat-message {
    display: flex;
    gap: 14px;
    margin-bottom: 25px;
}

.ruqi-message {
    align-items: flex-start;
}

.user-message {
    justify-content: flex-start;
}


/* =========================================================
   أيقونة رُقيّ
========================================================= */

.chat-avatar {
    width: 43px;
    height: 43px;
    min-width: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #182335;
    color: #d4b36a;
    font-size: 17px;
    font-weight: 700;
    box-shadow:
        0 6px 18px rgba(24, 35, 53, 0.14);
}


/* =========================================================
   فقاعات المحادثة
========================================================= */

.chat-bubble {
    max-width: 82%;
    padding: 18px 21px;
    border-radius: 20px;
    background: #f7f3ea;
    color: #182335;
    line-height: 1.9;
}

.chat-name {
    display: block;
    margin-bottom: 8px;
    color: #a8843d;
    font-size: 13px;
    font-weight: 700;
}

.chat-bubble p {
    margin: 0;
}


/* =========================================================
   رسالة المستخدم
========================================================= */

.user-message .chat-bubble {
    background: #182335;
    color: #ffffff;
    border-radius: 20px 20px 5px 20px;
    margin-right: 57px;
}

.user-message .chat-name {
    color: #d4b36a;
}


/* =========================================================
   مربع الكتابة
========================================================= */

.ai-chat-form {
    margin-top: 8px;
}

.chat-bubble textarea {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: none;
    outline: none;
    resize: vertical;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.8;
}

.chat-bubble textarea::placeholder {
    color: rgba(255, 255, 255, 0.55);
}


/* =========================================================
   زر إنشاء الاقتراح
========================================================= */

.ai-button {
    width: 100%;
    margin-top: 15px;
    padding: 15px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 16px;
    background: #182335;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.ai-button:hover {
    background: #243249;
    transform: translateY(-2px);
    box-shadow:
        0 10px 25px rgba(24, 35, 53, 0.16);
}

.ai-button span {
    color: #d4b36a;
    font-size: 18px;
}


/* =========================================================
   نتيجة رُقيّ
========================================================= */

.ruqi-result {
    width: 100%;
    max-width: 100%;
    background: #fbfaf7;
    border: 1px solid #eee8dc;
    border-radius: 5px 22px 22px 22px;
}


/* =========================================================
   نص الروتين
========================================================= */

.routine-content {
    width: 100%;
}

.routine-content pre {
    margin: 0;
    padding: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-family: inherit;
    color: #273247;
    font-size: 15px;
    line-height: 2;
    text-align: right;
}


/* =========================================================
   نصيحة رُقيّ
========================================================= */

.ruqi-advice {
    margin-top: 25px;
    padding: 17px 19px;
    border-right: 3px solid #d4b36a;
    border-radius: 14px;
    background: #f7f1e3;
}

.ruqi-advice strong {
    display: block;
    margin-bottom: 7px;
    color: #a8843d;
    font-size: 14px;
}

.ruqi-advice p {
    margin: 0;
    color: #4d4d4d;
    line-height: 1.8;
}


/* =========================================================
   زر إضافة المهام
========================================================= */

.add-ai-tasks-button {
    width: 100%;
    margin-top: 24px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #d4b36a;
    border-radius: 15px;
    background: #182335;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.add-ai-tasks-button span:last-child {
    color: #d4b36a;
    font-size: 20px;
}

.add-ai-tasks-button:hover {
    background: #243249;
    transform: translateY(-2px);
    box-shadow:
        0 9px 22px rgba(24, 35, 53, 0.14);
}


/* =========================================================
   نافذة اختيار المهام
========================================================= */

.ai-tasks-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(14, 20, 31, 0.62);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.ai-tasks-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =========================================================
   صندوق النافذة
========================================================= */

.ai-tasks-modal {
    position: relative;
    width: min(600px, 100%);
    max-height: 86vh;
    overflow-y: auto;
    padding: 32px;
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid rgba(212, 179, 106, 0.35);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.25);
    transform:
        translateY(15px)
        scale(0.97);
    transition:
        transform 0.25s ease;
}

.ai-tasks-overlay.active .ai-tasks-modal {
    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   زر إغلاق النافذة
========================================================= */

.ai-tasks-close {
    position: absolute;
    top: 16px;
    left: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #f5f1e8;
    color: #182335;
    font-size: 22px;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.ai-tasks-close:hover {
    background: #182335;
    color: #d4b36a;
}


/* =========================================================
   عنوان النافذة
========================================================= */

.ai-tasks-modal h3 {
    margin: 8px 0 8px;
    color: #182335;
    font-size: 23px;
}

.ai-tasks-modal > p {
    margin: 0 0 22px;
    color: #777;
    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   تحديد الكل
========================================================= */

.ai-select-all {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid #eee7da;
    border-radius: 15px;
    background: #faf8f3;
    color: #182335;
    font-weight: 700;
    cursor: pointer;
}

.ai-select-all input {
    accent-color: #182335;
}


/* =========================================================
   بطاقة المهمة
========================================================= */

.ai-task-option {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 17px;
    margin-top: 10px;
    border: 1px solid #eee8dc;
    border-radius: 17px;
    background: #ffffff;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.ai-task-option:hover {
    border-color: #d4b36a;
    background: #fcfaf5;
    transform: translateY(-1px);
}

.ai-task-option input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #182335;
}

.ai-task-option-content {
    flex: 1;
    min-width: 0;
}

.ai-task-option-content strong {
    display: block;
    margin-bottom: 9px;
    color: #182335;
    font-size: 15px;
}

.ai-task-option-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
}

.ai-task-option-meta > span:not(.priority-high):not(.priority-medium):not(.priority-low) {
    padding: 4px 9px;
    border-radius: 8px;
    background: #f3f0ea;
    color: #555;
}


/* =========================================================
   زر تأكيد المهام
========================================================= */

.confirm-ai-tasks {
    width: 100%;
    margin-top: 22px;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background: #182335;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.confirm-ai-tasks:hover {
    background: #243249;
    transform: translateY(-1px);
    box-shadow:
        0 10px 25px rgba(24, 35, 53, 0.15);
}


/* =========================================================
   زر العودة
========================================================= */

.ai-back {
    text-align: center;
    margin: 25px 0 45px;
}


/* =========================================================
   رُقيّ — الوضع الليلي
========================================================= */

body.dark-mode .ai-hero h2 {
    color: #f4f5f7;
}

body.dark-mode .ai-hero p {
    color: #929baa;
}

body.dark-mode .ai-chat-card {
    background: #172131;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.22);
}

body.dark-mode .chat-bubble {
    background: #222d3c;
    color: #e8ebef;
}

body.dark-mode .chat-name {
    color: #d4b36a;
}

body.dark-mode .user-message .chat-bubble {
    background: #0e1827;
    color: #e8ebef;
    border: 1px solid rgba(212, 179, 106, 0.12);
}

body.dark-mode .user-message .chat-name {
    color: #d4b36a;
}

body.dark-mode .ruqi-result {
    background: #111b29;
    border-color: #2b3849;
}

body.dark-mode .routine-content pre {
    color: #dce1e7;
}

body.dark-mode .ruqi-advice {
    background: #222d3c;
    border-right-color: #d4b36a;
}

body.dark-mode .ruqi-advice strong {
    color: #d4b36a;
}

body.dark-mode .ruqi-advice p {
    color: #b7bec8;
}

body.dark-mode .ai-tasks-modal {
    background: #172131;
    border-color: rgba(212, 179, 106, 0.20);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.48);
}

body.dark-mode .ai-tasks-close {
    background: #222d3c;
    color: #dce1e7;
}

body.dark-mode .ai-tasks-close:hover {
    background: #d4b36a;
    color: #182335;
}

body.dark-mode .ai-tasks-modal h3 {
    color: #f0f2f5;
}

body.dark-mode .ai-tasks-modal > p {
    color: #929baa;
}

body.dark-mode .ai-select-all {
    background: #111b29;
    border-color: #2b3849;
    color: #e8ebef;
}

body.dark-mode .ai-task-option {
    background: #111b29;
    border-color: #2b3849;
}

body.dark-mode .ai-task-option:hover {
    background: #172131;
    border-color: #d4b36a;
}

body.dark-mode .ai-task-option-content strong {
    color: #e8ebef;
}

body.dark-mode .ai-task-option-meta > span:not(.priority-high):not(.priority-medium):not(.priority-low) {
    background: #222d3c;
    color: #aeb6c1;
}


/* =========================================================
   رُقيّ — الجوال
========================================================= */

@media (max-width: 700px) {

    .ai-container {
        padding: 0 14px;
    }

    .ai-hero {
        margin: 30px auto 25px;
    }

    .ai-icon {
        width: 56px;
        height: 56px;
        border-radius: 17px;
        font-size: 22px;
        margin-bottom: 14px;
    }

    .ai-hero h2 {
        font-size: 27px;
        margin-top: 5px;
    }

    .ai-hero p {
        font-size: 13px;
        line-height: 1.85;
    }

    .ai-chat-card {
        padding: 18px;
        border-radius: 22px;
        margin-bottom: 25px;
    }

    .chat-message {
        gap: 9px;
        margin-bottom: 20px;
    }

    .chat-avatar {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 13px;
        font-size: 15px;
    }

    .chat-bubble {
        max-width: calc(100% - 47px);
        padding: 14px 15px;
        border-radius: 17px;
        font-size: 13px;
    }

    .user-message .chat-bubble {
        margin-right: 0;
        max-width: 90%;
    }

    .chat-name {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .chat-bubble textarea {
        font-size: 13px;
    }

    .ai-button,
    .add-ai-tasks-button,
    .confirm-ai-tasks {
        min-height: 48px;
        padding: 13px 15px;
        font-size: 13px;
    }

    .routine-content pre {
        font-size: 13px;
        line-height: 1.9;
    }

    .ruqi-advice {
        margin-top: 18px;
        padding: 14px 15px;
    }

    .ruqi-advice strong {
        font-size: 12px;
    }

    .ruqi-advice p {
        font-size: 12px;
    }

    .ai-tasks-overlay {
        padding: 14px;
    }

    .ai-tasks-modal {
        max-height: 90vh;
        padding: 24px 17px 20px;
        border-radius: 22px;
    }

    .ai-tasks-modal h3 {
        font-size: 20px;
        padding-left: 35px;
    }

    .ai-tasks-modal > p {
        font-size: 12px;
        margin-bottom: 17px;
    }

    .ai-task-option {
        padding: 14px;
        gap: 10px;
        border-radius: 14px;
    }

    .ai-task-option-content strong {
        font-size: 13px;
    }

    .ai-task-option-meta {
        font-size: 10px;
    }

    .ai-back {
        margin: 20px 0 30px;
    }
}


/* =========================================================
   منع مشاكل التمرير عند فتح النوافذ
========================================================= */

body.modal-open {
    overflow: hidden;
}


/* =========================================================
   حركة ناعمة للأجهزة التي تسمح بالحركة
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .delete-modal-overlay,
    .delete-modal,
    .achievement-overlay,
    .achievement-modal,
    .achievement-icon,
    .achievement-sparkles span,
    .ai-tasks-overlay,
    .ai-tasks-modal,
    .ai-button,
    .add-ai-tasks-button,
    .confirm-ai-tasks,
    .delete-account-button {
        animation: none !important;
        transition: none !important;
    }
}
/* =========================================================
   مِرْقاة — الروتين المشترك
   Shared Routines — Luxury Interface
========================================================= */

.shared-routines-page {
    max-width: 980px;
    margin: 0 auto;
    padding-bottom: 90px;
}


/* =========================================================
   رأس الصفحة
========================================================= */

.shared-routines-hero {
    position: relative;
    text-align: center;
    padding: 48px 20px 34px;
}

.shared-hero-symbol {
    width: 52px;
    height: 52px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            #182335,
            #26344b
        );

    color: #d4b36a;

    font-size: 23px;

    box-shadow:
        0 12px 30px rgba(24, 35, 53, 0.14);

    transform: rotate(-3deg);
}

.shared-routines-hero .welcome-small {
    margin-bottom: 7px;
}

.shared-routines-hero h2 {
    margin-bottom: 9px;
}

.shared-routines-hero .welcome-text {
    max-width: 520px;
    margin: 0 auto;
}


/* =========================================================
   بطاقات الإجراءات
========================================================= */

.shared-routine-actions {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 42px;
}


.shared-action-card {
    position: relative;

    padding: 28px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #faf8f3
        );

    border:
        1px solid rgba(197, 163, 93, 0.15);

    border-radius: 26px;

    box-shadow:
        0 18px 45px rgba(24, 35, 53, 0.055);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.shared-action-card::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 120px;
    height: 120px;

    background:
        radial-gradient(
            circle,
            rgba(212, 179, 106, 0.12),
            transparent 70%
        );

    pointer-events: none;
}

.shared-action-card:hover {
    transform: translateY(-4px);

    border-color:
        rgba(197, 163, 93, 0.32);

    box-shadow:
        0 24px 55px rgba(24, 35, 53, 0.09);
}


/* =========================================================
   أيقونة البطاقة
========================================================= */

.shared-action-icon {
    width: 46px;
    height: 46px;

    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        rgba(212, 179, 106, 0.12);

    color: #a18752;

    font-size: 24px;
    font-weight: 500;

    border:
        1px solid rgba(197, 163, 93, 0.18);
}

.shared-action-icon.join-icon {
    font-size: 21px;
}


/* =========================================================
   محتوى البطاقة
========================================================= */

.shared-card-kicker {
    display: block;

    margin-bottom: 6px;

    color: #a18752;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.5px;
}

.shared-action-content h3 {
    margin: 0 0 8px;

    color: #182335;

    font-size: 21px;
    font-weight: 800;
}

.shared-action-content p {
    margin: 0 0 23px;

    color: #777268;

    font-size: 13px;
    line-height: 1.9;
}


/* =========================================================
   نموذج الروتين
========================================================= */

.shared-routine-form {
    display: flex;

    flex-direction: column;

    gap: 15px;
}


.shared-input-group {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.shared-input-group label {
    color: #5e5a52;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   الحقول
========================================================= */

.shared-routine-form input,
.shared-routine-form textarea {
    width: 100%;

    border:
        1px solid #e3ddd2;

    border-radius: 13px;

    background:
        rgba(255, 255, 255, 0.9);

    color: #182335;

    font-family:
        Tahoma,
        Arial,
        sans-serif;

    font-size: 13px;

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.shared-routine-form input {
    height: 48px;

    padding:
        0 15px;
}


.shared-routine-form textarea {
    min-height: 92px;

    padding:
        13px 15px;

    resize: vertical;

    line-height: 1.7;
}


.shared-routine-form input::placeholder,
.shared-routine-form textarea::placeholder {
    color: #aaa49a;
}


.shared-routine-form input:hover,
.shared-routine-form textarea:hover {
    border-color:
        rgba(197, 163, 93, 0.55);
}


.shared-routine-form input:focus,
.shared-routine-form textarea:focus {
    border-color: #c5a35d;

    background: #ffffff;

    box-shadow:
        0 0 0 4px
        rgba(197, 163, 93, 0.09);
}


/* =========================================================
   أزرار الروتين
========================================================= */

.shared-primary-button,
.shared-secondary-button {
    width: 100%;

    min-height: 48px;

    padding: 0 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: none;

    border-radius: 14px;

    font-family:
        Tahoma,
        Arial,
        sans-serif;

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.shared-primary-button {
    background:
        linear-gradient(
            135deg,
            #182335,
            #26344b
        );

    color: #ffffff;

    box-shadow:
        0 9px 22px rgba(24, 35, 53, 0.13);
}


.shared-secondary-button {
    background:
        rgba(212, 179, 106, 0.12);

    color: #8e7038;

    border:
        1px solid rgba(197, 163, 93, 0.23);
}


.shared-primary-button:hover,
.shared-secondary-button:hover {
    transform: translateY(-2px);
}


.shared-primary-button:hover {
    box-shadow:
        0 13px 28px rgba(24, 35, 53, 0.18);
}


.shared-secondary-button:hover {
    background:
        rgba(212, 179, 106, 0.18);
}


.button-arrow {
    font-size: 18px;

    transition:
        transform 0.25s ease;
}

.shared-primary-button:hover .button-arrow,
.shared-secondary-button:hover .button-arrow {
    transform: translateX(-4px);
}


/* =========================================================
   عنوان الروتينات
========================================================= */

.shared-routines-list-section {
    margin-top: 10px;
}

.shared-section-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}

.shared-section-heading h3 {
    margin: 0;

    color: #182335;

    font-size: 23px;
    font-weight: 800;
}

.shared-count {
    padding:
        7px 12px;

    border-radius: 20px;

    background:
        rgba(212, 179, 106, 0.10);

    color: #9a7a3d;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   شبكة الروتينات
========================================================= */

.shared-routines-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 17px;
}


/* =========================================================
   بطاقة الروتين
========================================================= */

.shared-routine-card {
    position: relative;

    min-height: 205px;

    padding: 23px;

    display: flex;

    flex-direction: column;

    text-decoration: none;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #faf8f3
        );

    border:
        1px solid rgba(197, 163, 93, 0.14);

    border-radius: 23px;

    box-shadow:
        0 14px 35px rgba(24, 35, 53, 0.05);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.shared-routine-card::after {
    content: "";

    position: absolute;

    bottom: -45px;
    left: -35px;

    width: 120px;
    height: 120px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(212, 179, 106, 0.10),
            transparent 70%
        );

    pointer-events: none;
}

.shared-routine-card:hover {
    transform: translateY(-4px);

    border-color:
        rgba(197, 163, 93, 0.35);

    box-shadow:
        0 22px 48px rgba(24, 35, 53, 0.08);
}


/* =========================================================
   أعلى البطاقة
========================================================= */

.shared-routine-card-top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 22px;
}

.shared-routine-icon {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background:
        rgba(212, 179, 106, 0.12);

    color: #b08c45;

    font-size: 19px;

    border:
        1px solid rgba(197, 163, 93, 0.17);
}

.shared-routine-open {
    color: #aaa39a;

    font-size: 20px;

    transition:
        transform 0.25s ease,
        color 0.25s ease;
}

.shared-routine-card:hover .shared-routine-open {
    color: #a18752;

    transform: translateX(-4px);
}


/* =========================================================
   محتوى البطاقة
========================================================= */

.shared-routine-card-content {
    flex: 1;
}

.shared-routine-card-content h3 {
    margin: 0 0 8px;

    color: #182335;

    font-size: 19px;
    font-weight: 800;
}

.shared-routine-card-content p {
    margin: 0;

    color: #777268;

    font-size: 12px;

    line-height: 1.8;
}

.shared-routine-card-content .empty-description {
    color: #aaa49a;
}


/* =========================================================
   أسفل البطاقة
========================================================= */

.shared-routine-card-footer {
    margin-top: 20px;
    padding-top: 13px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    border-top:
        1px solid #eee9df;

    color: #999288;

    font-size: 11px;
}

.shared-routine-card-footer > span:last-child {
    color: #a18752;

    font-weight: 700;
}

.members-symbol {
    margin-left: 4px;

    color: #b08c45;
}


/* =========================================================
   حالة عدم وجود روتينات
========================================================= */

.shared-empty-state {
    padding: 55px 25px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #faf8f3
        );

    border:
        1px dashed rgba(197, 163, 93, 0.35);

    border-radius: 24px;
}

.empty-state-icon {
    width: 54px;
    height: 54px;

    margin: 0 auto 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 17px;

    background:
        rgba(212, 179, 106, 0.10);

    color: #b08c45;

    font-size: 22px;
}

.shared-empty-state h3 {
    margin: 0 0 8px;

    color: #182335;

    font-size: 18px;
}

.shared-empty-state p {
    max-width: 430px;

    margin: 0 auto;

    color: #888177;

    font-size: 12px;

    line-height: 1.9;
}


/* =========================================================
   الجوال
========================================================= */

@media (max-width: 700px) {

    .shared-routines-page {
        padding:
            0 15px 60px;
    }


    .shared-routines-hero {
        padding:
            30px 10px 25px;
    }


    .shared-hero-symbol {
        width: 46px;
        height: 46px;

        margin-bottom: 14px;
    }


    .shared-routine-actions,
    .shared-routines-grid {
        grid-template-columns: 1fr;
    }


    .shared-action-card {
        padding: 22px;

        border-radius: 21px;
    }


    .shared-action-content h3 {
        font-size: 19px;
    }


    .shared-section-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 9px;
    }


    .shared-section-heading h3 {
        font-size: 20px;
    }


    .shared-routine-card {
        min-height: 185px;

        padding: 20px;
    }

}
/* =========================================================
مِرْقاة — الأيقونة النشطة في الصفحة الحالية
========================================================= */

.navigation .nav-icon.active {


color: #d4b36a;

background:
    linear-gradient(
        145deg,
        rgba(212, 179, 106, 0.18),
        rgba(212, 179, 106, 0.055)
    );

border-color:
    rgba(212, 179, 106, 0.48);

box-shadow:
    0 6px 20px rgba(24, 35, 53, 0.08),
    0 0 18px rgba(212, 179, 106, 0.10);

}

.navigation .nav-icon.active svg {


filter:
    drop-shadow(
        0 0 5px rgba(212, 179, 106, 0.35)
    );

transform: scale(1.08);


}

/* لمعة صغيرة للأيقونة النشطة */

.navigation .nav-icon.active::before {


content: "";

position: absolute;

width: 4px;
height: 4px;

top: 6px;
right: 7px;

border-radius: 50%;

background: #d4b36a;

box-shadow:
    0 0 8px rgba(212, 179, 106, 0.65);

}

/* =========================================================
مِرْقاة PLUS
بطاقة الاشتراك — تصميم فاخر
========================================================= */

.premium-card {
position: relative;
overflow: hidden;
padding: 28px;
border-radius: 24px;
background:
linear-gradient(
135deg,
#182335 0%,
#202e43 55%,
#293950 100%
);
border: 1px solid rgba(212, 179, 106, 0.28);
box-shadow:
0 18px 45px rgba(24, 35, 53, 0.16),
inset 0 1px 0 rgba(255, 255, 255, 0.07);
color: #ffffff;
isolation: isolate;
}

/* تباين بطاقة Plus في صفحة الحساب عند استخدام المظهر الفاتح */
.account-page:not(.dark-mode) .premium-card {
    background: linear-gradient(135deg, #fffdf7 0%, #f4f0e5 58%, #e9eee5 100%);
    border-color: rgba(91, 111, 83, .24);
    color: #243b3d;
    box-shadow: 0 18px 45px rgba(39, 59, 54, .12), inset 0 1px 0 rgba(255,255,255,.9);
}
.account-page:not(.dark-mode) .premium-text h3 { color: #243b3d; }
.account-page:not(.dark-mode) .premium-text p { color: #536761; }
.account-page:not(.dark-mode) .premium-features span { background: rgba(255,255,255,.7); border-color: rgba(75,103,84,.16); color: #405750; }

/* اللمعة الخلفية */

.premium-card::before {
content: "";
position: absolute;
width: 230px;
height: 230px;
top: -120px;
left: -80px;
border-radius: 50%;
background: rgba(212, 179, 106, 0.16);
filter: blur(45px);
pointer-events: none;
}

.premium-card::after {
content: "✦";
position: absolute;
top: 18px;
left: 25px;
font-size: 70px;
font-weight: 300;
color: rgba(212, 179, 106, 0.08);
pointer-events: none;
}

/* =========================================================
المحتوى الرئيسي
========================================================= */

.premium-content {
position: relative;
z-index: 2;
display: flex;
align-items: center;
gap: 18px;
}

.premium-icon {
width: 58px;
height: 58px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
border-radius: 18px;
background:
linear-gradient(
145deg,
#e1c47e,
#b9964f
);
color: #182335;
font-size: 25px;
box-shadow:
0 10px 25px rgba(0, 0, 0, 0.18),
inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.premium-text {
min-width: 0;
}

.premium-kicker {
display: block;
margin-bottom: 5px;
font-size: 10px;
letter-spacing: 0.08em;
color: #d4b36a;
}

.premium-text h3 {
margin: 0 0 6px;
font-size: 23px;
color: #ffffff;
}

.premium-text h3 span {
color: #d4b36a;
}

.premium-text p {
max-width: 600px;
margin: 0;
color: rgba(255, 255, 255, 0.68);
font-size: 12px;
line-height: 1.8;
}

/* =========================================================
المزايا
========================================================= */

.premium-features {
position: relative;
z-index: 2;
display: flex;
flex-wrap: wrap;
gap: 9px;
margin-top: 23px;
}

.premium-features span {
display: inline-flex;
align-items: center;
gap: 7px;
padding: 8px 12px;
border-radius: 11px;
background: rgba(255, 255, 255, 0.055);
border: 1px solid rgba(255, 255, 255, 0.08);
color: rgba(255, 255, 255, 0.78);
font-size: 10px;
}

.premium-features i {
color: #d4b36a;
font-style: normal;
font-size: 12px;
}

/* =========================================================
زر Plus
========================================================= */

.premium-button {
position: relative;
z-index: 2;
width: 100%;
min-height: 48px;
margin-top: 22px;
padding: 0 17px;
display: flex;
align-items: center;
justify-content: space-between;
text-decoration: none;
border-radius: 14px;
background:
linear-gradient(
135deg,
#d4b36a,
#e3c982
);
color: #182335;
font-size: 12px;
font-weight: 700;
box-shadow:
0 10px 24px rgba(0, 0, 0, 0.14);
transition:
transform 0.25s ease,
box-shadow 0.25s ease,
filter 0.25s ease;
}

.premium-button strong {
font-size: 18px;
transition: transform 0.25s ease;
}

.premium-button:hover {
transform: translateY(-2px);
filter: brightness(1.04);
box-shadow:
0 14px 30px rgba(0, 0, 0, 0.20);
}

.premium-button:hover strong {
transform: translateX(-4px);
}

/* =========================================================
الوضع الليلي
========================================================= */

body.dark-mode .premium-card {
border-color: rgba(212, 179, 106, 0.32);
box-shadow:
0 20px 50px rgba(0, 0, 0, 0.30),
inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* =========================================================
الجوال
========================================================= */

@media (max-width: 700px) {

.premium-card {
    padding: 21px;
    border-radius: 20px;
}

.premium-content {
    align-items: flex-start;
    gap: 13px;
}

.premium-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 21px;
}

.premium-text h3 {
    font-size: 20px;
}

.premium-text p {
    font-size: 11px;
    line-height: 1.75;
}

.premium-features {
    gap: 7px;
    margin-top: 18px;
}

.premium-features span {
    font-size: 9px;
    padding: 7px 9px;
}

.premium-button {
    min-height: 46px;
    margin-top: 18px;
}

}

/* =========================================================
مِرْقاة PLUS — الصفحة
========================================================= */

.plus-page {
width: min(1050px, 92%);
margin: 0 auto;
padding: 65px 0 80px;
}

/* =========================================================
Hero
========================================================= */

.plus-hero {
position: relative;
text-align: center;
max-width: 700px;
margin: 0 auto 45px;
}

.plus-orbit {
width: 82px;
height: 82px;
margin: 0 auto 20px;
padding: 1px;
border-radius: 50%;
background:
linear-gradient(
145deg,
#e4c77f,
transparent 55%,
#b08d48
);
box-shadow:
0 12px 35px rgba(24, 35, 53, 0.12);
}

.plus-symbol {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: #182335;
color: #d4b36a;
font-size: 31px;
}

.plus-kicker {
display: block;
margin-bottom: 9px;
color: #a18752;
font-size: 11px;
letter-spacing: .12em;
}

.plus-hero h2 {
margin: 0;
color: #182335;
font-size: clamp(34px, 5vw, 52px);
letter-spacing: -.03em;
}

.plus-hero h2 strong {
color: #b08d48;
}

.plus-hero p {
max-width: 590px;
margin: 17px auto 0;
color: #77736c;
font-size: 14px;
line-height: 2;
}

/* =========================================================
بطاقة السعر
========================================================= */

.plus-pricing-card {
position: relative;
max-width: 520px;
margin: 0 auto 75px;
padding: 34px;
text-align: center;
overflow: hidden;
border-radius: 28px;
background:
linear-gradient(
145deg,
#182335,
#26364b
);
border: 1px solid rgba(212, 179, 106, .28);
box-shadow:
0 25px 60px rgba(24, 35, 53, .17);
}

.plus-pricing-card::before {
content: "";
position: absolute;
width: 250px;
height: 250px;
top: -150px;
right: -80px;
border-radius: 50%;
background: rgba(212, 179, 106, .12);
filter: blur(35px);
}

.plus-price-label {
position: relative;
color: rgba(255,255,255,.6);
font-size: 11px;
}

.plus-price {
position: relative;
display: flex;
align-items: baseline;
justify-content: center;
gap: 7px;
margin: 10px 0;
color: white;
}

.plus-price strong {
font-size: 48px;
line-height: 1;
color: #d4b36a;
}

.plus-price span {
font-size: 13px;
}

.plus-price-note {
position: relative;
margin: 0 0 23px;
color: rgba(255,255,255,.55);
font-size: 10px;
}

.plus-subscribe-button {
position: relative;
width: 100%;
min-height: 52px;
border: 0;
border-radius: 15px;
background:
linear-gradient(
135deg,
#d4b36a,
#e3ca88
);
color: #182335;
font-family: inherit;
font-size: 12px;
font-weight: 700;
cursor: pointer;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 18px;
transition:
transform .25s ease,
box-shadow .25s ease;
}

.plus-subscribe-button strong {
font-size: 19px;
}

.plus-subscribe-button:hover {
transform: translateY(-2px);
box-shadow:
0 12px 25px rgba(0,0,0,.2);
}

.plus-coming-note {
position: relative;
display: block;
margin-top: 12px;
color: rgba(255,255,255,.38);
font-size: 9px;
}

/* =========================================================
المزايا
========================================================= */

.plus-benefits {
max-width: 900px;
margin: 0 auto;
}

.plus-section-heading {
text-align: center;
margin-bottom: 28px;
}

.plus-section-heading span {
color: #a18752;
font-size: 10px;
}

.plus-section-heading h3 {
margin-top: 5px;
color: #182335;
font-size: 24px;
}

.plus-benefits-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 14px;
}

.plus-benefit {
display: flex;
align-items: flex-start;
gap: 15px;
padding: 23px;
border-radius: 19px;
background: rgba(255,255,255,.7);
border: 1px solid rgba(24,35,53,.07);
box-shadow:
0 10px 28px rgba(24,35,53,.045);
transition:
transform .25s ease,
box-shadow .25s ease;
}

.plus-benefit:hover {
transform: translateY(-3px);
box-shadow:
0 15px 32px rgba(24,35,53,.08);
}

.plus-benefit-icon {
width: 43px;
height: 43px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
border-radius: 13px;
background: #f1e7d0;
color: #a18752;
font-size: 18px;
}

.plus-benefit h4 {
margin: 1px 0 5px;
color: #182335;
font-size: 14px;
}

.plus-benefit p {
margin: 0;
color: #77736c;
font-size: 10px;
line-height: 1.8;
}

/* =========================================================
العودة
========================================================= */

.plus-back {
display: block;
width: fit-content;
margin: 45px auto 0;
color: #8c7445;
text-decoration: none;
font-size: 11px;
transition: transform .2s ease;
}

.plus-back:hover {
transform: translateX(-4px);
}

/* =========================================================
الوضع الليلي
========================================================= */

body.dark-mode .plus-hero h2,
body.dark-mode .plus-section-heading h3 {
color: #f4f1e8;
}

body.dark-mode .plus-hero p,
body.dark-mode .plus-benefit p {
color: rgba(255,255,255,.58);
}

body.dark-mode .plus-benefit {
background: rgba(255,255,255,.035);
border-color: rgba(255,255,255,.07);
}

body.dark-mode .plus-benefit h4 {
color: #f4f1e8;
}

body.dark-mode .plus-benefit-icon {
background: rgba(212,179,106,.1);
}

/* =========================================================
الجوال
========================================================= */

@media (max-width: 700px) {


.plus-page {
    width: 92%;
    padding-top: 40px;
    padding-bottom: 55px;
}

.plus-hero {
    margin-bottom: 32px;
}

.plus-orbit {
    width: 70px;
    height: 70px;
}

.plus-symbol {
    font-size: 26px;
}

.plus-hero p {
    font-size: 12px;
    line-height: 1.9;
}

.plus-pricing-card {
    padding: 25px 20px;
    border-radius: 23px;
    margin-bottom: 50px;
}

.plus-price strong {
    font-size: 42px;
}

.plus-benefits-grid {
    grid-template-columns: 1fr;
}

.plus-benefit {
    padding: 19px;
}
}

/* =========================================================
   مِرْقاة — صفحة تفاصيل الروتين المشترك
   تنسيقات مستقلة حتى لا تؤثر على بقية صفحات الموقع
========================================================= */

.shared-invite-card,
.shared-members-card,
.shared-tasks-card,
.routine-management-card {
    min-width: 0;
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid rgba(197, 163, 93, 0.18);
    border-radius: 23px;
    background: linear-gradient(145deg, #ffffff, #faf8f3);
    box-shadow: 0 14px 38px rgba(24, 35, 53, 0.055);
}

.shared-invite-card,
.shared-members-card,
.shared-tasks-card,
.routine-management-card {
    margin-bottom: 20px;
}

.shared-card-heading,
.shared-members-card .shared-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.shared-card-heading h3,
.shared-members-card .shared-section-heading h3,
.shared-tasks-card .shared-section-heading h3,
.routine-management-card h3 {
    margin: 0;
    color: #182335;
    font-size: clamp(17px, 2vw, 20px);
    font-weight: 800;
}

.shared-card-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(197, 163, 93, 0.2);
    border-radius: 14px;
    background: rgba(212, 179, 106, 0.13);
    color: #a18752;
}

.invite-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    border: 1px dashed rgba(161, 135, 82, 0.48);
    border-radius: 15px;
    background: #f7f3e9;
}

.invite-code-box code {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #182335;
    font-size: clamp(15px, 2vw, 19px);
    font-weight: 800;
    letter-spacing: 2px;
}

.invite-code-box button,
.shared-copy-button {
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid rgba(212, 179, 106, 0.35);
    border-radius: 11px;
    background: #182335;
    color: #e4c77f;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.invite-code-box button:hover,
.shared-copy-button:hover {
    transform: translateY(-2px);
    background: #26364e;
    box-shadow: 0 8px 18px rgba(24, 35, 53, .16);
}

.shared-members-list {
    display: grid;
    gap: 11px;
}

.shared-member {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    border: 1px solid rgba(24, 35, 53, 0.07);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.78);
}

.member-avatar {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(197, 163, 93, 0.24);
    border-radius: 14px;
    background: #f3ead7;
    color: #9a7a3d;
}

.member-avatar svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.member-info {
    min-width: 0;
    flex: 1;
}

.member-info strong,
.member-info span {
    display: block;
    overflow-wrap: anywhere;
}

.member-info strong {
    color: #182335;
    font-size: 13px;
    font-weight: 800;
}

.member-info span {
    margin-top: 4px;
    color: #898276;
    font-size: 10px;
}

.shared-remove-member-button {
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 1px solid rgba(177, 79, 68, .18);
    border-radius: 10px;
    background: rgba(177, 79, 68, .06);
    color: #a34e45;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.shared-remove-member-button:hover {
    transform: translateY(-1px);
    background: rgba(177, 79, 68, .12);
}

.shared-tasks-list {
    display: grid;
    gap: 10px;
}

.shared-task {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    padding: 14px;
    border: 1px solid rgba(24, 35, 53, .07);
    border-radius: 14px;
    background: rgba(255, 255, 255, .78);
}

.shared-task-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.shared-task-main > div {
    min-width: 0;
}

.shared-task-main strong,
.shared-task-main span {
    display: block;
    overflow-wrap: anywhere;
}

.shared-task-main strong {
    color: #182335;
    font-size: 13px;
}

.shared-task-main span {
    margin-top: 4px;
    color: #898276;
    font-size: 10px;
}

.shared-task-marker {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #c5a35d;
    box-shadow: 0 0 0 4px rgba(197, 163, 93, .13);
}

.shared-task-priority {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 9px;
    background: rgba(212, 179, 106, .13);
    color: #94763e;
    font-size: 10px;
    font-weight: 700;
}

.routine-management-card form {
    display: grid;
    gap: 12px;
}

.routine-management-card input,
.routine-management-card textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid rgba(24, 35, 53, .12);
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: #182335;
    font: inherit;
    font-size: 13px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.routine-management-card textarea {
    min-height: 95px;
    resize: vertical;
}

.routine-management-card input:focus,
.routine-management-card textarea:focus {
    border-color: #c5a35d;
    box-shadow: 0 0 0 3px rgba(197, 163, 93, .12);
}

.shared-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 10px 18px;
    border: 1px solid rgba(197, 163, 93, .28);
    border-radius: 12px;
    background: #182335;
    color: #e4c77f;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: transform .2s ease, background .2s ease;
}

.shared-back-button:hover {
    transform: translateY(-2px);
    background: #26364e;
}

/* الوضع الليلي — تفاصيل الروتين المشترك */
body.dark-mode .shared-invite-card,
body.dark-mode .shared-members-card,
body.dark-mode .shared-tasks-card,
body.dark-mode .routine-management-card {
    border-color: rgba(255, 255, 255, .07);
    background: linear-gradient(145deg, #172131, #111b29);
    box-shadow: 0 15px 38px rgba(0, 0, 0, .2);
}

body.dark-mode .shared-card-heading h3,
body.dark-mode .shared-members-card .shared-section-heading h3,
body.dark-mode .shared-tasks-card .shared-section-heading h3,
body.dark-mode .routine-management-card h3,
body.dark-mode .member-info strong,
body.dark-mode .shared-task-main strong,
body.dark-mode .invite-code-box code {
    color: #f0f2f5;
}

body.dark-mode .invite-code-box,
body.dark-mode .shared-member,
body.dark-mode .shared-task {
    border-color: rgba(255, 255, 255, .07);
    background: rgba(255, 255, 255, .035);
}

body.dark-mode .invite-code-box {
    border-style: dashed;
    border-color: rgba(212, 179, 106, .35);
}

body.dark-mode .member-avatar {
    border-color: rgba(212, 179, 106, .2);
    background: rgba(212, 179, 106, .1);
    color: #d4b36a;
}

body.dark-mode .member-info span,
body.dark-mode .shared-task-main span {
    color: #929baa;
}

body.dark-mode .routine-management-card input,
body.dark-mode .routine-management-card textarea {
    border-color: #2b3849;
    background: #111b29;
    color: #e8ebef;
}

@media (max-width: 700px) {
    .shared-invite-card,
    .shared-members-card,
    .shared-tasks-card,
    .routine-management-card {
        margin-bottom: 14px;
        padding: 19px 16px;
        border-radius: 18px;
    }

    .shared-card-heading,
    .shared-members-card .shared-section-heading {
        margin-bottom: 15px;
    }

    .invite-code-box {
        align-items: stretch;
        flex-direction: column;
    }

    .invite-code-box button,
    .shared-copy-button {
        width: 100%;
    }

    .shared-member {
        gap: 10px;
        padding: 11px;
    }

    .member-avatar {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
    }

    .shared-remove-member-button {
        padding: 7px 8px;
        font-size: 10px;
    }

    .shared-task {
        align-items: flex-start;
        padding: 12px;
    }
}
/* =========================================================
   تحسين عنوان الدعوة
========================================================= */

.shared-invite-card .shared-card-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.invite-heading-text {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.invite-heading-text h3 {
    margin: 0 0 6px;
    text-align: right;
}

.invite-heading-text p {
    margin: 0;
    text-align: right;
}


/* =========================================================
   زر حذف الروتين
========================================================= */

.shared-delete-form {
    margin-top: 12px;
}

.routine-management-card .shared-delete-button {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(210, 92, 82, 0.25);
    border-radius: 13px;

    background: rgba(177, 79, 68, 0.09);
    color: #d47b72;

    font-family: inherit;
    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.routine-management-card .shared-delete-button:hover {
    background: rgba(177, 79, 68, 0.17);
    border-color: rgba(210, 92, 82, 0.45);
    transform: translateY(-2px);
}

body.dark-mode .routine-management-card .shared-delete-button {
    background: rgba(177, 79, 68, 0.12);
    color: #e58b82;
    border-color: rgba(210, 92, 82, 0.2);
}

body.dark-mode .routine-management-card .shared-delete-button:hover {
    background: rgba(177, 79, 68, 0.22);
}
/* =========================================================
   شارة صاحب الروتين
========================================================= */

.management-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 8px 14px;

    border: 1px solid rgba(212, 179, 106, 0.35);
    border-radius: 30px;

    background: linear-gradient(
        135deg,
        rgba(212, 179, 106, 0.16),
        rgba(212, 179, 106, 0.06)
    );

    color: #d4b36a;

    font-size: 11px;
    font-weight: 800;

    white-space: nowrap;

    box-shadow: 0 4px 14px rgba(212, 179, 106, 0.08);
}

.management-badge::before {
    content: "♛";
    font-size: 15px;
    color: #d4b36a;
}

body.dark-mode .management-badge {
    background: linear-gradient(
        135deg,
        rgba(212, 179, 106, 0.18),
        rgba(212, 179, 106, 0.07)
    );

    border-color: rgba(212, 179, 106, 0.3);
    color: #e4c77f;
}
/* =========================================================
   مِرْقاة — التصميم الموحد لخانات الكتابة
========================================================= */

/* جميع خانات الإدخال */

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="hidden"]):not([type="range"]):not([type="color"]),
textarea,
select {
    box-sizing: border-box;

    width: 100%;
    min-height: 48px;

    padding: 12px 16px;

    border: 1px solid rgba(24, 35, 53, 0.12);
    border-radius: 14px;

    background: #ffffff;
    color: #182335;

    font-family: inherit;
    font-size: 13px;
    font-weight: 500;

    outline: none;

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease,
        transform .25s ease;
}


/* خانات النصوص الطويلة */

textarea {
    min-height: 115px;
    padding: 15px 16px;

    line-height: 1.9;
    resize: vertical;
}


/* عند مرور المؤشر */

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="hidden"]):not([type="range"]):not([type="color"]):hover,
textarea:hover,
select:hover {
    border-color: rgba(197, 163, 93, 0.55);
}


/* عند الكتابة داخل الخانة */

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="hidden"]):not([type="range"]):not([type="color"]):focus,
textarea:focus,
select:focus {
    border-color: #c5a35d;

    background: #fffefa;

    box-shadow:
        0 0 0 3px rgba(197, 163, 93, 0.13),
        0 5px 16px rgba(24, 35, 53, 0.04);
}


/* النص الإرشادي داخل الخانة */

input::placeholder,
textarea::placeholder {
    color: #a5a5a5;
    font-size: 12px;
    font-weight: 400;
    opacity: 1;
}


/* القوائم المنسدلة */

select {
    cursor: pointer;
}


/* الخانات المعطلة */

input:disabled,
textarea:disabled,
select:disabled {
    opacity: .55;
    cursor: not-allowed;
}


/* =========================================================
   الوضع الليلي
========================================================= */

body.dark-mode input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="hidden"]):not([type="range"]):not([type="color"]),
body.dark-mode textarea,
body.dark-mode select {

    border-color: #2b3849;

    background: #111b29;

    color: #edf0f5;

    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}


/* عند مرور المؤشر — الوضع الليلي */

body.dark-mode input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="hidden"]):not([type="range"]):not([type="color"]):hover,
body.dark-mode textarea:hover,
body.dark-mode select:hover {

    border-color: rgba(212, 179, 106, 0.5);
}


/* عند التركيز — الوضع الليلي */

body.dark-mode input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="hidden"]):not([type="range"]):not([type="color"]):focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {

    border-color: #d4b36a;

    background: #172335;

    color: #ffffff;

    box-shadow:
        0 0 0 3px rgba(212, 179, 106, 0.13),
        0 5px 18px rgba(0, 0, 0, 0.16);
}


/* النص الإرشادي — الوضع الليلي */

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {

    color: #788496;
}


/* =========================================================
   تحسين الكتابة على الجوال
========================================================= */

@media (max-width: 700px) {

    input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="hidden"]):not([type="range"]):not([type="color"]),
    textarea,
    select {

        min-height: 46px;
        padding: 11px 13px;
        border-radius: 12px;
        font-size: 13px;
    }

    textarea {
        min-height: 105px;
    }

}
/* =========================================================
   مِرْقاة — أزرار حسابي
========================================================= */

.account-card .auth-form .account-action-button {

    width: 100%;
    min-height: 50px;

    margin-top: 12px;
    padding: 12px 20px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border: 1px solid rgba(212, 179, 106, 0.4);
    border-radius: 14px;

    background: linear-gradient(
        135deg,
        #18283f,
        #263c59
    );

    color: #f5e5bd;

    font-family: inherit;
    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 5px 14px rgba(24, 40, 63, 0.13),
        inset 0 1px 0 rgba(255,255,255,0.08);

    transition: all .25s ease;
}

.account-card .auth-form .account-action-button:hover {

    transform: translateY(-2px);

    border-color: #d4b36a;

    background: linear-gradient(
        135deg,
        #243954,
        #304967
    );

    box-shadow:
        0 8px 20px rgba(24, 40, 63, 0.2),
        0 0 0 3px rgba(212, 179, 106, 0.09);
}

.account-card .auth-form .account-action-button:active {
    transform: translateY(0) scale(.985);
}

.account-button-icon {
    color: #d4b36a;
    font-size: 17px;
    line-height: 1;
}


/* الوضع الليلي */

body.dark-mode .account-card .auth-form .account-action-button {

    background: linear-gradient(
        135deg,
        #263b56,
        #344d6b
    );

    border-color: rgba(212, 179, 106, 0.35);

    color: #f5e5bd;
}

body.dark-mode .account-card .auth-form .account-action-button:hover {

    background: linear-gradient(
        135deg,
        #304966,
        #3b5878
    );

    border-color: #d4b36a;
}


/* الجوال */

@media (max-width: 700px) {

    .account-card .auth-form .account-action-button {
        min-height: 48px;
        border-radius: 12px;
        font-size: 12px;
    }

}
/* =========================================================
   مِرْقاة — اللمسات النهائية للهوية ثلاثية الأبعاد
   إضافات مستقلة للواجهة الافتتاحية ولوحة التحكم
   لا تغيّر وظائف العناصر أو تخطيط الصفحات الأخرى
========================================================= */

/* الواجهة الافتتاحية: عمق وإضاءة ذهبية هادئة */
.landing-page::before,
.landing-page::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
}

.landing-page::before {
    width: min(46vw, 520px);
    height: min(46vw, 520px);
    top: 8%;
    right: -15%;
    border: 1px solid rgba(212, 179, 106, .13);
    box-shadow: 0 0 80px rgba(212, 179, 106, .055), inset 0 0 65px rgba(212, 179, 106, .035);
    animation: mirqah-orbit 18s linear infinite;
}

.landing-page::after {
    width: min(34vw, 390px);
    height: min(34vw, 390px);
    bottom: -17%;
    left: -10%;
    border: 1px solid rgba(212, 179, 106, .10);
    box-shadow: 0 0 75px rgba(212, 179, 106, .07);
    animation: mirqah-orbit 24s linear infinite reverse;
}

.landing-content {
    perspective: 1100px;
}

.landing-symbol {
    position: relative;
    transform-style: preserve-3d;
    border: 1px solid rgba(255, 244, 211, .55);
    background: linear-gradient(145deg, #f0d99e 0%, #d4b36a 48%, #a9823e 100%);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .30),
                0 0 0 8px rgba(212, 179, 106, .055),
                0 0 48px rgba(212, 179, 106, .22),
                inset 0 2px 3px rgba(255, 255, 255, .45),
                inset 0 -5px 12px rgba(91, 64, 25, .16);
    animation: mirqah-symbol-float 5.5s ease-in-out 1.4s infinite;
}

.landing-symbol::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(24, 35, 53, .20);
    border-radius: 13px;
    pointer-events: none;
}

.landing-symbol::after {
    content: "";
    position: absolute;
    inset: -9px;
    border: 1px solid rgba(212, 179, 106, .20);
    border-radius: 24px;
    transform: translateZ(-12px);
    pointer-events: none;
}

.landing-title {
    text-shadow: 0 2px 0 rgba(255,255,255,.04),
                 0 12px 35px rgba(0,0,0,.35),
                 0 0 28px rgba(212,179,106,.12);
}

.landing-line {
    box-shadow: 0 0 14px rgba(212, 179, 106, .42);
}

.landing-primary,
.landing-secondary {
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.landing-primary:hover,
.landing-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 13px 28px rgba(0, 0, 0, .22), 0 0 20px rgba(212, 179, 106, .13);
}

/* لوحة التحكم: زخرفة درجات ترمز للارتقاء */
.container {
    position: relative;
    isolation: isolate;
}

.welcome {
    position: relative;
    padding: 7px 2px 18px;
}


.welcome > * {
    position: relative;
    z-index: 1;
}

.main-card,
.progress-section {
    position: relative;
    overflow: hidden;
    border-color: rgba(197, 163, 93, .16);
    box-shadow: 0 16px 42px rgba(24, 35, 53, .065), 0 3px 10px rgba(212, 179, 106, .045);
}

.main-card::before,
.progress-section::before {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    top: -125px;
    left: -95px;
    border-radius: 50%;
    background: rgba(212, 179, 106, .10);
    filter: blur(24px);
    pointer-events: none;
}

.main-card > *,
.progress-section > * {
    position: relative;
    z-index: 1;
}

.progress-bar {
    height: 10px;
    background: linear-gradient(90deg, #eee9df, #f6f1e7);
    box-shadow: inset 0 1px 2px rgba(24, 35, 53, .06);
}

.progress-fill {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #a9823e 0%, #d4b36a 55%, #ead08e 100%);
    box-shadow: 0 0 13px rgba(212, 179, 106, .25);
}

.progress-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.42) 48%, transparent 70%);
    transform: translateX(-100%);
    animation: mirqah-progress-shine 4.5s ease-in-out infinite;
}

.task-count {
    border: 1px solid rgba(197, 163, 93, .18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.task-item {
    border-color: rgba(197, 163, 93, .15);
    box-shadow: 0 4px 13px rgba(24, 35, 53, .025);
}

.task-item:hover {
    box-shadow: 0 10px 24px rgba(24, 35, 53, .065), 0 0 0 2px rgba(212,179,106,.055);
}

.step-number {
    border: 1px solid rgba(197, 163, 93, .16);
    background: linear-gradient(145deg, #faf7ef, #eee5d2);
}

.ruqi-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 179, 106, .28);
    background: radial-gradient(circle at 8% 15%, rgba(212,179,106,.17), transparent 34%),
                linear-gradient(135deg, #182335, #202e43 58%, #293950);
    box-shadow: 0 16px 36px rgba(24, 35, 53, .16), inset 0 1px 0 rgba(255,255,255,.07);
}

.ruqi-icon {
    box-shadow: 0 7px 18px rgba(0,0,0,.20), inset 0 1px 2px rgba(255,255,255,.45);
    transform: translateZ(0);
}

.brand-mark {
    border: 1px solid rgba(212, 179, 106, .35);
    box-shadow: 0 8px 22px rgba(24, 35, 53, .14), 0 0 17px rgba(212,179,106,.10), inset 0 1px 0 rgba(255,255,255,.10);
}

@keyframes mirqah-symbol-float {
    0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
    50% { transform: translateY(-8px) rotateX(5deg) rotateY(-5deg); }
}

@keyframes mirqah-orbit {
    from { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.04); }
    to { transform: rotate(360deg) scale(1); }
}

@keyframes mirqah-progress-shine {
    0%, 55% { transform: translateX(-110%); }
    85%, 100% { transform: translateX(110%); }
}

@media (max-width: 700px) {
    .landing-page::before {
        width: 78vw;
        height: 78vw;
        right: -35%;
        top: 12%;
    }

    .landing-page::after {
        width: 62vw;
        height: 62vw;
        left: -28%;
        bottom: -12%;
    }

    .landing-symbol {
        animation-duration: 6.5s;
    }

    .welcome::after {
        width: 75px;
        height: 56px;
        opacity: .42;
        transform: scale(.78);
        transform-origin: left top;
    }

    .main-card,
    .progress-section {
        box-shadow: 0 10px 27px rgba(24, 35, 53, .06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-page::before,
    .landing-page::after,
    .landing-symbol,
    .progress-fill::after {
        animation: none !important;
    }

    .landing-primary,
    .landing-secondary,
    .task-item {
        transition: none !important;
    }
}

/* =========================================================
   مِرْقاة — تطوير خلفية البرنامج فقط
   دون تغيير البطاقات أو الشريط أو الأزرار أو المحتوى
========================================================= */

body:not(.dark-mode) {
    background-color: #e9e0cf;
    background-image:
        radial-gradient(ellipse at 8% 12%, rgba(212, 179, 106, .42) 0%, transparent 30%),
        radial-gradient(ellipse at 94% 18%, rgba(24, 35, 53, .20) 0%, transparent 32%),
        radial-gradient(ellipse at 78% 88%, rgba(180, 143, 72, .24) 0%, transparent 34%),
        radial-gradient(ellipse at 18% 92%, rgba(35, 54, 79, .13) 0%, transparent 30%),
        linear-gradient(135deg, #f0e8d9 0%, #e5dac5 48%, #eee5d5 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
}

body.dark-mode {
    background-color: #0b1320;
    background-image:
        radial-gradient(ellipse at 8% 8%, rgba(212, 179, 106, .17) 0%, transparent 32%),
        radial-gradient(ellipse at 92% 22%, rgba(53, 82, 119, .34) 0%, transparent 36%),
        radial-gradient(ellipse at 72% 100%, rgba(212, 179, 106, .10) 0%, transparent 38%),
        linear-gradient(145deg, #142238 0%, #0b1320 55%, #111d2e 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
}

@media (max-width: 700px) {
    body:not(.dark-mode),
    body.dark-mode {
        background-attachment: scroll;
    }
}
/* =========================================
   مِرْقاة — ضبط نموذج إضافة المهمة
========================================= */

.task-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 155px 155px auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 22px;
    direction: rtl;
}

/* حقل اسم المهمة */

.task-form .task-title-input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 13px;
}

/* حقل الأولوية */

.task-form .task-priority {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 10px;
    border: 1px solid #e2ddd3;
    border-radius: 12px;
    background: #faf9f6;
    color: #182335;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    outline: none;
    transition: .25s ease;
}

.task-form .task-priority:focus {
    border-color: #c5a35d;
    box-shadow: 0 0 0 3px rgba(197,163,93,.10);
}

/* حقل الوقت */

.task-time-wrapper {
    width: 100%;
    min-width: 0;
}

.task-form .task-time {
    display: none;
}

.task-time-trigger {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 10px;
    border: 1px solid rgba(197,163,93,.45);
    border-radius: 12px;
    background: linear-gradient(145deg,#fff,#f7f1e5);
    color: #182335;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
}

.task-time-trigger:hover {
    border-color: #c5a35d;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(24,35,53,.09);
}

.task-time-trigger-icon {
    color: #b08d4d;
    font-size: 21px;
}

/* زر الإضافة */

.task-form .task-add-button {
    height: 48px;
    padding: 0 23px;
    border: none;
    border-radius: 12px;
    background: #182335;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
    white-space: nowrap;
}

.task-form .task-add-button:hover {
    background: #293950;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(24,35,53,.16);
}


/* =========================================
   نافذة اختيار الوقت
========================================= */

.time-picker-overlay[hidden] {
    display: none !important;
}

.time-picker-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10,18,30,.58);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    animation: timeOverlayIn .25s ease;
}

@keyframes timeOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.time-picker-modal {
    position: relative;
    width: min(420px, 100%);
    padding: 30px 25px 24px;
    border: 1px solid rgba(197,163,93,.35);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 25px 80px rgba(0,0,0,.25);
    text-align: center;
    animation: timeModalIn .3s ease;
}

@keyframes timeModalIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.time-picker-close {
    position: absolute;
    top: 13px;
    left: 15px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f4f1eb;
    color: #182335;
    font-size: 22px;
    cursor: pointer;
    transition: .2s ease;
}

.time-picker-close:hover {
    background: #eee3cd;
    transform: rotate(90deg);
}

.time-picker-heading {
    margin-bottom: 22px;
}

.time-picker-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 53px;
    height: 53px;
    margin-bottom: 12px;
    border-radius: 17px;
    background: #182335;
    color: #e2c47f;
    font-size: 30px;
    box-shadow: 0 7px 20px rgba(24,35,53,.17);
}

.time-picker-heading h3 {
    color: #182335;
    font-size: 19px;
    margin-bottom: 7px;
}

.time-picker-heading p {
    color: #898477;
    font-size: 12px;
}

.time-picker-preview {
    padding: 15px;
    margin-bottom: 22px;
    border-radius: 15px;
    background: linear-gradient(135deg,#f8f5ed,#f0e8d8);
    color: #182335;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 2px;
}

.time-picker-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: end;
    gap: 10px;
}

.time-picker-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.time-picker-field label {
    color: #81765f;
    font-size: 11px;
    font-weight: 700;
}

.time-picker-field select {
    width: 100%;
    height: 48px;
    padding: 0 10px;
    border: 1px solid #e5dfd3;
    border-radius: 11px;
    background: #faf9f6;
    color: #182335;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
}

.time-picker-field select:focus {
    border-color: #c5a35d;
    box-shadow: 0 0 0 3px rgba(197,163,93,.12);
}

.time-picker-separator {
    display: none;
}

.time-picker-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 25px;
}

.time-confirm-button,
.time-cancel-button {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.time-confirm-button {
    border: none;
    background: #182335;
    color: #f4e4bd;
}

.time-confirm-button:hover {
    background: #293950;
    box-shadow: 0 7px 18px rgba(24,35,53,.15);
}

.time-cancel-button {
    border: 1px solid #e8e2d8;
    background: #fff;
    color: #777064;
}

.time-cancel-button:hover {
    background: #f7f4ee;
}


/* =========================================
   الجوال
========================================= */

@media (max-width: 700px) {

    .task-form {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .task-form .task-title-input {
        grid-column: 1 / -1;
    }

    .task-form .task-add-button {
        grid-column: 1 / -1;
    }

    .time-picker-modal {
        padding: 27px 18px 20px;
    }

}

@media (max-width: 380px) {

    .time-picker-fields {
        gap: 6px;
    }

    .time-picker-field select {
        padding: 0 5px;
        font-size: 12px;
    }

}
/* =========================================
   MIRQAH - NEW LANDING EXPERIENCE
========================================= */

.mq-landing {
    background: #0b1320;
    color: #f8f3e8;
    overflow-x: hidden;
}

.mq-page {
    width: 100%;
    min-height: 100vh;
    position: relative;
    isolation: isolate;
}


/* الخلفية الرئيسية */

.mq-hero {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #0b1320;
}



.mq-hero-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.mq-hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent 70%,
        #0b1320 100%
    );
}


/* عناصر ثلاثية الأبعاد */

.mq-3d-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    transform-style: preserve-3d;
    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(255,255,255,.85),
            rgba(212,179,106,.30) 18%,
            rgba(212,179,106,.08) 48%,
            rgba(212,179,106,.02) 70%
        );
    border: 1px solid rgba(234,208,142,.35);
    box-shadow:
        inset -12px -15px 30px rgba(0,0,0,.35),
        0 0 35px rgba(212,179,106,.13);
    animation: mq-float 7s ease-in-out infinite;
}

.mq-orb-one {
    width: 75px;
    height: 75px;
    top: 23%;
    right: 8%;
}

.mq-orb-two {
    width: 43px;
    height: 43px;
    top: 48%;
    left: 9%;
    animation-delay: -3s;
}


/* درجات الارتقاء */

.mq-3d-step {
    position: absolute;
    bottom: 8%;
    width: 18px;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(
        135deg,
        #f4d99b,
        #a77c36 55%,
        #60451f
    );
    box-shadow:
        5px 7px 14px rgba(0,0,0,.35),
        inset 2px 1px 3px rgba(255,255,255,.45);
    transform: skewY(-8deg) rotateY(-18deg);
    animation: mq-step-float 5s ease-in-out infinite;
}

.mq-step-one {
    height: 35px;
    right: 17%;
}

.mq-step-two {
    height: 55px;
    right: calc(17% + 25px);
    animation-delay: -.6s;
}

.mq-step-three {
    height: 75px;
    right: calc(17% + 50px);
    animation-delay: -1.2s;
}


/* الأزرار */

.mq-entry {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 10px 20px 75px;
    margin-top: -8px;
}

.mq-entry-text {
    color: #e8d7b2;
    font-size: 17px;
    margin-bottom: 25px;
}

.mq-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mq-primary,
.mq-secondary {
    min-width: 165px;
    min-height: 52px;
    padding: 13px 25px;
    border-radius: 14px;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    transition: .3s ease;
}

.mq-primary {
    color: #182335;
    background: linear-gradient(
        135deg,
        #f1d99f,
        #c49b51,
        #ead08e
    );
    box-shadow:
        0 8px 25px rgba(212,179,106,.20),
        inset 0 1px 2px rgba(255,255,255,.65);
}

.mq-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 13px 32px rgba(212,179,106,.32);
}

.mq-secondary {
    color: #e8d7b2;
    border: 1px solid rgba(212,179,106,.45);
    background: rgba(255,255,255,.035);
    backdrop-filter: blur(12px);
}

.mq-secondary:hover {
    background: rgba(212,179,106,.10);
    transform: translateY(-4px);
}


/* عنوان المميزات */

.mq-features-section {
    position: relative;
    padding: 65px 7% 85px;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(212,179,106,.09),
            transparent 55%
        ),
        #0b1320;
}

.mq-section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 45px;
}

.mq-eyebrow {
    display: inline-block;
    color: #d4b36a;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.mq-section-heading h2 {
    color: #f0dfba;
    font-size: clamp(23px, 3vw, 34px);
    margin: 0 0 14px;
}

.mq-section-heading p {
    color: rgba(245,238,223,.65);
    line-height: 2;
    font-size: 15px;
}


/* بطاقات المميزات */

.mq-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 1100px;
    margin: auto;
}

.mq-feature-card {
    position: relative;
    min-height: 225px;
    padding: 30px 25px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(212,179,106,.20);
    background:
        linear-gradient(
            145deg,
            rgba(35,49,69,.95),
            rgba(15,24,39,.97)
        );
    box-shadow:
        0 15px 35px rgba(0,0,0,.20),
        inset 0 1px 0 rgba(255,255,255,.07);
    transform-style: preserve-3d;
    transition:
        transform .4s ease,
        border-color .4s ease,
        box-shadow .4s ease;
}

.mq-feature-card::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    top: -90px;
    left: -60px;
    border-radius: 50%;
    background: rgba(212,179,106,.12);
    filter: blur(25px);
}

.mq-feature-card:hover {
    transform: perspective(900px) translateY(-9px) rotateX(3deg);
    border-color: rgba(212,179,106,.55);
    box-shadow:
        0 23px 45px rgba(0,0,0,.30),
        0 0 25px rgba(212,179,106,.09);
}

.mq-feature-highlight {
    border-color: rgba(212,179,106,.48);
    background:
        linear-gradient(
            145deg,
            rgba(54,65,79,.98),
            rgba(25,35,51,.98)
        );
}

.mq-feature-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 23px;
    color: #f0d18e;
    font-size: 27px;
    background: linear-gradient(
        145deg,
        rgba(212,179,106,.22),
        rgba(212,179,106,.06)
    );
    border: 1px solid rgba(212,179,106,.35);
    box-shadow:
        0 8px 18px rgba(0,0,0,.20),
        inset 0 1px 2px rgba(255,255,255,.15);
    transform: translateZ(22px);
}

.mq-feature-card h3 {
    color: #f0dba9;
    font-size: 19px;
    margin: 0 0 12px;
}

.mq-feature-card p {
    color: rgba(245,238,223,.68);
    font-size: 14px;
    line-height: 2;
    margin: 0;
}

.mq-card-number {
    position: absolute;
    bottom: 15px;
    left: 20px;
    color: rgba(212,179,106,.22);
    font-size: 28px;
    font-weight: 800;
}


/* الخاتمة */

.mq-closing {
    text-align: center;
    padding: 45px 20px;
}

.mq-closing-symbol {
    width: 55px;
    height: 55px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    color: #f0d18e;
    font-size: 27px;
    border-radius: 17px;
    border: 1px solid rgba(212,179,106,.45);
    background: linear-gradient(
        145deg,
        #26364b,
        #111c2c
    );
    box-shadow:
        0 10px 25px rgba(0,0,0,.25),
        inset 0 1px 3px rgba(255,255,255,.15);
}

.mq-closing p {
    color: #e7d4ad;
    font-size: 17px;
}


/* التذييل */

.mq-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 22px 7%;
    color: rgba(232,215,178,.55);
    font-size: 13px;
    border-top: 1px solid rgba(212,179,106,.12);
}


/* الحركات */

@keyframes mq-float {
    0%, 100% {
        transform: translateY(0) rotateY(0deg);
    }

    50% {
        transform: translateY(-15px) rotateY(18deg);
    }
}

@keyframes mq-step-float {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -8px;
    }
}


/* الجوال */

@media (max-width: 750px) {

    .mq-features {
        grid-template-columns: 1fr;
        max-width: 460px;
    }

    .mq-features-section {
        padding: 45px 20px 60px;
    }

    .mq-entry {
        padding-bottom: 50px;
    }

    .mq-hero-image {
        min-height: 250px;
        object-fit: cover;
    }

    .mq-3d-orb {
        transform: scale(.65);
    }

    .mq-footer {
        flex-direction: column;
        text-align: center;
    }

}

/* زر محادثة رُقيّ العائم في الصفحة الرئيسية */
.ruqi-widget {
    position: fixed;
    z-index: 10000;
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
}

.ruqi-widget-toggle {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 50%;
    background: linear-gradient(145deg, #f0d18e, #c49b51);
    color: #182335;
    box-shadow: 0 8px 26px rgba(10,18,30,.3), inset 0 1px 2px rgba(255,255,255,.7);
    font: inherit;
    font-size: 25px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.ruqi-widget-toggle:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 30px rgba(10,18,30,.35), 0 0 0 5px rgba(212,179,106,.16);
}

.ruqi-widget-panel[hidden] {
    display: none !important;
}

.ruqi-widget-panel {
    position: absolute;
    left: 0;
    bottom: 72px;
    display: flex;
    flex-direction: column;
    width: min(365px, calc(100vw - 32px));
    height: min(500px, calc(100dvh - 120px));
    overflow: hidden;
    border: 1px solid rgba(212,179,106,.32);
    border-radius: 20px;
    background: #fffdf8;
    color: #182335;
    box-shadow: 0 18px 55px rgba(10,18,30,.28);
}

.ruqi-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 17px;
    background: linear-gradient(120deg, #182335, #293950);
    color: #f5e5be;
}

.ruqi-widget-header div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ruqi-widget-header span {
    color: rgba(245,229,190,.72);
    font-size: 11px;
}

.ruqi-widget-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: 23px;
    cursor: pointer;
}

.ruqi-widget-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 15px;
}

.ruqi-widget-message {
    max-width: 88%;
    padding: 11px 13px;
    border-radius: 15px;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ruqi-widget-message.assistant {
    align-self: flex-start;
    border: 1px solid rgba(197,163,93,.18);
    border-bottom-right-radius: 5px;
    background: #f5f1e8;
}

.ruqi-widget-message.user {
    align-self: flex-end;
    border-bottom-left-radius: 5px;
    background: #182335;
    color: #fff;
}

.ruqi-widget-status {
    min-height: 18px;
    margin: 0;
    padding: 0 15px;
    color: #81765f;
    font-size: 11px;
}

.ruqi-widget-form {
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(197,163,93,.2);
    background: #fff;
}

.ruqi-widget-form textarea {
    display: block;
    width: 100%;
    min-height: 54px;
    resize: vertical;
    padding: 10px 12px;
    border: 1px solid #e7dfcf;
    border-radius: 12px;
    background: #fcfaf5;
    color: #182335;
    font: inherit;
    font-size: 13px;
    outline: none;
}

.ruqi-widget-form textarea:focus {
    border-color: #c5a35d;
    box-shadow: 0 0 0 3px rgba(197,163,93,.12);
}

.ruqi-widget-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.ruqi-widget-mic,
.ruqi-widget-send {
    min-height: 38px;
    padding: 7px 13px;
    border-radius: 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.ruqi-widget-mic {
    border: 1px solid rgba(197,163,93,.45);
    background: #fff;
    color: #182335;
}

.ruqi-widget-mic[aria-pressed="true"] {
    background: #f5e6c2;
}

.ruqi-widget-send {
    border: 0;
    background: #182335;
    color: #fff;
}

.ruqi-widget-mic:disabled,
.ruqi-widget-send:disabled {
    opacity: .6;
    cursor: wait;
}

.ruqi-widget-voice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #81765f;
    font-size: 10px;
}

.ruqi-widget-voice[hidden] { display: none !important; }

.ruqi-widget-voice select {
    max-width: 72%;
    min-height: 30px;
    padding: 3px 8px;
    border: 1px solid #e7dfcf;
    border-radius: 8px;
    background: #fcfaf5;
    color: #182335;
    font: inherit;
}

@media (max-width: 480px) {
    .ruqi-widget {
        right: 16px;
        bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .ruqi-widget-panel {
        right: -2px;
        left: auto;
        width: min(365px, calc(100vw - 28px));
        height: min(470px, calc(100dvh - 105px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .ruqi-widget-toggle {
        transition: none;
    }
}

/* هوية عائمة مستوحاة من بوابة زجاجية صغيرة */
.ruqi-widget-toggle {
    position: relative;
    isolation: isolate;
    width: 68px;
    height: 68px;
    padding: 0;
    border: 1px solid rgba(238, 219, 169, .75);
    border-radius: 22px 50% 50% 50%;
    background: radial-gradient(circle at 32% 24%, #fff2c8 0 5%, transparent 6%),
        radial-gradient(circle at 35% 30%, #344965, #111d2d 55%, #080f19 100%);
    color: #f6e5b8;
    box-shadow: 0 14px 34px rgba(3, 10, 19, .42), inset 0 1px 1px rgba(255,255,255,.7), inset 0 -9px 18px rgba(0,0,0,.45);
    transform: rotate(-7deg);
}
.ruqi-widget-toggle::before,
.ruqi-widget-toggle::after {
    position: absolute;
    z-index: -1;
    inset: -7px;
    border: 1px solid rgba(218, 190, 128, .48);
    border-radius: 28px 50% 50% 50%;
    content: "";
    transform: rotate(24deg);
}
.ruqi-widget-toggle::after {
    inset: -12px;
    border-color: rgba(153, 183, 211, .3);
    transform: rotate(58deg);
}
.ruqi-widget-toggle:hover { transform: rotate(0) translateY(-4px) scale(1.04); }
.ruqi-widget-toggle.is-listening {
    animation: ruqi-listening-pulse 1.35s ease-in-out infinite;
    border-color: #f2d38f;
    box-shadow: 0 0 0 7px rgba(222, 196, 140, .16), 0 14px 36px rgba(3, 10, 19, .5);
}
@keyframes ruqi-listening-pulse {
    50% { box-shadow: 0 0 0 13px rgba(222, 196, 140, .04), 0 14px 36px rgba(3, 10, 19, .5); }
}
.ruqi-voice-status {
    position: absolute;
    left: 0;
    bottom: 80px;
    width: max-content;
    max-width: min(290px, calc(100vw - 40px));
    margin: 0;
    padding: 11px 15px;
    border: 1px solid rgba(222, 196, 140, .4);
    border-radius: 15px 15px 5px 15px;
    background: rgba(17, 29, 45, .96);
    color: #f5e9cb;
    font: 600 12px/1.7 Tahoma, Arial, sans-serif;
    box-shadow: 0 12px 30px rgba(3, 10, 19, .28);
}
.ruqi-voice-status:empty { display: none; }
.ruqi-orbit { position: absolute; inset: 8px; border: 1px solid rgba(255,237,190,.68); border-radius: 50%; }
.ruqi-orbit.orbit-a { transform: rotate(35deg) scaleX(.58); }
.ruqi-orbit.orbit-b { transform: rotate(-35deg) scaleX(.58); border-color: rgba(167,198,220,.64); }
.ruqi-core {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f8eac5, #c29d5d);
    color: #172338;
    font: 800 18px/1 Tahoma, Arial, sans-serif;
    box-shadow: 0 3px 12px rgba(0,0,0,.35), inset 0 1px 1px #fff;
}
.ruqi-core svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ruqi-widget-hint {
    position: absolute;
    right: 0;
    bottom: 78px;
    display: grid;
    gap: 3px;
    width: max-content;
    max-width: min(255px, calc(100vw - 110px));
    padding: 9px 12px;
    border: 1px solid rgba(222,196,140,.38);
    border-radius: 14px 14px 4px 14px;
    background: rgba(20,33,49,.95);
    color: #f4ead1;
    box-shadow: 0 8px 24px rgba(3,10,19,.22);
    font: 11px/1.5 Tahoma, Arial, sans-serif;
    pointer-events: none;
}
.ruqi-widget-panel { right: 0; left: auto; }
.ruqi-widget-hint strong { color: #e6cc91; font-size: 12px; }
.ruqi-widget-hint span { color: rgba(245,239,224,.78); }

/* سجلّ المهام والروتينات في صفحة الإحصائيات */
.activity-history-section { margin: 22px 0 28px; }
.activity-history-heading { margin: 0 0 15px; }
.activity-history-heading h2 { margin: 6px 0; color: #203b43; font-size: 20px; }
.activity-history-heading p { margin: 0; color: #687970; font-size: 12px; }
.activity-history-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; align-items: start; }
.activity-history-card { min-width: 0; padding: 18px; border: 1px solid rgba(48,76,69,.13); border-radius: 4px 19px 4px 19px; background: rgba(250,249,243,.92); box-shadow: 0 14px 34px rgba(39,59,54,.07); }
.activity-history-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(48,76,69,.11); }
.activity-history-card > header > div { display: flex; align-items: center; gap: 9px; }
.activity-history-card > header h3 { margin: 0; color: #203b43; font-size: 14px; }
.activity-history-card > header > strong { display: grid; place-items: center; min-width: 31px; height: 31px; padding: 0 7px; border-radius: 50%; background: rgba(122,158,126,.13); color: #31584f; font-size: 13px; }
.history-card-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px 12px 4px 12px; background: rgba(122,158,126,.12); color: #527461; font-size: 17px; }
.history-entry-list { display: grid; gap: 0; max-height: 340px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.history-entry-list > li { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; padding: 12px 0; border-bottom: 1px solid rgba(48,76,69,.09); }
.history-entry-list > li:last-child { border-bottom: 0; }
.history-entry-copy { min-width: 0; display: grid; gap: 4px; }
.history-entry-copy > strong { color: #263f3e; font-size: 12px; overflow-wrap: anywhere; }
.history-entry-copy small { color: #718078; font-size: 10px; }
.history-entry-copy p { margin: 2px 0 0; color: #61716a; font-size: 10px; line-height: 1.7; }
.history-status { flex: 0 0 auto; padding: 5px 7px; border-radius: 20px; background: rgba(93,133,111,.1); color: #68766a; font-size: 9px; }
.history-status.is-complete { background: rgba(93,133,111,.16); color: #31584f; }
.history-empty { margin: 16px 0 3px; color: #77847d; font-size: 11px; line-height: 1.7; }
.shared-history-tasks { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(48,76,69,.11); }
.shared-history-tasks h4 { margin: 0 0 2px; color: #45645a; font-size: 11px; }
body.dark-mode .activity-history-heading h2 { color: #eff0e2; }
body.dark-mode .activity-history-heading p { color: rgba(235,238,222,.65); }
body.dark-mode .activity-history-card { border-color: rgba(219,226,196,.13); background: rgba(24,39,49,.92); box-shadow: 0 18px 42px rgba(0,0,0,.17); }
body.dark-mode .activity-history-card > header { border-color: rgba(219,226,196,.12); }
body.dark-mode .activity-history-card > header h3,
body.dark-mode .history-entry-copy > strong { color: #eff0e2; }
body.dark-mode .history-entry-list > li,
body.dark-mode .shared-history-tasks { border-color: rgba(219,226,196,.1); }
body.dark-mode .history-entry-copy small,
body.dark-mode .history-entry-copy p,
body.dark-mode .history-empty { color: rgba(235,238,222,.62); }
body.dark-mode .history-status { background: rgba(191,207,160,.1); color: #d9e2c6; }
body.dark-mode .history-status.is-complete { background: rgba(191,207,160,.18); color: #dce3b3; }
body.dark-mode .shared-history-tasks h4 { color: #dce3b3; }

/* وضوح مضمون Plus في بطاقة صفحة الحساب عند إيقاف الوضع الليلي */
.account-page:not(.dark-mode) .account-card.premium-card { background: linear-gradient(135deg, #fffdf7 0%, #f5f1e7 58%, #e9eee5 100%) !important; color: #263f3b !important; }
.account-page:not(.dark-mode) .account-card.premium-card .premium-text h3,
.account-page:not(.dark-mode) .account-card.premium-card .premium-text h3 span { color: #263f3b !important; }
.account-page:not(.dark-mode) .account-card.premium-card .premium-text h3 span { color: #98763c !important; }
.account-page:not(.dark-mode) .account-card.premium-card .premium-kicker { color: #8b6c34 !important; }
.account-page:not(.dark-mode) .account-card.premium-card .premium-text p { color: #4f645d !important; }
.account-page:not(.dark-mode) .account-card.premium-card .premium-features span { border-color: rgba(75,103,84,.2) !important; background: rgba(255,255,255,.78) !important; color: #405750 !important; }

@media (max-width: 850px) {
    .activity-history-grid { grid-template-columns: 1fr; }
    .history-entry-list { max-height: 260px; }
}
.ruqi-widget-panel {
    width: min(378px, calc(100vw - 34px));
    height: min(535px, calc(100dvh - 125px));
    border: 1px solid rgba(222, 196, 140, .62);
    border-radius: 26px 26px 10px 26px;
    background: linear-gradient(150deg, rgba(27, 42, 61, .98), rgba(11, 19, 31, .99));
    color: #f5f0e5;
    box-shadow: 0 26px 75px rgba(2, 8, 16, .52), inset 0 1px rgba(255,255,255,.1);
    backdrop-filter: blur(20px);
}
.ruqi-widget-header {
    position: relative;
    min-height: 84px;
    justify-content: flex-start;
    padding: 15px 16px;
    background: radial-gradient(ellipse at 12% 30%, rgba(206,174,104,.19), transparent 46%), linear-gradient(115deg, #223550, #111c2c);
    border-bottom: 1px solid rgba(232,210,163,.19);
}
.ruqi-header-sigil {
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(234,211,158,.62);
    border-radius: 14px 50% 50%;
    background: radial-gradient(circle at 30% 20%, #f5e4b9, #ad8e57 70%);
    color: #18263a !important;
    font-size: 19px !important;
    font-weight: 800;
    box-shadow: 0 5px 18px rgba(0,0,0,.28);
}
.ruqi-widget-header div { gap: 5px; }
.ruqi-widget-header strong { color: #f4e6c4; font-size: 16px; }
.ruqi-widget-header span { color: rgba(234,229,215,.67); font-size: 11px; }
.ruqi-widget-close { margin-right: auto; }
.ruqi-widget-messages { padding: 18px 15px; }
.ruqi-widget-message { border-radius: 16px 16px 5px 16px; }
.ruqi-widget-message.assistant { border: 1px solid rgba(220,194,139,.25); background: rgba(240,233,214,.1); color: #f4efe4; }
.ruqi-widget-message.user { border-radius: 16px 16px 16px 5px; background: #d9c18d; color: #18263a; }
.ruqi-widget-status { color: #d8c18e; }
.ruqi-widget-form { border-top: 1px solid rgba(232,210,163,.16); background: rgba(5,11,19,.32); }
.ruqi-widget-form textarea { border-color: rgba(215,195,153,.24); border-radius: 14px 14px 5px 14px; background: rgba(239,236,225,.08); color: #fffaf0; }
.ruqi-widget-form textarea::placeholder { color: rgba(245,240,229,.48); }
.ruqi-widget-form textarea:focus { border-color: #d8bd7f; box-shadow: 0 0 0 3px rgba(197,163,93,.14); }
.ruqi-widget-mic { border: 1px solid rgba(222,196,140,.52); background: transparent; color: #f4e5c1; }
.ruqi-widget-mic[aria-pressed="true"] { background: rgba(216,189,127,.22); }
.ruqi-widget-send { border: 1px solid #e4ce9d; background: linear-gradient(135deg, #ead8ac, #b69152); color: #18263a; }
@media (prefers-reduced-motion: reduce) {
    .ruqi-widget-toggle,
    .ruqi-widget-toggle:hover { transform: none; }
}

/* الصفحة الافتتاحية: خلفية هادئة ومشهد ثلاثي الأبعاد */
.mq-hero {
    min-height: min(730px, 90vh);
    padding: clamp(50px, 8vw, 100px) 8%;
    background:
        radial-gradient(ellipse at 76% 25%, rgba(201,163,83,.19), transparent 30%),
        radial-gradient(ellipse at 12% 88%, rgba(69,101,139,.28), transparent 40%),
        linear-gradient(135deg, #1a2a40 0%, #0b1320 72%);
}

.mq-hero-content {
    width: min(58%, 670px);
}

.mq-hero-art {
    position: absolute;
    z-index: 1;
    left: 4%;
    top: 50%;
    width: min(39vw, 450px);
    height: min(39vw, 430px);
    min-width: 330px;
    min-height: 330px;
    transform: translateY(-50%);
    perspective: 1000px;
}

.mq-art-orbit {
    position: absolute;
    inset: 7% 9%;
    border: 1px solid rgba(220,190,125,.34);
    border-radius: 50%;
    transform: rotateX(65deg) rotateZ(-18deg);
    box-shadow: 0 0 38px rgba(212,179,106,.1), inset 0 0 30px rgba(212,179,106,.05);
    animation: mq-art-orbit 18s linear infinite;
}

.mq-art-platform {
    position: absolute;
    left: 11%;
    right: 10%;
    bottom: 7%;
    height: 28%;
    border: 1px solid rgba(240,209,142,.44);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(222,190,119,.88), rgba(108,78,34,.95));
    box-shadow: 18px 24px 30px rgba(0,0,0,.36), inset 0 2px 3px rgba(255,255,255,.5);
    transform: rotateX(61deg) rotateZ(-15deg);
}

.mq-art-staircase {
    position: absolute;
    left: 23%;
    bottom: 24%;
    width: 52%;
    height: 45%;
    transform: rotateX(4deg) rotateY(-18deg) rotateZ(-12deg);
    transform-style: preserve-3d;
}

.mq-art-step {
    position: absolute;
    bottom: 0;
    display: block;
    width: 30%;
    border: 1px solid rgba(255,239,199,.35);
    border-radius: 9px 9px 4px 4px;
    background: linear-gradient(145deg, #f2d997, #bc9145 60%, #735222);
    box-shadow: 9px 12px 17px rgba(0,0,0,.32), inset 3px 2px 4px rgba(255,255,255,.35);
    animation: mq-step-lift 4s ease-in-out infinite;
}

.mq-art-step.step-one { left: 0; height: 35%; }
.mq-art-step.step-two { left: 33%; height: 62%; animation-delay: -.5s; }
.mq-art-step.step-three { left: 66%; height: 88%; animation-delay: -1s; }

.mq-art-task-card {
    position: absolute;
    z-index: 2;
    top: 18%;
    left: 2%;
    width: min(245px, 68%);
    padding: 17px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(250,248,241,.96), rgba(226,219,203,.92));
    color: #182335;
    box-shadow: 0 20px 45px rgba(0,0,0,.32), inset 0 1px 1px #fff;
    transform: rotateY(12deg) rotateX(5deg) rotateZ(-5deg);
    animation: mq-card-float 5.5s ease-in-out infinite;
}

.mq-art-card-heading,
.mq-art-task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mq-art-card-heading { font-size: 11px; font-weight: 700; }
.mq-art-card-heading strong { color: #9b7736; font-size: 12px; }

.mq-art-progress {
    height: 7px;
    margin: 13px 0;
    overflow: hidden;
    border-radius: 10px;
    background: #ded7c8;
}

.mq-art-progress i {
    display: block;
    width: 66%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #9c7839, #d4b36a);
}

.mq-art-task-row {
    justify-content: flex-start;
    margin-top: 8px;
    color: #4b514f;
    font-size: 10px;
}

.mq-art-task-row b {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: #e8ddc1;
    color: #82642e;
}

@keyframes mq-art-orbit {
    from { rotate: 0deg; }
    to { rotate: 360deg; }
}

@keyframes mq-step-lift {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -7px; }
}

@keyframes mq-card-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}

.mq-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 750px) {
    .mq-hero {
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 58px 24px 26px;
    }

    .mq-hero-content {
        width: 100%;
    }

    .mq-hero-art {
        position: relative;
        left: auto;
        top: auto;
        width: min(82vw, 370px);
        height: min(82vw, 350px);
        min-width: 0;
        min-height: 0;
        margin: 18px auto 0;
        transform: none;
    }

    .mq-features {
        grid-template-columns: 1fr;
        max-width: 460px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mq-art-orbit,
    .mq-art-step,
    .mq-art-task-card {
        animation: none !important;
    }
}

/* مِرْقاة Plus: مساحة لونية ومشهد ثلاثي الأبعاد */
.plus-page {
    position: relative;
    width: min(1120px, 92%);
    padding: 42px 0 80px;
}

.plus-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 25px;
    min-height: 410px;
    max-width: none;
    margin: 0 0 42px;
    padding: clamp(35px, 6vw, 70px);
    overflow: hidden;
    border: 1px solid rgba(212,179,106,.3);
    border-radius: 32px;
    background:
        radial-gradient(ellipse at 15% 22%, rgba(212,179,106,.19), transparent 35%),
        linear-gradient(125deg, #1e3048, #0e1725 76%);
    box-shadow: 0 25px 60px rgba(15,25,39,.2), inset 0 1px 0 rgba(255,255,255,.08);
    text-align: right;
}

.plus-hero-copy { position: relative; z-index: 2; }

.plus-kicker {
    color: #dfc581;
    font-size: 12px;
    letter-spacing: .04em;
}

.plus-hero h2 {
    margin: 12px 0 0;
    color: #fffaf0;
    font-size: clamp(38px, 5vw, 60px);
}

.plus-hero h2 strong { color: #e3c77e; }

.plus-hero p {
    max-width: 520px;
    margin: 18px 0 20px;
    color: rgba(248,244,233,.72);
    font-size: 15px;
}

.plus-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f0d18e;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.plus-hero-link span { transition: transform .2s ease; }
.plus-hero-link:hover span { transform: translateY(3px); }

.plus-hero-visual {
    position: relative;
    width: min(100%, 360px);
    height: 310px;
    margin-inline: auto;
    perspective: 900px;
}

.plus-visual-glow {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: rgba(212,179,106,.2);
    filter: blur(40px);
}

.plus-orbit {
    position: absolute;
    z-index: 2;
    top: 31px;
    left: 50%;
    width: 124px;
    height: 124px;
    margin: 0;
    padding: 2px;
    transform: translateX(-50%) rotateX(14deg) rotateY(-18deg);
    background: linear-gradient(145deg, #f6dfa0, #a77e39 52%, #f4d993);
    box-shadow: 14px 20px 32px rgba(0,0,0,.35), inset 0 1px 2px rgba(255,255,255,.6);
    animation: plus-float 5s ease-in-out infinite;
}

.plus-symbol {
    gap: 3px;
    background: linear-gradient(145deg, #273a53, #111b2a);
    color: #f0d18e;
    font-size: 42px;
    font-weight: 800;
    text-shadow: 0 5px 12px rgba(0,0,0,.35);
}

.plus-symbol span { font-size: 22px; color: #fff2ce; }

.plus-visual-ring {
    position: absolute;
    top: 19px;
    left: 50%;
    width: 205px;
    height: 150px;
    border: 1px solid rgba(230,203,139,.5);
    border-radius: 50%;
    transform: translateX(-50%) rotateX(68deg) rotateZ(-23deg);
}

.plus-visual-ring.ring-two {
    width: 245px;
    height: 175px;
    top: 8px;
    transform: translateX(-50%) rotateX(68deg) rotateZ(24deg);
    opacity: .5;
}

.plus-visual-steps {
    position: absolute;
    right: 18%;
    bottom: 20px;
    width: 175px;
    height: 105px;
    transform: rotateX(5deg) rotateY(-19deg) rotateZ(-11deg);
    transform-style: preserve-3d;
}

.plus-visual-steps i {
    position: absolute;
    bottom: 0;
    display: block;
    width: 31%;
    border: 1px solid rgba(255,240,201,.4);
    border-radius: 7px 7px 3px 3px;
    background: linear-gradient(145deg, #f1d795, #a77b35 68%, #62491f);
    box-shadow: 7px 10px 14px rgba(0,0,0,.34), inset 2px 1px 3px rgba(255,255,255,.4);
}

.plus-visual-steps .step-a { right: 0; height: 42%; }
.plus-visual-steps .step-b { right: 34%; height: 70%; }
.plus-visual-steps .step-c { right: 68%; height: 100%; }

.plus-visual-card {
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: 44px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 145px;
    padding: 13px 15px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 14px;
    background: linear-gradient(145deg, #fbf8ef, #e6dcc5);
    color: #182335;
    box-shadow: 0 13px 27px rgba(0,0,0,.3);
    transform: rotateY(13deg) rotateZ(-5deg);
}

.plus-visual-card span { color: #77643d; font-size: 10px; }
.plus-visual-card strong { font-size: 13px; }
.plus-visual-card div { height: 5px; margin-top: 5px; overflow: hidden; border-radius: 9px; background: #d5c9ae; }
.plus-visual-card i { display: block; width: 74%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a78039, #ddc078); }

@keyframes plus-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -9px; }
}

.plus-pricing-card {
    max-width: 560px;
    border-color: rgba(212,179,106,.45);
    box-shadow: 0 28px 68px rgba(24,35,53,.22), inset 0 1px 0 rgba(255,255,255,.08);
}

.plus-benefit {
    min-height: 112px;
    border-color: rgba(197,163,93,.17);
    background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(248,245,237,.78));
}

.plus-benefit-icon {
    box-shadow: inset 0 1px 2px rgba(255,255,255,.8), 0 7px 15px rgba(24,35,53,.07);
}

body.dark-mode .plus-benefit {
    background: linear-gradient(145deg, rgba(34,48,67,.9), rgba(22,33,49,.9));
    border-color: rgba(212,179,106,.18);
}

@media (max-width: 760px) {
    .plus-page { padding-top: 25px; }

    .plus-hero {
        grid-template-columns: 1fr;
        gap: 2px;
        min-height: 0;
        padding: 35px 24px 22px;
        text-align: center;
    }

    .plus-hero p { margin-inline: auto; font-size: 13px; }
    .plus-hero-visual { width: min(100%, 330px); height: 275px; }
    .plus-visual-steps { bottom: 12px; }
    .plus-visual-card { bottom: 30px; left: 3px; }
    .plus-benefits-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .plus-orbit { animation: none; }
    .plus-hero-link span { transition: none; }
}

@media (prefers-reduced-motion: reduce) {

    .mq-3d-orb,
    .mq-3d-step {
        animation: none !important;
    }

    .mq-feature-card,
    .mq-primary,
    .mq-secondary {
        transition: none !important;
    }

}
.mq-3d-step {
    pointer-events: none !important;
}

/* الصفحة الافتتاحية */
.mq-hero {
    min-height: min(720px, 88vh);
    display: flex;
    align-items: center;
    padding: clamp(48px, 9vw, 110px) 9%;
    background:
        radial-gradient(ellipse at 78% 22%, rgba(212,179,106,.19), transparent 34%),
        radial-gradient(ellipse at 16% 82%, rgba(63,94,130,.28), transparent 40%),
        linear-gradient(135deg, #18283d 0%, #0b1320 70%);
}

.mq-hero-overlay {
    z-index: 0;
    opacity: .7;
}

.mq-hero-content {
    position: relative;
    z-index: 2;
    width: min(740px, 100%);
    text-align: right;
}

.mq-hero .mq-3d-orb,
.mq-hero .mq-3d-step {
    z-index: 1;
}

.mq-hero-brand-mark {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 28px;
    border: 1px solid rgba(212,179,106,.55);
    border-radius: 20px;
    color: #f0d18e;
    background: linear-gradient(145deg, #293c56, #111c2c);
    box-shadow: 0 12px 30px rgba(0,0,0,.25), inset 0 1px 2px rgba(255,255,255,.15);
    font-size: 28px;
    font-weight: 800;
}

.mq-hero-content .mq-eyebrow {
    color: #d4b36a;
    letter-spacing: .5px;
}

.mq-hero-content h1 {
    max-width: 700px;
    margin: 18px 0;
    color: #fbf5e9;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.28;
}

.mq-hero-content h1 span {
    color: #e4c77f;
}

.mq-hero-content p {
    max-width: 610px;
    margin: 0 0 30px;
    color: rgba(245,238,223,.76);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 2;
}

.mq-hero-cta {
    min-width: 190px;
}

.mq-install-button {
    min-height: 52px;
    padding: 13px 22px;
    border: 1px solid rgba(212,179,106,.5);
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    color: #f0dfba;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.mq-install-button:hover {
    background: rgba(212,179,106,.12);
}

@media (max-width: 750px) {
    .mq-hero {
        min-height: 72vh;
        padding: 65px 24px;
    }

    .mq-hero-content h1 {
        font-size: clamp(38px, 11vw, 58px);
    }

    .mq-entry .mq-actions {
        flex-direction: column;
    }

    .mq-install-button {
        width: min(100%, 330px);
        order: 3;
    }
}

/* هوية افتتاحية مستوحاة من السُلّم المعماري */
.mq-topbar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1240px, calc(100% - 64px));
    min-height: 86px;
    margin-inline: auto;
    border-bottom: 1px solid rgba(226, 211, 176, .14);
}
.mq-wordmark { display: inline-flex; align-items: center; gap: 11px; color: #f7f1e4; text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.mq-wordmark > span:last-child { display: grid; gap: 2px; }
.mq-wordmark small { color: rgba(235,228,211,.53); font-size: 9px; font-weight: 500; letter-spacing: .08em; }
.mq-wordmark-symbol {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(235,213,165,.65);
    border-radius: 13px 13px 13px 4px;
    background: linear-gradient(145deg, #e8d19b, #a98042);
    color: #142135;
    font-size: 20px;
    box-shadow: 0 7px 22px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.7);
}
.mq-topnav { display: flex; align-items: center; gap: clamp(18px, 4vw, 48px); }
.mq-topnav a { color: rgba(242,237,224,.72); text-decoration: none; font-size: 12px; transition: color .2s ease; }
.mq-topnav a:hover { color: #efd99f; }
.mq-topnav .mq-nav-action { padding: 10px 15px; border: 1px solid rgba(226,211,176,.24); border-radius: 999px; color: #f1e4c4; }
.mq-topnav .mq-nav-action span { margin-right: 6px; color: #d9ba76; }
.mq-hero {
    min-height: min(700px, 82vh);
    background:
        linear-gradient(90deg, transparent 49.9%, rgba(226,211,176,.035) 50%, transparent 50.1%),
        radial-gradient(ellipse at 27% 53%, rgba(185,145,75,.13), transparent 30%),
        radial-gradient(ellipse at 82% 18%, rgba(76,111,151,.22), transparent 38%),
        linear-gradient(125deg, #192a40, #0c1421 68%);
}
.mq-hero::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: .22;
    background-image: linear-gradient(rgba(221,205,167,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(221,205,167,.07) 1px, transparent 1px);
    background-size: 76px 76px;
    mask-image: linear-gradient(90deg, black, transparent 73%);
}
.mq-hero-content { width: min(610px, 55%); }
.mq-hero-content .mq-eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid rgba(220,190,125,.2); border-radius: 999px; background: rgba(9,16,27,.35); font-size: 11px; }
.mq-hero-content .mq-eyebrow::before { width: 6px; height: 6px; border-radius: 50%; background: #e3c77f; box-shadow: 0 0 12px #e3c77f; content: ""; }
.mq-hero-content h1 { font-size: clamp(42px, 6.1vw, 75px); letter-spacing: -.045em; line-height: 1.35; }
.mq-hero-content h1 span { position: relative; white-space: nowrap; }
.mq-hero-content h1 span::after { position: absolute; right: 0; bottom: -3px; width: 82%; height: 6px; border-radius: 50%; background: linear-gradient(90deg, transparent, #d6b66f, transparent); opacity: .75; content: ""; }
.mq-hero-content p { max-width: 490px; color: rgba(238,235,225,.68); font-size: 16px; }
.mq-hero-art { left: 5%; width: min(40vw, 470px); height: min(40vw, 450px); }
.mq-art-orbit { border-color: rgba(224,198,140,.42); box-shadow: 0 0 70px rgba(196,164,99,.12), inset 0 0 42px rgba(212,179,106,.06); }
.mq-art-platform { border-radius: 50%; background: linear-gradient(145deg, rgba(233,207,147,.85), rgba(91,69,39,.96)); }
.mq-art-task-card { border-radius: 5px 20px 20px 20px; }
.mq-art-caption { position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px; color: rgba(245,235,210,.78); font-size: 10px; letter-spacing: .08em; }
.mq-art-caption-top { top: 10%; right: -3%; padding: 9px 12px; border: 1px solid rgba(225,204,159,.28); border-radius: 3px 13px 13px 13px; background: rgba(10,18,30,.68); backdrop-filter: blur(12px); }
.mq-art-caption-top b { color: #e7cd92; font-size: 9px; }
.mq-art-caption-bottom { bottom: 2%; left: 2%; }
.mq-art-caption-bottom i { width: 22px; height: 1px; background: #d4b36a; box-shadow: 0 0 8px #d4b36a; }
.mq-entry { padding-top: 28px; }
.mq-entry-text { color: rgba(232,215,178,.72); font-size: 13px; letter-spacing: .04em; }
.mq-primary { border-radius: 4px 16px 16px 16px; }
.mq-secondary { border-radius: 4px 16px 16px 16px; }
.mq-features-section { border-top: 1px solid rgba(226,211,176,.12); }
.mq-feature-card { border-radius: 4px 22px 22px 22px; }
.mq-feature-highlight { transform: translateY(-10px); }
.ruqi-full-link { margin-right: auto; color: #dec894; font-size: 10px; text-decoration: none; white-space: nowrap; }
.ruqi-full-link span { display: inline-block; margin-right: 3px; transition: transform .2s ease; }
.ruqi-full-link:hover span { transform: translate(-2px, 2px); }
@media (max-width: 750px) {
    .mq-topbar { width: calc(100% - 36px); min-height: 70px; }
    .mq-topnav { gap: 13px; }
    .mq-topnav a { font-size: 10px; }
    .mq-topnav a:first-child { display: none; }
    .mq-hero { min-height: 0; padding: 48px 21px 25px; }
    .mq-hero-content { width: 100%; }
    .mq-hero-content h1 { font-size: clamp(39px, 10vw, 58px); }
    .mq-hero-art { width: min(86vw, 370px); height: min(86vw, 360px); }
    .mq-art-caption-top { right: 0; }
    .mq-art-caption-bottom { left: 3%; }
    .mq-feature-highlight { transform: none; }
    .ruqi-full-link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .mq-hero-art *, .mq-hero .mq-3d-orb, .mq-hero .mq-3d-step { animation: none !important; }
}

/* خلفية الموقع الموحدة: ملمس ضوئي هادئ خلف المحتوى */
body {
    min-height: 100vh;
    background-color: #f3f1eb;
    background-image:
        radial-gradient(ellipse at 8% 4%, rgba(119, 157, 146, .14), transparent 31rem),
        radial-gradient(ellipse at 94% 35%, rgba(211, 181, 121, .12), transparent 34rem),
        linear-gradient(145deg, #f7f5ef 0%, #f0f1ed 54%, #f5f0e7 100%);
    background-attachment: fixed;
    touch-action: pan-y;
}
body.dark-mode {
    background-color: #101a28;
    background-image:
        radial-gradient(ellipse at 9% 4%, rgba(76, 121, 112, .18), transparent 32rem),
        radial-gradient(ellipse at 95% 37%, rgba(168, 130, 69, .12), transparent 36rem),
        linear-gradient(145deg, #131f30 0%, #0e1724 58%, #17202b 100%);
    background-attachment: fixed;
}
body.mq-landing { overflow-x: hidden; overflow-y: auto !important; }
.brand-mark { padding: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; }
.brand-mark img { display: block; width: 42px; height: 42px; object-fit: contain; }
.mq-wordmark-symbol { padding: 2px; }
.mq-wordmark-symbol img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mq-hero-brand-mark { padding: 0; border: 0; background: transparent; box-shadow: none; }
.mq-hero-brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mq-hero-content { width: min(610px, 52%); }
.mq-hero-art { left: 3%; width: min(36vw, 420px); height: min(36vw, 420px); }

/* ألوان الروتينات المشتركة: أخضر ساج وطيني دافئ */
body.shared-routines-theme {
    --shared-sage: #66877c;
    --shared-sage-deep: #46695f;
    --shared-clay: #c98769;
    background-image:
        radial-gradient(ellipse at 7% 2%, rgba(112, 153, 138, .2), transparent 31rem),
        radial-gradient(ellipse at 94% 34%, rgba(202, 140, 112, .14), transparent 32rem),
        linear-gradient(145deg, #f3f2ec 0%, #edf2ee 55%, #f5eee8 100%);
}
body.shared-routines-theme .shared-hero-symbol,
body.shared-routines-theme .shared-routine-icon,
body.shared-routines-theme .shared-action-icon {
    border-color: rgba(102, 135, 124, .24);
    background: linear-gradient(145deg, #e5eee8, #d6e3da);
    color: var(--shared-sage-deep);
}
body.shared-routines-theme .shared-action-card,
body.shared-routines-theme .shared-routine-card {
    border-color: rgba(102, 135, 124, .19);
    background: linear-gradient(145deg, rgba(255,255,252,.97), rgba(238,244,238,.95));
    box-shadow: 0 16px 40px rgba(42, 69, 61, .075);
}
body.shared-routines-theme .shared-action-card.join-card { background: linear-gradient(145deg, #fffaf4, #f5eae2); border-color: rgba(201,135,105,.22); }
body.shared-routines-theme .shared-action-card.join-card .shared-action-icon { background: #f3e2d8; color: #a9664d; border-color: rgba(201,135,105,.25); }
body.shared-routines-theme .shared-card-kicker,
body.shared-routines-theme .shared-routine-card-footer { color: var(--shared-sage-deep); }
body.shared-routines-theme .join-card .shared-card-kicker { color: #a9664d; }
body.shared-routines-theme .shared-routine-card-footer { background: rgba(102,135,124,.12); }
body.shared-routines-theme .shared-routine-card:hover { border-color: rgba(102,135,124,.42); box-shadow: 0 22px 48px rgba(42,69,61,.12); }
body.shared-routines-theme .shared-primary-button { border-color: transparent; background: linear-gradient(135deg, #66877c, #46695f); color: #fff; box-shadow: 0 8px 20px rgba(70,105,95,.2); }
body.shared-routines-theme .shared-primary-button:hover { background: linear-gradient(135deg, #55796e, #385b51); }
body.shared-routines-theme .shared-routine-card-top .shared-routine-open { color: #7c988c; }
body.shared-routines-theme.dark-mode {
    background-image:
        radial-gradient(ellipse at 7% 2%, rgba(74, 117, 103, .23), transparent 31rem),
        radial-gradient(ellipse at 94% 34%, rgba(146, 91, 70, .14), transparent 32rem),
        linear-gradient(145deg, #14221f 0%, #111b23 58%, #211e21 100%);
}
body.shared-routines-theme.dark-mode .shared-action-card,
body.shared-routines-theme.dark-mode .shared-routine-card {
    border-color: rgba(139, 174, 155, .19);
    background: linear-gradient(145deg, rgba(30,46,44,.97), rgba(22,34,39,.97));
    box-shadow: 0 16px 40px rgba(0,0,0,.2);
}
body.shared-routines-theme.dark-mode .shared-action-card.join-card { background: linear-gradient(145deg, #392c2a, #29252a); border-color: rgba(213,155,124,.2); }
body.shared-routines-theme.dark-mode .shared-action-content h3,
body.shared-routines-theme.dark-mode .shared-routine-card-content h3 { color: #edf3ec; }
body.shared-routines-theme.dark-mode .shared-action-content p,
body.shared-routines-theme.dark-mode .shared-routine-card-content p { color: #b9c4bd; }
body.shared-routines-theme.dark-mode .shared-hero-symbol,
body.shared-routines-theme.dark-mode .shared-routine-icon,
body.shared-routines-theme.dark-mode .shared-action-icon { background: rgba(117,157,139,.16); color: #b5d0c0; }
body.shared-routines-theme.dark-mode .shared-action-card.join-card .shared-action-icon { background: rgba(201,135,105,.16); color: #edb89e; }
body.shared-routines-theme.dark-mode .join-card .shared-card-kicker { color: #edb89e; }
body.shared-routines-theme.dark-mode .shared-primary-button { background: linear-gradient(135deg, #729688, #507468); color: #0d1917; }

body.shared-routine-detail-theme {
    background-image:
        radial-gradient(ellipse at 8% 4%, rgba(119,157,146,.16), transparent 31rem),
        radial-gradient(ellipse at 94% 35%, rgba(211,181,121,.1), transparent 34rem),
        linear-gradient(145deg, #f7f5ef, #eff2ee 58%, #f3eee8);
}
body.shared-routine-detail-theme .shared-invite-card,
body.shared-routine-detail-theme .shared-members-card,
body.shared-routine-detail-theme .shared-tasks-card,
body.shared-routine-detail-theme .routine-management-card {
    border-color: rgba(102,135,124,.18);
    background: linear-gradient(145deg, rgba(255,255,252,.98), rgba(240,244,239,.96));
    box-shadow: 0 15px 38px rgba(42,69,61,.07);
}
body.shared-routine-detail-theme .shared-card-icon,
body.shared-routine-detail-theme .member-avatar,
body.shared-routine-detail-theme .shared-task-marker { border-color: rgba(102,135,124,.2); background: #e3eee7; color: #4b7164; }
body.shared-routine-detail-theme .invite-code-box { border-color: rgba(102,135,124,.4); background: #eff5f0; }
body.shared-routine-detail-theme .invite-code-box button,
body.shared-routine-detail-theme .shared-copy-button,
body.shared-routine-detail-theme .shared-primary-button { border-color: transparent; background: linear-gradient(135deg, #66877c, #46695f); color: #fff; }
body.shared-routine-detail-theme .shared-primary-button:hover { background: linear-gradient(135deg, #55796e, #385b51); }
body.shared-routine-detail-theme.dark-mode {
    background-image:
        radial-gradient(ellipse at 8% 4%, rgba(74,117,103,.2), transparent 31rem),
        radial-gradient(ellipse at 94% 35%, rgba(168,130,69,.1), transparent 34rem),
        linear-gradient(145deg, #14221f, #111b23 58%, #1c2024);
}
body.shared-routine-detail-theme.dark-mode .shared-invite-card,
body.shared-routine-detail-theme.dark-mode .shared-members-card,
body.shared-routine-detail-theme.dark-mode .shared-tasks-card,
body.shared-routine-detail-theme.dark-mode .routine-management-card { border-color: rgba(139,174,155,.18); background: linear-gradient(145deg, #1c2b2a, #17232a); }
body.shared-routine-detail-theme.dark-mode .shared-card-heading h3,
body.shared-routine-detail-theme.dark-mode .shared-members-card .shared-section-heading h3,
body.shared-routine-detail-theme.dark-mode .shared-tasks-card .shared-section-heading h3,
body.shared-routine-detail-theme.dark-mode .routine-management-card h3 { color: #eaf1eb; }
body.shared-routine-detail-theme.dark-mode .invite-code-box { border-color: rgba(139,174,155,.35); background: #172522; }
body.shared-routine-detail-theme.dark-mode .invite-code-box code { color: #e8efe8; }
.mq-closing-symbol img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 750px) {
    .mq-hero-art {
        position: relative;
        top: auto;
        left: auto;
        align-self: center;
        width: min(86vw, 370px);
        height: min(86vw, 360px);
        min-width: 0;
        min-height: 0;
        margin: 10px auto 0;
        transform: none;
    }
    .mq-art-caption-top { right: 0; }
}

/* =========================================================
   مِرْقاة — تصميم «درجات الضوء»
   طبقة تجديد للصفحة الافتتاحية ولوحة المهام
========================================================= */
:root {
    --mq-ink: #111c2b;
    --mq-ink-soft: #1b2b3b;
    --mq-gold: #e1c27b;
    --mq-sage: #91b9ad;
    --mq-coral: #dd987f;
    --mq-paper: #f6f3eb;
    --mq-line: rgba(226, 201, 144, .19);
}

/* افتتاحية تشبه منصة معمارية عائمة */
body.mq-landing {
    color: #f6f1e5;
    background: #0e1724;
    background-image:
        radial-gradient(ellipse at 75% 28%, rgba(71, 111, 108, .22), transparent 34rem),
        radial-gradient(ellipse at 12% 78%, rgba(168, 119, 74, .14), transparent 32rem),
        linear-gradient(145deg, #101b2a 0%, #111b27 48%, #0d1621 100%);
}
body.mq-landing::before {
    position: fixed;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    content: "";
    background-image: linear-gradient(rgba(232,214,174,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(232,214,174,.045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, #000, transparent 86%);
}
.mq-page { position: relative; z-index: 1; width: min(1320px, 100%); padding: 0 clamp(18px, 5vw, 76px) 70px; }
.mq-topbar {
    position: sticky; top: 12px; z-index: 30;
    width: 100%; min-height: 76px; margin: 12px auto 0; padding: 11px 17px 11px 13px;
    border: 1px solid rgba(235,219,181,.13); border-radius: 20px;
    background: rgba(15,25,38,.74); box-shadow: 0 16px 50px rgba(0,0,0,.2);
    backdrop-filter: blur(22px);
}
.mq-wordmark { gap: 12px; color: #f7f0df; }
.mq-wordmark-symbol { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(145deg, rgba(226,199,139,.16), rgba(226,199,139,.025)); border: 1px solid rgba(226,199,139,.22); }
.mq-wordmark-symbol img { width: 34px; height: 34px; }
.mq-wordmark > span:last-child { font-size: 17px; font-weight: 800; letter-spacing: -.04em; }
.mq-wordmark small { margin-top: 4px; color: rgba(239,231,211,.52); font-size: 9px; letter-spacing: .02em; }
.mq-topnav { gap: clamp(15px, 3vw, 35px); }
.mq-topnav a { color: rgba(245,239,225,.72); font-size: 12px; transition: color .25s, transform .25s; }
.mq-topnav a:hover { color: var(--mq-gold); transform: translateY(-2px); }
.mq-topnav .mq-nav-action { padding: 12px 17px; border: 1px solid rgba(225,194,123,.42); border-radius: 5px 14px 14px 14px; background: linear-gradient(135deg, rgba(225,194,123,.15), rgba(225,194,123,.04)); color: #f2dfae; }
.mq-hero {
    position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
    min-height: min(740px, calc(100svh - 105px)); margin: 16px 0 0; padding: clamp(48px, 8vw, 110px) clamp(12px, 3vw, 42px);
    border: 1px solid rgba(226,201,144,.11); border-radius: 34px;
    background: radial-gradient(ellipse at 78% 51%, rgba(102,141,132,.13), transparent 36%), linear-gradient(130deg, rgba(22,35,49,.76), rgba(13,22,33,.38));
    box-shadow: inset 0 1px rgba(255,255,255,.035), 0 34px 100px rgba(0,0,0,.2);
    overflow: hidden;
}
.mq-hero::before { position: absolute; z-index: -1; inset: 0; content: ""; opacity: .36; background: radial-gradient(circle at center, rgba(255,255,255,.11) 1px, transparent 1.6px); background-size: 28px 28px; mask-image: radial-gradient(ellipse at 72% 48%, #000, transparent 52%); }
.mq-hero::after { position: absolute; z-index: -1; content: "مِرْقاة / 01"; left: 28px; bottom: 24px; color: rgba(238,220,179,.27); font: 10px/1.4 Tahoma, sans-serif; letter-spacing: .18em; direction: ltr; }
.mq-hero-overlay { display: none; }
.mq-hero-content { width: min(590px, 100%); padding: 18px 0; }
.mq-hero-brand-mark { width: 62px; height: 62px; margin-bottom: 23px; filter: drop-shadow(0 12px 30px rgba(225,194,123,.22)); }
.mq-hero-content .mq-eyebrow { padding: 9px 13px; border: 1px solid rgba(225,194,123,.24); background: rgba(225,194,123,.07); color: #e7cf9d; letter-spacing: .03em; }
.mq-hero-content .mq-eyebrow::before { width: 7px; height: 7px; background: #a7c9b9; box-shadow: 0 0 14px rgba(167,201,185,.9); }
.mq-hero-content h1 { margin: 22px 0 18px; color: #f8f3e8; font-size: clamp(42px, 5vw, 69px); font-weight: 800; line-height: 1.38; letter-spacing: -.055em; }
.mq-hero-content h1 span { color: #e7ca8a; text-shadow: 0 8px 38px rgba(225,194,123,.22); }
.mq-hero-content h1 span::after { bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, #e7ca8a, transparent); }
.mq-hero-content p { max-width: 440px; color: rgba(238,235,225,.68); font-size: 15px; line-height: 2; }
.mq-hero-cta { min-height: 53px; margin-top: 26px; padding: 0 23px; border: 1px solid rgba(255,255,255,.25); border-radius: 5px 18px 18px 18px; background: linear-gradient(135deg, #e8d39e, #c59f5b); box-shadow: 0 14px 35px rgba(186,145,75,.2); color: #182434; font-weight: 800; transition: transform .25s, box-shadow .25s; }
.mq-hero-cta:hover { transform: translateY(-4px); box-shadow: 0 20px 42px rgba(186,145,75,.29); }
.mq-hero-art { left: 3%; width: min(39vw, 465px); height: min(39vw, 455px); filter: drop-shadow(0 30px 45px rgba(0,0,0,.25)); }
.mq-art-orbit { border-color: rgba(225,194,123,.34); box-shadow: 0 0 80px rgba(111,160,148,.11), inset 0 0 55px rgba(225,194,123,.055); transform: rotateX(62deg) rotateZ(-19deg); }
.mq-art-platform { width: 66%; height: 25%; bottom: 12%; transform: rotateX(58deg) rotateZ(-18deg); border: 1px solid rgba(247,221,164,.48); background: linear-gradient(140deg, rgba(230,202,140,.88), rgba(112,87,52,.95) 58%, rgba(56,67,68,.9)); box-shadow: 0 30px 65px rgba(0,0,0,.4), inset 0 4px 8px rgba(255,255,255,.32); }
.mq-art-step { border-color: rgba(236,214,163,.5); background: linear-gradient(145deg, #e6d09d, #a88a55 60%, #647a70); box-shadow: 0 20px 30px rgba(0,0,0,.3), inset 0 2px 6px rgba(255,255,255,.42); }
.mq-art-task-card { border: 1px solid rgba(229,210,168,.25); background: linear-gradient(145deg, rgba(31,47,61,.95), rgba(15,25,38,.93)); box-shadow: 0 24px 65px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.1); backdrop-filter: blur(18px); }
.mq-art-card-heading span, .mq-art-task-row { color: #ece7da; }
.mq-art-progress { background: rgba(255,255,255,.1); }
.mq-art-progress i { background: linear-gradient(90deg, #a8c9b9, #e8d19b); box-shadow: 0 0 12px rgba(168,201,185,.5); }
.mq-art-task-row b { color: #172538; background: #afcbbc; }
.mq-art-caption { letter-spacing: .02em; }
.mq-art-caption-top { border-color: rgba(225,194,123,.28); background: rgba(15,25,38,.8); }
.mq-3d-orb { border: 1px solid rgba(220,193,135,.24); box-shadow: inset -14px -20px 35px rgba(0,0,0,.26), inset 8px 8px 30px rgba(255,255,255,.12), 0 18px 45px rgba(0,0,0,.25); }
.mq-orb-one { background: radial-gradient(circle at 30% 26%, #d9c58e, #8fae9e 42%, #263c4d 76%); }
.mq-orb-two { background: radial-gradient(circle at 30% 24%, #e8c9aa, #b97c69 48%, #463b49 80%); }
.mq-entry { padding: 38px 0 70px; text-align: center; }
.mq-entry-text { color: rgba(232,215,178,.72); }
.mq-actions { justify-content: center; }
.mq-primary, .mq-secondary, .mq-install-button { min-height: 48px; }
.mq-features-section { padding: clamp(50px, 8vw, 100px) 0; border-top: 1px solid var(--mq-line); }
.mq-section-heading .mq-eyebrow { color: #dfc48a; }
.mq-section-heading h2 { color: #f2eddf; font-size: clamp(28px, 4vw, 43px); }
.mq-section-heading p { color: rgba(235,231,219,.61); }
.mq-features { gap: 17px; }
.mq-feature-card { position: relative; min-height: 245px; padding: 27px 24px; border: 1px solid rgba(231,214,172,.14); border-radius: 5px 24px 24px 24px; background: linear-gradient(145deg, rgba(30,44,57,.78), rgba(19,30,43,.78)); box-shadow: 0 22px 55px rgba(0,0,0,.14); transition: transform .3s, border-color .3s, background .3s; }
.mq-feature-card:hover { transform: translateY(-7px); border-color: rgba(225,194,123,.42); background: linear-gradient(145deg, rgba(41,58,68,.92), rgba(20,32,44,.92)); }
.mq-feature-highlight { transform: translateY(-12px); border-color: rgba(225,194,123,.3); }
.mq-feature-icon { display: grid; place-items: center; width: 47px; height: 47px; margin-bottom: 24px; border: 1px solid rgba(225,194,123,.28); border-radius: 4px 15px 15px; background: rgba(225,194,123,.09); color: #e7ca8a; font-size: 22px; }
.mq-feature-card h3 { color: #f3ecda; }
.mq-feature-card p { color: rgba(235,231,219,.59); line-height: 1.9; }
.mq-card-number { color: rgba(225,194,123,.44); }
.mq-closing { margin: 35px 0 50px; padding: 50px 20px; border-block: 1px solid var(--mq-line); text-align: center; }
.mq-closing-symbol { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 18px; border: 1px solid rgba(225,194,123,.35); border-radius: 5px 17px 17px; background: rgba(225,194,123,.08); color: #e7ca8a; }
.mq-closing p { color: #f2ead7; font-size: clamp(21px, 3vw, 30px); }
.mq-footer { color: rgba(238,231,212,.46); }

/* لوحة المهام: ورق دافئ وبطاقات عميقة */
body:not(.mq-landing) { color: #1a2938; }
body:not(.mq-landing) .topbar { position: sticky; top: 0; border-bottom: 1px solid rgba(41,58,63,.09); background: rgba(249,248,243,.82); box-shadow: 0 12px 36px rgba(29,46,48,.055); backdrop-filter: blur(20px); }
body:not(.mq-landing) .container { width: min(1040px, 92%); margin: clamp(25px, 5vw, 58px) auto 90px; }
body:not(.mq-landing) .welcome { position: relative; margin-bottom: 25px; padding: clamp(24px, 4vw, 43px); overflow: hidden; border: 1px solid rgba(226,201,144,.19); border-radius: 6px 28px 28px 28px; background: radial-gradient(circle at 12% 16%, rgba(146,184,169,.24), transparent 13rem), linear-gradient(115deg, #142437, #1b3440 66%, #435548); box-shadow: 0 23px 54px rgba(26,46,53,.15); }
body:not(.mq-landing) .welcome::after { position: absolute; left: 5%; top: -54px; width: 220px; height: 220px; border: 1px solid rgba(230,203,145,.25); border-radius: 50%; box-shadow: 0 0 0 22px rgba(230,203,145,.035), 0 0 0 48px rgba(230,203,145,.025); content: ""; pointer-events: none; }
body:not(.mq-landing) .welcome-small { position: relative; z-index: 1; color: #d7c08a; }
body:not(.mq-landing) .welcome h2 { position: relative; z-index: 1; color: #f7f1e5; font-size: clamp(30px, 5vw, 43px); letter-spacing: -.04em; }
body:not(.mq-landing) .welcome-text { position: relative; z-index: 1; color: rgba(244,240,229,.68); }
body:not(.mq-landing) .main-card { padding: clamp(20px, 4vw, 36px); border: 1px solid rgba(43,62,67,.1); border-radius: 6px 26px 26px 26px; background: rgba(255,254,250,.83); box-shadow: 0 22px 58px rgba(38,53,53,.085), inset 0 1px #fff; backdrop-filter: blur(12px); }
body:not(.mq-landing) .progress-number { color: #698879; }
body:not(.mq-landing) .progress-bar { height: 10px; background: #e8e7df; }
body:not(.mq-landing) .progress-fill { background: linear-gradient(90deg, #688c7b, #b9b078, #e2c17b); box-shadow: 0 0 16px rgba(128,157,126,.23); }
body:not(.mq-landing) .task-item { border-color: rgba(46,67,67,.1); border-radius: 5px 15px 15px 15px; transition: transform .2s, border-color .2s, box-shadow .2s; }
body:not(.mq-landing) .task-item:hover { transform: translateY(-2px); border-color: rgba(105,139,122,.35); box-shadow: 0 9px 22px rgba(39,61,57,.07); }
body:not(.mq-landing) .task-form input, body:not(.mq-landing) .task-priority, body:not(.mq-landing) .task-time-trigger { border-radius: 5px 13px 13px 13px; }
body:not(.mq-landing) .task-add-button { border-radius: 5px 13px 13px 13px; background: linear-gradient(135deg, #203a45, #42695b); }
body:not(.mq-landing) .brand-mark img { width: 45px; height: 45px; }
body.dark-mode:not(.mq-landing) .topbar { background: rgba(18,30,42,.86); border-color: rgba(225,194,123,.12); }
body.dark-mode:not(.mq-landing) .welcome { border-color: rgba(225,194,123,.17); background: radial-gradient(circle at 12% 16%, rgba(146,184,169,.12), transparent 13rem), linear-gradient(115deg, #122131, #162c36 66%, #27382f); }
body.dark-mode:not(.mq-landing) .welcome h2 { color: #f5efe1; }
body.dark-mode:not(.mq-landing) .main-card { border-color: rgba(226,215,184,.1); background: rgba(24,37,49,.91); box-shadow: 0 22px 58px rgba(0,0,0,.16); }
body.dark-mode:not(.mq-landing) .card-header h3, body.dark-mode:not(.mq-landing) .tasks-title h3 { color: #f0eadb; }

@media (max-width: 800px) {
    .mq-page { padding-inline: 14px; }
    .mq-topbar { top: 7px; min-height: 64px; margin-top: 7px; padding: 8px 10px; border-radius: 16px; }
    .mq-wordmark-symbol { width: 40px; height: 40px; }
    .mq-wordmark-symbol img { width: 29px; height: 29px; }
    .mq-topnav { gap: 9px; }
    .mq-topnav a { font-size: 10px; }
    .mq-topnav .mq-nav-action { padding: 10px 12px; }
    .mq-hero { grid-template-columns: 1fr; min-height: auto; margin-top: 9px; padding: 38px 22px 22px; border-radius: 24px; }
    .mq-hero-content { text-align: center; }
    .mq-hero-content p { margin-inline: auto; }
    .mq-hero-art { position: relative; inset: auto; align-self: center; width: min(78vw, 350px); height: min(78vw, 350px); margin: 18px auto 0; transform: none; }
    .mq-hero-brand-mark { margin-inline: auto; }
    .mq-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mq-feature-highlight { transform: none; }
}
@media (max-width: 500px) {
    .mq-topnav a:first-child { display: none; }
    .mq-hero-content h1 { font-size: clamp(35px, 10vw, 49px); }
    .mq-hero-content p { font-size: 13px; }
    .mq-features { grid-template-columns: 1fr; }
    .mq-feature-card { min-height: 0; }
    body:not(.mq-landing) .container { width: min(100% - 24px, 600px); margin-top: 22px; }
    body:not(.mq-landing) .topbar { gap: 10px; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .mq-feature-card, .mq-hero-cta, .mq-topnav a, body:not(.mq-landing) .task-item { transition: none !important; }
    .mq-feature-card:hover, .mq-hero-cta:hover, body:not(.mq-landing) .task-item:hover { transform: none; }
}


/* مِرْقاة — توحيد الثيم على جميع الصفحات */
/* مِرْقاة — هوية مسار الضوء */
:root {
    --xp-night: #101a27;
    --xp-deep: #162635;
    --xp-cream: #f4efe2;
    --xp-lime: #d4dfaa;
    --xp-copper: #d79672;
    --xp-mist: #9ab9b3;
}

/* افتتاحية: فضاء داكن، بوابة هندسية ودرجات زجاجية */
body.mq-landing {
    color: var(--xp-cream);
    background-color: var(--xp-night);
    background-image:
        radial-gradient(ellipse at 75% 20%, rgba(94, 143, 137, .19), transparent 34rem),
        radial-gradient(ellipse at 3% 84%, rgba(199, 125, 92, .12), transparent 30rem),
        linear-gradient(150deg, #101a27 0%, #15232e 54%, #101923 100%);
}
body.mq-landing::before {
    position: fixed;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: .13;
    background-image: linear-gradient(rgba(232, 226, 209, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(232, 226, 209, .12) 1px, transparent 1px);
    background-size: 90px 90px;
    mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.mq-page { width: min(1440px, 100%); padding: 0 clamp(15px, 4vw, 58px) 50px; }
.mq-topbar {
    position: sticky;
    top: 10px;
    z-index: 30;
    width: 100%;
    min-height: 70px;
    margin-top: 10px;
    padding: 9px 14px;
    border: 1px solid rgba(233, 227, 210, .11);
    border-radius: 17px;
    background: rgba(15, 26, 38, .78);
    box-shadow: 0 16px 50px rgba(0, 0, 0, .22);
    backdrop-filter: blur(20px);
}
.mq-wordmark { color: #f5f0e4; }
.mq-wordmark-symbol { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(212, 223, 170, .22); border-radius: 15px 5px 15px 15px; background: rgba(212, 223, 170, .06); }
.mq-wordmark-symbol img { width: 34px; height: 34px; }
.mq-wordmark small { color: rgba(236, 232, 217, .49); }
.mq-topnav a { color: rgba(241, 238, 224, .73); }
.mq-topnav .mq-nav-action { border: 1px solid rgba(212, 223, 170, .3); border-radius: 5px 14px 14px; background: rgba(212, 223, 170, .08); color: var(--xp-lime); }

.mq-hero-portal {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
    min-height: min(760px, calc(100svh - 96px));
    margin-top: 13px;
    padding: clamp(36px, 7vw, 90px) clamp(26px, 6vw, 90px);
    overflow: hidden;
    border: 1px solid rgba(219, 218, 197, .11);
    border-radius: 4px 36px 4px 36px;
    background:
        linear-gradient(115deg, rgba(17, 29, 42, .96) 5%, rgba(19, 39, 48, .84) 52%, rgba(25, 43, 48, .54)),
        radial-gradient(ellipse at 76% 46%, rgba(146, 185, 167, .14), transparent 36%);
    box-shadow: 0 42px 110px rgba(0, 0, 0, .26), inset 0 1px rgba(255, 255, 255, .045);
}
.mq-hero-portal::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    opacity: .23;
    background: radial-gradient(rgba(236, 230, 210, .45) .7px, transparent .9px);
    background-size: 23px 23px;
    mask-image: radial-gradient(ellipse at 76% 47%, #000, transparent 58%);
}
.mq-hero-portal::after { position: absolute; z-index: -1; right: 4%; bottom: -150px; width: 470px; height: 470px; border: 1px solid rgba(217, 212, 184, .12); border-radius: 50%; box-shadow: 0 0 0 34px rgba(217, 212, 184, .025), 0 0 0 75px rgba(217, 212, 184, .02); content: ""; }
.portal-copy { position: relative; z-index: 3; max-width: 520px; padding-bottom: 34px; }
.portal-copy .mq-hero-brand-mark { width: 60px; height: 60px; margin: 0 0 18px; filter: drop-shadow(0 8px 26px rgba(212, 223, 170, .2)); }
.portal-copy .mq-hero-brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.portal-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 9px 13px; border: 1px solid rgba(212, 223, 170, .23); border-radius: 3px 12px 12px; background: rgba(212, 223, 170, .055); color: #d9dfb9; font-size: 11px; letter-spacing: .03em; }
.portal-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #d79672; box-shadow: 0 0 15px rgba(215, 150, 114, .85); }
.portal-copy h1 { margin: 26px 0 18px; color: #f5f0e3; font-size: clamp(46px, 6.4vw, 86px); font-weight: 800; line-height: 1.27; letter-spacing: -.065em; }
.portal-copy h1 em { position: relative; color: var(--xp-lime); font-style: normal; text-shadow: 0 8px 45px rgba(212, 223, 170, .18); }
.portal-copy h1 em::after { position: absolute; right: 0; bottom: -3px; width: 80%; height: 2px; background: linear-gradient(90deg, transparent, var(--xp-lime), transparent); content: ""; }
.portal-copy > p { max-width: 420px; color: rgba(239, 237, 222, .64); font-size: 15px; line-height: 2.1; }
.portal-actions { display: flex; align-items: center; gap: 24px; margin-top: 29px; }
.portal-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 56px; padding: 0 20px; border: 1px solid rgba(245, 238, 216, .3); border-radius: 3px 17px 17px; background: linear-gradient(115deg, #dce3b3, #c6c991 60%, #bdad7d); box-shadow: 0 15px 36px rgba(153, 161, 112, .2); color: #1b2a32; font-size: 13px; font-weight: 800; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.portal-cta span { font-size: 19px; }
.portal-cta:hover { transform: translateY(-4px); box-shadow: 0 21px 44px rgba(153, 161, 112, .28); }
.portal-login { color: rgba(245, 240, 226, .68); font-size: 12px; text-decoration-color: rgba(245, 240, 226, .3); text-underline-offset: 5px; }
.portal-proof { display: flex; align-items: center; gap: 11px; margin-top: 40px; color: rgba(239, 237, 222, .47); font-size: 10px; }
.proof-dots { display: flex; direction: ltr; }
.proof-dots i { width: 7px; height: 7px; margin-left: -2px; border: 1px solid #182831; border-radius: 50%; background: #8fae9d; }
.proof-dots i:nth-child(2) { background: #d79672; }
.proof-dots i:nth-child(3) { background: #d5dda9; }

/* المجسم المرئي: بوابة ومدار ودرجات منحوتة */
.portal-scene { position: relative; width: min(100%, 590px); height: clamp(400px, 48vw, 590px); margin-inline: auto; perspective: 1100px; transform-style: preserve-3d; }
.portal-halo { position: absolute; top: 50%; left: 50%; width: 76%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(199, 207, 156, .13), rgba(120, 158, 146, .07) 38%, transparent 70%); filter: blur(10px); transform: translate(-50%, -50%); }
.portal-ring { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(209, 222, 180, .34); border-radius: 50%; transform-style: preserve-3d; }
.ring-back { width: 75%; aspect-ratio: 1; transform: translate(-50%, -50%) rotateX(68deg) rotateZ(-25deg); box-shadow: 0 0 45px rgba(149, 188, 167, .08), inset 0 0 35px rgba(149, 188, 167, .06); }
.ring-front { width: 59%; aspect-ratio: 1; border-color: rgba(215, 150, 114, .55); transform: translate(-50%, -50%) rotateX(68deg) rotateZ(35deg); }
.portal-sun { position: absolute; top: 16%; left: 48%; width: 29%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #f0e6c0, #d7d7a5 18%, #8fb3a4 51%, rgba(63, 102, 100, .2) 72%); box-shadow: 0 0 80px rgba(191, 205, 159, .2), inset -18px -22px 35px rgba(20, 44, 50, .42), inset 6px 7px 17px rgba(255, 255, 255, .52); transform: translateX(-50%); }
.portal-axis { position: absolute; top: 17%; left: 48%; width: 1px; height: 58%; background: linear-gradient(to bottom, transparent, rgba(224, 226, 192, .7), transparent); transform: rotate(28deg); }
.portal-stair { position: absolute; display: flex; align-items: flex-start; justify-content: flex-start; width: 29%; height: 13%; padding: 11px 15px; border: 1px solid rgba(237, 235, 207, .58); border-radius: 4px; color: rgba(28, 46, 52, .76); font: 10px Tahoma, sans-serif; box-shadow: 0 22px 34px rgba(0, 0, 0, .28), inset 0 2px 2px rgba(255,255,255,.58); transform: rotateX(58deg) rotateZ(-29deg); }
.stair-a { top: 56%; left: 18%; z-index: 2; background: linear-gradient(135deg, #e0dda9, #a5b99b); }
.stair-b { top: 47%; left: 31%; z-index: 3; background: linear-gradient(135deg, #d9dfb5, #9eb7a6); }
.stair-c { top: 38%; left: 44%; z-index: 4; background: linear-gradient(135deg, #e5d5ae, #c1ac81); }
.stair-d { top: 29%; left: 57%; z-index: 5; background: linear-gradient(135deg, #e6c8ad, #d28f72); }
.portal-chip { position: absolute; z-index: 8; display: flex; align-items: center; border: 1px solid rgba(237, 235, 213, .2); background: rgba(17, 32, 43, .79); box-shadow: 0 17px 42px rgba(0,0,0,.24); backdrop-filter: blur(15px); }
.chip-progress { top: 24%; right: 2%; gap: 10px; padding: 12px 15px; border-radius: 3px 15px 15px; color: #eee9d8; font-size: 10px; }
.chip-progress small { display: block; margin-top: 5px; color: rgba(238,233,216,.48); font-size: 9px; }
.chip-orb { width: 19px; height: 19px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #eef0c6, #9ab9a8 45%, #607e78); box-shadow: 0 0 17px rgba(177,205,170,.3); }
.chip-task { bottom: 15%; left: 0; flex-wrap: wrap; gap: 7px; width: 188px; padding: 12px; border-radius: 13px 3px 13px 13px; color: #e9e4d4; font-size: 9px; }
.chip-task span { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #b2c7a0; color: #1c3034; font-size: 9px; }
.chip-task b { width: calc(100% - 24px); font-weight: 500; }
.portal-caption { position: absolute; z-index: 8; display: flex; align-items: center; gap: 9px; color: rgba(238,232,213,.63); font-size: 9px; }
.portal-caption-bottom { bottom: 5%; left: 18%; }
.portal-caption-bottom i { width: 21px; height: 1px; background: #d79672; box-shadow: 0 0 9px #d79672; }
.portal-scroll { position: absolute; right: 50%; bottom: 22px; display: flex; align-items: center; gap: 9px; color: rgba(235, 232, 215, .46); font-size: 9px; text-decoration: none; transform: translateX(50%); }
.portal-scroll span { width: 17px; height: 25px; border: 1px solid rgba(225, 224, 202, .34); border-radius: 12px; }
.portal-scroll span::after { display: block; width: 2px; height: 5px; margin: 5px auto; border-radius: 2px; background: var(--xp-lime); content: ""; animation: scroll-signal 1.5s ease-in-out infinite; }
@keyframes scroll-signal { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(5px); } }

.portal-install { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 13px 0 74px; padding: 16px 21px; border: 1px solid rgba(225, 220, 198, .1); border-radius: 4px 16px 4px 16px; background: rgba(255,255,255,.025); }
.portal-install > div { display: flex; align-items: center; gap: 15px; }
.install-index { color: rgba(219, 221, 195, .39); font: 9px monospace; direction: ltr; }
.portal-install p { color: rgba(241, 236, 220, .67); font-size: 11px; }
.portal-install > a { color: #d9dfb5; font-size: 10px; text-decoration: none; }
.portal-install > a span { margin-right: 7px; color: #d79672; }
.portal-install .mq-install-button { padding: 10px 14px; border: 1px solid rgba(212,223,170,.22); border-radius: 4px 12px 12px; background: rgba(212,223,170,.08); color: #e1e4c5; font-family: inherit; font-size: 10px; cursor: pointer; }
.portal-install .mq-install-button span { margin-right: 7px; color: var(--xp-lime); }

/* المميزات — معرض بطاقات مرقّمة */
.mq-features-section { padding: 54px 0 72px; border-top: 1px solid rgba(225, 220, 198, .11); }
.portal-section-heading { max-width: 650px; margin-bottom: 34px; }
.portal-section-heading .mq-eyebrow { color: #d8dfa9; }
.portal-section-heading h2 { color: #f2eddf; font-size: clamp(31px, 4.6vw, 53px); letter-spacing: -.05em; }
.portal-section-heading h2 em { color: var(--xp-lime); font-style: normal; }
.portal-section-heading p { color: rgba(238, 234, 217, .57); }
.mq-features { gap: 13px; }
.mq-feature-card { position: relative; min-height: 235px; padding: 23px; overflow: hidden; border: 1px solid rgba(222, 222, 198, .12); border-radius: 3px 19px 3px 19px; background: linear-gradient(145deg, rgba(32, 49, 57, .83), rgba(21, 34, 44, .78)); box-shadow: 0 20px 40px rgba(0,0,0,.13); transition: transform .3s, border-color .3s, background .3s; }
.mq-feature-card::after { position: absolute; right: -30px; bottom: -55px; width: 135px; height: 135px; border: 1px solid rgba(220, 220, 193, .1); border-radius: 50%; box-shadow: 0 0 0 14px rgba(220,220,193,.025); content: ""; }
.mq-feature-card:hover { transform: translateY(-6px); border-color: rgba(212, 223, 170, .38); background: linear-gradient(145deg, rgba(43, 65, 70, .92), rgba(24, 41, 49, .9)); }
.mq-feature-highlight { transform: translateY(-9px); border-color: rgba(215, 150, 114, .32); }
.mq-feature-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 23px; border: 1px solid rgba(212, 223, 170, .22); border-radius: 3px 13px 3px 13px; background: rgba(212, 223, 170, .075); color: var(--xp-lime); font-size: 20px; }
.mq-feature-card h3 { color: #eee9d9; font-size: 15px; }
.mq-feature-card p { color: rgba(238, 234, 217, .54); font-size: 11px; line-height: 1.9; }
.mq-card-number { color: rgba(212, 223, 170, .45); }
.mq-closing { margin: 18px 0 42px; padding: 42px 16px; border-block: 1px solid rgba(225, 220, 198, .12); text-align: center; }
.mq-closing-symbol { color: var(--xp-lime); }
.mq-closing p { color: #f2eddf; }
.mq-footer { color: rgba(238, 232, 213, .42); }

/* لوحة المهام: مساحة تخطيط تشبه دفترًا شخصيًا */
body.mq-dashboard-page {
    color: #203138;
    background-color: #e9ece4;
    background-image: radial-gradient(ellipse at 92% 6%, rgba(206, 170, 124, .22), transparent 29rem), radial-gradient(ellipse at 8% 32%, rgba(136, 176, 160, .21), transparent 32rem), linear-gradient(145deg, #f3f2ea, #e6ece6 63%, #f0e9df);
    background-attachment: fixed;
}
body.mq-dashboard-page .topbar { position: sticky; top: 0; border-bottom: 1px solid rgba(42, 65, 66, .1); background: rgba(245, 245, 238, .82); box-shadow: 0 12px 38px rgba(29, 51, 53, .07); backdrop-filter: blur(20px); }
body.mq-dashboard-page .container { width: min(1080px, 92%); margin: clamp(22px, 4vw, 46px) auto 84px; }
body.mq-dashboard-page .welcome { position: relative; min-height: 185px; margin-bottom: 19px; padding: clamp(25px, 4vw, 42px); overflow: hidden; border: 1px solid rgba(222, 224, 196, .2); border-radius: 4px 29px 4px 29px; background: linear-gradient(110deg, #142637 0%, #1a3540 58%, #5a6951 150%); box-shadow: 0 25px 60px rgba(28, 51, 53, .19); }
body.mq-dashboard-page .welcome::before { position: absolute; top: -85px; left: 3%; width: 290px; height: 290px; border: 1px solid rgba(222, 223, 191, .22); border-radius: 50%; box-shadow: 0 0 0 28px rgba(222,223,191,.035), 0 0 0 66px rgba(222,223,191,.025); content: ""; }
body.mq-dashboard-page .welcome::after { position: absolute; top: 20%; left: 11%; width: 115px; height: 115px; border: 1px solid rgba(222, 223, 191, .26); border-radius: 50%; box-shadow: inset 0 0 35px rgba(222,223,191,.1), 0 0 45px rgba(222,223,191,.07); content: "م"; display: grid; place-items: center; color: rgba(222,223,191,.5); font-size: 42px; }
body.mq-dashboard-page .welcome-small { position: relative; z-index: 1; color: #d6d9a9; }
body.mq-dashboard-page .welcome h2 { position: relative; z-index: 1; color: #f4efe2; font-size: clamp(29px, 4.5vw, 43px); letter-spacing: -.045em; }
body.mq-dashboard-page .welcome-text { position: relative; z-index: 1; color: rgba(244, 240, 225, .66); }
body.mq-dashboard-page .main-card { padding: clamp(20px, 4vw, 36px); border: 1px solid rgba(44, 67, 66, .1); border-radius: 4px 23px 4px 23px; background: rgba(250, 249, 243, .88); box-shadow: 0 22px 60px rgba(40, 57, 52, .09), inset 0 1px white; backdrop-filter: blur(12px); }
body.mq-dashboard-page .section-label { color: #788d6b; }
body.mq-dashboard-page .progress-number { color: #6d8d77; }
body.mq-dashboard-page .progress-bar { height: 10px; background: #e2e6dc; }
body.mq-dashboard-page .progress-fill { background: linear-gradient(90deg, #739784, #b6c28f, #d9bd82); box-shadow: 0 0 18px rgba(126, 163, 133, .25); }
body.mq-dashboard-page .task-item { border-color: rgba(49, 74, 70, .11); border-radius: 4px 14px 4px 14px; transition: transform .2s, border-color .2s, box-shadow .2s; }
body.mq-dashboard-page .task-item:hover { transform: translateY(-2px); border-color: rgba(111, 146, 119, .36); box-shadow: 0 9px 22px rgba(39, 61, 57, .07); }
body.mq-dashboard-page .task-form input, body.mq-dashboard-page .task-priority, body.mq-dashboard-page .task-time-trigger { border-radius: 4px 12px 4px 12px; }
body.mq-dashboard-page .task-add-button { border-radius: 4px 12px 4px 12px; background: linear-gradient(135deg, #203c46, #527461); }
body.mq-dashboard-page .brand-mark img { width: 44px; height: 44px; }
body.dark-mode.mq-dashboard-page { background-color: #111d29; background-image: radial-gradient(ellipse at 92% 6%, rgba(157, 125, 86, .13), transparent 29rem), radial-gradient(ellipse at 8% 32%, rgba(94, 143, 127, .15), transparent 32rem), linear-gradient(145deg, #111d29, #17272d 63%, #1c2529); }
body.dark-mode.mq-dashboard-page .topbar { background: rgba(16, 29, 41, .88); border-color: rgba(225, 220, 198, .1); }
body.dark-mode.mq-dashboard-page .welcome { background: linear-gradient(110deg, #112131, #17303a 58%, #354636 150%); }
body.dark-mode.mq-dashboard-page .main-card { border-color: rgba(225, 220, 198, .1); background: rgba(23, 37, 48, .92); }
body.dark-mode.mq-dashboard-page .card-header h3, body.dark-mode.mq-dashboard-page .tasks-title h3 { color: #f0eadb; }

@media (max-width: 850px) {
    .mq-hero-portal { grid-template-columns: 1fr; min-height: auto; padding: 43px 25px 54px; }
    .portal-copy { max-width: 650px; margin-inline: auto; padding: 0; text-align: center; }
    .portal-copy > p { margin-inline: auto; }
    .portal-actions, .portal-proof { justify-content: center; }
    .portal-scene { width: min(100%, 510px); height: min(105vw, 480px); margin-top: 2px; }
    .portal-scroll { bottom: 15px; }
    .mq-feature-highlight { transform: none; }
}
@media (max-width: 560px) {
    .mq-page { padding-inline: 11px; }
    .mq-topbar { top: 5px; min-height: 61px; margin-top: 5px; padding: 7px 9px; border-radius: 13px; }
    .mq-wordmark-symbol { width: 39px; height: 39px; }
    .mq-wordmark-symbol img { width: 29px; height: 29px; }
    .mq-topnav { gap: 8px; }
    .mq-topnav a { font-size: 9px; }
    .mq-topnav .mq-nav-action { padding: 9px 10px; }
    .mq-hero-portal { margin-top: 7px; padding: 35px 18px 49px; border-radius: 3px 24px 3px 24px; }
    .portal-copy h1 { margin: 21px 0 14px; font-size: clamp(41px, 12vw, 61px); }
    .portal-copy > p { font-size: 12px; }
    .portal-actions { gap: 17px; }
    .portal-cta { min-height: 49px; gap: 18px; padding-inline: 15px; font-size: 11px; }
    .portal-proof { margin-top: 25px; font-size: 9px; }
    .portal-scene { height: 320px; margin-top: 18px; }
    .portal-sun { top: 15%; width: 30%; }
    .portal-stair { width: 33%; height: 14%; padding: 8px; }
    .stair-a { left: 6%; }
    .stair-b { left: 21%; }
    .stair-c { left: 36%; }
    .stair-d { left: 51%; }
    .chip-progress { top: 18%; right: -2%; padding: 9px; font-size: 9px; }
    .chip-task { bottom: 9%; left: -2%; width: 170px; padding: 9px; }
    .portal-caption-bottom { left: 20%; bottom: 0; }
    .portal-install { flex-wrap: wrap; margin-bottom: 47px; padding: 13px; }
    .portal-install > div { width: 100%; justify-content: space-between; }
    .mq-features { grid-template-columns: 1fr; }
    .mq-feature-card { min-height: 0; }
    body.mq-dashboard-page .container { width: calc(100% - 22px); margin-top: 18px; }
    body.mq-dashboard-page .welcome { min-height: 165px; padding: 23px 19px; }
    body.mq-dashboard-page .welcome::after { left: 2%; width: 85px; height: 85px; font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) {
    .portal-scroll span::after { animation: none; }
    .portal-cta, .mq-feature-card, body.mq-dashboard-page .task-item { transition: none; }
}

/* بطاقة رُقيّ: امتداد بصري لمشهد مِرْقاة */
body.mq-dashboard-page .ruqi-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 19px;
    margin-top: 22px;
    padding: clamp(21px, 4vw, 31px);
    overflow: hidden;
    border: 1px solid rgba(212,223,170,.25);
    border-radius: 4px 22px 4px 22px;
    background: radial-gradient(circle at 9% 50%, rgba(212,223,170,.16), transparent 12rem), linear-gradient(112deg, #162b38, #1d3a42 66%, #34463a);
    box-shadow: 0 21px 47px rgba(29,53,55,.17), inset 0 1px rgba(255,255,255,.08);
}
body.mq-dashboard-page .ruqi-card::before { position: absolute; left: 18%; top: -82px; width: 230px; height: 230px; border: 1px solid rgba(224,228,194,.17); border-radius: 50%; box-shadow: 0 0 0 19px rgba(224,228,194,.025), 0 0 0 45px rgba(224,228,194,.02); content: ""; pointer-events: none; }
body.mq-dashboard-page .ruqi-icon { position: relative; z-index: 1; display: grid; place-items: center; flex: 0 0 60px; width: 60px; height: 60px; border: 1px solid rgba(212,223,170,.35); border-radius: 5px 19px 5px 19px; background: linear-gradient(145deg, rgba(212,223,170,.21), rgba(212,223,170,.06)); color: #e0e5bd; font-size: 27px; box-shadow: 0 12px 27px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.17); }
body.mq-dashboard-page .ruqi-content { position: relative; z-index: 1; }
body.mq-dashboard-page .ruqi-content > span { color: #d5dca9; }
body.mq-dashboard-page .ruqi-content h3 { color: #f5f0e2; font-size: clamp(18px, 2.5vw, 22px); }
body.mq-dashboard-page .ruqi-content p { color: rgba(240,237,220,.62); }
body.mq-dashboard-page .ruqi-button { position: relative; z-index: 1; margin-right: auto; border: 1px solid rgba(245,240,220,.3); border-radius: 4px 13px 4px 13px; background: linear-gradient(120deg, #dce3b3, #bdc895); color: #203138; box-shadow: 0 10px 24px rgba(0,0,0,.14); }
body.mq-dashboard-page .ruqi-button:hover { background: #e4e9c5; transform: translateY(-2px); }

/* زر الوقت والنافذة */
body.mq-dashboard-page .task-time-trigger { min-height: 46px; border: 1px solid rgba(112,143,121,.3); border-radius: 4px 13px 4px 13px; background: linear-gradient(135deg, #f7f7ee, #e9eee4); color: #315147; box-shadow: inset 0 1px #fff, 0 6px 15px rgba(52,81,69,.07); transition: border-color .2s, transform .2s, box-shadow .2s; }
body.mq-dashboard-page .task-time-trigger:hover { transform: translateY(-2px); border-color: rgba(112,143,121,.58); box-shadow: 0 9px 20px rgba(52,81,69,.12); }
body.mq-dashboard-page .task-time-trigger-icon { color: #9a7252; }
.time-picker-overlay { background: rgba(10,22,30,.72); backdrop-filter: blur(12px); }
.time-picker-modal { width: min(450px,100%); padding: 31px 28px 26px; overflow: hidden; border: 1px solid rgba(212,223,170,.27); border-radius: 5px 27px 5px 27px; background: radial-gradient(ellipse at 90% 0%, rgba(134,174,147,.16), transparent 17rem), linear-gradient(145deg, #172a37, #12222e 68%, #1a3035); box-shadow: 0 34px 95px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.08); color: #f0ecdd; }
.time-picker-close { top: 15px; left: 15px; width: 35px; height: 35px; border: 1px solid rgba(239,235,215,.14); background: rgba(239,235,215,.08); color: #eee9d7; }
.time-picker-close:hover { background: rgba(215,150,114,.23); }
.time-picker-heading { margin-bottom: 19px; }
.time-picker-icon { width: 54px; height: 54px; border: 1px solid rgba(212,223,170,.28); border-radius: 4px 17px 4px 17px; background: linear-gradient(145deg, rgba(212,223,170,.2), rgba(116,155,132,.14)); color: #dce2b3; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.time-picker-heading h3 { color: #f4efdf; }
.time-picker-heading p { color: rgba(239,236,219,.57); }
.time-picker-preview { padding: 17px; border: 1px solid rgba(212,223,170,.17); border-radius: 4px 16px 4px 16px; background: rgba(226,232,200,.07); color: #e4e8c6; font-size: 34px; box-shadow: inset 0 1px rgba(255,255,255,.06); }
.time-picker-field label { color: #cbd5ad; }
.time-picker-field select { height: 50px; border: 1px solid rgba(223,225,203,.17); border-radius: 4px 12px 4px 12px; background: #1d333d; color: #f0ecdc; }
.time-picker-field select:focus { border-color: #b9ca94; box-shadow: 0 0 0 3px rgba(185,202,148,.14); }
.time-confirm-button, .time-cancel-button { border-radius: 4px 13px 4px 13px; }
.time-confirm-button { border: 1px solid rgba(245,240,220,.25); background: linear-gradient(120deg, #dce3b3, #b6c28f); color: #203138; }
.time-confirm-button:hover { background: linear-gradient(120deg, #e5eac7, #c8d3a2); box-shadow: 0 9px 25px rgba(170,193,140,.19); }
.time-cancel-button { border-color: rgba(236,232,214,.15); background: rgba(255,255,255,.035); color: rgba(239,236,219,.75); }
.time-cancel-button:hover { border-color: rgba(236,232,214,.3); background: rgba(255,255,255,.07); }

/* خلفية موحدة وبطاقات منسجمة في بقية الصفحات */
body:not(.mq-landing):not(.mq-dashboard-page) { color: #203138; background-color: #e9ece4; background-image: radial-gradient(ellipse at 92% 6%, rgba(206,170,124,.18), transparent 29rem), radial-gradient(ellipse at 8% 32%, rgba(136,176,160,.16), transparent 32rem), linear-gradient(145deg, #f3f2ea, #e6ece6 63%, #f0e9df); background-attachment: fixed; }
body:not(.mq-landing):not(.mq-dashboard-page) .topbar { background: rgba(245,245,238,.84); border-color: rgba(42,65,66,.1); box-shadow: 0 12px 38px rgba(29,51,53,.07); backdrop-filter: blur(20px); }
body:not(.mq-landing):not(.mq-dashboard-page) .container { width: min(1080px,92%); }
body:not(.mq-landing):not(.mq-dashboard-page) .auth-card,
body:not(.mq-landing):not(.mq-dashboard-page) .account-card,
body:not(.mq-landing):not(.mq-dashboard-page) .settings-card,
body:not(.mq-landing):not(.mq-dashboard-page) .ai-chat-card,
body:not(.mq-landing):not(.mq-dashboard-page) .stat-card,
body:not(.mq-landing):not(.mq-dashboard-page) .plus-pricing-card,
body:not(.mq-landing):not(.mq-dashboard-page) .shared-action-card,
body:not(.mq-landing):not(.mq-dashboard-page) .shared-routine-card,
body:not(.mq-landing):not(.mq-dashboard-page) .shared-invite-card,
body:not(.mq-landing):not(.mq-dashboard-page) .shared-members-card,
body:not(.mq-landing):not(.mq-dashboard-page) .shared-tasks-card,
body:not(.mq-landing):not(.mq-dashboard-page) .routine-management-card { border-color: rgba(48,76,69,.13); border-radius: 4px 20px 4px 20px; box-shadow: 0 18px 44px rgba(39,59,54,.08), inset 0 1px rgba(255,255,255,.8); }
body:not(.mq-landing):not(.mq-dashboard-page) .auth-card,
body:not(.mq-landing):not(.mq-dashboard-page) .account-card,
body:not(.mq-landing):not(.mq-dashboard-page) .settings-card,
body:not(.mq-landing):not(.mq-dashboard-page) .ai-chat-card,
body:not(.mq-landing):not(.mq-dashboard-page) .stat-card,
body:not(.mq-landing):not(.mq-dashboard-page) .plus-pricing-card { background: rgba(250,249,243,.88); }
body:not(.mq-landing):not(.mq-dashboard-page) .auth-button,
body:not(.mq-landing):not(.mq-dashboard-page) .account-save-button,
body:not(.mq-landing):not(.mq-dashboard-page) .plus-subscribe-button,
body:not(.mq-landing):not(.mq-dashboard-page) .shared-primary-button { border-radius: 4px 13px 4px 13px; background: linear-gradient(120deg, #203c46, #527461); color: #f8f4e7; }
body:not(.mq-landing):not(.mq-dashboard-page) .page-header h1,
body:not(.mq-landing):not(.mq-dashboard-page) .settings-header h1,
body:not(.mq-landing):not(.mq-dashboard-page) .account-profile h2 { color: #203740; }
body:not(.mq-landing):not(.mq-dashboard-page) .ai-hero,
body:not(.mq-landing):not(.mq-dashboard-page) .plus-hero,
body:not(.mq-landing):not(.mq-dashboard-page) .shared-routines-hero { border-radius: 4px 24px 4px 24px; }
body.dark-mode:not(.mq-landing):not(.mq-dashboard-page) { color: #edf0e4; background-color: #111d29; background-image: radial-gradient(ellipse at 92% 6%, rgba(157,125,86,.13), transparent 29rem), radial-gradient(ellipse at 8% 32%, rgba(94,143,127,.15), transparent 32rem), linear-gradient(145deg, #111d29, #17272d 63%, #1c2529); }
body.dark-mode:not(.mq-landing):not(.mq-dashboard-page) .topbar { background: rgba(16,29,41,.88); border-color: rgba(225,220,198,.1); }
body.dark-mode:not(.mq-landing):not(.mq-dashboard-page) .auth-card,
body.dark-mode:not(.mq-landing):not(.mq-dashboard-page) .account-card,
body.dark-mode:not(.mq-landing):not(.mq-dashboard-page) .settings-card,
body.dark-mode:not(.mq-landing):not(.mq-dashboard-page) .ai-chat-card,
body.dark-mode:not(.mq-landing):not(.mq-dashboard-page) .stat-card,
body.dark-mode:not(.mq-landing):not(.mq-dashboard-page) .plus-pricing-card,
body.dark-mode:not(.mq-landing):not(.mq-dashboard-page) .shared-action-card,
body.dark-mode:not(.mq-landing):not(.mq-dashboard-page) .shared-routine-card,
body.dark-mode:not(.mq-landing):not(.mq-dashboard-page) .shared-invite-card,
body.dark-mode:not(.mq-landing):not(.mq-dashboard-page) .shared-members-card,
body.dark-mode:not(.mq-landing):not(.mq-dashboard-page) .shared-tasks-card,
body.dark-mode:not(.mq-landing):not(.mq-dashboard-page) .routine-management-card { border-color: rgba(219,226,196,.12); background: rgba(24,39,49,.92); box-shadow: 0 18px 44px rgba(0,0,0,.18); }
body.dark-mode:not(.mq-landing):not(.mq-dashboard-page) .page-header h1,
body.dark-mode:not(.mq-landing):not(.mq-dashboard-page) .settings-header h1,
body.dark-mode:not(.mq-landing):not(.mq-dashboard-page) .account-profile h2 { color: #eff0e2; }
@media (max-width: 600px) {
    body.mq-dashboard-page .ruqi-card { align-items: flex-start; flex-wrap: wrap; gap: 13px; padding: 18px; }
    body.mq-dashboard-page .ruqi-icon { flex-basis: 49px; width: 49px; height: 49px; }
    body.mq-dashboard-page .ruqi-content { width: calc(100% - 66px); }
    body.mq-dashboard-page .ruqi-button { margin: 4px 62px 0 0; }
    .time-picker-modal { padding: 28px 18px 20px; }
}


/* مِرْقاة — توحيد ألوان الأزرار وتحسين وضوح عنوان الروتينات */
:root {
    --mq-button-main: #31584f;
    --mq-button-main-hover: #416d5f;
    --mq-button-ink: #fffdf5;
    --mq-button-soft: rgba(93, 133, 111, .10);
    --mq-button-border: rgba(67, 105, 88, .35);
}

.mq-primary,
.portal-cta,
.task-add-button,
.ruqi-button,
.auth-button,
.account-save-button,
.account-action-button,
.ai-button,
.add-ai-tasks-button,
.premium-button,
.plus-subscribe-button,
.shared-primary-button,
.shared-copy-button,
.invite-code-box button,
.time-confirm-button,
.achievement-button,
.complete-button {
    border-color: var(--mq-button-main) !important;
    background: linear-gradient(135deg, var(--mq-button-main), #24464a) !important;
    color: var(--mq-button-ink) !important;
    box-shadow: 0 8px 20px rgba(39, 78, 68, .18), inset 0 1px rgba(255,255,255,.12) !important;
}

.mq-primary:hover,
.portal-cta:hover,
.task-add-button:hover,
.ruqi-button:hover,
.auth-button:hover,
.account-save-button:hover,
.account-action-button:hover,
.ai-button:hover,
.add-ai-tasks-button:hover,
.premium-button:hover,
.plus-subscribe-button:hover,
.shared-primary-button:hover,
.shared-copy-button:hover,
.invite-code-box button:hover,
.time-confirm-button:hover,
.achievement-button:hover,
.complete-button:hover {
    border-color: var(--mq-button-main-hover) !important;
    background: linear-gradient(135deg, var(--mq-button-main-hover), #315a50) !important;
    color: #fffdf5 !important;
    box-shadow: 0 11px 25px rgba(39, 78, 68, .25), inset 0 1px rgba(255,255,255,.14) !important;
}

.delete-modal-confirm {
    border-color: rgba(164, 91, 69, .55) !important;
    background: linear-gradient(135deg, #a95f4d, #854c42) !important;
    color: #fffaf4 !important;
}
.delete-modal-confirm:hover {
    border-color: #9b5143 !important;
    background: linear-gradient(135deg, #b96a56, #965246) !important;
    color: #fffaf4 !important;
}

.mq-secondary,
.shared-secondary-button,
.time-cancel-button,
.back-button,
.auth-back,
.shared-back-button,
.plus-back {
    border: 1px solid var(--mq-button-border) !important;
    background: var(--mq-button-soft) !important;
    color: #31584f !important;
}

.mq-secondary:hover,
.shared-secondary-button:hover,
.time-cancel-button:hover,
.back-button:hover,
.auth-back:hover,
.shared-back-button:hover,
.plus-back:hover {
    border-color: rgba(67, 105, 88, .56) !important;
    background: rgba(93, 133, 111, .17) !important;
    color: #24464a !important;
}

.auth-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    margin-top: 22px;
    padding: 0 19px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(50, 83, 70, .08);
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.auth-back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(50, 83, 70, .14);
}

body.dark-mode .auth-back-button {
    color: #dbe5c2 !important;
}

body.dark-mode .mq-secondary,
body.dark-mode .shared-secondary-button,
body.dark-mode .time-cancel-button,
body.dark-mode .back-button,
body.dark-mode .auth-back,
body.dark-mode .shared-back-button,
body.dark-mode .plus-back {
    border-color: rgba(191, 207, 160, .34) !important;
    background: rgba(191, 207, 160, .09) !important;
    color: #dbe5c2 !important;
}

body.dark-mode .mq-secondary:hover,
body.dark-mode .shared-secondary-button:hover,
body.dark-mode .time-cancel-button:hover,
body.dark-mode .back-button:hover,
body.dark-mode .auth-back:hover,
body.dark-mode .shared-back-button:hover,
body.dark-mode .plus-back:hover {
    background: rgba(191, 207, 160, .16) !important;
    color: #f2f2df !important;
}

/* تمييز عنوان «روتيناتك المشتركة» عن الخلفية */
body.shared-routines-theme .shared-section-heading h3 {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 9px 16px;
    border-right: 4px solid #78977b;
    border-radius: 4px 13px 13px 4px;
    background: rgba(250, 249, 243, .94);
    color: #203b43 !important;
    text-shadow: none !important;
    box-shadow: 0 8px 20px rgba(36, 64, 57, .09);
}

body.shared-routines-theme.dark-mode .shared-section-heading h3 {
    border-right-color: #c3cf9d;
    background: rgba(25, 42, 49, .94);
    color: #f0efdF !important;
}

/* مِرْقاة Plus — جناح خاص داخل هوية مسار الضوء */
body.mq-plus-page .plus-page { width: min(1180px, 92%); padding-top: clamp(24px, 4vw, 42px); }
body.mq-plus-page .plus-hero {
    min-height: 470px;
    grid-template-columns: 1fr 1fr;
    gap: clamp(12px, 3vw, 50px);
    border: 1px solid rgba(212,223,170,.2);
    border-radius: 4px 38px 4px 38px;
    background: radial-gradient(ellipse at 77% 45%, rgba(138,176,147,.19), transparent 29rem), radial-gradient(ellipse at 8% 90%, rgba(215,150,114,.1), transparent 24rem), linear-gradient(125deg, #142735, #192f38 62%, #293c38);
    box-shadow: 0 32px 85px rgba(21,43,47,.2), inset 0 1px rgba(255,255,255,.07);
}
body.mq-plus-page .plus-hero::before { position: absolute; inset: 0; content: ""; opacity: .2; pointer-events: none; background: radial-gradient(rgba(236,232,211,.4) .7px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(105deg, transparent 15%, #000 75%); }
body.mq-plus-page .plus-hero::after { position: absolute; right: 30px; bottom: 22px; content: "PLUS  /  01"; color: rgba(225,230,199,.28); font: 9px monospace; direction: ltr; letter-spacing: .2em; }
body.mq-plus-page .plus-hero-copy { max-width: 530px; }
body.mq-plus-page .plus-kicker { display: inline-flex; padding: 9px 13px; border: 1px solid rgba(212,223,170,.23); border-radius: 3px 12px 12px; background: rgba(212,223,170,.06); color: #dce2b5; }
body.mq-plus-page .plus-hero h2 { margin-top: 19px; color: #f5f0e2; font-size: clamp(44px, 6vw, 72px); letter-spacing: -.055em; }
body.mq-plus-page .plus-hero h2 strong { color: #dce3b3; text-shadow: 0 8px 38px rgba(212,223,170,.17); }
body.mq-plus-page .plus-hero p { color: rgba(240,237,220,.68); font-size: 14px; line-height: 2; }
body.mq-plus-page .plus-hero-link { color: #e2e6c4; }
body.mq-plus-page .plus-hero-link span { color: #d79672; }
body.mq-plus-page .plus-hero-visual { width: min(100%, 410px); height: 350px; }
body.mq-plus-page .plus-visual-glow { background: rgba(182,204,155,.22); }
body.mq-plus-page .plus-orbit { background: linear-gradient(145deg, #e7eac5, #9eaf8a 52%, #d79672); box-shadow: 14px 20px 32px rgba(0,0,0,.32), inset 0 1px 2px rgba(255,255,255,.65); }
body.mq-plus-page .plus-symbol { background: linear-gradient(145deg, #27444a, #142633); color: #e3e7bd; }
body.mq-plus-page .plus-symbol span { color: #e2a181; }
body.mq-plus-page .plus-visual-ring { border-color: rgba(212,223,170,.5); }
body.mq-plus-page .plus-visual-ring.ring-two { border-color: rgba(215,150,114,.42); }
body.mq-plus-page .plus-visual-steps i { background: linear-gradient(145deg, #e4e8bf, #829c84 66%, #cc9071); box-shadow: 0 13px 25px rgba(0,0,0,.3), inset 0 2px 3px rgba(255,255,255,.4); }
body.mq-plus-page .plus-visual-card { border: 1px solid rgba(231,232,207,.2); background: rgba(20,39,49,.82); box-shadow: 0 19px 40px rgba(0,0,0,.25); backdrop-filter: blur(14px); }
body.mq-plus-page .plus-visual-card span { color: rgba(241,238,219,.58); }
body.mq-plus-page .plus-visual-card strong { color: #e4e8c3; }
body.mq-plus-page .plus-visual-card div { background: rgba(255,255,255,.13); }
body.mq-plus-page .plus-visual-card div i { background: linear-gradient(90deg, #8faf99, #dce3b3); }

body.mq-plus-page .plus-pricing-card {
    position: relative;
    width: min(670px, 100%);
    margin: -1px auto 72px;
    padding: 30px clamp(22px, 5vw, 47px);
    border: 1px solid rgba(49,81,72,.16);
    border-radius: 4px 24px 4px 24px;
    background: linear-gradient(145deg, rgba(251,250,242,.97), rgba(232,239,226,.94));
    box-shadow: 0 22px 54px rgba(36,61,54,.12), inset 0 1px #fff;
    text-align: center;
}
body.mq-plus-page .plus-price-label { display: inline-flex; padding: 7px 12px; border: 1px solid rgba(99,132,105,.2); border-radius: 3px 11px 11px; background: rgba(120,151,123,.09); color: #456a59; }
body.mq-plus-page .plus-price strong { color: #27464a; }
body.mq-plus-page .plus-price span { color: #66816d; }
body.mq-plus-page .plus-price-note { color: #61736b; }
body.mq-plus-page .plus-subscribe-button { width: min(100%, 390px); border-radius: 4px 15px 4px 15px; }
body.mq-plus-page .plus-coming-note { display: inline-flex; align-items: center; gap: 7px; color: #9a7658; }
body.mq-plus-page .plus-coming-note::before { width: 6px; height: 6px; border-radius: 50%; background: #d79672; content: ""; }

body.mq-plus-page .plus-benefits { max-width: 1020px; }
body.mq-plus-page .plus-section-heading { position: relative; margin-bottom: 34px; }
body.mq-plus-page .plus-section-heading > span { display: inline-block; padding: 7px 12px; border: 1px solid rgba(99,132,105,.2); border-radius: 3px 11px 11px; background: rgba(120,151,123,.08); color: #587961; }
body.mq-plus-page .plus-section-heading h3 { margin-top: 11px; color: #203b43; font-size: clamp(27px, 4vw, 40px); letter-spacing: -.045em; }
body.mq-plus-page .plus-section-heading p { max-width: 510px; margin: 10px auto 0; color: #68766e; font-size: 12px; line-height: 1.9; }
body.mq-plus-page .plus-benefits-grid { grid-template-columns: repeat(6, minmax(0,1fr)); gap: 14px; }
body.mq-plus-page .plus-benefit { position: relative; grid-column: span 2; min-height: 190px; padding: 25px 23px; overflow: hidden; border: 1px solid rgba(48,76,69,.12); border-radius: 4px 19px 4px 19px; background: linear-gradient(145deg, rgba(251,250,243,.96), rgba(232,239,227,.92)); box-shadow: 0 14px 36px rgba(39,59,54,.07); transition: transform .25s, box-shadow .25s, border-color .25s; }
body.mq-plus-page .plus-benefit:nth-child(4) { grid-column: 2 / span 2; }
body.mq-plus-page .plus-benefit:nth-child(5) { grid-column: 4 / span 2; }
body.mq-plus-page .plus-benefit::after { position: absolute; left: -34px; bottom: -64px; width: 142px; height: 142px; border: 1px solid rgba(111,148,119,.13); border-radius: 50%; box-shadow: 0 0 0 15px rgba(111,148,119,.035); content: ""; pointer-events: none; }
body.mq-plus-page .plus-benefit:hover { transform: translateY(-5px); border-color: rgba(93,133,111,.34); box-shadow: 0 22px 42px rgba(39,59,54,.12); }
body.mq-plus-page .plus-benefit-index { position: absolute; top: 15px; left: 17px; color: rgba(76,112,91,.52); font: 10px monospace; direction: ltr; letter-spacing: .1em; }
body.mq-plus-page .plus-benefit-icon { width: 48px; height: 48px; margin-bottom: 19px; border: 1px solid rgba(93,133,111,.19); border-radius: 4px 15px 4px 15px; background: linear-gradient(145deg, rgba(134,169,134,.19), rgba(212,223,170,.19)); color: #416856; font-size: 20px; }
body.mq-plus-page .plus-benefit h4 { color: #243f43; font-size: 15px; }
body.mq-plus-page .plus-benefit p { max-width: 290px; color: #66766d; font-size: 11px; line-height: 1.9; }
body.mq-plus-page .plus-benefit-state { display: inline-flex; margin-top: 12px; padding: 5px 8px; border: 1px solid rgba(93,133,111,.14); border-radius: 3px 8px 3px 8px; background: rgba(109,146,115,.08); color: #5d7d63; font-size: 9px; }
body.mq-plus-page .plus-back { margin-top: 34px; }
body.dark-mode.mq-plus-page .plus-pricing-card,
body.dark-mode.mq-plus-page .plus-benefit { border-color: rgba(219,226,196,.13); background: linear-gradient(145deg, rgba(25,42,49,.97), rgba(22,36,44,.95)); box-shadow: 0 18px 42px rgba(0,0,0,.2); }
body.dark-mode.mq-plus-page .plus-section-heading h3,
body.dark-mode.mq-plus-page .plus-benefit h4,
body.dark-mode.mq-plus-page .plus-price strong { color: #eff0e2; }
body.dark-mode.mq-plus-page .plus-section-heading p,
body.dark-mode.mq-plus-page .plus-benefit p,
body.dark-mode.mq-plus-page .plus-price-note { color: rgba(235,238,222,.65); }
body.dark-mode.mq-plus-page .plus-benefit-state { border-color: rgba(191,207,160,.2); background: rgba(191,207,160,.09); color: #cedcb1; }
@media (max-width: 820px) {
    body.mq-plus-page .plus-hero { grid-template-columns: 1fr 1fr; padding: 34px 26px; }
    body.mq-plus-page .plus-benefits-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    body.mq-plus-page .plus-benefit,
    body.mq-plus-page .plus-benefit:nth-child(4),
    body.mq-plus-page .plus-benefit:nth-child(5) { grid-column: auto; }
}
@media (max-width: 560px) {
    body.mq-plus-page .plus-page { width: calc(100% - 24px); padding-top: 18px; }
    body.mq-plus-page .plus-hero { grid-template-columns: 1fr; gap: 0; min-height: 0; margin-bottom: 26px; padding: 28px 20px 18px; border-radius: 4px 24px 4px 24px; text-align: center; }
    body.mq-plus-page .plus-hero h2 { font-size: clamp(40px,12vw,55px); }
    body.mq-plus-page .plus-hero p { margin-inline: auto; font-size: 12px; }
    body.mq-plus-page .plus-hero-visual { height: 280px; }
    body.mq-plus-page .plus-pricing-card { margin-bottom: 52px; padding: 24px 18px; }
    body.mq-plus-page .plus-benefits-grid { grid-template-columns: 1fr; }
    body.mq-plus-page .plus-benefit { min-height: 0; padding: 22px; }
}

/* زرا الرجوع: مسار واضح ومتّسق في Plus والإحصائيات */
.plus-back,
.stats-page .back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 48px;
    padding: 0 19px;
    border: 1px solid rgba(67,105,88,.35) !important;
    border-radius: 4px 15px 4px 15px;
    background: rgba(93,133,111,.1) !important;
    color: #31584f !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(39,78,68,.07);
    transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.plus-back::before,
.stats-page .back-button::before {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 1px solid rgba(67,105,88,.2);
    border-radius: 50%;
    background: rgba(255,255,255,.57);
    color: #31584f;
    content: "↙";
    font-size: 14px;
    line-height: 1;
}
.plus-back:hover,
.stats-page .back-button:hover {
    transform: translateY(-3px);
    border-color: rgba(67,105,88,.55) !important;
    background: rgba(93,133,111,.17) !important;
    color: #24464a !important;
    box-shadow: 0 12px 25px rgba(39,78,68,.12);
}
body.dark-mode .plus-back,
body.dark-mode .stats-page .back-button { border-color: rgba(191,207,160,.34); background: rgba(191,207,160,.09); color: #e0e7cb; }
body.dark-mode .plus-back::before,
body.dark-mode .stats-page .back-button::before { border-color: rgba(191,207,160,.24); background: rgba(255,255,255,.07); color: #e0e7cb; }

/* صفحة الإحصائيات — قراءة مرئية لأرقام حقيقية من قاعدة المهام */
.history-entry-details { width: 100%; }
.history-entry-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.history-entry-details > summary::-webkit-details-marker { display: none; }
.history-entry-details > summary::after { content: "+"; display: grid; place-items: center; flex: 0 0 25px; height: 25px; border-radius: 50%; background: rgba(93,133,111,.12); color: #527461; font-size: 17px; }
.history-entry-details[open] > summary::after { content: "−"; }
.history-entry-expanded { display: grid; gap: 7px; margin: 12px 4px 2px; padding: 12px; border-radius: 12px; background: rgba(107,142,118,.08); color: #52685c; font-size: 11px; line-height: 1.8; }
.history-entry-expanded p { margin: 0; white-space: pre-wrap; }
.history-open-link { width: fit-content; color: #416856; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
body.dark-mode .history-open-link { color: #dce3b3; }
.history-entry-expanded h5 { margin: 4px 0 0; }
.history-entry-expanded ul { display: grid; gap: 5px; margin: 0; padding-inline-start: 20px; }
body.dark-mode .history-entry-expanded { background: rgba(219,226,196,.07); color: rgba(235,238,222,.75); }
.push-device-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 18px; margin-top: 20px; padding: 18px; border: 1px solid rgba(93,133,111,.2); border-radius: 16px; background: rgba(122,158,126,.07); }
.push-device-card strong { color: #294b48; }
.push-device-card p { margin: 5px 0 0; color: #6b7b70; font-size: 12px; line-height: 1.8; }
.push-device-card .push-device-status { grid-column: 1 / -1; }
.push-device-card button:disabled { opacity: .6; cursor: wait; }
body.dark-mode .push-device-card { border-color: rgba(219,226,196,.15); background: rgba(219,226,196,.05); }
body.dark-mode .push-device-card strong { color: #e2e6cf; }
body.dark-mode .push-device-card p { color: rgba(235,238,222,.65); }
@media (max-width: 560px) { .push-device-card { grid-template-columns: 1fr; } .push-device-card .account-save-button { width: 100%; } }

/* سجل المحادثة في صفحة رُقيّ — تباين واضح في الوضع الليلي */
body.dark-mode .ruqi-history {
    border-color: rgba(219, 198, 145, .32);
    background: rgba(16, 29, 41, .84);
    color: #f1eedf !important;
    box-shadow: inset 0 1px rgba(255,255,255,.025);
}
body.dark-mode .ruqi-history summary { color: #e4d09c !important; }
body.dark-mode .ruqi-history-message { color: #eeeede !important; border-color: rgba(219,198,145,.18); }
body.dark-mode .ruqi-history-message strong { color: #d9c18d; }

/* نقل زر رُقيّ العائم ولوحته إلى الجهة اليسرى */
body .ruqi-widget { left: 24px !important; right: auto !important; }
body .ruqi-widget-panel { left: 0 !important; right: auto !important; }
body .ruqi-widget-hint { left: 0 !important; right: auto !important; }
@media (max-width: 480px) {
    body .ruqi-widget { left: 16px !important; right: auto !important; }
    body .ruqi-widget-panel { left: 0 !important; right: auto !important; width: min(365px, calc(100vw - 28px)); }
    body .ruqi-widget-hint { max-width: min(255px, calc(100vw - 110px)); }
}

/* تأكيد موضع رُقيّ على يسار لوحة المهام */
#ruqiFloatingWidget { position: fixed !important; left: 24px !important; right: auto !important; bottom: calc(24px + env(safe-area-inset-bottom)) !important; }
@media (max-width: 480px) {
    #ruqiFloatingWidget { left: 16px !important; right: auto !important; bottom: calc(20px + env(safe-area-inset-bottom)) !important; }
}

/* توسيط وصف صفحة رُقيّ فعليًا ضمن عرض المقدمة */
body .ai-hero p { display: block; width: 100%; max-width: 100%; margin-inline: auto; text-align: center !important; }

/* سجل المحادثة بطاقة مستقلة أسفل المحادثة */
.ruqi-history-card {
    width: min(900px, 100%);
    margin: -12px auto 34px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(197,163,93,.2);
    border-radius: 4px 20px 4px 20px;
    background: rgba(250,249,243,.92);
    box-shadow: 0 14px 34px rgba(39,59,54,.07);
}
.ruqi-history-card .ruqi-history { display: block; margin: 0; padding: 0; border: 0; border-radius: 0; }
.ruqi-history-card .ruqi-history > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 14px 20px;
    color: #294b48;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
}
.ruqi-history-card .ruqi-history > summary::-webkit-details-marker { display: none; }
.ruqi-history-count { color: #758177; font-size: 11px; font-weight: 500; }
.ruqi-history-list { max-height: 440px; padding: 0 20px 12px; overflow: auto; }
.ruqi-history-card .ruqi-history-message { color: #344943; }
body.dark-mode .ruqi-history-card { border-color: rgba(219,198,145,.2); background: rgba(24,39,49,.94); box-shadow: 0 18px 42px rgba(0,0,0,.18); }
body.dark-mode .ruqi-history-card .ruqi-history > summary { color: #e4d09c !important; }
body.dark-mode .ruqi-history-count { color: rgba(235,238,222,.62); }
body.dark-mode .ruqi-history-card .ruqi-history-message { color: #eeeede !important; border-color: rgba(219,198,145,.18); }
body.dark-mode .ruqi-history-card .ruqi-history-message strong { color: #e4d09c; }
@media (max-width: 700px) {
    .ruqi-history-card { margin: -6px auto 25px; }
    .ruqi-history-card .ruqi-history > summary { padding: 13px 15px; }
    .ruqi-history-list { padding: 0 15px 9px; }
}
body.mq-stats-page { background: #e9ece4; background-image: radial-gradient(ellipse at 90% 4%, rgba(206,170,124,.2), transparent 28rem), radial-gradient(ellipse at 8% 32%, rgba(136,176,160,.18), transparent 30rem), linear-gradient(145deg, #f3f2ea, #e6ece6 63%, #f0e9df); background-attachment: fixed; }
body.mq-stats-page.dark-mode { background: #111d29; background-image: radial-gradient(ellipse at 90% 4%, rgba(157,125,86,.14), transparent 28rem), radial-gradient(ellipse at 8% 32%, rgba(94,143,127,.15), transparent 30rem), linear-gradient(145deg, #111d29, #17272d 63%, #1c2529); }
.stats-page { width: min(1080px, 92%); padding-top: clamp(22px, 4vw, 46px); padding-bottom: 72px; }
.stats-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 210px; margin-bottom: 20px; padding: clamp(24px, 5vw, 44px); overflow: hidden; border: 1px solid rgba(212,223,170,.2); border-radius: 4px 28px 4px 28px; background: radial-gradient(ellipse at 80% 48%, rgba(138,176,147,.18), transparent 26rem), linear-gradient(115deg, #142735, #1a3740 65%, #394b3d); box-shadow: 0 25px 62px rgba(29,53,55,.18); }
.stats-hero::after { position: absolute; left: 9%; top: -74px; width: 250px; height: 250px; border: 1px solid rgba(226,228,197,.17); border-radius: 50%; box-shadow: 0 0 0 25px rgba(226,228,197,.025), 0 0 0 55px rgba(226,228,197,.02); content: ""; pointer-events: none; }
.stats-hero-copy { position: relative; z-index: 1; }
.stats-hero .brand-name { margin: 0 0 9px; color: #d9dfb2; font-size: 11px; }
.stats-hero h1 { margin: 0; color: #f5f0e2; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.04em; }
.stats-hero .subtitle { margin-top: 10px; color: rgba(240,237,220,.67); font-size: 12px; }
.stats-orbit { position: relative; z-index: 1; display: grid; place-items: center; flex: 0 0 clamp(126px, 18vw, 170px); width: clamp(126px, 18vw, 170px); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(#dce3b3 var(--stats-progress), rgba(234,235,215,.13) 0); box-shadow: 0 0 38px rgba(212,223,170,.08); }
.stats-orbit::before { position: absolute; inset: 8px; border: 1px solid rgba(236,235,213,.18); border-radius: 50%; content: ""; }
.stats-orbit-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; width: calc(100% - 18px); aspect-ratio: 1; border-radius: 50%; background: linear-gradient(145deg, #1b3741, #162a36); }
.stats-orbit-inner strong { color: #e4e8c3; font-size: clamp(27px, 4vw, 40px); line-height: 1.1; }
.stats-orbit-inner span { margin-top: 6px; color: rgba(240,237,220,.58); font-size: 9px; }
.stats-page .stats-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin-bottom: 17px; }
.stats-page .stat-card { min-height: 170px; padding: 21px 15px; border: 1px solid rgba(48,76,69,.12); border-radius: 4px 18px 4px 18px; background: rgba(250,249,243,.88); box-shadow: 0 14px 34px rgba(39,59,54,.07); }
.stats-page .stat-card::before { height: 3px; background: linear-gradient(90deg, #78977b, #d6b982); }
.stats-page .stat-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(39,59,54,.12); }
.stats-page .stat-icon { border: 1px solid rgba(93,133,111,.19); border-radius: 4px 14px 4px 14px; background: linear-gradient(145deg, rgba(134,169,134,.16), rgba(212,223,170,.18)); color: #416856; }
.stats-page .stat-card h3 { color: #596d64; font-size: 11px; }
.stats-page .stat-card strong { color: #24474a; font-size: 32px; }
.stats-page .stat-card p { color: #718078; }
.stats-page .progress-section { position: relative; margin-bottom: 15px; padding: clamp(22px, 4vw, 32px); border: 1px solid rgba(48,76,69,.12); border-radius: 4px 21px 4px 21px; background: rgba(250,249,243,.91); box-shadow: 0 17px 39px rgba(39,59,54,.075); }
.stats-page .progress-heading h2 { color: #203b43; font-size: 19px; }
.stats-page .progress-percentage { color: #527461; }
.stats-page .progress-section .progress-bar { height: 12px; overflow: hidden; border-radius: 20px; background: #e2e8df; }
.stats-page .progress-section .progress-fill { position: relative; border-radius: 20px; background: linear-gradient(90deg, #729783, #b7c590, #ddc285); box-shadow: 0 0 17px rgba(126,163,133,.25); }
.stats-page .progress-text { color: #6a7970; font-size: 11px; }
.stats-progress-legend { display: flex; gap: 19px; margin-top: 17px; color: #63736a; font-size: 10px; }
.stats-progress-legend span { display: inline-flex; align-items: center; gap: 7px; }
.stats-progress-legend i { width: 8px; height: 8px; border-radius: 50%; }
.stats-progress-legend .legend-complete { background: #739784; }
.stats-progress-legend .legend-pending { background: #d9bd82; }
.stats-insight { position: relative; display: flex; align-items: center; gap: 17px; min-height: 120px; margin: 15px 0 22px; padding: 22px 24px; overflow: hidden; border: 1px solid rgba(48,76,69,.12); border-radius: 4px 20px 4px 20px; background: linear-gradient(110deg, rgba(250,249,243,.94), rgba(235,240,229,.94)); box-shadow: 0 13px 32px rgba(39,59,54,.06); }
.stats-insight-symbol { position: relative; z-index: 1; display: grid; place-items: center; flex: 0 0 47px; width: 47px; height: 47px; border: 1px solid rgba(93,133,111,.22); border-radius: 4px 15px 4px 15px; background: rgba(122,158,126,.12); color: #456957; font-size: 22px; }
.stats-insight-copy { position: relative; z-index: 1; }
.stats-insight-copy > span { color: #66816d; font-size: 10px; }
.stats-insight-copy h2 { margin: 4px 0 5px; color: #243f43; font-size: 16px; }
.stats-insight-copy p { margin: 0; color: #66766d; font-size: 11px; line-height: 1.8; }
.stats-insight-index { position: absolute; left: 17px; bottom: 13px; color: rgba(76,112,91,.38); font: 8px monospace; direction: ltr; letter-spacing: .13em; }
body.dark-mode .stats-page .stat-card,
body.dark-mode .stats-page .progress-section,
body.dark-mode .stats-page .stats-insight { border-color: rgba(219,226,196,.12); background: rgba(24,39,49,.92); box-shadow: 0 18px 42px rgba(0,0,0,.17); }
body.dark-mode .stats-page .progress-heading h2,
body.dark-mode .stats-page .stats-insight-copy h2 { color: #eff0e2; }
body.dark-mode .stats-page .stat-card h3,
body.dark-mode .stats-page .stat-card p,
body.dark-mode .stats-page .progress-text,
body.dark-mode .stats-page .stats-insight-copy p { color: rgba(235,238,222,.65); }
body.dark-mode .stats-page .stat-card strong { color: #dce3b3; }
body.dark-mode .stats-page .stats-insight-symbol { color: #dce3b3; }
body.dark-mode .plus-back,
body.dark-mode .stats-page .back-button { border-color: rgba(191,207,160,.34); background: rgba(191,207,160,.09); color: #e0e7cb; }
body.dark-mode .plus-back::before,
body.dark-mode .stats-page .back-button::before { border-color: rgba(191,207,160,.24); background: rgba(255,255,255,.07); color: #e0e7cb; }
@media (max-width: 760px) {
    .stats-page .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 540px) {
    .stats-page { width: calc(100% - 24px); }
    .stats-hero { min-height: 170px; padding: 22px 17px; gap: 8px; }
    .stats-orbit { flex-basis: 108px; width: 108px; }
    .stats-orbit-inner strong { font-size: 25px; }
    .stats-orbit-inner span { max-width: 65px; text-align: center; font-size: 8px; }
    .stats-page .stats-grid { gap: 9px; }
    .stats-page .stat-card { min-height: 150px; padding: 16px 8px; }
    .stats-page .stat-card strong { font-size: 28px; }
    .stats-insight { align-items: flex-start; padding: 17px 14px; }
    .stats-insight-symbol { flex-basis: 39px; width: 39px; height: 39px; }
    .stats-insight-index { left: 11px; bottom: 7px; }
}

/* مقارنة الخطة المجانية ومزايا Plus المخططة */
body.mq-plus-page .plus-plan-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0 0 28px; }
body.mq-plus-page .plus-plan-card { position: relative; padding: clamp(22px, 3vw, 32px); overflow: hidden; border: 1px solid rgba(93,133,111,.18); border-radius: 4px 23px 4px 23px; background: rgba(250,249,243,.94); box-shadow: 0 16px 38px rgba(39,59,54,.07); }
body.mq-plus-page .plus-plan-card::after { position: absolute; left: -48px; bottom: -65px; width: 165px; aspect-ratio: 1; border: 1px solid rgba(93,133,111,.11); border-radius: 50%; box-shadow: 0 0 0 18px rgba(93,133,111,.025); content: ""; pointer-events: none; }
body.mq-plus-page .plus-plan-upcoming { border-color: rgba(197,163,93,.34); background: linear-gradient(145deg, rgba(251,247,235,.96), rgba(250,249,243,.96)); }
body.mq-plus-page .plus-plan-tag { display: inline-flex; margin-bottom: 14px; padding: 6px 10px; border: 1px solid rgba(93,133,111,.17); border-radius: 20px; background: rgba(93,133,111,.08); color: #456a54; font-size: 10px; font-weight: 700; }
body.mq-plus-page .plus-plan-upcoming .plus-plan-tag { border-color: rgba(185,145,66,.22); background: rgba(197,163,93,.12); color: #84672e; }
body.mq-plus-page .plus-plan-card h3 { margin: 0 0 8px; color: #243f43; font-size: 20px; }
body.mq-plus-page .plus-plan-card p { margin: 0 0 18px; color: #68776e; font-size: 12px; line-height: 1.9; }
body.mq-plus-page .plus-plan-card ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
body.mq-plus-page .plus-plan-card li { position: relative; padding-inline-start: 22px; color: #3d5149; font-size: 12px; line-height: 1.8; }
body.mq-plus-page .plus-plan-card li::before { position: absolute; inset-inline-start: 0; top: 2px; color: #739174; content: "✓"; font-weight: 800; }
body.mq-plus-page .plus-plan-upcoming li::before { color: #b8914c; content: "✦"; }
body.mq-plus-page .plus-plan-card > small { display: block; margin-top: 20px; padding-top: 13px; border-top: 1px solid rgba(93,133,111,.13); color: #718078; font-size: 10px; line-height: 1.8; }
body.mq-plus-page .plus-subscribe-button:disabled { opacity: .68; cursor: not-allowed; filter: saturate(.65); }
body.dark-mode.mq-plus-page .plus-plan-card { border-color: rgba(219,226,196,.13); background: linear-gradient(145deg, rgba(25,42,49,.97), rgba(22,36,44,.95)); box-shadow: 0 18px 42px rgba(0,0,0,.2); }
body.dark-mode.mq-plus-page .plus-plan-upcoming { border-color: rgba(219,198,145,.24); background: linear-gradient(145deg, rgba(50,45,36,.8), rgba(22,36,44,.97)); }
body.dark-mode.mq-plus-page .plus-plan-card h3 { color: #eff0e2; }
body.dark-mode.mq-plus-page .plus-plan-card p,
body.dark-mode.mq-plus-page .plus-plan-card > small { color: rgba(235,238,222,.66); }
body.dark-mode.mq-plus-page .plus-plan-card li { color: rgba(235,238,222,.84); }
body.dark-mode.mq-plus-page .plus-plan-tag { border-color: rgba(191,207,160,.2); background: rgba(191,207,160,.09); color: #cedcb1; }
body.dark-mode.mq-plus-page .plus-plan-upcoming .plus-plan-tag { border-color: rgba(219,198,145,.2); background: rgba(219,198,145,.1); color: #e4d09c; }
@media (max-width: 700px) { body.mq-plus-page .plus-plan-overview { grid-template-columns: 1fr; gap: 13px; } }

/* تخطيط الصفحة الرئيسية على الهواتف: رأس مدمج وبطاقات بلا قص أفقي */
@media (max-width: 700px) {
    html { width: 100%; overflow-x: clip; }
    body.mq-dashboard-page { width: 100%; overflow-x: clip; }
    body.mq-dashboard-page .topbar {
        position: sticky;
        z-index: 30;
        top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 0;
        padding: max(10px, env(safe-area-inset-top)) 12px 12px;
    }
    body.mq-dashboard-page .brand { justify-content: center; gap: 8px; }
    body.mq-dashboard-page .brand-mark img { width: 38px; height: 38px; }
    body.mq-dashboard-page .brand-info h1 { font-size: 19px; }
    body.mq-dashboard-page .brand-info span { font-size: 8px; }
    body.mq-dashboard-page .navigation {
        display: grid;
        grid-template-columns: repeat(5, minmax(40px, 44px));
        justify-content: center;
        justify-items: center;
        gap: 7px;
        width: auto;
        max-width: 100%;
    }
    body.mq-dashboard-page .navigation > .nav-icon,
    body.mq-dashboard-page .navigation .notification-button {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }
    body.mq-dashboard-page .navigation .notification-wrapper { display: grid; place-items: center; }
    body.mq-dashboard-page .navigation .nav-icon svg { width: 19px; height: 19px; }
    body.mq-dashboard-page .container {
        width: calc(100% - 22px);
        max-width: 560px;
        margin: 16px auto calc(78px + env(safe-area-inset-bottom));
    }
    body.mq-dashboard-page .welcome {
        min-height: 148px;
        margin-bottom: 13px;
        padding: 22px 17px;
        border-radius: 4px 21px 4px 21px;
    }
    body.mq-dashboard-page .welcome h2 { max-width: 100%; font-size: clamp(27px, 8vw, 36px); overflow-wrap: anywhere; }
    body.mq-dashboard-page .welcome-text { max-width: 100%; font-size: 13px; line-height: 1.7; }
    body.mq-dashboard-page .welcome::after { left: 0; top: 28%; width: 76px; height: 76px; font-size: 29px; }
    body.mq-dashboard-page .main-card { min-width: 0; padding: 17px 13px; border-radius: 4px 18px 4px 18px; }
    body.mq-dashboard-page .ruqi-card { flex-wrap: wrap; gap: 12px; padding: 17px 14px; }
    body.mq-dashboard-page .ruqi-content { min-width: 0; flex: 1 1 180px; }
    body.mq-dashboard-page .ruqi-button { width: 100%; min-height: 44px; margin: 0; }
    body .ruqi-widget { bottom: calc(20px + env(safe-area-inset-bottom)) !important; }
    body .ruqi-widget-toggle { width: 62px; height: 62px; }
    body .ruqi-widget-panel { height: min(440px, calc(100dvh - 110px)); }
}

@media (max-width: 380px) {
    body.mq-dashboard-page .topbar { padding-inline: 8px; }
    body.mq-dashboard-page .navigation { grid-template-columns: repeat(5, 39px); gap: 5px; }
    body.mq-dashboard-page .navigation > .nav-icon,
    body.mq-dashboard-page .navigation .notification-button { width: 39px; height: 39px; }
    body.mq-dashboard-page .container { width: calc(100% - 16px); }
    body.mq-dashboard-page .main-card { padding-inline: 11px; }
}

/* قواعد مشتركة لبقية صفحات مِرْقاة على الهواتف */
@media (max-width: 700px) {
    html { max-width: 100%; }
    body:not(.mq-landing) { max-width: 100%; overflow-x: clip; }
    body:not(.mq-landing) .topbar {
        width: 100%;
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
    body:not(.mq-landing) .navigation {
        display: grid;
        grid-template-columns: repeat(5, 40px);
        justify-content: center;
        justify-items: center;
        gap: 6px;
        width: auto;
        max-width: 100%;
    }
    body:not(.mq-landing) .navigation > .nav-icon,
    body:not(.mq-landing) .navigation .notification-button { width: 40px; height: 40px; }
    body:not(.mq-landing) .navigation .notification-wrapper { display: grid; place-items: center; }
    body:not(.mq-landing) img,
    body:not(.mq-landing) video,
    body:not(.mq-landing) iframe { max-width: 100%; }
    body:not(.mq-landing) input,
    body:not(.mq-landing) select,
    body:not(.mq-landing) textarea { max-width: 100%; }
    body.account-page .container { width: calc(100% - 24px); max-width: 100%; }
}

/* صفحة Plus: بطاقات مزايا الاشتراك فقط */
body.mq-plus-page .plus-plan-overview { display: block; width: min(1080px, 100%); margin: 14px auto 42px; }
body.mq-plus-page .plus-plan-heading { max-width: 680px; margin: 0 auto 24px; text-align: center; }
body.mq-plus-page .plus-plan-heading > span { display: inline-flex; padding: 7px 12px; border: 1px solid rgba(197,163,93,.25); border-radius: 30px; background: rgba(197,163,93,.09); color: #a7864b; font-size: 10px; font-weight: 700; }
body.mq-plus-page .plus-plan-heading h3 { margin: 14px 0 8px; color: #243f43; font-size: clamp(23px, 3vw, 32px); }
body.mq-plus-page .plus-plan-heading p { margin: 0; color: #68776e; font-size: 12px; line-height: 1.9; }
body.mq-plus-page .plus-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body.mq-plus-page .plus-plan-card { display: flex; min-height: 325px; flex-direction: column; align-items: center; padding: 27px 22px 23px; border: 1px solid rgba(93,133,111,.17); border-radius: 4px 24px 4px 24px; background: radial-gradient(ellipse at 50% 0, rgba(193,174,117,.14), transparent 55%), rgba(250,249,243,.96); box-shadow: 0 16px 38px rgba(39,59,54,.08); text-align: center; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
body.mq-plus-page .plus-plan-card:hover { transform: translateY(-5px); border-color: rgba(197,163,93,.42); box-shadow: 0 24px 48px rgba(39,59,54,.13); }
body.mq-plus-page .plus-plan-number { align-self: flex-start; color: rgba(76,112,91,.58); font: 10px monospace; letter-spacing: .12em; }
body.mq-plus-page .plus-plan-icon { display: grid; width: 62px; height: 62px; place-items: center; margin: 8px 0 14px; border: 1px solid rgba(197,163,93,.31); border-radius: 19px 7px 19px 7px; background: linear-gradient(145deg, rgba(197,163,93,.2), rgba(93,133,111,.1)); color: #aa8749; font-size: 25px; box-shadow: 0 10px 25px rgba(153,125,68,.1); }
body.mq-plus-page .plus-plan-tag { display: inline-flex; margin: 0 0 8px; padding: 5px 9px; border: 1px solid rgba(93,133,111,.15); border-radius: 20px; background: rgba(93,133,111,.07); color: #5b795f; font-size: 9px; }
body.mq-plus-page .plus-plan-card h3 { margin: 0 0 9px; color: #243f43; font-size: 18px; }
body.mq-plus-page .plus-plan-card p { max-width: 290px; margin: 0 auto 18px; color: #68776e; font-size: 11px; line-height: 1.95; }
body.mq-plus-page .plus-plan-card small { margin-top: auto; padding-top: 13px; border-top: 1px solid rgba(93,133,111,.13); color: #9a8050; font-size: 9px; }
body.mq-plus-page .plus-plan-notice { max-width: 680px; margin: 17px auto 0; color: #8a7652; font-size: 10px; line-height: 1.8; text-align: center; }
body.dark-mode.mq-plus-page .plus-plan-heading h3 { color: #eff0e2; }
body.dark-mode.mq-plus-page .plus-plan-heading p { color: rgba(235,238,222,.66); }
body.dark-mode.mq-plus-page .plus-plan-heading > span { border-color: rgba(219,198,145,.21); background: rgba(219,198,145,.08); color: #e0c783; }
body.dark-mode.mq-plus-page .plus-plan-card { border-color: rgba(219,226,196,.14); background: radial-gradient(ellipse at 50% 0, rgba(205,173,103,.11), transparent 55%), linear-gradient(145deg, rgba(25,42,49,.98), rgba(22,36,44,.96)); box-shadow: 0 18px 42px rgba(0,0,0,.2); }
body.dark-mode.mq-plus-page .plus-plan-card:hover { border-color: rgba(219,198,145,.35); box-shadow: 0 24px 48px rgba(0,0,0,.3); }
body.dark-mode.mq-plus-page .plus-plan-number { color: rgba(219,198,145,.65); }
body.dark-mode.mq-plus-page .plus-plan-icon { border-color: rgba(219,198,145,.23); background: linear-gradient(145deg, rgba(197,163,93,.2), rgba(93,133,111,.1)); color: #e0c783; }
body.dark-mode.mq-plus-page .plus-plan-tag { border-color: rgba(191,207,160,.16); background: rgba(191,207,160,.07); color: #cedcb1; }
body.dark-mode.mq-plus-page .plus-plan-card h3 { color: #eff0e2; }
body.dark-mode.mq-plus-page .plus-plan-card p { color: rgba(235,238,222,.7); }
body.dark-mode.mq-plus-page .plus-plan-card small { border-color: rgba(219,226,196,.13); color: #d6bd80; }
body.dark-mode.mq-plus-page .plus-plan-notice { color: rgba(219,198,145,.72); }
@media (max-width: 780px) { body.mq-plus-page .plus-plan-grid { grid-template-columns: 1fr; } body.mq-plus-page .plus-plan-card { min-height: 0; } }
