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

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #a78bfa 0%, #06b6d4 100%);
    --accent-color: #667eea;
    --bg-dark: #000000;
    --card-bg: rgba(15, 15, 15, 0.85);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    min-height: 100vh;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
}

.dark-theme {
    background: #000000;
}

.hidden {
    display: none !important;
}

/* VIDEO BACKGROUND */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.video-element {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.4;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.3) 0%, 
        rgba(118, 75, 162, 0.4) 50%,
        rgba(16, 185, 129, 0.3) 100%);
    backdrop-filter: blur(2px);
}

/* INTERACTIVE PARTICLE BACKGROUND */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* HEADER - GLASSMORPHISM */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    animation: slideDown 0.5s ease-out;
}

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

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* BALANCE CARDS */
.balance-cards {
    display: flex;
    gap: 1rem;
    margin-right: 1.5rem;
}

.balance-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.2);
}

.balance-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(167, 139, 250, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(139, 92, 246, 0.3);
}

.add-token-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.add-token-btn:hover {
    background: rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.7);
    transform: scale(1.1);
}

.add-token-btn svg {
    width: 16px;
    height: 16px;
}

.balance-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.balance-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.balance-info {
    display: flex;
    flex-direction: column;
}

.balance-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.balance-amount {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}

/* CONNECT BUTTON */
.connect-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    white-space: nowrap;
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* WALLET BUTTON CONTAINER */
.wallet-button-container {
    position: relative;
}

/* LOGOUT DROPDOWN */
.logout-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 0.5rem;
    min-width: 150px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* MAIN CONTENT */
.main-content {
    position: relative;
    z-index: 10;
    flex: 1;
    padding: 5.5rem 1.5rem 5rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.presale-container {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

/* PRESALE HEADER */
.presale-header {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    animation: fadeIn 0.7s ease-out;
}

.presale-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: white;
}

.gradient-text {
    background: linear-gradient(135deg, #c4b5fd 0%, #5eead4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.6)) 
            drop-shadow(0 0 6px rgba(94, 234, 212, 0.4));
    font-weight: 800;
    position: relative;
}

.presale-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* MODERN SWAP CARD - ULTRA LIQUID GLASS */
.swap-card-modern {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 1.25rem;
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.25),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 0 rgba(255, 255, 255, 0.05);
    animation: fadeInUp 0.8s ease-out;
    overflow: hidden;
}

/* Световой блик сверху карточки */
.swap-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 100%
    );
    border-radius: 28px 28px 0 0;
    pointer-events: none;
    z-index: 1;
}

/* Градиентный отблеск по краям */
.swap-card-modern::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        135deg,
        rgba(167, 139, 250, 0.2) 0%,
        rgba(139, 92, 246, 0.15) 25%,
        rgba(6, 182, 212, 0.15) 50%,
        rgba(102, 126, 234, 0.2) 75%,
        rgba(167, 139, 250, 0.2) 100%
    );
    border-radius: 28px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(12px);
}

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

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

.swap-section {
    margin-bottom: 0.4rem;
    position: relative;
    z-index: 1;
}

.swap-label {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.swap-label svg {
    color: rgba(139, 92, 246, 0.8);
}

.swap-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

.swap-input-wrapper:focus-within {
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow: 
        0 0 25px rgba(139, 92, 246, 0.25),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
}

.swap-input-modern {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    font-family: 'Inter', sans-serif;
}

.swap-input-modern::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.swap-input-modern::-webkit-inner-spin-button,
.swap-input-modern::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.usd-equivalent-modern {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.vertical-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0.75rem;
}

.token-selector {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 110px;
    width: 110px;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
}

.token-selector:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow: 0 4px 12px 0 rgba(139, 92, 246, 0.2);
}

.token-selector-disabled {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    cursor: default;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    min-width: 110px;
    width: 110px;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
}

.token-selector-disabled:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.token-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

/* AXS иконка немного меньше для баланса */
.token-selector-disabled .token-icon {
    width: 24px;
    height: 24px;
}

