/* NexChange 2026 - Modern Gradient Theme */

:root {
    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-success: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-dark: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);

    /* Solid Colors */
    --color-primary: #667eea;
    --color-secondary: #764ba2;
    --color-accent: #4facfe;
    --color-success: #43e97b;
    --color-warning: #feca57;
    --color-error: #ff6b6b;

    /* Neutral Colors */
    --color-bg-light: #f8f9fa;
    --color-bg-dark: #1a1a2e;
    --color-text-light: #ffffff;
    --color-text-dark: #2d3436;
    --color-text-muted: #636e72;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(102, 126, 234, 0.1);
    --shadow-md: 0 4px 16px rgba(102, 126, 234, 0.15);
    --shadow-lg: 0 8px 32px rgba(102, 126, 234, 0.2);
    --shadow-xl: 0 16px 48px rgba(102, 126, 234, 0.25);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Global Overrides */
body {
    background: var(--gradient-dark);
    background-attachment: fixed;
    color: var(--color-text-light);
}

.wrapper {
    background: transparent;
}

/* Header Styles */
.header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.header__btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 28px;
    color: var(--color-text-light);
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.header__btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.header__link {
    color: var(--color-text-light);
    transition: color var(--transition-fast);
    position: relative;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width var(--transition-normal);
}

.header__link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: transparent;
    padding: 80px 0;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.hero__btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-light);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    margin-top: 32px;
}

.hero__btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Exchange Section */
.exchange {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(20px);
    padding: 80px 0;
    border-radius: var(--radius-xl);
    margin: 40px 0;
}

.exchange__title {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 48px;
}

.exchange__block {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.exchange__block:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(102, 126, 234, 0.4);
}

.exchange__block-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.exchange__block-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

.exchange__block-item_active {
    background: var(--gradient-primary);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.exchange__block-input {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    color: var(--color-text-light);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

/* ИСПРАВЛЕНИЕ: Капча - улучшенная видимость */
.exchange__block-input-captcha {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    text-align: center !important;
    border: 2px solid rgba(102, 126, 234, 0.5) !important;
    min-width: 60px !important;
    padding: 12px 16px !important;
}

.exchange__block-input-captcha:read-only {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #000000 !important;
    cursor: not-allowed;
}

.exchange__block-captcha {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.exchange__block-sign {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
}

.exchange__block-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.exchange__block-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-light);
    width: 100%;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.exchange__block-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Transaction Section */
.transaction {
    padding: 80px 0;
}

.transaction__title {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.transaction__order {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.transaction__order span {
    color: var(--color-accent);
    font-weight: 600;
}

.transaction__block {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.transaction__status {
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.transaction__status_green {
    background: var(--gradient-success);
    color: var(--color-text-dark);
}

.transaction__status_red {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: var(--color-text-light);
}

.transaction__status_blue {
    background: var(--gradient-accent);
    color: var(--color-text-light);
}

/* Transactions Table */
.transactions {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(20px);
    padding: 80px 0;
    border-radius: var(--radius-xl);
    margin: 40px 0;
}

.transactions__title {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
}

.transactions__table {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.transactions__th {
    background: var(--gradient-primary);
    color: var(--color-text-light);
    padding: 16px;
    font-weight: 600;
}

.transactions__td {
    padding: 16px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.transactions__td_blue {
    color: var(--color-accent);
    font-weight: 600;
}

/* Footer */
.footer {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    padding: 32px 0;
    margin-top: 80px;
}

.footer__text {
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* Preloader */
.preloader__circle {
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }

    .exchange__title,
    .transaction__title {
        font-size: 2rem;
    }
}
