:root {
    --idvn-ink-900: #0f1318;
    --idvn-ink-800: #151b22;
    --idvn-ink-700: #1c232b;
    --idvn-gold-500: #c9a15b;
    --idvn-gold-300: #e5c88f;
    --idvn-crimson-500: #8f2d22;
    --idvn-jade-500: #2f7b62;
    --idvn-parchment-100: #f3ead7;
    --idvn-stone-300: #a79b8a;
    --idvn-text-primary: #f5efe4;
    --idvn-text-muted: #c4b7a4;
    --idvn-border: rgba(201, 161, 91, 0.35);
    --idvn-border-strong: rgba(229, 200, 143, 0.48);
    --idvn-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
    --idvn-radius: 18px;
    --idvn-radius-sm: 12px;
    --idvn-container: 1180px;
    --idvn-space-1: 0.25rem;
    --idvn-space-2: 0.5rem;
    --idvn-space-3: 0.75rem;
    --idvn-space-4: 1rem;
    --idvn-space-5: 1.5rem;
    --idvn-space-6: 2rem;
    --idvn-space-7: 3rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.idvn-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Be Vietnam Pro", sans-serif;
    color: var(--idvn-text-primary);
    background:
        radial-gradient(circle at top, rgba(201, 161, 91, 0.18), transparent 30%),
        linear-gradient(180deg, var(--idvn-ink-900) 0%, var(--idvn-ink-800) 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.idvn-body .material-icons {
    flex: 0 0 auto;
    font-size: 1.25rem;
    line-height: 1;
}

.idvn-theme-toggle .material-icons,
.idvn-user-toggle .material-icons,
.idvn-mobile-nav-link .material-icons {
    width: 1.25rem;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
}

.idvn-body .swal2-container.swal2-shown {
    background: rgba(15, 19, 24, 0.42);
}

.idvn-body .swal2-container.swal2-center {
    align-items: flex-start !important;
    padding-top: 18vh;
}

.idvn-body .swal2-popup {
    width: min(525px, calc(100vw - 32px));
    padding: 1.7rem 1.875rem 1.8rem;
    border: 1px solid var(--idvn-border);
    border-radius: var(--idvn-radius-sm);
    background: rgba(255, 250, 241, 0.96);
    color: #2a2118;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.idvn-body .swal2-container.swal2-center > .swal2-modal {
    margin: 0 auto !important;
}

.idvn-body .swal2-popup .swal2-title {
    padding: 0;
    margin: 0 0 0.8rem;
    color: #3b2a17;
    font-size: 1.7rem;
    line-height: 1.3;
    font-weight: 700;
}

.idvn-body .swal2-popup .swal2-html-container,
.idvn-body .swal2-popup .swal2-content {
    margin: 0;
    color: #6a5a49;
    font-size: 1.225rem;
    line-height: 1.55;
}

.idvn-body .swal2-popup .swal2-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.6rem 0 0;
}

.idvn-body .swal2-popup .swal2-styled {
    min-width: 11rem;
    margin: 0;
    padding: 0.95rem 1.35rem;
    border-radius: 8px;
    font-size: 1.2rem;
    border: 0;
    color: #ffffff !important;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: none;
}

.idvn-body .swal2-popup .swal2-confirm {
    background: #2f7b62 !important;
}

.idvn-body .swal2-popup .swal2-cancel {
    background: #8b8378 !important;
}

.idvn-body .swal2-popup .swal2-styled:focus {
    box-shadow: 0 0 0 3px rgba(201, 161, 91, 0.3);
}

.idvn-shell-card {
    border: 1px solid var(--idvn-border);
    border-radius: var(--idvn-radius);
    background: linear-gradient(180deg, rgba(25, 31, 39, 0.92) 0%, rgba(17, 22, 28, 0.96) 100%);
    box-shadow: var(--idvn-shadow);
}

.idvn-eyebrow {
    margin: 0 0 var(--idvn-space-2);
    color: var(--idvn-gold-300);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.idvn-auth-body {
    padding: var(--idvn-space-6);
}

.idvn-auth-shell,
.idvn-portal-shell {
    width: min(100%, var(--idvn-container));
    margin: 0 auto;
}

.idvn-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
    gap: var(--idvn-space-5);
    align-items: start;
    min-height: calc(100vh - 6rem);
}

.idvn-auth-shell--solo {
    grid-template-columns: minmax(0, 1fr);
}

.idvn-auth-shell--solo .idvn-auth-main {
    justify-content: center;
}

.idvn-auth-main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.idvn-auth-hero,
.idvn-auth-card,
.idvn-page-hero,
.idvn-form-panel,
.idvn-note-panel,
.idvn-history-panel,
.idvn-transaction-form,
.idvn-transaction-note,
.idvn-event-banner,
.idvn-stat-card,
.idvn-action-card,
.idvn-method-card {
    position: relative;
    overflow: hidden;
}

.idvn-auth-hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: var(--idvn-space-4);
    padding: var(--idvn-space-5);
    min-height: min(520px, calc(100vh - 10rem));
}