.token-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.token-symbol {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.token-selector:hover .dropdown-arrow {
    color: rgba(139, 92, 246, 0.9);
    transform: translateY(2px);
}

.swap-add-token-btn {
    display: none !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    position: absolute;
    right: -36px;
    top: 50%;
    transform: translateY(-50%);
}

.swap-add-token-btn:hover {
    background: rgba(102, 126, 234, 0.5);
    transform: translateY(-50%) scale(1.05);
}

.swap-add-token-btn svg {
    width: 16px;
    height: 16px;
}

.amount-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.amount-display {
    color: var(--text-secondary);
}

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

.available-label span {
    color: rgba(102, 126, 234, 0.9);
    font-weight: 600;
}

.quick-amount-buttons {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.quick-btn {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 55px;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
}

.quick-btn:hover {
    background: rgba(167, 139, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px 0 rgba(139, 92, 246, 0.2);
}

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

.swap-arrow-modern {
    display: flex;
    justify-content: center;
    margin: 0.75rem 0;
}

.swap-arrow-modern svg {
    width: 35px;
    height: 35px;
    padding: 8px;
    background: rgba(139, 92, 246, 0.2);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    color: #a78bfa;
    transition: all 0.3s ease;
}

.swap-arrow-modern:hover svg {
    transform: translateY(5px);
}

.price-details-modern {
    position: relative;
    margin-top: 0.85rem;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 0.8rem;
}

.price-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.price-value {
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Улучшенная видимость градиентного текста */
.price-value.gradient-text,
#receiveAmountText.gradient-text {
    background: linear-gradient(135deg, #e0d7ff 0%, #7dd3fc 50%, #5eead4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(167, 139, 250, 0.7)) 
            drop-shadow(0 0 16px rgba(94, 234, 212, 0.5));
    font-weight: 800;
    text-shadow: none;
}

.buy-button-modern {
    position: relative;
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.9rem;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.7) 0%, 
        rgba(118, 75, 162, 0.7) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 30px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
    overflow: hidden;
}

/* Световой блик на кнопке */
.buy-button-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
}

.buy-button-modern:hover:not(:disabled)::before {
    left: 100%;
}

.buy-button-modern:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 40px rgba(102, 126, 234, 0.6),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.35);
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.85) 0%, 
        rgba(118, 75, 162, 0.85) 100%);
}

.buy-button-modern:active:not(:disabled) {
    transform: translateY(0);
}

.buy-button-modern:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(100, 100, 100, 0.3);
}

/* PRICE PROGRESS INDICATOR */
.price-progress-container {
    max-width: 520px;
    margin: 0.85rem auto 0;
    display: block;
}

.price-progress-card {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease-out 0.3s both;
    overflow: hidden;
}

/* Световой блик на progress card */
.price-progress-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 100%
    );
    border-radius: 24px 24px 0 0;
    pointer-events: none;
}

.price-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.next-price .price-value {
    font-size: 1.5rem;
}

.next-price .price-value.gradient-text {
    background: linear-gradient(135deg, #e0d7ff 0%, #a78bfa 30%, #5eead4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 3px 10px rgba(167, 139, 250, 0.8)) 
            drop-shadow(0 0 20px rgba(94, 234, 212, 0.6));
    font-weight: 900;
}

.price-progress-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6 0%, #06b6d4 100%);
    border-radius: 10px;
    position: relative;
    transition: width 0.5s ease;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.progress-pulse {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateX(0); opacity: 0; }
    50% { transform: translateX(-100px); opacity: 1; }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.progress-percentage {
    font-size: 0.85rem;
    color: #06b6d4;
    font-weight: 700;
}

/* FOOTER - GLASSMORPHISM */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    width: 100%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -8px 32px 0 rgba(0, 0, 0, 0.37);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
    animation: scaleIn 0.3s ease-out;
    overflow: hidden;
}

/* Световой блик на модалке */
.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.12) 0%,
        transparent 100%
    );
    border-radius: 28px 28px 0 0;
    pointer-events: none;
}

