* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #141414;
    --text-color: #ffffff;
    --text-secondary: #b3b3b3;
    --hover-color: #ffffff20;
    --card-bg: #2f2f2f;
    --gradient-dark: linear-gradient(180deg, transparent 0%, rgba(20, 20, 20, 0.8) 50%, #141414 100%);
}


body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    /* منع تحديد النص والنسخ */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    transition: background 0.3s ease;
}

.header.scrolled {
    background: rgba(20, 20, 20, 0.98);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4%;
    max-width: 1920px;
    margin: 0 auto;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo h1 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: 1px;
}

/* New brand layout */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-logo {
    height: 36px;
    width: auto;
    display: block;
}
.site-name {
    color: var(--text-color);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: .5px;
}

/* New branding styles */
.site-logo { height: 36px; width: auto; display: block; }
.site-name { color: var(--primary-color); font-size: 1.6rem; font-weight: 900; letter-spacing: 1px; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0 2rem;
    align-items: center;
    flex: 1;
}

.nav-search {
    margin-right: auto;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-input {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    width: 280px;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    order: 2;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.8);
    width: 320px;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: color 0.3s ease;
    order: 1;
}

.search-input:focus ~ .search-icon,
.nav-search:has(.search-input:focus) .search-icon {
    color: var(--primary-color);
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 400px;
    max-height: 500px;
    overflow-y: auto;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.search-results-list {
    padding: 0.5rem;
}

.search-result-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-result-img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.search-result-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.search-no-results {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

/* Notifications Icon */
.notification-icon {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.notification-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-color);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary-color);
    color: var(--text-color);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Notifications Dropdown */
.notifications-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 380px;
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notifications-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

.mark-read {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: opacity 0.3s ease;
}

.mark-read:hover {
    opacity: 0.8;
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notifications-list::-webkit-scrollbar {
    width: 6px;
}

.notifications-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.notifications-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.3s ease;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notification-item.unread {
    background: rgba(229, 9, 20, 0.05);
}

.notification-icon-wrapper {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notification-icon-wrapper.new {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.notification-icon-wrapper.update {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

.notification-icon-wrapper.info {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.notification-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.notification-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.dropdown-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.view-all-notifications {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.view-all-notifications:hover {
    opacity: 0.8;
}

/* User Profile */
.user-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.user-profile:hover .user-avatar {
    transform: scale(1.05);
}

.dropdown-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.user-profile:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 320px;
    max-height: 600px;
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    overflow-x: hidden;
}
/* Hide scrollbar but keep scrollable */
.profile-dropdown { 
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none; /* Firefox */
}

.profile-dropdown::-webkit-scrollbar { display: none; }

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.profile-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.profile-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding: 1.2rem 1rem;
    background: rgba(0, 0, 0, 0.3);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.dropdown-menu {
    padding: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-right: 2rem;
}

.dropdown-item svg {
    width: 22px;
    height: 22px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.dropdown-item:hover svg {
    color: var(--text-color);
}

.dropdown-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

.dropdown-item.logout {
    color: var(--primary-color);
}

.dropdown-item.logout svg {
    color: var(--primary-color);
}

.dropdown-item.logout:hover {
    background: rgba(229, 9, 20, 0.1);
}

.badge-count {
    margin-right: auto;
    background: var(--primary-color);
    color: var(--text-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

/* Hero Section */
.hero {
    position: relative;
    height: 40vw;
    min-height: 500px;
    max-height: 762px;
    display: flex;
    align-items: center;
    margin-top: 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 0 4%;
    margin-top: 100px;
}

.badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-color);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-color);
}

.btn-primary:hover {
    background: #ff5722;
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.meta-item {
    display: flex;
    align-items: center;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--secondary-color), transparent);
    pointer-events: none;
}

/* New hero background elements */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 65% 40%, rgba(255,255,255,0.08) 0%, transparent 40%), linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.65));
    pointer-events: none;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: contrast(1.05) saturate(1.1);
}

@media (min-width: 1400px) {
    .hero-image { filter: contrast(1.08) saturate(1.15); }
}

/* Optional subtle dynamic sharpen on high dpi */
@supports(backdrop-filter: blur(10px)) {
    .hero-image { filter: contrast(1.05) saturate(1.12) brightness(0.95); }
}

/* Content Sections */
.hero + .content-section {
    margin-top: 2rem;
}

.content-section {
    padding: 2rem 4%;
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.see-all {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.see-all:hover {
    color: var(--text-color);
}

/* Carousel */
.carousel {
    position: relative;
    padding: 0 3rem;
}

.carousel-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Card Styles */
.card {
    position: relative;
    min-width: 280px;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    z-index: 5;
}

.card:hover img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;

    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 30%, transparent 100%);
    padding: 2rem 1rem 1rem;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.card:hover .card-overlay {
    transform: translateY(-20px);
}

.card-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-info .rating {
    color: #ffd700;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.card-info .chapters {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.card-play {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.card:hover .card-play {
    opacity: 1;
}

.card-play:hover {
    transform: scale(1.1);
    background: #f40612;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 3rem 4% 1rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 2rem;
}

.footer-section h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h5 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--text-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    padding: 0 3rem;
}

.category-btn {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.2) 0%, rgba(20, 20, 20, 0.8) 100%);
    border: 2px solid rgba(229, 9, 20, 0.3);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.category-btn:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.4) 0%, rgba(20, 20, 20, 0.9) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.3);
}

