/* app/static/css/transactions.css */

/* ========================= */
/* TRANSACTIONS CONTAINER */
/* ========================= */
.transactions-container {
    margin: 0;
    width: 100%;
    text-align: center;
    border: 2px solid #06abd4;
    border-radius: 8px;
    overflow: visible;
    position: relative;
    background: transparent;
    box-sizing: border-box;
}

/* ========================= */
/* TRANSACTIONS HEADER */
/* ========================= */
.transactions-container .tab-section-header {
    background: #037d9c;
    padding: 12px 20px;
    text-align: center;
    box-sizing: border-box;
}

/* ========================= */
/* TRANSACTIONS HEADER TITLE */
/* ========================= */
.transactions-container .tab-section-header h2 {
    margin: 0;
    font-size: 24px;
    color: #ffffff;
    font-weight: 400;
    text-align: center;
    line-height: 1.2;
}

/* ========================= */
/* TRANSACTIONS BODY */
/* ========================= */
.transactions-container .tab-section-body {
    padding: 10px 20px 0;
    box-sizing: border-box;
    overflow: visible;
}

/* ========================= */
/* TRANSACTION FORM CONTAINER */
/* ========================= */
.transaction-form-container {
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    position: static;
    overflow: visible;
}

/* ========================= */
/* HIDE INNER H2 IN SUB-TABS */
/* ========================= */
.sub-tab-content h2 {
    display: none;
}

/* ========================= */
/* FORM DESCRIPTION */
/* ========================= */
.transaction-form-container p {
    font-size: 16px;
    color: #cccccc;
    margin: 10px 0 30px;
    text-align: center;
}

/* ========================= */
/* TRANSACTION HISTORY LIST */
/* ========================= */
.account-box ul#transaction-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.account-box ul#transaction-list li {
    margin: 10px 0;
    padding: 8px;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(50, 50, 50, 0.5);
    border-radius: 8px;
    color: #cccccc;
    transition: background 0.3s ease;
}

.account-box ul#transaction-list li:hover {
    background: rgba(50, 50, 50, 0.8);
}

/* ========================= */
/* FORM GROUP */
/* ========================= */
.form-group {
    margin-bottom: 15px;
    text-align: left;
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
    z-index: auto;
}

.form-group label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #1E90FF;
    outline: none;
}

/* ========================= */
/* STATUS MESSAGES */
/* ========================= */
#status,
#buy-status,
#sell-status,
#swap-status,
#bridge-status {
    margin: 10px 0;
    color: #cccccc;
    font-size: 14px;
    text-align: center;
}

/* ========================= */
/* TRANSACTION SUBMIT BUTTON */
/* ========================= */
.transaction-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 36px;
    padding: 8px 18px;
    margin-top: 12px;
    border: 1px solid rgba(6, 171, 212, 0.45);
    border-radius: 4px;
    background: linear-gradient(180deg, #0a8fb2 0%, #037d9c 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(3, 125, 156, 0.22);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease;
}

.transaction-submit-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(180deg, #11a3ca 0%, #1587a3 100%);
    border-color: rgba(0, 204, 255, 0.8);
    box-shadow: 0 8px 18px rgba(0, 204, 255, 0.18);
}

.transaction-submit-btn:active {
    transform: scale(0.98);
}

.transaction-submit-btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========================= */
/* TRANSACTION SUBMIT BUTTON - LOADING */
/* ========================= */
.transaction-submit-btn.loading {
    position: relative;
    color: #eafcff;
    pointer-events: none;
}

.transaction-submit-btn.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    margin-left: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    animation: paxor-spin 0.8s linear infinite;
}

@keyframes paxor-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================= */
/* INLINE TRANSACTION FEEDBACK */
/* ========================= */
.transaction-inline-feedback {
    width: 100%;
    max-width: 260px;
    margin: 0 auto 10px;
    text-align: center;
}

.transaction-inline-animation {
    position: relative;
    width: 100%;
    height: 26px;
    display: none;
    overflow: hidden;
}

.transaction-inline-animation.active {
    display: block;
}

