/* =========================================================
   1SEN Withdraw Page
========================================================= */

.sen-v2-page,
.sen-v2-page *,
.sen-v2-page *::before,
.sen-v2-page *::after {
    box-sizing: border-box;
}

.sen-v2-page {
    --sen-red: var(--app-primary);
    --sen-red-dark: var(--app-primary-dark);
    --sen-gold: var(--app-secondary);
    --sen-border: var(--app-border);
    --sen-border-strong: var(--app-border-strong);
    --sen-text: var(--app-text);
    --sen-text-soft: var(--app-text-soft);
    --sen-muted: var(--app-text-muted);
    --sen-surface: var(--app-surface);
    --sen-surface-solid: var(--app-surface-solid);
    --sen-success: var(--app-success);
    --sen-danger: var(--app-danger);

    width: 100%;
    min-width: 0;
    color: var(--sen-text);
}

.sen-v2-shell {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 14px;
}

.sen-v2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--sen-gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* =========================================================
   Header
========================================================= */

.sen-v2-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--sen-border);
    border-radius: 18px;
    background:
        radial-gradient(circle at 10% 10%, rgba(var(--app-primary-rgb), .12), transparent 36%),
        var(--sen-surface);
}

.sen-withdraw-header-side {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.sen-withdraw-header-side--right {
    justify-content: flex-end;
}

.sen-withdraw-header-center {
    min-width: 0;
    text-align: center;
}

.sen-v2-logo-shell {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 14px;
    padding: 5px;
    display: grid;
    place-items: center;
    border: 1px solid var(--sen-border-strong);
    background: var(--sen-surface-solid);
}

.sen-v2-logo-shell img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sen-withdraw-header-center .sen-v2-eyebrow {
    justify-content: center;
}

.sen-v2-title {
    margin: 3px 0 0;
    color: var(--sen-text);
    font-size: clamp(20px, 3.2vw, 26px);
    font-weight: 900;
    line-height: 1.2;
}

.sen-withdraw-header-center p {
    margin: 5px 0 0;
    color: var(--sen-text-soft);
    font-size: 11px;
    line-height: 1.45;
}

.sen-v2-subtitle {
    margin: 6px 0 0;
    color: var(--sen-text-soft);
    font-size: 12px;
    line-height: 1.55;
}

.sen-withdraw-asset-badge {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    border: 1px solid var(--sen-border-strong);
    border-radius: 13px;
    background: rgba(var(--app-secondary-rgb), .09);
}

.sen-withdraw-asset-badge img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.sen-withdraw-asset-badge small,
.sen-withdraw-asset-badge strong {
    display: block;
}

.sen-withdraw-asset-badge small {
    color: var(--sen-muted);
    font-size: 9px;
}

.sen-withdraw-asset-badge strong {
    color: var(--sen-gold);
    font-size: 11px;
    font-weight: 800;
}

/* =========================================================
   Alerts
========================================================= */

.sen-withdraw-alert {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 13px;
    border-width: 1px;
}

/* =========================================================
   Shared Card Blocks
========================================================= */

.sen-withdraw-balance-section,
.sen-withdraw-history-card,
.sen-withdraw-form-card,
.sen-withdraw-info-card {
    border: 1px solid var(--sen-border);
    border-radius: 18px;
    background: var(--sen-surface);
    box-shadow: var(--app-shadow);
}

.sen-withdraw-balance-section,
.sen-withdraw-history-card {
    padding: 14px;
    margin-bottom: 16px;
}

.sen-withdraw-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.sen-withdraw-section-heading h2 {
    margin: 5px 0 0;
    font-size: 20px;
    font-weight: 850;
}

.sen-withdraw-refresh {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid var(--sen-border-strong);
    border-radius: 11px;
    background: rgba(var(--app-secondary-rgb), .1);
    color: var(--sen-gold);
    font-size: 11px;
    font-weight: 800;
}

/* =========================================================
   Balance Summary
========================================================= */

.sen-withdraw-balance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.sen-withdraw-balance-card {
    min-width: 0;
    display: flex;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--sen-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .02);
}

.sen-withdraw-balance-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(var(--app-secondary-rgb), .1);
    color: var(--sen-gold);
}

.sen-withdraw-balance-content {
    min-width: 0;
}

.sen-withdraw-balance-content>span {
    color: var(--sen-muted);
    font-size: 10px;
}

.sen-withdraw-balance-content strong {
    display: block;
    margin-top: 4px;
    font-size: 20px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.sen-withdraw-balance-content strong small {
    font-size: 11px;
    color: var(--sen-text-soft);
}

.sen-withdraw-balance-content p {
    margin: 5px 0 0;
    color: var(--sen-text-soft);
    font-size: 10px;
    line-height: 1.45;
}

/* =========================================================
   Main Grid (Form + Info)
========================================================= */

.sen-withdraw-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 14px;
    margin-bottom: 16px;
}

