:root {
    --primary-purple: #820ad1;
    --dark-purple: #5f259f;
    --bg-light: #ffffff;
    --bg-secondary: #f0f1f5;
    --text-primary: #111111;
    --text-secondary: #767676;
    --gray-light: #e5e5e5;
    --gray-dark: #cccccc;
    --card-bg: #f0f1f5;
    --nubank-gradient: linear-gradient(135deg, #820ad1 0%, #5f259f 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
}

/* Global button reset to ensure no borders/backgrounds */
button {
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
}

#app {
    width: 100%;
    max-width: 450px;
    height: 100vh;
    position: relative;
    background: var(--bg-light);
    color: var(--text-primary);
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.view {
    display: none;
    height: 100%;
    flex-direction: column;
    animation: fadeIn 0.3s ease-in-out;
}

.view.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styles */
.main-header {
    background-color: var(--primary-purple);
    padding: 20px 20px 30px;
    color: white;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.user-profiles {
    display: flex;
    gap: 10px;
}

.profile-icon {
    width: 42px;
    height: 42px;
    background-color: transparent !important;
    /* No background */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.1s;
    border: none !important;
}

.profile-icon.active {
    transform: scale(1.1);
    /* No active background as requested */
}

.profile-icon svg circle {
    fill: none;
}

/* Ensure SVG circles don't add backgrounds */

.profile-label {
    position: absolute;
    bottom: -15px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: none !important;
    border: none !important;
    cursor: pointer;
}

.user-greeting h1 {
    font-size: 16px;
    font-weight: 600;
}

/* Content Area */
.content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
}

.account-summary {
    padding: 20px;
    cursor: pointer;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.balance {
    font-size: 24px;
    font-weight: 700;
    margin-top: 8px;
}

.balance.hidden {
    display: none;
}

/* Quick Actions - Cleaned */
.quick-actions-container {
    padding: 20px;
}

.quick-actions {
    display: flex;
    flex-direction: row;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    text-align: center;
}

.action-icon {
    width: 65px;
    height: 65px;
    background-color: var(--bg-secondary) !important;
    border: none !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
    box-shadow: none !important;
}

.action-icon:active {
    transform: scale(0.9);
}

.action-icon svg path,
.action-icon svg rect,
.action-icon svg circle {
    stroke: var(--text-primary);
    fill: none;
}


.action-item span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Cards Section */
.my-cards-button {
    margin: 0 20px 20px;
    background-color: transparent !important;
    /* No background */
    padding: 16px;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    border: none !important;
}

.my-cards-button svg path {
    fill: var(--text-primary);
}

.card-feature {
    padding: 20px;
}

.card-feature .value {
    font-weight: 700;
    margin: 5px 0;
}

/* Bottom Nav - Cleaned */
.bottom-nav {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 20px;
    z-index: 100;
    border-top: 1px solid var(--gray-light);
}

.nav-item {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 10px;
}

.nav-item svg path {
    fill: #999999;
}

.nav-item.active svg path {
    fill: var(--primary-purple);
}

/* Pix Contacts */
.pix-contact-list {
    padding: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-light);
    cursor: pointer;
}

.contact-initials {
    width: 48px;
    height: 48px;
    background: transparent !important;
    /* No background */
    border: none !important;
    /* No borders */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-purple);
}

/* Amount Input */
.amount-input-container {
    display: flex;
    align-items: baseline;
    gap: 10px;
    border-bottom: 2px solid var(--gray-light);
    padding-bottom: 10px;
    margin-top: 30px;
}

#transfer-amount {
    background: transparent;
    border: none;
    font-size: 42px;
    font-weight: 700;
    width: 100%;
    outline: none;
    color: var(--text-primary);
}

.content-pushed {
    padding: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.secondary-header button {
    border: none !important;
    background: transparent !important;
}

.primary-button-full {
    width: 100%;
    background-color: var(--primary-purple);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
}

.error-toast.hidden {
    display: none;
}

/* Circular Next Button Clean */
.primary-button {
    background-color: var(--gray-light);
    border: none !important;
}

.primary-button:not(.disabled) {
    background-color: var(--primary-purple);
}

/* Error Screen Adjustments */
.error-body {
    padding: 0 40px;
    text-align: center;
}

.error-svg {
    max-width: 60px;
    max-height: 60px;
    margin: 0 auto 30px;
    display: block;
    color: var(--primary-purple);
}

.error-body h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.error-body p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
}