@import url('https://fonts.cdnfonts.com/css/sf-pro-display');

:root {
    --primary: #2d2d2d;
    --primary-light: #3d3d3d;
    --primary-dark: #1d1d1d;
    --accent: #007AFF;
    --accent-gradient: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    --success: #34C759;
    --warning: #FF9500;
    --danger: #FF3B30;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --blur-amount: 24px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="light"] {
    --primary: #f5f5f7;
    --primary-light: #ffffff;
    --primary-dark: #e5e5e7;
    --text-primary: #1d1d1f;
    --text-secondary: rgba(0, 0, 0, 0.7);
    --text-tertiary: rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(0, 122, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(88, 86, 214, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(52, 199, 89, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInBlur {
    from { 
        opacity: 0; 
        filter: blur(10px);
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        filter: blur(0);
        transform: translateY(0);
    }
}

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

@keyframes drift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

@keyframes snowfall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

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

@keyframes sparkle {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

@keyframes liquidMorph {
    0%, 100% {
        border-radius: var(--radius-lg);
    }
    25% {
        border-radius: 28px 20px 26px 22px;
    }
    50% {
        border-radius: 22px 26px 20px 28px;
    }
    75% {
        border-radius: 26px 22px 28px 20px;
    }
}

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

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 122, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 122, 255, 0.5);
    }
}

.fade-in { animation: fadeIn 0.5s ease-out forwards; }
.fade-in-blur { animation: fadeInBlur 0.6s ease-out forwards; }
.slide-up { animation: slideUp 0.5s ease-out forwards; }
.drift { animation: drift 6s ease-in-out infinite; }
.float-soft { animation: floatSoft 4s ease-in-out infinite; }
.liquid-morph { animation: liquidMorph 8s ease-in-out infinite; }

.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    animation: snowfall linear infinite;
    opacity: 0;
    will-change: transform;
}

[data-theme="light"] .snowflake {
    color: rgba(0, 122, 255, 0.3);
}

.shimmer {
    background: linear-gradient(
        90deg,
        var(--glass-bg) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        var(--glass-bg) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

.shimmer-text {
    background: linear-gradient(
        90deg,
        var(--text-primary) 0%,
        var(--accent) 50%,
        var(--text-primary) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--glass-bg) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        var(--glass-bg) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.skeleton-card {
    height: 200px;
}

.sparkle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sparkle-icon::before,
.sparkle-icon::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle-icon::before {
    top: -4px;
    right: -4px;
    animation-delay: 0s;
}

.sparkle-icon::after {
    bottom: -4px;
    left: -4px;
    animation-delay: 1s;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.liquid-glass {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    backdrop-filter: blur(var(--blur-amount)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.liquid-glass:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.neumorphic {
    background: var(--primary);
    border-radius: var(--radius-lg);
    box-shadow: 
        8px 8px 20px rgba(0, 0, 0, 0.35),
        -8px -8px 20px rgba(255, 255, 255, 0.08),
        inset 1px 1px 0 rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.neumorphic:hover {
    box-shadow: 
        10px 10px 25px rgba(0, 0, 0, 0.4),
        -10px -10px 25px rgba(255, 255, 255, 0.1),
        inset 1px 1px 0 rgba(255, 255, 255, 0.08);
}

.neumorphic-inset {
    background: var(--primary);
    border-radius: var(--radius-lg);
    box-shadow: 
        inset 4px 4px 10px rgba(0, 0, 0, 0.3),
        inset -4px -4px 10px rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .neumorphic {
    box-shadow: 
        8px 8px 20px rgba(0, 0, 0, 0.12),
        -8px -8px 20px rgba(255, 255, 255, 0.95),
        inset 1px 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .neumorphic:hover {
    box-shadow: 
        10px 10px 25px rgba(0, 0, 0, 0.15),
        -10px -10px 25px rgba(255, 255, 255, 1),
        inset 1px 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .neumorphic-inset {
    box-shadow: 
        inset 4px 4px 10px rgba(0, 0, 0, 0.1),
        inset -4px -4px 10px rgba(255, 255, 255, 0.9);
}

.elevation-1 {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.elevation-2 {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.elevation-3 {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.elevation-4 {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

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

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
    transition: var(--transition);
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 122, 255, 0.45);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    padding: 8px 16px;
}

.btn-ghost:hover {
    background: var(--glass-bg);
}

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

.btn-success {
    background: var(--success);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.theme-toggle {
    width: 50px;
    height: 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.theme-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--accent-gradient);
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

[data-theme="light"] .theme-toggle::after {
    left: 25px;
}

.lang-select {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.lang-select option {
    background: var(--primary);
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge .sparkle-icon svg {
    width: 16px;
    height: 16px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-visual {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    opacity: 0.8;
}

.hero-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--glass-shadow);
}

.hero-card-1 {
    top: 50px;
    right: 100px;
    width: 200px;
    animation: drift 8s ease-in-out infinite;
}

.hero-card-2 {
    bottom: 100px;
    right: 50px;
    width: 180px;
    animation: drift 6s ease-in-out infinite 1s;
}

.hero-card-3 {
    top: 200px;
    right: 0;
    width: 160px;
    animation: drift 7s ease-in-out infinite 2s;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.25);
    transition: var(--transition);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 122, 255, 0.35);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 32px;
    counter-increment: step;
}

.step::before {
    content: counter(step);
    position: absolute;
    top: 32px;
    left: 32px;
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.step-content {
    padding-left: 65px;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-footer {
    margin-top: 24px;
    text-align: center;
}

.form-footer a {
    color: var(--accent);
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.social-login {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.social-login p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.social-buttons {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.dashboard {
    padding: 100px 0 50px;
}

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

.dashboard-header h1 {
    font-size: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 28px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}

.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.bot-card {
    padding: 28px;
    transition: var(--transition);
}

.bot-card:hover {
    transform: translateY(-4px);
}

.bot-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.bot-avatar {
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.25);
}

.bot-avatar svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.bot-info h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.bot-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.bot-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 500;
}

.status-active {
    background: rgba(52, 199, 89, 0.2);
    color: var(--success);
}

.status-pending {
    background: rgba(255, 149, 0, 0.2);
    color: var(--warning);
}

.status-expired {
    background: rgba(255, 59, 48, 0.2);
    color: var(--danger);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.bot-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0;
    padding: 12px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.bot-meta span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.bot-actions {
    display: flex;
    gap: 10px;
}

.bot-actions .btn {
    flex: 1;
}

.links-section {
    margin-top: 20px;
    padding: 18px;
    background: rgba(255, 149, 0, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 149, 0, 0.2);
}

.links-section h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--warning);
}

.link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.link-item:last-child {
    border-bottom: none;
}

.link-item a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.link-status {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.link-status.completed {
    background: rgba(52, 199, 89, 0.2);
    color: var(--success);
}

.link-status.pending {
    background: rgba(255, 149, 0, 0.2);
    color: var(--warning);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

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

.modal-header h2 {
    font-size: 1.5rem;
}

.modal-close {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 59, 48, 0.2);
    color: var(--danger);
}

.console-container {
    background: #0d0d0d;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 20px;
}

.console-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
}

.console-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.console-dot.red { background: #ff5f56; }
.console-dot.yellow { background: #ffbd2e; }
.console-dot.green { background: #27c93f; }

.console-body {
    padding: 16px;
    font-family: 'SF Mono', Menlo, Monaco, monospace;
    font-size: 0.9rem;
    color: #00ff00;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.console-line {
    margin-bottom: 8px;
    line-height: 1.5;
}

.console-prompt {
    color: var(--accent);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 70px;
}

.admin-sidebar {
    width: 280px;
    position: fixed;
    left: 0;
    top: 70px;
    bottom: 0;
    padding: 28px;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    border-right: 1px solid var(--glass-border);
    overflow-y: auto;
}

.admin-menu {
    list-style: none;
}

.admin-menu li {
    margin-bottom: 8px;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.admin-menu a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.admin-menu a:hover,
.admin-menu a.active {
    background: var(--glass-bg);
    color: var(--text-primary);
}

.admin-menu a.active {
    background: var(--accent-gradient);
    color: white;
}

.admin-menu a.active svg {
    fill: white;
}

.admin-content {
    flex: 1;
    margin-left: 280px;
    padding: 28px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.data-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tr:hover {
    background: var(--glass-bg);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-success {
    background: rgba(52, 199, 89, 0.2);
    color: var(--success);
}

.badge-warning {
    background: rgba(255, 149, 0, 0.2);
    color: var(--warning);
}

.badge-danger {
    background: rgba(255, 59, 48, 0.2);
    color: var(--danger);
}

.badge-info {
    background: rgba(0, 122, 255, 0.2);
    color: var(--accent);
}

.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 16px 24px;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideUp 0.3s ease-out;
    min-width: 280px;
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-warning {
    border-left: 4px solid var(--warning);
}

.toast svg {
    width: 20px;
    height: 20px;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.file-upload {
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 44px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--accent);
    background: var(--glass-bg);
}

.file-upload.dragover {
    border-color: var(--accent);
    background: rgba(0, 122, 255, 0.1);
}

.file-upload input {
    display: none;
}

.file-upload-icon {
    margin-bottom: 16px;
    color: var(--accent);
}

.file-upload-icon svg {
    width: 48px;
    height: 48px;
}

.file-upload p {
    color: var(--text-secondary);
}

.file-upload .selected-file {
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    display: inline-block;
}

footer {
    padding: 70px 0 35px;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.alert {
    padding: 18px 22px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-success {
    background: rgba(52, 199, 89, 0.15);
    border: 1px solid rgba(52, 199, 89, 0.3);
    color: var(--success);
}

.alert-success svg {
    fill: var(--success);
}

.alert-error {
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: var(--danger);
}

.alert-error svg {
    fill: var(--danger);
}

.alert-warning {
    background: rgba(255, 149, 0, 0.15);
    border: 1px solid rgba(255, 149, 0, 0.3);
    color: var(--warning);
}

.alert-warning svg {
    fill: var(--warning);
}

.empty-state {
    text-align: center;
    padding: 70px 20px;
}

.empty-state-icon {
    margin-bottom: 24px;
    color: var(--text-tertiary);
}

.empty-state-icon svg {
    width: 80px;
    height: 80px;
    fill: var(--text-tertiary);
}

.empty-state h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.icon-check {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-check svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.requirements-box {
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.requirements-box h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.requirements-box h4 svg {
    width: 20px;
    height: 20px;
    fill: var(--text-primary);
}

.requirements-box ul {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-left: 20px;
    line-height: 1.9;
}

@media (max-width: 992px) {
    .hero-visual {
        display: none;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
        z-index: 100;
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary);
        backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 18px;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .bots-grid {
        grid-template-columns: 1fr;
    }
    
    .bot-card {
        padding: 20px;
    }
    
    .auth-card {
        padding: 24px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .data-table {
        display: block;
        overflow-x: auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .toast-container {
        left: 15px;
        right: 15px;
        top: 80px;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .step {
        padding: 24px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    nav .container {
        padding: 0 12px;
    }
    
    .logo span {
        font-size: 1rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .hero {
        padding: 70px 0 50px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 14px 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 16px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
    }
    
    .stat-card .stat-info {
        text-align: left;
    }
    
    .stat-icon-wrap {
        margin-bottom: 0;
        width: 44px;
        height: 44px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .bot-actions {
        flex-direction: column;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .bots-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .dashboard-header h1 {
        font-size: 1.5rem;
    }
    
    .dashboard {
        padding: 80px 0 30px;
    }
    
    .modal {
        padding: 20px;
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .auth-container {
        padding: 0;
    }
    
    .auth-card {
        padding: 20px;
        border-radius: var(--radius-md);
    }
    
    .form-control {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    footer {
        padding: 40px 0 20px;
    }
    
    .footer-section h4 {
        font-size: 0.95rem;
    }
}

@media (max-width: 375px) {
    .container {
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.w-full { width: 100%; }
.hidden { display: none; }

.bot-manager .header-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bot-avatar-large {
    width: 70px;
    height: 70px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
}

.bot-avatar-large svg {
    width: 36px;
    height: 36px;
    fill: white;
}

.bot-meta-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.time-remaining {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.manager-tabs {
    display: flex;
    gap: 8px;
    padding: 12px;
    margin-bottom: 30px;
    overflow-x: auto;
    flex-wrap: wrap;
}

.manager-tabs .tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.manager-tabs .tab:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
}

.manager-tabs .tab.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.manager-tabs .tab svg {
    opacity: 0.7;
}

.manager-tabs .tab.active svg {
    opacity: 1;
}

.manager-content {
    animation: fadeInBlur 0.4s ease-out;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.control-card {
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

.control-card:hover {
    transform: translateY(-4px);
}

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

.control-icon.start {
    background: rgba(52, 199, 89, 0.15);
    color: var(--success);
}

.control-icon.stop {
    background: rgba(255, 59, 48, 0.15);
    color: var(--danger);
}

.control-icon.restart {
    background: rgba(0, 122, 255, 0.15);
    color: var(--accent);
}

.control-card h3 {
    margin-bottom: 10px;
}

.control-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.control-status {
    padding: 28px;
}

.control-status h3 {
    margin-bottom: 20px;
}

.status-display {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.1rem;
    font-weight: 500;
}

.status-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.running {
    background: var(--success);
    box-shadow: 0 0 20px rgba(52, 199, 89, 0.5);
}

.status-indicator.stopped {
    background: var(--danger);
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.5);
}

.files-header, .logs-header, .extend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.file-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    transition: var(--transition);
}

.file-card:hover {
    transform: translateY(-2px);
}

.file-icon {
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.file-actions {
    display: flex;
    gap: 8px;
}

.editor-container {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    min-height: 500px;
}

.editor-sidebar {
    padding: 20px;
}

.editor-sidebar h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.file-item:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
}

.file-item.active {
    background: var(--accent);
    color: white;
}

.editor-main {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
    flex-wrap: wrap;
    gap: 12px;
}

.editor-filename {
    font-family: 'SF Mono', monospace;
    color: var(--text-secondary);
}

.editor-actions {
    display: flex;
    gap: 10px;
}

.code-editor {
    flex: 1;
    width: 100%;
    min-height: 400px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #e6e6e6;
    font-family: 'SF Mono', Menlo, Monaco, 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    outline: none;
}

.code-editor:focus {
    background: rgba(0, 0, 0, 0.4);
}

.editor-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
}

.editor-placeholder p {
    color: var(--text-tertiary);
    margin-top: 16px;
}

.console-title {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.console-line.info .console-level { color: var(--accent); }
.console-line.success .console-level { color: var(--success); }
.console-line.warning .console-level { color: var(--warning); }
.console-line.error .console-level { color: var(--danger); }

.console-time {
    color: var(--text-tertiary);
    margin-right: 10px;
}

.console-level {
    font-weight: 600;
    margin-right: 10px;
    font-size: 0.8rem;
}

.console-message {
    color: #e6e6e6;
}

.progress-card {
    padding: 28px;
    margin-bottom: 30px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    transition: var(--transition);
}

.link-card:hover {
    transform: translateY(-3px);
}

.link-card.completed {
    opacity: 0.7;
}

.link-number {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.link-card.completed .link-number {
    background: var(--success);
}

.link-info {
    flex: 1;
}

.link-reward {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--accent);
}

.link-card.completed .link-reward {
    color: var(--success);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.status-badge.completed {
    background: rgba(52, 199, 89, 0.15);
    color: var(--success);
}

.status-badge.pending {
    background: rgba(255, 149, 0, 0.15);
    color: var(--warning);
}

.completed-check {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.info-box {
    padding: 28px;
}

.info-box h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.info-label {
    color: var(--text-secondary);
}

.info-value {
    font-weight: 500;
}

.info-value.code {
    font-family: 'SF Mono', monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

.stat-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(0, 122, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.stat-icon-wrap.success {
    background: rgba(52, 199, 89, 0.12);
}

.stat-icon-wrap.warning {
    background: rgba(255, 149, 0, 0.12);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.success { background: rgba(52, 199, 89, 0.15); color: var(--success); }
.stat-icon.primary { background: rgba(0, 122, 255, 0.15); color: var(--accent); }
.stat-icon.warning { background: rgba(255, 149, 0, 0.15); color: var(--warning); }

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-card .stat-info {
    text-align: center;
}

.section-title {
    margin-bottom: 24px;
}

.section-title h2 {
    font-size: 1.4rem;
    font-weight: 600;
}

.bot-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.time-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 6px 12px;
    background: var(--glass-bg);
    border-radius: var(--radius-xl);
}

.links-progress {
    margin-bottom: 16px;
    padding: 14px;
    background: rgba(0, 122, 255, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 122, 255, 0.15);
}

.links-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.progress-bar-mini {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.links-complete {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(52, 199, 89, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(52, 199, 89, 0.15);
    color: var(--success);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.bot-menu {
    margin-left: auto;
}

.modal-body {
    margin-bottom: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.logs-actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 900px) {
    .editor-container {
        grid-template-columns: 1fr;
    }
    
    .editor-sidebar {
        display: none;
    }
    
    .manager-tabs {
        justify-content: flex-start;
        padding: 8px;
    }
    
    .manager-tabs .tab {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .bot-manager .header-info {
        flex-direction: column;
        text-align: center;
    }
    
    .bot-meta-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
    }
    
    .files-grid {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .link-card {
        flex-wrap: wrap;
    }
    
    .editor-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .editor-actions {
        width: 100%;
    }
    
    .editor-actions .btn {
        flex: 1;
    }
}
