@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #030712;
    --fg: #ffffff;
    --primary: #2EE59D;
    --primary-dark: #25c085;
    --primary-glow: rgba(46, 229, 157, 0.4);
    --accent: #06b6d4;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --white-5: rgba(255,255,255,0.03);
    --white-10: rgba(255,255,255,0.08);
    --glass-bg: rgba(255,255,255,0.03);
    --glass-border: rgba(255,255,255,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none !important;
}

*:focus, *:focus-visible {
    outline: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    overflow-x: hidden;
    /* GPU acceleration */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Simplified gradient background - less layers = faster */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(46, 229, 157, 0.12), transparent);
    pointer-events: none;
    z-index: -1;
    will-change: auto;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(3, 7, 18, 0.95);
    border-bottom: 1px solid var(--glass-border);
}

.header nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo img {
    width: 36px;
    height: 36px;
    margin-right: 0.5rem;
}

.logo span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #000;
    box-shadow: 0 4px 15px rgba(46, 229, 157, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(46, 229, 157, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(46, 229, 157, 0.5);
    color: var(--primary);
    background: rgba(46, 229, 157, 0.08);
}

.btn-outline:hover {
    background: rgba(46, 229, 157, 0.15);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.875rem 2.25rem;
    font-size: 1.1rem;
    border-radius: 0.875rem;
}

/* Hero */
.hero {
    padding: 6rem 1rem 4rem;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(46, 229, 157, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray-400);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(46, 229, 157, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-image img {
    position: relative;
    z-index: 1;
    width: 400px;
    height: 400px;
    object-fit: contain;
}

/* Stats */
.stats {
    padding: 5rem 1rem;
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(46, 229, 157, 0.03) 50%, transparent);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.stat-item {
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-item:hover {
    border-color: rgba(46, 229, 157, 0.3);
    transform: translateY(-4px);
}

.stat-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, rgba(46, 229, 157, 0.15), rgba(6, 182, 212, 0.1));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(46, 229, 157, 0.2);
}

.stat-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-400);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* Features */
.features {
    padding: 6rem 1rem;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-title h2 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-title span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-400);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    transition: border-color 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(46, 229, 157, 0.3);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, rgba(46, 229, 157, 0.2), rgba(6, 182, 212, 0.1));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(46, 229, 157, 0.2);
    transition: all 0.4s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(46, 229, 157, 0.2);
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--gray-400);
    line-height: 1.7;
}

/* Pricing */
.pricing {
    padding: 6rem 1rem;
    position: relative;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(46, 229, 157, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 850px;
    margin: 0 auto;
    position: relative;
}

.pricing-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(46, 229, 157, 0.3);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
}

.pricing-card.popular:hover {
    border-color: var(--accent);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #000;
    padding: 0.35rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.pricing-desc {
    color: var(--gray-400);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
}

.pricing-features li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 700;
}

