/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, #0a1a0a 0%, #000000 5%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(10, 26, 10, 0.98) 0%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(34, 197, 94, 0.3);
    z-index: 1000;
    padding: 1rem 0;
}

/* Десктопная версия - скрываем header-top-row и показываем оригинальные элементы */
.header-top-row {
    display: none;
}

/* Показываем оригинальные элементы на десктопе */
.header-container > .logo {
    display: flex;
}

.header-container > .language-selector {
    display: block;
}

.header-container > .wallet-section {
    display: block;
}

@media (max-width: 768px) {
    /* Предотвращаем горизонтальную прокрутку страницы */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    /* Убираем возможные белые отступы на мобильных устройствах */
    body {
        margin: 0;
        padding: 0;
        background: linear-gradient(180deg, #0a1a0a 0%, #000000 5%) !important;
    }
    
    html {
        margin: 0;
        padding: 0;
        background: #000000 !important;
    }
    
    .header {
        padding: 0.75rem 0;
        margin: 0;
    }
    
    .header-container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 1rem;
        margin: 0;
    }
    
    /* Скрываем оригинальные элементы на мобильной версии */
    .header-container > .logo {
        display: none;
    }
    
    .header-container > .language-selector {
        display: none;
    }
    
    .header-container > .wallet-section {
        display: none;
    }
    
    /* Первая строка: логотип, переключатель языка и кнопка подключения */
    .header-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .logo {
        flex: 1;
        font-size: 1.1rem;
    }
    
    .logo i {
        font-size: 1.3rem;
    }
    
    .header-controls {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .main-nav {
        order: 2;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .nav-link span {
        display: none;
    }
    
    .language-selector {
        order: 0;
    }
    
    .wallet-section {
        order: 0;
    }
    
    .language-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
        min-width: 40px;
    }
    
    .language-btn span {
        display: none;
    }
    
    .globe-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .connect-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .connect-btn span {
        display: inline;
    }
    
    .connect-btn i {
        margin-right: 0.3rem;
    }
    
    /* Убираем белый фон у основного контента */
    .main {
        background: transparent !important;
        margin: 0;
        padding: 0;
    }
    
    .container {
        background: transparent !important;
        margin: 0;
        padding: 0;
    }
    
    .language-dropdown {
        min-width: 70px;
    }
    
    .language-option {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .wallet-info {
        width: 100%;
        justify-content: center;
        max-width: 100%;
        padding: 0.4rem 0.8rem;
        height: 40px;
    }
    
    .wallet-balance {
        font-size: 0.75rem;
    }
    
    .connect-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        gap: 0.3rem;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.5rem 0;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .wallet-address {
        font-size: 0.6rem;
    }
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #22c55e;
}

.logo i {
    font-size: 1.8rem;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    transform: translateY(-1px);
    border-color: rgba(34, 197, 94, 0.3);
}

.nav-link.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.4);
}

.nav-link i {
    font-size: 1rem;
}

/* Language Selector */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 50px;
    justify-content: center;
}

.language-btn:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.globe-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    transition: all 0.3s ease;
}

.language-btn:hover .globe-icon {
    color: #4ade80;
    transform: scale(1.1);
}

.language-btn svg {
    transition: all 0.3s ease;
}

.language-selector.active .language-btn {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    padding: 0.3rem 0;
    min-width: 80px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transition: all 0.2s ease;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    font-weight: 500;
    justify-content: center;
}

.language-option:hover {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.language-option .flag {
    font-size: 1rem;
}

.language-option.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.wallet-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.connect-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 25%, #15803d 50%, #166534 75%, #14532d 100%);
    border: none;
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 8px rgba(34, 197, 94, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
    position: relative;
    overflow: hidden;
}

.connect-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.connect-btn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 4px 12px rgba(34, 197, 94, 0.3),
        0 2px 6px rgba(34, 197, 94, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 20%, #15803d 40%, #166534 60%, #14532d 80%, #052e16 100%);
}

.connect-btn:hover::before {
    left: 100%;
}

.connect-btn:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    height: 48px;
    min-width: auto;
    max-width: 200px;
}

.wallet-balance {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.9rem;
    white-space: nowrap;
    flex: 1;
}

.disconnect-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 0.4rem;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.3s ease;
}