.category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.category-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.category-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar {
        flex-wrap: wrap;
    }

    .nav-menu {
        gap: 1rem;
        margin: 0.5rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .card {
        min-width: 220px;
        height: 320px;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .search-input {
        width: 220px;
    }
    
    .search-input:focus {
        width: 260px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-actions {
        gap: 0.5rem;
        flex: 1;
        justify-content: flex-end;
    }
    
    .notification-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .notifications-dropdown {
        left: 0;
        right: auto;
        width: 320px;
        max-width: 90vw;
    }
    
    .profile-dropdown {
        left: 0;
        right: auto;
        width: 280px;
        max-width: 90vw;
        max-height: 500px;
    }

    .hero {
        height: 90vh;
    }

    .hero + .content-section {
        margin-top: 6rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .card {
        min-width: 180px;
        height: 260px;
    }

    .carousel {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem 2%;
    }

    .logo h1 {
        font-size: 1.5rem;
    }
    
    .notification-icon {
        padding: 0.3rem;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
    }
    
    .dropdown-arrow {
        display: none;
    }
    
    .notifications-dropdown {
        left: 0;
        right: auto;
        width: 280px;
    }
    
    .dropdown-header {
        padding: 1rem;
    }
    
    .notification-item {
        padding: 0.8rem 1rem;
    }
    
    .profile-dropdown {
        left: 0;
        right: auto;
        width: 260px;
        max-height: 400px;
    }
    
    .profile-header {
        padding: 1rem;
    }
    
    .profile-avatar {
        width: 50px;
        height: 50px;
    }
    
    .profile-stats {
        padding: 1rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .dropdown-item {
        padding: 0.7rem 1rem;
        gap: 0.8rem;
    }
    
    .dropdown-item svg {
        width: 20px;
        height: 20px;
    }

    .search-box:hover .search-input,
    .search-input:focus {
        width: 150px;
    }

    .hero-content {
        padding: 0 2%;
    }

    .content-section {
        padding: 1rem 2%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: var(--text-color);
}

/* Toast & Modal System */
.toast-root {position:fixed;bottom:20px;right:20px;display:flex;flex-direction:column;gap:10px;z-index:2000;max-width:320px;font-family:'Cairo',sans-serif;}
.toast {background:#1f1f1f;border:1px solid rgba(255,255,255,0.15);color:#fff;padding:0.8rem 1rem;border-radius:10px;display:flex;gap:0.7rem;align-items:flex-start;box-shadow:0 6px 18px #0006;animation:toastIn .35s ease;position:relative;overflow:hidden;}
.toast.success {border-color:#2ecc71;}
.toast.error {border-color:#e74c3c;}
.toast.info {border-color:#3498db;}
.toast .toast-title {font-weight:700;font-size:0.9rem;margin-bottom:2px;}
.toast .toast-message {font-size:0.8rem;line-height:1.4;color:#ddd;}
.toast .toast-close {background:none;border:none;color:#aaa;cursor:pointer;font-size:1rem;position:absolute;top:6px;left:8px;transition:.2s;}
.toast .toast-close:hover {color:#fff;}
@keyframes toastIn {from {transform:translateY(20px);opacity:0;} to {transform:translateY(0);opacity:1;}}

.modal-root {position:fixed;inset:0;z-index:3000;display:none;align-items:center;justify-content:center;font-family:'Cairo',sans-serif;}
.modal-root.active {display:flex;}
.modal-overlay {position:absolute;inset:0;background:rgba(0,0,0,0.65);backdrop-filter:blur(4px);}
.modal {position:relative;background:#181818;border:1px solid rgba(255,255,255,0.15);border-radius:16px;max-width:420px;width:92vw;padding:1.8rem 1.5rem 1.4rem;box-shadow:0 12px 32px #0008;animation:modalIn .35s ease;}
.modal h3 {margin:0 0 1rem;font-size:1.25rem;font-weight:800;}
.modal form {display:flex;flex-direction:column;gap:0.75rem;}
.modal label {display:flex;flex-direction:column;font-size:0.75rem;font-weight:600;letter-spacing:.5px;color:#bbb;gap:4px;}
.modal input {background:#101010;border:1px solid rgba(255,255,255,0.2);color:#fff;padding:0.7rem .9rem;border-radius:8px;font-family:'Cairo',sans-serif;font-size:0.85rem;}
.modal input:focus {outline:none;border-color:var(--primary-color);} 
.modal .actions {display:flex;gap:0.6rem;margin-top:0.4rem;}
.modal button {flex:1;background:#262626;border:1px solid rgba(255,255,255,0.15);color:#fff;padding:0.65rem .9rem;border-radius:8px;font-weight:700;font-size:0.85rem;cursor:pointer;transition:.25s;font-family:'Cairo',sans-serif;}
.modal button.primary {background:var(--primary-color);border-color:var(--primary-color);} .modal button.primary:hover {background:#f40612;}
.modal button.secondary:hover {background:#303030;}
.modal .close-x {position:absolute;top:10px;left:12px;background:none;border:none;color:#aaa;font-size:1.2rem;font-weight:700;cursor:pointer;}
.modal .close-x:hover {color:#fff;}
@keyframes modalIn {from {transform:translateY(40px);opacity:0;} to {transform:translateY(0);opacity:1;}}

/* Hide scrollbars globally */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}
*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Content Protection: Prevent image dragging */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: auto;
}