.modal-content-sm {
    max-width: 400px;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* WALLET OPTIONS - Список */
.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wallet-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 
        0 4px 16px 0 rgba(31, 38, 135, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

.wallet-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(167, 139, 250, 0.5);
    transform: translateX(5px);
    box-shadow: 
        0 6px 20px 0 rgba(139, 92, 246, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

.wallet-option:active {
    transform: translateX(3px);
}

.wallet-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
}

.wallet-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wallet-name {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

/* TOKEN LIST */
.token-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.token-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 
        0 4px 16px 0 rgba(31, 38, 135, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

.token-list-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(167, 139, 250, 0.5);
    transform: translateX(5px);
    box-shadow: 
        0 6px 20px 0 rgba(139, 92, 246, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
}

.token-list-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.token-list-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.token-list-info {
    flex: 1;
}

.token-list-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white;
}

.token-list-balance {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==============================================
   NAVIGATION MENU (BUY/STAKING)
   ============================================== */
.main-nav {
    display: flex;
    gap: 2rem;
    margin-left: 3rem;
}

.nav-btn {
    padding: 0;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.nav-btn.active {
    color: white;
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6);
    border-radius: 2px;
}

/* ==============================================
   STAKING SECTION
   ============================================== */
.staking-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Staking Config Card - Horizontal Layout */
.staking-config-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.staking-left-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.staking-right-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: space-between;
}

/* Staking Sub-Navigation (Stake / My Stake) */
.staking-subnav {
    display: flex;
    gap: 0;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 0.35rem;
    margin-bottom: 1.5rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.staking-subnav-btn {
    padding: 0.7rem 2rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.staking-subnav-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.staking-subnav-btn.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(59, 130, 246, 0.4));
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Staking Content Sections */
.staking-content-section {
    display: none;
}

.staking-content-section.active {
    display: block;
}

/* Staking Balance Card */
.staking-balance-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);
}

.balance-info-section {
    text-align: center;
}

.balance-label-staking {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.balance-amount-staking {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.balance-token-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.token-symbol-gray {
    color: var(--text-muted);
    font-size: 1.5rem;
}

/* Staking Period Section */
.staking-period-section {
    background: rgba(17, 24, 39, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
}

/* Amount Section in Staking */
.staking-left-section .swap-section {
    background: rgba(17, 24, 39, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 0;
}

.period-slider-container {
    margin: 1rem 0;
}

.period-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, 
        rgba(139, 92, 246, 0.2) 0%, 
        rgba(139, 92, 246, 0.4) 50%,
        rgba(59, 130, 246, 0.6) 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.period-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.5);
    transition: all 0.3s ease;
}

.period-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.7);
}

.period-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.5);
    transition: all 0.3s ease;
}

.period-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.7);
}

.period-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding: 0 0.25rem;
}

.period-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Period Info Card */
.period-info-card {
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.period-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.period-info-row:not(:last-child) {
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.info-value {
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

/* Staking Divider */
.staking-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(139, 92, 246, 0.3) 50%, 
        transparent 100%);
    margin: 1.5rem 0;
}

/* Quick Amount Buttons */
.quick-amount-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.quick-amount-btn {
    flex: 1;
    padding: 0.65rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-amount-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.quick-amount-btn:active {
    transform: translateY(0);
}

/* Rewards Section */
.rewards-section {
    background: rgba(17, 24, 39, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rewards-card {
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.reward-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
}

.reward-row:not(:last-child) {
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.reward-row.total-row {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(139, 92, 246, 0.3);
}

.reward-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.reward-value {
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.reward-value-large {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c4b5fd 0%, #7dd3fc 50%, #5eead4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
}

/* My Stake Section - Two Row Layout */
.my-stake-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.my-stake-grid {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) minmax(140px, 1fr) minmax(120px, 1fr);
    gap: 2rem;
    width: 100%;
}

.my-stake-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.my-stake-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.my-stake-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    font-variant-numeric: tabular-nums;
    min-width: 140px;
}

.my-stake-value.gradient {
    background: linear-gradient(135deg, #c4b5fd 0%, #7dd3fc 50%, #5eead4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
}

.my-stake-value.reward {
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.5));
    animation: rewardPulse 2s ease-in-out infinite;
}

@keyframes rewardPulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.8));
    }
}

.my-stake-divider {
    display: none;
}

.my-stake-bottom-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.my-stake-progress-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.my-stake-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.my-stake-unlock-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.my-stake-time-remaining {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.my-stake-progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.my-stake-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6, #22d3ee);
    background-size: 200% 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
    animation: progressShine 3s ease-in-out infinite;
}

@keyframes progressShine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.my-stake-withdraw-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 180px;
}

.my-stake-withdraw-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.5);
}

.my-stake-withdraw-btn:disabled {
    background: rgba(139, 92, 246, 0.2);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    box-shadow: none;
}

.no-active-stake-message {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px dashed rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    margin-top: 0;
}

/* My Stake Card Container */
#myStakeCard {
    margin-top: 0;
}

