* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #fafafa 0%, #f0f9ff 100%);
    font-family: 'Tajawal', sans-serif;
    color: #64748b;
    font-weight: 600;
    position: relative;
    padding-top: 70px;
}

h1,
h2,
h3,
h4,
.h {
    font-family: 'Scheherazade New', serif;
    font-weight: 700;
    color: #1e293b;
}

h1 {
    font-size: clamp(24px, 6vw, 36px);
}

.harf {
    color: #f59e0b;
    margin: 0;
}

.harf2 {
    color: #38bdf8;
}

.harf3 {
    color: #10b981;
}

/* ========== شريط التنقل الرئيسي ========== */
.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-bottom: 2px solid rgba(16, 185, 129, 0.2);
}

.main-navbar .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    max-width: 1400px;
    margin: 0 auto;
    height: 60px;
}

@media (min-width: 768px) {
    .main-navbar .nav-container {
        height: 70px;
        padding: 0 5%;
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo-img {
    width: 35px;
    height: 35px;
    border-radius: 8px;
}

@media (min-width: 768px) {
    .nav-logo-img {
        width: 40px;
        height: 40px;
    }
}

.nav-logo-text {
    font-family: 'Scheherazade New', serif;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .nav-logo-text {
        font-size: 24px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-link {
    display: block;
    padding: 6px 12px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 30px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .nav-link {
        padding: 8px 16px;
        font-size: 15px;
    }
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.nav-actions {
    display: flex;
    align-items: center;
}

.nav-theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-theme-btn:hover {
    background: #10b981;
    color: white;
    transform: rotate(90deg);
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
}

@media (max-width: 768px) {
    .nav-mobile-toggle {
        display: flex;
    }
}

.nav-mobile-toggle span {
    width: 100%;
    height: 3px;
    background: #10b981;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* للشاشات الصغيرة */
@media (max-width: 767px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 75%;
        max-width: 280px;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        padding: 20px 15px;
        gap: 8px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        z-index: 9999;
        border-radius: 20px 0 0 20px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        padding: 12px 15px;
        font-size: 16px;
        text-align: right;
        border-radius: 12px;
        display: block;
        width: 100%;
    }
}

/* ========== HEADER ========== */
header {
    text-align: center;
    background-color: #ffffff;
    width: 100%;
    border-bottom: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 5px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 20px 15px;
    position: relative;
}

@media (min-width: 768px) {
    header {
        padding: 24px;
    }
}

.Usage-instructions-button {
    background: linear-gradient(to right, #10b981, #059669);
    border: none;
    border-radius: 60px;
    padding: clamp(12px, 3vw, 16px) clamp(24px, 5vw, 42px);
    margin: 10px auto;
    box-shadow: 0 15px 25px -8px rgba(5, 150, 105, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 90%;
}

.Usage-instructions-button a {
    color: white;
    text-decoration: none;
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(14px, 4vw, 18px);
    font-weight: 700;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: normal;
    word-break: break-word;
}

.Usage-instructions-svg {
    margin-right: 8px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.Usage-instructions-button a::before {
    content: "📘";
    font-size: clamp(20px, 5vw, 26px);
    margin-left: 6px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
    transition: transform 0.2s;
    flex-shrink: 0;
}

.Usage-instructions-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 35px -10px rgba(5, 150, 105, 0.6);
    background: linear-gradient(to right, #0da271, #04855c);
}

.Usage-instructions-button:hover a::before {
    transform: rotate(-5deg) scale(1.05);
}

.Usage-instructions-button:active {
    transform: translateY(-2px);
    box-shadow: 0 18px 25px -8px rgba(5, 150, 105, 0.5);
}

.h-h {
    color: #64748b;
    font-size: clamp(14px, 3vw, 16px);
}

.logo-img {
    position: absolute;
    top: 2%;
    right: 2%;
    width: clamp(40px, 8vw, 70px);
    height: auto;
    max-width: 100px;
}

.abd-devgin {
    color: #10b981;
}

.wael {
    color: #f59e0b;
    font-size: clamp(18px, 5vw, 24px);
}

/* ========== INTRO ========== */
.intro {
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
    margin: 20px auto;
    width: calc(100% - 40px);
    max-width: 1200px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    padding: clamp(12px, 3vw, 24px);
    border: 4px solid rgba(0, 0, 0, 0.08);
}

.intro h2 {
    color: #10b981;
    font-size: clamp(24px, 6vw, 36px);
    word-break: break-word;
}

.intro-p1 {
    color: #10b981;
    margin: 5px;
    font-size: clamp(16px, 4vw, 24px);
}

.intro-p2 {
    margin: 5px;
    font-size: clamp(14px, 3.5vw, 18px);
}

.intro-p3 {
    color: #f59e0b;
    margin: 5px;
}

video {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    height: auto;
}

/* ========== PROGRAMS SECTION ========== */
.Programs {
    text-align: center;
    padding: clamp(20px, 5vw, 40px) clamp(10px, 3vw, 20px);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    margin: 30px auto;
    width: 100%;
    max-width: 1300px;
}

.Programs h2 {
    color: #10b981;
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.Programs h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: min(80px, 30vw);
    height: 3px;
    background: linear-gradient(to right, #f59e0b, #10b981);
    border-radius: 2px;
}

.programs-subtitle {
    color: #64748b;
    font-size: clamp(14px, 3.5vw, 18px);
    margin-bottom: 40px;
    padding: 0 15px;
}

.Programs-css {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(15px, 3vw, 30px);
    padding: 10px;
    width: 100%;
    margin: 0 auto;
}

.Program-card {
    background: white;
    border-radius: 20px;
    padding: clamp(20px, 4vw, 30px) clamp(15px, 3vw, 20px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.Program-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.Program-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2);
}

.Program-card:hover::before {
    opacity: 0.5;
}

.program-icon {
    width: min(80px, 20vw);
    height: min(80px, 20vw);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.program-icon svg {
    width: 40px;
    height: 40px;
    max-width: 100%;
    transition: all 0.3s;
}

.Program-card:hover .program-icon svg {
    transform: rotate(360deg) scale(1.1);
}

.Program-card h3 {
    color: #1e293b;
    font-size: clamp(18px, 4vw, 22px);
    margin-bottom: 10px;
    font-weight: 700;
    word-break: break-word;
}

.Program-card p {
    color: #64748b;
    font-size: clamp(13px, 3vw, 15px);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
    word-break: break-word;
}

.program-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(10px, 2.5vw, 12px) clamp(18px, 4vw, 25px);
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: clamp(14px, 3.5vw, 16px);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    margin-top: auto;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
}

@media (max-width: 350px) {
    .program-btn {
        white-space: normal;
        padding: 8px 15px;
    }
}

.program-btn-1 {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.program-btn-2 {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.program-btn-3 {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.3);
}

.program-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.program-btn svg {
    transition: transform 0.3s;
    width: 16px;
    height: 16px;
}

.program-btn:hover svg {
    transform: translateX(5px);
}

.programs-note {
    margin-top: 30px;
    color: #94a3b8;
    font-size: clamp(12px, 3vw, 14px);
    font-style: italic;
    padding: 0 15px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ========== MAIN GRID ========== */
main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(15px, 3vw, 25px);
    padding: clamp(10px, 3vw, 20px);
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

/* ========== DAY CARD ========== */
.day-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    border: 2px solid rgba(56, 189, 248, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.day-card.completed {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.2);
}

.day-header {
    background: linear-gradient(to right, #38bdf8, #0ea5e9);
    padding: clamp(12px, 3vw, 16px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.day-card.completed .day-header {
    background: linear-gradient(to right, #10b981, #059669);
}

.day-number {
    font-family: 'Bixie', cursive;
    font-size: clamp(32px, 8vw, 48px);
    color: white;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    word-break: break-word;
}

.dates {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.date-hijri {
    color: white;
    font-size: clamp(12px, 3vw, 14px);
    opacity: 0.9;
}

.date-gregorian {
    color: white;
    font-size: clamp(10px, 2.5vw, 12px);
    opacity: 0.75;
}

.percentage {
    font-family: 'Bixie', cursive;
    font-size: clamp(24px, 6vw, 32px);
    color: white;
    margin-top: 8px;
    font-weight: bold;
}

.day-content {
    padding: clamp(15px, 4vw, 20px);
}

.ibadah-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ibadah-box {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 12px);
    padding: clamp(10px, 2.5vw, 12px);
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.ibadah-box:hover {
    border-color: rgba(16, 185, 129, 0.2);
}

.ibadah-box.completed {
    background: linear-gradient(to right, #d1fae5, #e0f2fe);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.checkbox-wrapper {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@media (hover: none) and (pointer: coarse) {
    .checkbox-wrapper {
        width: 24px;
        height: 24px;
    }
}

.checkbox {
    width: 100%;
    height: 100%;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
    background: white;
}

.checkbox:checked {
    background: #10b981;
    border-color: #10b981;
}

.checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.icon-box {
    width: clamp(35px, 8vw, 40px);
    height: clamp(35px, 8vw, 40px);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.icon-box svg {
    width: 20px;
    height: 20px;
    max-width: 100%;
}

.ibadah-label {
    flex: 1;
    color: #64748b;
    font-size: clamp(14px, 3.5vw, 16px);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    word-break: break-word;
}

.ibadah-box.completed .ibadah-label {
    color: #1e293b;
}

.info-button {
    width: clamp(24px, 6vw, 28px);
    height: clamp(24px, 6vw, 28px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    flex-shrink: 0;
    position: relative;
}

@media (hover: none) and (pointer: coarse) {
    .info-button {
        width: 40px;
        height: 40px;
    }
}

.info-button:hover {
    transform: scale(1.1);
}

.info-button svg {
    width: 16px;
    height: 16px;
    max-width: 100%;
}

.tooltip {
    position: absolute;
    left: 0;
    top: 35px;
    width: min(280px, 90vw);
    background: white;
    border: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 100;
    display: none;
    animation: fadeIn 0.2s ease;
}

@media (max-width: 480px) {
    .tooltip {
        left: 50%;
        transform: translateX(-50%);
        top: 40px;
    }

    .tooltip::before {
        left: 50% !important;
        transform: translateX(-50%) rotate(45deg) !important;
    }
}

.tooltip.show {
    display: block;
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 16px;
    width: 14px;
    height: 14px;
    background: white;
    border-top: 2px solid rgba(16, 185, 129, 0.4);
    border-left: 2px solid rgba(16, 185, 129, 0.4);
    transform: rotate(45deg);
}

@media (max-width: 480px) {
    .tooltip::before {
        left: 20px;
    }
}

.tooltip-text {
    color: #1e293b;
    font-size: clamp(12px, 3vw, 14px);
    line-height: 1.6;
    word-break: break-word;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: none;
}

.overlay.show {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.circle1 {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    top: -20px;
    right: 20px;
}

.circle2 {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    bottom: 10px;
    left: 30px;
}

/* ========== LAST TEN CARD ========== */
.lastTen-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    border: 2px solid rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.lastTen-card:hover {
    border-color: rgba(245, 158, 11, 0.5);
}

.lastTen-card.completed-lastTen {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.2);
}

.lastTen-banner {
    background: linear-gradient(to right, #f59e0b, #fbbf24, #f59e0b);
    padding: 8px;
    text-align: center;
    font-family: 'Bixie', cursive;
    color: white;
    font-size: clamp(12px, 3vw, 14px);
    font-weight: bold;
    animation: lastTen-shimmer 3s infinite;
    background-size: 200% 100%;
}

@keyframes lastTen-shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.lastTen-header {
    background: linear-gradient(to right, #f59e0b, #d97706);
    padding: clamp(12px, 3vw, 16px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lastTen-card.completed-lastTen .lastTen-header {
    background: linear-gradient(to right, #10b981, #059669);
}

.lastTen-dayNumber {
    font-family: 'Bixie', cursive;
    font-size: clamp(32px, 8vw, 48px);
    color: white;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lastTen-dates {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lastTen-hijri {
    color: white;
    font-size: clamp(12px, 3vw, 14px);
    opacity: 0.9;
}

.lastTen-gregorian {
    color: white;
    font-size: clamp(10px, 2.5vw, 12px);
    opacity: 0.75;
}

.lastTen-percentage {
    font-family: 'Bixie', cursive;
    font-size: clamp(24px, 6vw, 32px);
    color: white;
    margin-top: 8px;
    font-weight: bold;
}

.lastTen-content {
    padding: clamp(15px, 4vw, 20px);
}

.lastTen-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lastTen-item {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 12px);
    padding: clamp(10px, 2.5vw, 12px);
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.lastTen-item:hover {
    border-color: rgba(16, 185, 129, 0.2);
}

.lastTen-item.completed-lastTen {
    background: linear-gradient(to right, #d1fae5, #e0f2fe);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.lastTen-checkboxWrapper {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@media (hover: none) and (pointer: coarse) {
    .lastTen-checkboxWrapper {
        width: 24px;
        height: 24px;
    }
}

.lastTen-checkbox {
    width: 100%;
    height: 100%;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
    background: white;
}

.lastTen-checkbox:checked {
    background: #10b981;
    border-color: #10b981;
}

.lastTen-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.lastTen-iconBox {
    width: clamp(35px, 8vw, 40px);
    height: clamp(35px, 8vw, 40px);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.lastTen-iconBox svg {
    width: 20px;
    height: 20px;
    max-width: 100%;
}

.lastTen-label {
    flex: 1;
    color: #64748b;
    font-size: clamp(14px, 3.5vw, 16px);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    word-break: break-word;
}

.lastTen-item.completed-lastTen .lastTen-label {
    color: #1e293b;
}

.lastTen-infoButton {
    width: clamp(24px, 6vw, 28px);
    height: clamp(24px, 6vw, 28px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    flex-shrink: 0;
    position: relative;
}

@media (hover: none) and (pointer: coarse) {
    .lastTen-infoButton {
        width: 40px;
        height: 40px;
    }
}

.lastTen-infoButton:hover {
    transform: scale(1.1);
}

.lastTen-infoButton svg {
    width: 16px;
    height: 16px;
    max-width: 100%;
}

.lastTen-tooltip {
    position: absolute;
    left: 0;
    top: 35px;
    width: min(280px, 90vw);
    background: white;
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 100;
    display: none;
    animation: lastTen-fadeIn 0.2s ease;
}

@media (max-width: 480px) {
    .lastTen-tooltip {
        left: 50%;
        transform: translateX(-50%);
        top: 40px;
    }

    .lastTen-tooltip::before {
        left: 50% !important;
        transform: translateX(-50%) rotate(45deg) !important;
    }
}

.lastTen-tooltip.show-lastTen {
    display: block;
}

.lastTen-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 16px;
    width: 14px;
    height: 14px;
    background: white;
    border-top: 2px solid rgba(245, 158, 11, 0.4);
    border-left: 2px solid rgba(245, 158, 11, 0.4);
    transform: rotate(45deg);
}

.lastTen-tooltipText {
    color: #1e293b;
    font-size: clamp(12px, 3vw, 14px);
    line-height: 1.6;
    word-break: break-word;
}

.lastTen-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: none;
}

.lastTen-overlay.show-lastTen {
    display: block;
}

@keyframes lastTen-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lastTen-decoration {
    position: absolute;
    pointer-events: none;
}

.lastTen-star {
    color: rgba(255, 255, 255, 0.3);
    font-size: 20px;
}

.lastTen-star1 {
    top: 10px;
    right: 30px;
    animation: lastTen-twinkle 2s infinite;
}

.lastTen-star2 {
    top: 30px;
    left: 40px;
    animation: lastTen-twinkle 2.5s infinite 0.5s;
}

.lastTen-star3 {
    bottom: 20px;
    right: 50px;
    animation: lastTen-twinkle 3s infinite 1s;
}

@keyframes lastTen-twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* ========== AYA STYLES ========== */
.aya {
    color: #d97706;
}

.aya2 {
    color: #1e293b;
}

/* ========== PROGRESS SECTION ========== */
.progress-section {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 50px;
    padding: clamp(20px, 5vw, 40px) clamp(15px, 4vw, 30px);
    padding-bottom: 0px;
    margin: 40px auto;
    width: calc(100% - 30px);
    max-width: 1000px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.progress-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.progress-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b15, #10b98115);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: min(200px, 40vw);
    height: min(200px, 40vw);
    top: -50px;
    right: -50px;
    animation-delay: 0s;
}

.circle-2 {
    width: min(150px, 30vw);
    height: min(150px, 30vw);
    bottom: -30px;
    left: -30px;
    animation-delay: 2s;
}

.circle-3 {
    width: min(100px, 20vw);
    height: min(100px, 20vw);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(10px, 10px) scale(1.1);
    }
}

.progress-header {
    display: flex;
    align-items: center;
    gap: clamp(15px, 4vw, 20px);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    padding: clamp(15px, 4vw, 20px);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 480px) {
    .progress-header {
        flex-direction: column;
        text-align: center;
    }
}

.progress-logo {
    width: clamp(60px, 15vw, 80px);
    height: clamp(60px, 15vw, 80px);
    border-radius: 20px;
    box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.3);
    animation: logoGlow 3s ease-in-out infinite;
    object-fit: cover;
}

@keyframes logoGlow {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 20px 30px -5px rgba(245, 158, 11, 0.5);
    }
}

.progress-title h2 {
    color: #1e293b;
    font-size: clamp(20px, 5vw, 28px);
    margin-bottom: 5px;
    font-weight: 800;
    word-break: break-word;
}

.progress-subtitle {
    color: #64748b;
    font-size: clamp(13px, 3.5vw, 16px);
}

.progress-card {
    background: white;
    border-radius: clamp(20px, 5vw, 40px);
    padding: clamp(20px, 5vw, 30px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.2);
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.progress-track {
    margin-bottom: 30px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.progress-label-text {
    color: #475569;
    font-size: clamp(14px, 4vw, 18px);
    font-weight: 600;
}

.progress-percentage {
    color: #f59e0b;
    font-size: clamp(24px, 6vw, 32px);
    font-weight: 800;
    text-shadow: 0 2px 5px rgba(245, 158, 11, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.progress-bar-container {
    width: 100%;
}

.progress-bar-bg {
    width: 100%;
    height: clamp(20px, 4vw, 25px);
    background: #e2e8f0;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #10b981);
    border-radius: 50px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: clamp(12px, 3vw, 15px);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

.stat-icon {
    width: clamp(40px, 10vw, 45px);
    height: clamp(40px, 10vw, 45px);
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(20px, 5vw, 24px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-value {
    display: block;
    font-size: clamp(18px, 4vw, 22px);
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    word-break: break-word;
}

.stat-label {
    display: block;
    color: #64748b;
    font-size: clamp(11px, 2.5vw, 13px);
    font-weight: 500;
    word-break: break-word;
}

.progress-message {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: clamp(12px, 3vw, 15px) clamp(15px, 4vw, 20px);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 50px;
    border: 2px solid rgba(56, 189, 248, 0.3);
    animation: messagePulse 3s infinite;
    flex-wrap: wrap;
    justify-content: center;
}

@keyframes messagePulse {

    0%,
    100% {
        box-shadow: 0 5px 15px rgba(56, 189, 248, 0.2);
    }

    50% {
        box-shadow: 0 10px 25px rgba(56, 189, 248, 0.4);
    }
}

.message-icon {
    font-size: clamp(24px, 6vw, 32px);
    animation: spin 10s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.message-text {
    color: #0369a1;
    font-size: clamp(14px, 4vw, 18px);
    font-weight: 700;
    flex: 1;
    text-align: center;
    word-break: break-word;
}

.schedule-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 30px 0 15px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.title-decoration {
    width: min(50px, 10vw);
    height: 3px;
    background: linear-gradient(90deg, transparent, #f59e0b, #10b981, transparent);
    border-radius: 3px;
}

.schedule-title h3 {
    color: #1e293b;
    font-size: clamp(20px, 5vw, 28px);
    font-weight: 800;
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 350px) {
    .schedule-title h3 {
        white-space: normal;
        text-align: center;
    }
}

.schedule-subtitle {
    text-align: center;
    color: #64748b;
    font-size: clamp(13px, 3.5vw, 16px);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    padding: 0 10px;
}

/* ========== FOOTER ========== */
.himmah-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: clamp(30px, 8vw, 40px) 20px 20px;
    margin-top: 50px;
    border-top: 4px solid #f59e0b;
    font-family: 'Tajawal', sans-serif;
    width: 100%;
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: clamp(20px, 5vw, 30px);
    text-align: center;
}

.footer-company {
    text-align: center;
}

.footer-logo {
    width: clamp(60px, 15vw, 80px);
    height: clamp(60px, 15vw, 80px);
    margin-bottom: 15px;
    border-radius: 50%;
    border: 3px solid #f59e0b;
    padding: 5px;
    background: white;
    object-fit: cover;
}

.footer-company h3 {
    color: #f59e0b;
    font-size: clamp(16px, 4vw, 18px);
    margin-bottom: 5px;
    word-break: break-word;
}

.footer-company h3 span {
    color: #10b981;
}

.footer-company-desc {
    color: #94a3b8;
    font-size: clamp(12px, 3vw, 14px);
    word-break: break-word;
}

.footer-dua {
    text-align: center;
    border-right: 2px solid #f59e0b;
    border-left: 2px solid #f59e0b;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .footer-dua {
        border: none;
        border-top: 2px solid #f59e0b;
        border-bottom: 2px solid #f59e0b;
        padding: 20px 0;
    }
}

.footer-dua-text {
    font-size: clamp(14px, 3.5vw, 16px);
    line-height: 1.8;
    color: #e2e8f0;
    margin-bottom: 15px;
    word-break: break-word;
}

.footer-quote {
    display: block;
    color: #f59e0b;
    font-size: clamp(16px, 4vw, 18px);
    font-family: 'Scheherazade New', serif;
    margin-top: 10px;
    word-break: break-word;
}

.footer-copyright {
    color: #64748b;
    font-size: clamp(12px, 3vw, 14px);
    border-top: 1px solid #334155;
    padding-top: 15px;
    word-break: break-word;
}

.footer-social p {
    color: #f59e0b;
    margin-bottom: 10px;
    font-size: clamp(14px, 3.5vw, 16px);
}

.social-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-icons a {
    color: white;
    text-decoration: none;
    background: #334155;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: clamp(12px, 3vw, 14px);
    transition: all 0.3s;
    word-break: break-word;
}

.social-icons a:hover {
    background: #f59e0b;
    transform: translateY(-3px);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #f59e0b, #10b981);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #f97316, #059669);
}

/* ========== PRINT STYLES ========== */
@media print {

    .info-button,
    .lastTen-infoButton,
    .Programs,
    footer,
    header,
    .progress-section,
    .Usage-instructions-button {
        display: none !important;
    }

    .day-card,
    .lastTen-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
    }

    body {
        background: white;
        color: black;
    }
}

/* ========== TOUCH DEVICE OPTIMIZATIONS ========== */
@media (hover: none) and (pointer: coarse) {

    .ibadah-box,
    .lastTen-item,
    .Program-card,
    .stat-item,
    .social-icons a {
        cursor: default;
        -webkit-tap-highlight-color: transparent;
    }

    .info-button,
    .lastTen-infoButton,
    .program-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .checkbox,
    .lastTen-checkbox {
        min-width: 24px;
        min-height: 24px;
    }

    .ibadah-box:active,
    .lastTen-item:active {
        background-color: #e2e8f0;
        transform: scale(0.98);
    }
}

/* ========== UTILITY CLASSES ========== */
.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

.overflow-hidden {
    overflow: hidden;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ========== RTL SUPPORT ========== */
[dir="rtl"] .tooltip::before,
[dir="rtl"] .lastTen-tooltip::before {
    left: auto;
    right: 16px;
}

[dir="rtl"] .program-btn svg {
    transform: rotate(180deg);
}

[dir="rtl"] .program-btn:hover svg {
    transform: translateX(-5px) rotate(180deg);
}

/* ========== RESET DATA BUTTON ========== */
.reset-data-button {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    border-radius: 60px;
    padding: clamp(10px, 2.5vw, 14px) clamp(25px, 5vw, 45px);
    margin: 15px auto 5px;
    color: white;
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(14px, 3.5vw, 18px);
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 1.5vw, 10px);
    box-shadow: 0 15px 25px -8px rgba(220, 38, 38, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    max-width: 90%;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .reset-data-button {
        white-space: normal;
        padding: 12px 20px;
        width: auto;
        min-width: 200px;
    }
}

@media (max-width: 350px) {
    .reset-data-button {
        min-width: 160px;
        font-size: 13px;
        padding: 10px 15px;
    }
}

.reset-data-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.reset-data-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 35px -10px rgba(220, 38, 38, 0.6);
    background: linear-gradient(135deg, #f87171, #ef4444);
}

.reset-data-button:hover::before {
    left: 100%;
}

.reset-data-button:active {
    transform: translateY(-2px);
    box-shadow: 0 18px 25px -8px rgba(220, 38, 38, 0.5);
}

.reset-data-button span {
    font-size: clamp(16px, 4vw, 20px);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.reset-data-button:hover span {
    transform: rotate(-10deg) scale(1.1);
}

/* تأثير وامض للزر */
@keyframes resetPulse {

    0%,
    100% {
        box-shadow: 0 15px 25px -8px rgba(220, 38, 38, 0.4);
    }

    50% {
        box-shadow: 0 20px 35px -5px rgba(220, 38, 38, 0.7);
    }
}

.reset-data-button {
    animation: resetPulse 3s infinite;
}

/* للشاشات التي تعمل باللمس */
@media (hover: none) and (pointer: coarse) {
    .reset-data-button {
        padding: 14px 30px;
        min-height: 50px;
        animation: none;
    }

    .reset-data-button:active {
        transform: scale(0.95);
        background: linear-gradient(135deg, #f87171, #ef4444);
    }
}

/* ========== قسم خطوات التنزيل ========== */
.download-section {
    text-align: center;
    padding: 40px 20px;
    margin: 30px auto;
    max-width: 1000px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 60px;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(245, 158, 11, 0.2);
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: "📲";
    position: absolute;
    font-size: 150px;
    opacity: 0.03;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.download-title {
    font-family: 'Scheherazade New', serif;
    font-size: clamp(28px, 6vw, 42px);
    color: #10b981;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.download-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #f59e0b, #10b981);
    border-radius: 2px;
}

.download-subtitle {
    color: #64748b;
    font-size: clamp(14px, 3.5vw, 18px);
    margin-bottom: 40px;
    padding: 0 15px;
}

.download-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.platform-card {
    flex: 1 1 280px;
    max-width: 350px;
    background: white;
    border-radius: 40px;
    padding: 30px 20px 25px;
    box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.platform-card.android {
    background: linear-gradient(145deg, #ffffff, #f0f9ff);
    border-color: rgba(16, 185, 129, 0.3);
}

.platform-card.ios {
    background: linear-gradient(145deg, #ffffff, #fff7ed);
    border-color: rgba(245, 158, 11, 0.3);
}

.platform-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.25);
}

.platform-icon {
    font-size: 64px;
    margin-bottom: 15px;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.1));
    animation: bounce 3s ease-in-out infinite;
}

.android .platform-icon {
    animation-delay: 0s;
}

.ios .platform-icon {
    animation-delay: 1.5s;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.platform-name {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px dashed;
}

.android .platform-name {
    color: #10b981;
    border-bottom-color: #10b981;
}

.ios .platform-name {
    color: #f59e0b;
    border-bottom-color: #f59e0b;
}

.steps-list {
    text-align: right;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: clamp(15px, 3.5vw, 18px);
    color: #334155;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50px;
    transition: all 0.3s;
}

.step-item:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateX(-5px);
}

.step-number {
    width: 32px;
    height: 32px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
}

.android .step-number {
    background: #10b981;
}

.ios .step-number {
    background: #f59e0b;
}

.step-text {
    flex: 1;
    text-align: right;
    line-height: 1.5;
}

.step-text strong {
    color: #0f172a;
    font-weight: 800;
}

.step-icon {
    font-size: 22px;
    margin: 0 5px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.browser-icon {
    background: #e2e8f0;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    display: inline-block;
    margin-top: 5px;
}

.android .browser-icon {
    background: #d1fae5;
    color: #065f46;
}

.ios .browser-icon {
    background: #fed7aa;
    color: #92400e;
}

.note-box {
    margin-top: 35px;
    padding: 18px 25px;
    background: #fef9e7;
    border-radius: 50px;
    border-right: 6px solid #f59e0b;
    text-align: right;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.note-box p {
    color: #7b5d2e;
    font-size: clamp(14px, 3.5vw, 16px);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.note-box span {
    background: #f59e0b20;
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 700;
    color: #b45309;
}

.device-mockup {
    position: absolute;
    opacity: 0.05;
    font-size: 120px;
    bottom: -30px;
    left: -30px;
    transform: rotate(-15deg);
    pointer-events: none;
}

.android .device-mockup {
    content: "🤖";
}

.ios .device-mockup {
    content: "📱";
    right: -30px;
    left: auto;
    transform: rotate(15deg);
}

/* ========== شريط تنقل الأيام المتطور - محسن للجوال ========== */
.days-navigation-modern {
    background: white;
    border-radius: 30px;
    padding: 15px;
    margin-bottom: 15px;
    /* تقليل من 20px إلى 15px */
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.15);
    position: sticky;
    top: 65px;
    z-index: 99;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.98);
}

@media (min-width: 480px) {
    .days-navigation-modern {
        border-radius: 40px;
        padding: 15px 18px;
        margin-bottom: 18px;
        /* تقليل المسافة */
    }
}

@media (min-width: 768px) {
    .days-navigation-modern {
        padding: 15px 20px;
        margin-bottom: 20px;
        /* تقليل من 25px إلى 20px */
        top: 75px;
        box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.1);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 10px;
    /* تقليل من 20px إلى 10px */
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 15px;
        /* تقليل من 25px إلى 15px */
    }
}

.section-title {
    font-size: 26px;
    color: #10b981;
    margin-bottom: 6px;
    position: relative;
    display: inline-block;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 32px;
        margin-bottom: 8px;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #f59e0b, #10b981);
    border-radius: 3px;
}

@media (min-width: 768px) {
    .section-title::after {
        width: 60px;
        bottom: -8px;
    }
}

.section-subtitle {
    color: #64748b;
    font-size: 14px;
    padding: 0 10px;
}

@media (min-width: 768px) {
    .section-subtitle {
        font-size: 16px;
    }
}

/* شريط التنقل - محسن للجوال */
.days-navigation-modern {
    background: white;
    border-radius: 30px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.15);
    position: sticky;
    top: 65px;
    z-index: 99;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.98);
}

@media (min-width: 480px) {
    .days-navigation-modern {
        border-radius: 40px;
        padding: 15px 18px;
    }
}

@media (min-width: 768px) {
    .days-navigation-modern {
        padding: 15px 20px;
        margin-bottom: 25px;
        top: 75px;
        box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.1);
    }
}

/* رأس شريط التنقل */
.days-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .days-nav-header {
        gap: 10px;
        margin-bottom: 12px;
    }
}

/* أزرار التنقل */
.days-nav-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (min-width: 480px) {
    .days-nav-arrow {
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 768px) {
    .days-nav-arrow {
        width: 42px;
        height: 42px;
    }
}

.days-nav-arrow svg {
    width: 18px;
    height: 18px;
}

@media (min-width: 768px) {
    .days-nav-arrow svg {
        width: 20px;
        height: 20px;
    }
}

.days-nav-arrow:hover:not(:disabled) {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.days-nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* منطقة العرض */
.days-nav-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f8fafc;
    padding: 6px 10px;
    border-radius: 30px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    min-width: 0;
}

@media (min-width: 480px) {
    .days-nav-display {
        gap: 10px;
        padding: 6px 12px;
    }
}

@media (min-width: 768px) {
    .days-nav-display {
        gap: 12px;
        padding: 6px 15px;
        border-radius: 40px;
    }
}

/* عنوان اليوم */
.current-day-badge {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
}

@media (min-width: 480px) {
    .current-day-badge {
        font-size: 18px;
    }
}

@media (min-width: 768px) {
    .current-day-badge {
        font-size: 20px;
    }
}

/* شريط التقدم المصغر */
.current-day-progress {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.progress-text {
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
    min-width: 35px;
    text-align: center;
}

@media (min-width: 480px) {
    .progress-text {
        font-size: 14px;
        min-width: 38px;
    }
}

@media (min-width: 768px) {
    .progress-text {
        font-size: 14px;
        min-width: 40px;
    }
}

.progress-mini-bar {
    flex: 1;
    min-width: 40px;
    max-width: 60px;
    height: 5px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

@media (min-width: 480px) {
    .progress-mini-bar {
        min-width: 50px;
        max-width: 70px;
        height: 6px;
    }
}

@media (min-width: 768px) {
    .progress-mini-bar {
        min-width: 60px;
        max-width: 80px;
        height: 6px;
    }
}

.progress-mini-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #f59e0b);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* كاروسيل التبويبات */
.days-tabs-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #10b981 #e2e8f0;
    -webkit-overflow-scrolling: touch;
    padding: 5px 0;
    margin: 8px 0;
    scroll-behavior: smooth;
}

.days-tabs-carousel::-webkit-scrollbar {
    height: 4px;
}

@media (min-width: 768px) {
    .days-tabs-carousel::-webkit-scrollbar {
        height: 6px;
    }
}

.days-tabs-carousel::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.days-tabs-carousel::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 10px;
}

.tabs-container {
    display: flex;
    gap: 8px;
    padding: 0 3px;
}

@media (min-width: 480px) {
    .tabs-container {
        gap: 10px;
    }
}

/* التبويبات الدائرية */
.day-tab {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 480px) {
    .day-tab {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    .day-tab {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }
}

.day-tab:active {
    transform: scale(0.95);
}

.day-tab:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.day-tab.active {
    background: #10b981;
    color: white;
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    transform: scale(1.05);
}

.day-tab.last-ten {
    background: #fff3e0;
    color: #b45309;
}

.day-tab.last-ten.active {
    background: #f59e0b;
    color: white;
    border-color: #d97706;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.day-tab.completed-tab::after {
    content: '✓';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 16px;
    height: 16px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

@media (min-width: 768px) {
    .day-tab.completed-tab::after {
        width: 18px;
        height: 18px;
        font-size: 11px;
        top: -4px;
        right: -4px;
    }
}

/* تذييل شريط التنقل */
.days-nav-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #cbd5e1;
    color: #64748b;
    font-size: 13px;
}

@media (min-width: 768px) {
    .days-nav-footer {
        margin-top: 12px;
        padding-top: 12px;
        font-size: 14px;
    }
}

.days-count {
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 30px;
    font-weight: 700;
    color: #1e293b;
    font-size: 13px;
}

@media (min-width: 768px) {
    .days-count {
        padding: 5px 15px;
        font-size: 14px;
    }
}

.days-hijri {
    color: #f59e0b;
    font-weight: 600;
    font-size: 13px;
}

@media (min-width: 768px) {
    .days-hijri {
        font-size: 14px;
    }
}

/* حاوية عرض البطاقات */
.days-showcase {
    position: relative;
    min-height: 100px;
}

.day-card,
.lastTen-card {
    display: none;
    animation: fadeIn 0.3s ease;
}

.day-card.active-day,
.lastTen-card.active-day {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* تحسينات للشاشات الصغيرة جداً */
@media (max-width: 380px) {
    .days-nav-display {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }

    .current-day-progress {
        width: 100%;
        justify-content: center;
    }

    .progress-mini-bar {
        max-width: 50px;
    }

    .day-tab {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* للأجهزة الصغيرة جداً */
@media (max-width: 320px) {
    .days-navigation-modern {
        padding: 12px 10px;
    }

    .days-nav-header {
        gap: 5px;
    }

    .days-nav-arrow {
        width: 34px;
        height: 34px;
    }

    .day-tab {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}