.inline-coin {
    position: absolute;
    top: 2px;
    left: -24px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff4a8 0%, #ffd54a 38%, #e0a800 100%);
    border: 1px solid rgba(255, 214, 74, 0.65);
    box-shadow: 0 0 8px rgba(255, 213, 74, 0.25);
    animation: paxor-inline-coin-fly 1.2s linear infinite;
}

.inline-coin::before {
    content: '$';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(90, 64, 0, 0.9);
    font-size: 11px;
    font-weight: 700;
}

.transaction-inline-animation .coin-1 {
    animation-delay: 0s;
}

.transaction-inline-animation .coin-2 {
    animation-delay: 0.25s;
}

.transaction-inline-animation .coin-3 {
    animation-delay: 0.5s;
}

@keyframes paxor-inline-coin-fly {
    0% {
        transform: translateX(0) scale(0.9);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        transform: translateX(250px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(285px) scale(0.9);
        opacity: 0;
    }
}

/* ========================= */
/* INLINE SUCCESS TEXT */
/* ========================= */
.transaction-inline-success {
    min-height: 18px;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #42d392;
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.transaction-inline-success.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================= */
/* TRANSACTION ANIMATION SUCCESS */
/* ========================= */
.transaction-animation-overlay.success .wallet-target {
    animation: paxor-wallet-pop 0.7s ease;
    box-shadow: 0 0 30px rgba(66, 255, 166, 0.35);
}

@keyframes paxor-wallet-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.14); }
    100% { transform: scale(1); }
}

/* ========================= */
/* SUB-TABS NAVIGATION */
/* ========================= */
#transactions .sub-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

/* ========================= */
/* SUB-TAB BUTTON */
/* ========================= */
#transactions .sub-tab-button {
    cursor: pointer;
    border: 1px solid rgba(150, 150, 150, 0.3);
    border-radius: 4px;
    background: rgba(50, 50, 50, 0.8);
    color: #ffffff;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: background 0.3s ease, border-color 0.3s ease;
    z-index: 100;
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 16px 8px 40px;
    text-align: left;
    width: auto;
    height: 36px;
    box-sizing: border-box;
}

#transactions .sub-tab-button.active {
    background: #1587a3;
    color: #ffffff;
    border: 2px solid #1587a3;
}

#transactions .sub-tab-button:hover {
    background: rgba(80, 80, 80, 0.8);
    border-color: rgba(204, 204, 204, 0.3);
}

#transactions .sub-tab-button.active:hover {
    background: #1587a3;
    border-color: #1587a3;
}

#transactions .sub-tab-button::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: rgba(30, 30, 30, 0.9);
    border-radius: 50%;
    transition: background 0.3s ease;
    z-index: 1;
}

#transactions .sub-tab-button.active::before {
    background: rgba(4, 156, 183, 0.8);
}

#transactions .sub-tab-button:hover::before {
    background: rgba(70, 70, 70, 0.9);
}

#transactions .sub-tab-button.active:hover::before {
    background: rgba(4, 136, 163, 0.8);
}

/* ========================= */
/* SUB-TAB ICON */
/* ========================= */
#transactions .sub-tab-button i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #ffffff;
    font-size: 0.9em;
    transition: color 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

#transactions .sub-tab-button:hover i {
    color: #1e90ff;
}

#transactions .sub-tab-button.active:hover i {
    color: #ffffff;
}

/* ========================= */
/* SUB-TAB CONTENT */
/* ========================= */
#transactions .sub-tab-content {
    display: none;
    overflow: visible;
}

#transactions .sub-tab-content.active {
    display: block;
}

/* ========================= */
/* ACTION BUTTONS */
/* ========================= */
.wallet-action-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 16px 8px 48px;
    background: #323232 !important;
    color: #ffffff !important;
    border: 1px solid rgba(150, 150, 150, 0.1);
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    text-align: left;
    width: auto;
    height: 40px;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 100;
    pointer-events: auto;
}

.wallet-action-item:hover {
    background: #1587a3 !important;
    color: #ffffff !important;
    border-color: rgba(150, 150, 150, 0.1);
}

.wallet-action-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(35, 35, 35, 0.9);
    border-radius: 50%;
    transition: background 0.3s ease;
    z-index: 1;
}

.wallet-action-item:hover::before {
    background: #069ec4 !important;
}