/* Multiple Stakes Container */
.multiple-stakes-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 0;
}

.no-active-stake-message svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    opacity: 0.5;
    color: var(--text-muted);
}

.no-active-stake-message h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.no-active-stake-message p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Active Stakes Section */
.active-stakes-section {
    margin-top: 2.5rem;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.active-stakes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* No Stakes Message */
.no-stakes-message {
    text-align: center;
    padding: 3rem 1.5rem;
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px dashed rgba(139, 92, 246, 0.3);
    border-radius: 16px;
}

.no-stakes-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    opacity: 0.5;
    color: var(--text-muted);
}

.no-stakes-message p {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.no-stakes-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted) !important;
    margin: 0 !important;
}

/* Stake Card (for active stakes) */
.stake-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stake-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.2);
}

.stake-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.stake-amount-display {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.stake-status {
    padding: 0.4rem 0.8rem;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4ade80;
}

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

.stake-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stake-info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stake-info-value {
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.stake-profit-section {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.stake-profit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.stake-profit-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stake-profit-value {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stake-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.stake-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.stake-time-remaining {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Withdraw Button (for completed stakes) */
.withdraw-btn {
    width: 100%;
    padding: 0.8rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.withdraw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
}

.withdraw-btn:disabled {
    background: rgba(139, 92, 246, 0.2);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

/* SMALL LAPTOP SCREENS (13-14 inch) */
@media (max-width: 1440px) and (min-width: 769px) {
    .main-content {
        padding: 6rem 1.5rem 5rem;
    }
    
    .presale-container {
        max-width: 480px;
    }
    
    .presale-header {
        margin-bottom: 1.5rem;
    }
    
    .presale-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .presale-subtitle {
        font-size: 1rem;
    }
    
    .swap-card-modern {
        padding: 1.5rem;
    }
    
    .swap-input-wrapper {
        padding: 0.85rem;
    }
    
    .swap-input-modern {
        font-size: 1.5rem;
    }
    
    .vertical-divider {
        height: 45px;
    }
    
    .token-selector {
        min-width: 110px;
        width: 110px;
        padding: 0.65rem 0.85rem;
    }
    
    .token-selector-disabled {
        min-width: 110px;
        width: 110px;
    }
    
    .swap-arrow-modern {
        margin: 1rem 0;
    }
    
    .price-details-modern {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .price-row {
        padding: 0.4rem 0;
        font-size: 0.875rem;
    }
    
    .buy-button-modern {
        padding: 1rem;
        font-size: 1rem;
        margin-top: 1rem;
    }
    
    .price-progress-container {
        margin: 1rem auto 0;
    }
    
    .price-progress-card {
        padding: 1.25rem;
        gap: 1.25rem;
    }
    
    .price-point {
        min-width: 70px;
    }
    
    .price-value {
        font-size: 1.1rem;
    }
    
    .next-price .price-value {
        font-size: 1.3rem;
    }
    
    .balance-cards {
        gap: 0.75rem;
        margin-right: 1.5rem;
    }
    
    .balance-card {
        padding: 0.65rem 0.85rem;
    }
    
    .balance-icon img {
        width: 26px;
        height: 26px;
    }
    
    .balance-amount {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 1rem;
    }
}

/* VERY SMALL LAPTOPS (13 inch and below) */
@media (max-height: 850px) and (min-width: 769px) {
    .main-content {
        padding: 5rem 1.5rem 4.5rem;
    }
    
    .presale-header {
        margin-bottom: 1rem;
    }
    
    .presale-title {
        font-size: 1.75rem;
        margin-bottom: 0.4rem;
    }
    
    .presale-subtitle {
        font-size: 0.95rem;
    }
    
    .swap-card-modern {
        padding: 1.25rem;
    }
    
    .swap-section {
        margin-bottom: 0.35rem;
    }
    
    .swap-label {
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
    }
    
    .swap-input-wrapper {
        padding: 0.75rem;
    }
    
    .swap-input-modern {
        font-size: 1.35rem;
    }
    
    .vertical-divider {
        height: 40px;
    }
    
    .amount-info {
        margin-top: 0.5rem;
        font-size: 0.8rem;
    }
    
    .quick-amount-buttons {
        margin-top: 0.5rem;
    }
    
    .quick-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        min-width: 55px;
    }
    
    .swap-arrow-modern {
        margin: 0.75rem 0;
    }
    
    .swap-arrow-modern svg {
        width: 35px;
        height: 35px;
        padding: 8px;
    }
    
    .price-details-modern {
        padding: 0.85rem;
        margin-top: 0.85rem;
    }
    
    .price-row {
        padding: 0.35rem 0;
        font-size: 0.8rem;
    }
    
    .buy-button-modern {
        padding: 0.9rem;
        font-size: 0.95rem;
        margin-top: 0.85rem;
    }
    
    .price-progress-container {
        margin: 0.75rem auto 0;
    }
    
    .price-progress-card {
        padding: 1rem;
        gap: 1rem;
    }
    
    .price-point {
        min-width: 65px;
        gap: 0.35rem;
    }
    
    .price-label {
        font-size: 0.7rem;
    }
    
    .price-value {
        font-size: 1rem;
    }
    
    .next-price .price-value {
        font-size: 1.2rem;
    }
    
    .progress-bar-bg {
        height: 10px;
    }
    
    .progress-text,
    .progress-percentage {
        font-size: 0.75rem;
    }
    
    .header-container {
        padding: 0.75rem 1.25rem;
    }
    
    .logo-img {
        width: 36px;
        height: 36px;
    }
    
    .logo-text {
        font-size: 1.35rem;
    }
    
    .balance-cards {
        gap: 0.65rem;
        margin-right: 1.25rem;
    }
    
    .balance-card {
        padding: 0.6rem 0.8rem;
    }
    
    .balance-icon {
        width: 28px;
        height: 28px;
    }
    
    .balance-icon img {
        width: 24px;
        height: 24px;
    }
    
    .balance-label {
        font-size: 0.7rem;
    }
    
    .balance-amount {
        font-size: 0.85rem;
    }
    
    .connect-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 0.85rem;
    }
    
    .footer-text {
        font-size: 0.8rem;
    }
}

/* TABLET STYLES */
@media (max-width: 1024px) {
    .my-stake-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .my-stake-value {
        font-size: 1.1rem;
        min-width: 120px;
    }
    
    .my-stake-bottom-row {
        gap: 1rem;
    }
}

/* ==============================================
   MOBILE HAMBURGER MENU
   ============================================== */

/* Mobile Menu Button (Hamburger) */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(
        135deg,
        rgba(167, 139, 250, 0.15) 0%,
        rgba(139, 92, 246, 0.1) 100%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.75rem;
    flex-shrink: 0;
    box-shadow: 
        0 4px 12px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

/* Animated pulse effect */
.mobile-menu-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.3) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
    opacity: 0;
}

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

.mobile-menu-btn:hover {
    background: linear-gradient(
        135deg,
        rgba(167, 139, 250, 0.25) 0%,
        rgba(139, 92, 246, 0.2) 100%
    );
    border-color: rgba(167, 139, 250, 0.5);
    transform: scale(1.05);
    box-shadow: 
        0 6px 16px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

.hamburger-icon {
    width: 24px;
    height: 24px;
    color: #c4b5fd;
    filter: drop-shadow(0 2px 4px rgba(167, 139, 250, 0.4));
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover .hamburger-icon {
    color: #e0d7ff;
    filter: drop-shadow(0 2px 8px rgba(167, 139, 250, 0.6));
}

/* Mobile Menu Modal */
.mobile-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 150;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.mobile-menu-modal.active {
    display: flex;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    animation: fadeIn 0.3s ease-out;
}

.mobile-menu-content {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-top: 2px solid rgba(167, 139, 250, 0.5);
    border-radius: 28px 28px 0 0;
    padding: 1.5rem;
    box-shadow: 
        0 -10px 50px rgba(139, 92, 246, 0.3),
        0 -20px 80px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
    animation: slideUpMenu 0.3s ease-out;
    overflow: hidden;
}

/* Gradient glow at top */
.mobile-menu-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(
        180deg,
        rgba(167, 139, 250, 0.2) 0%,
        rgba(139, 92, 246, 0.1) 50%,
        transparent 100%
    );
    pointer-events: none;
}

/* Animated gradient border effect */
.mobile-menu-content::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(167, 139, 250, 0.8) 25%,
        rgba(139, 92, 246, 0.9) 50%,
        rgba(167, 139, 250, 0.8) 75%,
        transparent 100%
    );
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

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

/* Wallet Address Display */
.mobile-menu-wallet {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(
        135deg,
        rgba(167, 139, 250, 0.2) 0%,
        rgba(139, 92, 246, 0.15) 100%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(167, 139, 250, 0.4);
    border-radius: 16px;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
    box-shadow: 
        0 4px 16px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

.mobile-wallet-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.3), rgba(139, 92, 246, 0.3));
    border: 1px solid rgba(167, 139, 250, 0.4);
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.mobile-wallet-icon svg {
    width: 24px;
    height: 24px;
    color: #c4b5fd;
    filter: drop-shadow(0 2px 4px rgba(167, 139, 250, 0.5));
}

#mobileWalletAddress {
    font-size: 0.95rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #e0d7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    filter: drop-shadow(0 1px 2px rgba(167, 139, 250, 0.3));
}

/* Menu Items */
.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
}

/* Shine effect on menu items */
.mobile-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(167, 139, 250, 0.2) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
}

.mobile-menu-item:hover::before,
.mobile-menu-item:active::before {
    left: 100%;
}

.mobile-menu-item:hover,
.mobile-menu-item:active {
    background: linear-gradient(
        135deg,
        rgba(167, 139, 250, 0.25) 0%,
        rgba(139, 92, 246, 0.2) 100%
    );
    border-color: rgba(167, 139, 250, 0.5);
    transform: translateX(8px);
    box-shadow: 
        0 6px 20px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
}

.mobile-menu-item svg {
    width: 24px;
    height: 24px;
    color: #c4b5fd;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(167, 139, 250, 0.3));
    transition: all 0.3s ease;
}

.mobile-menu-item:hover svg,
.mobile-menu-item:active svg {
    color: #e0d7ff;
    filter: drop-shadow(0 2px 8px rgba(167, 139, 250, 0.6));
    transform: scale(1.1);
}

.mobile-menu-item span {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    position: relative;
    z-index: 1;
}

/* Logout Button */
.mobile-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.75) 0%, 
        rgba(220, 38, 38, 0.75) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(239, 68, 68, 0.6);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 16px rgba(239, 68, 68, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Shine effect on logout button */
.mobile-logout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
}

