/* استيراد خط Tajawal الفخم والحداثي من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&display=swap');

:root {
    /* لوحة الألوان الفاخرة جداً (Ultra Premium Palette) */
    --bg-dark: #0a0f1d; /* لون خلفية كحلي منتصف الليل عميق جداً */
    --glow-primary: #00f3ff; /* أزرق نيون مشع */
    --glow-secondary: #ff007a; /* وردي نيون مشع */
    --accent: #d4af37; /* ذهبي براق للنجوم والتفاصيل الفاخرة */
    
    /* ألوان زجاجية (Glassmorphism) */
    --glass-bg: rgba(255, 255, 255, 0.03); /* زجاج شفاف جداً */
    --glass-border: rgba(255, 255, 255, 0.08); /* حدود الزجاج المضيئة */
    --glass-highlight: rgba(255, 255, 255, 0.15); /* إضاءة علوية للزجاج */
    
    /* ألوان النصوص */
    --text-main: #ffffff; /* أبيض ناصع للنصوص الأساسية */
    --text-muted: #a0aab2; /* رمادي فضي ناعم للنصوص الثانوية */
    
    --success: #00e676; 
    --danger: #ff1744; 
    
    /* حواف دائرية حديثة جداً */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 9999px;
    
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Tajawal', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(135deg, #05070a 0%, #0a0f1d 50%, #040d1a 100%);
    background-size: 200% 200%;
    animation: gradientMove 15s ease infinite;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    min-height: 100vh;
    direction: rtl; 
    color: var(--text-main);
    overflow: hidden;
    position: relative;
}

/* فقاعات مضيئة في الخلفية */
body::before, body::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 10s infinite alternate ease-in-out;
}

body::before {
    background: var(--glow-primary);
    top: -50px;
    right: -100px;
}

body::after {
    background: var(--glow-secondary);
    bottom: -100px;
    left: -50px;
    animation-delay: -5s;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(1.1); }
}

/* الغلاف الأساسي للتطبيق - يملأ الشاشة بالكامل */
.phone-wrapper {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    background: rgba(10, 15, 29, 0.6);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: none;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    border-radius: 0;
}

/* تابلت: محاذاة كاملة مع هوامش */
@media (min-width: 421px) and (max-width: 1024px) {
    .phone-wrapper {
        height: 100vh;
        border-radius: 0;
        margin: 0;
    }
}

/* ديسك توب: يملأ الشاشة الكاملة */
@media (min-width: 1025px) {
    body {
        justify-content: stretch;
        align-items: stretch;
    }
    .phone-wrapper {
        max-width: 100%;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        border: none;
        box-shadow: none;
    }
    .phone-notch {
        display: none;
    }
    header {
        padding: 16px 40px;
    }
    .bottom-nav {
        padding: 10px 40px;
    }
    .feed-container,
    .page-container {
        max-width: 900px;
        margin: 0 auto;
        width: 100%;
    }
    .contractors-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}


.phone-notch {
    width: 140px;
    height: 30px;
    background-color: #000;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 1000;
    box-shadow: inset 0 -2px 10px rgba(255,255,255,0.1);
}