.wallet-action-item i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: #ffffff;
    font-size: 1em;
    transition: color 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-action-item:hover i {
    color: #ffffff;
}

/* ========================= */
/* CUSTOM NETWORK SELECT */
/* ========================= */
.custom-network-select {
    position: relative;
    width: 100%;
    user-select: none;
    z-index: 50;
}

.custom-network-select.open {
    z-index: 5000;
}

.custom-network-trigger {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(30, 30, 30, 0.8);
    color: #ffffff;
    font-size: 14px;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.custom-network-trigger:focus {
    outline: none;
    border-color: #1E90FF;
}

.custom-network-trigger-content {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.custom-network-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-network-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex: 0 0 20px;
    border-radius: 50%;
}

.custom-network-arrow {
    flex: 0 0 auto;
    font-size: 12px;
    transition: transform 0.25s ease;
    margin-left: auto;
    margin-right: 0;
}

.custom-network-select.open .custom-network-arrow {
    transform: rotate(180deg);
}

.custom-network-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(6, 171, 212, 0.35);
    border-radius: 8px;
    overflow: hidden;
    z-index: 9999;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    display: none;
    pointer-events: auto;
}

.custom-network-select.open .custom-network-dropdown {
    display: block;
}

.custom-network-option {
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s ease;
    pointer-events: auto;
    position: relative;
    z-index: 10000;
}

.custom-network-option:hover {
    background: rgba(21, 135, 163, 0.35);
}

.custom-network-option.selected {
    background: rgba(3, 125, 156, 0.35);
}

.custom-network-option span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================= */
/* TRANSACTION HISTORY TOGGLE */
/* ========================= */
.transaction-history-section {
    margin-top: 24px;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: 0;
    width: calc(100% + 40px);
    border-top: 2px solid #06abd4;
    border-bottom: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    overflow: hidden;
    box-sizing: border-box;
    background: transparent;
}

.transaction-history-toggle {
    width: 100%;
    border: none;
    background: #037d9c;
    color: #ffffff;
    padding: 12px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    min-height: 53px;
}

.transaction-history-toggle:hover {
    background: #1587a3;
}

.transaction-history-toggle-title {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1.2;
}

.transaction-history-toggle-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.transaction-history-toggle.active .transaction-history-toggle-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.transaction-history-content {
    padding: 12px 20px 0;
    box-sizing: border-box;
    background: transparent;
}

/* ========================= */
/* TRANSACTION HISTORY LIST */
/* ========================= */
.account-box ul#transaction-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

/* ========================= */
/* SEND WALLET SOURCE BOX */
/* ========================= */
.wallet-source-box {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(30, 30, 30, 0.72);
    border: 1px solid rgba(6, 171, 212, 0.35);
    border-radius: 8px;
    padding: 12px;
    overflow: hidden;
}

.wallet-source-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.wallet-source-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    color: #ffffff;
    font-size: 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.wallet-source-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wallet-source-row strong {
    color: #1587a3;
    font-weight: 600;
    flex: 0 0 auto;
    white-space: nowrap;
}

.wallet-source-row span {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    color: #ffffff;
    word-break: break-all;
    overflow-wrap: anywhere;
}

#fromAddress[readonly] {
    background: rgba(20, 20, 20, 0.95);
    color: #9fdcf0;
    cursor: default;
}

/* ========================= */
/* SWAP READONLY FROM FIELD */
/* ========================= */
#swapFromAddress[readonly] {
    background: rgba(20, 20, 20, 0.95);
    color: #9fdcf0;
    cursor: default;
}

/* ========================= */
/* TRANSACTION HISTORY ITEM */
/* ========================= */
.transaction-history-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transaction-history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
}

.transaction-history-pagination button {
    min-width: 100px;
    padding: 8px 14px;
    border: 1px solid rgba(3, 125, 156, 0.55);
    border-radius: 8px;
    background: rgba(3, 125, 156, 0.12);
    color: inherit;
    cursor: pointer;
}

.transaction-history-pagination button:disabled {
    opacity: 0.45;
    cursor: default;
}

#transaction-list > li.transaction-history-target {
    border-color: #00bdf2;
    background: rgba(0, 189, 242, 0.11);
    box-shadow:
        0 0 0 2px rgba(0, 189, 242, 0.42),
        0 0 18px rgba(0, 189, 242, 0.34);
    animation: transaction-target-pulse 1.2s ease-in-out 2;
}

