body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: #1A1A1A;
    color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    box-sizing: border-box;
}

.page-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.address-qr-placeholder img {
    width: 180px;
    height: 180px;
    margin: 10px auto; /* Centra la imagen si es un block element */
    display: block;
    border-radius: 8px; /* Opcional: para esquinas redondeadas */
}

.screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex-grow: 1;
}

/* --- Splash Screen Styles --- */
#splashScreen { justify-content: space-between; }
.splash-content {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center; flex-grow: 1; padding-top: 5vh;
}
.logo-placeholder {
    width: 130px; height: 130px; border-radius: 50%;
    background: linear-gradient(135deg, #6A82FB, #FC5C7D, #FFD700);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 35px; position: relative; animation: pulse 2.5s infinite ease-in-out;
}
.logo-placeholder::before {
    content: ''; width: 90px; height: 90px; background-color: #1A1A1A;
    border-radius: 50%; position: absolute;
}
.logo-placeholder::after {
    content: ''; width: 50px; height: 50px;
    background: linear-gradient(135deg, #8A2BE2, #4169E1);
    border-radius: 50%; position: absolute; box-shadow: 0 0 12px rgba(138, 43, 226, 0.6);
}
@keyframes pulse {
    0% { transform: scale(0.97); box-shadow: 0 0 0 0 rgba(96, 125, 251, 0.7); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 15px rgba(96, 125, 251, 0); }
    100% { transform: scale(0.97); box-shadow: 0 0 0 0 rgba(96, 125, 251, 0); }
}
.welcome-text { font-size: 26px; font-weight: 600; margin-bottom: 12px; }
.tagline-text { font-size: 15px; color: #A0A0A0; margin-bottom: 40px; max-width: 280px; }
.button-container {
    width: 100%; display: flex; flex-direction: column;
    gap: 15px; padding-bottom: 20px;
}
.action-buttons-container {
    width: 100%; display: flex; flex-direction: column;
    gap: 15px; margin-top: auto; padding-bottom: 20px;
}

.btn {
    padding: 16px; border-radius: 12px; font-size: 16px; font-weight: 600;
    text-align: center; cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.btn:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.btn-primary { background-color: #FFFFFF; color: #1A1A1A; }
.btn-primary:hover { background-color: #F0F0F0; }
.btn-secondary { background-color: #333333; color: #FFFFFF; }
.btn-secondary:hover { background-color: #444444; }
.btn-action {
    background: linear-gradient(90deg, #6A82FB, #FC5C7D); color: #FFFFFF; width: 100%;
}
.btn-action:hover { opacity: 0.9; }
.btn-subtle {
    background-color: #2C2C2C; color: #A0A0A0; border: 1px solid #444444;
}
.btn-subtle:hover { background-color: #383838; color: #FFFFFF; }

/* --- Common Screen Header Styles --- */
.header-bar {
    width: 100%; display: flex; align-items: center;
    margin-bottom: 25px; position: relative; padding-top:10px;
}
.back-button {
    font-size: 28px; color: #FFFFFF; background: none; border: none;
    cursor: pointer; padding: 5px 10px 5px 0; margin-right: 15px; line-height: 1;
}
.back-button:hover { color: #CCCCCC; }
.screen-title {
    font-size: 20px; font-weight: 600; text-align: center; flex-grow: 1;
    position: absolute; left: 50%; transform: translateX(-50%);
}
.screen-instructions {
    font-size: 15px; color: #A0A0A0; text-align: center;
    margin-bottom: 20px; max-width: 340px;
}

/* --- Import & Create Wallet Screen Styles --- */
#importWalletScreen, #createWalletScreen { justify-content: flex-start; }
.recovery-phrase-textarea {
    width: 100%; height: 120px; background-color: #2C2C2C;
    border: 1px solid #444444; border-radius: 8px; color: #FFFFFF;
    padding: 15px; font-size: 16px; line-height: 1.5; margin-bottom: 15px;
    box-sizing: border-box; resize: none;
}
.recovery-phrase-textarea:focus { outline: none; border-color: #6A82FB; box-shadow: 0 0 0 2px rgba(106, 130, 251, 0.3); }
.textarea-helper-text { font-size: 13px; color: #888888; text-align: center; margin-bottom: 20px; max-width: 320px; }
.generated-phrase-container {
    width: 100%; background-color: #2C2C2C; border: 1px solid #444444;
    border-radius: 8px; padding: 20px; margin-bottom: 20px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px; text-align: left;
}
.phrase-word { background-color: #333333; padding: 8px 12px; border-radius: 6px; font-size: 15px; color: #E0E0E0; display: flex; align-items: center; }
.phrase-word .word-number { font-size: 12px; color: #888888; margin-right: 8px; min-width: 20px; }

/* --- Wallet Dashboard Screen Styles --- */
#walletDashboardScreen { justify-content: flex-start; }
.dashboard-header { width: 100%; text-align: center; margin-bottom: 20px; }
.total-balance-label { font-size: 16px; color: #A0A0A0; margin-bottom: 5px; }
.total-balance-amount { font-size: 32px; font-weight: 700; color: #FFFFFF; margin-bottom: 25px;}
.assets-list { width: 100%; display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.asset-item { background-color: #2C2C2C; border-radius: 10px; padding: 15px; display: flex; align-items: center; justify-content: space-between; transition: background-color 0.2s ease; cursor: pointer; }
.asset-item:hover { background-color: #383838; }
.asset-info { display: flex; align-items: center; gap: 12px; }
.asset-logo-svg { width: 40px; height: 40px; object-fit: contain; }
.asset-name { font-size: 16px; font-weight: 500; }
.asset-symbol { font-size: 13px; color: #A0A0A0; }
.asset-balance { text-align: right; }
.asset-crypto-balance { font-size: 16px; font-weight: 500; }
.asset-usd-balance { font-size: 13px; color: #A0A0A0; }

/* --- Asset Detail Screen Styles --- */
#assetDetailScreen { justify-content: flex-start; }
.asset-detail-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; width: 100%; }
.asset-detail-header .asset-logo-svg { width: 50px; height: 50px; object-fit: contain; }
.asset-detail-info .asset-name { font-size: 22px; font-weight: 600; }
.asset-detail-info .asset-crypto-balance { font-size: 16px; color: #A0A0A0; }
.tabs { display: flex; width: 100%; margin-bottom: 20px; border-bottom: 1px solid #444; }
.tab-button { flex-grow: 1; padding: 12px 10px; text-align: center; background: none; border: none; color: #A0A0A0; font-size: 16px; font-weight: 500; cursor: pointer; border-bottom: 3px solid transparent; transition: color 0.2s, border-color 0.2s; }
.tab-button.active { color: #FFFFFF; border-bottom-color: #6A82FB; }
.tab-button:hover { color: #FFFFFF; }
.tab-content { width: 100%; }
.tab-pane { display: none; flex-direction: column; gap: 15px; }
.tab-pane.active { display: flex; }
.address-container { background-color: #2C2C2C; padding: 20px; border-radius: 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap:15px; }
.address-qr-placeholder { width: 150px; height: 150px; background-color: #FFFFFF; border-radius: 8px; margin-bottom: 15px; display:flex; align-items:center; justify-content:center; color:#1A1A1A; font-size:12px; }
.wallet-address-text { font-size: 14px; color: #E0E0E0; word-break: break-all; background-color: #333; padding: 10px; border-radius: 6px; width:100%; }
.form-group { display: flex; flex-direction: column; gap: 8px; width:100%;}
.form-group label { font-size: 14px; color: #A0A0A0; }
.form-group input { background-color: #2C2C2C; border: 1px solid #444444; border-radius: 8px; padding: 12px; color: #FFFFFF; font-size: 15px; }
.form-group input:focus { outline: none; border-color: #6A82FB; }

/* --- PIN Lock & Create PIN Screen Common Styles --- */
#pinLockScreen, #createPinScreen {
    justify-content: center;
    padding-top: 0;
}
.pin-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
    max-width: 300px;
}
.pin-container .logo-placeholder {
    width: 100px; height: 100px; margin-bottom: 10px;
    animation: none;
}
 .pin-container .logo-placeholder::before { width: 70px; height: 70px; }
 .pin-container .logo-placeholder::after { width: 35px; height: 35px; }

.pin-title { font-size: 20px; font-weight: 600; margin-bottom: 5px; }
.pin-input-field {
    width: 100%;
    padding: 15px;
    background-color: #2C2C2C;
    border: 1px solid #444444;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 20px;
    text-align: center;
    letter-spacing: 0.5em;
}
.pin-input-field:focus { outline: none; border-color: #6A82FB; }
.pin-error-message {
    color: #FC5C7D;
    font-size: 14px;
    height: 20px;
    text-align: center;
}

.hidden { display: none !important; }
.temp-message {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background-color: #333; color: white; padding: 12px 22px;
    border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 1000; opacity: 0; transition: opacity 0.5s ease-in-out, transform 0.3s ease-out;
    font-size: 14px;
}
.temp-message.show { opacity: 1; transform: translateX(-50%) translateY(-10px); }

@media (max-width: 380px) {
    .pin-title { font-size: 18px; }
    .pin-input-field { font-size: 18px; padding: 12px; }
}