#wallets h2 {
    margin-bottom: 130px; 
    color: var(--primary-light);
    font-weight: 1000;
    position: relative;
}

.wallet-subtitle {
    text-align: center;
    color: var(--primary-dark);
    font-size: 2rem;
    margin: 0px 0 20px;
    font-weight: 1000;
}

.wallet-description {
    text-align: center;
    color: var(--text-color);
    font-size: 0.95rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

.wallet-layout {
    position: relative;
    transform: none;
    left: auto;
    margin-top: 30px;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    background: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


/*******************************/
/**** Central configuration ****/
/*******************************/


.chain-selector {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
}

.chain {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    max-width: 100%;
    margin: 0;
    width: 100%;
}

.custodian-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4a5568;
    line-height: 1;
    padding: 2px 0;
}

.global-default {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30%;
    height: 90%;
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 10;
    border: 2px solid #cccccc;
    border-radius: 8px;
    padding: 0px;
    transition: all 0.5s ease ;
    text-align: center;
}


.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin: 0 10px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.wallet-chain-toggle:checked + .slider {
    background-color: #4dbb9a;
}

.wallet-chain-toggle:checked + .slider:before {
    transform: translateX(24px);
}

.wallet-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 100px;
    width: 500px;
    max-width: 520px;
    position: relative;
}

.wallet-input-group .wallet-input {
    font-family: 'Courier New', Courier, monospace;
}

.wallet-input-group.valid-address .wallet-input {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(77, 187, 154, 0.15);
}

.wallet-input-group.valid-address::after {
    content: '\f058';   /* Check circle icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    right: 10px;
    bottom: 10px;
    top: 10%;
    font-size: 16px;
}

.chain-disabled {
    opacity: 0.5;
}

.chain-disabled .wallet-input-group {
    pointer-events: none;
}

.global-default.active {
    background-color: rgb(230, 255, 250);
    width: calc(100% - 160px);
    border: 2px solid #4dbb9a;
}

.custodian-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    min-width: 18px;
    min-height: 18px;
    border: 2px solid #cccccc;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    margin: 0;
    margin-left: 15px; /* Add left margin */
    transition: all 0.2s ease;
}

.custodian-checkbox input[type="checkbox"]:checked {
    background-color: #4dbb9a;
    border: 2px solid #4dbb9a;
}

.custodian-checkbox input[type="checkbox"]:checked:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -65%) rotate(45deg);
}

.custodian-checkbox input[type="checkbox"]:disabled {
    border-color: #ccc;
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.custodian-checkbox input[type="checkbox"]:disabled:checked:after {
    border-color: #999;
}



.wallet-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

.wallet-input:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.wallet-input::placeholder {
    color: #a0aec0;
    font-family: 'Poppins', sans-serif;
    font-style: italic;
}

.wallet-input.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.wallet-input.error::placeholder {
    color: #e53e3e;
}



.chain img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.chain-logo-container {
    position: relative;
    width: 40px;
    height: 40px;
}

.chain-logo-container img.chain-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.token-logos {
    position: absolute;
    bottom: -5px;
    right: -5px;
    display: flex;
    gap: 2px;
}

.token-logos img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.save-button-container {
    position: absolute;
    bottom: 5vh;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
}

.save-button {
    padding: 12px 40px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.save-button:disabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.7;
}

.save-button:not(:disabled):hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wallet-error-message {
    position: fixed;
    display: none;
    bottom: 15vh;
    width: 88%;
    color: var(--error);
    font-size: 14px;
    padding: 8px 16px;
    background-color: rgba(254, 226, 226, 0.5);
    border: 1px solid #f56565;
    border-radius: 6px;
    text-align: center;
    display: none;
    z-index: 100;
}


/*******************************/
/****** Custody balance ********/
/*******************************/

.custody-balance-container {
    position: absolute;
    top: 50px;
    right: 80px;
}

.custody-balance {
    background: linear-gradient(145deg, #f8fafc, #ffffff);
    border: 1px solid #e2e8f0;
    border-right: 3px solid var(--primary-color);
    border-radius: 10px;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    min-width: 180px;
    transition: all 0.3s ease;
}

.custody-balance:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.09);
}