@keyframes transaction-target-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.012);
    }
}

.transaction-history-date {
    font-size: 13px;
    color: #ffffff;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.transaction-history-date strong {
    color: #1587a3;
    font-weight: 600;
}

.transaction-history-body {
    font-size: 14px;
    line-height: 1.6;
    color: #ffffff;
}

.transaction-history-body strong {
    color: #1587a3;
    font-weight: 600;
}

.transaction-address {
    font-family: Consolas, "Courier New", monospace;
    overflow-wrap: anywhere;
}

.transaction-history-body a {
    color: #00ccff;
    text-decoration: none;
}

.transaction-history-body a:hover {
    color: #00ccff;
    text-decoration: underline;
}

/* ========================= */
/* LIGHT THEME CONTAINER */
/* ========================= */
.light-theme .transactions-container {
    border: 2px solid #06abd4;
    border-radius: 8px;
    background: transparent;
}

/* ========================= */
/* LIGHT THEME HEADER */
/* ========================= */
.light-theme .transactions-container .tab-section-header {
    background: #1587a3;
}

/* ========================= */
/* LIGHT THEME HEADER TITLE */
/* ========================= */
.light-theme .transactions-container .tab-section-header h2 {
    color: #ffffff;
}

/* ========================= */
/* LIGHT THEME DESCRIPTION */
/* ========================= */
.light-theme .transaction-form-container p {
    color: #666666;
}

/* ========================= */
/* LIGHT THEME HISTORY LIST */
/* ========================= */
.light-theme .account-box ul#transaction-list li {
    background: rgba(240, 240, 240, 0.8);
    border: 1px solid rgba(150, 150, 150, 0.5);
    color: #666666;
}

.light-theme .account-box ul#transaction-list li:hover {
    background: rgba(200, 200, 200, 0.8);
}

/* ========================= */
/* LIGHT THEME FORM */
/* ========================= */
.light-theme .form-group label {
    color: #333333;
}

.light-theme .form-group input,
.light-theme .form-group select {
    background: rgba(240, 240, 240, 0.8);
    border: 1px solid rgba(150, 150, 150, 0.2);
    color: #333333;
}

/* ========================= */
/* LIGHT THEME STATUS */
/* ========================= */
.light-theme #status,
.light-theme #buy-status,
.light-theme #sell-status,
.light-theme #swap-status,
.light-theme #bridge-status {
    color: #666666;
}

/* ========================= */
/* LIGHT THEME ACTION BUTTONS */
/* ========================= */
.light-theme .wallet-actionItem,
.light-theme .wallet-action-item {
    background: #f0f0f0 !important;
    color: #000000 !important;
    border: 1px solid rgba(150, 150, 150, 0.1);
}

.light-theme .wallet-action-item:hover {
    background: #1587a3 !important;
    color: #ffffff !important;
    border-color: rgba(150, 150, 150, 0.1);
}

.light-theme .wallet-action-item::before {
    background: #d8d8d8;
}

.light-theme .wallet-action-item:hover::before {
    background: #1587a3 !important;
}

.light-theme .wallet-action-item i {
    color: #000000;
    text-shadow: none;
}

.light-theme .wallet-action-item:hover i {
    color: #ffffff;
}

/* ========================= */
/* LIGHT THEME SUB-TABS */
/* ========================= */
.light-theme #transactions .sub-tab-button {
    background: rgba(200, 200, 200, 0.8);
    color: #333333;
    border: 1px solid rgba(150, 150, 150, 0.3);
}

.light-theme #transactions .sub-tab-button.active {
    background: #1587a3;
    color: #ffffff;
    border: 2px solid #06abd4;
}

.light-theme #transactions .sub-tab-button:hover {
    background: rgba(220, 220, 220, 0.8);
    border-color: rgba(150, 150, 150, 0.3);
}

.light-theme #transactions .sub-tab-button.active:hover {
    background: #1587a3;
    border-color: #1587a3;
}

.light-theme #transactions .sub-tab-button::before {
    background: #e0e0e0;
}