.mobile-logout-btn:hover::before,
.mobile-logout-btn:active::before {
    left: 100%;
}

.mobile-logout-btn:hover,
.mobile-logout-btn:active {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.9) 0%, 
        rgba(220, 38, 38, 0.9) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 24px rgba(239, 68, 68, 0.5),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.35);
    border-color: rgba(239, 68, 68, 0.8);
}

.mobile-logout-btn svg {
    width: 20px;
    height: 20px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

.mobile-logout-btn span {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* MOBILE STYLES */
@media (max-width: 768px) {
    .header-container {
        padding: 0.75rem 1rem;
    }
    
    .balance-cards {
        display: none !important;
    }
    
    /* Hide main nav on mobile */
    .main-nav {
        display: none !important;
    }
    
    /* Hide desktop logout dropdown on mobile */
    .logout-dropdown {
        display: none !important;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .connect-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Show mobile menu button when wallet is connected */
    .mobile-menu-btn.show {
        display: flex !important;
    }
    
    /* Hide connect button when mobile menu is shown */
    .wallet-button-container.mobile-menu-active .connect-btn {
        display: none;
    }
    
    .main-content {
        padding: 6rem 1rem 5rem;
    }
    
    .presale-title {
        font-size: 1.75rem;
    }
    
    .presale-subtitle {
        font-size: 0.95rem;
    }
    
    .swap-card-modern {
        padding: 1.5rem;
    }
    
    .swap-input-wrapper {
        padding: 0.75rem;
    }
    
    .swap-input-modern {
        font-size: 1.5rem;
    }
    
    .vertical-divider {
        height: 40px;
        margin: 0 0.75rem;
    }
    
    .token-selector {
        min-width: 100px;
        width: 100px;
        padding: 0.5rem 0.75rem;
    }
    
    .token-selector-disabled {
        cursor: pointer !important;
        min-width: 100px;
        width: 100px;
    }
    
    .token-selector-disabled:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.08) !important;
    }
    
    .token-icon {
        width: 24px;
        height: 24px;
    }
    
    /* AXS иконка еще меньше на мобильной */
    .token-selector-disabled .token-icon {
        width: 20px;
        height: 20px;
    }
    
    .price-progress-card {
        flex-direction: column;
        padding: 1.25rem;
    }
    
    .price-point {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
    
    .price-progress-bar {
        width: 100%;
        order: 3;
    }
    
    /* Staking Mobile Styles */
    .staking-container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .main-nav {
        gap: 1.5rem;
        margin-left: 1.5rem;
    }
    
    .nav-btn {
        font-size: 0.85rem;
    }
    
    .staking-subnav {
        width: 100%;
        justify-content: center;
    }
    
    .staking-subnav-btn {
        flex: 1;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Balance Amount Staking - Adaptive for large numbers */
    .balance-amount-staking {
        font-size: 1.5rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .balance-amount-staking #availableToStake {
        max-width: 100%;
        word-break: break-word;
        overflow-wrap: break-word;
        text-align: center;
    }
    
    .balance-token-icon {
        width: 28px;
        height: 28px;
    }
    
    .token-symbol-gray {
        font-size: 1.2rem;
    }
    
    /* Staking Config - Switch to single column on mobile */
    .staking-config-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .period-labels {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .period-label {
        font-size: 0.7rem;
    }
    
    .my-stake-card {
        padding: 1.25rem;
        gap: 1.25rem;
    }
    
    .my-stake-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .my-stake-item {
        min-width: 0;
    }
    
    .my-stake-value {
        font-size: 1.1rem;
        min-width: 100px;
    }
    
    .my-stake-bottom-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .my-stake-progress-section {
        width: 100%;
    }
    
    .my-stake-progress-header {
        flex-direction: row;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .my-stake-unlock-date,
    .my-stake-time-remaining {
        font-size: 0.75rem;
    }
    
    .my-stake-withdraw-btn {
        width: 100%;
        min-width: auto;
    }
    
    .no-active-stake-message {
        padding: 3rem 1.5rem;
    }
    
    .no-active-stake-message svg {
        width: 64px;
        height: 64px;
    }
    
    .no-active-stake-message h3 {
        font-size: 1.1rem;
    }
}

/* SMALL MOBILE STYLES */
@media (max-width: 480px) {
    .staking-container {
        padding: 0 0.75rem;
    }
    
    /* Balance Amount Staking - Even smaller for tiny screens */
    .balance-amount-staking {
        font-size: 1.25rem;
        gap: 0.4rem;
    }
    
    .balance-token-icon {
        width: 24px;
        height: 24px;
    }
    
    .token-symbol-gray {
        font-size: 1rem;
    }
    
    .balance-label-staking {
        font-size: 0.8rem;
    }
    
    .staking-balance-card {
        padding: 1.25rem;
    }
    
    .my-stake-card {
        padding: 1rem;
        gap: 1rem;
    }
    
    .my-stake-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .my-stake-item {
        text-align: left;
    }
    
    .my-stake-label {
        font-size: 0.7rem;
    }
    
    .my-stake-value {
        font-size: 1rem;
        min-width: auto;
    }
    
    .my-stake-progress-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .my-stake-unlock-date,
    .my-stake-time-remaining {
        font-size: 0.7rem;
    }
    
    .my-stake-progress-bar {
        height: 8px;
    }
    
    .my-stake-withdraw-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .multiple-stakes-container {
        gap: 1rem;
    }
    
    /* Mobile Menu - Smaller screens adjustments */
    .mobile-menu-content {
        padding: 1.25rem 1rem;
    }
    
    .mobile-menu-wallet {
        padding: 0.85rem 1rem;
    }
    
    .mobile-wallet-icon {
        width: 38px;
        height: 38px;
    }
    
    .mobile-wallet-icon svg {
        width: 20px;
        height: 20px;
    }
    
    #mobileWalletAddress {
        font-size: 0.875rem;
    }
    
    .mobile-menu-items {
        gap: 0.65rem;
        margin-bottom: 1rem;
    }
    
    .mobile-menu-item {
        padding: 0.85rem 1rem;
    }
    
    .mobile-menu-item svg {
        width: 20px;
        height: 20px;
    }
    
    .mobile-menu-item span {
        font-size: 0.95rem;
    }
    
    .mobile-logout-btn {
        padding: 0.9rem 1rem;
    }
    
    .mobile-logout-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .mobile-logout-btn span {
        font-size: 0.95rem;
    }
}

/* UTILITY CLASSES */
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