.pricing-extra {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* CTA */
.cta {
    padding: 6rem 1rem;
}

.cta-box {
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
    background: rgba(46, 229, 157, 0.05);
    border: 1px solid rgba(46, 229, 157, 0.2);
    border-radius: 2rem;
    padding: 4rem 3rem;
}

.cta-box h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.cta-box p {
    color: var(--gray-400);
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.cta-box .btn {
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 1rem;
    background: rgba(0, 0, 0, 0.3);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer .logo {
    font-size: 1.2rem;
}

.footer .logo img {
    width: 28px;
    height: 28px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    color: var(--gray-400);
    font-size: 0.9rem;
}

.footer-links a {
    transition: all 0.3s;
}

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

.footer-copy {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* Footer mobile */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 1rem;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .footer .logo {
        font-size: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
        font-size: 0.8125rem;
    }
    
    .footer-copy {
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }
}

/* Page styles */
.page {
    padding: 7rem 1rem 3rem;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.page h1 span {
    color: var(--primary);
}

.content-section {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.content-section .number {
    width: 2rem;
    height: 2rem;
    background: rgba(46,229,157,0.2);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.content-section p {
    color: var(--gray-400);
    white-space: pre-line;
}

.content-section .subsection {
    margin-top: 1.25rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(46,229,157,0.3);
}

.content-section .subsection h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.content-section .subsection .subnumber {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.content-section .subsection p {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.faq-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.faq-images img {
    max-width: 300px;
    border-radius: 0.75rem;
    border: 1px solid var(--white-10);
}

/* Admin */
.admin-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-link-back {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.admin-btn-logout {
    color: var(--gray-400);
    background: none;
}

.admin-btn-save {
    white-space: nowrap;
}

.admin-page {
    padding-top: 5rem;
}

@media (max-width: 768px) {
    .admin-page {
        padding-top: 4.5rem;
    }
}

.admin-badge {
    background: rgba(46,229,157,0.2);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.admin-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--white-10);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-tab {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: var(--white-5);
    border: none;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-tab:hover {
    background: var(--white-10);
}

.admin-tab.active {
    background: var(--primary);
    color: #000;
    font-weight: 600;
}

.admin-card {
    background: var(--white-5);
    border: 1px solid var(--white-10);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-card h3 {
    color: var(--primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    color: var(--gray-400);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.form-control {
    width: 100%;
    background: var(--white-5);
    border: 1px solid var(--white-10);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control::placeholder {
    color: var(--gray-500);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 229, 157, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

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

.item-number {
    color: var(--primary);
    font-weight: 600;
}

.btn-delete {
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-delete:hover {
    color: #f87171;
}

/* Login Page - Admin */
.login-page {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.5rem !important;
    background: #000 !important;
}

.login-card {
    width: 100% !important;
    max-width: 400px !important;
    text-align: center !important;
}

.login-logo {
    position: relative !important;
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 1.25rem !important;
}

.login-glow {
    position: absolute !important;
    inset: -40% !important;
    background: rgba(46, 229, 157, 0.3) !important;
    border-radius: 50% !important;
    filter: blur(25px) !important;
}

.login-logo img {
    position: relative !important;
    z-index: 1 !important;
    width: 64px !important;
    height: 64px !important;
}

.login-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.25rem !important;
    color: #fff !important;
}

.login-title span {
    color: #2EE59D !important;
}

.login-subtitle {
    color: #9ca3af !important;
    font-size: 1rem !important;
    margin-bottom: 2rem !important;
}

.login-form {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    text-align: left !important;
}

.login-field {
    margin-bottom: 1rem !important;
}

.login-field label {
    display: block !important;
    color: #9ca3af !important;
    font-size: 0.875rem !important;
    margin-bottom: 0.5rem !important;
}

.login-field input {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.625rem !important;
    padding: 0.875rem 1rem !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}

.login-field input::placeholder {
    color: #6b7280 !important;
}

.login-field input:focus {
    outline: none !important;
    border-color: #2EE59D !important;
}

.login-error {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem !important;
    margin-bottom: 1rem !important;
    font-size: 0.875rem !important;
}

.login-btn {
    width: 100% !important;
    background: #2EE59D !important;
    color: #000 !important;
    border: none !important;
    border-radius: 0.625rem !important;
    padding: 0.875rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.2s !important;
    font-family: inherit !important;
}

.login-btn:hover {
    background: #25c085 !important;
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 229, 157, 0.35);
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(46,229,157,0.2);
    color: var(--primary);
}

.alert-error {
    background: rgba(239,68,68,0.2);
    color: #f87171;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary);
}

.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.image-item {
    position: relative;
}

.image-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid var(--white-10);
}

.image-item .delete-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s;
}

.image-item:hover .delete-btn {
    opacity: 1;
}

.upload-btn {
    width: 100px;
    height: 100px;
    border: 2px dashed var(--white-10);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s;
    color: var(--gray-500);
    font-size: 0.75rem;
}

.upload-btn:hover {
    border-color: rgba(46,229,157,0.5);
}

.upload-btn span:first-child {
    font-size: 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(46, 229, 157, 0.3);
        filter: blur(60px);
    }
    50% { 
        box-shadow: 0 0 40px rgba(46, 229, 157, 0.5);
        filter: blur(80px);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes countUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out both;
}

.animate-scaleIn {
    animation: scaleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-bounce {
    animation: bounce 2.5s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2.5s ease-in-out infinite;
}

.animate-slideDown {
    animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 3s ease-in-out infinite;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Scroll triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Counter animation */
.counter-animate {
    animation: countUp 0.5s ease-out both;
}

/* Loading screen */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(ellipse at center, #0a1628 0%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.loading-logo-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 1.5rem;
}

.loading-ring {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.loading-ring-2 {
    inset: 10px;
    border-top-color: var(--accent);
    animation-duration: 1.8s;
    animation-direction: reverse;
}

.loading-logo {
    position: absolute;
    inset: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(46, 229, 157, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.loading-logo img {
    width: 70px;
    height: 70px;
    animation: pulse-scale 2s ease-in-out infinite;
}

@keyframes pulse-scale {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.loading-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.loading-title span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.loading-progress {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: visible;
    position: relative;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 0.15s ease-out;
    box-shadow: 0 0 20px rgba(46, 229, 157, 0.5);
}

.loading-progress-glow {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary), 0 0 30px var(--primary);
    transition: left 0.15s ease-out;
}

.loading-percent {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 40px;
}

.loading-text {
    color: var(--gray-400);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

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

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-cta {
    display: block;
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    padding: 0.625rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-menu-btn:hover {
    background: rgba(46, 229, 157, 0.1);
    border-color: rgba(46, 229, 157, 0.3);
}

.burger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-line + .burger-line {
    margin-top: 5px;
}

.mobile-menu-btn.open .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--primary);
}

.mobile-menu-btn.open .burger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--primary);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.98);
    z-index: 45;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    padding: 6rem 1.5rem 2rem;
    gap: 0.5rem;
    height: 100%;
}

.mobile-menu a {
    padding: 1rem 1.25rem;
    border-radius: 0.875rem;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.2s;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.mobile-menu a:hover,
.mobile-menu a:active {
    background: rgba(46, 229, 157, 0.1);
    border-color: rgba(46, 229, 157, 0.3);
    color: var(--primary);
}

.mobile-cta {
    margin-top: auto;
    text-align: center;
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
}

/* Hover effects */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(46, 229, 157, 0.2);
}

.hover-glow {
    transition: box-shadow 0.4s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 50px rgba(46, 229, 157, 0.3);
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-scale:hover {
    transform: scale(1.08);
}

/* Icon hover effects */
.stat-icon {
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.15);
    background: rgba(46, 229, 157, 0.2);
}

.feature-icon {
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(46, 229, 157, 0.3);
}

/* Text glow on hover */
.stat-value {
    transition: color 0.3s ease;
}

/* Link hover effects */
.nav-links a {
    transition: color 0.2s ease;
}

/* Footer link hover */
.footer-links a {
    transition: color 0.2s ease;
}

/* Tablet */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-image img {
        width: 300px;
        height: 300px;
    }
    
    .hero-glow {
        width: 300px;
        height: 300px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Убираем фоновые эффекты на мобилках для производительности */
    body::before {
        background: 
            radial-gradient(ellipse 100% 50% at 50% 0%, rgba(46, 229, 157, 0.1), transparent);
    }
    
    .hero {
        min-height: auto;
        padding: 5.5rem 1.25rem 2.5rem;
    }
    
    .hero::before {
        width: 100%;
        height: 300px;
        top: 10%;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
        margin-bottom: 1rem;
        line-height: 1.15;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
        margin-bottom: 1.75rem;
        line-height: 1.6;
        color: var(--gray-400);
        padding: 0 0.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 0.875rem;
        padding: 0 0.5rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 0.875rem;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 0.5rem;
    }
    
    .hero-image img {
        width: 140px;
        height: 140px;
        filter: drop-shadow(0 0 30px rgba(46, 229, 157, 0.4));
    }
    
    .hero-glow {
        width: 200px;
        height: 200px;
        filter: blur(60px);
    }
    
    /* Stats mobile */
    .stats {
        padding: 2.5rem 1rem;
    }
    
    .stats::before {
        background: linear-gradient(180deg, transparent, rgba(46, 229, 157, 0.02) 50%, transparent);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 1.25rem 0.75rem;
        border-radius: 1rem;
    }
    
    .stat-icon {
        width: 3rem;
        height: 3rem;
        margin-bottom: 0.75rem;
        border-radius: 0.75rem;
    }
    
    .stat-icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
        font-weight: 800;
    }
    
    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 0.03em;
    }
    
    /* Features mobile */
    .features {
        padding: 3rem 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .feature-card {
        padding: 1.5rem 1.25rem;
        border-radius: 1.25rem;
    }
    
    .feature-icon {
        width: 3.25rem;
        height: 3.25rem;
        margin-bottom: 1rem;
        border-radius: 0.875rem;
    }
    
    .feature-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Pricing mobile */
    .pricing {
        padding: 3rem 1rem;
    }
    
    .pricing::before {
        display: none;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 100%;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
        border-radius: 1.25rem;
    }
    
    .pricing-card.popular {
        padding: 2.25rem 1.5rem;
    }
    
    .pricing-badge {
        top: -12px;
        font-size: 0.75rem;
        padding: 0.3rem 1rem;
    }
    
    .pricing-card h3 {
        font-size: 1.25rem;
    }
    
    .pricing-price {
        font-size: 2.75rem;
    }
    
    .pricing-desc {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .pricing-features {
        margin-bottom: 1.75rem;
    }
    
    .pricing-features li {
        font-size: 0.9rem;
        margin-bottom: 0.7rem;
    }
    
    .pricing-card .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Section titles mobile */
    .section-title h2 {
        font-size: 1.85rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
        padding: 0 0.5rem;
        line-height: 1.6;
    }
    
    /* CTA mobile */
    .cta {
        padding: 2.5rem 1rem;
    }
    
    .cta-box {
        padding: 2.5rem 1.5rem;
        border-radius: 1.25rem;
    }
    
    .cta-box::after {
        display: none;
    }
    
    .cta-box h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .cta-box p {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
        line-height: 1.6;
    }
    
    .cta-box .btn {
        width: 100%;
        padding: 1rem 1.5rem;
    }
    
    /* Footer mobile */
    .footer {
        padding: 2rem 1rem;
    }
    
    .footer-content {
        gap: 1.25rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.875rem;
        font-size: 0.9rem;
    }
    
    .footer-copy {
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
    
    /* Navigation */
    .nav-links {
        display: none;
    }
    
    .header-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    /* Ensure burger is above mobile menu */
    .header {
        z-index: 50;
    }
    
    /* Buttons mobile */
    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    /* Disable heavy hover effects on mobile */
    .stat-item:hover,
    .feature-card:hover,
    .pricing-card:hover {
        transform: none !important;
    }
    
    /* Admin mobile */
    .admin-header .admin-header-left {
        gap: 0.5rem;
    }
    
    .admin-header .admin-header-right {
        gap: 0.5rem;
    }
    
    .admin-header .logo {
        font-size: 1.1rem;
    }
    
    .admin-header .logo img {
        width: 28px;
        height: 28px;
    }
    
    .admin-link-back {
        display: none;
    }
    
    .admin-btn-logout {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .admin-btn-save {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .admin-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
    }
    
    .admin-tabs {
        gap: 0.375rem;
        padding-bottom: 0.75rem;
        margin-bottom: 1.25rem;
        scrollbar-width: none;
    }
    
    .admin-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .admin-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .admin-card {
        padding: 1.25rem 1rem;
        margin-bottom: 1rem;
        border-radius: 0.875rem;
    }
    
    .admin-card h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.375rem;
    }
    
    .form-control {
        padding: 0.75rem 0.875rem;
        font-size: 1rem;
        border-radius: 0.625rem;
    }
    
    textarea.form-control {
        min-height: 100px;
    }
    
    .form-hint {
        font-size: 0.75rem;
    }
    
    .item-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .btn-delete {
        font-size: 0.8rem;
    }
    
    .checkbox-group {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .faq-images {
        gap: 0.5rem;
    }
    
    .faq-image-item img,
    .faq-image-add {
        width: 80px;
        height: 80px;
    }
    
    /* Admin header mobile */
    .admin-header nav {
        padding: 0.5rem 0.75rem;
    }
    
    .header .admin-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .header .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .header a[style*="На сайт"] {
        display: none;
    }
    
    /* Modal mobile */
    .modal-content {
        margin: 1rem;
        padding: 1.25rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-content h3 {
        font-size: 1rem;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-buttons .btn {
        width: 100%;
    }
    
    /* Page content mobile */
    .page {
        padding: 5.5rem 1rem 2rem;
    }
    
    .page h1 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    .content-section {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .content-section h2 {
        font-size: 1.05rem;
    }
    
    .faq-images img {
        max-width: 100%;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero {
        padding: 5rem 1rem 2rem;
    }
    
    .hero h1 {
        font-size: 1.85rem;
        padding: 0 0.25rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .hero-image img {
        width: 120px;
        height: 120px;
    }
    
    .hero-glow {
        width: 160px;
        height: 160px;
    }
    
    .hero-buttons {
        padding: 0;
    }
    
    .hero-buttons .btn {
        padding: 0.9rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .stats {
        padding: 2rem 0.75rem;
    }
    
    .stats-grid {
        gap: 0.5rem;
    }
    
    .stat-item {
        padding: 1rem 0.5rem;
        border-radius: 0.875rem;
    }
    
    .stat-icon {
        width: 2.5rem;
        height: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-icon svg {
        width: 1.125rem;
        height: 1.125rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .features {
        padding: 2.5rem 0.875rem;
    }
    
    .feature-card {
        padding: 1.25rem 1rem;
    }
    
    .feature-icon {
        width: 2.75rem;
        height: 2.75rem;
    }
    
    .feature-card h3 {
        font-size: 1.05rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
    }
    
    .pricing {
        padding: 2.5rem 0.875rem;
    }
    
    .pricing-card {
        padding: 1.75rem 1.25rem;
    }
    
    .pricing-price {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .cta {
        padding: 2rem 0.875rem;
    }
    
    .cta-box {
        padding: 2rem 1.25rem;
    }
    
    .cta-box h2 {
        font-size: 1.35rem;
    }
    
    .cta-box p {
        font-size: 0.9rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo img {
        width: 30px;
        height: 30px;
    }
    
    .footer {
        padding: 1.75rem 1rem;
    }
    
    .footer-links {
        gap: 0.75rem;
        font-size: 0.85rem;
    }
    
    /* Admin small mobile */
    .admin-tabs {
        gap: 0.25rem;
        margin-top: 0.5rem;
    }
    
    .admin-tab {
        padding: 0.4rem 0.625rem;
        font-size: 0.7rem;
    }
    
    .admin-card {
        padding: 1rem 0.875rem;
    }
    
    .form-control {
        padding: 0.625rem 0.75rem;
        font-size: 0.95rem;
    }
    
    .faq-image-item img,
    .faq-image-add {
        width: 70px;
        height: 70px;
    }
    
    .header .logo {
        font-size: 1rem;
    }
    
    .header .logo img {
        width: 26px;
        height: 26px;
    }
    
    /* Admin header - компактная мобильная версия */
    .admin-header nav {
        flex-wrap: wrap;
        gap: 0.4rem;
        padding: 0.4rem 0.5rem;
    }
    
    .admin-header-left {
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }
    
    .admin-header-left .logo {
        font-size: 0.9rem;
    }
    
    .admin-header-left .logo img {
        width: 22px;
        height: 22px;
    }
    
    .admin-badge {
        font-size: 0.55rem;
        padding: 0.1rem 0.35rem;
    }
    
    .admin-header-right {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
        margin-left: auto;
    }
    
    .admin-header-right .btn {
        padding: 0.3rem 0.4rem;
        font-size: 0.6rem !important;
    }
    
    .admin-header-right .btn-primary {
        padding: 0.35rem 0.5rem;
    }
    
    .admin-link-back {
        display: none;
    }
}


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

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

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-spin-slow {
    animation: spin-slow 3s linear infinite;
}

/* Stat icon spin on hover */
.stat-icon svg {
    transition: transform 0.5s ease;
}

.stat-item:hover .stat-icon svg {
    animation: spin 1s ease-in-out;
}

/* Error pages */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg);
}

.error-content {
    text-align: center;
    max-width: 500px;
}

.error-icon-wrapper {
    margin-bottom: 2rem;
}

.error-icon {
    width: 128px;
    height: 128px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-icon-red {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.error-icon svg {
    color: #ef4444;
}

.error-code-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.error-code {
    font-size: 200px;
    font-weight: 700;
    color: rgba(46, 229, 157, 0.1);
    line-height: 1;
    user-select: none;
}

.error-logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-logo img {
    width: 120px;
    height: 120px;
}

.error-page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: none;
    background: none;
    padding: 0;
}

.error-page h1 span {
    color: var(--primary);
}

.error-content h1 {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

.error-content {
    border: none !important;
    box-shadow: none !important;
}

.error-page h1 .text-red,
.text-red {
    color: #ef4444;
}

.error-page p {
    color: var(--gray-400);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.error-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .error-buttons {
        flex-direction: row;
    }
    
    .error-code {
        font-size: 200px;
    }
}

@media (max-width: 640px) {
    .error-code {
        font-size: 120px;
    }
    
    .error-logo img {
        width: 80px;
        height: 80px;
    }
    
    .error-page h1 {
        font-size: 1.75rem;
    }
}


/* Reset borders on error pages */
.error-page h1,
.error-page p,
.error-content h1,
.error-content p,
.error-content {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}


/* Link insert button */
.btn-link-insert {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(46, 229, 157, 0.15);
    color: var(--primary);
    border: none;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-link-insert:hover {
    background: rgba(46, 229, 157, 0.25);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid var(--white-10);
    border-radius: 1rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
}

.modal-content h3 {
    color: var(--primary);
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
}

.modal-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.modal-buttons .btn {
    flex: 1;
    padding: 0.75rem 1rem;
}

/* FAQ Images */
.faq-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.faq-image-item {
    position: relative;
    width: 100px;
    height: 100px;
}

.faq-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid var(--white-10);
}

.faq-image-delete {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
}

.faq-image-item:hover .faq-image-delete {
    opacity: 1;
}

.faq-image-delete:hover {
    background: #dc2626;
}

.faq-image-add {
    width: 100px;
    height: 100px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.faq-image-add:hover {
    border-color: rgba(46, 229, 157, 0.5);
}

.faq-image-add input[type="file"] {
    display: none;
}

.faq-image-add .add-icon {
    font-size: 1.5rem;
    color: var(--gray-500);
}

.faq-image-add .add-text {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.faq-image-add .uploading-text {
    font-size: 0.75rem;
    color: var(--primary);
}


/* Text links in FAQ */
.text-link {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.text-link:hover {
    text-decoration: underline;
}

.whitespace-preline {
    white-space: pre-line;
}

/* FAQ page images */
.faq-page-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.faq-page-images img {
    max-width: 300px;
    height: auto;
    border-radius: 0.75rem;
    border: 1px solid var(--white-10);
}

@media (max-width: 640px) {
    .faq-page-images img {
        max-width: 100%;
    }
}


/* Migration Page Styles */
.migration-page {
    min-height: 100vh;
    background: var(--bg);
    color: var(--fg);
}

.migration-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: var(--primary);
    font-size: 1.25rem;
}

.migration-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--white-10);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.migration-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 1.5rem 3rem;
}

.migration-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.migration-badge {
    display: inline-block;
    background: var(--primary);
    color: black;
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.migration-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.migration-hero p {
    color: var(--gray-400);
    font-size: 1.25rem;
}

.text-blue {
    color: #3b82f6;
}

.text-green {
    color: var(--primary);
}

.migration-section {
    margin-bottom: 4rem;
}

.migration-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--white-10);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: var(--white-5);
    border: 1px solid var(--white-10);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.benefit-card:hover {
    border-color: var(--primary);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.benefit-card p {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Comparison Table */
.comparison-table {
    background: var(--white-5);
    border: 1px solid var(--white-10);
    border-radius: 1rem;
    overflow: hidden;
}

.comparison-header,
.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.comparison-header {
    background: var(--white-5);
    font-weight: 600;
    border-bottom: 1px solid var(--white-10);
}

.comparison-row {
    border-bottom: 1px solid var(--white-5);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row div:first-child {
    color: var(--gray-400);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--white-10);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary);
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.timeline-content h4 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.timeline-content p {
    color: var(--gray-400);
    font-size: 0.9rem;
}

/* Code Block */
.code-block {
    background: #0d1117;
    border: 1px solid var(--white-10);
    border-radius: 0.75rem;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.875rem;
    color: #c9d1d9;
    line-height: 1.6;
}

/* Recommendations */
.recommendations {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rec-item {
    display: flex;
    gap: 1rem;
    background: var(--white-5);
    border: 1px solid var(--white-10);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.rec-icon {
    font-size: 1.5rem;
}

.rec-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

.rec-item p {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin: 0;
}

.migration-footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--white-10);
    color: var(--gray-500);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .migration-hero h1 {
        font-size: 1.75rem;
    }
    
    .comparison-header,
    .comparison-row {
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}


/* Too Many Requests Page */
.error-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    margin: 2rem 0;
}

.timer-icon {
    font-size: 1.5rem;
}

.error-timer span {
    color: #fca5a5;
}

.error-timer strong {
    color: #ef4444;
}

.error-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-400);
    font-size: 0.9rem;
}

.info-icon {
    font-size: 1rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


/* Board Page */
.board-page {
    min-height: 100vh;
    background: var(--bg);
}

.board-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: var(--primary);
    font-size: 1.25rem;
}

.board-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.board-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.board-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.board-badge {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.board-content {
    padding: 5rem 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.board-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    min-height: calc(100vh - 8rem);
}

.board-column {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1rem;
}

.column-title {
    font-weight: 600;
    font-size: 1rem;
}

.column-count {
    background: var(--glass-bg);
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    color: var(--gray-400);
}

.column-tasks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    overflow-y: auto;
}

.task-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid var(--glass-border);
}

.task-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.task-card.priority-high {
    border-left-color: #ef4444;
}

.task-card.priority-medium {
    border-left-color: #eab308;
}

.task-card.priority-low {
    border-left-color: #22c55e;
}

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

.task-priority {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
}

.task-delete {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
}

.task-card:hover .task-delete {
    opacity: 1;
}

.task-delete:hover {
    color: #ef4444;
}

.task-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.task-desc {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.task-date {
    font-size: 0.7rem;
    color: var(--gray-500);
}

.task-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.task-card:hover .task-actions {
    opacity: 1;
}

.task-move {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--gray-400);
    width: 24px;
    height: 24px;
    border-radius: 0.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.task-move:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.task-modal {
    max-width: 450px;
}

.task-modal select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.task-modal select.form-control option {
    background: #1a1a1a;
    color: #fff;
    padding: 0.5rem;
}

/* Board mobile */
@media (max-width: 1024px) {
    .board-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .board-column {
        min-height: auto;
    }
    
    .column-tasks {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .board-header {
        padding: 0.5rem 1rem;
    }
    
    .board-header-right .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .board-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .board-content {
        padding: 4.5rem 1rem 1.5rem;
    }
    
    .task-actions {
        opacity: 1;
    }
    
    .task-delete {
        opacity: 1;
    }
}
