/* ============================================
   Military Promotion Calculator — Style Sheet
   ============================================ */

:root {
    --military-dark: #2e3b23;
    --military-darker: #1e2a16;
    --military-medium: #3d4f30;
    --gold: #c5a059;
    --gold-light: #d4b76a;
    --gold-dark: #a8863e;
    --white: #ffffff;
    --white-dim: #f0ede6;
    --text-primary: #f5f1e8;
    --text-secondary: #b8b0a0;
    --bg-gradient: linear-gradient(135deg, #1e2a16 0%, #2e3b23 40%, #3d4f30 100%);
    --glass-bg: rgba(46, 59, 35, 0.35);
    --glass-border: rgba(197, 160, 89, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --blur-amount: 12px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 16px;
    --radius-sm: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    direction: rtl;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(197, 160, 89, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(197, 160, 89, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ========== LANDING PAGE ========== */

.landing-overlay {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.landing-content {
    width: 100%;
    max-width: 560px;
    text-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 36px 26px;
    box-shadow: var(--glass-shadow);
    position: relative;
    z-index: 2;
}

.landing-content .logo-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--military-dark);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    box-shadow: 0 0 24px rgba(197, 160, 89, 0.28);
}

.landing-content h1 {
    font-size: 30px;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 10px;
}

.landing-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.stats-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 14px 0 18px;
}

.stat {
    min-width: 110px;
    padding: 10px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(30, 42, 22, 0.45);
    color: var(--text-secondary);
    font-size: 13px;
}

.stat strong {
    color: var(--gold-light);
    font-size: 19px;
    font-weight: 900;
}

.btn-start {
    padding: 13px 26px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--military-dark);
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: var(--transition);
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(197, 160, 89, 0.3);
}

.trial-text {
    margin-top: 12px;
    font-size: 13px;
    color: var(--gold-light) !important;
    font-weight: 700;
}

/* ========== HEADER ========== */

.app-header {
    background: rgba(30, 42, 22, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--military-dark);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1.3;
}

.logo-text p {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.header-badge {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--military-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========== PROGRESS BAR ========== */

.progress-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 24px 0;
    position: relative;
    z-index: 1;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(197, 160, 89, 0.15);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 12.5%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.4;
    transition: var(--transition);
    flex: 1;
}

.progress-step.active,
.progress-step.completed {
    opacity: 1;
}

.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--military-medium);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    transition: var(--transition);
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--military-dark);
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(197, 160, 89, 0.4);
}

.progress-step.completed .step-circle {
    background: var(--gold-dark);
    border-color: var(--gold);
    color: var(--military-dark);
}

.progress-step span {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.progress-step.active span {
    color: var(--gold);
}

/* ========== WIZARD CONTAINER ========== */

.wizard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    position: relative;
    z-index: 1;
    min-height: 400px;
}

.wizard-step {
    display: none;
    animation: fadeSlideIn 0.4s ease forwards;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== GLASS CARD ========== */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
}

.step-card {
    padding: 40px 32px;
    text-align: center;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--military-dark);
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.3);
}

.step-question {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.5;
}

.step-hint {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
}

.sub-question {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
    margin: 24px 0 16px;
}

/* ========== FORM ELEMENTS ========== */

.form-group {
    margin-bottom: 16px;
    text-align: right;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 6px;
}