.idvn-auth-hero__image,
.idvn-page-hero__banner,
.idvn-transaction-note__banner,
.idvn-event-banner__media,
.idvn-media-placeholder,
[data-placeholder] {
    display: block;
    border: 1px dashed var(--idvn-border-strong);
    border-radius: var(--idvn-radius-sm);
    background: linear-gradient(135deg, rgba(201, 161, 91, 0.12), rgba(47, 123, 98, 0.1));
    color: var(--idvn-text-muted);
    text-align: center;
    padding: 0;
    overflow: hidden;
}

.idvn-auth-hero__image picture,
.idvn-page-hero__banner picture,
.idvn-transaction-note__banner picture,
.idvn-event-banner__media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.idvn-auth-hero__image img {
    object-position: center top;
}

.idvn-auth-hero__image img,
.idvn-page-hero__banner img,
.idvn-transaction-note__banner img,
.idvn-event-banner__media img,
.idvn-method-card__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.idvn-method-card__icon__square img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.idvn-auth-hero__image {
    flex: none;
    height: clamp(360px, 35vw, 500px);
    min-height: 0;
}

.idvn-auth-hero__copy h1,
.idvn-brand-title,
.idvn-page-head h1,
.idvn-page-hero__content h1,
.idvn-auth-card__header h1 {
    margin: 0 0 var(--idvn-space-3);
    font-family: "Be Vietnam Pro", sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.idvn-auth-card {
    width: min(100%, 520px);
    padding: var(--idvn-space-5);
}

.idvn-auth-card--wide {
    width: min(100%, 680px);
}

.idvn-auth-card__header {
    display: grid;
    gap: var(--idvn-space-3);
}

.idvn-auth-card__header p:last-child {
    margin-top: 0;
    color: var(--idvn-text-muted);
}

.idvn-auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    color: var(--idvn-gold-300);
    font-size: 0.95rem;
    font-weight: 600;
}

.idvn-auth-back-link:hover {
    color: #fff;
}

.idvn-auth-back-link .material-icons {
    font-size: 1.1rem;
}

.idvn-form-stack,
.idvn-form-grid {
    display: grid;
    gap: var(--idvn-space-4);
}

.idvn-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.idvn-form-grid .idvn-form-field--full {
    grid-column: 1 / -1;
}

.idvn-form-field {
    display: grid;
    gap: var(--idvn-space-2);
}

.idvn-form-field label {
    color: var(--idvn-gold-300);
    font-size: 0.95rem;
    font-weight: 600;
}

.idvn-input,
.idvn-select,
.idvn-textarea {
    width: 100%;
    min-height: 52px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(229, 200, 143, 0.2);
    border-radius: var(--idvn-radius-sm);
    background: rgba(8, 11, 15, 0.45);
    color: var(--idvn-text-primary);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.idvn-input:focus,
.idvn-select:focus,
.idvn-textarea:focus {
    outline: none;
    border-color: var(--idvn-gold-300);
    box-shadow: 0 0 0 3px rgba(201, 161, 91, 0.16);
}

.idvn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.85rem 1.35rem;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.idvn-btn:hover {
    transform: translateY(-1px);
}

.idvn-btn--primary {
    background: linear-gradient(135deg, #b24131, var(--idvn-crimson-500));
    color: #fff8f0;
    box-shadow: 0 12px 30px rgba(143, 45, 34, 0.28);
}

.idvn-btn--secondary {
    background: rgba(201, 161, 91, 0.16);
    color: var(--idvn-text-primary);
    border: 1px solid var(--idvn-border);
}

.idvn-auth-card__footer {
    display: flex;
    justify-content: space-between;
    gap: var(--idvn-space-3);
    margin-top: var(--idvn-space-5);
    color: var(--idvn-gold-300);
}

.idvn-auth-card__footer a:hover {
    color: #fff;
}

.idvn-portal-header {
    position: sticky;
    top: 10px;
    z-index: 60;
    backdrop-filter: blur(18px);
    background: rgba(15, 19, 24, 0.86);
    border-bottom: 1px solid var(--idvn-border);
}

.idvn-portal-header__inner,
.idvn-portal-main {
    width: min(100%, var(--idvn-container));
    margin: 0 auto;
}

.idvn-portal-header__inner {
    margin-top: 5px;
}

.idvn-portal-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--idvn-space-5);
    padding: var(--idvn-space-4) var(--idvn-space-5);
}

.idvn-brand-block,
.idvn-header-user {
    display: flex;
    align-items: center;
    gap: var(--idvn-space-3);
}

.idvn-nav-toggle,
.idvn-user-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--idvn-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--idvn-text-primary);
    cursor: pointer;
}

.idvn-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
}

