:root {
    --bg-dark: #0b0f19;
    --bg-card: #161d2f;
    --accent: #38bdf8;
    --text-main: #fff;
    --text-muted: #94a3b8;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0b0f19;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}
.preloader-content {
    text-align: center;
}
.loader-circle {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(56, 189, 248, 0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}
.loader-text {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Notify */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: rgba(20, 20, 25, 0.8);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    border-left: 4px solid #6366f1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-size: 14px;
    min-width: 250px;
    animation: slideIn 0.3s ease-out forwards;
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.toast.error {
    border-left-color: #ef4444;
}
.toast.success {
    border-left-color: #10b981;
}



/* *** START HEADER *** */
.main-header {
    background: var(--bg-card);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 20px;
}
.content-wrapper {
    padding: 30px 0;
    min-height: 620px;
}

/* Logo */
.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.main-logo {
    width: auto;
    height: 35px;
}
.site-name {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Menu */
.header-nav {
    display: flex;
    gap: 25px;
    margin-left: 40px;
    margin-right: auto;
}
.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}
.nav-link:hover {
    color: var(--accent);
}

/* Search */
.header-search {
    flex-grow: 1;
    max-width: 600px;
    display: flex;
    background: #1e293b;
    border-radius: 8px;
    border: 1px solid #334155;
    overflow: hidden;
}
.header-search-grid {
    display: none;
}
.header-search input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: #fff;
    outline: none;
}
.header-search button {
    background: transparent;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    font-size: 16px;
}

/* Auth button */
.btn-login {
    background: var(--accent);
    color: #0b0f19;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

/* Tablet */
@media (max-width: 1024px) {
    .header-nav {
        margin-left: 0;
        gap: 16px;
    }
    .nav-link{
        font-size: 13px;
    }
    .header-search{
        max-width:220px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-search {
        display: none;
    }
    .header-search-grid {
        display: flex;
        max-width: inherit;
    }
    .header-nav {
        display: none;
    }
}



/* *** START FOOTER *** */
.main-footer {
    background: var(--bg-card);
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Copyright */
.footer-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 10px;
}

/* Menu */
.footer-nav {
    display: flex;
    gap: 20px;
}
.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
}
.footer-nav a:hover {
    color: var(--accent);
}

/* Mobile */
@media (max-width: 768px) {
    .main-footer{
        display: none;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
