:root {
    --primary-yellow: #ffd60a;
    --danger-red: #ff5c5c;
    --dark-bg: #141414;
    --card-bg: #1d1d1d;
    --text-light: #f5f5f5;
    --text-dark: #333;
    --text-secondary: #888;
    --border-color: rgba(255, 214, 10, 0.2);
    --shadow-color: rgba(255, 214, 10, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 20px 0;
}

#particles-js { position: fixed; width: 100%; height: 100%; z-index: -1; top: 0; left: 0; }

.container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}

.site-header { margin-bottom: 40px; animation: fadeInDown 0.8s ease-out; }
.logo { display: flex; justify-content: center; align-items: center; gap: 15px; font-size: 2rem; color: var(--primary-yellow); }
.logo h1 { color: var(--text-light); font-weight: 600; }
.tagline { font-size: 1rem; color: var(--text-secondary); margin-top: 10px; }

.main-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
    margin-top: 20px;
}

.left-column, .info-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.left-column {
    width: 100%;
    max-width: 500px;
    flex-shrink: 0;
}

.info-column {
    width: 100%;
    max-width: 420px;
}

.exchange-card, .steps-card, .socials-card, .info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--shadow-color);
    backdrop-filter: blur(5px);
    text-align: left;
}

.exchange-card { transform: translateY(20px); opacity: 0; animation: fadeInUp 0.8s 0.3s ease-out forwards; }
.steps-card { transform: translateY(20px); opacity: 0; animation: fadeInUp 0.8s 0.5s ease-out forwards; }
.socials-card { transform: translateY(20px); opacity: 0; animation: fadeInUp 0.8s 0.7s ease-out forwards; }

.info-card {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s 0.4s ease-out forwards;
}

.info-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h3 i { color: var(--primary-yellow); }
.info-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

.exchange-card-header h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 10px; }
.yellow-text { color: var(--primary-yellow); }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }
.input-wrapper { position: relative; display: flex; align-items: center; background-color: var(--dark-bg); border: 1px solid var(--border-color); border-radius: 12px; transition: all 0.3s ease; }
.input-wrapper:focus-within { border-color: var(--primary-yellow); box-shadow: 0 0 15px var(--shadow-color); }
.input-wrapper input { flex-grow: 1; background: transparent; border: none; color: var(--text-light); font-size: 1.5rem; padding: 15px 20px; font-family: 'Inter', sans-serif; width: 100%; min-width: 0; outline: none; }
.icon-prefix { color: var(--text-secondary); padding-left: 20px; font-size: 1.2rem; }
.input-wrapper .icon-prefix + input { padding-left: 15px; }
.currency-badge { border-left: 1px solid var(--border-color); display: flex; align-items: center; gap: 10px; font-weight: 600; width: 115px; justify-content: center; flex-shrink: 0; }
.currency-badge img { width: 24px; height: 24px; }
.swap-icon { font-size: 1.2rem; color: var(--primary-yellow); margin: -10px 0; transform: rotate(90deg); text-align: center; }
.submit-button { width: 100%; background: var(--primary-yellow); color: var(--text-dark); border: none; border-radius: 12px; padding: 18px; font-size: 1.1rem; font-weight: 700; cursor: pointer; margin-top: 15px; transition: all 0.3s ease; display: flex; justify-content: center; align-items: center; gap: 10px; }
.submit-button:hover { transform: translateY(-5px); box-shadow: 0 8px 25px var(--shadow-color); }
.submit-button i { transition: transform 0.3s ease; }
.submit-button:hover i { transform: translateX(5px); }
.exchange-card-footer { margin-top: 30px; font-size: 0.9rem; color: var(--text-secondary); text-align: center;}
.error-message { color: var(--danger-red); font-size: 0.9rem; margin-top: 10px; display: none; animation: fadeIn 0.3s ease-in-out; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active { -webkit-text-fill-color: var(--text-light) !important; -webkit-box-shadow: 0 0 0px 1000px var(--dark-bg) inset !important; transition: background-color 5000s ease-in-out 0s; font-family: 'Inter', sans-serif; }
.dynamic-rate-wrapper { background-color: #2a2a2a; border-radius: 12px; padding: 15px 20px; margin-top: 20px; margin-bottom: 30px; border: 1px solid var(--border-color); }
.rate-line { display: flex; justify-content: space-between; align-items: center; gap: 15px; font-size: 1.1rem; font-weight: 500; }
#rate-text { flex-grow: 1; text-align: left; }
#rate-text .yellow-text { font-weight: 600; }
.rate-info-sub { font-size: 0.85rem; color: var(--text-secondary); text-align: left; margin-top: 8px; }
.timer-container { position: relative; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.timer-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-bg, .timer-progress { fill: none; stroke-width: 3; }
.timer-bg { stroke: #444; }
.timer-progress { stroke: var(--primary-yellow); stroke-linecap: round; transition: stroke-dashoffset 0.2s linear, stroke 0.4s ease; }
.timer-progress-danger { stroke: var(--danger-red); }
#timer-seconds { font-size: 1rem; font-weight: 600; color: var(--text-light); }

.steps-card h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 30px; }
.steps-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 25px; }
.steps-list li { display: flex; align-items: flex-start; gap: 20px; }
.step-icon-wrapper { flex-shrink: 0; width: 45px; height: 45px; border-radius: 50%; background-color: rgba(255, 214, 10, 0.1); display: flex; align-items: center; justify-content: center; }
.step-icon-wrapper i { color: var(--primary-yellow); font-size: 1.1rem; }
.step-text h3 { font-weight: 600; font-size: 1.1rem; margin-bottom: 6px; color: var(--text-light); }
.step-text p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }

.socials-card { padding: 30px 40px; }
.socials-card h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 25px; }
.socials-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.socials-list li a { display: flex; align-items: center; gap: 15px; padding: 15px; border-radius: 12px; background-color: var(--dark-bg); border: 1px solid var(--border-color); text-decoration: none; color: var(--text-light); font-weight: 500; transition: all 0.3s ease; }
.socials-list li a:hover { border-color: var(--primary-yellow); background-color: #2a2a2a; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.socials-list li a i { font-size: 1.2rem; color: var(--primary-yellow); width: 20px; text-align: center; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 992px) {
    .main-content-wrapper { flex-direction: column; align-items: center; }
    .left-column, .info-column { max-width: 500px; }
}

@media (max-width: 576px) {
    body { padding: 15px 0; }
    .container { padding: 10px; }
    .site-header { margin-bottom: 30px; }
    .logo {
        font-size: 1.4rem;
    }
    .logo h1 {
        white-space: nowrap;
    }
    .exchange-card, .steps-card, .socials-card, .info-card { padding: 25px 20px; }
    .exchange-card-header h2, .steps-card h2, .socials-card h2 { font-size: 1.2rem; }
    .input-wrapper input { font-size: 1.2rem; padding: 15px; }
    .submit-button { padding: 16px; font-size: 1rem; }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.popup {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}
.popup-close:hover {
    color: var(--text-light);
}

.popup-icon {
    font-size: 4.5rem;
    color: #32d74b;
    margin-bottom: 20px;
    line-height: 1;
}

.popup-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 10px;
}

.popup-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