.light-theme #transactions .sub-tab-button.active::before {
    background: rgba(3, 125, 156, 0.8);
}

.light-theme #transactions .sub-tab-button:hover::before {
    background: #d0d0d0;
}

.light-theme #transactions .sub-tab-button.active:hover::before {
    background: rgba(3, 125, 156, 0.8);
}

.light-theme #transactions .sub-tab-button i {
    color: #000000;
}

.light-theme #transactions .sub-tab-button:hover i {
    color: #1e90ff;
}

.light-theme #transactions .sub-tab-button.active:hover i {
    color: #000000;
}

/* ========================= */
/* LIGHT THEME CUSTOM SELECT */
/* ========================= */
.light-theme .custom-network-trigger {
    background: rgba(240, 240, 240, 0.8);
    color: #333333;
    border: 1px solid rgba(150, 150, 150, 0.2);
}

.light-theme .custom-network-dropdown {
    background: rgba(250, 250, 250, 0.98);
    border: 1px solid rgba(6, 171, 212, 0.35);
}

.light-theme .custom-network-option {
    color: #333333;
}

.light-theme .custom-network-option:hover {
    background: rgba(21, 135, 163, 0.16);
}

.light-theme .custom-network-option.selected {
    background: rgba(21, 135, 163, 0.22);
}

/* ========================= */
/* LIGHT THEME SEND BOX */
/* ========================= */
.light-theme .wallet-source-box {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(240, 240, 240, 0.9);
    border: 1px solid rgba(6, 171, 212, 0.35);
    overflow: hidden;
}

.light-theme .wallet-source-row {
    color: #333333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.light-theme .wallet-source-row strong {
    color: #1587a3;
}

.light-theme .wallet-source-row span {
    color: #333333;
}

.light-theme #fromAddress[readonly] {
    background: rgba(225, 225, 225, 0.95);
    color: #1587a3;
}

/* ========================= */
/* SWAP READONLY FROM FIELD - LIGHT THEME */
/* ========================= */
.light-theme #swapFromAddress[readonly] {
    background: rgba(225, 225, 225, 0.95);
    color: #1587a3;
}

/* ========================= */
/* LIGHT THEME HISTORY TITLE */
/* ========================= */
.light-theme #transactions h3 {
    color: #333333;
}

.light-theme .transaction-history-date {
    color: #333333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.light-theme .transaction-history-date strong {
    color: #1587a3;
}

.light-theme .transaction-history-body {
    color: #333333;
}

.light-theme .transaction-history-body strong {
    color: #1587a3;
}

.light-theme .transaction-history-section {
    border: 2px solid #06abd4;
    background: transparent;
}

.light-theme .transaction-history-toggle {
    background: #1587a3;
    color: #ffffff;
}

.light-theme .transaction-history-toggle:hover {
    background: #0f7690;
}

