:root {
    --bg-color: #f4f4f9;
    --card-bg: #ffffff;
    --text-color: #333333;
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    margin: 0;
    color: var(--primary-color);
}

.balance-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 20px;
}

.target-card {
    border: 2px solid var(--accent-color);
}

.balance {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin: 10px 0;
}

.transfer-section {
    text-align: center;
    margin-bottom: 30px;
}

.tempo-indicator {
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: inline-block;
    font-weight: bold;
}

.dot {
    height: 10px;
    width: 10px;
    background-color: #856404;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-transfer {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.3s;
    animation: pulse 2s infinite;
}

.btn-transfer:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

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

.btn-transfer:disabled {
    background-color: var(--secondary-color);
    cursor: not-allowed;
    animation: none;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

.result-area {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    min-height: 50px;
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
}

.flag {
    color: var(--success-color);
    font-size: 1.2rem;
    word-break: break-all;
    border: 2px dashed var(--success-color);
    padding: 10px;
    margin-top: 10px;
}

.ads {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.ad-img {
    max-width: 100px;
    height: auto;
    border-radius: 5px;
    opacity: 0.6;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.btn-reset {
    background: none;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-reset:hover {
    background: var(--secondary-color);
    color: white;
}
