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

:root {
    --bg-color: #0a0a1a;
    --text-color: #e8e8e8;
    --card-bg: rgba(20, 20, 40, 0.8);
    --card-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    --border-color: rgba(102, 126, 234, 0.3);
    --secondary-text: #a0a0b0;
    --header-bg: transparent;
    --btn-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --btn-hover: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    --search-bg: rgba(30, 30, 60, 0.9);
    --search-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    --footer-bg: linear-gradient(180deg, rgba(10, 10, 26, 0.98) 0%, rgba(5, 5, 15, 1) 100%);
    --footer-text: #e0e0e0;
    --footer-link: #8888aa;
    --back-to-top-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --modal-bg: rgba(20, 20, 40, 0.98);
    --modal-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-success: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-warning: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-danger: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    --glow-primary: 0 0 20px rgba(102, 126, 234, 0.5);
    --glow-secondary: 0 0 20px rgba(118, 75, 162, 0.5);
}

body.light-mode {
    --bg-color: #f5f7ff;
    --text-color: #2d3748;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
    --border-color: rgba(102, 126, 234, 0.2);
    --secondary-text: #64748b;
    --header-bg: transparent;
    --search-bg: rgba(255, 255, 255, 0.95);
    --search-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    --footer-bg: linear-gradient(180deg, rgba(245, 247, 255, 1) 0%, rgba(240, 242, 250, 1) 100%);
    --footer-text: #2d3748;
    --footer-link: #64748b;
    --modal-bg: rgba(255, 255, 255, 0.98);
    --modal-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.3s ease;
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--btn-bg);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--btn-hover);
}

.ai-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(79, 172, 254, 0.1) 0%, transparent 60%);
    z-index: -2;
    overflow: hidden;
}

body.light-mode .ai-background {
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(118, 75, 162, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(79, 172, 254, 0.05) 0%, transparent 60%);
}

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(102, 126, 234, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

body.light-mode .grid-background {
    background-image: 
        linear-gradient(rgba(102, 126, 234, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.05) 1px, transparent 1px);
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(102, 126, 234, 0.6);
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
    box-shadow: 0 0 4px rgba(102, 126, 234, 0.8);
}

.particle.primary {
    background: rgba(102, 126, 234, 0.8);
    box-shadow: 0 0 8px rgba(102, 126, 234, 1);
}

.particle.secondary {
    background: rgba(118, 75, 162, 0.8);
    box-shadow: 0 0 8px rgba(118, 75, 162, 1);
}

.particle.accent {
    background: rgba(255, 193, 7, 0.8);
    box-shadow: 0 0 8px rgba(255, 193, 7, 1);
}

.particle.success {
    background: rgba(76, 175, 80, 0.8);
    box-shadow: 0 0 8px rgba(76, 175, 80, 1);
}

.particle.warning {
    background: rgba(255, 152, 0, 0.8);
    box-shadow: 0 0 8px rgba(255, 152, 0, 1);
}

.particle.danger {
    background: rgba(244, 67, 54, 0.8);
    box-shadow: 0 0 8px rgba(244, 67, 54, 1);
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0;
    }
    50% {
        transform: translateY(-100px) translateX(50px);
        opacity: 1;
    }
}

.theme-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--btn-bg);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5), 0 0 30px rgba(102, 126, 234, 0.2);
}

header {
    background: var(--header-bg);
    color: var(--text-color);
    padding: 80px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header-content h1 {
    position: relative;
    z-index: 1;
    text-shadow: var(--glow-primary);
}

h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    position: relative;
}

h1 .ai-icon {
    display: inline-block;
    margin-right: 12px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.8));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 1));
        transform: scale(1.1);
    }
}

.header-subtitle {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.85;
    color: var(--secondary-text);
    letter-spacing: 1px;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 20px 40px;
}

body.dark-mode .header-stats {
    background: rgba(30, 30, 30, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-ticker {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-height: 50px;
}

body.dark-mode .news-ticker {
    background: rgba(30, 30, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.news-ticker-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    padding-right: 15px;
    border-right: 1px solid var(--border-color);
}

.news-ticker-content {
    flex: 1;
    overflow: hidden;
    margin: 0 15px;
    height: 28px;
    line-height: 28px;
    position: relative;
}

.news-ticker-track {
    position: absolute;
    width: 100%;
    white-space: nowrap;
    animation: ticker-vertical 15s linear infinite;
}

.news-ticker-track span, .news-ticker-track a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.3s;
}

.news-ticker-track a:hover {
    color: #667eea;
}

@keyframes ticker-vertical {
    0% { transform: translateY(0); opacity: 1; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-50%); opacity: 0; }
}

.news-ticker-more {
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    transition: color 0.3s;
}

.news-ticker-more:hover {
    color: #764ba2;
}

.header-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.header-nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 30px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav-link i {
    font-size: 16px;
    opacity: 0.8;
}

.header-nav-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    border-color: transparent;
}

.header-nav-link:hover i {
    opacity: 1;
}

.header-nav-link.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    border-color: transparent;
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    top: 60px;
    z-index: 2;
}

.search-wrapper {
    position: relative;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    padding: 2px;
}

.search-input {
    width: 100%;
    padding: 20px 140px 20px 24px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background: var(--search-bg);
    color: var(--text-color);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input::placeholder {
    color: var(--secondary-text);
}

.search-button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.search-button:hover {
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: -50px;
}

.categories-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.category-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover::after {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3), var(--glow-primary);
    border-color: rgba(102, 126, 234, 0.5);
}