.sen-withdraw-form-card,
.sen-withdraw-info-card {
    padding: 14px;
}

.sen-withdraw-card-heading,
.sen-withdraw-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.sen-withdraw-card-heading>div:last-child,
.sen-withdraw-info-header>div {
    min-width: 0;
}

.sen-withdraw-card-heading h2,
.sen-withdraw-info-header h2 {
    margin: 1px 0 0;
    font-size: 21px;
    font-weight: 850;
    line-height: 1.2;
}

.sen-withdraw-card-heading p {
    margin: 5px 0 0;
    color: var(--sen-text-soft);
    font-size: 12px;
    line-height: 1.5;
}

.sen-withdraw-heading-icon,
.sen-withdraw-info-header i {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--sen-border-strong);
    border-radius: 14px;
    background: rgba(var(--app-secondary-rgb), .1);
    color: var(--sen-gold);
    font-size: 1.15rem;
}

.sen-withdraw-total-box {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--sen-border);
    border-radius: 14px;
    background: rgba(var(--app-primary-rgb), .06);
}

.sen-withdraw-total-box>span {
    color: var(--sen-muted);
    font-size: 10px;
}

.sen-withdraw-total-value {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sen-withdraw-total-value img {
    width: 22px;
    height: 22px;
}

.sen-withdraw-total-value strong {
    font-size: 28px;
    line-height: 1;
}

.sen-withdraw-total-value small {
    color: var(--sen-text-soft);
    font-size: 11px;
    font-weight: 700;
}

.sen-withdraw-form-group {
    margin-bottom: 12px;
}

.sen-withdraw-form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--sen-muted);
    font-size: 11px;
}

.sen-withdraw-input-shell,
.sen-withdraw-amount-input {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid var(--sen-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
}

.sen-withdraw-amount-input {
    position: relative;
    padding-right: 64px;
}

.sen-withdraw-input-shell i {
    color: var(--sen-muted);
}

.sen-withdraw-input-shell input,
.sen-withdraw-amount-input input {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--sen-text);
    outline: 0;
}

.sen-withdraw-amount-input input {
    padding-right: 2px;
}

.sen-withdraw-amount-input img {
    width: 18px;
    height: 18px;
}

.sen-withdraw-max-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    min-height: 26px;
    min-width: 42px;
    padding: 0 8px;
    border: 1px solid var(--sen-border-strong);
    border-radius: 8px;
    background: rgba(var(--app-secondary-rgb), .14);
    color: var(--sen-gold);
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.sen-withdraw-max-btn:hover {
    background: rgba(var(--app-secondary-rgb), .22);
}

.sen-withdraw-max-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.sen-withdraw-help,
.sen-withdraw-error {
    display: block;
    margin-top: 6px;
    font-size: 10px;
}

.sen-withdraw-help {
    color: var(--sen-muted);
}

.sen-withdraw-error {
    color: var(--sen-danger);
}

.sen-withdraw-calculation {
    margin-bottom: 12px;
    border: 1px solid var(--sen-border);
    border-radius: 13px;
    overflow: hidden;
}

.sen-withdraw-calculation>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 11px;
    border-bottom: 1px solid var(--sen-border);
}

.sen-withdraw-calculation>div:last-child {
    border-bottom: 0;
}

.sen-withdraw-calculation span {
    color: var(--sen-muted);
    font-size: 10px;
}

.sen-withdraw-calculation strong {
    font-size: 12px;
    font-weight: 800;
}

.sen-withdraw-calculation-total {
    background: rgba(var(--app-secondary-rgb), .08);
}

.sen-withdraw-submit {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--sen-red), var(--sen-red-dark));
    color: #fff;
    font-size: 12px;
    font-weight: 850;
    box-shadow: 0 10px 24px rgba(var(--app-primary-rgb), .26);
}

.sen-withdraw-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.sen-withdraw-minimum {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--sen-muted);
    font-size: 10px;
}

.sen-withdraw-pending-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 11px;
    border: 1px solid rgba(245, 158, 11, .28);
    border-radius: 12px;
    background: rgba(245, 158, 11, .08);
    color: #f59e0b;
    font-size: 10px;
    line-height: 1.45;
}

.sen-withdraw-pending-notice i {
    margin-top: 2px;
}

.sen-withdraw-pending-copy {
    display: grid;
    gap: 3px;
}

