body {
    background: #06111f;
    color: #f4f8ff;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-y: scroll;
}

:root {
    --bs-light-text-emphasis: rgba(244, 248, 255, 0.85);
}

.text-light-emphasis {
    color: rgba(244, 248, 255, 0.85) !important;
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Reduce paint on scroll */
html {
    scroll-behavior: smooth;
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.neo-bg {
    background: radial-gradient(1200px 450px at 20% 0%, rgba(87, 198, 255, 0.18), transparent 55%),
                radial-gradient(900px 420px at 80% 30%, rgba(66, 245, 161, 0.14), transparent 55%),
                linear-gradient(180deg, rgba(4, 16, 30, 0.1), rgba(4, 16, 30, 0.95));
}

.kpi-card {
    background: rgba(13, 29, 51, 0.75);
    border: 1px solid rgba(87, 198, 255, 0.18);
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 14px 50px rgba(0,0,0,0.35);
}

.kpi-card .kpi-value {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    font-size: 1.9rem;
}

.kpi-card .kpi-label {
    color: rgba(244, 248, 255, 0.8);
    font-size: 0.92rem;
}

.section-lead {
    color: rgba(244, 248, 255, 0.85);
    max-width: 700px;
}

.activity-feed {
    border: 1px solid rgba(87, 198, 255, 0.18);
    border-radius: 16px;
    padding: 14px;
    background: rgba(13, 29, 51, 0.55);
}

.feed-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.feed-row:last-child { border-bottom: 0; }

.feed-type {
    color: #bfeaff;
    font-weight: 700;
}

.feed-meta {
    color: rgba(244, 248, 255, 0.65);
    font-size: 0.86rem;
}

.feed-amount {
    font-weight: 800;
    color: #ffffff;
}

.glass-nav {
    background: rgba(4, 16, 30, 0.85);
    border-bottom: 1px solid rgba(95, 255, 196, 0.15);
    backdrop-filter: blur(6px);
}

.text-gradient {
    background: linear-gradient(90deg, #ffffff, #57c6ff, #42f5a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-marquee-wrap {
    background: #041021;
    border-bottom: 1px solid rgba(87, 198, 255, 0.25);
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0;
}

.price-marquee-content {
    display: inline-block;
    animation: ticker 24s linear infinite;
    color: #90ffd4;
    font-size: 0.9rem;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.card-dark, .card.card-dark {
    background: #0d1d33;
    border: 1px solid rgba(87, 198, 255, 0.2);
    border-radius: 16px;
    color: #fff;
}

.stat-card {
    background: #10253f;
    border: 1px solid rgba(66, 245, 161, 0.25);
    border-radius: 12px;
    padding: 14px;
}

.activity-card {
    background: #10253f;
    border-radius: 16px;
    border: 1px solid rgba(87, 198, 255, 0.25);
    padding: 20px;
}

.activity-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    margin: 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.site-footer {
    background: #040d18;
    border-top: 1px solid rgba(87, 198, 255, 0.2);
}

.site-footer a {
    color: #9fdcff;
    text-decoration: none;
}

.site-footer a:hover {
    color: #42f5a1;
}

.translator-select {
    background: #112846;
    color: #fff;
    border-color: rgba(87, 198, 255, 0.4);
    width: 72px;
}

.form-control,
.form-select,
.form-range {
    background-color: #132a49;
    border-color: rgba(87, 198, 255, 0.3);
    color: #fff;
}

.form-control:focus,
.form-select:focus {
    background-color: #132a49;
    color: #fff;
    border-color: #57c6ff;
    box-shadow: 0 0 0 0.2rem rgba(87, 198, 255, 0.2);
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(87, 198, 255, 0.15);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: -40% -20%;
    background: radial-gradient(circle at 20% 30%, rgba(87, 198, 255, 0.26), transparent 45%),
                radial-gradient(circle at 80% 40%, rgba(66, 245, 161, 0.18), transparent 50%),
                linear-gradient(135deg, rgba(87, 198, 255, 0.09), rgba(66, 245, 161, 0.06));
    transform: rotate(-6deg);
    pointer-events: none;
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

.section-title {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #eaf7ff;
}

.section-title i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(87, 198, 255, 0.12);
    border: 1px solid rgba(87, 198, 255, 0.18);
    color: #57c6ff;
}

.hero-illustration {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    filter: drop-shadow(0 18px 45px rgba(0,0,0,0.4));
}

.trust-badge {
    background: rgba(16, 37, 63, 0.7);
    border: 1px solid rgba(87, 198, 255, 0.18);
    border-radius: 16px;
    padding: 14px;
    min-height: 84px;
}

.trust-badge .badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(66, 245, 161, 0.10);
    border: 1px solid rgba(66, 245, 161, 0.18);
    color: #42f5a1;
}

.carousel-fade .carousel-item {
    transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item:not(.active) {
    opacity: 0;
}

.news-card {
    border-left: 3px solid rgba(87, 198, 255, 0.35);
}

.news-card .card-body {
    min-height: 140px;
}

.quote-card {
    padding: 22px;
}

.step-timeline {
    position: relative;
    padding-left: 22px;
}

.password-requirements {
    margin-top: 8px;
}

.password-requirements .requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(244, 248, 255, 0.7);
    margin-bottom: 4px;
}

.password-requirements .requirement i {
    width: 12px;
    font-size: 0.75rem;
}

.step-timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: rgba(87, 198, 255, 0.2);
}

.step-timeline li {
    position: relative;
    margin: 16px 0;
}

.step-timeline li::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 6px;
    background: rgba(87, 198, 255, 0.25);
    border: 1px solid rgba(87, 198, 255, 0.35);
}

#google_translate_element {
    position: absolute;
    left: -9999px;
    top: 0;
}

/* Modal styling and z-index fixes */
.modal {
    z-index: 1050 !important;
}

.modal-backdrop {
    z-index: 1040 !important;
}

.modal.show {
    display: flex !important;
}

.modal-content {
    background: #0d1d33 !important;
    border: 1px solid rgba(87, 198, 255, 0.2) !important;
}

.modal-content .modal-body {
    background: #0d1d33;
}

.modal-content .modal-footer {
    background: #0a1525;
    border-top: 1px solid rgba(87, 198, 255, 0.15);
}

.btn-close-white {
    filter: brightness(0) invert(1);
}

/* Copy button styling */
.copy-btn {
    padding: 0.375rem 0.75rem;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background-color: rgba(87, 198, 255, 0.2);
    border-color: #57c6ff;
}

.copy-btn.btn-success {
    background-color: rgba(66, 245, 161, 0.8);
    border-color: #42f5a1;
}

.copy-wallet {
    cursor: pointer;
    user-select: all;
}
