.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 16px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 18px;
    height: 18px;
    color: white;
}

.logo span {
    color: var(--accent);
}

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

.nav > a {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav > a:hover {
    color: var(--text);
    background: var(--bg-secondary);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.nav-dropdown-toggle:hover {
    color: var(--text);
    background: var(--bg-secondary);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px;
    min-width: 180px;
    z-index: 200;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-radius: 6px;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: var(--accent);
    color: white;
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 99;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-size: 1rem;
    color: var(--text-muted);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: var(--text);
}

.mobile-menu .btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.header-btn:hover {
    color: var(--text);
    border-color: var(--accent);
}

.header-btn svg {
    width: 18px;
    height: 18px;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo {
    display: inline-flex;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.2s;
}

.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--card-hover);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    z-index: 1000;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.cookie-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.chat-toggle {
    width: 56px;
    height: 56px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    transition: transform 0.2s;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-toggle svg {
    width: 24px;
    height: 24px;
}

.chat-box {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: none;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.chat-box.active {
    display: block;
}

.chat-header {
    padding: 16px;
    background: var(--accent);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chat-header button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.chat-messages {
    height: 200px;
    overflow-y: auto;
    padding: 16px;
}

.chat-message {
    margin-bottom: 12px;
}

.chat-message.bot p {
    background: var(--bg);
    padding: 10px 14px;
    border-radius: 12px 12px 12px 0;
    font-size: 0.875rem;
    display: inline-block;
}

.chat-message.user {
    text-align: right;
}

.chat-message.user p {
    background: var(--accent);
    color: white;
    padding: 10px 14px;
    border-radius: 12px 12px 0 12px;
    font-size: 0.875rem;
    display: inline-block;
}

.chat-input {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
}

.chat-input input {
    flex: 1;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.875rem;
}

.chat-input button {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input button svg {
    width: 16px;
    height: 16px;
}

.chat-quick {
    display: flex;
    gap: 8px;
    padding: 0 12px 12px;
}

.chat-quick button {
    flex: 1;
    padding: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
}

.chat-quick button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 16px;
    backdrop-filter: blur(4px);
}

.search-modal.active {
    display: flex;
}

.search-container {
    width: 100%;
    max-width: 640px;
}

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

.search-title {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.search-shortcut {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.search-input-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 18px 50px 18px 50px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent);
    border-radius: 14px;
    color: var(--text);
    font-size: 1.125rem;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

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

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

.search-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

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

.search-results {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-top: 12px;
    max-height: 450px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.search-section-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 12px 16px 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
}

.search-result:last-child {
    border-bottom: none;
}

.search-result:hover, .search-result.selected {
    background: var(--accent);
    color: white;
}

.search-result-icon {
    width: 36px;
    height: 36px;
    background: var(--bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-result:hover .search-result-icon, .search-result.selected .search-result-icon {
    background: rgba(255, 255, 255, 0.2);
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 500;
    margin-bottom: 2px;
}

.search-result-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result:hover .search-result-desc, .search-result.selected .search-result-desc {
    color: rgba(255, 255, 255, 0.8);
}

.search-result-arrow {
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.15s;
}

.search-result:hover .search-result-arrow, .search-result.selected .search-result-arrow {
    opacity: 1;
    color: white;
}

.search-no-results {
    padding: 32px;
    text-align: center;
    color: var(--text-muted);
}

.search-no-results svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-inner {
        padding: 0 16px;
    }
    .nav > a, .nav-dropdown-toggle {
        font-size: 0.75rem;
        padding: 6px 8px;
    }
    .header-actions { gap: 4px; }
    .header-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .header-actions { display: flex; gap: 8px; }
    .mobile-toggle { display: flex; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .search-modal { padding: 20px 12px; }
    .search-results { max-height: 350px; }
    .search-shortcut { display: none; }
}

/* Utilities */
.spin {
    animation: spin 1s linear infinite;
}

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

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