.sen-withdraw-pending-copy small {
    color: var(--sen-text-soft);
    font-size: 9px;
    line-height: 1.4;
}

/* =========================================================
   Info List
========================================================= */

.sen-withdraw-info-list {
    display: grid;
    gap: 8px;
}

.sen-withdraw-processing-info {
    display: grid;
    gap: 10px;
}

.sen-withdraw-processing-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--sen-border);
    border-radius: 13px;
    background: rgba(var(--app-secondary-rgb), .05);
}

.sen-withdraw-processing-item>i {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(var(--app-secondary-rgb), .12);
    color: var(--sen-gold);
    font-size: .8rem;
}

.sen-withdraw-processing-item p {
    margin: 0;
    color: var(--sen-text-soft);
    font-size: 11px;
    line-height: 1.55;
}

.sen-withdraw-processing-mobile {
    display: none;
}

.sen-withdraw-info-item {
    display: flex;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--sen-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .02);
}

.sen-withdraw-info-number {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(var(--app-secondary-rgb), .12);
    color: var(--sen-gold);
    font-size: 10px;
    font-weight: 900;
}

.sen-withdraw-info-item strong {
    font-size: 12px;
}

.sen-withdraw-info-item p {
    margin: 4px 0 0;
    color: var(--sen-text-soft);
    font-size: 10px;
    line-height: 1.45;
}

/* =========================================================
   History Table
========================================================= */

.sen-withdraw-table-wrap {
    overflow-x: auto;
}

.sen-withdraw-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.sen-withdraw-table thead th {
    padding: 10px;
    text-align: left;
    color: var(--sen-muted);
    font-size: 10px;
    font-weight: 800;
    border-bottom: 1px solid var(--sen-border);
}

.sen-withdraw-table tbody td {
    padding: 10px;
    border-bottom: 1px solid var(--sen-border);
    font-size: 11px;
    vertical-align: middle;
}

.sen-withdraw-table tbody tr:last-child td {
    border-bottom: 0;
}

.sen-withdraw-date strong,
.sen-withdraw-date small {
    display: block;
}

.sen-withdraw-date strong {
    font-size: 11px;
}

.sen-withdraw-date small,
.sen-withdraw-table td small {
    color: var(--sen-muted);
    font-size: 9px;
}

.sen-withdraw-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid var(--sen-border);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
}

.sen-withdraw-status.is-pending {
    color: #f59e0b;
    background: rgba(245, 158, 11, .12);
    border-color: rgba(245, 158, 11, .3);
}

.sen-withdraw-status.is-approved,
.sen-withdraw-status.is-processing {
    color: #38bdf8;
    background: rgba(56, 189, 248, .12);
    border-color: rgba(56, 189, 248, .3);
}

.sen-withdraw-status.is-completed {
    color: #22c55e;
    background: rgba(34, 197, 94, .12);
    border-color: rgba(34, 197, 94, .3);
}

.sen-withdraw-status.is-rejected {
    color: #ef4444;
    background: rgba(239, 68, 68, .12);
    border-color: rgba(239, 68, 68, .3);
}

.sen-withdraw-tx-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sen-gold);
    font-size: 10px;
    font-weight: 700;
}

.sen-withdraw-no-tx {
    color: var(--sen-muted);
    font-size: 10px;
}

.sen-withdraw-pagination {
    margin-top: 12px;
}

.sen-withdraw-empty {
    padding: 18px 10px;
    text-align: center;
}

.sen-withdraw-empty-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(var(--app-secondary-rgb), .12);
    color: var(--sen-gold);
}

.sen-withdraw-empty h3 {
    margin: 10px 0 0;
    font-size: 17px;
}

.sen-withdraw-empty p {
    margin: 6px auto 0;
    max-width: 430px;
    color: var(--sen-text-soft);
    font-size: 11px;
}

/* =========================================================
   SweetAlert Withdrawal Confirmation
========================================================= */

.withdraw-swal-confirm {
    display: grid;
    gap: 10px;
    text-align: left;
}

.withdraw-swal-total {
    padding: 13px;
    border: 1px solid var(--sen-border-strong);
    border-radius: 13px;
    background:
        linear-gradient(135deg, rgba(var(--app-primary-rgb), .13), rgba(var(--app-secondary-rgb), .08));
    text-align: center;
}

.withdraw-swal-total span,
.withdraw-swal-total strong,
.withdraw-swal-total small {
    display: block;
}

.withdraw-swal-total span,
.withdraw-swal-summary span,
.withdraw-swal-wallet span {
    color: var(--sen-muted);
    font-size: 10px;
}

.withdraw-swal-total strong {
    margin-top: 3px;
    color: var(--sen-text);
    font-size: 27px;
    font-weight: 900;
    line-height: 1.1;
}