.idvn-nav-toggle span {
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.idvn-header-user {
    position: relative;
}

.idvn-header-user__meta {
    display: grid;
    text-align: right;
    gap: var(--idvn-space-1);
}

.idvn-header-user__name {
    font-weight: 700;
}

.idvn-header-user__money {
    color: var(--idvn-gold-300);
    font-size: 0.9rem;
}

.idvn-user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    padding: var(--idvn-space-2);
    border: 1px solid var(--idvn-border);
    border-radius: var(--idvn-radius-sm);
    background: rgba(15, 19, 24, 0.96);
    box-shadow: var(--idvn-shadow);
    z-index: 80;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.idvn-user-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.idvn-user-menu a {
    display: block;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
}

.idvn-user-menu a:hover {
    background: rgba(201, 161, 91, 0.12);
}

.idvn-portal-nav {
    width: min(100%, var(--idvn-container));
    margin: 0 auto;
    padding: var(--idvn-space-4) var(--idvn-space-5) 0;
}

.idvn-portal-nav__desktop {
    display: flex;
    gap: var(--idvn-space-3);
    flex-wrap: wrap;
}

.idvn-nav-link,
.idvn-mobile-nav-link,
.idvn-stat-card--link,
.idvn-action-card,
.idvn-method-card {
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.idvn-nav-link {
    display: inline-flex;
    align-items: center;
    gap: var(--idvn-space-2);
    padding: 0.8rem 1.1rem;
    border: 1px solid var(--idvn-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--idvn-text-muted);
}

.idvn-nav-link.is-active,
.idvn-nav-link:hover,
.idvn-mobile-nav-link.is-active,
.idvn-mobile-nav-link:hover,
.idvn-stat-card--link:hover,
.idvn-action-card:hover,
.idvn-method-card:hover {
    border-color: var(--idvn-border-strong);
    background: rgba(201, 161, 91, 0.12);
    color: var(--idvn-text-primary);
    transform: translateY(-1px);
}

.idvn-stat-card--link {
    cursor: pointer;
}

.idvn-portal-nav__mobile {
    display: none;
}

.idvn-portal-main {
    padding: var(--idvn-space-5);
    display: grid;
    gap: var(--idvn-space-5);
}

.idvn-page-head,
.idvn-page-hero__content {
    display: grid;
    gap: var(--idvn-space-2);
}

.idvn-page-head h1,
.idvn-page-hero__content h1 {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.idvn-page-head p:last-child,
.idvn-page-hero__content p:last-child,
.idvn-auth-hero__copy p:last-child {
    margin: 0;
    color: var(--idvn-text-muted);
}

.idvn-page-hero {
    padding: var(--idvn-space-5);
    display: grid;
    gap: var(--idvn-space-4);
}

.idvn-page-hero__banner,
.idvn-transaction-note__banner,
.idvn-event-banner__media {
    min-height: 220px;
}

.idvn-overview-grid,
.idvn-method-grid,
.idvn-quick-actions,
.idvn-event-progress {
    display: grid;
    gap: var(--idvn-space-4);
}

.idvn-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.idvn-quick-actions,
.idvn-method-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.idvn-stat-card,
.idvn-action-card,
.idvn-method-card {
    padding: var(--idvn-space-4);
}

.idvn-stat-card__label {
    margin: 0 0 var(--idvn-space-2);
    color: var(--idvn-gold-300);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.idvn-stat-card h2,
.idvn-action-card h2,
.idvn-method-card h2 {
    margin: 0;
    font-size: 1.15rem;
}

.idvn-action-card,
.idvn-method-card {
    display: grid;
    gap: var(--idvn-space-2);
}

.idvn-action-card--single {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.idvn-action-card--single h2 {
    width: 100%;
}

.idvn-method-card__icon {
    width: 96px;
    height: 64px;
    border-radius: 18px;
}

.idvn-method-card__icon__square {
    width: 64px;
    height: 64px;
    border-radius: 18px;
}

.idvn-account-details,
.idvn-history-panel,
.idvn-form-panel,
.idvn-note-panel,
.idvn-transaction-form,
.idvn-transaction-note,
.idvn-event-banner {
    padding: var(--idvn-space-5);
}

.idvn-form-page,
.idvn-transaction-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
    gap: var(--idvn-space-5);
}

.idvn-history-table-wrap {
    overflow-x: auto;
}

.idvn-history-mobile-list {
    display: none;
}

.idvn-table {
    width: 100%;
    border-collapse: collapse;
}

.idvn-table th,
.idvn-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(229, 200, 143, 0.12);
    text-align: left;
}

.idvn-table th {
    color: var(--idvn-gold-300);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (max-width: 1024px) {
    .idvn-auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: var(--idvn-space-4);
    }

    .idvn-auth-hero {
        min-height: auto;
        padding: var(--idvn-space-4);
        gap: var(--idvn-space-3);
    }

    .idvn-auth-main {
        justify-content: flex-start;
    }

    .idvn-auth-hero__image {
        height: 220px;
    }

    .idvn-overview-grid,
    .idvn-method-grid,
    .idvn-quick-actions,
    .idvn-form-page,
    .idvn-transaction-layout {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
    .idvn-portal-header {
        position: relative;
        top: auto;
        z-index: 60;
        padding-top: 0;
    }

    .idvn-portal-header__inner {
        margin-top: 0;
        min-height: 56px;
        gap: var(--idvn-space-2);
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .idvn-brand-block {
        min-width: 0;
    }

    .idvn-brand-title {
        display: none;
    }

    .idvn-brand-block .idvn-eyebrow {
        margin: 0;
        overflow: visible;
        color: var(--idvn-gold-300);
        font-size: 0.68rem;
        letter-spacing: 0.14em;
        line-height: 1.45;
        white-space: nowrap;
    }

    .idvn-header-user {
        flex-shrink: 0;
        gap: 0.45rem;
        margin-left: auto;
    }

    .idvn-theme-toggle,
    .idvn-user-toggle {
        width: 40px;
        height: 40px;
    }

    .idvn-auth-body,
    .idvn-portal-main,
    .idvn-portal-nav,
    .idvn-portal-header__inner {
        padding-left: var(--idvn-space-4);
        padding-right: var(--idvn-space-4);
    }

    .idvn-auth-body {
        padding-top: var(--idvn-space-2);
        padding-bottom: var(--idvn-space-4);
    }

    .idvn-portal-nav {
        padding-top: 0.35rem;
    }

    .idvn-portal-main {
        gap: var(--idvn-space-4);
        padding-top: var(--idvn-space-3);
        padding-bottom: var(--idvn-space-4);
    }

    .idvn-auth-shell {
        gap: var(--idvn-space-2);
    }

    .idvn-nav-toggle {
        display: inline-flex;
    }

    .idvn-header-user__meta {
        display: none;
    }

    .idvn-portal-nav__desktop {
        position: static;
        display: grid;
        gap: var(--idvn-space-2);
        margin-top: var(--idvn-space-3);
        max-height: 0;
        padding: 0 var(--idvn-space-3);
        border: 1px solid var(--idvn-border);
        border-radius: var(--idvn-radius);
        background: rgba(15, 19, 24, 0.98);
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transform: none;
        transition: max-height 0.2s ease, padding 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
    }

    .idvn-nav-open .idvn-portal-nav__desktop {
        max-height: 220px;
        padding: var(--idvn-space-3);
        opacity: 1;
        visibility: visible;
    }

    .idvn-portal-nav__desktop,
    .idvn-nav-open .idvn-portal-nav__desktop {
        display: none;
        margin-top: 0;
        border: 0;
    }

    .idvn-portal-nav__mobile {
        position: sticky;
        bottom: 0;
        z-index: 20;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        max-width: 100%;
        margin: 0 auto;
        overflow-x: auto;
        padding: 0.35rem;
        background: linear-gradient(180deg, rgba(15, 19, 24, 0.88), rgba(15, 19, 24, 0.98));
        border-top: 1px solid var(--idvn-border);
        border-radius: 999px;
    }

    .idvn-mobile-nav-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        gap: 0.35rem;
        min-height: 42px;
        text-align: center;
        padding: 0.45rem 0.75rem;
        border: 1px solid rgba(229, 200, 143, 0.22);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.05);
        color: var(--idvn-text-muted);
        font-size: 0.78rem;
        line-height: 1;
        white-space: nowrap;
    }

    .idvn-mobile-nav-link.is-active,
    .idvn-mobile-nav-link:hover {
        background: rgba(201, 161, 91, 0.24);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
        transform: none;
    }

    .idvn-form-grid {
        grid-template-columns: 1fr;
    }

    .idvn-auth-card {
        width: 100%;
        padding: 0.875rem;
    }

    .idvn-auth-hero {
        padding: var(--idvn-space-2);
        gap: var(--idvn-space-2);
    }

    .idvn-auth-hero__copy {
        display: grid;
        gap: 0.35rem;
    }

    .idvn-auth-hero__copy .idvn-eyebrow {
        margin-bottom: 0;
    }

    .idvn-auth-hero__copy .idvn-font-imperial {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .idvn-auth-card__header h1 {
        font-size: clamp(2rem, 8vw, 2.35rem);
    }

    .idvn-auth-card__footer {
        flex-direction: column;
        margin-top: var(--idvn-space-3);
    }

    .idvn-page-hero__banner,
    .idvn-transaction-note__banner,
    .idvn-event-banner__media,
    .idvn-auth-hero__image {
        min-height: 0;
        height: 120px;
    }

    .idvn-page-hero {
        gap: 0;
        padding: 1rem 1.25rem;
    }

    .idvn-page-hero__content h1 {
        margin-bottom: 0;
        font-size: 1.35rem;
    }

    .idvn-overview-grid {
        gap: var(--idvn-space-3);
    }

    .idvn-stat-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--idvn-space-3);
        padding: 0.85rem 1rem;
    }

    .idvn-stat-card__label {
        flex: 0 0 auto;
        margin: 0;
        font-size: 0.78rem;
        line-height: 1.2;
        white-space: nowrap;
    }

    .idvn-stat-card h2 {
        min-width: 0;
        overflow: hidden;
        font-size: 1rem;
        line-height: 1.25;
        text-align: right;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

}

.idvn-captcha-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.75rem 1rem;
    border: 1px dashed var(--idvn-border-strong);
    border-radius: var(--idvn-radius-sm);
    background: rgba(255, 255, 255, 0.03);
}

.idvn-captcha-wrap p {
    margin: 0;
    cursor: pointer;
}

.idvn-detail-list,
.idvn-bank-panel {
    display: grid;
    gap: var(--idvn-space-4);
}

.idvn-detail-item,
.idvn-bank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--idvn-space-4);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(229, 200, 143, 0.12);
}

