* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    color: #222;
}


/* =========================
   AUTH PAGE
========================= */

.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #e8e5e5, #3b3b3bf1);
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 10px;
}
.auth-box h1 img{
 width: 50px;
}
#formSubtitle {
    text-align: center;
    color: #777;
    margin-bottom: 30px;
}


/* INPUTS */

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 13px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.input-group input:focus {
    border-color: #111;
}


/* BUTTON */

#submitButton {
    width: 100%;
    padding: 14px;
    background: #0c49ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

#submitButton:hover {
    background: #333;
}


/* MESSAGE */

.message {
    text-align: center;
    margin-top: 15px;
    min-height: 20px;
    font-size: 14px;
}


/* SWITCH LOGIN/SIGNUP */

.switch-text {
    text-align: center;
    margin-top: 25px;
    color: #777;
}

#switchButton {
    background: none;
    border: none;
    color: #111;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
}

/* =========================
   LANDING PAGE
========================= */

.landing-page {
    display: none;
    min-height: 100vh;
    background: #f5f5f7;
}


/* NAVIGATION */

nav {
    height: 75px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-bottom: 1px solid #eee;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #082270;
}

.logo img{
    width: 40px;
}
#logoutButton {
    padding: 10px 20px;
    background:  #082270;
    color: white;
    border: none;
    border-radius: 7px;
    cursor: pointer;
}

#logoutButton:hover {
    background: #333;
}


/* =========================
   DASHBOARD
========================= */

.dashboard {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px;
}


/* =========================
   BALANCE CARD
========================= */

.balance-card {
    background: linear-gradient(
        135deg,
        #241052,
         #082270
    );

    color: white;

    border-radius: 18px;

    padding: 30px;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.15);
}


/* WALLET */

.wallet-section {
    margin-bottom: 35px;
}

.wallet-label {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 8px;
}

.wallet-address {
    display: flex;
    align-items: center;
    gap: 10px;

    width: fit-content;

    background: rgba(255, 255, 255, 0.1);

    padding: 10px 12px;

    border-radius: 8px;
}

#walletAddress {
    font-family: monospace;
    font-size: 14px;
}

#copyAddressButton {
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

#copyAddressButton:hover {
    opacity: 0.7;
}

#copyMessage {
    font-size: 12px;
    margin-top: 7px;
    color: #b8ffca;
}


/* =========================
   BALANCE
========================= */

.balance-label {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 8px;
}

.balance-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

#balance {
    font-size: 42px;
    margin: 0;
    letter-spacing: -1px;
}

.eye-button {
    width: 38px;
    height: 38px;

    border: none;

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.12);

    color: white;

    cursor: pointer;

    font-size: 17px;
}

.eye-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.updated {
    font-size: 12px;
    opacity: 0.65;
    margin-top: 8px;
}


/* =========================
   WELCOME
========================= */

.welcome-section {
    margin-top: 40px;
}

.welcome-section h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.welcome-section p {
    color: #777;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .dashboard {
        padding: 25px 15px;
    }

    .balance-card {
        padding: 22px;
    }

    #balance {
        font-size: 34px;
    }

    #walletAddress {
        font-size: 12px;
    }

    nav {
        padding: 0 20px;
    }
}



/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .auth-box {
        padding: 30px 20px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 17px;
    }

    nav {
        padding: 0 20px;
    }
}

/* =========================
   WALLET ACTION BUTTONS
========================= */

.wallet-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.action-button {
    flex: 1;
    padding: 14px 20px;

    border: none;
    border-radius: 9px;

    font-size: 15px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

.transfer-button {
    background: white;
    color: #241052;
}

.deposit-button {
    background: #082270;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.action-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.amount-input {
    display: flex;
    align-items: center;

    border: 1px solid #ddd;
    border-radius: 9px;

    overflow: hidden;

    background: white;
}

.amount-input span {
    padding-left: 14px;

    font-size: 16px;
    font-weight: bold;

    color: #555;
}

.amount-input input {
    border: none !important;

    outline: none;

    width: 100%;

    padding: 14px 10px;

    font-size: 16px;
}

.amount-limit {
    margin-top: 7px;

    color: #777;

    font-size: 12px;
}

.amount-error {
    color: #d93025;

    font-size: 13px;

    margin-top: 7px;
}

.amount-input {
    display: flex;
    align-items: center;

    width: 100%;

    border: 1px solid #aaa;
    border-radius: 14px;

    background: white;

    padding: 0 15px;
}

.amount-input > span:first-child {
    font-size: 20px;
    font-weight: bold;

    margin-right: 8px;
}

.amount-input input {
    flex: 1;

    min-width: 0;

    border: none !important;
    outline: none !important;

    padding: 18px 5px;

    font-size: 20px;
    font-weight: 500;
}

.currency-label {
    color: #666;

    font-size: 15px;

    margin-right: 15px;
}

.max-button {
    border: none;

    background: transparent;

    color: #2115b5;

    font-size: 17px;
    font-weight: bold;

    cursor: pointer;

    padding: 8px;
}

.max-button:hover {
    opacity: 0.7;
}

.amount-equivalent {
    margin: 8px 0 18px 5px;

    color: #555;

    font-size: 15px;
}

.fee-row {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 14px 0;

    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;

    font-size: 14px;
}

.fee-row span {
    color: #666;
}

.fee-row strong {
    color: #222;
}

.amount-limit {
    margin-top: 8px;

    color: #777;

    font-size: 12px;
}

.amount-error {
    color: #d93025;

    font-size: 13px;

    margin-top: 7px;
}


/* =========================
   INNER PAGES
========================= */

.inner-page {
    min-height: 100vh;
    background: #f5f5f7;
}

.page-container {
    width: 100%;
    max-width: 550px;
    margin: auto;
    padding: 40px 20px;
}


/* BACK BUTTON */

.back-button {
    border: none;
    background: transparent;

    font-size: 15px;
    font-weight: bold;

    cursor: pointer;

    margin-bottom: 25px;
}


/* PAGE CARD */

.page-card {
    background: white;
    border-radius: 18px;

    padding: 30px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);
}

