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

:root {
    /* 🎨 الأبيض ودرجاته - للخلفيات */
    --bg-main: #FFFFFF;        /* أبيض ثلجي */
    --bg-soft: #F8F9FA;        /* أبيض رمادي خفيف */
    --bg-card: #FAFAFA;        /* أبيض ناعم */

    /* 📝 النصوص */
    --text-dark: #2C3E50;      /* كحلي غامق */
    --text-soft: #7F8C8D;      /* رمادي غامق ناعم */

    /* 💫 الألوان الأكاديمية */
    --accent-1: #E3F2FD;       /* أزرق ثلجي */
    --accent-2: #F1F8E9;       /* أخضر ثلجي */
    --accent-3: #FFF3E0;       /* برتقالي فاتح */

    /* 🔲 الحدود */
    --border-light: #EEEEEE;   /* رمادي فاتح */

    /* مساعدات للشفافية - نفس الألوان مع شفافية */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-bg-strong: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(44, 62, 80, 0.12);  /* --text-dark مع شفافية */

    /* ألوان حالات (للضرورة القصوى فقط) */
    --danger: #d32f2f;         /* أحمر للتنبيهات */
    --danger-2: #b71c1c;
    --danger-3: #9a0000;
    --success: #2e7d32;        /* أخضر غامق للنجاح */
    --warning: #ed6c02;        /* برتقالي للتحذيرات */
}

* {
    font-family: 'Tajawal', sans-serif;
}

body {
    background: var(--bg-main);
    color: var(--text-dark);
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
    /* 👇 حذف flex: 1 */
}

/* ============ كروت زجاجية ============ */
.glass-card,
.glass-form,
.glass,
.contact-card,
.terms-card {
    background: var(--bg-main);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
}

.terms-card {
    background: var(--bg-card);
}

.contact-card {
    background: var(--bg-main);
    border: 1px solid var(--border-light);
}

.form-gradient {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
}

.gradient-bg {
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--accent-1) 40%, var(--accent-2) 100%);
}

/* ============ إدخالات النصوص ============ */
.input-focus {
    transition: all 0.3s ease;
}

.input-focus:focus {
    border-color: var(--text-dark);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.08);
}

/* ============ أزرار ============ */
.btn-gradient {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a2632 100%);
    transition: all 0.3s ease;
    color: white;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 62, 80, 0.15);
    background: linear-gradient(135deg, #1a2632 0%, #0f1a24 100%);
}

.btn-hover {
    transition: all 0.3s ease;
}

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.08);
}

.btn-sold-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(to right, #9aa4ad, #7f8c8d) !important;
}

/* ============ الصور ============ */
.image-hover {
    transition: transform 0.5s ease;
}

.image-hover:hover {
    transform: scale(1.02);
}

.preview-img {
    transition: all 0.3s ease;
    border: 2px dashed var(--border-light);
    background: var(--bg-card);
}

.preview-img:hover {
    border-color: var(--text-soft);
    transform: scale(1.05);
}

.image-option:hover .image-overlay {
    opacity: 1;
}

.image-overlay {
    transition: all 0.3s ease;
    opacity: 0;
    background: linear-gradient(to top, rgba(44, 62, 80, 0.6) 0%, transparent 50%);
}

/* ============ كروت خاصة ============ */
.success-card {
    background: var(--accent-2);
    border: 1px solid var(--border-light);
}

.error-card {
    background: var(--accent-3);
    border: 1px solid var(--border-light);
}

.important-note {
    background: var(--accent-1);
    border-right: 4px solid var(--text-dark);
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(44, 62, 80, 0.08);
}

.term-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.term-item:hover {
    border-left-color: var(--text-dark);
    background: var(--accent-1);
}

/* ============ بادجات وأيقونات ============ */
.feature-badge {
    transition: all 0.3s ease;
}

.feature-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.08);
}

