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

:root {
    /* Modern Gradient Theme - Blue/Purple */
    --primary-color: #6366f1;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    
    /* Background Colors */
    --dark-bg: #0f172a;
    --dark-nav: #1e293b;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    
    /* Text Colors */
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #94a3b8;
    
    /* Border & Shadow */
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --glow-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Navigation */
.navbar {
    background: var(--dark-nav);
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.nav-brand:hover {
    opacity: 0.9;
}

.nav-brand i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: white;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    opacity: 0.8;
}

.mobile-menu-toggle i {
    display: block;
}

.nav-link {
    color: #bbb;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.admin-email {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* User Nav Display */
.user-nav-display {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.user-nav-display:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.user-nav-display i {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.user-nav-display span {
    text-transform: capitalize;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(102, 126, 234, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: white;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(71, 85, 105, 0.3);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-google {
    background: #4285f4;
    color: white;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.btn-google:hover {
    background: #357ae8;
}

.btn-google i {
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

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

/* User Welcome Banner */
.user-welcome-banner {
    display: none;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    animation: slideDown 0.5s ease-out;
}

.user-welcome-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.user-welcome-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.user-greeting {
    font-size: 0.85rem;
    color: var(--text-medium);
    font-weight: 500;
}

.user-name {
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: capitalize;
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.title-line {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
}

.title-highlight {
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    background: linear-gradient(45deg, #fff 0%, #e0e7ff 50%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.stat-item i {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.2rem;
}

/* Advertisement Banner */
.advertisement-banner {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    padding: 1.5rem 0;
    margin: 0;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ad-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0088cc 0%, #005f8f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 136, 204, 0.6);
    }
}

.ad-icon i {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.ad-text {
    flex: 1;
    color: white;
}

.ad-text {
    flex: 1;
    min-width: 0;
}

.ad-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    color: white;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #0088cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.ad-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.email-display {
    margin-top: 0.5rem !important;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    border-left: 2px solid #0088cc;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.email-display i {
    color: #0088cc;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.email-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    word-break: break-all;
    font-size: 0.9rem;
}

.email-link:hover {
    color: #00e6ff;
    text-decoration: underline;
}

.ad-action {
    flex-shrink: 0;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #005f8f 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
    transition: all 0.3s;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.6);
    background: linear-gradient(135deg, #0099dd 0%, #0070aa 100%);
}

.btn-telegram i {
    font-size: 1rem;
}

.btn-email {
    background: linear-gradient(135deg, #ea4335 0%, #c5221f 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(234, 67, 53, 0.4);
    transition: all 0.3s;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 67, 53, 0.6);
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.btn-email i {
    font-size: 1rem;
}

/* Features Section */
.features-section {
    padding: 2.5rem 0;
    background: white;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    margin: 1rem auto;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.2s;
    border: 2px solid transparent;
    text-align: center;
}


.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s;
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.3);
}

.feature-card:hover .feature-icon {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.feature-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.feature-link:hover {
    gap: 1rem;
    color: #764ba2;
}

.feature-link i {
    transition: transform 0.3s;
}

.feature-link:hover i {
    transform: translateX(5px);
}

/* Jobs & News Section */
.jobs-news-section {
    margin: 2rem 0;
    padding: 2.5rem 0;
    background: white;
}

.jobs-news-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.jobs-news-tabs .tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jobs-news-tabs .tab-btn:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.jobs-news-tabs .tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.jobs-news-content {
    display: none;
}

.jobs-news-content.active {
    display: block;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.link-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.2s;
    border: 2px solid var(--border-color);
    text-align: center;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.link-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.3);
}

.link-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.link-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(102, 126, 234, 0.4);
}

.link-btn i {
    font-size: 0.85rem;
}

/* Articles Section */
.articles-section {
    margin: 2rem 0;
    padding: 2rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    position: relative;
}

.articles-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px 24px 0 0;
}

.section-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.section-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.section-header i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.5rem;
}

.section-header p {
    color: var(--text-light);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.article-card {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.article-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.article-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-badge.public {
    background: #3498db;
    color: white;
}

.article-badge.private {
    background: #e74c3c;
    color: white;
}

.article-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.article-card p {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #ecf0f1;
    color: var(--text-dark);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Auth Divider */
.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-label:hover {
    border-color: var(--primary-color);
    background: rgba(0, 166, 90, 0.05);
}

.radio-label input[type="radio"] {
    width: auto;
}

.radio-label i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Auth Required */
.auth-required {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.auth-required i {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.auth-required h2 {
    margin-bottom: 1rem;
}

.auth-required p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Admin Panel */
.admin-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h1 {
    color: var(--text-dark);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.stat-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-light);
}

.article-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.article-form h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* Articles Management */
#articlesManagement {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

#articlesManagement h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-select,
.search-input {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.search-input {
    flex: 1;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s;
}

.article-item:hover {
    border-color: var(--primary-color);
    background: rgba(0, 166, 90, 0.02);
}

.article-item-info {
    flex: 1;
}

.article-item-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.article-item-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-item-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: all 0.3s;
}

.icon-btn:hover {
    color: var(--primary-color);
}

.icon-btn.delete:hover {
    color: var(--danger-color);
}

/* Article View */
.article-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Scrollable tables on mobile */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0;
}

.table-wrapper table {
    min-width: 100%;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.article {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.article-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.article h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.article-summary {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.article-body {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.article-body h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.article-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.article-body p {
    margin-bottom: 1rem;
}

.article-body code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.article-body pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.article-footer {
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    color: var(--text-light);
}

/* Comments Section */
.comments-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.comments-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.comment-form {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.comment-form h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text-dark);
}

.comment-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.comment-text {
    color: var(--text-dark);
    line-height: 1.6;
}

.comment-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Improve scrolling on mobile */
body {
    -webkit-overflow-scrolling: touch;
}

.loading-spinner {
    margin-bottom: 1rem;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 2.5rem 0 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a:hover {
    color: #667eea;
    padding-left: 5px;
}

.footer-section ul li a::before {
    content: '→';
    opacity: 0;
    transition: all 0.3s;
}

.footer-section ul li a:hover::before {
    opacity: 1;
    margin-right: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--dark-nav);
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.5rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu .nav-link {
        padding: 1rem;
        border-radius: 4px;
        width: 100%;
        display: block;
        text-align: left;
    }

    .nav-menu .btn {
        width: 100%;
        margin: 0.25rem 0;
        text-align: center;
    }

    .navbar .container {
        position: relative;
    }

    .hero {
        padding: 2rem 0 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .title-line {
        font-size: 1rem;
    }

    .title-highlight {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-item {
        padding: 0.8rem 1.5rem;
    }

    .stat-item i {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 2rem;
    }

    .jobs-news-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .jobs-news-tabs .tab-btn {
        width: 100%;
        justify-content: center;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .filter-bar {
        flex-direction: column;
    }

    .article-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .article {
        padding: 1.5rem;
    }

    .article h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 12px;
    }

    .nav-brand h1 {
        font-size: 1.2rem;
    }

    .nav-brand i {
        font-size: 1.2rem;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-large {
        max-width: 95%;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    .article-item-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .comments-section {
        padding: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        width: 100%;
        max-width: 300px;
    }

    /* Advertisement Banner Mobile */
    .advertisement-banner {
        padding: 1.5rem 0;
    }

    .ad-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .ad-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .ad-text h3 {
        font-size: 1.25rem;
    }

    .ad-text p {
        font-size: 0.9rem;
    }

    .email-display {
        margin-top: 0.4rem !important;
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        justify-content: center;
        gap: 0.4rem;
    }

    .email-display i {
        font-size: 0.8rem;
    }

    .email-link {
        font-size: 0.8rem;
        word-break: break-all;
    }

    .ad-action {
        flex-direction: row;
        width: 100%;
        gap: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-telegram,
    .btn-email {
        flex: 1;
        min-width: 140px;
        justify-content: center;
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    /* Ensure tables are scrollable */
    .table-wrapper,
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Modal improvements */
    .modal {
        padding: 0.5rem;
    }

    .modal-content {
        max-height: calc(100vh - 1rem);
    }

    /* Prevent body scroll when modal is open on mobile */
    body.modal-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
    .advertisement-banner {
        padding: 0.75rem 0;
    }

    .ad-banner-content {
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .ad-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .ad-text h3 {
        font-size: 1rem;
        line-height: 1.2;
    }

    .ad-text p {
        font-size: 0.8rem;
    }

    .email-display {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
        gap: 0.4rem;
    }

    .email-display i {
        font-size: 0.8rem;
    }

    .email-link {
        font-size: 0.75rem;
    }

    .ad-action {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-telegram,
    .btn-email {
        width: 100%;
        min-width: auto;
        padding: 0.6rem 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .title-highlight {
        font-size: 1.5rem;
    }

    .title-line {
        font-size: 0.9rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .feature-card,
    .article-card,
    .query-card {
        padding: 1rem;
    }

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

    .calc-card {
        padding: 1rem;
    }

    .article {
        padding: 1rem;
    }

    .article h1 {
        font-size: 1.75rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .tab-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .icon-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem;
    }

    input,
    select,
    textarea,
    button {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
}