/* ========================= */
/* LIGHT THEME SUBMIT BUTTON */
/* ========================= */
.light-theme .transaction-submit-btn {
    background: linear-gradient(180deg, #1aa3c1 0%, #1587a3 100%);
    border: 1px solid rgba(6, 171, 212, 0.5);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(21, 135, 163, 0.18);
}

.light-theme .transaction-submit-btn:hover {
    background: linear-gradient(180deg, #22b4d4 0%, #1693b0 100%);
    border-color: rgba(6, 171, 212, 0.8);
}

/* ========================= */
/* LIGHT THEME TRANSACTION ANIMATION */
/* ========================= */
.light-theme .transaction-animation-overlay {
    background: rgba(240, 248, 252, 0.72);
}

.light-theme .wallet-target {
    background: rgba(21, 135, 163, 0.95);
}

/* ========================= */
/* LIGHT THEME INLINE SUCCESS */
/* ========================= */
.light-theme .transaction-inline-success {
    color: #1f9d68;
}

/* ========================= */
/* WALLET FLIGHT ANIMATION */
/* ========================= */
.wallet-flight-animation {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 34px;
    margin: 0 auto;
    display: none;
    overflow: hidden;
}

.wallet-flight-animation.active {
    display: block;
}

.wallet-node {
    position: absolute;
    top: 3px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(180deg, #0a8fb2 0%, #037d9c 100%);
    border: 1px solid rgba(6, 171, 212, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(3, 125, 156, 0.25);
    z-index: 2;
}

.wallet-node-left {
    left: 0;
}

.wallet-node-right {
    right: 0;
}

.wallet-flight-animation .inline-coin {
    top: 6px;
    left: 34px;
    animation: paxor-wallet-to-wallet-coin-fly 1.25s linear infinite;
}

.wallet-flight-animation .coin-1 {
    animation-delay: 0s;
}

.wallet-flight-animation .coin-2 {
    animation-delay: 0.25s;
}

.wallet-flight-animation .coin-3 {
    animation-delay: 0.5s;
}

@keyframes paxor-wallet-to-wallet-coin-fly {
    0% {
        transform: translateX(0) scale(0.85);
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    85% {
        transform: translateX(190px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(210px) scale(0.85);
        opacity: 0;
    }
}

.light-theme .wallet-node {
    background: linear-gradient(180deg, #1aa3c1 0%, #1587a3 100%);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(21, 135, 163, 0.22);
}

/* ========================= */
/* ACCOUNT TRANSACTIONS: PAXOR MODAL STYLE */
/* ========================= */

#transactions .transactions-container {
    margin: 0;
    width: 100%;
    overflow: visible;
    text-align: left;
    border: 1px solid rgba(6, 171, 212, 0.44);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        linear-gradient(180deg, rgba(6, 171, 212, 0.14), rgba(0, 0, 0, 0.10)),
        rgba(15, 18, 22, 0.98);
    box-shadow:
        0 0 24px rgba(6, 171, 212, 0.22),
        0 18px 50px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

#transactions .transactions-container .tab-section-header {
    position: relative;
    min-height: 72px;
    margin: 0;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #037d9c;
    border-radius: 15px;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.14) 48%, rgba(0, 0, 0, 0.04)),
        radial-gradient(circle at 78% 48%, rgba(3, 125, 156, 0.42), transparent 38%),
        linear-gradient(180deg, rgba(3, 125, 156, 0.38), rgba(4, 22, 32, 0.84));
    box-shadow:
        0 0 16px rgba(3, 125, 156, 0.48),
        0 10px 24px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    box-sizing: border-box;
}

#transactions .transactions-container .tab-section-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 42%),
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12), transparent 32%);
    pointer-events: none;
}

#transactions .transactions-container .tab-section-header h2 {
    position: relative;
    z-index: 2;
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.48);
}

#transactions .transactions-container .tab-section-body {
    padding: 18px 20px 20px;
}

#transactions .sub-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 16px;
    padding: 5px;
    border: 1px solid rgba(6, 171, 212, 0.28);
    border-radius: 14px;
    background: rgba(8, 12, 16, 0.86);
}

#transactions .sub-tab-button {
    min-height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(158, 231, 255, 0.16);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
    color: #bdefff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

#transactions .sub-tab-button::before {
    display: none;
}

#transactions .sub-tab-button i {
    position: static;
    width: auto;
    height: auto;
    color: #00ccff;
    transform: none;
}

#transactions .sub-tab-button.active,
#transactions .sub-tab-button:hover {
    border-color: rgba(6, 217, 255, 0.52);
    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.26), rgba(0, 255, 204, 0.10)),
        rgba(6, 171, 212, 0.12);
    color: #ffffff;
    box-shadow:
        0 0 14px rgba(6, 171, 212, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#transactions .sub-tab-button.active {
    border-color: rgba(6, 217, 255, 0.86);
    background:
        radial-gradient(circle at 50% 0%, rgba(93, 255, 154, 0.16), transparent 58%),
        linear-gradient(90deg, rgba(6, 171, 212, 0.36), rgba(0, 255, 204, 0.16)),
        rgba(6, 171, 212, 0.18);
    box-shadow:
        0 0 12px rgba(6, 217, 255, 0.34),
        0 0 26px rgba(6, 171, 212, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#transactions .sub-tab-button.active i,
#transactions .sub-tab-button:hover i {
    color: #e8fbff;
}

#transactions .sub-tab-content {
    display: none;
}

#transactions .sub-tab-content.active {
    display: block;
}

