:root {
    --futuristic-blue: #0066ff;
    --futuristic-light-blue: #e6f0ff;
    --futuristic-gradient: linear-gradient(135deg, #0066ff 0%, #00ccff 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Tajawal', sans-serif;
}

.top-nav {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9;
}

.header {
    background: #ffffff !important;
    padding: 20px 0;
}

.navbar-main {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
}

.navbar-main .nav-link {
    font-weight: 600;
    color: #475569 !important;
    transition: all 0.3s ease;
}

.navbar-main .nav-link:hover {
    color: var(--futuristic-blue) !important;
}

.get-paid .nav-link {
    background: var(--futuristic-gradient);
    color: #fff !important;
    border-radius: 50px;
    padding: 8px 20px !important;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

/* Hero Section */
.hero-modern {
    padding: 100px 0;
    background: radial-gradient(circle at top right, #e6f0ff 0%, #ffffff 50%);
    position: relative;
    overflow: hidden;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(0, 102, 255, 0.05);
    border-radius: 50%;
    filter: blur(80px);
}

.hero-modern h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--futuristic-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.hero-modern p {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 30px;
}

/* Cards */
.card-modern {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin-bottom: 30px;
}

.card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.1);
}

.card-modern img {
    border-bottom: 1px solid #f1f5f9;
}

.card-modern .card-body {
    padding: 25px;
}

.btn-modern {
    background: var(--futuristic-gradient);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.2);
}

.btn-modern:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
    color: #fff;
}

/* Profile Page */
.profile-header {
    background: var(--futuristic-gradient);
    padding: 80px 0;
    color: #fff;
    border-radius: 0 0 50px 50px;
    margin-bottom: -50px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: var(--card-shadow);
    background: #fff;
    object-fit: cover;
}

.profile-info {
    margin-top: 20px;
}

.profile-card {
    background: #fff;
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    margin-top: -50px;
    z-index: 10;
    position: relative;
}

.footer {
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9;
    color: #64748b !important;
}

.footer a {
    color: #64748b !important;
}

.footer a:hover {
    color: var(--futuristic-blue) !important;
}

/* Blocks and Grid Items */
.block-header {
    border-bottom: 2px solid var(--futuristic-light-blue);
    margin-bottom: 30px;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.block-title span {
    background: var(--futuristic-gradient);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
}

.grid-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
    background: #fff;
}

.grid-item-img {
    position: relative;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.grid-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 102, 255, 0.9), transparent);
    color: #fff;
}

.grid-item-title a {
    color: #fff !important;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

.block-item-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.grid-item-meta {
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-modern h1, .hero-modern p, .hero-modern .btn {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-modern p { animation-delay: 0.2s; }
.hero-modern .btn { animation-delay: 0.4s; }

/* How it Works Steps */
.step-card {
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--futuristic-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--futuristic-light-blue);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Terms Modern View */
.terms-modern-view {
    max-width: 900px;
    margin: 0 auto;
}

.terms-header h1 {
    color: var(--futuristic-blue);
    margin-bottom: 20px;
}

.terms-section h3 {
    border-right: 5px solid var(--futuristic-blue);
    padding-right: 15px;
    display: flex;
    align-items: center;
}

[dir="ltr"] .terms-section h3 {
    border-right: none;
    border-left: 5px solid var(--futuristic-blue);
    padding-left: 15px;
}

.terms-section .card {
    border-radius: 20px;
    line-height: 1.8;
    color: #444;
}

.border-left-primary {
    border-left: 4px solid var(--futuristic-blue) !important;
}

[dir="rtl"] .border-left-primary {
    border-left: none !important;
    border-right: 4px solid var(--futuristic-blue) !important;
}
