* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #121212;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.purple-glow {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 150vw;
    height: 300px;
    background: radial-gradient( ellipse at center, rgba(153, 69, 255, 0.4) 0%, rgba(153, 69, 255, 0.2) 30%, rgba(123, 44, 191, 0.1) 50%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    animation: glow-shimmer 4s ease-in-out infinite alternate;
}

@keyframes glow-shimmer {
    0% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.1);
    }
    100% {
        opacity: 0.4;
        transform: translateX(-50%) scale(0.9);
    }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 28px;
    width: auto;
}

.nav-center {
    display: flex;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-family: "Google Sans", sans-serif;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-btn:hover {
    color: #ffffff;
}

.nav-btn:active {
    transform: scale(0.95);
}

.header-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sol-price-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(153, 69, 255, 0.1);
    border: 1px solid rgba(153, 69, 255, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.sol-price-display:hover {
    background: rgba(153, 69, 255, 0.15);
    border-color: rgba(153, 69, 255, 0.4);
}

.sol-price-label {
    font-family: "Google Sans", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.sol-price-value {
    font-family: "Google Sans", sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
}

.btn-multiple {
    background: linear-gradient(135deg, #9945ff 0%, #7b2cbf 100%);
    color: #ffffff;
    border: none;
    font-family: "Google Sans", sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(153, 69, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-multiple::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 25px 25px 0 0;
}

.btn-multiple:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(153, 69, 255, 0.4);
}

.btn-multiple:active {
    transform: translateY(0);
}

.main-content {
    margin-top: 100px;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    min-height: 40vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6rem;
}


/* Global Animated Lines */

.global-animated-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.global-animated-lines::before,
.global-animated-lines::after {
    content: "";
    position: absolute;
    width: 1px;
    background: linear-gradient( to bottom, transparent 0%, rgba(153, 69, 255, 0.6) 50%, transparent 100%);
    animation: line-vertical 8s infinite ease-in-out;
}

.global-animated-lines::before {
    height: 200px;
    left: 20%;
    animation-delay: 0s;
}

.global-animated-lines::after {
    height: 150px;
    left: 70%;
    animation-delay: 4s;
}


/* Additional global lines using body pseudo-elements */

body::before,
body::after {
    content: "";
    position: fixed;
    height: 1px;
    background: linear-gradient( to right, transparent 0%, rgba(153, 69, 255, 0.4) 50%, transparent 100%);
    animation: line-horizontal 6s infinite ease-in-out;
    z-index: 1;
    pointer-events: none;
}

body::before {
    width: 300px;
    top: 30%;
    left: 10%;
    animation-delay: 2s;
}

body::after {
    width: 250px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

@keyframes line-vertical {
    0% {
        top: -200px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100vh;
        opacity: 0;
    }
}

@keyframes line-horizontal {
    0% {
        left: -300px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: 100vw;
        opacity: 0;
    }
}


/* Random line styles for dynamic creation */

.random-line {
    position: absolute;
    background: linear-gradient( 45deg, transparent 0%, rgba(153, 69, 255, 0.3) 50%, transparent 100%);
    pointer-events: none;
}

.random-line.vertical {
    width: 1px;
    animation: line-vertical-random 12s infinite ease-in-out;
}

.random-line.horizontal {
    height: 1px;
    animation: line-horizontal-random 10s infinite ease-in-out;
}

@keyframes line-vertical-random {
    0% {
        top: -300px;
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        top: 120vh;
        opacity: 0;
    }
}

@keyframes line-horizontal-random {
    0% {
        left: -400px;
        opacity: 0;
    }
    25% {
        opacity: 0.6;
    }
    75% {
        opacity: 0.6;
    }
    100% {
        left: 120vw;
        opacity: 0;
    }
}


/* Hero Section */

.hero-section {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Statistics Section */

.statistics-section {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 10px 2rem 2rem;
}

.stats-divider {
    width: calc(100% - 4rem);
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto 2rem;
    position: relative;
}

.stats-divider::before {
    content: "";
    position: absolute;
    left: -2rem;
    width: 2rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.stats-divider::after {
    content: "";
    position: absolute;
    right: -2rem;
    width: 2rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem 0;
    justify-content: center;
    align-items: center;
}

.stat-card {
    text-align: center;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    transition: none;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.stat-card:nth-child(1) {
    animation-delay: 2.5s;
}

.stat-card:nth-child(2) {
    animation-delay: 2.7s;
}

.stat-card:nth-child(3) {
    animation-delay: 2.9s;
}

.stat-card:nth-child(4) {
    animation-delay: 3.1s;
}

.stat-card:hover {
    background: none;
    border-color: transparent;
    transform: none;
}

.stat-value {
    font-family: "Google Sans", sans-serif;
    font-weight: 500;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.stat-value {
    background: linear-gradient(90deg, #ff6b9d 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-family: "Google Sans", sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.event-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2a0d35;
    color: #9945ff;
    border: 2px solid #9945ff;
    font-family: "Google Sans", sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInScale 0.8s ease-out 0.8s forwards;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.live-indicator {
    width: 16px;
    height: 16px;
    position: relative;
    flex-shrink: 0;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #9945ff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: live-pulse 2s infinite;
}

.live-dot::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #9945ff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    animation: live-ripple 2s infinite;
}

@keyframes live-pulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes live-ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.hero-title {
    font-family: "Google Sans", sans-serif;
    font-weight: 600;
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient( 135deg, #ffffff 0%, #ffffff 25%, #b794f6 65%, #9945ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: normal;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 1.2s forwards;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-subtitle {
    font-family: "Google Sans", sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 1.8s forwards;
}

.btn-primary {
    background: #9945ff;
    color: #ffffff;
    border: none;
    font-family: "Google Sans", sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #8a3bef;
    color: #ffffff;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-family: "Google Sans", sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 22px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: #ffffff;
    text-decoration: none;
}


/* Liquidity Section */

.liquidity-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

.liquidity-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    max-width: 100%;
    overflow: hidden;
}

.liquidity-panel,
.price-panel {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 100%;
    overflow: hidden;
}

.panel-header {
    margin-bottom: 1.5rem;
}

.breadcrumb {
    font-family: "Google Sans", sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.panel-title {
    font-family: "Google Sans", sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
}


/* Select Pair Section */

.select-pair-section {
    margin-bottom: 2rem;
}

.pair-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.token-dropdown {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 3.5rem;
}

.token-dropdown:hover {
    border-color: rgba(153, 69, 255, 0.3);
    background: rgba(153, 69, 255, 0.05);
}

.token-icon {
    width: 40px;
    height: 41px;
    border-radius: 50%;
}

.token-name {
    font-family: "Google Sans", sans-serif;
    font-weight: 500;
    color: #ffffff;
    flex: 1;
}

.swap-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(153, 69, 255, 0.1);
    border: 1px solid rgba(153, 69, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swap-icon:hover {
    background: rgba(153, 69, 255, 0.2);
    transform: scale(1.05);
}

.fee-tier {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fee-text {
    font-family: "Google Sans", sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.select-percentage {
    font-family: "Google Sans", sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.edit-btn {
    background: none;
    border: 1px solid rgba(153, 69, 255, 0.3);
    color: #9945ff;
    font-family: "Google Sans", sans-serif;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background: rgba(153, 69, 255, 0.1);
    border-color: #9945ff;
}


/* Deposit Section */

.deposit-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.deposit-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-label {
    font-family: "Google Sans", sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.input-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.amount-input {
    flex: 1;
    background: none;
    border: none;
    color: #ffffff;
    font-family: "Google Sans", sans-serif;
    font-size: 1rem;
    outline: none;
}

.amount-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.token-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(153, 69, 255, 0.1);
    border: 1px solid rgba(153, 69, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 2.5rem;
}

.token-selector:hover {
    background: rgba(153, 69, 255, 0.2);
}

.input-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.usd-value {
    color: rgba(255, 255, 255, 0.6);
}

.balance {
    color: rgba(255, 255, 255, 0.5);
}


/* Price Panel */

.current-price {
    text-align: center;
    margin-bottom: 2rem;
}

.price-value {
    font-family: "Google Sans", sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.price-label {
    font-family: "Google Sans", sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}


/* Price Chart */

.price-chart {
    margin-bottom: 2rem;
}

.chart-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
}

.chart-title {
    font-family: "Google Sans", sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.chart-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.chart-controls svg {
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(153, 69, 255, 0.1);
    border: 1px solid rgba(153, 69, 255, 0.2);
    border-radius: 4px;
    padding: 2px;
}

.chart-controls svg:hover {
    transform: scale(1.1);
    background: rgba(153, 69, 255, 0.2);
}

.chart-area {
    position: relative;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.chart-area svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
}

.chart-container {
    height: 280px;
    /* Р”РѕС‚СЏРіРёРІР°РµРј РґРѕ РєРѕРЅС†Р° Р±Р»РѕРєР° deposit */
}

.chart-point {
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-point:hover circle {
    r: 6;
    opacity: 1 !important;
}

.chart-point:hover .point-label {
    opacity: 1 !important;
}

.point-label {
    transition: opacity 0.3s ease;
}

.chart-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.range-marker {
    cursor: pointer;
    transition: all 0.3s ease;
}

.range-marker:hover {
    transform: scale(1.05);
}

.current-price {
    pointer-events: none;
}

.current-price circle {
    animation: pulse-current 2s infinite;
}

@keyframes pulse-current {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}


/* Add Liquidity Button */

.add-liquidity-btn {
    width: 100%;
    background: linear-gradient(135deg, #9945ff 0%, #7b2cbf 100%);
    color: #ffffff;
    border: none;
    font-family: "Google Sans", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(153, 69, 255, 0.3);
    margin-top: 1.5rem;
}

.add-liquidity-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(153, 69, 255, 0.4);
}

.add-liquidity-btn:active {
    transform: translateY(0);
}


/* Claim Section */

.claim-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.claim-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.claim-input-row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.claim-input-row .input-container {
    flex: 1;
}

.claim-input-row .add-liquidity-btn {
    width: 100%;
    margin-top: 0;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 200px;
    padding-top: 2rem;
}

.button-aligned-container {
    margin-top: 2rem;
    /* Р’РѕР·РІСЂР°С‰Р°РµРј РёСЃС…РѕРґРЅС‹Р№ РѕС‚СЃС‚СѓРї */
    padding-top: 1rem;
    /* РџРѕРґРЅРёРјР°РµРј РєРЅРѕРїРєСѓ РµС‰Рµ РЅР° 1 СѓСЂРѕРІРµРЅСЊ */
}

.button-aligned-container .add-liquidity-btn {
    width: 100%;
    margin-top: 0;
    padding: 1rem 1rem;
    height: 4rem;
    /* РЈРІРµР»РёС‡РµРЅРЅР°СЏ РІС‹СЃРѕС‚Р° РєРЅРѕРїРєРё */
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Additional Styles for better UX */

.nav-btn::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #9945ff 0%, #667eea 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-btn:hover::after {
    width: 100%;
}


/* Smooth scrolling */

html {
    scroll-behavior: smooth;
}


/* Focus styles for accessibility */

.nav-btn:focus,
.btn-multiple:focus {
    outline: 2px solid #9945ff;
    outline-offset: 2px;
}


/* Live Transactions Section */

.live-transactions-section {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-icon svg {
    opacity: 0.8;
}

.transactions-title {
    font-family: "Google Sans", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.update-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
    animation: pulse-glow 2s infinite;
}

.update-status {
    font-family: "Google Sans", sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

@keyframes pulse-glow {
    0% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
        box-shadow: 0 0 20px rgba(0, 255, 136, 1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
    }
}

.transactions-table {
    background: transparent;
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 0 2rem 1rem 2rem;
    background: transparent;
}

.header-cell {
    font-family: "Google Sans", sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem;
    min-height: 450px;
    position: relative;
}

.transaction-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.transaction-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.transaction-row.new-transaction {
    animation: slideInFromTop 0.5s ease-out;
    position: absolute;
    width: calc(100% - 2rem);
    z-index: 10;
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-100px);
        background: rgba(255, 255, 255, 0.08);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        background: rgba(255, 255, 255, 0.02);
    }
}

.transaction-row.removing {
    animation: slideOutToBottom 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    position: absolute;
    width: calc(100% - 2rem);
    z-index: 5;
}

@keyframes slideOutToBottom {
    0% {
        opacity: 1;
        transform: translateY(0);
        background: rgba(255, 255, 255, 0.02);
    }
    30% {
        opacity: 0.7;
        background: rgba(255, 107, 107, 0.1);
        border-color: rgba(255, 107, 107, 0.3);
    }
    100% {
        opacity: 0;
        transform: translateY(100px);
        background: rgba(255, 107, 107, 0.05);
    }
}

.transaction-row:last-child {
    border-bottom: none;
}

.transaction-cell {
    font-family: "Google Sans", sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
}

.signature-cell {
    font-family: "Monaco", "Menlo", monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.signature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.signature-icon svg {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

.address-cell {
    font-family: "Monaco", "Menlo", monospace;
    font-size: 0.75rem;
    color: #4a9eff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wallet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(74, 158, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(74, 158, 255, 0.3);
    flex-shrink: 0;
}

.wallet-icon svg {
    filter: drop-shadow(0 0 4px rgba(74, 158, 255, 0.5));
}

.deposit-cell {
    color: #ff6b6b;
    font-weight: 600;
}

.claim-cell {
    color: #00ff88;
    font-weight: 600;
}

.status-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-successful {
    color: #00ff88;
    font-weight: 600;
}

.status-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    flex-shrink: 0;
    animation: subtle-glow 4s ease-in-out infinite;
}

.status-icon-container svg {
    filter: drop-shadow(0 0 2px rgba(0, 255, 136, 0.3));
}

@keyframes subtle-glow {
    0% {
        box-shadow: 0 0 5px rgba(0, 255, 136, 0.2);
        opacity: 0.9;
    }
    50% {
        box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
        opacity: 1;
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 255, 136, 0.2);
        opacity: 0.9;
    }
}

.status-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}


/* FAQ Section */

.faq-section {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.faq-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(153, 69, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(153, 69, 255, 0.3);
    flex-shrink: 0;
}

.faq-icon svg {
    filter: drop-shadow(0 0 4px rgba(153, 69, 255, 0.5));
}

.faq-title {
    font-family: "Google Sans", sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.faq-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    cursor: pointer;
    overflow: hidden;
    /* вместо transition: all */
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}


/* Поддержка двух классов: active и is-open */

.faq-item.active,
.faq-item.is-open {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 255, 136, 0.3);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
}

.question-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    flex-shrink: 0;
}

.question-icon .chevron {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 2px rgba(0, 255, 136, 0.5));
}


/* поворот стрелки */

.faq-item.active .question-icon .chevron,
.faq-item.is-open .question-icon .chevron {
    transform: rotate(90deg);
}

.faq-question h3 {
    font-family: "Google Sans", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    flex: 1;
}


/* ВАЖНО: без фиксированного 200px */

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-left: 2.5rem;
    margin-top: 0;
    /* вместо transition: all */
    transition: max-height 0.45s ease, opacity 0.25s ease, margin-top 0.25s ease;
    will-change: max-height, opacity;
}

.faq-item.active .faq-answer,
.faq-item.is-open .faq-answer {
    /* большой запас, чтобы не резало ответы */
    max-height: 800px;
    opacity: 1;
    margin-top: 1rem;
}

.faq-answer p {
    font-family: "Google Sans", sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}


/* На всякий: если ответы очень длинные — увеличь лимит на больших экранах */

@media (min-width: 900px) {
    .faq-item.active .faq-answer,
    .faq-item.is-open .faq-answer {
        max-height: 1200px;
    }
}


/* Respect reduce motion */

@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-answer,
    .question-icon .chevron {
        transition: none !important;
    }
}


/* Footer */

.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
}

.footer-left {
    flex: 1;
    max-width: 400px;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo svg {
    height: 35px;
    width: 210px;
}

.footer-description {
    font-family: "Google Sans", sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1.5rem 0;
}

.footer-left .footer-social {
    display: flex;
    gap: 1rem;
}

.footer-right {
    flex: 1;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-family: "Google Sans", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 1rem 0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li:last-child {
    margin-bottom: 0;
}

.footer-column ul li a {
    font-family: "Google Sans", sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #9945ff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 3rem;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    text-align: center;
}

.footer-bottom-content p {
    font-family: "Google Sans", sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    -webkit-text-stroke: none;
    text-stroke: none;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(153, 69, 255, 0.2);
    color: #9945ff;
    transform: translateY(-2px);
}

@media (min-width: 320px) and (max-width: 499px) {
    .header {
        width: 100%;
    }
    .sol-price-display {
        display: none;
    }
    .stats-grid {
        grid-template-columns: 100%;
    }
    .liquidity-container {
        grid-template-columns: 100%;
        padding: 10px;
    }
    .transactions-header {
        flex-direction: column;
    }
    .footer-container {
        flex-direction: column;
    }
    .header-container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .hero-title {
        font-size: 35px;
    }
    .pair-selector {
        flex-direction: column;
    }
    .token-dropdown {
        width: 100%;
    }
    .fee-tier {
        flex-direction: column;
    }
    .chart-container {
        height: auto;
    }
    .chart-container svg {
        height: auto;
    }
    .liquidity-panel,
    .price-panel {
        padding: 10px;
    }
    .transaction-row {
        padding: 10px;
        height: auto;
        grid-template-columns: 100%;
        width: 100% !important;
    }
    .liquidity-section,
    .main-content,
    .statistics-section,
    .live-transactions-section,
    .faq-section {
        padding-left: 16px;
        padding-right: 16px;
    }
    .amount-input {
        width: 100%;
        margin-right: 10px;
    }
    .transactions-list {
        padding-left: 0px;
        padding-right: 0px;
    }
    .table-header {
        display: none;
    }
    .footer-logo svg {
        display: block;
        margin: 0 auto;
    }
    .footer-description {
        text-align: center;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-links {
        display: flex;
        align-items: center;
        width: 100%;
    }
    .footer-column {
        margin-left: auto;
    }
    .footer-column:first-child {
        margin-left: 0px;
    }
    .footer-right {
        width: 100%;
    }
    .main-content {
        min-height: auto;
    }
}

@media (min-width: 500px) and (max-width: 799px) {
    .header {
        width: 100%;
    }
    .main-content {
        min-height: auto;
    }
    .stats-grid {
        grid-template-columns: calc(50% - 30px) 50%;
    }
    .liquidity-container {
        grid-template-columns: 100%;
        padding: 10px;
    }
    .transactions-header {
        flex-direction: column;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    .header-container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .chart-container {
        height: auto;
    }
    .chart-container svg {
        height: auto;
    }
    .liquidity-panel,
    .price-panel {
        padding: 10px;
    }
    .transaction-row {
        padding: 10px;
        height: auto;
        grid-template-columns: 100%;
        width: 100% !important;
    }
    .liquidity-section,
    .main-content,
    .statistics-section,
    .live-transactions-section,
    .faq-section {
        padding-left: 16px;
        padding-right: 16px;
    }
    .amount-input {
        width: 100%;
        margin-right: 10px;
    }
    .transactions-list {
        padding-left: 0px;
        padding-right: 0px;
    }
    .table-header {
        display: none;
    }
    .footer-logo svg {
        display: block;
        margin: 0 auto;
    }
    .footer-description {
        text-align: center;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-links {
        display: flex;
        align-items: center;
        width: 100%;
    }
    .footer-column {
        margin-left: auto;
    }
    .footer-column:first-child {
        margin-left: 0px;
    }
    .footer-right {
        width: 100%;
    }
    .footer-left {
        max-width: 100%;
    }
}

@media (min-width: 800px) and (max-width: 1199px) {
    .header {
        width: 100%;
    }
    .main-content {
        min-height: auto;
    }
    .transaction-row {
        padding: 10px;
        height: auto;
        grid-template-columns: calc(50% - 20px) 50%;
        width: 100% !important;
    }
    .amount-input {
        width: 100%;
        margin-right: 10px;
    }
    .transactions-list {
        padding-left: 0px;
        padding-right: 0px;
    }
    .table-header {
        display: none;
    }
    .pair-selector {
        flex-direction: column;
    }
    .token-dropdown {
        width: 100%;
    }
    .liquidity-container {
        grid-template-columns: 100%;
    }
}