* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #10b981;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: translateY(-2px);
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.nav-icon {
    font-size: 1rem;
}

.language-selector {
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.language-select {
    padding: 8px 35px 8px 40px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f1f5f9' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center, left 8px center;
    background-size: 12px 12px, 20px 15px;
}


.language-select:hover {
    background-color: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.language-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Status Indicator */
.status-indicator {
    position: fixed;
    top: 60px;
    right: 20px;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.6s ease-out;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 11px;
}

.status-value {
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.status-network-light {
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    display: inline-block;
    animation: chaoticBlink 1.5s infinite;
    flex-shrink: 0;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes chaoticBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    10% {
        opacity: 0.7;
        transform: scale(0.95);
    }
    20% {
        opacity: 1;
        transform: scale(1.05);
    }
    35% {
        opacity: 0.85;
        transform: scale(0.98);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
    65% {
        opacity: 0.75;
        transform: scale(0.96);
    }
    80% {
        opacity: 1;
        transform: scale(1.03);
    }
    90% {
        opacity: 0.8;
        transform: scale(0.97);
    }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary-color);
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--secondary-color);
}

.pulse-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Header */
.header {
    padding: 100px 0 60px;
    text-align: center;
}

.main-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    color: var(--text-primary);
}

.title-word {
    display: inline-block;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease-out backwards;
}

.title-word[data-word="1"] { animation-delay: 0.1s; }
.title-word[data-word="2"] { animation-delay: 0.2s; }
.title-word[data-word="3"] { animation-delay: 0.3s; }
.title-word[data-word="4"] { animation-delay: 0.4s; }
.title-word[data-word="5"] { animation-delay: 0.5s; }
.title-word[data-word="6"] { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    animation: fadeIn 1s ease-out 0.7s backwards;
}

/* Hero Visual Section */
.hero-visual {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    animation: fadeIn 1s ease-out 1s backwards;
}

.profit-chart {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.3));
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-stat-item {
    text-align: center;
    padding: 20px 30px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 120px;
}

.hero-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.15);
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

/* Features Section */
.features-section {
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Networks Section */
.networks-section {
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.networks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.network-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.network-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.network-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4));
}

.network-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.network-logo img[src=""],
.network-logo img:not([src]) {
    display: none;
}

.network-card:hover .network-logo img {
    transform: scale(1.1) rotate(5deg);
}

.network-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.network-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    min-height: 40px;
}

.network-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.network-badge.testnet {
    background: rgba(243, 179, 43, 0.2);
    border-color: #f3b32b;
    color: #f3b32b;
}

/* Instructions Section */
.instructions-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-primary);
    font-weight: 600;
}

.instructions-description {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    animation: fadeIn 0.8s ease-out 0.1s backwards;
}

.instructions-description p {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    align-items: stretch;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.step-card[data-step="1"] { animation-delay: 0.2s; }
.step-card[data-step="2"] { animation-delay: 0.4s; }
.step-card[data-step="3"] { animation-delay: 0.6s; }

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    animation: scaleIn 0.5s ease-out 0.8s backwards;
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    pointer-events: none;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 13px;
}

.step-sublist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.step-sublist li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 8px;
}

