/* ==========================================
   1. تنسيق الصفحة الرئيسي
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');
   .tracker-container {
    max-width: 1100px;
    width: 95%;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

.tracker-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.tracker-header .page-title {
    font-family: 'Cairo', sans-serif;
    font-size: 34px;
    color: #f4ede2;
    margin-bottom: 8px;
}

.tracker-header .page-desc {
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    color: #b8afa4;
}

/* ==========================================
   2. بطاقة إدخال البيانات
   ========================================== */
.input-card {
    background-color: #28221d;
    border: 1px solid #433830;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.input-card h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 22px;
    color: #f4ede2;
    margin-bottom: 1.3rem;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    color: #f4ede2;
}

.input-field {
    width: 100%;
    padding: 12px 14px;
    background-color: #1c1815;
    border: 1px solid #433830;
    border-radius: 8px;
    color: #f4ede2;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-field:focus {
    border-color: #d4a373;
}

.btn-calc-tracker {
    font-family: 'Cairo', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #1c1815;
    background-color: #d4a373;
    padding: 12px 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-calc-tracker:hover {
    background-color: #e9c46a;
    transform: translateY(-2px);
}

/* ==========================================
   3. قسم النتائج
   ========================================== */
.results-section {
    display: none;
    flex-direction: column;
    gap: 24px;
}

.results-section.visible {
    display: flex;
}

/* بطاقة التقدم الدائرية */
.progress-card {
    background-color: #28221d;
    border: 1px solid #433830;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.progress-circle-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.progress-ring {
    width: 200px;
    height: 200px;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: #1c1815;
    stroke-width: 14;
}

.ring-fill {
    fill: none;
    stroke: #d4a373;
    stroke-width: 14;
    stroke-linecap: round;
    stroke-dasharray: 553;
    stroke-dashoffset: 553;
    transition: stroke-dashoffset 1s ease-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#progressPercent {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #f4ede2;
}

.progress-label {
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    color: #b8afa4;
}

.progress-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 100px;
}

.stat-value {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #d4a373;
}

.stat-label {
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    color: #b8afa4;
}

/* بطاقة العدّاد التنازلي */
.countdown-card {
    background-color: #28221d;
    border: 1px solid #433830;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.countdown-card h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 22px;
    color: #f4ede2;
    margin-bottom: 1.3rem;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.countdown-box {
    background-color: #1c1815;
    border: 1px solid #433830;
    border-radius: 12px;
    padding: 18px 28px;
    min-width: 100px;
}

.countdown-num {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #d4a373;
}

.countdown-unit {
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    color: #b8afa4;
}

.countdown-note {
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    color: #b8afa4;
}

/* بطاقة مسار السنوات */
.roadmap-card {
    background-color: #28221d;
    border: 1px solid #433830;
    border-radius: 16px;
    padding: 2rem;
}

.roadmap-card h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 22px;
    color: #f4ede2;
    margin-bottom: 1.5rem;
}

.roadmap-track {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.roadmap-year {
    flex: 1;
    min-width: 150px;
    background-color: #1c1815;
    border: 1px solid #433830;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.roadmap-year.completed {
    border-color: #4ade80;
    background-color: rgba(74, 222, 128, 0.08);
}

.roadmap-year.current {
    border-color: #d4a373;
    background-color: rgba(212, 163, 115, 0.08);
}

.roadmap-year-title {
    font-family: 'Cairo', sans-serif;
    font-size: 17px;
    font-weight: bold;
    color: #f4ede2;
    margin-bottom: 6px;
}

.roadmap-year-status {
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    color: #b8afa4;
}

.roadmap-year.completed .roadmap-year-status {
    color: #4ade80;
}

.roadmap-year.current .roadmap-year-status {
    color: #d4a373;
}

/* ==========================================
   4. التجاوب مع الشاشات الصغيرة
   ========================================== */
@media (max-width: 700px) {
    .progress-card {
        flex-direction: column;
    }

    .countdown-box {
        min-width: 80px;
        padding: 14px 18px;
    }
}