.military-select {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    padding: 14px 18px;
    background: rgba(30, 42, 22, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 600;
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23c5a059' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    direction: rtl;
}

.military-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.military-select option {
    background: var(--military-darker);
    color: var(--text-primary);
}

.military-input {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    padding: 14px 18px;
    background: rgba(30, 42, 22, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.military-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.military-input::placeholder {
    color: var(--text-secondary);
    font-weight: 400;
}

/* ========== DATE PICKER ========== */

.date-picker-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.date-picker-group .form-group {
    flex: 1;
    text-align: center;
}

.date-select {
    max-width: 100% !important;
    text-align: center;
    padding: 12px 8px !important;
    font-size: 14px !important;
    background-position: left 8px center !important;
}

/* ========== TOGGLE BUTTONS ========== */

.toggle-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.toggle-btn {
    padding: 14px 28px;
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: rgba(30, 42, 22, 0.5);
    color: var(--text-secondary);
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.toggle-btn.active {
    background: rgba(197, 160, 89, 0.15);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.15);
}

/* ========== COURSES GRID ========== */

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.course-item {
    padding: 16px;
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: rgba(30, 42, 22, 0.5);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.course-item:hover {
    border-color: var(--gold);
}

.course-item.selected {
    background: rgba(197, 160, 89, 0.15);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.15);
}

.course-item i {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 8px;
    display: block;
}

.course-item .course-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.course-item .course-points {
    font-size: 12px;
    color: var(--gold);
    margin-top: 4px;
}

/* ========== VIOLATIONS ========== */

.violations-grid {
    max-width: 500px;
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.violation-item {
    padding: 14px 18px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: rgba(30, 42, 22, 0.4);
}

.violation-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.violation-info {
    text-align: right;
}

.violation-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.violation-penalty {
    font-size: 11px;
    color: #e8655a;
    font-weight: 600;
}

.violation-counter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.counter-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(30, 42, 22, 0.7);
    color: var(--gold);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Tajawal', sans-serif;
}

.counter-btn:hover {
    background: var(--gold);
    color: var(--military-dark);
}

.counter-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--gold);
    min-width: 24px;
    text-align: center;
}

.service-score-preview {
    max-width: 500px;
    margin: 0 auto;
    padding: 14px;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.score-value {
    font-size: 20px;
    font-weight: 900;
    color: var(--gold);
    margin: 0 4px;
}

.service-decisions-list {
    max-width: 620px;
    margin: 0 auto 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-decision-row {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: rgba(30, 42, 22, 0.45);
    padding: 14px;
}

.service-date-group {
    margin-top: 6px;
}

.service-decision-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.btn-remove-decision {
    padding: 8px 12px;
    border: 1px solid rgba(232, 101, 90, 0.4);
    border-radius: 8px;
    background: rgba(232, 101, 90, 0.1);
    color: #f39b93;
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-decisions-actions {
    text-align: center;
    margin-bottom: 14px;
}

.btn-add-decision {
    padding: 10px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(197, 160, 89, 0.12);
    color: var(--gold);
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-score-note {
    max-width: 620px;
    margin: 10px auto 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
}

.service-score-note.alert {
    color: #f39b93;
    font-weight: 700;
}

.service-score-summary {
    max-width: 620px;
    margin: 10px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.service-summary-item {
    background: rgba(30, 42, 22, 0.45);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
}

.service-summary-item strong {
    display: block;
    margin-top: 4px;
    color: var(--gold-light);
    font-size: 15px;
}

/* ========== RESULTS ========== */

.results-card {
    padding: 32px 24px !important;
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

.result-motivation {
    margin-top: 14px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: var(--radius-sm);
    background: rgba(197, 160, 89, 0.08);
    color: var(--gold-light);
    font-size: 13px;
    line-height: 1.8;
}

.result-item {
    padding: 18px 20px;
    background: rgba(30, 42, 22, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.result-item.lockable .result-header,
.result-item.lockable .result-bar-container,
.result-item.lockable .result-score,
.result-item.lockable .result-total-score {
    transition: filter 0.3s ease;
}

.result-item.lockable.locked .result-header,
.result-item.lockable.locked .result-bar-container,
.result-item.lockable.locked .result-score,
.result-item.lockable.locked .result-total-score {
    filter: blur(8px);
    user-select: none;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 10px;
}

.result-item.lockable.locked .lock-overlay {
    display: flex;
}

.lock-overlay i {
    font-size: 22px;
    color: var(--gold);
    background: rgba(30, 42, 22, 0.7);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.3);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.result-header i {
    color: var(--gold);
    font-size: 16px;
}

.result-header span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.result-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(197, 160, 89, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.result-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 8px;
    transition: width 1s ease;
}

.result-score {
    text-align: left;
    font-weight: 700;
}

.result-score span:first-child {
    font-size: 22px;
    color: var(--gold);
}

.result-max {
    font-size: 13px;
    color: var(--text-secondary);
}

.total-result {
    background: rgba(197, 160, 89, 0.1) !important;
    border-color: var(--gold) !important;
}

.result-total-score {
    text-align: center;
    padding-top: 8px;
}

.result-total-score span:first-child {
    font-size: 40px;
    font-weight: 900;
    color: var(--gold);
}

.result-total-score .result-max {
    font-size: 18px;
}

.result-total-note {
    margin-top: 10px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.7;
}

/* ========== SMART ALERT ========== */

.smart-alert {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.15), rgba(197, 160, 89, 0.05));
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: right;
    animation: alertPulse 2s ease infinite;
}

@keyframes alertPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.2); }
    50% { box-shadow: 0 0 15px 0 rgba(197, 160, 89, 0.15); }
}

.smart-alert i {
    color: var(--gold);
    font-size: 20px;
    flex-shrink: 0;
}

.smart-alert span {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-light);
    line-height: 1.6;
}

/* ========== CTA & PDF ========== */

.results-cta {
    margin-top: 24px;
    padding: 20px;
    background: rgba(197, 160, 89, 0.08);
    border: 1px dashed var(--gold);
    border-radius: var(--radius-sm);
    text-align: center;
}

.results-cta p {
    font-size: 14px;
    color: var(--gold);
    margin-bottom: 14px;
    font-weight: 600;
}

.cta-trust-note {
    margin-top: 12px;
    margin-bottom: 0;
    color: var(--text-secondary) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.6;
}

.btn-subscribe-cta {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--military-dark);
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-subscribe-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.3);
}

.pdf-section {
    margin-top: 24px;
    text-align: center;
}

.btn-pdf {
    padding: 14px 28px;
    background: rgba(197, 160, 89, 0.15);
    border: 2px solid var(--gold);
    border-radius: var(--radius-sm);
    color: var(--gold);
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-pdf:hover {
    background: var(--gold);
    color: var(--military-dark);
}

/* ========== WIZARD NAV ========== */

.wizard-nav {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.btn-next, .btn-prev, .btn-calculate, .btn-restart {
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-next {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--military-dark);
    margin-right: auto;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.3);
}

.btn-prev {
    background: rgba(197, 160, 89, 0.15);
    color: var(--gold);
    border: 1px solid var(--glass-border);
}

.btn-prev:hover {
    background: rgba(197, 160, 89, 0.25);
}

.btn-calculate {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--military-dark);
    margin-right: auto;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.3);
}