.sublist-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.sublist-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.sublist-text p {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.sublist-text p:last-child {
    margin-bottom: 0;
}

.sublist-text p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.keyword {
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(99, 102, 241, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.sublist-features {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sublist-features li {
    padding: 0;
    margin: 0;
    position: relative;
    padding-left: 18px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.sublist-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2em;
}

/* Deploy Section */
.deploy-section {
    margin-bottom: 60px;
}

.deploy-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.deploy-title {
    font-size: 0.95rem;
    margin-bottom: 10px;
    text-align: left;
    color: var(--text-primary);
    font-weight: 600;
}

.prompt-title {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
}

.deploy-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8rem;
}

.form-group input,
.form-group select {
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.75rem;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    width: 100%;
}

.form-group select {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.language-select option {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    padding: 8px 12px 8px 40px !important;
    font-size: 0.85rem;
    background-repeat: no-repeat !important;
    background-position: left 8px center !important;
    background-size: 20px 15px !important;
}

.language-select option[value="en"] {
    background-image: url("https://upload.wikimedia.org/wikipedia/en/a/ae/Flag_of_the_United_Kingdom.svg") !important;
}

.language-select option[value="tr"] {
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/b/b4/Flag_of_Turkey.svg") !important;
}

.language-select option[value="es"] {
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/9/9a/Flag_of_Spain.svg") !important;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-hint {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

/* Реферальное поле */
.referral-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.referral-input {
    flex: 1;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.75rem;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.referral-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.referral-apply-btn {
    padding: 6px 16px;
    background: var(--primary-color);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.referral-apply-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.referral-apply-btn:active {
    transform: translateY(0);
}

.referral-info {
    margin-top: 12px;
    animation: fadeIn 0.3s ease-out;
}

.referral-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    border-radius: 8px;
    font-size: 0.8rem;
}

.referral-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.referral-text {
    color: var(--text-primary);
    line-height: 1.4;
}

/* Выделение ключевых слов */
.keyword {
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Блок информации о кошельке */
.wallet-info {
    margin-top: 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.wallet-info-header {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wallet-info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wallet-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    font-size: 14px;
}

.wallet-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 80px;
}

.wallet-value {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
    text-align: right;
    flex: 1;
}

.deploy-btn.continue-application {
    --color: #fff;
    --background: #6366f1;
    --background-hover: #4f46e5;
    --background-left: #4f46e5;
    --folder: #F3E9CB;
    --folder-inner: #BEB393;
    --paper: #FFFFFF;
    --paper-lines: #BBC1E1;
    --paper-behind: #E1E6F9;
    --pencil-cap: #fff;
    --pencil-top: #6366f1;
    --pencil-middle: #fff;
    --pencil-bottom: #8b5cf6;
    --shadow: rgba(13, 15, 25, .2);
    border: none;
    outline: none;
    cursor: pointer;
    position: relative;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    line-height: 19px;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    padding: 17px 29px 17px 69px;
    transition: background 0.3s;
    color: var(--color);
    background: var(--bg, var(--background));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: visible;
}

.deploy-btn.continue-application > div {
    top: 0;
    left: 0;
    bottom: 0;
    width: 53px;
    position: absolute;
    overflow: hidden;
    border-radius: 5px 0 0 5px;
    background: var(--background-left);
}

.deploy-btn.continue-application > div .folder {
    width: 23px;
    height: 27px;
    position: absolute;
    left: 15px;
    top: 13px;
}

.deploy-btn.continue-application > div .folder .top {
    left: 0;
    top: 0;
    z-index: 2;
    position: absolute;
    transform: translateX(var(--fx, 0));
    transition: transform 0.4s ease var(--fd, 0.3s);
}

.deploy-btn.continue-application > div .folder .top svg {
    width: 24px;
    height: 27px;
    display: block;
    fill: var(--folder);
    transform-origin: 0 50%;
    transition: transform 0.3s ease var(--fds, 0.45s);
    transform: perspective(120px) rotateY(var(--fr, 0deg));
}

.deploy-btn.continue-application > div .folder:before,
.deploy-btn.continue-application > div .folder:after,
.deploy-btn.continue-application > div .folder .paper {
    content: "";
    position: absolute;
    left: var(--l, 0);
    top: var(--t, 0);
    width: var(--w, 100%);
    height: var(--h, 100%);
    border-radius: 1px;
    background: var(--b, var(--folder-inner));
}

.deploy-btn.continue-application > div .folder:before {
    box-shadow: 0 1.5px 3px var(--shadow), 0 2.5px 5px var(--shadow), 0 3.5px 7px var(--shadow);
    transform: translateX(var(--fx, 0));
    transition: transform 0.4s ease var(--fd, 0.3s);
}

.deploy-btn.continue-application > div .folder:after,
.deploy-btn.continue-application > div .folder .paper {
    --l: 1px;
    --t: 1px;
    --w: 21px;
    --h: 25px;
    --b: var(--paper-behind);
}

.deploy-btn.continue-application > div .folder:after {
    transform: translate(var(--pbx, 0), var(--pby, 0));
    transition: transform 0.4s ease var(--pbd, 0s);
}

.deploy-btn.continue-application > div .folder .paper {
    z-index: 1;
    --b: var(--paper);
}

.deploy-btn.continue-application > div .folder .paper:before,
.deploy-btn.continue-application > div .folder .paper:after {
    content: "";
    width: var(--wp, 14px);
    height: 2px;
    border-radius: 1px;
    transform: scaleY(0.5);
    left: 3px;
    top: var(--tp, 3px);
    position: absolute;
    background: var(--paper-lines);
    box-shadow: 0 12px 0 0 var(--paper-lines), 0 24px 0 0 var(--paper-lines);
}

.deploy-btn.continue-application > div .folder .paper:after {
    --tp: 6px;
    --wp: 10px;
}

.deploy-btn.continue-application > div .pencil {
    height: 2px;
    width: 3px;
    border-radius: 1px 1px 0 0;
    top: 8px;
    left: 105%;
    position: absolute;
    z-index: 3;
    transform-origin: 50% 19px;
    background: var(--pencil-cap);
    transform: translateX(var(--pex, 0)) rotate(35deg);
    transition: transform 0.4s ease var(--pbd, 0s);
}

.deploy-btn.continue-application > div .pencil:before,
.deploy-btn.continue-application > div .pencil:after {
    content: "";
    position: absolute;
    display: block;
    background: var(--b, linear-gradient(var(--pencil-top) 55%, var(--pencil-middle) 55.1%, var(--pencil-middle) 60%, var(--pencil-bottom) 60.1%));
    width: var(--w, 5px);
    height: var(--h, 20px);
    border-radius: var(--br, 2px 2px 0 0);
    top: var(--t, 2px);
    left: var(--l, -1px);
}

.deploy-btn.continue-application > div .pencil:before {
    -webkit-clip-path: polygon(0 5%, 5px 5%, 5px 17px, 50% 20px, 0 17px);
    clip-path: polygon(0 5%, 5px 5%, 5px 17px, 50% 20px, 0 17px);
}

.deploy-btn.continue-application > div .pencil:after {
    --b: none;
    --w: 3px;
    --h: 6px;
    --br: 0 2px 1px 0;
    --t: 3px;
    --l: 3px;
    border-top: 1px solid var(--pencil-top);
    border-right: 1px solid var(--pencil-top);
}

.deploy-btn.continue-application:before,
.deploy-btn.continue-application:after {
    content: "";
    position: absolute;
    width: 10px;
    height: 2px;
    border-radius: 1px;
    background: var(--color);
    transform-origin: 9px 1px;
    transform: translateX(var(--cx, 0)) scale(0.5) rotate(var(--r, -45deg));
    top: 26px;
    right: 16px;
    transition: transform 0.3s;
}

.deploy-btn.continue-application:after {
    --r: 45deg;
}

.deploy-btn.continue-application:hover:not(:disabled) {
    --cx: 2px;
    --bg: var(--background-hover);
    --fx: -40px;
    --fr: -60deg;
    --fd: .15s;
    --fds: 0s;
    --pbx: 3px;
    --pby: -3px;
    --pbd: .15s;
    --pex: -24px;
}

.deploy-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.loader {
    width: 80px;
    height: 14px;
    background: repeating-linear-gradient(-45deg, #fff 0 15px, transparent 0 18px) left/200% 100%;
    animation: l3 2s infinite linear;
    display: none;
    position: relative;
    margin-left: 10px;
    flex-shrink: 0;
    border-radius: 2px;
    overflow: hidden;
}

.loader.active {
    display: block;
}

.deploy-btn.continue-application .loader {
    position: relative;
    margin-left: 10px;
    margin-right: 0;
    right: auto;
    top: auto;
    transform: none;
    z-index: 10;
    width: 80px;
    height: 14px;
    background: repeating-linear-gradient(-45deg, #fff 0 15px, transparent 0 18px) left/200% 100%;
    background-size: 200% 100%;
    animation: l3 2s infinite linear;
    display: none;
}

.deploy-btn.continue-application .loader.active {
    display: block;
}

@keyframes l3 {
    100% { background-position: right; }
}

/* Contract Info */
.contract-info {
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
}

/* Эффект бумаги - фон для всей секции */
.contract-info::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(99, 102, 241, 0.03) 49%, rgba(99, 102, 241, 0.03) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(99, 102, 241, 0.03) 49%, rgba(99, 102, 241, 0.03) 51%, transparent 52%);
    background-size: 20px 20px;
    border-radius: 8px;
    z-index: -1;
    pointer-events: none;
}

/* Эффект тени для "прикрепленного листа" */
.contract-info::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    z-index: -2;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

/* Tabs */
.tabs-container {
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Эффект бумаги для карточек статистики */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(99, 102, 241, 0.02) 2px,
            rgba(99, 102, 241, 0.02) 4px
        );
    opacity: 0.5;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.5),
        0 2px 6px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.contract-quick-info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.quick-value {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--text-primary);
    word-break: break-all;
}

/* Activity Chart */
.activity-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.activity-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

#activityChart {
    width: 100%;
    max-width: 100%;
    height: 300px;
    margin-bottom: 20px;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 8px;
    display: block;
}

.activity-info {
    display: flex;
    gap: 32px;
}

.activity-item {
    display: flex;
    gap: 8px;
}

.activity-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.activity-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Statistics Header */
.stats-header {
    margin-bottom: 32px;
    text-align: center;
}

.stats-main-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.stats-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Candlestick Chart */
.candlestick-chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-legend {
    display: flex;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.legend-color.up {
    background: #10b981;
}

.legend-color.down {
    background: #ef4444;
}

#candlestickChart {
    width: 100%;
    max-width: 100%;
    height: 400px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    display: block;
    margin-bottom: 20px;
    cursor: crosshair;
}

#candlestickChart:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    transition: box-shadow 0.3s ease;
}

.chart-info {
    display: flex;
    gap: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.chart-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chart-info-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.chart-info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

/* Beautiful Stats Cards */
.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.stats-card-beautiful {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card-beautiful::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stats-card-beautiful:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

.stats-card-beautiful:hover::before {
    transform: scaleX(1);
}

.stats-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.stats-card-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 10px;
}

.stats-card-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.stats-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.stats-card-change {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.stats-card-change.positive {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.stats-card-change.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.contract-card {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        linear-gradient(225deg, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.6),
        0 1px 3px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Эффект "оторванного края" */
.contract-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 10px,
            rgba(99, 102, 241, 0.1) 10px,
            rgba(99, 102, 241, 0.1) 11px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 10px,
            rgba(99, 102, 241, 0.1) 10px,
            rgba(99, 102, 241, 0.1) 11px
        );
    border-radius: 8px;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

/* Верхняя полоса с градиентом */
.contract-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #10b981, #6366f1);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    z-index: 1;
}

.contract-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.7),
        0 2px 6px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.6);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.contract-title {
    font-size: 1.25rem;
    margin: 0;
    padding: 20px 30px;
    text-align: left;
    color: var(--text-primary);
    background: 
        linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(16, 185, 129, 0.05) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 10px,
            rgba(99, 102, 241, 0.03) 10px,
            rgba(99, 102, 241, 0.03) 11px
        );
    border-bottom: 2px dashed rgba(99, 102, 241, 0.3);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.contract-title::before {
    content: '✓';
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    animation: scaleIn 0.5s ease-out;
}

.contract-details {
    padding: 30px 35px;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(99, 102, 241, 0.02) 20px,
            rgba(99, 102, 241, 0.02) 21px
        );
    position: relative;
}

.detail-item {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.detail-item:first-child {
    grid-template-columns: 140px 1fr auto;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item:hover {
    background: rgba(99, 102, 241, 0.03);
    margin: 0 -32px;
    padding-left: 32px;
    padding-right: 32px;
}

.detail-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
}

.detail-value {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    word-break: break-all;
    font-weight: 500;
}

.detail-value-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.detail-value-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.detail-value-link .detail-value {
    color: inherit;
}

.detail-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.qr-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    height: 32px;
    white-space: nowrap;
}

.qr-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-1px);
}

