@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

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

body {
    font-family: "Vazirmatn", Tahoma, sans-serif;
    background: #f5f8fd;
    color: #1e293b;
    line-height: 1.9;
}

.header {
    background: #ffffff;
    border-bottom: 1px solid #e8edf5;
}

.header-content {
    max-width: 1100px;
    margin: auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-icon {
    width: 46px;
    height: 46px;
    background: #eaf2ff;
    color: #2563eb;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 23px;
    font-weight: 800;
    direction: ltr;
}

.brand strong,
.brand span {
    display: block;
}

.brand strong {
    font-size: 15px;
}

.brand span {
    font-size: 11px;
    color: #8491a5;
}

.header-label {
    color: #2563eb;
    background: #eff5ff;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.container {
    max-width: 1000px;
    margin: 35px auto;
    padding: 0 20px;
}

.hero {
    background: linear-gradient(120deg, #102d60, #2456a3);
    border-radius: 24px;
    padding: 48px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    position: relative;
}

.hero-content {
    flex: 1.4;
    position: relative;
    z-index: 1;
}

.eyebrow {
    background: #ffffff1c;
    padding: 7px 13px;
    border-radius: 30px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #70e5c0;
}

.hero h1 {
    font-size: 38px;
    line-height: 1.6;
    margin: 18px 0 10px;
    font-weight: 800;
}

.hero h1 span {
    color: #8cc4ff;
}

.hero-description {
    color: #dce9ff;
    font-size: 14px;
    max-width: 530px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 28px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #e5efff;
}

.feature-icon {
    background: #ffffff20;
    border-radius: 8px;
    padding: 3px 8px;
    font-size: 10px;
}

.hero-visual {
    flex: 1;
    position: relative;
    padding: 20px 0;
}

.code-card {
    background: #10203a;
    border: 1px solid #ffffff25;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px #071a3b55;
    transform: rotate(-3deg);
}

.code-top {
    background: #1b3150;
    padding: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.code-top span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fca5a5;
}

.code-top span:nth-child(2) {
    background: #fcd34d;
}

.code-top span:nth-child(3) {
    background: #86efac;
}

.code-top small {
    color: #a8bad5;
    margin-right: auto;
    font-size: 10px;
}

.code-body {
    padding: 23px;
    color: #e2e8f0;
    font-family: Consolas, monospace;
    font-size: 12px;
    line-height: 2.3;
}

.indent {
    padding-left: 20px;
}

.purple {
    color: #c4a5ff;
}

.blue {
    color: #7dd3fc;
}

.green {
    color: #86efac;
}

.floating-card {
    position: absolute;
    bottom: 0;
    right: -20px;
    background: white;
    color: #1e293b;
    padding: 11px 15px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px #071a3b35;
}

.floating-card > span {
    color: #e6a72d;
    font-size: 23px;
}

.floating-card strong,
.floating-card small {
    display: block;
}

.floating-card strong {
    font-size: 11px;
}

.floating-card small {
    font-size: 10px;
    color: #8491a5;
}

.notice-card,
.rules-card {
    background: white;
    border: 1px solid #e8edf5;
    border-radius: 20px;
    padding: 28px;
    margin-top: 25px;
    box-shadow: 0 5px 20px #1e3a5f08;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
}

.heading-icon {
    width: 43px;
    height: 43px;
    background: #edf4ff;
    color: #2563eb;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 700;
}

.section-heading h2 {
    font-size: 17px;
    font-weight: 700;
}

.section-heading p {
    font-size: 11px;
    color: #94a3b8;
}

.notice-text {
    font-size: 13px;
    color: #59677b;
}

.notice-highlight {
    background: #f1f6ff;
    color: #315c9b;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 12px;
    margin-top: 18px;
}

.notice-highlight span {
    margin-left: 5px;
    color: #3b82f6;
}

.rules-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.rule {
    background: #f8faff;
    border: 1px solid #edf1f7;
    border-radius: 12px;
    padding: 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.rule-number {
    min-width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    background: #e8f0ff;
    color: #2563eb;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

.rule p {
    font-size: 12px;
    color: #536176;
}

.accept-box {
    margin-top: 25px;
    padding: 17px;
    background: #f7faff;
    border: 1px solid #e7edf7;
    border-radius: 12px;
}

.accept-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
}

.accept-label input {
    position: absolute;
    opacity: 0;
}

.custom-check {
    width: 21px;
    height: 21px;
    border: 2px solid #b9c5d7;
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
}

.accept-label input:checked + .custom-check {
    background: #2563eb;
    border-color: #2563eb;
}

.accept-label input:checked + .custom-check::after {
    content: "✓";
    color: white;
    position: absolute;
    top: -2px;
    right: 3px;
    font-size: 14px;
}

.accept-label input:focus-visible + .custom-check {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.start-button {
    width: 100%;
    margin-top: 18px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: white;
    padding: 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: background .2s, transform .2s;
}

.start-button:not(:disabled):hover {
    background: #174dbb;
    transform: translateY(-2px);
}

.start-button:disabled {
    background: #b9c7dc;
    cursor: not-allowed;
}

.arrow {
    font-size: 20px;
}

.button-hint {
    text-align: center;
    color: #94a3b8;
    font-size: 11px;
    margin-top: 10px;
}

footer {
    text-align: center;
    padding: 30px 10px;
    color: #8491a5;
    font-size: 11px;
}

footer span {
    display: block;
    margin-top: 3px;
}

@media (max-width: 700px) {
    .container {
        margin-top: 20px;
        padding: 0 13px;
    }

    .hero {
        padding: 30px 23px;
        flex-direction: column;
        align-items: stretch;
    }

    .hero h1 {
        font-size: 29px;
    }

    .hero-visual {
        width: 85%;
        margin: 0 auto 20px;
    }

    .floating-card {
        right: -15px;
    }

    .rules-list {
        grid-template-columns: 1fr;
    }

    .notice-card,
    .rules-card {
        padding: 20px 16px;
    }

    .brand span {
        max-width: 190px;
    }

    .header-content {
        padding: 14px;
    }

    .header-label {
        font-size: 10px;
        padding: 6px 10px;
    }
}

@media (max-width: 380px) {
    .header-label {
        display: none;
    }

    .hero h1 {
        font-size: 25px;
    }
}


/* =====================================
   طراحی صفحه ثبت‌نام مسابقه برنامه‌نویسی
===================================== */

.register-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px 40px;
}

/* عنوان صفحه */

.register-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 30px 20px;
    background: linear-gradient(120deg, #102d60, #2456a3);
    border-radius: 22px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(16, 45, 96, 0.12);
}

.register-header h1 {
    font-size: 27px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.8;
}

.register-header p {
    color: #dce9ff;
    font-size: 13px;
}

/* کارت‌های فرم */

.register-card {
    background: #ffffff;
    border: 1px solid #e8edf5;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 22px;
    box-shadow: 0 5px 20px rgba(30, 58, 95, 0.05);
    transition: box-shadow 0.2s ease;
}

.register-card:hover {
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.08);
}

/* عنوان بخش‌ها */

.section-title {
    color: #102d60;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 20px;
    padding-right: 13px;
    border-right: 4px solid #2563eb;
    line-height: 1.8;
}

.section-description {
    color: #64748b;
    font-size: 12px;
    line-height: 2;
    margin-top: -10px;
    margin-bottom: 22px;
}

/* فیلدهای فرم */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.form-group input,
.form-group select {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #dbe3ef;
    border-radius: 11px;
    background: #ffffff;
    color: #1e293b;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
    color: #a0aec0;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.form-group input:disabled,
.form-group select:disabled {
    background: #f5f7fb;
    color: #94a3b8;
    cursor: not-allowed;
}

/* چیدمان دو ستونه */

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

/* انتخاب نوع شرکت */

.choice-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.choice-option {
    border: 1px solid #dbe3ef;
    background: #ffffff;
    border-radius: 15px;
    padding: 22px 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-align: center;
    transition: all 0.2s ease;
}

.choice-option:hover {
    border-color: #93b4f5;
    background: #f8faff;
    transform: translateY(-2px);
}

.choice-option:has(input:checked) {
    border: 2px solid #2563eb;
    background: #eff5ff;
    color: #1d4ed8;
    box-shadow: 0 5px 16px rgba(37, 99, 235, 0.08);
}

.choice-option input {
    accent-color: #2563eb;
    cursor: pointer;
}

.choice-option span {
    font-size: 29px;
}

.choice-option strong {
    font-size: 15px;
}

.choice-option small {
    color: #64748b;
    font-size: 11px;
}

/* تعداد اعضای تیم */

#teamSizeSection {
    background: #f7faff;
    border: 1px solid #e7edf7;
    border-radius: 13px;
    padding: 18px;
}

/* فیلدهای الزامی */

.required {
    color: #ef4444;
    margin-right: 2px;
}

/* اعضای تیم */

#teamMembers .register-card {
    border-right: 4px solid #60a5fa;
    background: #ffffff;
}

/* دکمه ادامه */

.submit-button {
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.15);
}