.negotiable-badge {
    background: var(--accent-3);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sold-badge {
    background: var(--bg-soft);
    color: var(--text-soft);
    padding: 8px 16px;
    border-radius: 9999px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bike-icon {
    color: var(--text-dark);
    filter: drop-shadow(0 0 8px rgba(44, 62, 80, 0.12));
}

.price-tag {
    background: var(--text-dark);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.12);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
}

/* ============ عناصر تحكم ============ */
.step-indicator {
    transition: all 0.3s ease;
}

.step-indicator.active {
    background: var(--text-dark);
    color: white;
    transform: scale(1.1);
}

.feature-checkbox:checked + .feature-label {
    background: var(--text-dark);
    color: white;
    border-color: var(--text-dark);
}

.feature-label {
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    color: var(--text-soft);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.feature-label:hover {
    border-color: var(--text-dark);
    color: var(--text-dark);
}

/* ============ العناوين ============ */
.section-title {
    position: relative;
    padding-bottom: 15px;
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-1);
    border-radius: 3px;
}

.hero-title {
    text-shadow: 0 4px 20px rgba(44, 62, 80, 0.08);
}

/* ============ كلمة المرور ============ */
.password-strength {
    height: 4px;
    transition: all 0.3s ease;
    background: var(--border-light);
    border-radius: 10px;
}

.strength-weak {
    background: var(--danger);
    width: 30%;
}

.strength-medium {
    background: var(--warning);
    width: 60%;
}

.strength-strong {
    background: var(--success);
    width: 100%;
}

.requirement.valid {
    color: var(--success);
}

.requirement.invalid {
    color: var(--danger);
}

/* ============ السكرول بار ============ */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: var(--bg-soft);
    border-radius: 10px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: var(--text-soft);
    border-radius: 10px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: var(--text-dark);
}

/* ============ زر السكرول للأعلى ============ */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--text-dark);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.12);
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.15);
}

/* ============ أنيميشن ============ */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn,
.animate-fade-in,
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-pulse-slow {
    animation: pulse 6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.bike-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ============ أدوات مساعدة ============ */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Force Light Theme Override ===== */
.page-bg,
body,
.dark-bg,
.section-dark {
    background: var(--bg-main) !important;
}

.card,
.ad-card,
.report-card,
.stat-gradient {
    background: var(--bg-main) !important;
    border: 1px solid var(--border-light) !important;
}

.glass-navbar {
    background: var(--glass-bg) !important;
    border-bottom: 1px solid var(--border-light) !important;
}

/* ===== إضافات للتناسق ===== */
hr {
    border-color: var(--border-light);
}

a {
    color: var(--text-dark);
    transition: color 0.3s;
}

a:hover {
    color: var(--text-soft);
}

.text-muted {
    color: var(--text-soft);
}

.bg-soft {
    background: var(--bg-soft);
}

.border-light {
    border-color: var(--border-light);
}

/* التصميم المباشر حسب ألوانك */
:root {
    --bg-main: #FFFFFF;
    --bg-soft: #F8F9FA;
    --bg-card: #FAFAFA;

    --text-dark: #2C3E50;
    --text-soft: #7F8C8D;

    --accent-1: #E3F2FD;
    --accent-2: #F1F8E9;
    --accent-3: #FFF3E0;

    --border-light: #EEEEEE;

    /* ✅ الأسود الثابت للعناوين */
    --title-black: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--bg-soft);
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* الهيدر */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.header-icon {
    width: 80px;
    height: 80px;
    background-color: var(--accent-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 35px;
    color: var(--title-black);
}

.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--title-black);
    /* ✅ أسود */
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-soft);
    font-size: 16px;
}

/* الخطوات */
.steps-wrapper {
    background: var(--bg-main);
    padding: 25px;
    border-radius: 50px;
    border: 1px solid var(--border-light);
    margin-bottom: 30px;
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

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

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-soft);
}

.step.active .step-number {
    background-color: var(--text-dark);
    color: var(--bg-main);
}

.step-text {
    font-weight: 500;
    color: var(--title-black);
    /* ✅ خلي العنوان/النص الأساسي أسود */
}

.step-line {
    width: 80px;
    height: 2px;
    background-color: var(--border-light);
}

/* التنبيهات */
.alert {
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid transparent;
}

.alert-success {
    background-color: var(--accent-2);
    border-color: var(--accent-1);
    color: var(--text-dark);
}

.alert-error {
    background-color: var(--accent-3);
    border-color: var(--border-light);
    color: var(--text-dark);
}

.alert i {
    font-size: 24px;
}