.app-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* الهيدر الزجاجي */
header {
    padding: 50px 20px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 15, 29, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-section h1 {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, #fff, #a0aab2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* الصفحات */
main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding-bottom: 90px;
}
main::-webkit-scrollbar { display: none; }

.app-page {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpIn 0.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
}
.app-page.active {
    display: block;
}

/* صفحة الدردشة الكاملة تحتاج flex بدلاً من block */
.chat-full-page.active {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

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

/* الحقول والنماذج الزجاجية */
.form-input {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--glow-primary);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2), inset 0 2px 5px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* الأزرار المضيئة الفاخرة */
.submit-btn {
    width: 100%;
    padding: 18px;
    border-radius: var(--radius-full);
    border: none;
    background: linear-gradient(45deg, var(--glow-primary), #00a2ff);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 243, 255, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, var(--glow-secondary), #ff00c8);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 25px rgba(255, 0, 122, 0.4);
}
.submit-btn:hover::before {
    opacity: 1;
}
.submit-btn:active {
    transform: translateY(1px);
}

/* بطاقة المقاول (Glass Card) */
.contractor-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 16px 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contractor-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
}

.contractor-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 15px 35px rgba(0, 243, 255, 0.15);
    border-color: rgba(0, 243, 255, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contractor-info h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--glow-primary);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.rating-badge {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-weight: 900;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.card-body {
    margin-bottom: 15px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 6px;
}
.contact-info i { color: var(--glow-primary); }

.card-footer {
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
}

/* شريط التنقل السفلي */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 15px 10px 25px;
    background: rgba(10, 15, 29, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid var(--glass-border);
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 100;
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    gap: 4px;
    width: 60px;
}

.nav-icon {
    font-size: 1.3rem;
    transition: var(--transition);
}

.nav-item span:last-child {
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
}

.nav-item:hover {
    color: #fff;
}

.nav-item.active {
    color: var(--glow-primary);
}

.nav-item.active .nav-icon {
    transform: translateY(-4px) scale(1.1);
    text-shadow: 0 0 15px var(--glow-primary);
}

/* التصنيفات العائمة (Floating Tabs) */
.categories-filter {
    display: flex;
    gap: 10px;
    padding: 10px 20px 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
}
.categories-filter::-webkit-scrollbar { display: none; }

.filter-btn {
    white-space: nowrap;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.filter-btn.active {
    background: var(--glow-primary);
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

/* التقييمات - نظام النجوم المتوهج */
.stars-display {
    color: var(--glass-border);
    font-size: 1rem;
    position: relative;
    display: inline-block;
}

.stars-display .filled {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent);
}

.review-item {
    padding: 15px 0;
    border-bottom: 1px dashed var(--glass-border);
}
.review-item:last-child { border-bottom: none; }

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.review-author {
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
}
.review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.review-comment {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ddd;
}

/* صورة الحساب */
/* القصص (Stories Container) */
.stories-container {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    margin-bottom: 10px;
}
.stories-container::-webkit-scrollbar { display: none; }

.story-avatar-wrapper {
    position: relative;
    border-radius: 50%;
    padding: 3px;
    background: var(--glass-border);
    z-index: 1;
    width: 65px;
    height: 65px;
    flex-shrink: 0;
}
.story-avatar-wrapper.has-story {
    background: transparent;
}
.story-avatar-wrapper.has-story::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--glow-primary), var(--glow-secondary));
    animation: spinGradient 4s linear infinite;
    z-index: -1;
}

@keyframes spinGradient {
    100% { transform: rotate(360deg); }
}

.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #0a0f1d;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Modal / Popup للتقييم أو الإضافة */
.modal-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    width: 90%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    background: var(--danger);
    transform: rotate(90deg);
}

/* Stars Selection in Modal */
.star-select-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    direction: ltr; /* من اليسار لليمين لسهولة البرمجة */
}

.star-select-container i {
    font-size: 2rem;
    color: var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
}

.star-select-container i.active {
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent);
    transform: scale(1.1);
}

/* رفع الملفات (Upload Area) */
.upload-area {
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255,255,255,0.02);
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: var(--glow-primary);
    background: rgba(0, 243, 255, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: var(--glow-primary);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(0,243,255,0.5));
}

/* Other missing structural classes */
.profile-card, .review-form-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    margin: 0 20px 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.profile-info-text { text-align: center; margin-bottom: 20px; }
.profile-name { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 5px; }
.profile-specialty { color: var(--glow-primary); font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; }
.profile-bio { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; }
.profile-stats { display: flex; justify-content: space-around; border-top: 1px solid var(--glass-border); padding-top: 15px; }
.stat-item { text-align: center; }
.stat-value { display: block; font-size: 1.2rem; font-weight: 800; color: #fff; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

.search-container { padding: 0 20px 10px; }
.search-input {
    width: 100%;
    padding: 14px 20px 14px 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}
.search-input:focus {
    border-color: var(--glow-primary);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 15px rgba(0,243,255,0.2);
}

.form-textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.03);
    color: #fff;
    min-height: 100px;
    resize: none;
    outline: none;
    transition: var(--transition);
    margin-bottom: 15px;
}
.form-textarea:focus { border-color: var(--glow-primary); }