.idvn-transaction-note .idvn-bank-row {
    align-items: flex-start;
}

.idvn-transaction-note .idvn-bank-row span {
    flex: 0 0 5rem;
}

.idvn-transaction-note .idvn-bank-row strong {
    flex: 1;
    min-width: 0;
}

.idvn-detail-item:last-child,
.idvn-bank-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.idvn-detail-item__label,
.idvn-copy-note,
.idvn-note-list,
.idvn-bank-row span {
    color: var(--idvn-text-muted);
}

.idvn-detail-item h2,
.idvn-note-panel h2,
.idvn-transaction-note h2,
.idvn-event-banner__copy h2 {
    margin: 0.25rem 0 0;
    font-size: 1.1rem;
}

.idvn-account-exchange-card .idvn-detail-item {
    justify-content: center;
}

.idvn-account-exchange-card .idvn-detail-item > div,
.idvn-account-exchange-card [data-idvn-exchange-xu-form] {
    width: min(100%, 348px);
}

.idvn-account-exchange-card [data-idvn-exchange-xu-form] {
    gap: 0.85rem;
}

.idvn-account-profile-card {
    margin-top: calc(-1 * var(--idvn-space-2));
}

.idvn-note-list {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.65rem;
}

.idvn-inline-link {
    color: var(--idvn-gold-300);
}