/* النموذج الرئيسي */
.bike-form {
    background: var(--bg-main);
    border-radius: 30px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.form-section {
    padding: 30px;
    border-bottom: 1px solid var(--border-light);
}

.form-section:last-child {
    border-bottom: none;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.section-icon {
    width: 45px;
    height: 45px;
    background-color: var(--accent-1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--title-black);
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--title-black);
    /* ✅ أسود */
}

.required-badge {
    background-color: var(--accent-3);
    color: var(--text-soft);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-right: auto;
}

/* صور الرفع */
.images-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.image-box {
    position: relative;
}

.upload-label {
    cursor: pointer;
    display: block;
}

.upload-preview {
    background-color: var(--bg-soft);
    border: 2px dashed var(--border-light);
    border-radius: 20px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.upload-preview:hover {
    border-color: var(--text-dark);
    background-color: var(--bg-main);
}

.upload-preview i {
    font-size: 35px;
    color: var(--text-soft);
}

.upload-preview span {
    font-weight: 500;
    color: var(--title-black);
    /* ✅ أسود */
}

.upload-preview small {
    color: var(--text-soft);
    font-size: 12px;
}

.image-box input[type="file"] {
    display: none;
}

.required-star {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background-color: var(--text-dark);
    color: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

/* نصائح */
.tips-box {
    background-color: var(--bg-soft);
    border-radius: 20px;
    padding: 20px;
}

.tips-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--title-black);
    /* ✅ أسود */
    font-weight: 600;
}

.tips-title i {
    color: var(--text-soft);
}

.tips-list {
    list-style: none;
}

.tips-list li {
    margin-bottom: 8px;
    padding-right: 25px;
    position: relative;
    color: var(--text-soft);
}

.tips-list li::before {
    content: "✓";
    color: var(--title-black);
    /* ✅ أسود */
    position: absolute;
    right: 0;
}

/* الفورم */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--title-black);
    /* ✅ أسود */
}

.form-label i {
    color: var(--text-soft);
    margin-left: 8px;
    font-size: 14px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    font-size: 15px;
    background-color: var(--bg-main);
    color: var(--text-dark);
    transition: all 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--text-dark);
    background-color: var(--bg-main);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* الراديو */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-option {
    flex: 1;
    min-width: 120px;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option span {
    display: block;
    padding: 12px 15px;
    background-color: var(--bg-soft);
    border: 2px solid var(--border-light);
    border-radius: 50px;
    text-align: center;
    font-weight: 500;
    color: var(--text-soft);
    cursor: pointer;
    transition: all 0.3s;
}

.radio-option input[type="radio"]:checked+span {
    background-color: var(--text-dark);
    border-color: var(--text-dark);
    color: var(--bg-main);
}

/* التشيك بوكس */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    background-color: var(--bg-soft);
    border-radius: 12px;
    transition: all 0.3s;
}

.checkbox-option:hover {
    background-color: var(--accent-1);
}

.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--text-dark);
}

.checkbox-option span {
    color: var(--title-black);
    /* ✅ أسود */
    font-size: 14px;
    font-weight: 500;
}

/* التوجل */
.toggle-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: var(--bg-soft);
    border-radius: 16px;
    cursor: pointer;
}

.toggle-option input[type="checkbox"] {
    display: none;
}

.toggle-checkbox {
    width: 50px;
    height: 26px;
    background-color: var(--border-light);
    border-radius: 30px;
    position: relative;
    transition: all 0.3s;
}

.toggle-checkbox::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    background-color: var(--bg-main);
    border-radius: 50%;
    top: 2px;
    right: 2px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

input[type="checkbox"]:checked+.toggle-checkbox {
    background-color: var(--text-dark);
}

input[type="checkbox"]:checked+.toggle-checkbox::after {
    right: 26px;
}

.toggle-title {
    font-weight: 600;
    color: var(--title-black);
    /* ✅ أسود */
    margin-bottom: 4px;
}

.toggle-desc {
    color: var(--text-soft);
    font-size: 14px;
}

/* أزرار */
.form-actions {
    padding: 30px;
    display: flex;
    gap: 15px;
    background-color: var(--bg-soft);
    border-top: 1px solid var(--border-light);
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--text-dark);
    color: var(--bg-main);
    flex: 2;
    justify-content: center;
}

.btn-primary:hover {
    background-color: #1a2632;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--border-light);
    color: var(--text-soft);
    flex: 1;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: var(--accent-1);
    color: var(--title-black);
    /* ✅ أسود */
}

.btn-outline {
    background-color: transparent;
    color: var(--text-soft);
    border: 2px solid var(--border-light);
    flex: 1;
    justify-content: center;
}

.btn-outline:hover {
    border-color: var(--text-dark);
    color: var(--title-black);
    /* ✅ أسود */
}

/* ملاحظة */
.notice-box {
    padding: 20px 30px;
    background-color: var(--accent-2);
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-dark);
    font-size: 14px;
}

.notice-box i {
    color: var(--title-black);
    /* ✅ أسود */
    font-size: 20px;
}

.notice-box a {
    color: var(--title-black);
    /* ✅ أسود */
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid var(--title-black);
}

/* فوتر */
.footer {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.footer p {
    color: var(--text-soft);
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-links a {
    color: var(--title-black);
    /* ✅ أسود */
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--text-soft);
}

/* معاينة الصور */
.preview-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    z-index: 1;
}
.hidden {
    display: none;
}