.section-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin: 20px 20px 10px;
}

/* 🔔 الإشعارات (Notifications) */
.notification-bell:hover i {
    color: #fff !important;
    text-shadow: 0 0 10px var(--glow-primary);
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 0 8px var(--danger);
}

.notifications-dropdown {
    position: absolute;
    top: 60px;
    left: 20px;
    width: 300px;
    max-height: 400px;
    background: rgba(10, 15, 29, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeUpIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-header {
    padding: 15px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
}
.notifications-list::-webkit-scrollbar { width: 4px; }
.notifications-list::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }

.notif-item {
    padding: 15px;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.5;
}

.notif-item:hover {
    background: rgba(255,255,255,0.03);
}

.notif-item.unread {
    background: rgba(0, 243, 255, 0.05);
    border-right: 3px solid var(--glow-primary);
    color: #fff;
    font-weight: 700;
}

.notif-time {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Show/Hide Password Feature */
.password-wrapper {
    position: relative;
    width: 100%;
}
.password-toggle {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%) translateY(-7.5px); /* To align with the margin-bottom of form-input if necessary, but actually input has margin-bottom: 15px so we compensate */
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.password-toggle:hover {
    color: var(--glow-primary);
}
.secure-text {
    -webkit-text-security: disc;
    text-security: disc;
}
/* -------------------------------------
   Facebook Style Post Footer
   ------------------------------------- */
.fb-post-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.fb-stats-left {
    display: flex;
    align-items: center;
    gap: 5px;
}
.fb-stats-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fb-divider {
    height: 1px;
    background-color: var(--glass-border);
    margin: 0 15px;
}
.fb-post-actions {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
}
.fb-action-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.fb-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}
.fb-action-btn.liked {
    color: var(--glow-primary);
}
.fb-comment-input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
}
.fb-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}
.fb-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 5px 15px;
}
.fb-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 0.95rem;
    padding: 8px 0;
    outline: none;
}
.fb-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.fb-input-wrapper i {
    color: var(--glow-primary);
    cursor: pointer;
    padding: 5px;
    transition: 0.3s;
}
.fb-input-wrapper i:hover {
    transform: scale(1.1);
}
.comment-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 15px;
    border-radius: 15px;
    margin: 5px 15px 10px 15px;
    display: inline-block;
    max-width: 85%;
}
.comment-item .comment-user {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
    display: block;
    margin-bottom: 3px;
}
.comment-item span {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

/* -------------------------------------
   Reactions Popover
   ------------------------------------- */
.reaction-wrapper {
    position: relative;
    flex: 1;
    display: flex;
}
.reactions-popover {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: var(--bg-app);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 5px 10px;
    display: flex;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 100;
}
.reaction-wrapper:hover .reactions-popover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}
.reaction-icon {
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
    position: relative;
}
.reaction-icon:hover {
    transform: scale(1.4) translateY(-5px);
}
.reaction-icon::after {
    content: attr(data-name);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: 0.2s;
}
.reaction-icon:hover::after {
    opacity: 1;
}