.disconnect-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* Main Content */
.main {
    padding-top: 100px;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 0.5rem 1rem;
}

/* Page Content */
.page-content {
    width: 100%;
    max-width: 500px;
}

/* Увеличиваем ширину для ПК только для страницы "Введение в прибыль" */
@media (min-width: 768px) {
    #profit-intro-page.page-content {
        max-width: 1000px;
    }
}

.container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Расширенный контейнер для таблицы депозитов */
.deposits-section .container {
    max-width: 1000px;
}

/* Deposit Card */
.deposit-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
}

.card-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.page-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #22c55e;
}

.page-logo i {
    font-size: 1.4rem;
}

.card-title {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
}

.balance-text {
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Amount Input */
.amount-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.amount-input {
    width: 100%;
    background: rgba(17, 24, 39, 0.8);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
}

.amount-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.amount-input::placeholder {
    color: #6b7280;
}

.max-btn {
    position: absolute;
    right: 1rem;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: #22c55e;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.max-btn:hover {
    background: rgba(34, 197, 94, 0.3);
}

/* Duration Buttons */
.duration-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.duration-btn {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(31, 41, 55, 0.8) 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0.8rem;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.duration-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.3) 0%, 
        rgba(16, 163, 74, 0.2) 25%, 
        rgba(21, 128, 61, 0.1) 50%, 
        rgba(22, 101, 52, 0.2) 75%, 
        rgba(34, 197, 94, 0.3) 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.duration-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(34, 197, 94, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.1) 0%, 
        rgba(16, 163, 74, 0.05) 50%, 
        rgba(21, 128, 61, 0.1) 100%);
}

.duration-btn:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.6) 0%, 
        rgba(16, 163, 74, 0.4) 25%, 
        rgba(21, 128, 61, 0.3) 50%, 
        rgba(22, 101, 52, 0.4) 75%, 
        rgba(34, 197, 94, 0.6) 100%);
}

