:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --accent: #ff3e3e;
    --accent-glow: rgba(255, 62, 62, 0.4);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --font-main: 'Outfit', 'Inter', sans-serif;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(20, 20, 20, 0) 0%, rgba(5, 5, 5, 1) 100%),
        url('/static/img/backraund.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) contrast(1.1);
    z-index: -2;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 62, 62, 0.03) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.logo-section {
    margin-bottom: 40px;
    text-align: center;
    animation: fadeInDown 1s var(--transition);
}

.logo-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-button {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.4s var(--transition);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    animation: slideUpFade 0.6s var(--transition) both;
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
}

.link-button:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px var(--accent-glow);
}

.link-button:hover::before {
    left: 100%;
}

.link-button i {
    font-style: normal;
    font-size: 1.4rem;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-button span {
    flex-grow: 1;
}

.link-button::after {
    content: '→';
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s var(--transition);
}

.link-button:hover::after {
    opacity: 0.5;
    transform: translateX(0);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger for links */
.link-button:nth-child(1) {
    animation-delay: 0.1s;
}

.link-button:nth-child(2) {
    animation-delay: 0.2s;
}

.link-button:nth-child(3) {
    animation-delay: 0.3s;
}

.link-button:nth-child(4) {
    animation-delay: 0.4s;
}

.link-button:nth-child(5) {
    animation-delay: 0.5s;
}

/* Admin Modern Redesign */
.admin-view {
    padding: 20px;
    width: 100%;
    max-width: 1000px;
    display: block;
}

.admin-glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
}

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

.admin-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.input-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    transition: border-color 0.3s;
}

.input-container:focus-within {
    border-color: var(--accent);
}

.input-container label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-container input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    font-size: 1rem;
    outline: none;
}

.action-btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.primary-btn {
    background: white;
    color: black;
}

.primary-btn:hover {
    background: #eee;
    transform: translateY(-2px);
}

.danger-btn {
    background: rgba(255, 62, 62, 0.1);
    color: var(--accent);
    border: 1px solid rgba(255, 62, 62, 0.2);
}

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

.link-edit-grid {
    display: grid;
    grid-template-columns: 80px 1fr 100px;
    gap: 20px;
    margin-bottom: 16px;
}

.link-add-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .admin-header .action-btn {
        width: 100%;
        text-align: center;
    }

    .admin-glass-card {
        padding: 24px 16px;
    }

    .admin-view {
        padding: 12px;
    }
}

@media (max-width: 600px) {
    .admin-glass-card h2 {
        font-size: 1.1rem;
    }

    .link-edit-grid {
        grid-template-columns: 80px 1fr !important;
    }

    .link-edit-grid>div:last-child {
        grid-column: span 2;
        text-align: left !important;
        border-top: 1px solid var(--card-border);
        padding-top: 10px;
        margin-top: 5px;
    }

    .link-add-grid {
        grid-template-columns: 1fr !important;
    }
}