/* Colors for active reactions */
.fb-action-btn.reacted-like { color: #2d88ff; }
.fb-action-btn.reacted-love { color: #f33e58; }
.fb-action-btn.reacted-haha { color: #f7b125; }
.fb-action-btn.reacted-angry { color: #e9710f; }

/* Upload Page Modern Styling */
.radio-btn-modern input:checked + .radio-card {
    background: var(--glow-primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(100, 204, 197, 0.3);
}

.radio-card {
    padding: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    background: var(--bg-app);
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    background: rgba(0, 0, 0, 0.02);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}
.upload-area:hover {
    border-color: var(--primary);
    background: rgba(100, 204, 197, 0.05);
}

/* إخفاء أقسام لوحة التحكم غير النشطة */
.admin-form-section {
    display: none;
    animation: fadeUpIn 0.4s ease forwards;
}
.admin-form-section.active {
    display: block;
}

/* تنسيقات عناصر لوحة التحكم */
.admin-item-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    gap: 10px;
}
.admin-item-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}
.admin-item-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.admin-item-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}
.admin-item-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.admin-actions {
    display: flex;
    gap: 8px;
}
.action-btn {
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    color: white;
}
.action-btn.edit {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.4);
}
.action-btn.edit:hover {
    background: #3b82f6;
    color: white;
}
.action-btn.delete {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}
.action-btn.delete:hover {
    background: #ef4444;
    color: white;
}

/* Facebook style create post trigger */
.create-post-trigger {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.create-post-trigger:active {
    transform: scale(0.98);
}
.cpt-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.cpt-input-fake {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 10px 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cpt-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(100, 204, 197, 0.1);
    flex-shrink: 0;
}

/* ── Contact Page Styles ── */
.contact-service-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}
.contact-service-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
}
.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}
.service-details h3 {
    margin: 0 0 5px 0;
    font-size: 1.15rem;
    color: var(--text-light);
    font-weight: 800;
}
.service-details p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}



/* =========================================================================
   MATERIAL DESIGN 3 OVERRIDES
   ========================================================================= */

