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

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* ============= NAVBAR ============= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #00c3ff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 195, 255, 0.2);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #00c3ff, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    background: #00c3ff;
    color: #000;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 20px;
    -webkit-text-fill-color: #000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Current Time */
.current-time {
    background: #1a1a1a;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #00c3ff;
    border: 1px solid #00c3ff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-time i {
    font-size: 0.9rem;
}

/* Last Update */
.last-update {
    background: #1a1a1a;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #00ff00;
    border: 1px solid #00ff00;
    display: flex;
    align-items: center;
    gap: 8px;
}

.last-update i {
    font-size: 0.9rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Profile */
#profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

#profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #00c3ff;
    transition: transform 0.3s;
    object-fit: cover;
}

#profile img:hover {
    transform: scale(1.1);
}

#profile span {
    font-weight: 500;
}

/* ============= LOGIN STYLES ============= */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #00c3ff;
    box-shadow: 0 0 30px rgba(0, 195, 255, 0.2);
    width: 100%;
    max-width: 420px;
    animation: fadeInUp 0.5s ease;
}

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

.login-icon {
    font-size: 4rem;
    color: #00c3ff;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(0, 195, 255, 0.5));
}

.login-card h2 {
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, #00c3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
    font-weight: bold;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #333;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px 12px 0 0;
    padding: 5px 5px 0 5px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    border-radius: 8px 8px 0 0;
}

.auth-tab:hover {
    color: #00c3ff;
    background: rgba(0, 195, 255, 0.1);
}

.auth-tab.active {
    color: #00c3ff;
    background: rgba(0, 195, 255, 0.15);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #00c3ff;
    box-shadow: 0 0 15px #00c3ff;
    border-radius: 3px 3px 0 0;
}

/* Auth Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 25px;
}

.auth-form .input-group {
    text-align: left;
}

.auth-form .input-group label {
    display: block;
    margin-bottom: 6px;
    color: #aaa;
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-form input {
    padding: 14px 16px;
    border: 2px solid #333;
    border-radius: 12px;
    background: #222;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
    width: 100%;
}

.auth-form input:focus {
    outline: none;
    border-color: #00c3ff;
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.3);
    background: #1a1a1a;
}

.auth-form input::placeholder {
    color: #666;
    font-style: italic;
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 1.2rem;
    transition: all 0.3s;
    z-index: 10;
}

.toggle-password:hover {
    color: #00c3ff;
    transform: translateY(-50%) scale(1.1);
}

/* Auth Buttons */
.auth-form button {
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(45deg, #00c3ff, #0099ff);
    color: #000;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 195, 255, 0.5);
    background: linear-gradient(45deg, #00d4ff, #00a3ff);
}

.auth-form button:active {
    transform: translateY(-1px);
}

.auth-form button i {
    font-size: 1.1rem;
}

/* Messages */
.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 5px;
    text-align: left;
    padding: 10px 12px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    border-left: 4px solid #ff6b6b;
    animation: shake 0.5s ease;
}

.success-message {
    color: #00ff9d;
    font-size: 0.9rem;
    margin-top: 5px;
    text-align: left;
    padding: 10px 12px;
    background: rgba(0, 255, 157, 0.1);
    border-radius: 8px;
    border-left: 4px solid #00ff9d;
    animation: fadeIn 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #888;
    margin: 20px 0;
    gap: 10px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #333;
}

.auth-divider span {
    padding: 0 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #666;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
}

.social-login a {
    flex: 1;
    text-decoration: none;
}

.social-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn.github {
    background: #24292e;
    color: #fff;
}

.social-btn.github:hover {
    background: #2f363d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(36, 41, 46, 0.5);
}

.social-btn.facebook {
    background: #1877f2;
    color: #fff;
}

.social-btn.facebook:hover {
    background: #2a82f3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.5);
}

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

/* ============= MAIN CONTENT STYLES ============= */

/* Stats Header */
.stats-header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 2rem;
    max-width: 900px;
    margin: 20px auto 0;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem 1rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #333;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: #00c3ff;
    box-shadow: 0 10px 20px rgba(0, 195, 255, 0.2);
}

.stat-item i {
    font-size: 2rem;
    color: #00c3ff;
    margin-bottom: 0.8rem;
}

.stat-item span {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}

.stat-item small {
    color: #888;
    font-size: 0.9rem;
    display: block;
    margin-top: 5px;
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 1.5rem 2rem;
    margin: 1rem 0;
}

.category-btn {
    background: #222;
    color: #fff;
    border: 2px solid #333;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.category-btn:hover {
    background: #333;
    border-color: #00c3ff;
    transform: translateY(-2px);
}

.category-btn.active {
    background: #00c3ff;
    color: #000;
    border-color: #00c3ff;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 195, 255, 0.4);
}

/* User Controls */
.user-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem 2rem;
    gap: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    margin: 0 2rem;
}

.buttons {
    display: flex;
    gap: 12px;
}