.balance-label {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.balance-label::before {
    content: '\f555';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.balance-display {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.balance-amount {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
    text-align: right;
}

.currency-selector {
    position: relative;
    margin: 0;
    min-width: 80px;
}

.currency-selector .custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 6px 30px 8px 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-dark);
    background-color: #00000005;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    outline: none;
    display: flex;
    align-items: center;
    user-select: none;
}

.currency-selector .custom-select::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
}

.currency-selector .custom-select:hover {
    border-color: var(--primary-color);
    background-color: #e8f5f0;
}

.currency-selector .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    width: 100%;
    min-width: 80px;
    padding: 5px 0;
    margin-top: 2px;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.currency-selector .dropdown-menu.show {
    display: block;
}

.currency-selector .dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-dark);
    text-align: left;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    transition: all 0.15s ease;
}

.currency-selector .dropdown-item:hover,
.currency-selector .dropdown-item:focus {
    background-color: #f0f7f4;
    color: var(--primary-color);
}

.currency-selector .dropdown-item.active {
    background-color: #e8f5f0;
    font-weight: 600;
}

#custody-amount {
    position: relative;
}

#custody-amount::before {
    content: attr(data-currency);
    margin-right: 3px;
    font-weight: 600;
}


/************************/
/**** Redeem Modal ******/
/************************/

.balance-actions {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    width: 100%;
}

.redeem-button {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redeem-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

#redemption-modal.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#redemption-modal.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.redemption-modal {
    max-width: 500px;
    width: 90%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-dark);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.redemption-stepper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.redemption-stepper .step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-weight: 600;
    margin: 0 15px;
}

.redemption-stepper .step.active {
    background-color: var(--primary-color);
    color: white;
}

.redemption-stepper .step.active::before {
    background-color: var(--primary-color);
}

.redemption-stepper .step::before,
.redemption-stepper .step::after {
    content: '';
    position: absolute;
    height: 2px;
    background-color: #e2e8f0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
}

.redemption-stepper .step::before {
    right: 100%;
}

.redemption-stepper .step::after {
    left: 100%;
}

.redemption-stepper .step:first-child::before,
.redemption-stepper .step:last-child::after {
    display: none;
}

.redemption-stepper .step.active::after {
    background-color: var(--primary-color);
}

.redemption-stepper .step.completed {
    background-color: var(--primary-color);
    color: white;
}

.redemption-stepper .step.completed::before,
.redemption-stepper .step.completed::after {
    background-color: var(--primary-color);
}

.redemption-stepper .step.completed + .step::before {
    background-color: var(--primary-color);
}

.redeem-step-panel {
    display: none;
    padding: 15px 0;
}

.redeem-step-panel.active {
    display: block;
}

.redeem-step-panel h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.redemption-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.nav-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prev-btn {
    background-color: #e2e8f0;
    color: #64748b;
}

