* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

:root {
    --primary-color: #10b981;
    --secondary-color: #059669;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --background-color: #0f172a;
    --card-background: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
}

body {
    background-color: var(--background-color);
    color: var(--text-primary);
}

/* Mobile Container */
.mobile-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--background-color);
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
}

.main-content {
    /* Padding handled in home.html styles */
}

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 0 0 1.5rem 1.5rem;
    text-align: left;
}

.balance-card h2 {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.balance-card .balance {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.quick-actions {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    min-width: 70px;
}

.action-btn i {
    font-size: 1.25rem;
}

/* Cards */
.card {
    background: var(--card-background);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-secondary {
    background-color: var(--background-color);
    color: var(--text-primary);
}

/* Form Controls */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    background: var(--card-background);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Transaction List */
.transaction {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--card-background);
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.transaction-icon.received {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.transaction-icon.sent {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.transaction-details {
    flex: 1;
}

.transaction-details h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.transaction-details p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.transaction-amount {
    font-weight: bold;
}

.transaction-amount.received {
    color: var(--success-color);
}

.transaction-amount.sent {
    color: var(--danger-color);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--card-background);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.nav-btn {
    border: none;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    text-decoration: none;
    flex: 1;
}

.nav-btn i {
    font-size: 1.25rem;
}

.nav-btn span {
    font-size: 0.75rem;
}

.nav-btn.active {
    color: var(--primary-color);
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 1rem;
    max-width: 90%;
    width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

/* QR Code */
.qr-display {
    text-align: center;
    padding: 2rem;
}

.qr-display canvas,
.qr-display img {
    max-width: 100%;
    border-radius: 1rem;
}

/* Screen Header */
.screen-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.back-button {
    background: none;
    border: none;
    font-size: 1.25rem;
    margin-right: 1rem;
    cursor: pointer;
    color: var(--text-primary);
}

.screen-header h2 {
    font-size: 1.25rem;
}

/* Section */
.section {
    padding: 1.5rem;
}

.section h3 {
    margin-bottom: 1rem;
}

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Alert */
.alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}