.withdraw-swal-total small {
    margin-top: 3px;
    color: var(--sen-gold);
    font-size: 10px;
    font-weight: 800;
}

.withdraw-swal-summary,
.withdraw-swal-wallet {
    border: 1px solid var(--sen-border);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, .02);
}

.withdraw-swal-summary>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 11px;
    border-bottom: 1px solid var(--sen-border);
}

.withdraw-swal-summary>div:last-child {
    border-bottom: 0;
}

.withdraw-swal-summary strong {
    color: var(--sen-text);
    font-size: 12px;
    font-weight: 800;
}

.withdraw-swal-receive {
    background: rgba(var(--app-secondary-rgb), .09);
}

.withdraw-swal-receive strong {
    color: var(--sen-gold);
}

.withdraw-swal-wallet {
    padding: 10px 11px;
}

.withdraw-swal-wallet strong {
    display: block;
    margin-top: 4px;
    color: var(--sen-text-soft);
    font-size: 11px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.neon-dark .swal2-close {
    color: var(--sen-text-muted);
}

.neon-dark .swal2-close:hover {
    color: var(--sen-text);
}

/* =========================================================
   Modal
========================================================= */

.sen-withdraw-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 14px;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px);
}

.sen-withdraw-modal {
    width: min(100%, 460px);
    padding: 14px;
    border: 1px solid var(--sen-border-strong);
    border-radius: 18px;
    background: var(--sen-surface-solid);
    box-shadow: var(--app-shadow);
}

.sen-withdraw-modal-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(var(--app-secondary-rgb), .12);
    color: var(--sen-gold);
}

.sen-withdraw-modal-header {
    margin-top: 10px;
    text-align: center;
}

.sen-withdraw-modal-header h2 {
    margin: 5px 0 0;
    font-size: 20px;
}

.sen-withdraw-modal-header p {
    margin: 6px 0 0;
    color: var(--sen-text-soft);
    font-size: 11px;
}

.sen-withdraw-modal-summary,
.sen-withdraw-modal-wallet {
    margin-top: 12px;
    border: 1px solid var(--sen-border);
    border-radius: 12px;
    overflow: hidden;
}

.sen-withdraw-modal-summary>div,
.sen-withdraw-modal-wallet {
    padding: 9px 10px;
}

.sen-withdraw-modal-summary>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid var(--sen-border);
}

.sen-withdraw-modal-summary>div:last-child {
    border-bottom: 0;
}

.sen-withdraw-modal-summary span,
.sen-withdraw-modal-wallet span {
    color: var(--sen-muted);
    font-size: 10px;
}

.sen-withdraw-modal-summary strong,
.sen-withdraw-modal-wallet strong {
    font-size: 12px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.sen-withdraw-modal-summary .is-total {
    background: rgba(var(--app-secondary-rgb), .1);
}

.sen-withdraw-modal-actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.sen-withdraw-cancel,
.sen-withdraw-confirm {
    min-height: 42px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
}

.sen-withdraw-cancel {
    border: 1px solid var(--sen-border);
    background: var(--sen-surface);
    color: var(--sen-text-soft);
}

.sen-withdraw-confirm {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--sen-red), var(--sen-red-dark));
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 991.98px) {
    .sen-withdraw-balance-grid {
        grid-template-columns: 1fr;
    }

    .sen-withdraw-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .sen-v2-header {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        padding: 12px;
        border-radius: 16px;
    }

    .sen-v2-logo-shell {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 12px;
    }

    .sen-v2-title {
        font-size: 20px;
    }

    .sen-withdraw-header-center p {
        display: none;
    }

    .sen-withdraw-asset-badge {
        gap: 5px;
        padding: 6px 8px;
        border-radius: 10px;
    }

    .sen-withdraw-asset-badge img {
        width: 18px;
        height: 18px;
    }

    .sen-withdraw-asset-badge small {
        display: none;
    }

    .sen-withdraw-processing-full {
        display: none;
    }

    .sen-withdraw-processing-mobile {
        display: block;
    }

    .sen-withdraw-processing-item {
        gap: 8px;
        padding: 10px;
    }

    .sen-withdraw-processing-item p {
        font-size: 10px;
        line-height: 1.4;
    }

    .sen-withdraw-balance-section,
    .sen-withdraw-history-card,
    .sen-withdraw-form-card,
    .sen-withdraw-info-card {
        border-radius: 16px;
    }

    .sen-withdraw-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .sen-withdraw-total-value strong {
        font-size: 23px;
    }

    .sen-withdraw-modal-actions {
        grid-template-columns: 1fr;
    }
}