.category-card:hover .category-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.category-card.active {
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .category-card {
    background: rgba(30, 30, 30, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.category-card.active::before {
    opacity: 1;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.category-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, .2, 1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.category-icon {
    font-size: 16px;
    flex-shrink: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-color);
    flex-grow: 1;
    margin: 0;
}

.category-description {
    display: block;
    font-size: 11px;
    color: var(--secondary-text);
    line-height: 1.4;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    word-wrap: break-word;
    white-space: normal;
}

.category-card:hover .category-description {
    opacity: 1;
    max-height: 120px;
}

.website-count {
    font-size: 12px;
    color: white;
    background: var(--gradient-primary);
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.websites-section {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    margin-bottom: 60px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.today-update-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    margin-bottom: 60px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.today-update-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-warning);
}

.websites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.websites-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.websites-title i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.websites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.website-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.website-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.website-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.6s ease;
}

.website-card:hover::before {
    opacity: 1;
}

.website-card:hover::after {
    left: 100%;
}

.website-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.25), var(--glow-primary);
    border-color: rgba(102, 126, 234, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

body.dark-mode .website-card {
    background: rgba(30, 30, 30, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.website-card:hover .website-name {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.website-card:hover .website-icon {
    transform: scale(1.1) rotate(5deg);
}

.website-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.website-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.update-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
    animation: pulse-badge 2s infinite;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 6px 16px rgba(255, 107, 107, 0.6); }
}

.website-description {
    font-size: 13px;
    color: var(--secondary-text);
    line-height: 1.7;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.website-speed {
    font-size: 12px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    height: 20px;
}

.website-speed .loading {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

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

.website-url {
    font-size: 12px;
    color: #667eea;
    text-decoration: none;
    word-break: break-all;
    margin-bottom: 12px;
    display: block;
}

body.light-mode .website-url {
    color: #667eea;
}

.website-url:hover {
    text-decoration: underline;
}

.website-url-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 1;
}

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

.website-url-btn:active {
    transform: translateY(0);
}

.apply-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    margin-bottom: 60px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.apply-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-success);
}

body.light-mode .apply-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.apply-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.apply-description {
    font-size: 15px;
    color: var(--secondary-text);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}

body.dark-mode .btn {
    background: rgba(30, 30, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-color);
}

.btn-primary {
    background: var(--btn-bg);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

body.light-mode .btn-secondary {
    background-color: #555;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

body.light-mode .btn-secondary:hover {
    background-color: #444;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

body.light-mode .btn-success {
    background-color: #1e7e34;
}

.btn-success:hover {
    background-color: #218838;
}

body.light-mode .btn-success:hover {
    background-color: #1c7430;
}

footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 40px;
    text-align: center;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.footer-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-description {
    font-size: 14px;
    color: var(--footer-link);
    margin-bottom: 30px;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--footer-link);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid transparent;
}

.footer-link:hover {
    color: var(--footer-text);
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.footer-bottom {
    font-size: 12px;
    color: var(--footer-link);
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: var(--modal-bg);
    margin: 5% auto;
    padding: 40px;
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    box-shadow: var(--modal-shadow);
    position: relative;
    animation: modalFadeIn 0.3s ease;
    border: 1px solid var(--border-color);
    z-index: 1001;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close {
    color: var(--secondary-text);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    z-index: 1002;
    position: relative;
}

.close:hover {
    color: var(--text-color);
}

.modal-body {
    color: var(--text-color);
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.modal-body strong {
    color: var(--text-color);
}

.modal-body a {
    color: #667eea;
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

.modal-footer {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.search-results {
    display: none;
    background: var(--card-bg);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    margin-bottom: 60px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-results.show {
    display: block;
}

.search-query {
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    color: var(--secondary-text);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--back-to-top-bg);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

.loader-overlay::before,
.loader-overlay::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.loader-overlay::before {
    background: #667eea;
    top: -100px;
    left: -100px;
}

.loader-overlay::after {
    background: #764ba2;
    bottom: -100px;
    right: -100px;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1.1); }
}

.loader-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particle-float 15s linear infinite;
}

.loader-particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 15s; }
.loader-particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 12s; }
.loader-particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 18s; }
.loader-particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 14s; }
.loader-particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 16s; }
.loader-particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 13s; }
.loader-particle:nth-child(7) { left: 70%; animation-delay: 2.5s; animation-duration: 17s; }
.loader-particle:nth-child(8) { left: 80%; animation-delay: 0.5s; animation-duration: 11s; }
.loader-particle:nth-child(9) { left: 90%; animation-delay: 4.5s; animation-duration: 19s; }

@keyframes particle-float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(80vh) scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-20vh) scale(0.5);
        opacity: 0;
    }
}

.loader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-ring {
    width: 80px;
    height: 80px;
    border: 4px solid transparent;
    border-top: 4px solid #667eea;
    border-right: 4px solid #764ba2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

.loader-ring::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 4px solid transparent;
    border-top: 4px solid #764ba2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite reverse;
}

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

.loader-text {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.loader-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loader-dots span {
    width: 10px;
    height: 10px;
    background: #667eea;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.loader-dots span:nth-child(1) { animation-delay: 0s; }
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.loading {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }
    
    .header-subtitle {
        font-size: 16px;
    }
    
    .header-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 22px;
    }
    
    .header-nav {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-nav-link {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .search-input {
        padding: 16px 120px 16px 20px;
        font-size: 14px;
    }
    
    .search-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .category-card {
        padding: 20px;
    }
    
    .category-icon-wrapper {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }
    
    .websites-grid {
        grid-template-columns: 1fr;
    }
    
    .websites-section {
        padding: 20px;
    }
    
    .apply-section {
        padding: 40px 20px;
    }
    
    .modal-content {
        padding: 24px;
        margin: 10% auto;
    }
    
    .theme-toggle {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
    }
}
