* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Play", "Jura", "Montserrat", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: linear-gradient(135deg, #5490f1 0%, #0e45da 100%);
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.1);
    overflow: hidden;
}

.header h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 8px;
    z-index: 2;
}

.header #welcome-text {
    opacity: 0.9;
    font-size: 28px;
    z-index: 2;
}

.random-quote {
    font-size: 16px;
    margin: 6px;
    z-index: 2;
}

.main-content {
    flex: 1;
    padding: 24px 20px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    z-index: 50;
}

.balance-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.balance-title {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
}

.balance-amount {
    font-size: 48px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 4px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.transactions-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.transactions-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1e293b;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info {
    flex: 0.75;
}

.transaction-name {
    font-weight: 500;
    color: #1e293b;
    font-size: 14px;
    margin-bottom: 2px;
}

.transaction-date {
    font-size: 12px;
    color: #64748b;
}

.transaction-amount {
    font-weight: 600;
    font-size: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center;
}

.transaction-amount.positive {
    color: #10b981;
}

.transaction-amount.negative {
    color: #ef4444;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.transaction-icon.income {
    background-color: rgba(123, 255, 51, 0.2);
    color: #10b981;
}

.transaction-icon.expense {
    background-color: rgba(255, 81, 51, 0.2);
    color: #ef4444;
}

.hotbar {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 16px 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    bottom: 0;
    overflow-y: scroll;
    width: 100%;
    z-index: 100;
}

.hotbar-button {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.hotbar-button:hover {
    background-color: #f1f5f9;
}

.hotbar-button.active {
    color: #3b82f6;
    background-color: #eff6ff;
}

.hotbar-button-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

/* Auth Modal */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.auth-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form {
    background: white;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    margin: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
    color: #1e293b;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

button {
    width: 100%;
    padding: 12px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background: #2563eb;
}

button:disabled {
    background: #88a7f4;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: #6b7280;
}

.auth-switch a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
}

/* QR Modal */
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.qr-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-content {
    background: white;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    max-width: 300px;
    margin: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.qr-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1e293b;
}

.qr-code {
    margin-bottom: 20px;
}

.qr-code img {
    min-width: 200px;
    max-width: 100%;
    height: auto;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #6b7280;
}

.transfer-modal {
    width: 100%;
    height: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.2); /* напівпрозорий */
    position: fixed;
    top: 0;
    place-items: center;
    padding: 5%;
    display: none;
}

.transfer-modal.active {
    display: grid;
}

.transfer-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    margin: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transfer-content .transfer-title {
    text-align: center;
}

.transfer-content button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.transfer-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.qr-scanner, #qr-video {
    width: 100%;
    max-width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid #3b82f6;
    margin: 0 auto 16px;
    display: block;
}

.found-user-name {
    display: none;
}

.found-user-name.active {
    display: block;
}

.robocoin {
    width: 2em;
}

.daily-bonus-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.daily-bonus-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.daily-bonus-content .container {
    background: white;
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    max-width: 300px;
    margin: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 12px;
}

.daily-bonus-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.daily-bonus-timer {
    font-weight: 600;
    font-size: 28px;
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 16px;
    }

    .balance-card, .transactions-section {
        padding: 16px;
    }

    .balance-amount {
        font-size: 48px;
    }

    .hotbar {
        padding: 6px 14px;
    }

    .auth-form {
        padding: 24px;
        margin: 16px;
    }
}

#g-recaptcha > div{
    margin: 0 auto;
}

#g-recaptcha {
    margin-bottom: 8px;
}

@keyframes fall {
      0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
      }
      100% {
        transform: translateY(350px) rotate(360deg);
        opacity: 0.7;
      }
}