/* 1. M3 Color Tokens (Light & Dark Mode) */
:root {
  color-scheme: light dark;
  
  /* Baseline Light Mode */
  --md-sys-color-primary: #006493;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #cae6ff;
  --md-sys-color-on-primary-container: #001e30;
  
  --md-sys-color-secondary: #50606f;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #d3e5f6;
  --md-sys-color-on-secondary-container: #0c1d29;
  
  --md-sys-color-tertiary: #65587b;
  --md-sys-color-on-tertiary: #ffffff;
  --md-sys-color-tertiary-container: #ebddff;
  --md-sys-color-on-tertiary-container: #201634;
  
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-on-error: #ffffff;
  --md-sys-color-error-container: #ffdad6;
  --md-sys-color-on-error-container: #410002;
  
  --md-sys-color-background: #fdfcff;
  --md-sys-color-on-background: #1a1c1e;
  
  --md-sys-color-surface: #fdfcff;
  --md-sys-color-on-surface: #1a1c1e;
  --md-sys-color-surface-variant: #dfe2e7;
  --md-sys-color-on-surface-variant: #43474b;
  
  --md-sys-color-outline: #73777b;
  --md-sys-color-outline-variant: #c3c6cf;
  
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-low: #f7f6f9;
  --md-sys-color-surface-container: #f1f0f4;
  --md-sys-color-surface-container-high: #ebeaee;
  --md-sys-color-surface-container-highest: #e6e4e8;

  /* Remap old variables to M3 */
  --bg-dark: var(--md-sys-color-surface);
  --glow-primary: var(--md-sys-color-primary);
  --glow-secondary: var(--md-sys-color-secondary);
  --accent: var(--md-sys-color-tertiary);
  --glass-bg: var(--md-sys-color-surface-container);
  --glass-border: var(--md-sys-color-outline-variant);
  --glass-highlight: transparent;
  --text-main: var(--md-sys-color-on-surface);
  --text-muted: var(--md-sys-color-on-surface-variant);
  --danger: var(--md-sys-color-error);
  --success: #146c2e;

  /* M3 Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --md-sys-color-primary: #8dcdff;
    --md-sys-color-on-primary: #00344f;
    --md-sys-color-primary-container: #004b70;
    --md-sys-color-on-primary-container: #cae6ff;
    
    --md-sys-color-secondary: #b7c9d9;
    --md-sys-color-on-secondary: #22323f;
    --md-sys-color-secondary-container: #394956;
    --md-sys-color-on-secondary-container: #d3e5f6;
    
    --md-sys-color-tertiary: #d0c1e8;
    --md-sys-color-on-tertiary: #362b4b;
    --md-sys-color-tertiary-container: #4d4162;
    --md-sys-color-on-tertiary-container: #ebddff;
    
    --md-sys-color-error: #ffb4ab;
    --md-sys-color-on-error: #690005;
    --md-sys-color-error-container: #93000a;
    --md-sys-color-on-error-container: #ffdad6;
    
    --md-sys-color-background: #1a1c1e;
    --md-sys-color-on-background: #e3e2e6;
    
    --md-sys-color-surface: #1a1c1e;
    --md-sys-color-on-surface: #e3e2e6;
    --md-sys-color-surface-variant: #43474b;
    --md-sys-color-on-surface-variant: #c3c6cf;
    
    --md-sys-color-outline: #8d9195;
    --md-sys-color-outline-variant: #43474b;
    
    --md-sys-color-surface-container-lowest: #0f1113;
    --md-sys-color-surface-container-low: #1a1c1e;
    --md-sys-color-surface-container: #1e2022;
    --md-sys-color-surface-container-high: #282a2d;
    --md-sys-color-surface-container-highest: #333538;
    
    --success: #6add85;
  }
}

/* 2. Global Resets & Typography */
body {
    background: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    animation: none; /* Remove gradient animation */
}
body::before, body::after { display: none; /* Remove neon blobs */ }

.phone-wrapper {
    background: var(--md-sys-color-background);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

/* 3. Header & App Bars */
header {
    background: var(--md-sys-color-surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05); /* M3 Surface Elevation 2 */
}
.logo-section h1 {
    background: none;
    color: var(--md-sys-color-on-surface);
    -webkit-text-fill-color: var(--md-sys-color-on-surface);
}

/* 4. Material Symbols Adjustments */
.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}
.nav-item.active .material-symbols-rounded {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* 5. Buttons (M3 Filled & Text) */
.submit-btn {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    border-radius: var(--radius-full);
}
.submit-btn::before { display: none; }
.submit-btn:hover {
    background: var(--md-sys-color-primary);
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    transform: none;
    opacity: 0.9;
}
.submit-btn:active {
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* 6. Forms & Inputs (M3 Outlined) */
.form-input, .form-select, .form-textarea, .search-input {
    background: transparent;
    border: 1px solid var(--md-sys-color-outline);
    color: var(--md-sys-color-on-surface);
    border-radius: 4px; /* M3 standard for text fields */
    box-shadow: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus, .search-input:focus {
    border: 2px solid var(--md-sys-color-primary);
    padding: 15px 19px; /* adjust padding for 2px border */
    background: transparent;
    box-shadow: none;
    transform: none;
}

/* 7. Cards (Elevated & Surface) */
.contractor-card, .profile-card, .review-form-card, .glass-card, .admin-card, .modal-content {
    background: var(--md-sys-color-surface-container);
    border: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: var(--radius-md);
}
.contractor-card::before, .profile-card::before, .review-form-card::before { display: none; }
.contractor-card:hover, .glass-card:hover {
    background: var(--md-sys-color-surface-container-high);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: none;
    border-color: transparent;
}

.category-tag {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    border: none;
}
.rating-badge {
    background: var(--md-sys-color-tertiary-container);
    color: var(--md-sys-color-on-tertiary-container);
    border: none;
    box-shadow: none;
}

/* 8. Bottom Navigation (M3) */
.bottom-nav {
    background: var(--md-sys-color-surface-container);
    border-top: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 12px 0 20px 0;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.05);
}
.nav-item {
    color: var(--md-sys-color-on-surface-variant);
}
.nav-icon {
    padding: 4px 16px;
    border-radius: 16px; /* Pill shape for active indicator */
    margin-bottom: 4px;
}
.nav-item.active {
    color: var(--md-sys-color-on-surface);
}
.nav-item.active .nav-icon {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    transform: none;
    text-shadow: none;
}

/* 9. Chips / Filter Tabs */
.filter-btn {
    background: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface-variant);
    border: 1px solid var(--md-sys-color-outline);
}
.filter-btn.active {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    border-color: transparent;
    box-shadow: none;
}

/* 10. Miscellaneous (FAB, Stories, Chat) */
.story-avatar-wrapper {
    background: var(--md-sys-color-outline-variant);
}
.story-avatar-wrapper.has-story::before {
    background: conic-gradient(from 0deg, var(--md-sys-color-primary), var(--md-sys-color-tertiary), var(--md-sys-color-primary));
}
.story-avatar {
    border-color: var(--md-sys-color-background);
}
#chat-page-header {
    background: var(--md-sys-color-surface);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
#chat-page-title, #chat-page-status {
    color: var(--md-sys-color-on-surface);
}

/* Update Modal close button */
.close-btn {
    background: transparent;
    color: var(--md-sys-color-on-surface);
}
.close-btn:hover {
    background: var(--md-sys-color-surface-variant);
    transform: none;
    color: var(--md-sys-color-on-surface-variant);
}

/* Star selection */
.star-select-container span.material-symbols-rounded {
    color: var(--md-sys-color-outline-variant);
}
.star-select-container span.active.material-symbols-rounded {
    color: var(--md-sys-color-tertiary);
    text-shadow: none;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Create Post fake input */
.cpt-input-fake {
    background: var(--md-sys-color-surface-container-high);
    border: 1px solid var(--md-sys-color-outline-variant);
    color: var(--md-sys-color-on-surface);
}
.cpt-input-fake:hover {
    background: var(--md-sys-color-surface-container-highest);
}

/* Adjust colors for custom icon wrappers */
.icon-wrapper {
    background: var(--md-sys-color-secondary-container) !important;
    color: var(--md-sys-color-on-secondary-container) !important;
}

/* =========================================================================
   UX Enhancements (Spacing, Nav, Hover, Typography)
   ========================================================================= */

/* Desktop Nav */
.desktop-nav {
    display: none; /* Mobile first */
    gap: 20px;
}
@media (min-width: 768px) {
    .desktop-nav { display: flex; align-items: center; }
}
.nav-link {
    background: none;
    border: none;
    color: var(--md-sys-color-on-surface);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}
.nav-link:hover {
    background: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-primary);
}

/* Typography & Helper Texts */
.text-muted {
    font-size: 0.95rem; /* Increased from 0.75 or 0.85 */
    color: var(--md-sys-color-on-surface-variant) !important;
}
p[style*="font-size: 0.75rem"] {
    font-size: 0.9rem !important;
}
p[style*="font-size: 0.85rem"] {
    font-size: 0.95rem !important;
}

/* Spacing and Breathing Room */
.app-page {
    padding-top: 20px;
    padding-bottom: 40px;
}
.stories-container {
    margin-bottom: 24px;
}
.create-post-trigger {
    margin: 0 20px 30px; /* Increased bottom margin */
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--md-sys-color-surface-container);
    border: 1px solid var(--md-sys-color-outline-variant);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.create-post-trigger:hover {
    background: var(--md-sys-color-surface-container-high);
}

/* Bottom Nav Hover Effects */
.nav-item {
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), color 0.2s;
}
.nav-item:hover {
    transform: translateY(-2px);
    color: var(--md-sys-color-primary);
}
.nav-item:hover .nav-icon {
    background: var(--md-sys-color-surface-variant);
}
.nav-item.active:hover .nav-icon {
    background: var(--md-sys-color-secondary-container);
}