/* تأثير نبض خفيف للأزرار الذهبية */
.gold-btn,
.btn-calculate {
    background: linear-gradient(45deg, #d4af37, #f9f295);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gold-btn:hover,
.gold-btn:focus-visible,
.btn-calculate:hover,
.btn-calculate:focus-visible {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .gold-btn,
    .btn-calculate {
        animation: none !important;
        transition: none !important;
    }
}

.btn-restart {
    background: rgba(197, 160, 89, 0.15);
    color: var(--gold);
    border: 1px solid var(--glass-border);
    margin: 0 auto;
}

.btn-restart:hover {
    background: rgba(197, 160, 89, 0.25);
}

/* ========== SUBSCRIPTION MODAL ========== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    background: linear-gradient(160deg, var(--military-dark), var(--military-darker));
    border: 1px solid var(--gold);
    border-radius: 20px;
    padding: 36px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(197, 160, 89, 0.1);
    animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    background: rgba(30, 42, 22, 0.5);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--gold);
    color: var(--military-dark);
}

.modal-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--military-dark);
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.3);
}

.modal-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.price-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.pricing-grid {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap; /* للسماح بالنزول لسطر جديد في الجوال */
    width: 100%;
}

.price-card {
    flex: 1;
    min-width: 150px;
    position: relative;
    background: rgba(255,255,255,0.05);
    border: 1px solid #d4af37;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.price-card h3 {
    color: var(--gold-light);
    font-size: 15px;
    margin-bottom: 8px;
}

.price-card .price {
    color: var(--gold);
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 10px;
}

.price-card .price span {
    font-size: 12px;
    color: var(--text-secondary);
    margin-right: 4px;
    font-weight: 600;
}

.price-card.featured {
    border-width: 2px;
    transform: scale(1.05); /* تمييز الباقة الوسطى */
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.2);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 50%;
    transform: translateX(50%);
    background: var(--gold);
    color: var(--military-dark);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
}

.price-card .btn-pay {
    margin-bottom: 0;
    padding: 12px;
    font-size: 14px;
}

.price-old {
    font-size: 18px;
    color: var(--text-secondary);
    text-decoration: line-through;
    font-weight: 600;
}

.price-current {
    font-size: 36px;
    font-weight: 900;
    color: var(--gold);
}

.price-discount {
    background: #e8655a;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.features-list {
    list-style: none;
    text-align: right;
    margin-bottom: 24px;
}

.features-list li {
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.08);
}

.features-list li i {
    color: var(--gold);
    font-size: 14px;
    flex-shrink: 0;
}