.next-btn, .withdraw-btn {
    background-color: var(--primary-color);
    color: white;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn:not(:disabled):hover {
    transform: translateY(-1px);
}

/* Currency Options */
.redeem-currency-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.redeem-currency-option {
    position: relative;
}

.redeem-currency-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.redeem-currency-option label {
    display: block;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redeem-currency-option input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background-color: #e8f5f0;
}

.redeem-currency-option-content {
    display: flex;
    align-items: center;
}

.redeem-currency-symbol {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f7f4;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.redeem-currency-details {
    flex: 1;
}

.redeem-currency-name {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.redeem-currency-balance {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 2px;
}

/* Withdrawal Methods */
.withdrawal-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.withdrawal-method {
    position: relative;
}

.withdrawal-method input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.withdrawal-method label {
    display: block;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.withdrawal-method input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background-color: #e8f5f0;
}

.withdrawal-method.disabled label {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

.withdrawal-method-content {
    display: flex;
    align-items: center;
}

.withdrawal-method-content .chain-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 15px;
}

.method-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f7f4;
    color: #64748b;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.withdrawal-details {
    flex: 1;
}

.method-name {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.coming-soon-tag {
    font-size: 0.7rem;
    background-color: #f97316;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 500;
}

.method-info {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 2px;
}

/* Amount Selection */
.amount-selection {
    margin-top: 20px;
}

.amount-input-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.amount-prefix {
    position: absolute;
    left: 15px;
    font-size: 1.2rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.withdrawal-amount-input {
    width: 100%;
    padding: 15px 15px 15px 35px;
    font-size: 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.withdrawal-amount-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(77, 187, 154, 0.15);
    outline: none;
}

.available-balance {
    text-align: right;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 15px;
}

.quick-amounts {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.quick-amount-btn {
    flex: 1;
    padding: 8px 0;
    background-color: #f0f7f4;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: var(--primary-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-amount-btn:hover {
    background-color: #e8f5f0;
    border-color: var(--primary-color);
}

.withdrawal-wallet-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

.withdrawal-wallet-input:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.withdrawal-wallet-input::placeholder {
    color: #a0aec0;
    font-family: 'Poppins', sans-serif;
    font-style: italic;
}

.withdrawal-wallet-input.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.withdrawal-wallet-input.error::placeholder {
    color: #e53e3e;
}

.withdrawal-address {
    margin-bottom: 20px;
}

.withdrawal-address p {
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.withdrawal-note {
    font-size: 0.85rem;
    color: #64748b;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

/* Withdrawal address validation */
#withdrawal-address-container.valid-address .withdrawal-wallet-input {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(77, 187, 154, 0.15);
    padding-right: 35px; 
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%234dbb9a" d="M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c-4.667 4.705-12.265 4.736-16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
}

#withdrawal-address-container.invalid-address .withdrawal-wallet-input {
    border-color: #e53e3e;
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.1);
    padding-right: 35px; 
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23e53e3e" d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm101.8-262.2L295.6 256l62.2 62.2c4.7 4.7 4.7 12.3 0 17l-22.6 22.6c-4.7 4.7-12.3 4.7-17 0L256 295.6l-62.2 62.2c-4.7 4.7-12.3 4.7-17 0l-22.6-22.6c-4.7-4.7-4.7-12.3 0-17l62.2-62.2-62.2-62.2c-4.7-4.7-4.7-12.3 0-17l22.6-22.6c4.7-4.7 12.3-4.7 17 0l62.2 62.2 62.2-62.2c4.7-4.7 12.3-4.7 17 0l22.6 22.6c4.7 4.7 4.7 12.3 0 17z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
}

#withdrawal-address-container.valid-address .withdrawal-wallet-input,
#withdrawal-address-container.invalid-address .withdrawal-wallet-input {
    padding-right: 35px;
}

.withdrawal-address-error,
.withdrawal-error {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

#withdrawal-address-container {
    position: relative;
}

#withdrawal-address-container.valid-address .withdrawal-wallet-input,
#withdrawal-address-container.invalid-address .withdrawal-wallet-input {
    padding-right: 35px;
}

#withdrawal-address-container.invalid-address {
    margin-bottom: 30px;
}

.amount-input-container {
    position: relative;
}

.amount-input-container .withdrawal-error {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 5px;
}

/* Success Step Styles */
.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.success-message {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 30px;
}

.withdraw-transaction-details {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    margin-bottom: 25px;
    text-align: left;
}

.withdraw-transaction-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.withdraw-transaction-row:last-child {
    border-bottom: none;
}

.transaction-label {
    flex: 1;
    font-weight: 500;
    color: #64748b;
}

.transaction-value {
    flex: 2;
    color: var(--primary-dark);
    word-break: break-all;
}

.done-btn {
    padding: 10px 40px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.done-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}


/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast {
    background-color: #fff;
    border-radius: 6px;
    padding: 12px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    animation: toast-slide-in 0.3s ease forwards;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-left: 4px solid;
}

.toast.error {
    border-left-color: #e53e3e;
}

.toast.success {
    border-left-color: var(--primary-color);
}

.toast-icon {
    margin-right: 12px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast.error .toast-icon {
    color: #e53e3e;
}

.toast.success .toast-icon {
    color: var(--primary-color);
}

.toast-message {
    color: var(--primary-dark);
    font-size: 0.9rem;
    line-height: 1.4;
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
}

.toast-close:hover {
    color: #718096;
}

.toast.removing {
    transform: translateX(100%);
    opacity: 0;
}

@keyframes toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Withdraw Button Loading State */
.withdraw-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.withdraw-btn.loading .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: withdraw-spinner 0.8s ease infinite;
    position: absolute;
    left: calc(50% - 16px);
    top: calc(50% - 8px);
}

.withdraw-btn.loading::after {
    content: "Processing...";
    position: absolute;
    color: white;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes withdraw-spinner {
    to {
        transform: rotate(360deg);
    }
}






/*******************************/
/******** Media Queries ********/
/*******************************/


@media (max-width: 768px) {

    
    #wallets {
        height: auto;
        overflow-y: visible;
        padding-bottom: 120px;
        display: flex;
        flex-direction: column;
    }

    #wallets h2 {
        margin-bottom: 20px; 
        order: 1;
    }
    .wallet-subtitle {
        font-size: 1.5rem;
        margin-bottom: 15px;
        margin-top: 10px;
    }
    
    .wallet-description {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .wallet-subtitle, .wallet-description { order: 2; }
    
    .chain-selector {
        width: 100%;
        gap: 20px;
    }
    
    .chain {
        flex-wrap: wrap;
        padding: 15px 10px;
    }
    
    .chain-logo-container {
        margin-right: 10px;
    }
    
    .toggle {
        order: 3;
        margin-left: auto;
    }
    
    .wallet-input-group {
        order: 4;
        width: 100%;
        margin-top: 10px;
    }
    
    .global-default {
        position: relative;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 15px;
        justify-content: center;
        order: 2;
        display: flex;
        text-align: center;
    }
    
    .global-default.active {
        width: 100%;
    }
    
    .save-button {
        width: 90%;
        max-width: 300px;
    }
    
    .wallet-error-message {
        width: 90%;
        bottom: 80px;
        font-size: 12px;
    }

    
    .wallet-layout {
        position: relative;
        transform: none;
        left: auto;
        max-height: none;
        margin-top: 20px;
        overflow: visible;
        flex-direction: column;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .wallet-layout, .wallet-error-message { order: 3; }

    
    .chain-selector {
        max-height: none;
        overflow-y: visible;
        padding-bottom: 0;
    }
    
    .chain {
        flex-wrap: wrap;
        padding: 15px 10px;
        position: relative;
    }
    
    .wallet-input-group {
        width: 100%;
        margin-top: 10px;
        padding: 0;
    }
    
    .save-button-container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 15px 10px;
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
        order: 5;
    }
    
    .wallet-error-message {
        position: fixed;
        width: 90%;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 101;
    }

    .custodian-checkbox {
        justify-content: center;
        text-align: center;
        margin: 0 auto;
    }
    
    .custodian-checkbox input[type="checkbox"] {
        margin-right: 8px;
        margin-left: 0;
        vertical-align: middle;
    }

    .custody-balance-container {
        position: static;
        width: 100%;
        margin: 30px 0 30px 0;
        order: 4;
    }

    .currency-selector {
        width: 25%;
    }
    
    .currency-selector select {
        font-size: 0.85rem;
        padding: 6px 28px 6px 10px;
    }
    
    .custody-balance {
        width: 100%;
        text-align: center;
        align-items: center;
    }

    .redemption-modal {
        width: 95%;
    }
    
    .redemption-stepper .step {
        width: 25px;
        height: 25px;
        margin: 0 10px;
        font-size: 0.9rem;
    }
    
    .redemption-stepper .step::before,
    .redemption-stepper .step::after {
        width: 20px;
    }

    .redeem-button {
        width: 100% ;
    }
    
    .redeem-currency-option label,
    .withdrawal-method label {
        padding: 12px;
    }
    
    .redeem-currency-symbol,
    .method-icon,
    .withdrawal-method-content .chain-logo {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        margin-right: 10px;
    }
    
    .redeem-currency-name,
    .method-name {
        font-size: 1rem;
    }
    
    .nav-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .withdraw-transaction-row {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .transaction-label {
        margin-bottom: 4px;
    }

    .toast-container {
        bottom: 70px;
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
}

/* Even smaller screens */
@media (max-width: 480px) {
    .custodian-checkbox {
        font-size: 13px;
        flex-wrap: wrap;
    }
    
    .custodian-checkbox input[type="checkbox"] {
        margin-right: 8px;
        margin-left: 0;
    }
    
    .wallet-input-group {
        padding: 0 5px;
    }
    
    .wallet-input {
        font-size: 0.9rem;
    }

    .content {
        -webkit-overflow-scrolling: touch;
    }
    
    #wallets {
        padding-bottom: 140px;
    }
    
    .chain {
        padding: 12px 8px;
    }
}