.idvn-inline-link:hover {
    color: #fff;
}

.idvn-copy-field {
    display: flex;
    gap: var(--idvn-space-3);
    align-items: center;
    width: min(100%, 420px);
}

.idvn-copy-field .idvn-input {
    flex: 1;
}

.idvn-bank-tabs {
    display: none;
}

.idvn-topup-banking-form .idvn-bank-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    margin: 0 0 var(--idvn-space-3);
    overflow-x: auto;
    padding: 0.3rem;
    border: 1px solid rgba(229, 200, 143, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.idvn-topup-banking-form .idvn-bank-tab {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(229, 200, 143, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--idvn-text-muted);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}

.idvn-topup-banking-form .idvn-bank-tab.is-active {
    border-color: var(--idvn-border-strong);
    background: rgba(201, 161, 91, 0.24);
    color: var(--idvn-text-primary);
}

.idvn-topup-banking-form .idvn-bank-panel[data-idvn-bank-panel-group] .idvn-bank-panel__block:not(.is-active) {
    display: none;
}

.idvn-bank-panel__block {
    display: grid;
    gap: var(--idvn-space-3);
    padding: var(--idvn-space-4);
    border: 1px solid rgba(229, 200, 143, 0.12);
    border-radius: var(--idvn-radius-sm);
    background: rgba(255, 255, 255, 0.02);
}

.idvn-copy-note {
    margin: 0;
    line-height: 1.6;
}

.idvn-event-banner {
    display: grid;
    gap: var(--idvn-space-4);
}

.idvn-event-banner__copy {
    display: grid;
    gap: var(--idvn-space-2);
}

.idvn-event-banner__copy p {
    margin: 0;
    color: var(--idvn-text-muted);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    min-height: 40px;
    border: 1px solid rgba(229, 200, 143, 0.2);
    border-radius: 10px;
    background: rgba(8, 11, 15, 0.45);
    color: var(--idvn-text-primary);
    margin-left: 0.5rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--idvn-text-primary) !important;
}

.idvn-history-panel--compact .dataTables_filter {
    display: none;
}

.idvn-history-panel--compact .dataTables_wrapper,
.idvn-history-panel--compact .idvn-table,
.idvn-history-panel--compact .dataTables_info,
.idvn-history-panel--compact .dataTables_length,
.idvn-history-panel--compact .dataTables_paginate {
    font-size: 0.7rem;
}