.btn-pay {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--military-dark);
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Tajawal', sans-serif;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.35);
}

.payment-methods {
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
}

.payment-label {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 10px;
}

.payment-logos {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.payment-logo {
    width: 48px;
    height: 32px;
}

.pay-icon {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

/* ========== FOOTER ========== */

.app-footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.footer-legal-links a {
    color: #d4af37;
    text-decoration: none;
    font-size: 13px;
}

.footer-legal-links a:hover {
    text-decoration: underline;
}

.ab-toggle-btn {
    margin-top: 12px;
    padding: 8px 14px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(30, 42, 22, 0.5);
    color: var(--text-secondary);
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.ab-toggle-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.legal-modal {
    z-index: 10000;
}

.legal-modal-card {
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #d4af37;
}

#legalTitle {
    color: #d4af37;
    margin-bottom: 15px;
    text-align: center;
}

#legalBody {
    color: #ffffff;
    line-height: 1.8;
    font-size: 14px;
    text-align: justify;
    direction: rtl;
}

#btnCloseLegalModal {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    background: #d4af37;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #1b261d;
}

.ab-metrics-panel {
    max-width: 900px;
    margin: 0 auto 18px;
    padding: 0 24px;
}

.ab-metrics-card {
    background: rgba(30, 42, 22, 0.55);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 18px;
}

.ab-metrics-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.ab-metrics-header h3 {
    color: var(--gold);
    font-size: 16px;
}

.ab-metrics-header span {
    color: var(--text-secondary);
    font-size: 12px;
}

.ab-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ab-metric-col {
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px;
}

.ab-metric-col h4 {
    color: var(--gold-light);
    margin-bottom: 8px;
    font-size: 14px;
}

.ab-metric-col p {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 6px;
}

.ab-metric-col strong {
    color: var(--white);
}

.ab-metrics-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.ab-metrics-actions button {
    padding: 9px 14px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold);
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 640px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .ab-metrics-grid {
        grid-template-columns: 1fr;
    }

    .ab-metrics-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-score-summary {
        grid-template-columns: 1fr;
    }

    .logo-section {
        justify-content: center;
    }

    .step-card {
        padding: 28px 20px;
    }

    .step-question {
        font-size: 18px;
    }

    .date-picker-group {
        flex-direction: row;
        gap: 8px;
    }

    .toggle-group {
        flex-direction: column;
        align-items: stretch;
    }

    .courses-grid {
        grid-template-columns: 1fr 1fr;
    }

    .progress-step span {
        display: none;
    }

    .wizard-nav {
        padding: 0 16px 30px;
    }

    .modal-card {
        padding: 28px 20px;
    }

    .price-current {
        font-size: 28px;
    }

    .result-total-score span:first-child {
        font-size: 32px;
    }
}

@media (max-width: 400px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        gap: 10px;
    }

    .price-card {
        min-width: 100%;
    }
}

/* التوافق مع الجوال */
@media (max-width: 768px) {
    .wizard-container {
        padding: 10px;
        margin: 5px;
    }
}

/* ========== SCROLLBAR ========== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--military-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ========== VALIDATION ========== */

.military-select.error,
.military-input.error {
    border-color: #e8655a !important;
    box-shadow: 0 0 0 3px rgba(232, 101, 90, 0.15) !important;
}

.error-message {
    color: #e8655a;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 600;
    display: none;
}

.error-message.show {
    display: block;
}

/* ========== CONVERSION MODAL ========== */

.conversion-card {
    border-color: var(--gold) !important;
}

.btn-conversion-skip {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-conversion-skip:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ========== Simple Visual Theme (Landing/Modal/Buttons) ========== */
body {
    font-family: 'Tajawal', Arial, sans-serif;
    background-color: #1b261d;
    color: white;
    margin: 0;
    text-align: right;
}

.landing-overlay {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background: #1b261d;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.landing-content .logo-icon {
    font-size: 60px;
    color: #d4af37;
    margin-bottom: 20px;
}

.landing-content,
.modal-card {
    text-align: center;
}

.btn-start {
    background: #d4af37;
    color: #1b261d;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
}

.btn-pay {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #d4af37;
    background: transparent;
    color: #d4af37;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

.price-card.featured .btn-pay {
    background: #d4af37;
    color: #1b261d;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-card {
    background: #2c3e30;
    padding: 30px;
    border-radius: 20px;
    width: 80%;
    max-width: 400px;
    border: 1px solid #d4af37;
}