/* Специальный стиль для баланса контракта */
.detail-item:nth-child(4) .detail-value {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 15px;
    animation: pulseBalance 2s ease-in-out infinite;
}

@keyframes pulseBalance {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.copy-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.contract-functions {
    padding: 24px 35px;
    background: rgba(15, 23, 42, 0.3);
    border-top: 1px solid var(--border-color);
    margin-top: 0;
}

.functions-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.functions-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
}

.functions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.function-btn {
    font-family: inherit;
    font-size: 14px;
    background: var(--btn-color, #6366f1);
    color: white;
    padding: 0.6em 1em;
    padding-left: 0.9em;
    display: flex;
    align-items: center;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.function-btn span {
    display: block;
    margin-left: 0.3em;
    transition: all 0.3s ease-in-out;
    font-weight: 500;
}

.function-btn svg {
    display: block;
    transform-origin: center center;
    transition: transform 0.3s ease-in-out;
    color: white;
}

.function-btn .svg-wrapper-1 {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.function-btn .svg-wrapper {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.function-btn:hover .svg-wrapper {
    animation: fly-1 0.6s ease-in-out infinite alternate;
}

.function-btn:hover svg {
    transform: translateX(0.5em) scale(1.1);
}

.function-btn:hover span {
    transform: translateX(0.3em);
}

.function-btn:active {
    transform: scale(0.95);
}

@keyframes fly-1 {
    from {
        transform: translateY(0.1em);
    }
    to {
        transform: translateY(-0.1em);
    }
}

/* Цвета для разных функций */
.function-btn[data-func="start"] {
    background: #10b981;
}

.function-btn[data-func="Stop"] {
    background: #ef4444;
}

.function-btn[data-func="withdrawal"] {
    background: #6366f1;
}

/* Referral Program Section */
.referral-code-section {
    margin-top: 30px;
    padding: 30px 35px;
    border-top: 1px solid var(--border-color);
}

.referral-header {
    margin-bottom: 20px;
}

.referral-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.referral-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.referral-info-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.referral-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.referral-info-item:last-child {
    margin-bottom: 0;
}

.referral-info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.referral-info-content {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.referral-info-content strong {
    color: var(--secondary-color);
}

.referral-requirements {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.referral-requirements-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.referral-requirements-list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

.referral-requirements-list li {
    margin-bottom: 8px;
}

.referral-requirements-list li:last-child {
    margin-bottom: 0;
}

.referral-get-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 15px;
}

.referral-status {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.referral-status-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.referral-status-content {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.referral-status-content strong {
    color: #ef4444;
    display: block;
    margin-bottom: 8px;
}

.referral-status-details {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    padding: 40px 0 20px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    background: rgba(15, 23, 42, 0.5);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    text-align: center;
    margin-bottom: 24px;
}

.footer-copyright {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.footer-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-separator {
    color: var(--text-secondary);
    opacity: 0.5;
}

.footer-disclaimer {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.disclaimer-text {
    font-size: 0.75rem;
    line-height: 1.7;
    color: var(--text-secondary);
    opacity: 0.8;
    text-align: justify;
    max-width: 1000px;
    margin: 0 auto;
}

.disclaimer-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .top-nav {
        padding: 8px 0;
    }

    .top-nav .container {
        padding: 0 10px;
        gap: 6px;
        justify-content: space-between;
    }

    .nav-links {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 0.75rem;
        gap: 4px;
    }

    .nav-link span:not(.nav-icon) {
        display: none;
    }

    .nav-icon {
        font-size: 1.1rem;
    }

    .language-selector {
        margin-left: 0;
    }

    .language-select {
        padding: 6px 30px 6px 32px;
        font-size: 0.75rem;
        min-width: 80px;
    }

    .status-indicator {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 11px;
    }

    .status-item {
        margin-bottom: 5px;
        font-size: 11px;
        gap: 6px;
    }

    .status-label {
        font-size: 10px;
    }

    .status-value {
        font-size: 11px;
    }

    .status-network-light {
        width: 7px;
        height: 7px;
    }

    .main-title {
        flex-direction: column;
        gap: 10px;
    }

    .hero-visual {
        margin: 30px 0;
        gap: 20px;
    }

    .profit-chart {
        max-width: 100%;
    }

    .hero-stats {
        gap: 15px;
        flex-direction: column;
        width: 100%;
    }

    .hero-stat-item {
        min-width: auto;
        width: 100%;
        padding: 15px 20px;
    }

    .hero-stat-value {
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .networks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .network-card {
        padding: 20px 15px;
    }

    .network-logo {
        font-size: 40px;
    }

    .instructions-description {
        padding: 16px;
        margin-bottom: 20px;
    }

    .instructions-description p {
        font-size: 0.85rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step-sublist {
        gap: 12px;
    }

    .step-sublist li {
        padding: 10px;
    }

    .sublist-label {
        font-size: 0.85rem;
    }

    .sublist-text {
        font-size: 0.8rem;
    }

    .sublist-text p {
        margin-bottom: 8px;
    }

    .keyword {
        font-size: 0.85em;
        padding: 1px 4px;
    }

    .sublist-features {
        margin-top: 8px;
        gap: 5px;
    }

    .sublist-features li {
        font-size: 0.8rem;
        padding-left: 16px;
    }

    .deploy-card,
    .contract-card {
        padding: 25px;
    }

    .wallet-info {
        padding: 15px;
    }

    .wallet-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .wallet-value {
        text-align: left;
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-cards-grid {
        grid-template-columns: 1fr;
    }

    .candlestick-chart-container {
        padding: 16px;
    }

    #candlestickChart {
        height: 250px;
    }

    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .chart-info {
        flex-direction: column;
        gap: 12px;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .footer {
        padding: 30px 15px 15px;
    }

    .footer-copyright {
        font-size: 0.9rem;
    }

    .footer-info {
        font-size: 0.85rem;
    }

    .footer-links {
        gap: 8px;
        font-size: 0.85rem;
    }

    .disclaimer-text {
        font-size: 0.7rem;
        text-align: left;
    }
}

/* Лог транзакций */
.transactions-log {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.log-header {
    margin-bottom: 20px;
}

.log-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.log-table-container {
    overflow-x: auto;
    max-height: 300px; /* Примерно для 4 транзакций */
    overflow-y: auto;
}

.log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.log-table thead {
    background: rgba(99, 102, 241, 0.1);
}

.log-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-color);
}

.log-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.log-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.tx-hash-link,
.block-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tx-hash-link:hover,
.block-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.method-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.method-badge.method-profit {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.method-badge.method-loss {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Стили для суммы транзакций */
.amount-profit {
    color: #10b981;
    font-weight: 600;
}

.amount-loss {
    color: #ef4444;
    font-weight: 600;
}

/* Pricing Info */
.pricing-info {
    margin-top: 20px;
    padding: 15px 25px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeIn 1s ease-out 1s backwards;
}

.pricing-badge {
    font-weight: 600;
    color: #10b981;
    font-size: 1rem;
}

.pricing-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pricing-text strong {
    color: #10b981;
    font-weight: 700;
}

/* Deploy Card Content - две колонки внутри одной карточки */
.deploy-card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.deploy-form-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.prompt-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

/* AI Bot Slider Wrapper */
.ai-bot-slider-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ai-bot-header {
    text-align: left;
    margin-bottom: 20px;
}

.ai-bot-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-bot-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Prompt Container - редактор промпта */
.prompt-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.prompt-editor {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    overflow-y: auto;
}

.prompt-editor-header {
    margin-bottom: 12px;
}

/* Убрали prompt-editor-title и prompt-editor-description - используем prompt-title */

.prompt-settings {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.setting-group {
    padding: 8px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 6px;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 4px;
}

.setting-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #10b981;
}

.setting-label-text {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8rem;
}

.setting-description {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin: 3px 0;
    line-height: 1.2;
}

.setting-options {
    margin-top: 8px;
    padding-left: 26px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.option-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #10b981;
}

.setting-input {
    width: 100%;
    padding: 5px 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.75rem;
    margin-top: 4px;
}

.setting-input:focus {
    outline: none;
    border-color: #10b981;
}

.setting-hint {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.2;
}

.slider-container-setting {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.setting-slider {
    flex: 1;
    height: 6px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.setting-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #10b981;
    border-radius: 50%;
    cursor: pointer;
}

.setting-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #10b981;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: #10b981;
    font-size: 0.8rem;
}

.setting-textarea {
    width: 100%;
    min-height: 50px;
    padding: 6px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    resize: vertical;
    margin-top: 4px;
}

.setting-textarea:focus {
    outline: none;
    border-color: #10b981;
}

.prompt-preview {
    margin-top: 8px;
    margin-bottom: 8px;
}

.prompt-preview .code-block {
    background: #0f172a;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    overflow: hidden;
}

.prompt-preview pre {
    margin: 0;
    padding: 8px;
    overflow-x: auto;
    max-height: 150px;
    overflow-y: auto;
    background: #0f172a;
}

.prompt-preview code {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.7rem;
    line-height: 1.3;
    color: #e2e8f0;
}

.prompt-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.prompt-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prompt-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.prompt-btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.prompt-btn-secondary {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.prompt-btn-secondary:hover {
    background: rgba(148, 163, 184, 0.2);
    transform: translateY(-2px);
}

/* Убрали slider-wrapper - используем prompt-container */

.slide {
    display: none;
    padding: 20px;
    animation: fadeInSlide 0.5s ease-in-out;
    flex: 1;
    overflow-y: auto;
}

.slide.active {
    display: flex;
    flex-direction: column;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.slide-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.slide-icon {
    font-size: 1.5rem;
}

.slide-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Code Block */
.code-block {
    background: #0f172a;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(16, 185, 129, 0.1);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.code-lang {
    font-size: 0.7rem;
    font-weight: 600;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.copy-btn {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 4px;
    padding: 4px 8px;
    color: #10b981;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(16, 185, 129, 0.3);
    transform: scale(1.05);
}

.code-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    height: 100%;
}

/* Убрать max-height для статичного блока */
.prompt-container .code-block pre {
    max-height: none;
}

.code-block pre {
    margin: 0;
    padding: 15px;
    overflow-x: auto;
    overflow-y: auto;
    background: #0f172a;
    flex: 1;
    max-height: 400px;
}

.code-block code {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #e2e8f0;
    display: block;
}

.code-block code .comment {
    color: #64748b;
}

.code-block code .string {
    color: #10b981;
}

.code-block code .keyword {
    color: #3b82f6;
}

.code-block code .function {
    color: #f59e0b;
}

/* Slider Navigation */
.slider-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.slider-btn {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: #10b981;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-dots {
    display: flex;
    gap: 12px;
    flex: 1;
    justify-content: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #10b981;
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.dot:hover {
    background: rgba(16, 185, 129, 0.6);
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .deploy-card-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .ai-deploy-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ai-bot-title {
        font-size: 1.3rem;
    }

    .ai-bot-description {
        font-size: 0.85rem;
    }

    .slide {
        padding: 15px;
    }

    .slide-content {
        min-height: auto;
    }

    .slide-title {
        font-size: 1.1rem;
    }

    .code-block pre {
        padding: 12px;
        max-height: 300px;
    }

    .code-block code {
        font-size: 0.75rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .pricing-info {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }
}

/* Модальное окно подтверждения деплоя */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    max-width: 380px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(99, 102, 241, 0.05);
}

.modal-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.modal-body {
    padding: 18px;
}

.modal-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}

.modal-info-item:last-child {
    margin-bottom: 0;
}

.modal-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.3);
}

.modal-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn-cancel {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.modal-btn-cancel:hover {
    background: rgba(148, 163, 184, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-btn-confirm {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.modal-btn-confirm:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #4338ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
    }

    .modal-header {
        padding: 12px 16px;
    }

    .modal-title {
        font-size: 0.9rem;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-footer {
        padding: 12px 16px;
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
        font-size: 0.8rem;
    }
}

/* QR-код модальное окно */
.qr-modal-content {
    max-width: 320px;
}

.qr-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 24px;
}

.qr-code-container {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-container canvas {
    max-width: 100%;
    height: auto;
}

.qr-address-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    text-align: center;
}

.qr-address-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.qr-address-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    background: rgba(15, 23, 42, 0.5);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .detail-item:first-child {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .detail-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .qr-modal-content {
        max-width: 90%;
    }

    .qr-code-container {
        padding: 12px;
    }

    .qr-code-container canvas {
        width: 200px;
        height: 200px;
    }

    .qr-btn {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
}

/* Toast уведомления */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.4s ease-out;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.toast.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
}

.toast.success {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.toast.success::before {
    background: var(--secondary-color);
}

.toast.error {
    border-color: #ef4444;
    color: #ef4444;
}

.toast.error::before {
    background: #ef4444;
}

.toast.info {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.toast.info::before {
    background: var(--primary-color);
}

.toast.warning {
    border-color: #f59e0b;
    color: #f59e0b;
}

.toast.warning::before {
    background: #f59e0b;
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Анимация успешного действия */
.success-pulse {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Улучшенные hover эффекты */
.deploy-btn:active {
    transform: scale(0.98);
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.copy-btn:active,
.qr-btn:active {
    transform: scale(0.95);
}

/* Анимация загрузки для кнопок */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .toast-container {
        top: 80px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .top-nav .container {
        gap: 4px;
        padding: 0 8px;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-link {
        padding: 6px 8px;
        min-width: 36px;
        justify-content: center;
    }

    .language-select {
        padding: 6px 25px 6px 28px;
        min-width: 70px;
        font-size: 0.7rem;
    }
}