.idvn-history-panel--compact .idvn-table th,
.idvn-history-panel--compact .idvn-table td {
    padding: 0.55rem 0.65rem;
    font-size: 0.7rem;
    line-height: 1.35;
}

.idvn-history-panel--compact table.dataTable,
.idvn-history-panel--compact table.dataTable tbody,
.idvn-history-panel--compact table.dataTable tbody tr,
.idvn-history-panel--compact table.dataTable tbody tr > td {
    background-color: transparent !important;
    color: var(--idvn-text-primary);
}

.idvn-history-panel--compact table.dataTable tbody tr:nth-child(odd) > td {
    background-color: rgba(255, 255, 255, 0.035) !important;
}

.idvn-history-panel--compact table.dataTable tbody tr:nth-child(even) > td {
    background-color: rgba(255, 255, 255, 0.015) !important;
}

.idvn-history-panel--compact table.dataTable tbody tr:hover > td {
    background-color: rgba(201, 161, 91, 0.12) !important;
}

.idvn-history-panel--compact table.dataTable.no-footer {
    border-bottom-color: rgba(229, 200, 143, 0.16);
}


@media (max-width: 768px) {
    .idvn-topup-vn-form {
        padding: 0.75rem;
    }

    .idvn-topup-vn-form .idvn-form-stack {
        gap: 0.45rem;
    }

    .idvn-topup-vn-form .idvn-form-field {
        gap: 0.2rem;
    }

    .idvn-topup-vn-form .idvn-input,
    .idvn-topup-vn-form .idvn-select,
    .idvn-topup-vn-form .idvn-btn {
        min-height: 40px;
        padding: 0.48rem 0.75rem;
        font-size: 0.88rem;
    }

    .idvn-topup-vn-form .idvn-captcha-wrap {
        min-height: 38px;
        padding: 0.35rem 0.65rem;
    }

    .idvn-topup-vn-form .idvn-captcha-wrap img {
        display: block;
        width: auto;
        max-height: 30px;
    }

    .idvn-topup-banking-form {
        padding: 0.85rem;
    }

    .idvn-topup-banking-form .idvn-bank-tabs {
        gap: 0.25rem;
        margin: 0 0 0.75rem;
        padding: 0.25rem;
    }

    .idvn-topup-banking-form .idvn-bank-tab {
        min-height: 32px;
        padding: 0.35rem 0.65rem;
        font-size: 0.72rem;
        letter-spacing: 0.06em;
    }

    .idvn-topup-banking-form .idvn-bank-panel {
        gap: 0.75rem;
    }

    .idvn-topup-banking-form .idvn-bank-panel__block {
        gap: 0.65rem;
        padding: 0.85rem;
    }

    .idvn-topup-banking-form .idvn-bank-panel__block > .idvn-eyebrow {
        margin-bottom: 0.1rem;
    }

    .idvn-detail-item,
    .idvn-bank-row,
    .idvn-copy-field {
        flex-direction: column;
        align-items: stretch;
    }

    .idvn-account-exchange-card {
        padding: 1rem;
    }

    .idvn-account-exchange-card .idvn-detail-list {
        gap: 0;
    }

    .idvn-account-exchange-card .idvn-detail-item {
        align-items: center;
        gap: 0.85rem;
        padding: 0;
    }

    .idvn-account-exchange-card .idvn-detail-item > div,
    .idvn-account-exchange-card [data-idvn-exchange-xu-form] {
        width: min(100%, 348px);
    }

    .idvn-account-exchange-card .idvn-detail-item h2 {
        font-size: 1rem;
        line-height: 1.25;
    }

    .idvn-account-exchange-card [data-idvn-exchange-xu-form] {
        gap: 0.65rem;
    }

    .idvn-account-exchange-card .idvn-form-field {
        gap: 0.3rem;
    }

    .idvn-account-exchange-card .idvn-form-field label {
        font-size: 0.85rem;
    }

    .idvn-account-exchange-card .idvn-input {
        min-height: 44px;
        padding: 0.6rem 0.85rem;
    }

    .idvn-account-exchange-card .idvn-btn {
        min-height: 44px;
        padding: 0.6rem 0.85rem;
        font-size: 0.9rem;
    }

    .idvn-account-profile-card {
        margin-top: -0.65rem;
        padding: 0.85rem 1rem;
    }

    .idvn-account-profile-card .idvn-detail-list {
        gap: 0;
    }

    .idvn-account-profile-card .idvn-detail-item {
        gap: 0.25rem;
        padding: 0.55rem 0;
    }

    .idvn-account-profile-card .idvn-detail-item:first-child {
        padding-top: 0;
    }

    .idvn-account-profile-card .idvn-detail-item__label {
        margin: 0;
        font-size: 0.78rem;
        line-height: 1.2;
    }

    .idvn-account-profile-card .idvn-detail-item h2 {
        margin-top: 0.15rem;
        font-size: 0.95rem;
        line-height: 1.25;
    }

    .idvn-topup-banking-form .idvn-bank-row {
        gap: 0.3rem;
        padding: 0.35rem 0;
    }

    .idvn-topup-banking-form .idvn-bank-row span {
        font-size: 0.9rem;
    }

    .idvn-topup-banking-form .idvn-bank-row strong {
        font-size: 0.95rem;
        line-height: 1.25;
    }

    .idvn-transaction-note .idvn-bank-row {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--idvn-space-3);
    }

    .idvn-transaction-note .idvn-bank-row span {
        flex: 0 0 auto;
        min-width: 5rem;
    }

    .idvn-topup-banking-form .idvn-copy-field {
        gap: 0.45rem;
    }

    .idvn-copy-field {
        width: 100%;
    }

    .idvn-topup-banking-form .idvn-copy-field .idvn-input {
        min-height: 44px;
        padding: 0.65rem 0.85rem;
    }

    .idvn-topup-banking-form .idvn-copy-field .idvn-btn {
        min-height: 42px;
        padding: 0.6rem 0.85rem;
        font-size: 0.9rem;
    }
}