#transactions .transaction-form-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 16px;
    border: 1px solid rgba(6, 171, 212, 0.28);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        rgba(8, 12, 16, 0.92);
    box-shadow:
        0 0 18px rgba(6, 171, 212, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    box-sizing: border-box;
}

#transactions .transaction-form-container p {
    margin: 0 0 18px;
    color: #cfefff;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.45;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

#transactions .form-group {
    width: 100%;
    max-width: 520px;
    margin: 0 auto 14px;
}

#transactions .form-group label {
    margin: 0 0 8px;
    color: #e8fbff;
    font-size: 13px;
    font-weight: 800;
}

#transactions .form-group input,
#transactions .form-group select,
#transactions .custom-network-trigger {
    width: 100%;
    min-height: 42px;
    padding: 11px 12px;
    border: 1px solid rgba(6, 171, 212, 0.38);
    border-radius: 12px;
    background: rgba(8, 12, 16, 0.96);
    color: #ffffff;
    font-size: 14px;
    line-height: 1.45;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#transactions .form-group input:focus,
#transactions .form-group select:focus,
#transactions .custom-network-trigger:focus,
#transactions .custom-network-select.open .custom-network-trigger {
    border-color: rgba(6, 217, 255, 0.78);
    background: rgba(12, 16, 20, 1);
    box-shadow: 0 0 0 3px rgba(6, 217, 255, 0.12);
}

#transactions .custom-network-dropdown,
#transactions .custom-network-option {
    background: rgba(8, 12, 16, 0.96);
    color: #ffffff;
}

#transactions .custom-network-dropdown {
    border: 1px solid rgba(6, 217, 255, 0.50);
    border-radius: 12px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.38);
}

#transactions .custom-network-option:hover,
#transactions .custom-network-option.selected {
    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.22), rgba(0, 255, 204, 0.08)),
        rgba(6, 171, 212, 0.12);
}

#transactions .wallet-source-box,
#transactions .transaction-history-section {
    border: 1px solid rgba(6, 171, 212, 0.28);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        rgba(8, 12, 16, 0.92);
    color: #cfefff;
    box-shadow:
        0 0 18px rgba(6, 171, 212, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

#transactions .wallet-source-row {
    color: #cfefff;
    border-bottom-color: rgba(6, 171, 212, 0.18);
}

#transactions .wallet-source-row strong {
    color: #e8fbff;
}

#transactions #buy-amount-usd,
#transactions #buy-gas-cost,
#transactions #buy-gas-cost-usd,
#transactions #sell-amount-usd,
#transactions #sell-gas-cost,
#transactions #sell-gas-cost-usd,
#transactions #send-amount-usd,
#transactions #send-gas-cost,
#transactions #send-gas-cost-usd,
#transactions #swap-amount-usd,
#transactions #swap-gas-cost,
#transactions #swap-gas-cost-usd,
#transactions #bridge-gas-cost,
#transactions #bridge-gas-cost-usd {
    display: inline-block;
    margin-top: 6px;
    color: #cfefff;
    font-size: 13px;
    font-weight: 700;
}

#transactions .transaction-submit-btn,
#transactions .transaction-history-toggle {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid rgba(6, 217, 255, 0.54);
    border-radius: 11px;
    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.26), rgba(0, 255, 204, 0.10)),
        rgba(6, 171, 212, 0.12);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    box-shadow:
        0 0 14px rgba(6, 171, 212, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

#transactions .transaction-submit-btn {
    display: flex;
    width: fit-content;
    min-width: 150px;
    margin: 18px auto 0;
    padding: 0 26px;
    border-radius: 999px;
    border-color: rgba(93, 255, 154, 0.42);
    background:
        radial-gradient(circle at 26% 0%, rgba(93, 255, 154, 0.22), transparent 42%),
        linear-gradient(135deg, rgba(54, 168, 102, 0.34), rgba(6, 171, 212, 0.20)),
        rgba(8, 12, 16, 0.94);
    color: #eafff2;
    letter-spacing: 0.3px;
    box-shadow:
        0 0 16px rgba(54, 168, 102, 0.18),
        0 10px 22px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

#transactions .transaction-submit-btn::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 9px;
    border-radius: 50%;
    background: #5dff9a;
    box-shadow:
        0 0 8px rgba(93, 255, 154, 0.80),
        0 0 18px rgba(93, 255, 154, 0.34);
}

