* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Allow editing in inputs */
input,
textarea,
select {
    user-select: text;
    -webkit-user-select: text;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
    /* App-like feel */
    height: 100vh;
    width: 100vw;
}

.app-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    /* Center on desktop */
    padding-top: env(safe-area-inset-top, 0px);
}

/* Scrollbar Handling */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

header {
    padding: 16px;
    padding-top: max(16px, env(safe-area-inset-top, 16px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 13, 18, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
}

/* Balance with add button inline */
.balance-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hide number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.logo {
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.header-controls {
    display: flex;
    gap: 12px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}

.close-btn {
    background: rgba(255, 255, 255, 0.15);
}