.btn-primary, .btn-secondary {
    padding: 10px 24px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-primary {
    background: #00c3ff;
    color: #000;
    border: 1px solid #00c3ff;
}

.btn-secondary {
    background: #222;
    color: #fff;
    border: 1px solid #444;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 195, 255, 0.4);
    background: #00d4ff;
}

.btn-secondary:hover {
    background: #333;
    transform: translateY(-2px);
    border-color: #00c3ff;
}

/* Search Box */
.searchBox {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

.searchBox input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    background: #222;
    color: #fff;
    border: 2px solid #333;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.searchBox input:focus {
    outline: none;
    border-color: #00c3ff;
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.3);
    background: #1a1a1a;
}

.searchBox input::placeholder {
    color: #666;
}

.btn-search {
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    background: #00c3ff;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-weight: 600;
    border: 1px solid #00c3ff;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 195, 255, 0.4);
    background: #00d4ff;
}

/* Account Info */
.account-info {
    padding: 2rem;
}

.card {
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid #00c3ff;
    box-shadow: 0 0 40px rgba(0, 195, 255, 0.15);
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #00c3ff;
    margin-bottom: 1.5rem;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(0, 195, 255, 0.3);
}

.card h3 {
    margin-bottom: 1rem;
    color: #00c3ff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.card p {
    color: #aaa;
    margin: 0.8rem 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.card p i {
    color: #00c3ff;
    width: 20px;
}

/* Section Title */
.section-title {
    padding: 1rem 2rem;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 1rem;
}

.section-title i {
    color: #00c3ff;
    filter: drop-shadow(0 0 10px rgba(0, 195, 255, 0.5));
}

.news-count {
    background: #00c3ff;
    color: #000;
    font-size: 1rem;
    padding: 5px 15px;
    border-radius: 30px;
    margin-left: 15px;
    font-weight: bold;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 2rem;
}

.newsCard {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    border: 1px solid #333;
    animation: fadeIn 0.6s;
    backdrop-filter: blur(5px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.newsCard:hover {
    transform: translateY(-10px);
    border-color: #00c3ff;
    box-shadow: 0 20px 30px rgba(0, 195, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid #00c3ff;
    transition: transform 0.4s;
}

.newsCard:hover .news-image {
    transform: scale(1.05);
}

.news-content {
    padding: 1.8rem;
}

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

.news-source {
    background: #00c3ff;
    color: #000;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-source i {
    font-size: 0.85rem;
}

.news-date {
    color: #888;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-description {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.news-category {
    background: #333;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ddd;
}

.news-link {
    color: #00c3ff;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    font-weight: 600;
}

.news-link:hover {
    gap: 12px;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 195, 255, 0.5);
}

/* No News Message */
.no-news {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid #333;
}

.no-news i {
    font-size: 4rem;
    color: #00c3ff;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-news p {
    color: #888;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
    backdrop-filter: blur(5px);
}

.loading-overlay.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid #333;
    border-top-color: #00c3ff;
    border-right-color: #00c3ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px rgba(0, 195, 255, 0.3);
}

.loading-overlay p {
    color: #00c3ff;
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0, 195, 255, 0.5);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 90px;
    right: 20px;
    background: #00c3ff;
    color: #000;
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5000;
    transform: translateX(450px);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(0, 195, 255, 0.4);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    font-size: 1.3rem;
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #00c3ff;
    border: none;
    color: #000;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    border: 2px solid #fff;
    box-shadow: 0 5px 20px rgba(0, 195, 255, 0.3);
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 195, 255, 0.5);
    background: #00d4ff;
}

/* ============= RESPONSIVE DESIGN ============= */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 1rem;
    }
    
    .nav-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .current-time, .last-update {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .user-controls {
        flex-direction: column;
        border-radius: 20px;
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .buttons {
        width: 100%;
        justify-content: center;
    }
    
    .searchBox {
        width: 100%;
        max-width: none;
    }
    
    .category-filter {
        padding: 1rem 0.5rem;
        gap: 8px;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 20px;
    }
    
    .stats-header {
        padding: 1rem;
        gap: 10px;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-item span {
        font-size: 1.5rem;
    }
    
    .section-title {
        padding: 1rem;
        font-size: 1.5rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .login-card h2 {
        font-size: 1.5rem;
    }
    
    .social-login {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .stats-header {
        grid-template-columns: 1fr;
    }
    
    .category-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .category-btn {
        justify-content: center;
    }
    
    .auth-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .auth-tab {
        border-radius: 8px;
    }
    
    .auth-tab.active::after {
        display: none;
    }
    
    .auth-tab.active {
        background: #00c3ff;
        color: #000;
    }
    
    .toast {
        left: 20px;
        right: 20px;
        width: auto;
        transform: translateY(-150px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Animations */
@keyframes glow {
    0% { box-shadow: 0 0 5px #00c3ff; }
    50% { box-shadow: 0 0 20px #00c3ff; }
    100% { box-shadow: 0 0 5px #00c3ff; }
}

.glow-effect {
    animation: glow 2s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #00c3ff;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00d4ff;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.hidden { display: none; }
.visible { display: block; }