.page-card h1 {
    margin-bottom: 8px;
}

.page-description {
    color: #777;
    margin-bottom: 30px;
}


/* INPUTS */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    font-weight: bold;

    margin-bottom: 8px;
}

.form-group input {
    width: 100%;

    padding: 14px;

    border: 1px solid #ddd;
    border-radius: 9px;

    font-size: 16px;

    outline: none;
}

.form-group input:focus {
    border-color: #4d1590;
}


/* WITHDRAW BUTTON */

.withdraw-button {
    width: 100%;

    padding: 15px;

    background: #241052;
    color: white;

    border: none;
    border-radius: 9px;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
}

.withdraw-button:hover {
    background: #351675;
}


/* PROCESSING */

.processing {
    display: none;

    text-align: center;

    margin-top: 25px;
}

.loader {
    width: 35px;
    height: 35px;

    border: 4px solid #ddd;
    border-top: 4px solid #241052;

    border-radius: 50%;

    animation: spin 1s linear infinite;

    margin: 0 auto 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* SUCCESS MESSAGE */

.success-message {
    display: none;

    margin-top: 25px;

    padding: 20px;

    border-radius: 12px;

    background: #c44f4f;

    border: 1px solid #e6b8b8;
}

.success-message h3 {
    margin-bottom: 10px;
}

.recipient-box {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 15px;

    padding: 12px;

    background: white;

    border: 1px solid #ddd;

    border-radius: 8px;
}

.recipient-box span {
    flex: 1;

    word-break: break-all;

    font-family: monospace;

    font-size: 13px;
}

.copy-small {
    border: none;

    background: #241052;

    color: white;

    padding: 8px 10px;

    border-radius: 6px;

    cursor: pointer;
}


/* =========================
   DEPOSIT PAGE
========================= */
.logout-button {
    padding: 10px 20px;
    background:  #082270;
    color: white;
    border: none;
    border-radius: 7px;
    cursor: pointer;
}

.logout-button:hover {
    background: #333;
}
.deposit-address {
    display: flex;

    align-items: center;

    gap: 8px;

    background: #f5f5f7;

    padding: 13px;

    border-radius: 9px;

    margin-top: 20px;
}

.deposit-address span {
    flex: 1;

    word-break: break-all;

    font-family: monospace;

    font-size: 13px;
}

.copy-deposit {
    border: none;

    background: #241052;

    color: white;

    padding: 9px 12px;

    border-radius: 7px;

    cursor: pointer;
}

#depositCopyMessage {
    color: #218838;

    font-size: 13px;

    margin-top: 8px;
}


/* QR CODE */


/* =========================
   ETHEREUM DEPOSIT
========================= */

.network-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 12px;

    background: #f3effb;

    color: #241052;

    border-radius: 20px;

    font-size: 13px;
    font-weight: bold;

    margin-bottom: 25px;
}

.network-dot {
    width: 8px;
    height: 8px;

    background: #6f42c1;

    border-radius: 50%;
}

.deposit-label {
    display: block;

    font-weight: bold;

    margin-bottom: 8px;
}

.deposit-address {
    display: flex;
    align-items: center;
    gap: 10px;

    background: #f5f5f7;

    padding: 14px;

    border-radius: 9px;

    border: 1px solid #e1e1e1;
}

.deposit-address span {
    flex: 1;

    word-break: break-all;

    font-family: monospace;

    font-size: 13px;

    line-height: 1.5;
}

.copy-deposit {
    flex-shrink: 0;

    border: none;

    background: #241052;

    color: white;

    padding: 10px 12px;

    border-radius: 7px;

    cursor: pointer;
}

.copy-deposit:hover {
    background: #351675;
}

#depositCopyMessage {
    min-height: 18px;

    color: #218838;

    font-size: 13px;

    margin-top: 8px;
}


/* QR CODE */

.qr-container {
    text-align: center;

    margin-top: 30px;

    padding-top: 25px;

    border-top: 1px solid #eee;
}

.qr-container p {
    color: #777;

    margin-bottom: 15px;
}

.deposit-qr {
    display: block;

    width: 260px;
    height: 260px;

    max-width: 100%;

    object-fit: contain;

    margin: auto;

    border-radius: 8px;
}


/* WARNING */

.deposit-warning {
    margin-top: 25px;

    padding: 15px;

    background: #fff8e6;

    border: 1px solid #f1dfad;

    border-radius: 9px;

    color: #765b16;
}

.deposit-warning strong {
    display: block;

    margin-bottom: 5px;
}

.deposit-warning p {
    font-size: 13px;

    line-height: 1.5;

    margin: 0;
}


/* MOBILE */

@media (max-width: 600px) {

    .deposit-qr {
        width: 230px;
        height: 230px;
    }

    .deposit-address {
        align-items: flex-start;
    }

    .deposit-address span {
        font-size: 11px;
    }
}

/* MOBILE */

@media (max-width: 600px) {

    .wallet-actions {
        flex-direction: column;
    }

    .page-container {
        padding: 25px 15px;
    }

    .page-card {
        padding: 23px;
    }
}