/* =============================================
   خط سكال مجلة - مدمج مع الموقع
   ============================================= */
@font-face {
    font-family: 'Sakkal Majalla';
    src: url('../fonts/SakkalMajalla.woff') format('woff'),
         url('../fonts/SakkalMajalla.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Sakkal Majalla';
    src: url('../fonts/SakkalMajallaBold.woff') format('woff'),
         url('../fonts/SakkalMajallaBold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =============================================
   متغيرات الألوان
   ============================================= */
:root {
    --primary: #095a8f;
    --primary-dark: #074a77;
    --primary-light: #1a7abf;
    --primary-xlight: #e8f4fd;
    --secondary: #2a9d8f;
    --accent: #e9c46a;
    --danger: #c0392b;
    --success: #27ae60;
    --warning: #f39c12;
    --info: #2980b9;
    --text-dark: #1a1a2e;
    --text-medium: #444;
    --text-light: #777;
    --border: #d0dde8;
    --bg-light: #f5f8fc;
    --bg-white: #ffffff;
    --shadow: 0 2px 12px rgba(9,90,143,0.10);
    --shadow-hover: 0 6px 24px rgba(9,90,143,0.18);
    --radius: 10px;
    --radius-sm: 6px;
}

/* =============================================
   إعادة تعيين وأساسيات
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 17px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Sakkal Majalla', 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-light);
    direction: rtl;
    text-align: right;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* =============================================
   الحاوية
   ============================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   الهيدر
   ============================================= */
.site-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    color: white;
    padding: 18px 0;
    box-shadow: 0 3px 15px rgba(9,90,143,0.3);
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

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

.logo-img {
    height: 65px;
    width: auto;
    filter: brightness(0) invert(1);
}

.header-title {
    text-align: center;
    flex: 1;
}

.header-title h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.header-title p {
    font-size: 0.95rem;
    opacity: 0.85;
}

.manara-logo {
    height: 70px;
    width: auto;
}

/* =============================================
   شريط التنقل
   ============================================= */
.main-nav {
    background: var(--bg-white);
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}

/* أزرار تكبير/تصغير الخط */
.font-size-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
}

.font-btn {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--primary);
    font-family: 'Sakkal Majalla', sans-serif;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    transition: all 0.2s;
    line-height: 1;
    min-width: 32px;
}

.font-btn:hover:not(:disabled) {
    background: var(--primary-xlight);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.font-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.font-btn-reset {
    font-size: 0.9rem;
    color: var(--text-medium);
    border-color: var(--border);
}

.font-btn:first-child { font-size: 0.82rem; }
.font-btn:last-child  { font-size: 1.05rem; }

.nav-list li a {
    display: block;
    padding: 14px 22px;
    color: var(--text-medium);
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: all 0.2s;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--primary-xlight);
}

/* =============================================
   المحتوى الرئيسي
   ============================================= */
.main-content {
    padding: 30px 0 50px;
    min-height: calc(100vh - 200px);
}

/* =============================================
   البطاقات
   ============================================= */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2, .card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.card-header .section-number {
    background: rgba(255,255,255,0.25);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.card-body {
    padding: 24px;
}

/* =============================================
   النماذج
   ============================================= */
.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-medium);
    font-size: 0.95rem;
}

label .required {
    color: var(--danger);
    margin-right: 3px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Sakkal Majalla', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    direction: rtl;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(9,90,143,0.12);
}

textarea {
    resize: vertical;
    min-height: 90px;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23095a8f' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 36px;
}

/* =============================================
   الأزرار
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Sakkal Majalla', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 3px 10px rgba(9,90,143,0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    box-shadow: 0 5px 15px rgba(9,90,143,0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-medium);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
    color: var(--text-dark);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #219a52;
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #a93226;
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-sm {
    padding: 7px 16px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1.15rem;
}

.btn-block {
    width: 100%;
    display: flex;
}

/* =============================================
   الشارات (Badges)
   ============================================= */
.badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-primary { background: #e8f4fd; color: var(--primary); }
.badge-success { background: #e8f8f0; color: var(--success); }
.badge-danger  { background: #fdf0ee; color: var(--danger); }
.badge-warning { background: #fef9e7; color: var(--warning); }
.badge-info    { background: #e8f4fd; color: var(--info); }
.badge-secondary { background: #f0f0f0; color: #666; }

/* =============================================
   التنبيهات
   ============================================= */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    margin-top: 20px;
    margin-right: 28px;
    margin-left: 28px;
    border-right: 4px solid;
    display: block;
    font-size: 0.98rem;
}

.alert-success {
    background: #e8f8f0;
    border-color: var(--success);
    color: #1e7e44;
}

.alert-danger {
    background: #fdf0ee;
    border-color: var(--danger);
    color: #922b21;
}

.alert-warning {
    background: #fef9e7;
    border-color: var(--warning);
    color: #9a6b00;
}

.alert-info {
    background: #e8f4fd;
    border-color: var(--info);
    color: #1a5276;
}

/* =============================================
   الجداول
   ============================================= */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.97rem;
}

thead th {
    background: var(--primary);
    color: white;
    padding: 12px 14px;
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

tbody tr:hover {
    background: var(--primary-xlight);
}

tbody td {
    padding: 11px 14px;
    color: var(--text-medium);
    vertical-align: middle;
}

tbody tr:last-child {
    border-bottom: none;
}

/* =============================================
   الصفحة الرئيسية - بطاقات الإحصاء
   ============================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s, transform 0.2s;
}

.stat-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* =============================================
   بطاقات المعلومات في الصفحة الرئيسية
   ============================================= */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    transition: box-shadow 0.2s;
}

.info-card:hover {
    box-shadow: var(--shadow-hover);
}

.info-card h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card p {
    color: var(--text-medium);
    font-size: 0.97rem;
    line-height: 1.7;
}

/* =============================================
   جدول معلومات العقد
   ============================================= */
.contract-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.contract-table td {
    padding: 10px 16px;
    border: 1px solid var(--border);
}

.contract-table .label-cell {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-medium);
    width: 35%;
    text-align: right;
}

.contract-table .value-cell {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
}

.contract-table .note-cell {
    color: var(--danger);
    font-size: 0.9rem;
}

.contract-table .total-row td {
    background: var(--primary);
    color: white;
    font-weight: 700;
}

/* =============================================
   رفع الملفات
   ============================================= */
.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-light);
    position: relative;
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-xlight);
}

.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.file-upload-icon {
    font-size: 2rem;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}

.file-upload-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

.file-name-display {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--success);
    font-weight: 600;
}

/* =============================================
   خطوات التقديم
   ============================================= */
.steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 0;
    overflow-x: auto;
    padding: 10px 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 80px;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.step-item.active:not(:last-child)::after,
.step-item.done:not(:last-child)::after {
    background: var(--primary);
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    transition: all 0.2s;
}

.step-item.active .step-circle {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(9,90,143,0.2);
}

.step-item.done .step-circle {
    background: var(--success);
    color: white;
}

.step-label {
    font-size: 0.82rem;
    color: var(--text-light);
    text-align: center;
    white-space: nowrap;
}

.step-item.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

/* =============================================
   نتائج القرعة
   ============================================= */