.idvn-font-imperial {
    font-family: "Imperial Script", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 40px;
}
.idvn-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--idvn-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--idvn-text-primary);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.idvn-theme-toggle:hover {
    transform: translateY(-1px);
    background: rgba(201, 161, 91, 0.12);
}

.idvn-auth-layout-tools {
    width: min(100%, var(--idvn-container));
    margin: 0 auto var(--idvn-space-4);
    display: flex;
    justify-content: flex-end;
}

html[data-theme="light"] {
    --idvn-ink-900: #f6ebda;
    --idvn-ink-800: #fbf6ec;
    --idvn-ink-700: #fffaf2;
    --idvn-gold-500: #af8740;
    --idvn-gold-300: #7d5b26;
    --idvn-crimson-500: #a74a34;
    --idvn-jade-500: #3f7b67;
    --idvn-parchment-100: #fff9ef;
    --idvn-stone-300: #8d7c67;
    --idvn-text-primary: #2a2118;
    --idvn-text-muted: #6a5a49;
    --idvn-border: rgba(175, 135, 64, 0.26);
    --idvn-border-strong: rgba(125, 91, 38, 0.38);
    --idvn-shadow: 0 22px 44px rgba(96, 72, 32, 0.12);
}

html[data-theme="light"] body.idvn-body {
    background:
        radial-gradient(circle at top, rgba(196, 152, 69, 0.2), transparent 34%),
        linear-gradient(180deg, #f8efe1 0%, #fdf8ef 100%);
}

html[data-theme="light"] .idvn-shell-card,
html[data-theme="light"] .idvn-user-menu,
html[data-theme="light"] .idvn-bank-panel__block,
html[data-theme="light"] .idvn-captcha-wrap {
    background: linear-gradient(180deg, rgba(255, 252, 245, 0.96) 0%, rgba(248, 239, 224, 0.94) 100%);
}

html[data-theme="light"] .idvn-portal-nav__desktop,
html[data-theme="light"] .idvn-portal-nav__mobile {
    width: fit-content;
    max-width: 100%;
    padding: 0.45rem;
    border: 1px solid rgba(175, 135, 64, 0.22);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.92) 0%, rgba(247, 237, 218, 0.92) 100%);
    box-shadow: 0 14px 28px rgba(126, 97, 52, 0.08);
}

html[data-theme="light"] .idvn-portal-header {
    backdrop-filter: none;
    background: transparent;
    border-bottom: none;
}

html[data-theme="light"] .idvn-portal-header__inner {
    border: 1px solid rgba(175, 135, 64, 0.3);
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.92) 0%, rgba(247, 237, 218, 0.88) 100%);
    box-shadow: 0 18px 34px rgba(126, 97, 52, 0.08);
}

html[data-theme="light"] .idvn-nav-toggle,
html[data-theme="light"] .idvn-user-toggle,
html[data-theme="light"] .idvn-theme-toggle,
html[data-theme="light"] .idvn-nav-link,
html[data-theme="light"] .idvn-mobile-nav-link {
    background: rgba(255, 255, 255, 0.5);
    color: var(--idvn-text-primary);
}

html[data-theme="light"] .idvn-nav-link,
html[data-theme="light"] .idvn-mobile-nav-link,
html[data-theme="light"] .idvn-user-menu a,
html[data-theme="light"] .idvn-page-head p:last-child,
html[data-theme="light"] .idvn-page-hero__content p:last-child,
html[data-theme="light"] .idvn-auth-hero__copy p:last-child,
html[data-theme="light"] .idvn-copy-note,
html[data-theme="light"] .idvn-note-list,
html[data-theme="light"] .idvn-bank-row span,
html[data-theme="light"] .idvn-detail-item__label,
html[data-theme="light"] .idvn-history-mobile-list,
html[data-theme="light"] .dataTables_wrapper,
html[data-theme="light"] .dataTables_wrapper .dataTables_info,
html[data-theme="light"] .dataTables_wrapper .dataTables_length,
html[data-theme="light"] .dataTables_wrapper .dataTables_filter {
    color: var(--idvn-text-muted);
}