/* =========================================================================
   Clean Material Design 3 Bottom Navigation
   ========================================================================= */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--md-sys-color-surface-container);
    padding: 12px 8px 16px 8px;
    border-top: 1px solid var(--md-sys-color-surface-variant);
    box-shadow: none;
    border-radius: 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--md-sys-color-on-surface-variant);
    cursor: pointer;
    min-width: 64px;
    transition: color 0.2s;
    padding: 0;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 32px;
    border-radius: 16px; /* Pill shape */
    transition: background-color 0.2s, color 0.2s;
    background: transparent;
    margin-bottom: 0;
}

.nav-item span:last-child {
    font-size: 0.75rem;
    font-weight: 500;
}

.nav-item:hover {
    color: var(--md-sys-color-on-surface);
}

.nav-item.active {
    color: var(--md-sys-color-on-surface);
}

.nav-item.active .nav-icon {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.nav-item.active span:last-child {
    font-weight: 700;
}

.nav-icon span.material-symbols-rounded {
    font-size: 24px;
    transition: all 0.2s;
}

.nav-item.active .nav-icon span.material-symbols-rounded {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* =========================================================================
   Golden Accent Overrides
   ========================================================================= */

:root {
    /* Light Mode Gold */
    --md-sys-color-secondary-container: #ffe066; /* Light Gold for active pill */
    --md-sys-color-on-secondary-container: #332b00; /* Dark contrast */
    --md-sys-color-primary: #d4af37; /* Classic Gold */
    --md-sys-color-on-primary: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark Mode Gold */
        --md-sys-color-secondary-container: #4d3e00; /* Dark Gold/Brown bg for active icon */
        --md-sys-color-on-secondary-container: #fce27b; /* Bright Gold icon */
        --md-sys-color-primary: #fce27b; /* Bright Gold */
        --md-sys-color-on-primary: #332b00;
    }
}

/* Specifically ensure the bottom nav uses the golden colors */
.nav-item.active .nav-icon {
    background-color: var(--md-sys-color-secondary-container) !important;
    color: var(--md-sys-color-on-secondary-container) !important;
}

.nav-item.active span:last-child {
    color: var(--md-sys-color-primary) !important;
}

/* =========================================================================
   TikTok-Inspired Crisp Aesthetics (Deep Black, High Contrast, Inter Font)
   ========================================================================= */

:root {
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

body, h1, h2, h3, h4, h5, p, button, input, textarea {
    font-family: var(--font-main);
}

/* Exclude material symbols from the global font override */
span:not(.material-symbols-rounded) {
    font-family: var(--font-main);
}

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded' !important;
}


@media (prefers-color-scheme: dark) {
    :root {
        /* Deep Black Backgrounds */
        --md-sys-color-background: #000000;
        --md-sys-color-surface: #000000;
        
        /* Very subtle grays for containers */
        --md-sys-color-surface-container-lowest: #000000;
        --md-sys-color-surface-container-low: #0a0a0a;
        --md-sys-color-surface-container: #121212;
        --md-sys-color-surface-container-high: #1c1c1e;
        --md-sys-color-surface-container-highest: #2c2c2e;
        
        /* Crisp White Text */
        --md-sys-color-on-background: #ffffff;
        --md-sys-color-on-surface: #ffffff;
        
        /* Crisp Muted Text (Like iOS/TikTok Gray) */
        --md-sys-color-on-surface-variant: #8a8a8e;
        
        /* Subtle Outlines */
        --md-sys-color-outline: #333333;
        --md-sys-color-outline-variant: #1a1a1a;
        
        /* High Contrast Primary (TikTok Vibrant Pink/Red or Crisp Gold/Cyan) 
           Let's use a very sharp primary white or vibrant accent for maximum modern feel */
        --md-sys-color-primary: #ffffff; 
        --md-sys-color-on-primary: #000000;
        
        /* Bottom nav active states */
        --md-sys-color-secondary-container: #ffffff;
        --md-sys-color-on-secondary-container: #000000;
    }
}

/* Specific UI Tweaks for TikTok Feel */
.bottom-nav {
    background: var(--md-sys-color-surface); /* Pure black */
    border-top: 1px solid var(--md-sys-color-outline-variant);
}

.nav-item.active .nav-icon {
    background: transparent !important;
    color: var(--md-sys-color-primary) !important;
}
.nav-item.active .nav-icon span.material-symbols-rounded {
    font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
    text-shadow: 0 0 10px rgba(255,255,255,0.3); /* Subtle glow */
}

.submit-btn {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    font-weight: 700;
    border-radius: 8px; /* Slightly sharper edges, like TikTok buttons */
}
.submit-btn:hover {
    opacity: 0.85;
}

/* Remove shadows for a flatter, cleaner look */
.contractor-card, .profile-card, .review-form-card, .glass-card, .admin-card, .create-post-trigger {
    box-shadow: none !important;
    border: 1px solid var(--md-sys-color-outline-variant);
    background: var(--md-sys-color-surface-container);
    border-radius: 8px;
}