.duration-btn.active {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.2) 0%, 
        rgba(16, 163, 74, 0.15) 50%, 
        rgba(21, 128, 61, 0.2) 100%);
    color: #22c55e;
    transform: translateY(-1px);
    box-shadow: 
        0 6px 20px rgba(34, 197, 94, 0.3),
        0 3px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.duration-btn.active::before {
    opacity: 1;
    background: linear-gradient(135deg, 
        #22c55e 0%, 
        #16a34a 25%, 
        #15803d 50%, 
        #166534 75%, 
        #22c55e 100%);
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

.duration-btn:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

@keyframes glow-pulse {
    0% {
        box-shadow: 
            0 0 5px rgba(34, 197, 94, 0.5),
            0 0 10px rgba(34, 197, 94, 0.3),
            0 0 15px rgba(34, 197, 94, 0.1);
    }
    100% {
        box-shadow: 
            0 0 10px rgba(34, 197, 94, 0.8),
            0 0 20px rgba(34, 197, 94, 0.5),
            0 0 30px rgba(34, 197, 94, 0.2);
    }
}

/* Summary */
.summary {
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    color: #9ca3af;
    font-weight: 500;
}

.summary-value {
    color: #ffffff;
    font-weight: 600;
}

/* Pay Button */
.pay-btn {
    width: 100%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 25%, #15803d 50%, #166534 75%, #14532d 100%);
    border: none;
    border-radius: 16px;
    padding: 1.2rem;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 30px rgba(34, 197, 94, 0.3),
        0 4px 15px rgba(34, 197, 94, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pay-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.pay-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(34, 197, 94, 0.4),
        0 8px 25px rgba(34, 197, 94, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 20%, #15803d 40%, #166534 60%, #14532d 80%, #052e16 100%);
}

.pay-btn:hover:not(:disabled)::before {
    left: 100%;
}

.pay-btn:active:not(:disabled) {
    transform: translateY(-1px) scale(1.01);
    transition: all 0.1s ease;
}

.pay-btn:disabled {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 50%, #374151 100%);
    cursor: not-allowed;
    box-shadow: 0 4px 15px rgba(75, 85, 99, 0.2);
    opacity: 0.6;
}

.pay-btn:disabled:hover {
    transform: none;
}

.pay-btn:disabled::before {
    display: none;
}

/* Stats Section */
.stats-section {
    margin-top: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    font-size: 1.5rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    color: #22c55e;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.loading-spinner p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.toast.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.toast.warning {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        position: static;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .main {
        padding: 1rem 0.25rem;
    }
    
    .container {
        max-width: 100%;
        padding: 0 0.25rem;
    }
    
    .deposit-card {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
    .page-logo {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .page-logo i {
        font-size: 1.2rem;
    }
    
    .card-title {
        font-size: 1.8rem;
    }
    
    .form-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .amount-input-container {
        width: 100%;
    }
    
    .amount-input {
        width: 100%;
        font-size: 1.1rem;
    }
    
    .duration-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .duration-btn {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .summary {
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .summary-item {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    .pay-btn {
        padding: 1.4rem;
        font-size: 1.3rem;
        border-radius: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .toast-container {
        right: 1rem;
        left: 1rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .info-header h2 {
        font-size: 1.5rem;
    }
    
    .info-content h3 {
        font-size: 1.1rem;
    }
    
    .profit-table {
        font-size: 0.8rem;
    }
    
    .profit-table th,
    .profit-table td {
        padding: 0.5rem 0.3rem;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 0.5rem 0.1rem;
    }
    
    .container {
        padding: 0 0.1rem;
    }
    
    .deposit-card {
        padding: 0.8rem;
        margin: 0.25rem 0;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .duration-buttons {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .duration-btn {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .summary {
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .summary-item {
        font-size: 0.9rem;
    }
    
    .pay-btn {
        padding: 1.2rem;
        font-size: 1.1rem;
        border-radius: 18px;
    }
    
    .wallet-info {
        flex-direction: row;
        gap: 0.5rem;
        text-align: left;
        padding: 0.5rem 1rem;
        height: 44px;
        max-width: 180px;
    }
    
    .wallet-balance {
        font-size: 0.8rem;
    }
}

/* Landscape mode for small screens */
@media (max-width: 768px) and (orientation: landscape) {
    .main {
        padding: 60px 1rem 1rem;
    }
    
    .deposit-card {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .duration-buttons {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .duration-btn {
        padding: 0.6rem 0.3rem;
        font-size: 0.8rem;
    }
    
    .summary {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .deposits-section {
        padding: 1rem;
    }
    
    .deposits-header h2 {
        font-size: 1.3rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .main {
        padding: 0.5rem 0.1rem;
    }
    
    .container {
        padding: 0 0.1rem;
    }
    
    .deposit-card {
        padding: 0.75rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .duration-btn {
        padding: 0.7rem 0.3rem;
        font-size: 0.8rem;
    }
    
    .summary {
        padding: 0.75rem;
    }
    
    .deposits-section {
        padding: 0.75rem;
    }
    
    .deposits-header h2 {
        font-size: 1.2rem;
    }
}

/* Info Sections */
.info-section {
    margin-top: 1.5rem;
}

.info-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    overflow: hidden;
}

.info-header {
    text-align: center;
    margin-bottom: 2rem;
}

.info-header h2 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.info-header i {
    color: #4ade80;
}

.info-content {
    color: #ffffff;
    line-height: 1.8;
    font-size: 1rem;
}

.info-content h3 {
    color: #22c55e;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-content h3:first-child {
    margin-top: 0;
}

.info-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.info-content p:last-child {
    margin-bottom: 0;
}

.info-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.info-content li {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.info-content strong {
    color: #22c55e;
    font-weight: 600;
}

.info-content em {
    color: #9ca3af;
    font-style: italic;
}

/* Profit Tables */
.profit-table {
    margin: 1.5rem 0;
    overflow-x: auto;
}

.profit-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.profit-table th {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.8rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(34, 197, 94, 0.3);
}

.profit-table td {
    padding: 0.8rem;
    text-align: center;
    color: #ffffff;
    border-bottom: 1px solid rgba(34, 197, 94, 0.1);
    font-size: 0.9rem;
}

.profit-table tr:hover {
    background: rgba(34, 197, 94, 0.05);
}

.profit-table tr:last-child td {
    border-bottom: none;
}

/* Deposits Cards Section */
.deposits-section {
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    overflow: hidden;
}

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

.deposits-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.deposits-header i {
    color: #4ade80;
}

.sort-deposits-btn {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.2) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    color: #22c55e;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.sort-deposits-btn:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(22, 163, 74, 0.3) 100%);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    transform: translateY(-1px);
}

.sort-deposits-btn:active {
    transform: translateY(0);
}

.sort-deposits-btn.active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.4) 0%, rgba(22, 163, 74, 0.4) 100%);
    border-color: rgba(34, 197, 94, 0.6);
    color: #4ade80;
}

.sort-deposits-btn i {
    font-size: 0.9rem;
}


/* Cards Container */
.deposits-cards-container {
    width: 100%;
}

.deposits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    /* Убираем фиксированную высоту - сетка адаптируется под контент */
}

/* Стили для пустых ячеек в сетке */
.deposits-grid .deposit-card:empty {
    background: transparent;
    border: 1px dashed rgba(34, 197, 94, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(34, 197, 94, 0.3);
    font-size: 0.9rem;
}

.deposits-grid .deposit-card:empty::before {
    content: "Пусто";
}

/* Deposit Card */
.deposit-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 163, 74, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.deposit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.deposit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
}

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

.deposit-card-id {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.deposit-card-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
}

.deposit-card-status.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.deposit-card-status.matured {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.deposit-card-status.paid {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.deposit-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.deposit-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deposit-card-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.deposit-card-value {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
}

.deposit-card-value.amount {
    color: #22c55e;
    font-weight: 700;
}

.deposit-card-value.rate {
    color: #16a34a;
    font-weight: 600;
}

.deposit-card-value.total {
    color: #22c55e;
    font-weight: 700;
    font-size: 1rem;
}

.deposit-card-value.date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.deposit-card-value.tx-hash {
    font-size: 0.75rem;
    color: #4ade80;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
    word-break: break-all;
}

.deposit-card-value.tx-hash:hover {
    color: #22c55e;
    opacity: 0.9;
}

.deposit-card-value.tx-hash i {
    transition: transform 0.2s ease;
}

.deposit-card-value.tx-hash:hover i {
    transform: scale(1.1);
    opacity: 1;
}

.deposit-card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(34, 197, 94, 0.2);
    display: flex;
    justify-content: center;
}

.btn-delete-deposit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete-deposit:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

.btn-delete-deposit:active {
    transform: translateY(0);
}

.btn-delete-deposit i {
    font-size: 0.9rem;
}

/* Pagination */
.deposits-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #22c55e;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-info {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Empty State */
.deposits-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: #ffffff;
    opacity: 0.7;
}

.deposits-empty .empty-icon {
    font-size: 3rem;
    color: #22c55e;
    margin-bottom: 1rem;
}

.deposits-empty p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.deposits-empty span {
    font-size: 0.9rem;
    color: #ffffff;
    opacity: 0.6;
}

/* Responsive for deposits cards */
@media (max-width: 1024px) {
    .deposits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .deposits-section {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .deposits-header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .deposits-header h2 {
        font-size: 1.5rem;
    }
    
    .sort-deposits-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
        width: auto;
        align-self: center;
    }
    
    
    .deposits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .deposit-card {
        padding: 1rem;
    }
    
    .deposit-card-header {
        margin-bottom: 0.75rem;
    }
    
    .deposit-card-body {
        gap: 0.5rem;
    }
    
    .deposit-card-label {
        font-size: 0.75rem;
    }
    
    .deposit-card-value {
        font-size: 0.8rem;
    }
    
    .deposit-card-value.total {
        font-size: 0.9rem;
    }
    
    .deposits-pagination {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .pagination-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .pagination-info {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .deposits-section {
        padding: 0.75rem;
    }
    
    .deposits-header h2 {
        font-size: 1.3rem;
    }
    
    .sort-deposits-btn {
        padding: 0.45rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .deposit-card {
        padding: 0.75rem;
    }
    
    .deposit-card-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .deposit-card-value {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .deposits-section {
        padding: 1rem;
        margin-top: 0.5rem;
    }
    
    .deposits-header {
        padding: 0.75rem 1rem;
    }
    
    .deposits-header h2 {
        font-size: 1.5rem;
    }
    
    .deposits-table {
        min-width: 350px;
    }
    
    .deposits-table th,
    .deposits-table td {
        padding: 0.4rem 0.3rem;
        font-size: 0.65rem;
    }
    
    .deposits-table .return-date {
        font-size: 0.6rem;
    }
    
    /* Adjust column widths for small mobile */
    .deposits-table th:nth-child(1),
    .deposits-table td:nth-child(1) {
        width: 70px; /* Сумма */
    }
    
    .deposits-table th:nth-child(2),
    .deposits-table td:nth-child(2) {
        width: 60px; /* Время */
    }
    
    .deposits-table th:nth-child(3),
    .deposits-table td:nth-child(3) {
        width: 50px; /* Процент */
    }
    
    .deposits-table th:nth-child(4),
    .deposits-table td:nth-child(4) {
        width: 70px; /* Итого */
    }
    
    .deposits-table th:nth-child(5),
    .deposits-table td:nth-child(5) {
        width: 60px; /* Возврат */
    }
}

/* Footer */
.footer {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(10, 26, 10, 0.98) 100%);
    border-top: 1px solid rgba(34, 197, 94, 0.3);
    backdrop-filter: blur(15px);
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #22c55e;
}

.footer-logo i {
    font-size: 1.4rem;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-copyright p {
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 1rem 0;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-logo {
        font-size: 1.1rem;
    }
    
    .footer-logo i {
        font-size: 1.3rem;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 0.75rem 0;
    }
    
    .footer-logo {
        font-size: 1rem;
    }
    
    .footer-logo i {
        font-size: 1.2rem;
    }
    
    .footer-copyright {
        font-size: 0.75rem;
    }
}

/* MetaMask Modal Styles */
.metamask-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}

.modal-header h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(34, 197, 94, 0.2);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Instruction Steps */
.instruction-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.1);
}

.instruction-step:last-child {
    margin-bottom: 0;
}

.step-number {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-text {
    color: #e5e7eb;
    font-size: 0.95rem;
    line-height: 1.5;
}

.instruction-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.instruction-note i {
    color: #3b82f6;
    font-size: 1.1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.instruction-note p {
    color: #e5e7eb;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.manual-connection {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.1);
    border-radius: 12px;
}

.manual-connection h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.manual-connection h4 i {
    color: #22c55e;
}

.url-copy {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.url-copy input {
    flex: 1;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    color: #e5e7eb;
    font-size: 0.85rem;
    font-family: monospace;
}

.url-copy input:focus {
    outline: none;
    border-color: #22c55e;
}

.url-copy .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.manual-instruction {
    color: #9ca3af;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Connection Options */
.connection-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.connection-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.connection-option:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    transform: translateY(-2px);
}

.option-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.option-content {
    flex: 1;
}

.option-content h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.option-content p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.option-content .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.option-content .btn i {
    font-size: 0.8rem;
}

/* Install Options */
.install-options {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.install-option {
    text-align: center;
}

.install-option h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.store-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.store-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.store-link:hover {
    transform: scale(1.05);
}

.store-link img {
    height: 50px;
    border-radius: 8px;
}

.instruction-text {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.instruction-text p {
    color: #e5e7eb;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Button Styles for Modal */
.modal-footer .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-secondary {
    background: rgba(107, 114, 128, 0.2);
    color: #d1d5db;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover {
    background: rgba(107, 114, 128, 0.3);
    color: #ffffff;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .metamask-modal {
        padding: 0.5rem;
    }
    
    .modal-content {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 1rem 1rem 0.75rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem 1rem;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    .instruction-step {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .store-links {
        flex-direction: column;
        align-items: center;
    }
    
    .store-link img {
        height: 45px;
    }
    
    .connection-option {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .option-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .option-content h4 {
        font-size: 1rem;
    }
    
    .option-content p {
        font-size: 0.85rem;
    }
    
    .url-copy {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .url-copy .btn {
        width: 100%;
    }
    
    .manual-instruction {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .modal-header h3 {
        font-size: 1rem;
    }
    
    .step-text {
        font-size: 0.9rem;
    }
    
    .install-option h4 {
        font-size: 1rem;
    }
    
    .instruction-text p {
        font-size: 0.85rem;
    }
}

/* Styles for Participation, Bonuses and Profit Intro pages */
.alert-bar {
    background-color: #4a1e1e;
    color: #ffdddd;
    border: 1px solid #dc3545;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
}

.alert-bar strong {
    color: #ffc107;
}

.participation-content h1,
.profit-intro-content h1 {
    color: #007bff;
    border-bottom: 2px solid #28a745;
    padding-bottom: 10px;
    text-align: center;
    font-size: 2em;
    margin-top: 0;
}

.participation-content h2,
.profit-intro-content h2 {
    color: white;
    margin-top: 30px;
    border-left: 5px solid #00bfff;
    padding-left: 10px;
    font-size: 1.5em;
}

.step {
    margin-bottom: 30px;
    background: #333;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #007bff;
}

.step-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #28a745;
}

.step img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border: 1px solid #444;
    border-radius: 4px;
}

.note-footer {
    font-size: 0.9em;
    color: #777;
    text-align: center;
    margin-top: 20px;
}

.instruction-box {
    background-color: #333;
    padding: 20px;
    border: 1px solid #444;
    border-radius: 8px;
    margin-top: 20px;
}

.instruction-box p {
    color: #eee;
}

.instruction-box .step-title {
    font-weight: bold;
    color: #00bfff;
    margin-top: 15px;
    font-size: 1.1em;
}

.cta-button {
    display: block;
    width: 280px;
    margin: 40px auto 0;
    padding: 18px 0;
    text-align: center;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.2em;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #00bfff;
}

.note {
    margin-top: 30px;
    padding: 15px;
    background-color: #4a1e1e;
    border: 1px solid #dc3545;
    color: #ffdddd;
    border-radius: 5px;
    font-size: 0.9em;
}

.highlight {
    background-color: #28a745;
    color: white;
    font-weight: bold;
}

.profit-intro-content table,
.bonuses-content table,
.participation-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    min-width: 600px; /* Минимальная ширина для корректного отображения */
}

/* Контейнер для прокрутки таблицы на мобильных */
@media (max-width: 767px) {
    /* Строго ограничиваем ширину основных контейнеров */
    html {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden !important;
        position: relative;
    }
    
    body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden !important;
        position: relative;
    }
    
    .main {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden !important;
        position: relative;
    }
    
    .page-content {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden !important;
        position: relative;
    }
    
    .info-section {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .info-card {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .info-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Обертка для таблиц с прокруткой - строго ограничиваем ширину */
    .profit-intro-content,
    .bonuses-content,
    .participation-content {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
        position: relative;
        /* Создаем изолированный контекст прокрутки */
        contain: layout;
        /* Предотвращаем расширение */
        min-width: 0;
        /* Принудительно создаем блочный контекст */
        display: block;
    }
    
    /* Таблицы внутри контейнеров - могут быть шире, но не расширяют родителя */
    .profit-intro-content table,
    .bonuses-content table,
    .participation-content table {
        width: max-content !important;
        min-width: 600px !important;
        margin-left: 0;
        margin-right: 0;
        display: table !important;
        /* Таблица не должна влиять на ширину родителя */
        table-layout: auto;
        /* Принудительно ограничиваем влияние на родителя */
        position: relative;
    }
    
    /* Дополнительная защита - все элементы внутри контента кроме таблиц */
    .profit-intro-content > *:not(table),
    .bonuses-content > *:not(table),
    .participation-content > *:not(table) {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Стили для обертки таблиц, созданной через JavaScript */
    .table-scroll-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
        position: relative;
        margin: 25px 0;
    }
    
    .table-scroll-wrapper table {
        width: max-content !important;
        min-width: 600px !important;
        margin: 0 !important;
    }
}

.profit-intro-content th,
.profit-intro-content td,
.bonuses-content th,
.bonuses-content td,
.participation-content th,
.participation-content td {
    border: 1px solid #444;
    padding: 12px;
    text-align: center;
}

.profit-intro-content th,
.bonuses-content th,
.participation-content th {
    background-color: #333;
    color: white;
}

.profit-intro-content td,
.bonuses-content td,
.participation-content td {
    color: #eee;
}

.profit-intro-content ul,
.bonuses-content ul,
.participation-content ul {
    margin-left: 20px;
    color: #ccc;
}

.profit-intro-content ol,
.bonuses-content ol,
.participation-content ol {
    margin-left: 20px;
    color: #ccc;
}

.profit-intro-content hr,
.bonuses-content hr,
.participation-content hr {
    border-color: #333;
    margin: 30px 0;
}