.lottery-winner-card {
    background: linear-gradient(135deg, #e8f8f0 0%, #d5f5e3 100%);
    border: 2px solid var(--success);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.lottery-winner-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.lottery-winner-info h3 {
    color: var(--success);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.lottery-winner-info p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* =============================================
   لوحة التحكم - الشريط الجانبي
   ============================================= */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    min-height: calc(100vh - 150px);
}

.admin-sidebar {
    background: var(--primary-dark);
    color: white;
    padding: 0;
}

.admin-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.admin-sidebar-header img {
    height: 50px;
    filter: brightness(0) invert(1);
    margin-bottom: 8px;
}

.admin-sidebar-header h3 {
    font-size: 1rem;
    opacity: 0.9;
}

.admin-nav {
    padding: 10px 0;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    font-size: 0.97rem;
    transition: all 0.2s;
    border-right: 3px solid transparent;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-right-color: var(--accent);
}

.admin-nav .nav-icon {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

.admin-main {
    padding: 24px;
    background: var(--bg-light);
}

.admin-page-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.admin-page-header h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.admin-page-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* =============================================
   القرعة - تأثيرات
   ============================================= */
.lottery-box {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    color: white;
    margin-bottom: 24px;
}

.lottery-box h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.lottery-box p {
    opacity: 0.85;
    margin-bottom: 24px;
}

.lottery-drum {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 3px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 24px;
    transition: transform 0.1s;
}

.lottery-drum.spinning {
    animation: spin 0.3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.winner-announcement {
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
    border: 2px solid rgba(255,255,255,0.3);
}

/* =============================================
   صفحة تأكيد الطلب
   ============================================= */
.success-page {
    text-align: center;
    padding: 50px 20px;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    display: block;
}

.success-page h2 {
    font-size: 1.8rem;
    color: var(--success);
    margin-bottom: 12px;
}

.success-page p {
    color: var(--text-medium);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.ref-number {
    background: var(--primary-xlight);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 16px 30px;
    display: inline-block;
    margin: 20px 0;
}

.ref-number strong {
    font-size: 1.5rem;
    color: var(--primary);
    display: block;
}

.ref-number span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* =============================================
   الفوتر
   ============================================= */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 20px 0;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-logo-img {
    height: 45px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-text {
    text-align: center;
    font-size: 0.9rem;
}

.footer-text p {
    margin-bottom: 2px;
}

.footer-manara-img {
    height: 50px;
    opacity: 0.7;
}

/* =============================================
   الصفحة الرئيسية - Hero
   ============================================= */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    padding: 40px;
    color: white;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    overflow: hidden;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.8;
}

.hero-image {
    font-size: 8rem;
    opacity: 0.3;
    flex-shrink: 0;
}

/* =============================================
   قائمة المرفقات
   ============================================= */
.attachments-list {
    list-style: none;
    padding: 0;
}

.attachments-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    color: var(--text-medium);
}

.attachments-list li:last-child {
    border-bottom: none;
}

.attachments-list li::before {
    content: '📎';
    font-size: 1.1rem;
}

/* =============================================
   تحسينات للشاشات الصغيرة
   ============================================= */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        text-align: center;
    }
    
    .header-title h1 {
        font-size: 1.3rem;
    }
    
    .manara-logo {
        height: 50px;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .form-row, .form-row-3 {
        grid-template-columns: 1fr;
    }
    
    .nav-list {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .nav-list li a {
        padding: 12px 14px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        display: none;
    }
    
    .hero-section {
        flex-direction: column;
        padding: 24px;
    }
    
    .hero-image {
        display: none;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .card-body {
        padding: 16px;
    }
}

/* =============================================
   مؤشر التحميل
   ============================================= */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9,90,143,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
}

/* =============================================
   أدوات مساعدة
   ============================================= */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-muted   { color: var(--text-light); }
.fw-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 12px; }
.justify-between { justify-content: space-between; }
.w-100 { width: 100%; }
.hidden { display: none; }

/* =============================================
   طباعة
   ============================================= */
@media print {
    .main-nav, .site-footer, .btn, .admin-sidebar {
        display: none !important;
    }
    
    .site-header {
        background: white !important;
        color: black !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* =============================================
   نموذج الطلب - أقسام
   ============================================= */
.form-section {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.section-title-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.section-title-bar h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.section-note {
    font-size: 0.88rem;
    color: var(--text-light);
    padding: 10px 20px 0;
}

.form-section > .form-grid-2,
.form-section > .form-group,
.form-section > .lookup-area,
.form-section > .attachments-upload-list,
.form-section > .terms-box,
.form-section > .terms-agree {
    padding: 20px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* منطقة الاستعلام */
.lookup-area {
    padding: 20px;
}

.lookup-input-wrap {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.lookup-input-wrap .form-control {
    flex: 1;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.lookup-btn {
    white-space: nowrap;
    padding: 10px 24px;
    font-size: 1rem;
}

.field-hint {
    display: block;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* بلوك معلومات الجمعية */
.org-info-block {
    margin-top: 16px;
    border: 2px solid var(--success);
    border-radius: var(--radius);
    overflow: hidden;
}

.org-info-verified {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #eafaf1;
    font-weight: 600;
    color: var(--success);
    font-size: 0.95rem;
}

.verified-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.org-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid #c3e6cb;
}

.org-info-item {
    padding: 12px 16px;
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.org-info-item:nth-child(3n+1) {
    border-left: none;
}

.org-info-item label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 4px;
    font-weight: 600;
}

.org-info-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* المرفقات */
.attachments-upload-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
}

.attachment-upload-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.att-label {
    flex: 1;
    min-width: 180px;
}

.att-label > span {
    font-weight: 600;
    font-size: 0.95rem;
}

.file-upload-wrap {
    flex: 2;
    position: relative;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: white;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: var(--text-light);
}

.file-label:hover,
.file-label.file-selected {
    border-color: var(--primary);
    background: var(--primary-xlight);
    color: var(--primary);
}

.file-icon {
    font-size: 1.2rem;
}

.file-preview {
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 500;
}

/* الشروط والأحكام */
.terms-box {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 0 20px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text-medium);
}

.terms-agree {
    padding: 16px 20px 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

/* زر الإرسال */
.form-submit-area {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 20px 0;
}

.btn-xl {
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* صفحة النجاح */
.success-card {
    background: white;
    border-radius: var(--radius);
    padding: 48px 32px;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 540px;
    margin: 40px auto;
}

.success-card .success-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.success-card h2 {
    font-size: 1.6rem;
    color: var(--success);
    margin-bottom: 12px;
}

.ref-number-display {
    background: var(--primary-xlight);
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 14px 24px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    margin: 16px 0;
    display: inline-block;
}

.success-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* الصفحة الرئيسية - بلوكات */
.home-blocks {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.home-block {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.home-block-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.home-block-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.home-block-body {
    padding: 24px;
}

/* بلوك الدورة */
.cycle-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.cycle-status-badge.open {
    background: #eafaf1;
    color: var(--success);
    border: 1px solid #a9dfbf;
}

.cycle-status-badge.closed {
    background: #fdf2f2;
    color: var(--danger);
    border: 1px solid #f5c6cb;
}

.cycle-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.cycle-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.closed-message-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: #795548;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* آلية القرعة - تسلسلي */
.lottery-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.lottery-steps::before {
    content: '';
    position: absolute;
    right: 23px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    opacity: 0.3;
}

.lottery-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 16px 0;
    position: relative;
}

.step-icon-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(9,90,143,0.3);
    z-index: 1;
}

.step-content {
    flex: 1;
    padding-top: 8px;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* لوحة التحكم - admin-card */
.admin-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.admin-card-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.admin-card-body {
    padding: 20px;
}

.row-disabled {
    opacity: 0.55;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 1rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .org-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .attachment-upload-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-upload-wrap {
        width: 100%;
    }

    .lookup-input-wrap {
        flex-direction: column;
    }

    .lottery-steps::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .org-info-grid {
        grid-template-columns: 1fr;
    }
}


/* =============================================
   الصفحة الرئيسية - بلوك المرحبا
   ============================================= */
.welcome-block {
    margin-bottom: 28px;
}

.welcome-inner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    border-radius: var(--radius);
    padding: 40px 50px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: var(--shadow-hover);
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-inner::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.welcome-inner::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.welcome-logo-wrap {
    flex-shrink: 0;
}

.welcome-logo {
    height: 110px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.welcome-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.welcome-text h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 14px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.welcome-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.92;
}

/* =============================================
   الصفحة الرئيسية - بلوك الدورة الحالية
   ============================================= */
.cycle-block {
    margin-bottom: 28px;
}

.cycle-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.cycle-card.cycle-open {
    border-top: 4px solid var(--success);
}

.cycle-card.cycle-closed {
    border-top: 4px solid var(--text-light);
}

.cycle-header {
    background: var(--bg-light);
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.cycle-title-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cycle-title-area h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.cycle-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    width: fit-content;
}

.badge-open {
    background: #e8f8f0;
    color: var(--success);
    border: 1px solid #b2dfdb;
}

.badge-closed {
    background: #f5f5f5;
    color: #888;
    border: 1px solid #ddd;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
    animation: pulse-dot 1.5s infinite;
}

.badge-closed .badge-dot {
    animation: none;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.cycle-year-badge {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.cycle-body {
    padding: 28px;
}

.cycle-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.cycle-info-item {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border);
}

.cycle-info-item.cycle-info-total {
    background: var(--primary);
    border-color: var(--primary);
}

.cycle-info-item.cycle-info-total .ci-label,
.cycle-info-item.cycle-info-total .ci-value {
    color: white;
}

.ci-label {
    display: block;
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.ci-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.cycle-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 11px 28px;
    border-radius: var(--radius-sm);
    font-family: 'Sakkal Majalla', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.closed-message-box {
    background: #fef9e7;
    border: 1px solid #f0d070;
    border-right: 4px solid var(--warning);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    margin-bottom: 22px;
    color: #7d6000;
    font-size: 1rem;
    line-height: 1.7;
}

/* =============================================
   الصفحة الرئيسية - بلوك الفئات
   ============================================= */
.categories-block {
    margin-bottom: 28px;
}

.section-header-bar {
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
}

.section-header-bar h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.section-header-bar p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    transition: all 0.2s;
}

.category-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
    border-top-color: var(--secondary);
}

.cat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.cat-name {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.cat-winners {
    display: inline-block;
    background: var(--primary-xlight);
    color: var(--primary);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* =============================================
   الصفحة الرئيسية - بلوك آلية القرعة (تسلسلي)
   ============================================= */
.lottery-steps-block {
    margin-bottom: 28px;
}

.steps-timeline {
    position: relative;
    padding-right: 20px;
}

.step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
    position: relative;
}

.step-item:not(:last-child) {
    margin-bottom: 0;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.step-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(9,90,143,0.3);
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

.step-circle-last {
    background: var(--secondary);
    box-shadow: 0 3px 10px rgba(42,157,143,0.3);
}

.step-line {
    width: 3px;
    flex: 1;
    min-height: 30px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    margin: 4px 0;
    border-radius: 2px;
}

.step-content {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-right: 4px solid var(--primary);
    flex: 1;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}

.step-item-last .step-content {
    border-right-color: var(--secondary);
}

.step-content:hover {
    box-shadow: var(--shadow-hover);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.step-emoji {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.step-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.step-item-last .step-header h4 {
    color: var(--secondary);
}

.step-content p {
    color: var(--text-medium);
    font-size: 0.97rem;
    line-height: 1.7;
    margin: 0;
}

/* =============================================
   صفحة تقديم الطلب - بلوك الاستعلام
   ============================================= */
.lookup-block {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    padding: 24px 28px;
    margin-bottom: 24px;
}

.lookup-row {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.lookup-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.org-info-box {
    background: #f0faf5;
    border: 1px solid #b2dfdb;
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    margin-top: 18px;
}

.org-info-box .org-info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 14px;
}

.org-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.org-info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.org-info-label {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 600;
}

.org-info-value {
    font-size: 0.97rem;
    color: var(--text-dark);
    font-weight: 600;
    background: var(--bg-light);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* =============================================
   الفوتر
   ============================================= */
.site-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: rgba(255,255,255,0.85);
    padding: 30px 0;
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-logo img {
    height: 45px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.footer-text {
    text-align: center;
    font-size: 0.92rem;
}

.footer-text p {
    margin-bottom: 4px;
    opacity: 0.85;
}

.footer-text strong {
    color: white;
}

.footer-manara img {
    height: 45px;
    opacity: 0.85;
}

/* =============================================
   متجاوب - الشاشات الصغيرة
   ============================================= */
@media (max-width: 768px) {
    .welcome-inner {
        flex-direction: column;
        text-align: center;
        padding: 28px 22px;
        gap: 20px;
    }

    .welcome-logo {
        height: 80px;
    }

    .welcome-text h2 {
        font-size: 1.4rem;
    }

    .cycle-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cycle-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-timeline {
        padding-right: 0;
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .step-content {
        padding: 16px 18px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .lookup-row {
        flex-direction: column;
    }

    .lookup-row .form-group {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cycle-info-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .cycle-cta {
        flex-direction: column;
    }

    .cycle-cta .btn,
    .cycle-cta .btn-outline {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* حالة السحب والإفلات */
.file-upload-wrap.drag-over .file-label {
    border-color: var(--primary);
    background: var(--primary-xlight);
    color: var(--primary);
    transform: scale(1.01);
    box-shadow: 0 0 0 3px rgba(9,90,143,0.15);
}
.file-upload-wrap.drag-over {
    border-radius: var(--radius-sm);
}

/* بطاقة النجاح */
.success-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    padding: 50px 40px;
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
    border-top: 5px solid var(--success);
}
.success-icon {
    width: 70px;
    height: 70px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
}
.success-card h2 {
    color: var(--success);
    font-size: 1.6rem;
    margin-bottom: 12px;
}
.ref-number-display {
    background: var(--bg-light);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-sm);
    padding: 14px 30px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    margin: 16px auto;
    display: inline-block;
    direction: ltr;
}
.success-note {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 24px;
}
.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