html[data-theme="light"] .idvn-nav-link.is-active,
html[data-theme="light"] .idvn-nav-link:hover,
html[data-theme="light"] .idvn-mobile-nav-link.is-active,
html[data-theme="light"] .idvn-mobile-nav-link:hover,
html[data-theme="light"] .idvn-user-menu a:hover,
html[data-theme="light"] .idvn-stat-card--link:hover,
html[data-theme="light"] .idvn-action-card:hover,
html[data-theme="light"] .idvn-method-card:hover,
html[data-theme="light"] .idvn-theme-toggle:hover {
    background: rgba(175, 135, 64, 0.14);
    color: var(--idvn-text-primary);
}

html[data-theme="light"] .idvn-input,
html[data-theme="light"] .idvn-select,
html[data-theme="light"] .idvn-textarea,
html[data-theme="light"] .dataTables_wrapper .dataTables_filter input,
html[data-theme="light"] .dataTables_wrapper .dataTables_length select {
    background: rgba(255, 255, 255, 0.74);
    color: var(--idvn-text-primary);
    border-color: rgba(125, 91, 38, 0.22);
}

html[data-theme="light"] .idvn-input::placeholder,
html[data-theme="light"] .idvn-textarea::placeholder {
    color: rgba(106, 90, 73, 0.72);
}

html[data-theme="light"] .idvn-auth-card__footer a:hover,
html[data-theme="light"] .idvn-auth-back-link:hover,
html[data-theme="light"] .idvn-inline-link:hover {
    color: var(--idvn-text-primary);
}

html[data-theme="light"] .idvn-table th,
html[data-theme="light"] .idvn-stat-card__label,
html[data-theme="light"] .idvn-form-field label,
html[data-theme="light"] .idvn-eyebrow,
html[data-theme="light"] .idvn-header-user__money {
    color: var(--idvn-gold-300);
}

html[data-theme="light"] .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--idvn-text-primary) !important;
}

html[data-theme="light"] .idvn-history-panel--compact table.dataTable,
html[data-theme="light"] .idvn-history-panel--compact table.dataTable tbody,
html[data-theme="light"] .idvn-history-panel--compact table.dataTable tbody tr,
html[data-theme="light"] .idvn-history-panel--compact table.dataTable tbody tr > td {
    background-color: transparent !important;
    color: var(--idvn-text-primary);
}

html[data-theme="light"] .idvn-history-panel--compact table.dataTable tbody tr:nth-child(odd) > td {
    background-color: rgba(255, 252, 245, 0.82) !important;
}

html[data-theme="light"] .idvn-history-panel--compact table.dataTable tbody tr:nth-child(even) > td {
    background-color: rgba(248, 239, 224, 0.72) !important;
}

html[data-theme="light"] .idvn-history-panel--compact table.dataTable tbody tr:hover > td {
    background-color: rgba(175, 135, 64, 0.14) !important;
}

html[data-theme="light"] .idvn-bank-tabs {
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.95) 0%, rgba(241, 228, 203, 0.95) 100%);
}

html[data-theme="light"] .idvn-bank-tab {
    border-color: rgba(175, 135, 64, 0.22);
    background: rgba(255, 255, 255, 0.82);
    color: var(--idvn-text-muted);
}

html[data-theme="light"] .idvn-bank-tab.is-active {
    border-color: rgba(150, 104, 35, 0.44);
    background: linear-gradient(180deg, rgba(238, 217, 175, 0.96) 0%, rgba(215, 188, 134, 0.9) 100%);
    color: #1f1a14;
}




@media (max-width: 768px) {
    html[data-theme="light"] .idvn-portal-header__inner {
        border-radius: 22px;
    }

    html[data-theme="light"] .idvn-portal-nav__mobile {
        padding: 0.35rem;
        background: linear-gradient(180deg, rgba(255, 253, 249, 0.95) 0%, rgba(241, 228, 203, 0.95) 100%);
    }

    html[data-theme="light"] .idvn-mobile-nav-link {
        border-color: rgba(175, 135, 64, 0.22);
        background: rgba(255, 255, 255, 0.82);
        color: var(--idvn-text-muted);
    }

    html[data-theme="light"] .idvn-mobile-nav-link.is-active,
    html[data-theme="light"] .idvn-mobile-nav-link:hover {
        border-color: rgba(150, 104, 35, 0.44);
        background: linear-gradient(180deg, rgba(238, 217, 175, 0.96) 0%, rgba(215, 188, 134, 0.9) 100%);
        box-shadow: 0 8px 18px rgba(126, 97, 52, 0.14);
        color: #1f1a14;
    }

}