.submit-button:hover {
    background: #174dbb;
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

/* مخفی کردن بخش‌های غیرفعال */

.hidden {
    display: none !important;
}

/* نمایش در موبایل */

@media (max-width: 700px) {
    .register-container {
        margin: 22px auto;
        padding: 0 13px 30px;
    }

    .register-header {
        padding: 25px 16px;
        border-radius: 17px;
    }

    .register-header h1 {
        font-size: 21px;
    }

    .register-header p {
        font-size: 11px;
    }

    .register-card {
        padding: 21px 16px;
        border-radius: 16px;
    }

    .section-title {
        font-size: 16px;
    }

    .form-row,
    .choice-group {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .choice-group {
        gap: 12px;
    }

    .choice-option {
        padding: 17px 12px;
    }

    .form-group input,
    .form-group select {
        min-height: 46px;
    }
}

@media (max-width: 380px) {
    .register-header h1 {
        font-size: 19px;
    }

    .register-card {
        padding: 18px 13px;
    }
}


/* صفحه اصلی و اسلایدر اطلاعیه‌ها */
.home-container { max-width: 1100px; }
.brand { text-decoration: none; color: inherit; }
.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.home-register-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 22px;
    margin-top: 28px; padding: 13px 22px; min-width: 190px;
    border-radius: 12px; background: #ffffff; color: #174a96; text-decoration: none;
    font-size: 14px; font-weight: 800; box-shadow: 0 8px 22px rgba(5, 20, 50, .18);
    transition: transform .2s, box-shadow .2s;
}
.home-register-button:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(5,20,50,.24); }
.home-register-button .arrow { font-size: 20px; line-height: 1; }
.announcements-section {
    margin-top: 28px; padding: 30px; border-radius: 22px;
    background: #fff; border: 1px solid #e7edf7; box-shadow: 0 12px 35px rgba(25,55,100,.06);
}
.announcements-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:22px; }
.announcements-heading h2 { font-size:22px; color:#172f59; margin:5px 0 2px; }
.announcements-heading p { color:#78869b; font-size:12px; }
.light-eyebrow { color:#3971c2; background:#edf4ff; }
.slider-counter { display:flex; align-items:center; gap:7px; color:#1d4f94; font-weight:800; font-size:15px; white-space:nowrap; }
.counter-divider { color:#a6b4c8; }
.announcement-slider { position:relative; display:flex; align-items:center; gap:12px; }
.announcement-viewport { overflow:hidden; width:100%; border-radius:17px; }
.announcement-track { display:flex; direction:ltr; transition:transform .55s cubic-bezier(.22,.75,.25,1); }
.announcement-slide {
    direction:rtl; flex:0 0 100%; min-width:100%; min-height:205px; box-sizing:border-box;
    display:flex; align-items:center; gap:25px; padding:27px 32px;
    color:inherit; text-decoration:none; background:linear-gradient(115deg,#f4f8ff,#eaf2ff);
    border:1px solid #e0eaf9; border-radius:17px;
}
.announcement-slide:hover { background:linear-gradient(115deg,#edf4ff,#e3edff); }
.announcement-symbol { flex:0 0 112px; width:112px; height:112px; display:grid; place-items:center; border-radius:25px; background:#173d78; color:#fff; font-size:27px; font-weight:800; direction:ltr; box-shadow:0 10px 25px rgba(23,61,120,.18); }
.announcement-content { flex:1; }
.announcement-tag { display:inline-block; padding:4px 11px; border-radius:30px; color:#2860aa; background:#dceaff; font-size:11px; font-weight:700; }
.announcement-content h3 { margin:10px 0 7px; color:#18345f; font-size:17px; line-height:1.9; }
.announcement-content p { color:#64748b; font-size:12px; line-height:2.1; max-width:720px; }
.announcement-more { display:inline-block; margin-top:10px; color:#245ca7; font-size:12px; font-weight:800; }
.announcement-more b { font-size:17px; margin-right:5px; }
.slider-arrow { flex:0 0 36px; width:36px; height:36px; border:0; border-radius:50%; background:#edf3fc; color:#245ca7; font-size:27px; line-height:1; cursor:pointer; transition:background .2s, transform .2s; }
.slider-arrow:hover { background:#dce9fb; transform:scale(1.06); }
.slider-footer { display:flex; justify-content:space-between; align-items:center; gap:15px; margin-top:17px; }
.slider-dots { display:flex; align-items:center; gap:7px; }
.slider-dot { width:8px; height:8px; border:0; border-radius:10px; background:#cbd6e6; cursor:pointer; transition:width .2s,background .2s; }
.slider-dot.active { width:23px; background:#2863b4; }
.slider-autoplay-note { color:#94a0b2; font-size:10px; }
.home-footer { text-align:center; padding:28px 10px 8px; color:#64748b; }
.home-footer p { font-weight:700; font-size:12px; }
.home-footer span { font-size:11px; }
.announcement-detail-container { max-width:850px; }
.announcement-detail-card { background:#fff; border:1px solid #e6edf7; border-radius:22px; padding:38px; box-shadow:0 12px 35px rgba(25,55,100,.06); }
.announcement-detail-card h1 { color:#17365f; font-size:24px; margin:15px 0 22px; line-height:1.9; }
.announcement-detail-card p { color:#53647b; font-size:14px; line-height:2.5; }
.announcement-detail-symbol { display:grid; place-items:center; width:100%; min-height:150px; margin-bottom:25px; border-radius:17px; background:linear-gradient(120deg,#102d60,#2456a3); color:white; font-size:42px; font-weight:800; direction:ltr; }
.detail-register-button { background:#2563eb; color:#fff; }
.back-home { text-decoration:none; }
@media(max-width:700px) {
    .announcements-section { padding:20px 14px; }
    .announcements-heading h2 { font-size:18px; }
    .announcement-slide { min-height:270px; padding:22px 17px; flex-direction:column; align-items:flex-start; gap:15px; }
    .announcement-symbol { width:65px; height:65px; flex-basis:65px; border-radius:17px; font-size:20px; }
    .announcement-content h3 { font-size:15px; }
    .announcement-content p { font-size:11px; }
    .slider-arrow { flex-basis:30px; width:30px; height:30px; }
    .slider-footer { align-items:flex-start; flex-direction:column; }
    .announcement-detail-card { padding:24px 18px; }
    .announcement-detail-card h1 { font-size:19px; }
    .header-content { padding:14px 15px; }
    .header-label { font-size:10px; padding:6px 10px; }
}


/* مراحل پرداخت و قوانین ثبت‌نام */
.step-indicator{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 0 22px;padding:14px 12px;background:#fff;border:1px solid #e6edf7;border-radius:14px}
.step-indicator-item{color:#94a3b8;font-size:12px;font-weight:700;white-space:nowrap;padding:7px 11px;border-radius:20px;background:#f1f5f9}
.step-indicator-item.active{color:#1d4ed8;background:#e8f1ff}
.step-indicator-item.completed{color:#15803d;background:#eaf8ef}
.step-indicator-line{width:34px;height:2px;background:#dbe4f0}
.workflow-step{margin-top:0}
.payment-info-panel{margin:22px 0;padding:20px;border:1px solid #dbe7f8;border-radius:15px;background:linear-gradient(135deg,#f7faff,#edf4ff)}
.payment-info-heading{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.payment-info-heading strong{display:block;color:#18345f;font-size:15px}
.payment-info-heading small{display:block;color:#718096;font-size:11px;margin-top:4px}
.payment-info-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;background:#173d78;color:#fff;font-size:20px;font-weight:800}
.payment-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.payment-info-item{display:flex;flex-direction:column;gap:8px;padding:13px;background:#fff;border:1px solid #e5edf8;border-radius:11px;min-width:0}
.payment-info-item span{color:#718096;font-size:11px}
.payment-info-item strong{color:#233c63;font-size:12px;line-height:1.9;overflow-wrap:anywhere}
.payment-config-warning{margin-top:14px;padding:10px 12px;border-radius:9px;background:#fff8e8;color:#946200;font-size:11px;line-height:2}
.receipt-upload-group{margin-top:25px}
.receipt-upload-group input[type=file]{display:block;width:100%;margin-top:9px;padding:13px;border:1px dashed #9bb4d8;border-radius:11px;background:#f8fbff;font-family:inherit;font-size:12px;cursor:pointer}
.upload-help{display:block;color:#718096;font-size:11px;margin-top:8px}
.receipt-preview{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin-top:15px;padding:12px;border:1px solid #dbe7f8;border-radius:12px;background:#f8fbff}
.receipt-preview img{width:85px;height:85px;object-fit:cover;border-radius:8px;border:1px solid #dbe3ef;background:#fff}
.receipt-preview-pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 85px;
    height: 85px;
    border: 1px solid #f3c5c5;
    border-radius: 8px;
    background: #fff1f1;
    color: #c62828;
    font-size: 19px;
    font-weight: 800;
}
.receipt-preview > div:not(.receipt-preview-pdf){flex:1;min-width:120px}
.receipt-preview strong,.receipt-preview small{display:block;overflow-wrap:anywhere}
.receipt-preview strong{color:#263d60;font-size:12px}
.receipt-preview small{color:#718096;font-size:10px;margin-top:5px}
.remove-receipt-button{border:0;border-radius:8px;padding:8px 11px;background:#feecec;color:#b42318;font-family:inherit;font-size:11px;cursor:pointer}
.workflow-actions{display:flex;gap:12px;margin-top:25px}
.workflow-actions button{flex:1}
.secondary-button{min-height:52px;padding:12px 18px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;color:#475569;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer}
.secondary-button:hover{background:#f8fafc}
.terms-content{padding:20px;margin:20px 0;border:1px solid #e2eaf5;border-radius:13px;background:#f9fbff;color:#475569}
.terms-content h3{color:#1e3a63;font-size:15px;margin-bottom:12px}
.terms-content ol{padding-right:22px}
.terms-content li{padding-right:4px;margin:10px 0;font-size:12px;line-height:2.2}
.terms-draft-note{margin-top:16px;padding:10px 12px;border-radius:9px;background:#fff8e8;color:#946200;font-size:11px;line-height:2}
.terms-acceptance{display:flex;align-items:flex-start;gap:10px;padding:15px;border:1px solid #dbe7f8;border-radius:11px;background:#f8fbff;color:#334155;font-size:12px;line-height:2;cursor:pointer}
.terms-acceptance input{margin-top:5px;accent-color:#2563eb}
.final-stage-notice{margin-top:18px;padding:13px 15px;border-radius:10px;background:#eaf8ef;color:#166534;font-size:12px;line-height:2}
@media(max-width:700px){.step-indicator{gap:5px;padding:10px 5px}.step-indicator-item{font-size:10px;padding:7px 8px}.step-indicator-line{width:15px}.payment-info-grid{grid-template-columns:1fr}.workflow-actions{flex-direction:column-reverse}.workflow-actions button{width:100%}.payment-info-panel{padding:15px}.terms-content{padding:15px}}

#receiptError {
    color: #d93636;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

/* ==========================================
   صفحه موفقیت ثبت‌نام
========================================== */

.registration-success-card {
    max-width: 680px;
    margin: 55px auto;
    padding: 45px 35px;
    background: #ffffff;
    border: 1px solid #e6edf7;
    border-radius: 22px;
    box-shadow: 0 8px 30px rgba(30, 64, 175, 0.06);
    text-align: center;
}

.success-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    font-size: 42px;
    font-weight: 700;
}

.success-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #16a34a;
    font-size: 14px;
    font-weight: 700;
}

.registration-success-card h1 {
    margin: 0 0 15px;
    color: #1e3a8a;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.9;
}

.success-description {
    max-width: 520px;
    margin: 0 auto 28px;
    color: #64748b;
    font-size: 15px;
    line-height: 2;
}

.tracking-code-box {
    padding: 20px;
    margin: 0 auto 22px;
    background: #f1f5ff;
    border: 1px dashed #93b4f5;
    border-radius: 14px;
}

.tracking-code-box span {
    display: block;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 13px;
}

.tracking-code-box strong {
    display: block;
    color: #1d4ed8;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 1.5px;
    direction: ltr;
    unicode-bidi: isolate;
}

.success-notice {
    margin: 0 auto 28px;
    padding: 12px 15px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    color: #92400e;
    font-size: 13px;
    line-height: 2;
}

.registration-success-card .detail-register-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 210px;
    text-decoration: none;
}

@media (max-width: 600px) {

    .registration-success-card {
        margin: 25px auto;
        padding: 30px 20px;
    }

    .registration-success-card h1 {
        font-size: 20px;
    }

    .success-description {
        font-size: 14px;
    }

    .tracking-code-box strong {
        font-size: 21px;
    }

}



/* ==========================================
   طراحی هماهنگ صفحه ورود پنل مدیریت
========================================== */

.admin-login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 16px;
    box-sizing: border-box;
    direction: rtl;
    background: #f5f8fd;
}

.admin-login-card {
    width: 100%;
    max-width: 470px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e6edf7;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(25, 55, 100, 0.08);
    font-family: "B Book", "B Koodak", Tahoma, sans-serif;
}

/* سربرگ اختصاصی پنل */

.admin-login-header {
    position: relative;
    padding: 35px 28px 32px;
    text-align: center;
    background: linear-gradient(125deg, #102d60, #2456a3);
}

.admin-login-header::before {
    content: "دسترسی اختصاصی مدیران";
    display: inline-block;
    margin-bottom: 15px;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.10);
    color: #eaf2ff;
    font-family: "B Book", "B Koodak", Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.9;
}

.admin-login-header h1 {
    margin: 0 0 10px;
    color: #ffffff;
    font-family: "B Koodak", "B Book", Tahoma, sans-serif;
    font-size: 28px;
    font-weight: normal;
    line-height: 2;
}

.admin-login-header p {
    margin: 0;
    color: #dce8fb;
    font-family: "B Book", "B Koodak", Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 2.2;
}

/* فرم ورود */

.admin-login-card > form {
    padding: 34px 36px 32px;
}

.admin-login-card .form-group {
    margin-bottom: 24px;
}

.admin-login-card .form-group label {
    display: block;
    margin-bottom: 10px;
    color: #263b59;
    font-family: "B Book", "B Koodak", Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 2;
}

.admin-login-card .form-group input {
    display: block;
    width: 100%;
    min-height: 54px;
    padding: 13px 16px;
    box-sizing: border-box;
    border: 1px solid #e0e8f2;
    border-radius: 11px;
    background: #f9fbfe;
    color: #26364d;
    font-family: "B Book", "B Koodak", Tahoma, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 2;
    outline: none;
    transition: all 0.2s ease;
}

.admin-login-card .form-group input::placeholder {
    color: #9aa8ba;
    font-size: 14px;
    font-weight: normal;
}

.admin-login-card .form-group input:hover {
    border-color: #b8cbe5;
}

.admin-login-card .form-group input:focus {
    border-color: #2563a6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 166, 0.09);
}

/* دکمه ورود */

.admin-login-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 55px;
    margin-top: 10px;
    padding: 13px 18px;
    border: none;
    border-radius: 11px;
    background: linear-gradient(120deg, #102d60, #2456a3);
    color: #ffffff;
    font-family: "B Book", "B Koodak", Tahoma, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 2;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(25, 70, 135, 0.16);
    transition: all 0.2s ease;
}

.admin-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 21px rgba(25, 70, 135, 0.22);
    filter: brightness(1.06);
}

.admin-login-button:active {
    transform: translateY(0);
}

/* پیام‌های سیستم */

.admin-login-message {
    margin: 0 36px 28px;
    padding: 13px 15px;
    border-radius: 10px;
    text-align: center;
    font-family: "B Book", "B Koodak", Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 2.2;
}

.admin-login-message.error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
}

.admin-login-message.success {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.admin-login-message.warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.admin-login-message.info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

/* نمایشگرهای کوچک */

@media (max-width: 480px) {
    .admin-login-container {
        padding: 20px 13px;
    }

    .admin-login-card {
        border-radius: 19px;
    }

    .admin-login-header {
        padding: 29px 20px 26px;
    }

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

    .admin-login-header p {
        font-size: 13px;
    }

    .admin-login-card > form {
        padding: 28px 22px 26px;
    }

    .admin-login-card .form-group label {
        font-size: 15px;
    }

    .admin-login-button {
        font-size: 16px;
    }

    .admin-login-message {
        margin: 0 22px 24px;
    }
}

/* ==========================================
   داشبورد مدیریت سامانه
========================================== */

.admin-dashboard-container {
    min-height: 100vh;
    padding: 30px;
    background: #f3f5f9;
    direction: rtl;
    box-sizing: border-box;
}

.admin-dashboard-header {
    position: sticky;
    top: 12px;
    z-index: 100;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    padding: 28px 32px;
    background: linear-gradient(120deg, #102d60, #2456a3);
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(16, 45, 96, 0.13);
}

.admin-dashboard-header h1 {
    margin: 0 0 10px;
    color: #1e3a5f;
    font-size: 25px;
}

.admin-dashboard-header p {
    margin: 0;
    color: #777777;
    font-size: 14px;
}

.admin-welcome {
    padding: 12px 18px;
    background: #eef3f9;
    color: #1e3a5f;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
}

.admin-dashboard-content {
    margin-top: 25px;
    padding: 30px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.admin-dashboard-content h2 {
    margin-top: 0;
    color: #1e3a5f;
    font-size: 21px;
}

.admin-dashboard-content > p {
    color: #666666;
    font-size: 14px;
    line-height: 2;
}

.admin-dashboard-placeholder {
    margin-top: 25px;
    padding: 35px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    text-align: center;
    color: #777777;
}

@media (max-width: 600px) {

    .admin-dashboard-container {
        padding: 15px;
    }

    .admin-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
    }

    .admin-dashboard-header h1 {
        font-size: 21px;
    }

    .admin-dashboard-content {
        padding: 22px;
    }
}


/* ==========================================
   بخش خوش‌آمدگویی و خروج مدیر
========================================== */

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-header-actions form {
    margin: 0;
}

.admin-logout-button {
    padding: 12px 18px;
    border: none;
    border-radius: 9px;
    background: #dc3545;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.admin-logout-button:hover {
    background: #bd2130;
}

@media (max-width: 600px) {

    .admin-header-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .admin-header-actions form {
        width: 100%;
    }

    .admin-logout-button {
        width: 100%;
    }
}


/* ==========================================
   جدول ثبت‌نام‌های پنل مدیریت
========================================== */

.admin-registrations-section {
    margin-top: 30px;
}

.admin-registrations-section h3 {
    margin-bottom: 20px;
    color: #1e3a5f;
    font-size: 18px;
}




/* ==========================================
   صفحه جزئیات ثبت‌نام
========================================== */

.admin-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.admin-detail-item {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e5e9f0;
    border-radius: 9px;
    min-width: 0;
}

.admin-detail-item strong {
    color: #1e3a5f;
    font-size: 13px;
}

.admin-detail-item span {
    color: #444444;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.admin-participants-title {
    margin-top: 35px;
}

.admin-participant-card {
    margin-top: 20px;
    padding: 22px;
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    background: #ffffff;
}

.admin-participant-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1e3a5f;
    font-size: 16px;
}

.admin-back-button {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 9px;
    background: #1e3a5f;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.admin-back-button:hover {
    background: #285487;
}

@media (max-width: 600px) {

    .admin-details-grid {
        grid-template-columns: 1fr;
    }

    .admin-participant-card {
        padding: 16px;
    }

    .admin-back-button {
        text-align: center;
    }
}

/* دکمه مشاهده جزئیات ثبت‌نام */

.admin-view-button {
    display: inline-block;
    padding: 9px 14px;
    background: #1e3a5f;
    color: #ffffff;
    text-decoration: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.admin-view-button:hover {
    background: #285487;
}


/* ==========================================
   بخش نمایش تصویر فیش پرداخت
========================================== */

.admin-receipt-section {
    margin-top: 30px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e5e9f0;
    border-radius: 14px;
    text-align: center;
}

.admin-receipt-section h2 {
    margin-top: 0;
    margin-bottom: 22px;
    color: #1e3a5f;
    font-size: 19px;
}

.admin-receipt-image {
    display: block;
    width: 100%;
    max-width: 520px;
    max-height: 650px;
    object-fit: contain;
    margin: 0 auto;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(30, 58, 95, 0.10);
}

@media (max-width: 600px) {

    .admin-receipt-section {
        padding: 15px;
    }

    .admin-receipt-section h2 {
        font-size: 17px;
    }

    .admin-receipt-image {
        padding: 6px;
    }
}


/* ==========================================
   جست‌وجوی ثبت‌نام‌ها در پنل مدیریت
========================================== */

.admin-search-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.admin-search-form input {
    flex: 1;
    min-width: 220px;
    padding: 12px 15px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.admin-search-form input:focus {
    border-color: #1e3a5f;
}

.admin-search-form button {
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    background: #1e3a5f;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.admin-search-form button:hover {
    background: #285487;
}

.admin-search-reset {
    padding: 12px 15px;
    border-radius: 8px;
    background: #e9eef5;
    color: #1e3a5f;
    text-decoration: none;
    font-size: 13px;
}

@media (max-width: 600px) {

    .admin-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-search-form input {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .admin-search-form button,
    .admin-search-reset {
        text-align: center;
    }
}


/* ==========================================
   صفحه پیگیری ثبت‌نام
========================================== */

.track-registration-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    box-sizing: border-box;
    background: #f1f5f9;
}

.track-registration-card {
    width: 100%;
    max-width: 500px;
    padding: 35px;
    background: #ffffff;
    border: 1px solid #e5e9f0;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(30, 58, 95, 0.08);
}

.track-registration-card h1 {
    margin-top: 0;
    color: #1e3a5f;
    font-size: 23px;
    text-align: center;
}

.track-registration-card > p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.9;
    text-align: center;
}

.track-registration-card form {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-top: 25px;
}

.track-registration-card label {
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}

.track-registration-card input {
    padding: 14px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    direction: ltr;
    text-align: left;
    outline: none;
}

.track-registration-card input:focus {
    border-color: #1e3a5f;
}

.track-registration-card button {
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #1e3a5f;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
}

.track-registration-card button:hover {
    background: #285487;
}

.track-error {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    background: #fff1f2;
    color: #be123c !important;
    font-size: 13px;
}

.track-result {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #f8fafc;
}

.track-result h2 {
    margin-top: 0;
    color: #1e3a5f;
    font-size: 18px;
}

.track-result p {
    color: #334155;
    font-size: 14px;
    line-height: 2;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {

    .track-registration-card {
        padding: 23px;
    }

    .track-registration-card h1 {
        font-size: 20px;
    }
}


/* ==========================================
   فونت نرم‌تر صفحه ورود مدیران
========================================== */

.admin-login-card {
    font-family: "B Book", "B Koodak", Tahoma, sans-serif;
}

.admin-login-header h1 {
    font-family: "B Koodak", Tahoma, sans-serif;
    font-weight: normal;
}

.admin-login-header p,
.admin-login-header::before,
.admin-login-card .form-group label,
.admin-login-card .form-group input,
.admin-login-button,
.admin-login-message {
    font-family: "B Book", "B Koodak", Tahoma, sans-serif;
}


/* ==========================================
   بازطراحی حرفه‌ای داشبورد مدیریت
========================================== */

.admin-dashboard-container {
    min-height: 100vh;
    padding: 30px;
    box-sizing: border-box;
    direction: rtl;
    background: #f5f8fd;
    font-family: "B Book", "B Koodak", Tahoma, sans-serif;
}

/* سربرگ داشبورد */

.admin-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    padding: 28px 32px;
    background: linear-gradient(120deg, #102d60, #2456a3);
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(16, 45, 96, 0.13);
}

/* سربرگ ثابت نیست و همراه صفحه اسکرول می‌شود */

.admin-dashboard-header h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-family: "B Koodak", "B Book", Tahoma, sans-serif;
    font-size: 27px;
    font-weight: normal;
    line-height: 2;
}

.admin-dashboard-header p {
    margin: 0;
    color: #dce8fb;
    font-size: 14px;
    line-height: 2;
}

/* خوش‌آمدگویی و خروج */

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-wrap: wrap;
}

.admin-header-actions form {
    margin: 0;
}

.admin-welcome {
    padding: 11px 17px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 2;
}

.admin-logout-button {
    min-height: 45px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 11px;
    background: #ffffff;
    color: #b42336;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-logout-button:hover {
    background: #fff1f2;
    transform: translateY(-2px);
}

/* محتوای اصلی داشبورد */

.admin-dashboard-content {
    margin-top: 25px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e6edf7;
    border-radius: 20px;
    box-shadow: 0 7px 25px rgba(25, 55, 100, 0.05);
}

.admin-dashboard-content h2 {
    margin: 0 0 8px;
    padding-right: 13px;
    border-right: 4px solid #2563eb;
    color: #17365f;
    font-family: "B Koodak", "B Book", Tahoma, sans-serif;
    font-size: 23px;
    font-weight: normal;
    line-height: 2;
}

.admin-dashboard-content > p {
    margin-top: 8px;
    color: #718096;
    font-size: 14px;
    line-height: 2.2;
}

/* جست‌وجوی ثبت‌نام‌ها */

.admin-search-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    padding: 17px;
    background: #f7faff;
    border: 1px solid #e6edf7;
    border-radius: 14px;
}

.admin-search-form input {
    flex: 1;
    min-width: 220px;
    min-height: 48px;
    padding: 11px 15px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #ffffff;
    color: #26364d;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.admin-search-form input::placeholder {
    color: #9aa8ba;
}

.admin-search-form input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.09);
}

.admin-search-form button {
    min-height: 48px;
    padding: 11px 23px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(120deg, #102d60, #2456a3);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-search-form button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.admin-search-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 17px;
    border: 1px solid #dbe5f3;
    border-radius: 10px;
    background: #ffffff;
    color: #315c9b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.admin-search-reset:hover {
    background: #edf4ff;
}

/* فهرست ثبت‌نام‌کنندگان */

.admin-registrations-section {
    margin-top: 32px;
}

.admin-registrations-section h3 {
    margin: 0 0 19px;
    padding-right: 12px;
    border-right: 3px solid #60a5fa;
    color: #24436e;
    font-family: "B Koodak", "B Book", Tahoma, sans-serif;
    font-size: 19px;
    font-weight: normal;
    line-height: 2;
}

/* جدول ثبت‌نام‌ها */

/* Compact registration table */
.admin-registrations-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e3eaf4;
    border-radius: 13px;
    background: #ffffff;
}

.admin-registrations-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    text-align: right;
    background: #ffffff;
}

.admin-registrations-table th,
.admin-registrations-table td {
    padding: 9px 6px;
    font-family: inherit;
    font-size: 12px;
    white-space: normal;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

.admin-registrations-table th {
    background: #edf4ff;
    color: #173d70;
    font-weight: 700;
}

.admin-registrations-table td {
    border-top: 1px solid #edf1f7;
    color: #475569;
    line-height: 1.7;
}

.admin-registrations-table th:nth-child(1),
.admin-registrations-table td:nth-child(1) { width: 14%; }

.admin-registrations-table th:nth-child(2),
.admin-registrations-table td:nth-child(2) { width: 8%; }

.admin-registrations-table th:nth-child(3),
.admin-registrations-table td:nth-child(3) { width: 7%; }

.admin-registrations-table th:nth-child(4),
.admin-registrations-table td:nth-child(4) { width: 17%; }

.admin-registrations-table th:nth-child(5),
.admin-registrations-table td:nth-child(5) { width: 17%; }

.admin-registrations-table th:nth-child(6),
.admin-registrations-table td:nth-child(6) { width: 10%; }

.admin-registrations-table th:nth-child(7),
.admin-registrations-table td:nth-child(7) { width: 15%; }

.admin-registrations-table th:nth-child(8),
.admin-registrations-table td:nth-child(8) { width: 12%; }

.admin-registrations-table tbody tr {
    transition: background 0.2s ease;
}

.admin-registrations-table tbody tr:hover {
    background: #f6f9ff;
}

.admin-registrations-table td[colspan] {
    padding: 30px 10px;
    text-align: center;
    color: #8491a5;
    font-size: 13px;
}
.admin-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 15px;
    border-radius: 9px;
    background: #edf4ff;
    border: 1px solid #d7e6fb;
    color: #2456a3;
    text-decoration: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.admin-view-button:hover {
    background: #2456a3;
    border-color: #2456a3;
    color: #ffffff;
}

/* فشرده‌سازی دکمه مشاهده جزئیات در جدول */
.admin-registrations-table .admin-view-button {
    padding: 5px 4px;
    min-height: 0;
    font-size: 11px;
    white-space: nowrap;
    line-height: 1.5;
    border-radius: 6px;
}

/* نمایشگرهای متوسط */

@media (max-width: 800px) {
    .admin-dashboard-container {
        padding: 20px;
    }

    .admin-dashboard-header {
        padding: 23px;
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .admin-dashboard-content {
        padding: 23px;
    }
}

/* نمایشگرهای کوچک */

@media (max-width: 600px) {
    .admin-dashboard-container {
        padding: 13px;
    }

    .admin-dashboard-header {
        padding: 22px 19px;
        border-radius: 16px;
    }

    .admin-dashboard-header h1 {
        font-size: 24px;
    }

    .admin-dashboard-header p {
        font-size: 12px;
    }

    .admin-header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .admin-welcome {
        text-align: center;
    }

    .admin-header-actions form {
        width: 100%;
    }

    .admin-logout-button {
        width: 100%;
    }

    .admin-dashboard-content {
        margin-top: 17px;
        padding: 20px 14px;
        border-radius: 16px;
    }

    .admin-dashboard-content h2 {
        font-size: 21px;
    }

    .admin-search-form {
        padding: 13px;
    }

    .admin-search-form input {
        width: 100%;
        min-width: 0;
        flex-basis: 100%;
    }

    .admin-search-form button,
    .admin-search-reset {
        flex: 1;
        text-align: center;
    }

    .admin-registrations-section h3 {
        font-size: 17px;
    }

}


/* بخش لینک ورود مدیران */
.header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.admin-entry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    color: #475569;
    background: #ffffff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.admin-entry:hover {
    color: #2563eb;
    border-color: #2563eb;
    background: #f8fbff;
}

@media (max-width: 600px) {
    .header-actions {
        gap: 8px;
    }

    .admin-entry {
        padding: 7px 10px;
        font-size: 11px;
        white-space: nowrap;
    }

    .header-label {
        font-size: 11px;
    }
}

.back-home {
    position: absolute;
    top: 22px;
    left: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    z-index: 10;
}

.back-home:hover {
    color: #2563eb;
    border-color: #2563eb;
    background: #f8fbff;
}

@media (max-width: 600px) {
    .back-home {
        top: 12px;
        left: 12px;
        padding: 7px 10px;
        font-size: 11px;
    }
}


/* دکمه بازگشت به صفحه اصلی در صفحه ورود مدیران */
.back-home {
    position: absolute;
    top: 22px;
    left: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    z-index: 10;
}

.back-home:hover {
    color: #2563eb;
    border-color: #2563eb;
    background: #f8fbff;
}

@media (max-width: 600px) {
    .back-home {
        top: 12px;
        left: 12px;
        padding: 7px 10px;
        font-size: 11px;
    }
}


/* کارت‌های آماری داشبورد مدیریت */

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.admin-stat-card {
    min-height: 155px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 22px 15px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.admin-stat-value {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
}

.admin-stat-label {
    font-size: 15px;
    font-weight: 600;
}

/* کل ثبت‌نام‌ها */
.admin-stat-card.total {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

/* ثبت‌نام‌های تأییدشده */
.admin-stat-card.approved {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}

/* ثبت‌نام‌های ردشده */
.admin-stat-card.rejected {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

/* ثبت‌نام‌های در انتظار بررسی */
.admin-stat-card.pending {
    background: #fff7ed;
    color: #ea580c;
    border-color: #fed7aa;
}

/* نمایش در تبلت */
@media (max-width: 900px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* نمایش در موبایل */
@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin: 22px 0;
    }

    .admin-stat-card {
        min-height: 125px;
        padding: 15px 8px;
    }

    .admin-stat-value {
        font-size: 29px;
    }

    .admin-stat-label {
        font-size: 12px;
    }
}


/* ==========================================
   منوی کناری داشبورد مدیریت
========================================== */

/* چیدمان کلی منو و محتوای صفحه */

.admin-layout {
    display: grid;
    grid-template-columns: 215px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin-top: 25px;
    direction: rtl;
}

/* منوی کناری */

.admin-sidebar {
    position: sticky;
    top: 180px;
    z-index: 50;

    height: auto;
    max-height: none;
    overflow: visible;
    align-self: start;
}

/* عنوان منو */

.admin-sidebar-title {
    padding: 0 10px 17px;
    margin-bottom: 12px;
    border-bottom: 1px solid #edf1f7;
}

.admin-sidebar-title h2 {
    margin: 0;
    color: #17365f;
    font-family: inherit;
    font-size: 19px;
    font-weight: 700;
}

/* فهرست گزینه‌ها */

.admin-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.admin-sidebar-menu form {
    margin: 0;
}

/* دکمه‌های منو */

.admin-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;

    border: 1px solid transparent;
    border-radius: 10px;

    background: transparent;
    color: #475569;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: right;

    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-menu-item:hover {
    background: #f1f6ff;
    color: #2456a3;
}

/* گزینه فعال */

.admin-menu-item.active {
    background: #edf4ff;
    border-color: #d8e7fb;
    color: #1d4f91;
    font-weight: 700;
}

/* جداکننده منو */

.admin-sidebar-divider {
    height: 1px;
    margin: 12px 5px;
    background: #edf1f7;
}

/* خروج از پنل */

.admin-menu-logout {
    color: #c53030;
}

.admin-menu-logout:hover {
    background: #fff1f2;
    color: #b42336;
}

/* محتوای اصلی */

.admin-main-content {
    min-width: 0;
    padding: 28px;

    background: #ffffff;
    border: 1px solid #e6edf7;
    border-radius: 18px;

    box-shadow: 0 7px 25px rgba(25, 55, 100, 0.05);
}

/* نمایش بخش انتخاب‌شده */

.admin-page-section {
    display: none;
}

.admin-page-section.active {
    display: block;
}

/* عنوان بخش‌ها */

.admin-page-section h2 {
    margin: 0 0 10px;
    padding-right: 13px;
    border-right: 4px solid #2563eb;

    color: #17365f;
    font-family: inherit;
    font-size: 23px;
    font-weight: 700;
    line-height: 2;
}

.admin-page-section > p {
    margin: 8px 0 25px;
    color: #718096;
    font-size: 14px;
    line-height: 2.2;
}

/* پیام بخش‌های در حال تکمیل */

.admin-placeholder {
    margin-top: 25px;
    padding: 35px 20px;

    border: 1px dashed #cbd5e1;
    border-radius: 12px;

    background: #f8fafc;
    color: #718096;

    text-align: center;
    font-size: 14px;
    line-height: 2;
}

/* سازگاری با تبلت */

grid-template-columns: 190px minmax(0, 1fr);

    .admin-layout {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 15px;
    }

    .admin-sidebar {
        padding: 17px 10px;
    }

    .admin-menu-item {
        min-height: 43px;
        padding: 8px 11px;
        font-size: 13px;
    }

    .admin-main-content {
        padding: 22px;
    }

}

/* سازگاری با موبایل */

@media (max-width: 650px) {

    .admin-layout {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 17px;
    }

    .admin-sidebar {
        position: sticky;
        top: 10px;
        max-height: none;
        padding: 14px;
        z-index: 90;
    }

    .admin-sidebar-title {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .admin-sidebar-title h2 {
        font-size: 17px;
    }

    .admin-sidebar-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .admin-menu-item {
        min-height: 45px;
        padding: 9px 7px;
        justify-content: center;
        text-align: center;
        font-size: 12px;
        line-height: 1.8;
    }

    .admin-sidebar-divider {
        grid-column: 1 / -1;
        margin: 5px 0;
    }

    .admin-sidebar-menu form {
        grid-column: 1 / -1;
    }

    .admin-main-content {
        padding: 20px 14px;
        border-radius: 15px;
    }

    .admin-page-section h2 {
        font-size: 20px;
    }

}


/* دکمه خروج در سربرگ مدیریت */

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-header-actions form {
    margin: 0;
}

.admin-header-logout {
    padding: 9px 17px;
    border: 1px solid #f1caca;
    border-radius: 9px;
    background: #fff5f5;
    color: #c53030;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    transition: 0.2s ease;
}

.admin-header-logout:hover {
    background: #c53030;
    color: #ffffff;
}

@media (max-width: 650px) {
    .admin-header-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .admin-header-logout {
        padding: 7px 12px;
        font-size: 12px;
    }
}

/* فونت یکپارچه کل سامانه */

*,
*::before,
*::after {
    font-family: "Vazirmatn", Tahoma, sans-serif !important;
}

/* دکمه ثبت نهایی فرم ثبت‌نام */

#registrationForm .form-submit-area {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 auto 25px;
}

#registrationForm .form-submit-area .primary-button {
    display: block;
    width: 100%;
    min-height: 54px;
    padding: 15px 20px;

    border: none;
    border-radius: 14px;

    background: linear-gradient(120deg, #102d60, #2456a3);
    color: #ffffff;

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

    cursor: pointer;
    transition: all 0.2s ease;
}

#registrationForm .form-submit-area .primary-button:hover {
    background: linear-gradient(120deg, #0b234d, #1d4788);
    box-shadow: 0 6px 18px rgba(16, 45, 96, 0.18);
    transform: translateY(-2px);
}

#registrationForm .form-submit-area .primary-button:active {
    transform: translateY(0);
}

@media (max-width: 700px) {
    #registrationForm .form-submit-area .primary-button {
        min-height: 50px;
        font-size: 14px;
    }
}
/* دکمه بازگشت اختصاصی صفحه ثبت‌نام */

.register-container {
    position: relative;
}

.register-back-home {
    position: fixed;
    top: 20px;
    left: 25px;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: fit-content;
    margin: 0 auto 20px 0;
    padding: 9px 16px;

    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 9px;

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

    transition: 0.2s ease;
}

.register-back-home:hover {
    color: #2563eb;
    border-color: #2563eb;
    background: #f8fbff;
}

@media (max-width: 600px) {
    .register-back-home {
        padding: 8px 12px;
        font-size: 12px;
        margin-bottom: 16px;
    }
}