#transactions .transaction-submit-btn:hover {
    border-color: rgba(93, 255, 154, 0.72);
    background:
        radial-gradient(circle at 26% 0%, rgba(93, 255, 154, 0.32), transparent 44%),
        linear-gradient(135deg, rgba(54, 168, 102, 0.46), rgba(6, 171, 212, 0.26)),
        rgba(8, 12, 16, 0.98);
    box-shadow:
        0 0 20px rgba(54, 168, 102, 0.30),
        0 12px 24px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#transactions .transaction-referral-panel {
    width: 100%;
    max-width: 520px;
    margin: 4px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

#transactions .transaction-referral-icon {
    width: 54px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(93, 255, 154, 0.34);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 20%, rgba(93, 255, 154, 0.26), transparent 58%),
        rgba(6, 171, 212, 0.12);
    color: #eafff2;
    box-shadow:
        0 0 18px rgba(54, 168, 102, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

#transactions .transaction-referral-icon i {
    font-size: 20px;
}

#transactions .transaction-referral-fields {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

#transactions .transaction-referral-fields .form-group {
    max-width: none;
    margin: 0;
}

#transactions .transaction-referral-link {
    text-decoration: none;
    align-items: center;
    justify-content: center;
}

#transactions .transaction-referral-status {
    max-width: 480px;
    line-height: 1.45;
}

body.light-theme #transactions .transaction-referral-icon {
    background: rgba(6, 171, 212, 0.08);
    color: #0f4452;
}

@media (max-width: 760px) {
    #transactions .transaction-referral-fields {
        grid-template-columns: 1fr;
    }
}

#transactions .transaction-submit-btn:hover,
#transactions .transaction-history-toggle:hover {
    border-color: rgba(6, 217, 255, 0.78);
    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.34), rgba(0, 255, 204, 0.14)),
        rgba(6, 171, 212, 0.18);
    box-shadow:
        0 0 16px rgba(6, 171, 212, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

#transactions .transaction-history-section {
    max-width: 720px;
    margin: 16px auto 0;
    overflow: hidden;
}

#transactions .transaction-history-toggle {
    width: 100%;
    justify-content: space-between;
}

#transactions .transaction-history-date,
#transactions .transaction-history-body,
#transactions .account-box ul#transaction-list li {
    color: #cfefff;
}

#transactions .transaction-history-body a {
    color: #27dcff;
    font-weight: 700;
    text-decoration-color: rgba(39, 220, 255, 0.72);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

#transactions .transaction-history-body a:hover {
    color: #7cecff;
    text-shadow: 0 0 10px rgba(39, 220, 255, 0.58);
}

#transactions .transaction-history-date strong,
#transactions .transaction-history-body strong {
    color: #e8fbff;
}

body.light-theme #transactions .transactions-container,
body.light-theme #transactions .transaction-form-container,
body.light-theme #transactions .wallet-source-box,
body.light-theme #transactions .transaction-history-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        linear-gradient(180deg, rgba(6, 171, 212, 0.14), rgba(0, 0, 0, 0.10)),
        rgba(15, 18, 22, 0.98);
    color: #ffffff;
}

body.light-theme #transactions .transactions-container .tab-section-header h2,
body.light-theme #transactions .transaction-form-container p,
body.light-theme #transactions .form-group label,
body.light-theme #transactions .wallet-source-row,
body.light-theme #transactions .transaction-history-date,
body.light-theme #transactions .transaction-history-body,
body.light-theme #transactions .account-box ul#transaction-list li {
    color: #cfefff;
}

body.light-theme #transactions .form-group input,
body.light-theme #transactions .form-group select,
body.light-theme #transactions .custom-network-trigger {
    background: rgba(8, 12, 16, 0.96);
    border-color: rgba(6, 171, 212, 0.38);
    color: #ffffff;
}

@media (max-width: 760px) {
    #transactions .sub-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #transactions .transactions-container .tab-section-header {
        min-height: 68px;
        padding: 12px 16px;
    }

    #transactions .transactions-container .tab-section-header h2 {
        font-size: 24px;
    }

    #transactions .transactions-container .tab-section-body {
        padding: 14px;
    }
}
