/* --- General Styles --- */
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; background-color: #f4f7f6; display: flex; flex-direction: column; min-height: 100vh; }
.main-container { flex: 1; display: flex; justify-content: center; align-items: center; padding: 20px; }
.content-wrapper { width: 100%; max-width: 500px; background-color: #ffffff; padding: 30px 40px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); }
.app-header { text-align: center; padding: 20px 0; }
.app-header .logo { width: 120px; max-width: 100%; }
.app-footer { text-align: center; padding: 20px; font-size: 0.8em; color: #999; }
h1, h2, h3 { color: #333; text-align: center; }
p { color: #666; line-height: 1.6; text-align: center; }
a { color: #5a4bad; text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }

/* --- Forms & Buttons --- */
.form-container { margin-top: 20px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #555; }
.form-group input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; box-sizing: border-box; font-size: 1em; }
button { width: 100%; padding: 15px; border: none; border-radius: 8px; background-color: #5a4bad; color: white; font-size: 1.1em; font-weight: bold; cursor: pointer; transition: background-color 0.2s; margin-top: 10px; }
button:hover:not(:disabled) { background-color: #4a3d9a; }
button:disabled { background-color: #ccc; cursor: not-allowed; }
#logout-btn { background-color: #6c757d; }

/* --- Dashboard Section --- */
.account-address-box { background-color: #f8f9fa; padding: 15px; border-radius: 8px; margin: 20px 0; display: flex; justify-content: space-between; align-items: center; word-break: break-all; }
.account-address-box code { font-family: 'Courier New', Courier, monospace; color: #333; }
#copyAddressBtn { width: 30px; height: 30px; padding: 5px; margin: 0 0 0 15px; background-color: #777; cursor: pointer; border: none; border-radius: 5px; }
#copyAddressBtn svg { width: 100%; height: 100%; fill: white; }
.token-list { margin-top: 30px; }
.token-row { padding: 20px 0; border-bottom: 1px solid #eee; }
.token-row:last-child { border-bottom: none; }
.token-header { display: flex; align-items: center; justify-content: space-between; }
.token-identity { display: flex; align-items: center; }
.token-logo { width: 40px; height: 40px; margin-right: 15px; }
.token-name { display: block; font-weight: bold; color: #333; }
.token-balance { font-size: 1.6em; font-weight: 700; color: #5a4bad; }
.token-actions-main { margin-top: 15px; }
.token-actions-staking { margin-top: 10px; display: flex; gap: 10px; }
.token-actions-staking button { width: auto; padding: 8px 12px; font-size: 0.8em; margin-top: 0; flex-grow: 1; }
.stake-btn { background-color: #28a745; }
.unstake-btn { background-color: #ffc107; color: #333; width: 100%; margin-top: 10px; }
.unstake-btn.staked { background-color: #17a2b8; color: white; } /* Light active color for staked button */
#usdt-stake-status { font-size: 0.9em; color: #17a2b8; text-align: center; margin-top: 10px; background-color: #e2f3f5; padding: 8px; border-radius: 5px; }
.recovery-phrase-section { text-align: center; margin-top: 30px; }
#viewRecoveryPhraseBtn { width: auto; padding: 10px 20px; background-color: #6c757d; margin-top: 0; }

/* --- Links & Modal --- */
.links-section { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }
.links-section a { margin: 0 10px; }
.small-note { font-size: 0.8em; color: #aaa; text-align: center; margin-top: 15px; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.modal-content { background-color: white; padding: 30px; border-radius: 10px; width: 90%; max-width: 400px; position: relative; }
.modal-close { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 2em; cursor: pointer; color: #999; padding: 0; margin: 0; width: auto; }
