@import url("https://fonts.googleapis.com/css2?family=Lobster&display=swap");

:root {
    --v2-bg: #f5f7fb;
    --v2-surface: #ffffff;
    --v2-surface-soft: #f8fafc;
    --v2-text: #172033;
    --v2-muted: #64748b;
    --v2-border: #e2e8f0;
    --v2-blue: #2563eb;
    --v2-blue-dark: #1d4ed8;
    --v2-green: #16a34a;
    --v2-red: #dc2626;
    --v2-yellow: #d97706;
    --v2-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --v2-radius: 8px;
    --v2-card-gap: clamp(1rem, 2.5vw, 1.25rem);
    --v2-font: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    --v2-font-display: "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    --v2-control-height: 44px;
    --v2-control-height-sm: 38px;
    --v2-control-height-lg: 50px;
    --v2-control-radius: 10px;
}

* {
    letter-spacing: 0;
}

html,
body {
    min-height: 100%;
    background: var(--v2-bg) !important;
    color: var(--v2-text);
    font-family: var(--v2-font);
    font-size: 15px;
    overflow-x: hidden;
}

.v2-shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-top: 65px;
}

.v2-guest .v2-shell {
    padding-top: 0;
}

.v2-guest .v2-appbar {
    display: none;
}

.v2-guest .v2-body {
    display: block !important;
}

.v2-guest .v2-main {
    max-width: none;
}

.v2-body {
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
}

body.v2-login-page .v2-body {
    width: 100vw !important;
    min-width: 100vw !important;
    display: block !important;
    padding-left: 0 !important;
}

.v2-appbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    min-height: 64px;
    padding: 0.75rem clamp(1rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--v2-border);
    backdrop-filter: blur(14px);
}

.v2-brand img {
    display: block;
    height: 40px;
    width: auto;
    max-width: min(260px, 60vw);
    object-fit: contain;
}

.v2-appbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.v2-authenticated .v2-appbar-actions::before {
    display: none;
}

.v2-header-profile {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    color: var(--v2-blue);
    background: var(--v2-surface-soft);
    text-decoration: none;
}

.v2-header-profile.is-fallback {
    color: #ffffff;
    background: linear-gradient(135deg, var(--v2-blue), #0f766e);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.v2-header-profile i {
    font-size: 1.35rem;
    line-height: 1;
}

.v2-header-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.v2-icon-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius);
    color: var(--v2-text);
    background: var(--v2-surface);
    text-decoration: none;
}

.v2-icon-button {
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.v2-icon-link.active,
.v2-icon-link:hover {
    color: var(--v2-blue);
    background: #eff6ff;
    border-color: #bfdbfe;
}

.v2-logo-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.45rem, 2vw, 0.85rem);
    min-width: 0;
}

.v2-logo-lockup img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.v2-logo-lockup img:first-child {
    max-height: 62px;
}

.v2-logo-lockup img:last-child {
    max-height: 58px;
}

.v2-main {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem) clamp(0.85rem, 3vw, 1.5rem) 5.5rem;
    flex: 1 1 auto;
}

body.v2-login-page .v2-main {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.v2-sidebar {
    display: none;
}

.v2-sidebar-footer {
    display: none;
}

.v2-footer {
    display: none;
    color: var(--v2-muted);
    text-align: center;
    padding: 1.5rem;
}

.v2-bottom-nav {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 1030;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.3rem;
    padding: 0.45rem;
    background: #ffffff;
    border: 1px solid #c8d6e8;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.06);
}

.v2-bottom-nav::before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    /* Solid — bukan blur/gradient */
    height: calc(100px + env(safe-area-inset-bottom, 0px));
    background: #eef2f8;
    border-top: 1px solid #d7e1ef;
}

.v2-bottom-nav a {
    min-width: 0;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    color: #64748b;
    background: #f4f7fc;
    border: 1px solid #dce6f2;
    border-radius: 13px;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.v2-bottom-nav a.active {
    color: var(--v2-blue);
    background: #eff6ff;
    border-color: #bfdbfe;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.v2-bottom-nav a:not(.active):hover {
    color: #475569;
    background: #edf1f8;
    border-color: #c8d6e8;
}

.v2-bottom-nav i {
    font-size: 1.25rem;
}

.v2-app .container,
.v2-app .container-fluid {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.v2-app .card {
    border: 1px solid var(--v2-border) !important;
    border-radius: var(--v2-radius) !important;
    background: var(--v2-surface) !important;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06) !important;
}

.v2-app .card.mx-auto {
    max-width: 520px !important;
}

.v2-app .card.mx-auto.mobile-card,
.v2-app .mobile-card,
.v2-app .login-history-page .mobile-card {
    max-width: 980px !important;
}

.v2-app .header-logo-section {
    padding: 1.2rem 1.25rem !important;
    background: var(--v2-surface) !important;
    border-bottom: 1px solid var(--v2-border) !important;
    box-shadow: none !important;
}

.v2-app .card > .header-logo-section,
.v2-app .card > .d-none.d-md-block:has(.header-logo-section) {
    display: none !important;
}

.v2-app .mobile-header {
    display: none !important;
}

.v2-app .logo-sso-full {
    max-width: 260px !important;
}

.v2-app h1,
.v2-app h2,
.v2-app h3,
.v2-app h4,
.v2-app h5,
.v2-app h6 {
    color: var(--v2-text) !important;
    font-family: var(--v2-font-display);
    font-weight: 800;
}

.v2-app,
.v2-app input,
.v2-app select,
.v2-app textarea,
.v2-app button,
.v2-app .btn,
.v2-app .dropdown-menu,
.v2-app .modal-content {
    font-family: var(--v2-font);
}

.v2-app .btn,
.v2-sidebar a,
.v2-bottom-nav a,
.v2-eyebrow,
.v2-section-heading span,
.v2-action-tile span,
.v2-profile-name h2,
.v2-settings-card h2,
.v2-device-card h3,
.v2-activity-item strong {
    font-family: var(--v2-font-display);
}

.v2-app .text-muted,
.v2-app .small {
    color: var(--v2-muted) !important;
}

.v2-app .form-control,
.v2-app .input-group-text,
.v2-app select,
.v2-app textarea {
    border-color: var(--v2-border) !important;
    border-radius: var(--v2-control-radius) !important;
    background: var(--v2-surface-soft) !important;
    color: var(--v2-text) !important;
    min-height: var(--v2-control-height);
    padding: 0.62rem 0.85rem;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: none !important;
}

.v2-app textarea.form-control {
    min-height: 96px;
}

.v2-app .form-control-sm,
.v2-app .form-select-sm {
    min-height: var(--v2-control-height-sm);
    padding: 0.45rem 0.7rem;
    font-size: 0.84rem;
}

.v2-app .form-control-lg,
.v2-app .form-select-lg {
    min-height: var(--v2-control-height-lg);
    padding: 0.72rem 0.95rem;
    font-size: 1rem;
}

.v2-app .input-group .form-control {
    border-radius: 0 var(--v2-control-radius) var(--v2-control-radius) 0 !important;
}

.v2-app .input-group .input-group-text:first-child {
    border-radius: var(--v2-control-radius) 0 0 var(--v2-control-radius) !important;
}

.v2-app .btn {
    min-height: var(--v2-control-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.62rem 1rem;
    border-radius: var(--v2-control-radius) !important;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.15;
    box-shadow: none !important;
}

.v2-app .btn i {
    width: 1.05em;
    height: 1.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 1rem;
    line-height: 1;
}

.v2-app .btn-sm {
    min-height: var(--v2-control-height-sm);
    padding: 0.48rem 0.78rem;
    font-size: 0.84rem;
}

.v2-app .btn-sm i {
    font-size: 0.92rem;
}

.v2-app .btn-lg {
    min-height: var(--v2-control-height-lg);
    padding: 0.72rem 1.1rem;
    font-size: 1rem;
}

.v2-app .btn-link {
    min-height: auto;
    padding: 0;
}

.v2-app form .btn:not(.btn-link),
.v2-primary-actions .btn,
.v2-confirm-actions .btn {
    min-width: 132px;
}

.v2-app .modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: stretch;
}

.v2-app .modal-footer .btn {
    flex: 1 1 0;
    min-height: var(--v2-control-height);
    padding: 0.62rem 1rem;
    font-size: 0.92rem;
    margin: 0;
}

.v2-app .modal-footer > form {
    flex: 1 1 0;
    display: flex;
}

.v2-app .modal-footer > form .btn {
    width: 100%;
}

.v2-app .btn-primary,
.v2-app .primary-login-btn,
.v2-app .secondary-login-btn,
.v2-app .quick-login-btn-primary,
.v2-app .quick-login-btn-mydigitalid {
    background: var(--v2-blue) !important;
    border-color: var(--v2-blue) !important;
    color: #fff !important;
}

.v2-app .btn-primary:hover,
.v2-app .primary-login-btn:hover,
.v2-app .secondary-login-btn:hover {
    background: var(--v2-blue-dark) !important;
    border-color: var(--v2-blue-dark) !important;
    transform: none !important;
}

.v2-app .btn-outline-primary {
    color: var(--v2-blue) !important;
    border-color: #bfdbfe !important;
    background: #eff6ff !important;
}

.v2-app .btn-secondary,
.v2-app .btn-outline-secondary,
.v2-app .btn-light {
    color: var(--v2-text) !important;
    border-color: var(--v2-border) !important;
    background: var(--v2-surface-soft) !important;
}

.v2-app .btn-outline-danger {
    color: var(--v2-red) !important;
    border-color: #fecaca !important;
    background: #fef2f2 !important;
}

.v2-app .btn-success {
    background: var(--v2-green) !important;
    border-color: var(--v2-green) !important;
    color: #fff !important;
}

.v2-app .btn-danger {
    background: var(--v2-red) !important;
    border-color: var(--v2-red) !important;
    color: #fff !important;
}

.v2-app .btn-warning {
    background: #fef3c7 !important;
    border-color: #fde68a !important;
    color: #92400e !important;
}

.v2-app .mydigitalid-demo-container {
    max-width: 340px !important;
}

.v2-app .btn-mydigitalid-login-demo {
    width: 100%;
    min-height: 74px;
    border: 1px solid var(--v2-border) !important;
    border-radius: var(--v2-radius) !important;
    background: #fff !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06) !important;
}

.v2-app .mydigitalid-button-logo {
    max-width: 240px;
    height: auto;
}

.v2-app .separator-demo {
    color: var(--v2-muted) !important;
    font-size: 0.78rem;
    font-weight: 800;
    margin-top: 0.75rem;
}

.v2-app .primary-login-btn {
    height: auto !important;
    min-height: 66px;
    animation: none !important;
}

.v2-app .secondary-login-btn {
    min-width: 112px !important;
    height: 48px !important;
}

.v2-app .list-group-item {
    background: transparent !important;
    border-color: var(--v2-border) !important;
}

.v2-app .modal-content {
    overflow: hidden;
    border-radius: 16px !important;
    border: 1px solid var(--v2-border) !important;
    background: var(--v2-surface) !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
}

.v2-app .modal-header,
.v2-app .modal-footer {
    border-color: var(--v2-border) !important;
    background: var(--v2-surface) !important;
}

.v2-app .modal-header {
    min-height: 58px;
    padding: 0.95rem 1.05rem;
}

.v2-app .modal-body {
    padding: 1.05rem;
}

.v2-app .modal-footer {
    padding: 0.9rem 1.05rem;
}

.v2-app .modal-title {
    font-family: var(--v2-font-display);
    font-size: 1rem;
    font-weight: 800;
}

.v2-app .btn-close {
    width: 36px;
    height: 36px;
    margin: 0 !important;
    border-radius: 10px;
    background-color: var(--v2-surface-soft);
    opacity: 0.72;
}

.v2-system-info-dialog {
    width: min(640px, calc(100vw - 2rem));
    max-width: 640px;
    margin: 1rem auto;
}

.v2-system-info-modal {
    position: relative;
    overflow: hidden;
    border: 0 !important;
    border-radius: 22px !important;
    box-shadow: 0 20px 50px rgba(24, 39, 75, 0.18);
}

.v2-app .v2-system-info-modal {
    border: 0 !important;
    border-radius: 22px !important;
}

.v2-system-info-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
}

.v2-system-info-hero {
    padding: 2rem 3.5rem 1.55rem 1.5rem;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    border-bottom: 1px solid #dbeafe;
}

.v2-logo-lockup-modal {
    width: min(380px, 78vw);
    margin: 0 auto;
    align-items: flex-start;
}

.v2-logo-lockup-modal img:first-child {
    width: auto;
    height: clamp(44px, 10vw, 56px);
    max-height: none;
}

.v2-logo-lockup-modal img:last-child {
    width: auto;
    height: clamp(35px, 8vw, 44px);
    max-height: none;
    margin-top: 1px;
}

.v2-system-info-content {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.v2-system-info-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
}

.v2-system-info-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--v2-blue);
    background: #eff6ff;
    border-radius: 14px;
    font-size: 1.2rem;
}

.v2-system-info-item h6 {
    margin: 0 0 0.35rem;
    color: var(--v2-blue);
    font-size: 0.98rem;
    font-weight: 800;
}

.v2-system-info-item p {
    margin: 0;
    color: var(--v2-text);
    font-size: 0.94rem;
    line-height: 1.6;
}

.v2-system-info-item a {
    color: var(--v2-blue);
    font-weight: 700;
    text-decoration: none;
}

.v2-system-contact-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.8rem;
}

.v2-system-contact-method {
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem;
    background: var(--v2-surface-soft);
    border: 1px solid var(--v2-border);
    border-radius: 12px;
}

.v2-system-contact-method strong {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--v2-text);
    font-size: 0.92rem;
}

.v2-system-contact-method span {
    color: var(--v2-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.v2-system-info-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.15rem;
}

.v2-app .timeline-content {
    background: var(--v2-surface-soft) !important;
    border-left-color: var(--v2-blue) !important;
}

.v2-auth-screen {
    width: 100%;
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(1rem, 7vh, 3rem) clamp(1rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem);
}

body.v2-login-page .v2-auth-screen {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: none !important;
}

.v2-auth-card {
    width: 100%;
    max-width: 430px;
    flex: 0 0 auto;
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: 22px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.10);
    overflow: hidden;
}

body.v2-login-page .v2-auth-card {
    width: min(430px, calc(100vw - 2rem)) !important;
    max-width: min(430px, calc(100vw - 2rem)) !important;
    min-width: 0 !important;
}

@media (min-width: 768px) {
    body.v2-login-page .v2-auth-card {
        min-width: 430px !important;
    }
}

.v2-auth-hero {
    padding: 1.55rem 1.7rem 0.75rem;
    text-align: center;
}

.v2-auth-shield {
    width: 88px;
    height: 88px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--v2-blue);
    border-radius: 28px;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
    font-size: 2.65rem;
}

.v2-auth-logo {
    width: min(245px, 72vw);
    height: auto;
    display: block;
    margin: 0 auto 0.9rem;
    object-fit: contain;
}

.v2-auth-logo-lockup {
    width: min(340px, 78vw);
    margin: 0 auto 0.9rem;
}

.v2-auth-logo-lockup img:first-child {
    width: min(214px, 56vw);
}

.v2-auth-logo-lockup img:last-child {
    width: min(94px, 24vw);
}

.v2-auth-hero h1 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 700;
}

.v2-auth-hero p {
    max-width: 320px;
    margin: 0.55rem auto 0;
    color: var(--v2-muted);
    font-size: 1.02rem;
    line-height: 1.45;
}

.v2-auth-body {
    padding: 0 1.7rem 1.7rem;
}

.v2-auth-label {
    margin: 0.75rem 0 0.45rem;
    color: var(--v2-text);
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
}

.v2-auth-input-wrap {
    max-width: none !important;
}

.v2-auth-card .card-title-auth {
    display: none !important;
}

.v2-auth-card .mydigitalid-demo-container {
    max-width: 340px !important;
}

.v2-auth-input-wrap {
    max-width: 340px !important;
}

.v2-auth-card .btn-mydigitalid-login-demo {
    min-height: 0;
    background: #fff !important;
    border: 1.5px solid #cce3ff !important;
    border-radius: 14px !important;
    padding: 13px 18px !important;
}

.v2-auth-card .mydigitalid-button-logo {
    max-width: none;
    height: 30px;
    width: auto;
    filter: none;
}

.v2-auth-card .mydigitalid-info-link {
    margin-top: 0.35rem;
    color: var(--v2-muted) !important;
    font-size: 0.82rem;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.v2-auth-card .separator-demo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 0.65rem;
    color: var(--v2-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.v2-auth-card .separator-demo::before,
.v2-auth-card .separator-demo::after {
    content: "";
    flex: 1 1 0;
    height: 1px;
    background: var(--v2-border);
}

.v2-auth-card .separator-demo span {
    padding: 0;
    background: transparent;
}

.v2-auth-card .v2-login-options::before {
    content: "";
    display: block;
}

.v2-auth-card #loginOptions {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.v2-method-preview {
    margin-bottom: 1rem;
}

.v2-method-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.v2-preview-tile {
    min-width: 0;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 0.35rem;
    color: var(--v2-text);
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.v2-preview-tile:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    background: #f8fafc;
}

.v2-preview-tile.is-enabled {
    opacity: 1;
    cursor: pointer;
}

.v2-preview-tile.is-active {
    color: var(--v2-blue);
    background: #eff6ff;
    border-color: #93c5fd;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.14), inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.v2-preview-tile.is-active i {
    color: var(--v2-blue);
}

.v2-preview-tile.is-active .v2-google-icon {
    color: #ea4335;
}

.v2-preview-tile i {
    color: var(--v2-blue);
    font-size: 2rem;
    line-height: 1;
}

.v2-preview-tile .v2-google-icon {
    color: #ea4335;
}

.v2-preview-tile:focus {
    outline: 3px solid rgba(37, 99, 235, 0.22);
    outline-offset: 2px;
}

.v2-auth-card #primaryMethodSection {
    margin-bottom: 0.8rem !important;
}

.v2-auth-card .primary-login-btn {
    min-height: 58px;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    border-radius: 12px !important;
}

.v2-auth-card .v2-method-grid,
.v2-auth-card #secondaryButtons {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem !important;
}

.v2-auth-card .secondary-login-btn {
    min-width: 0 !important;
    width: 100%;
    min-height: 112px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column;
    gap: 0.45rem;
    color: var(--v2-text) !important;
    background: var(--v2-surface) !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: 8px !important;
    font-size: 1rem;
}

.v2-auth-card .secondary-login-btn i {
    margin: 0 !important;
    color: var(--v2-blue);
    font-size: 2rem !important;
}

.v2-auth-card #btnGoogle i {
    color: #ea4335;
}

.v2-auth-card #secondaryMethodsCollapsed,
.v2-auth-card #hideSecondaryMethods {
    margin-top: 0.25rem;
}

.v2-onboarding-screen {
    min-height: calc(100dvh - 64px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
}

.v2-onboarding-shell {
    width: min(100%, 1040px);
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.v2-onboarding-intro,
.v2-onboarding-card {
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.v2-onboarding-intro {
    position: sticky;
    top: 88px;
    padding: 1.25rem;
}

.v2-guest .v2-onboarding-intro {
    top: 1rem;
}

.v2-onboarding-intro img {
    width: min(230px, 100%);
    height: auto;
    display: block;
    margin: 0 auto 1.1rem;
}

.v2-onboarding-intro .v2-onboarding-logo-lockup {
    width: min(310px, 100%);
    margin: 0 auto 1.1rem;
}

.v2-onboarding-intro .v2-onboarding-logo-lockup img {
    margin: 0;
}

.v2-onboarding-intro .v2-onboarding-logo-lockup img:first-child {
    width: min(205px, 62%);
}

.v2-onboarding-intro .v2-onboarding-logo-lockup img:last-child {
    width: min(92px, 28%);
}

.v2-onboarding-intro span,
.v2-onboarding-card-header span {
    display: block;
    color: var(--v2-blue);
    font-family: var(--v2-font-display);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.v2-onboarding-intro h1 {
    margin: 0.35rem 0 0.55rem;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    line-height: 1.08;
}

.v2-onboarding-intro p {
    margin: 0;
    color: var(--v2-muted);
    line-height: 1.45;
}

.v2-onboarding-card {
    overflow: hidden;
}

.v2-onboarding-card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--v2-border);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.v2-onboarding-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--v2-blue);
    background: #eff6ff;
    border-radius: 12px;
    font-size: 1.2rem;
}

.v2-onboarding-card-header h2 {
    margin: 0.15rem 0 0;
    font-size: 1.2rem;
    line-height: 1.15;
}

.v2-onboarding-card-body {
    padding: 1.25rem;
}

.v2-onboarding-card .form-label {
    color: var(--v2-text);
    font-family: var(--v2-font-display);
    font-size: 0.82rem;
    font-weight: 800;
}

.v2-onboarding-card .form-text {
    color: var(--v2-muted);
    font-size: 0.76rem;
    line-height: 1.35;
}

.v2-onboarding-card .alert {
    border-radius: 12px;
}

body.v2-onboarding-page {
    overflow: hidden;
}

body.v2-onboarding-page .v2-main {
    height: 100dvh;
    max-width: none;
    overflow: hidden;
    padding: 0 !important;
}

body.v2-onboarding-page .v2-onboarding-screen {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    padding: clamp(1rem, 3vw, 2rem);
}

body.v2-onboarding-page .v2-onboarding-shell {
    height: 100%;
    min-height: 0;
    align-items: stretch;
}

body.v2-onboarding-page .v2-onboarding-intro {
    position: static;
    align-self: start;
}

body.v2-onboarding-page .v2-onboarding-card {
    min-height: 0;
    max-height: 100%;
    display: flex;
    flex-direction: column;
}

body.v2-onboarding-page .v2-onboarding-card-header {
    position: sticky;
    top: 0;
    z-index: 5;
    flex: 0 0 auto;
}

body.v2-onboarding-page .v2-onboarding-card-body {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
}

@media (max-width: 767.98px) {
    body.v2-onboarding-page .v2-onboarding-shell {
        grid-template-rows: auto minmax(0, 1fr);
    }
}

.v2-flow-page {
    max-width: 760px;
    margin: 0 auto;
}

.v2-flow-card {
    padding: clamp(1rem, 3vw, 1.35rem);
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.v2-flow-card-header {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    margin-bottom: 1rem;
}

.v2-flow-card-header h2 {
    margin: 0 0 0.2rem;
    font-size: 1.15rem;
    line-height: 1.15;
}

.v2-flow-card-header p {
    margin: 0;
    color: var(--v2-muted);
    line-height: 1.4;
}

.v2-qr-panel {
    display: flex;
    justify-content: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--v2-surface-soft);
    border: 1px solid var(--v2-border);
    border-radius: 16px;
}

.v2-qr-panel svg,
.v2-qr-panel img {
    width: min(245px, 70vw);
    height: auto;
    display: block;
}

.v2-alert-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid var(--v2-border);
    border-radius: 14px;
    background: var(--v2-surface-soft);
}

.v2-alert-card > i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--v2-blue);
    background: #eff6ff;
    border-radius: 12px;
}

.v2-alert-card.is-warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.v2-alert-card.is-warning > i {
    color: #92400e;
    background: #fef3c7;
}

.v2-alert-card strong {
    display: block;
    font-family: var(--v2-font-display);
    line-height: 1.2;
}

.v2-alert-card p {
    margin: 0.25rem 0 0.65rem;
    color: var(--v2-muted);
}

.v2-copy-feedback {
    display: none;
    margin-left: 0.5rem;
    color: var(--v2-green);
    font-size: 0.82rem;
    font-weight: 800;
}

.v2-copy-feedback.is-visible {
    display: inline-block;
}

.v2-otp-label {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--v2-text);
    font-family: var(--v2-font-display);
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
}

.v2-otp-grid {
    display: grid;
    grid-template-columns: repeat(6, 48px);
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.v2-app .otp-input,
.v2-app .otpEmail-input,
.v2-app .verify-email-otp-input,
.v2-app .profile-otp-input,
.v2-app .email-otp-input,
.v2-app .v2-otp-input {
    width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    font-family: var(--v2-font-display);
    font-size: 1.05rem !important;
    font-weight: 800;
}

.v2-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1rem;
}

.v2-form-actions .btn {
    width: min(100%, 208px);
}

.v2-profile-edit-body {
    display: grid;
    gap: 0.1rem;
}

.v2-dashboard {
    display: flex;
    flex-direction: column;
    gap: var(--v2-card-gap);
}

.v2-page {
    display: flex;
    flex-direction: column;
    gap: var(--v2-card-gap);
}

.v2-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: clamp(1rem, 3vw, 1.35rem);
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.v2-page-header h1 {
    margin: 0.15rem 0 0.35rem;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    line-height: 1.1;
}

.v2-page-header p {
    margin: 0;
    color: var(--v2-muted);
    font-size: 0.98rem;
    line-height: 1.42;
}

.v2-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--v2-card-gap);
}

.v2-settings-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1.2rem;
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.v2-settings-card .v2-primary-actions {
    grid-column: 2;
    margin-top: 0;
}

.v2-settings-card h2 {
    margin: 0 0 0.25rem;
    font-size: 1.12rem;
    line-height: 1.15;
}

.v2-settings-card p,
.v2-empty-large p {
    margin: 0;
    color: var(--v2-muted);
}

.v2-settings-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--v2-blue);
    background: #eff6ff;
    border-radius: 16px;
    font-size: 1.7rem;
}

.v2-settings-icon.is-good {
    color: var(--v2-green);
    background: #ecfdf5;
}

.v2-settings-icon.is-danger {
    color: var(--v2-red);
    background: #fef2f2;
}

.v2-dashboard-hero {
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.1rem, 3vw, 1.6rem);
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
}

.v2-eyebrow {
    color: var(--v2-blue);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.v2-dashboard-hero h1 {
    margin: 0.15rem 0 0.35rem;
    font-size: clamp(1.3rem, 3vw, 1.85rem);
    line-height: 1.1;
}

.v2-dashboard-hero p,
.v2-note-panel p {
    margin: 0;
    color: var(--v2-muted);
}

.v2-dashboard-welcome {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding: clamp(1.15rem, 3vw, 1.65rem);
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
}

.v2-dashboard-welcome h1 {
    margin: 0;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.v2-home-greeting {
    padding: 0.45rem clamp(1rem, 3vw, 1.35rem) 0.25rem;
}

.v2-home-greeting span,
.v2-home-greeting strong {
    display: block;
    overflow-wrap: anywhere;
}

.v2-home-greeting span {
    margin: 0;
    color: #2563eb;
    font-family: var(--v2-font-display);
    font-size: clamp(0.98rem, 1.5vw, 1.16rem);
    line-height: 1.18;
    font-weight: 700;
}

.v2-home-greeting strong {
    margin-top: 0.08rem;
    color: var(--v2-text);
    font-family: var(--v2-font-display);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.08;
    font-weight: 800;
    text-transform: uppercase;
}

.v2-home-banner {
    overflow: hidden;
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.v2-home-banner .carousel,
.v2-home-banner .carousel-inner,
.v2-home-banner .carousel-item {
    height: 100%;
}

.v2-home-banner .carousel-item > img {
    width: 100%;
    aspect-ratio: 16 / 5;
    display: block;
    object-fit: cover;
}

.v2-home-banner .carousel-indicators {
    margin-bottom: 0.35rem;
}

.v2-home-banner .carousel-indicators [data-bs-target] {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background-color: rgba(37, 99, 235, 0.65);
}

.v2-home-banner-fallback {
    min-height: 178px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1rem, 3vw, 1.4rem);
    background: #f8fbff;
}

.v2-home-banner-fallback span {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--v2-blue);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.v2-home-banner-fallback strong {
    display: block;
    max-width: 520px;
    font-family: var(--v2-font-display);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.18;
}

.v2-home-banner-fallback p {
    max-width: 600px;
    margin: 0.65rem 0 0;
    color: var(--v2-muted);
    line-height: 1.45;
}

.v2-home-banner-fallback > img,
.v2-home-banner-fallback > picture {
    width: min(230px, 35%);
    height: auto;
    object-fit: contain;
}

.v2-home-banner-fallback > picture img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.v2-home-banner-fallback.is-sso > img,
.v2-home-banner-fallback.is-sso > picture {
    width: min(250px, 38%);
}

.v2-birthday-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: clamp(0.9rem, 2.5vw, 1.15rem);
    align-items: center;
    padding: clamp(1rem, 3vw, 1.35rem);
    overflow: hidden;
    background: linear-gradient(135deg, #eff8ff 0%, #dff2ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.08);
}

.v2-birthday-icon {
    position: relative;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    background: #dbeafe;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 16px;
    font-size: 2rem;
}

.v2-birthday-icon > span {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f766e;
    background: #ecfeff;
    border: 1px solid rgba(14, 116, 144, 0.18);
    border-radius: 10px;
    font-size: 1rem;
    box-shadow: 0 8px 18px rgba(14, 116, 144, 0.12);
}

.v2-birthday-copy {
    min-width: 0;
}

.v2-birthday-copy > span {
    display: block;
    margin-bottom: 0.35rem;
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.v2-birthday-copy h2 {
    margin: 0;
    color: #0f6f7a;
    font-family: "Lobster", "Brush Script MT", "Segoe Script", cursive;
    font-size: clamp(1.75rem, 4.5vw, 3.1rem);
    font-weight: 400;
    line-height: 1.03;
    overflow-wrap: anywhere;
}

.v2-birthday-copy p {
    max-width: 980px;
    margin: 0.75rem 0 0;
    color: #1f3b57;
    font-size: clamp(0.95rem, 2.4vw, 1.04rem);
    line-height: 1.5;
}

.v2-birthday-copy p + p {
    margin-top: 0.55rem;
    font-weight: 700;
}

.v2-system-rating-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(200px, 0.85fr) minmax(0, 1.65fr);
    gap: clamp(1rem, 2.4vw, 1.4rem);
    align-items: center;
    padding: clamp(1rem, 3vw, 1.35rem) clamp(1.2rem, 4vw, 1.65rem) clamp(1rem, 3vw, 1.35rem) clamp(1rem, 3vw, 1.35rem);
    background: linear-gradient(180deg, #fff7fb 0%, #fdf2f8 100%);
    border: 1px solid #fbcfe8;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(190, 24, 93, 0.08);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.v2-system-rating-dismiss {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--v2-muted);
    background: transparent;
    border: 0;
    border-radius: 10px;
    transition: color 0.18s ease, background-color 0.18s ease;
}

.v2-system-rating-dismiss:hover,
.v2-system-rating-dismiss:focus-visible {
    color: #be185d;
    background: rgba(219, 39, 119, 0.1);
    outline: none;
}

.v2-system-rating-card.is-submitted {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

.v2-system-rating-copy span {
    display: block;
    margin-bottom: 0.35rem;
    color: #db2777;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.v2-system-rating-copy h2 {
    margin: 0;
    color: var(--v2-text);
    font-family: var(--v2-font-display);
    font-size: clamp(1.02rem, 2vw, 1.28rem);
    line-height: 1.2;
}

.v2-system-rating-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
}

.v2-system-rating-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.v2-system-rating-option {
    min-height: 96px;
    padding: 0.85rem 0.65rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    color: var(--v2-muted);
    background: var(--v2-surface);
    border: 1px solid #f9a8d4;
    border-radius: 14px;
    text-align: center;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.v2-system-rating-option:hover,
.v2-system-rating-option:focus-visible {
    color: #be185d;
    border-color: rgba(219, 39, 119, 0.48);
    box-shadow: 0 10px 26px rgba(219, 39, 119, 0.12);
    transform: translateY(-1px);
}

.v2-system-rating-option:focus-visible {
    outline: 3px solid rgba(219, 39, 119, 0.2);
    outline-offset: 2px;
}

.v2-system-rating-option.is-selected {
    color: #be185d;
    background: #fce7f3;
    border-color: #db2777;
    box-shadow: 0 12px 28px rgba(219, 39, 119, 0.16);
}

.v2-system-rating-option i {
    font-size: 2rem;
    line-height: 1;
}

.v2-system-rating-option span {
    color: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.18;
    overflow-wrap: normal;
    word-break: keep-all;
}

.v2-system-rating-actions {
    display: flex;
    gap: 0.55rem;
    justify-content: flex-end;
}

.v2-system-rating-actions .btn {
    min-width: 104px;
    min-height: var(--v2-control-height);
    white-space: nowrap;
}

.v2-system-rating-actions .btn:disabled,
.v2-system-rating-actions .btn.disabled {
    color: #ffffff;
    background: #94a3b8;
    border-color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.72;
}

.v2-system-rating-actions .btn-outline-secondary {
    color: var(--v2-muted);
    border-color: var(--v2-border);
    background: var(--v2-surface);
}

.v2-system-rating-actions .btn-outline-secondary:hover,
.v2-system-rating-actions .btn-outline-secondary:focus-visible {
    color: #be185d;
    border-color: rgba(219, 39, 119, 0.35);
    background: rgba(219, 39, 119, 0.08);
}

.v2-home-logo-lockup {
    flex: 0 0 auto;
    width: min(290px, 42%);
}

.v2-home-logo-lockup img:first-child {
    width: min(190px, 28vw);
}

.v2-home-logo-lockup img:last-child {
    width: min(84px, 13vw);
}

.v2-home-info-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: flex-start;
    padding: clamp(1rem, 3vw, 1.35rem);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--v2-border);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.v2-home-info-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--v2-blue);
    background: #eff6ff;
    border-radius: 12px;
    font-size: 1.15rem;
}

.v2-home-info-card p {
    margin: 0;
    color: var(--v2-text);
    font-size: clamp(0.95rem, 2.8vw, 1.05rem);
    line-height: 1.48;
}

.v2-home-info-card p + p {
    margin-top: 1rem;
}

.v2-home-info-card a {
    color: var(--v2-blue);
    font-weight: 700;
    text-decoration: none;
}

.v2-hero-mark {
    flex: 0 0 auto;
    min-width: 160px;
    display: none;
    justify-content: flex-end;
}

.v2-hero-mark img {
    width: min(250px, 30vw);
    height: auto;
    object-fit: contain;
}

.v2-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    gap: var(--v2-card-gap);
    align-items: start;
}

.v2-dashboard-hero:not(.d-none) ~ :where(.v2-dashboard-grid, .v2-recovery-panel, .v2-page):not(.d-none) {
    margin-top: 0.25rem;
}

.v2-home-page-profile-edit ~ .v2-flow-page {
    margin-top: var(--v2-card-gap);
}

.v2-profile-panel,
.v2-security-panel,
.v2-activity-panel,
.v2-biometric-panel,
.v2-note-panel {
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.v2-profile-panel,
.v2-security-panel,
.v2-activity-panel,
.v2-biometric-panel {
    padding: clamp(1rem, 3vw, 1.35rem);
}

.v2-profile-panel {
    grid-row: span 2;
}

.v2-profile-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.v2-avatar {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border-radius: 16px;
    overflow: hidden;
    background: #eff6ff;
    border: 1px solid #dbeafe;
}

.v2-avatar img,
.v2-avatar-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.v2-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.34), transparent 28%),
        linear-gradient(135deg, var(--v2-blue), #0f766e);
    font-family: var(--v2-font-display);
    font-size: 1.45rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.v2-avatar-fallback i {
    font-size: 2.1rem;
    line-height: 1;
}

.v2-avatar-fallback-sm {
    width: 64px;
    height: 64px;
    border-radius: 15px;
    cursor: pointer;
}

.v2-avatar-fallback-sm i {
    font-size: 1.75rem;
}

.v2-profile-name {
    min-width: 0;
}

.v2-profile-name span {
    color: var(--v2-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.v2-profile-name h2 {
    margin: 0.15rem 0;
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.v2-profile-name p {
    margin: 0;
    color: var(--v2-muted);
    font-weight: 700;
}

.v2-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.v2-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    background: var(--v2-surface-soft);
    color: var(--v2-muted);
    border: 1px solid var(--v2-border);
}

.v2-status.is-good {
    background: #ecfdf5;
    color: #047857;
    border-color: #bbf7d0;
}

.v2-status.is-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.v2-status.is-danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.v2-info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.v2-info-list > div {
    min-width: 0;
    padding: 0.8rem;
    background: var(--v2-surface-soft);
    border: 1px solid var(--v2-border);
    border-radius: 12px;
}

.v2-info-list span,
.v2-action-tile small,
.v2-device-card small {
    display: block;
    color: var(--v2-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.v2-info-list strong {
    display: block;
    margin-top: 0.15rem;
    overflow-wrap: anywhere;
}

.v2-primary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.v2-primary-actions .btn {
    flex: 0 1 208px;
    width: min(100%, 208px);
}

.v2-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.v2-section-heading span {
    font-size: 1rem;
    font-weight: 800;
}

.v2-section-heading strong {
    color: var(--v2-muted);
    font-size: 0.8rem;
}

.v2-section-heading a {
    color: var(--v2-blue);
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
}

.v2-action-grid {
    display: grid;
    gap: 0.65rem;
}

.v2-action-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.v2-action-tile {
    width: 100%;
    min-height: 76px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.75rem;
    padding: 0.8rem;
    color: var(--v2-text);
    text-align: left;
    text-decoration: none;
    background: var(--v2-surface-soft);
    border: 1px solid var(--v2-border);
    border-radius: 14px;
}

button.v2-action-tile {
    appearance: none;
}

.v2-action-tile i {
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--v2-blue);
    background: #eff6ff;
    border-radius: 12px;
    font-size: 1.25rem;
}

.v2-action-tile span {
    min-width: 0;
    font-weight: 800;
    line-height: 1.15;
}

.v2-action-tile.is-good i {
    color: var(--v2-green);
    background: #ecfdf5;
}

.v2-action-tile.is-danger i {
    color: var(--v2-red);
    background: #fef2f2;
}

.v2-action-tile.is-google i {
    color: var(--v2-blue);
    background: #eff6ff;
}

.v2-action-tile.is-disabled {
    opacity: 0.72;
}

.v2-device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}

.v2-device-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1.2rem;
    background: var(--v2-surface-soft);
    border: 1px solid var(--v2-border);
    border-radius: 14px;
}

.v2-device-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--v2-green);
    background: #ecfdf5;
    border-radius: 16px;
    font-size: 1.7rem;
    line-height: 1;
}

.v2-device-card h3 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.18;
}

.v2-device-card p {
    margin: 0.1rem 0 0.15rem;
    color: var(--v2-muted);
}

.v2-device-card form {
    grid-column: 2;
    margin-top: 0;
}

.v2-device-card form .btn,
.v2-settings-card .v2-primary-actions .btn,
.v2-profile-panel .v2-primary-actions .btn {
    width: min(100%, 208px);
}

.v2-confirm-modal {
    text-align: center;
}

.v2-confirm-modal .modal-body {
    padding: 1.25rem;
}

.v2-confirm-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: var(--v2-blue);
    background: #eff6ff;
    border-radius: 14px;
    font-size: 1.25rem;
}

.v2-confirm-icon.is-danger {
    color: var(--v2-red);
    background: #fef2f2;
}

.v2-confirm-icon.is-warning {
    color: var(--v2-yellow);
    background: #fffbeb;
}

.v2-confirm-icon.is-google {
    color: var(--v2-blue);
    background: #eff6ff;
}

.v2-confirm-modal h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.18;
}

.v2-confirm-modal p {
    margin: 0.55rem 0 1rem;
    color: var(--v2-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.v2-google-change-modal .modal-footer {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.v2-google-change-modal .modal-footer .btn,
.v2-google-change-modal .modal-footer > form,
.v2-google-change-modal .modal-footer > form .btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

.v2-google-change-modal .progress {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.v2-google-change-meta {
    display: block;
    color: var(--v2-muted);
    font-size: 0.78rem;
}

.v2-recovery-modal #recoveryStepConfirm {
    text-align: center;
}

.v2-recovery-modal #recoveryMessage {
    margin: 0.55rem 0 0;
    line-height: 1.55;
}

.v2-recovery-modal .modal-footer {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.v2-recovery-modal .modal-footer .btn,
.v2-recovery-modal .modal-footer > form,
.v2-recovery-modal .modal-footer > form .btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

.v2-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.v2-confirm-footer {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.v2-confirm-footer .btn {
    width: 100%;
}

.v2-quick-login-footer {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}

.v2-quick-login-footer .btn {
    width: 100%;
}

.v2-empty-state {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--v2-muted);
    background: var(--v2-surface-soft);
    border: 1px dashed var(--v2-border);
    border-radius: 14px;
}

.v2-empty-state i {
    font-size: 1.5rem;
}

.v2-empty-state p {
    margin: 0;
}

.v2-empty-large {
    align-items: flex-start;
    padding: 1.25rem;
}

.v2-empty-large strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--v2-text);
}

.v2-note-panel {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
}

.v2-note-panel i {
    color: var(--v2-blue);
    font-size: 1.3rem;
}

.v2-activity-list {
    display: grid;
    gap: 0.65rem;
}

.v2-activity-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    padding: 0.65rem;
    border: 1px solid var(--v2-border);
    border-radius: 12px;
    background: var(--v2-surface-soft);
}

.v2-activity-item > i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--v2-green);
    background: #ecfdf5;
    border-radius: 999px;
}

.v2-activity-item .flag-icon {
    width: 1.33333333em;
    height: 1em;
    display: inline-block;
    border-radius: 1px;
    background-color: transparent;
    vertical-align: -0.12em;
}

.v2-activity-item strong,
.v2-activity-item span {
    display: block;
    overflow-wrap: anywhere;
}

.v2-activity-item strong {
    line-height: 1.25;
}

.v2-activity-item span {
    color: var(--v2-muted);
    font-size: 0.78rem;
}

.v2-home-legacy-shell {
    display: none !important;
}

#loadingOverlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: rgba(248, 250, 252, 0.88);
    color: var(--v2-text);
    font-weight: 700;
}

.spinner {
    width: 42px;
    height: 42px;
    margin-bottom: 0.75rem;
    border: 4px solid #dbeafe;
    border-top-color: var(--v2-blue);
    border-radius: 999px;
    animation: v2Spin 0.9s linear infinite;
}

@keyframes v2Spin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .v2-main {
        padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 768px) {
    .v2-footer {
        display: none;
    }

    .v2-app .mobile-card,
    .v2-app .login-history-page .mobile-card {
        max-height: none !important;
    }
}

@media (min-width: 992px) {
    .v2-body {
        display: block;
        padding-left: 250px;
    }

    .v2-sidebar {
        position: fixed;
        top: 65px;
        bottom: 0;
        left: 0;
        z-index: 1020;
        box-sizing: border-box;
        width: 250px;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
        padding: 1.25rem 0.7rem;
        background: var(--v2-surface);
        border-right: 1px solid var(--v2-border);
    }

    .v2-sidebar-footer {
        display: block;
        margin-top: auto;
        padding: 1rem 0.8rem 0.2rem;
        color: var(--v2-muted);
        font-size: 0.78rem;
        font-weight: 600;
    }

    .v2-sidebar a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        min-height: 44px;
        padding: 0 0.8rem;
        color: var(--v2-muted);
        border-radius: 10px;
        font-size: 0.95rem;
        font-weight: 700;
        white-space: nowrap;
        text-decoration: none;
    }

    .v2-sidebar a span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .v2-sidebar a.active {
        color: #fff;
        background: var(--v2-blue);
    }

    .v2-main {
        max-width: 1120px;
        padding-bottom: 2rem;
    }

    .v2-bottom-nav {
        display: none;
    }

    .v2-app .mobile-card > .card-body,
    .v2-app .login-history-card-body {
        padding: 1.5rem !important;
    }

    .v2-app .card.mx-auto:not(.mobile-card) {
        max-width: 560px !important;
    }

    .v2-history-page {
        min-height: calc(100dvh - 129px);
    }

    .v2-activity-list-page {
        max-height: calc(100dvh - 315px);
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 0.35rem;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
    }

    .v2-activity-list-page::-webkit-scrollbar {
        width: 8px;
    }

    .v2-activity-list-page::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 999px;
    }

    .v2-activity-list-page::-webkit-scrollbar-track {
        background: transparent;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .v2-system-rating-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .v2-system-rating-copy h2 {
        max-width: 640px;
    }

    .v2-system-rating-form {
        grid-template-columns: 1fr;
    }

    .v2-system-rating-options {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }

    .v2-system-rating-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-content: stretch;
    }

    .v2-system-rating-actions .btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .v2-app {
        font-size: 0.97rem;
    }

    .v2-shell {
        padding-top: 58px;
    }

    .v2-guest .v2-shell {
        padding-top: 0;
    }

    .v2-appbar {
        min-height: 58px;
        padding: 0.65rem 0.9rem;
    }

    .v2-main {
        padding: 1rem 0.9rem calc(7.25rem + env(safe-area-inset-bottom, 0px));
    }

    .v2-history-page {
        min-height: calc(100dvh - 58px - 7.25rem);
    }

    .v2-activity-list-page {
        max-height: none;
        overflow: visible;
        padding-right: 0;
        padding-bottom: 0.75rem;
    }

    .v2-activity-list-page::-webkit-scrollbar {
        width: 5px;
    }

    .v2-activity-list-page::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 999px;
    }

    .v2-activity-list-page::-webkit-scrollbar-track {
        background: transparent;
    }

    .v2-app .btn,
    .v2-app .form-control,
    .v2-app .input-group-text,
    .v2-app select,
    .v2-app textarea {
        font-size: 0.96rem !important;
    }

    .v2-app .btn {
        min-height: 42px;
        padding: 0.58rem 0.9rem;
    }

    .v2-app .btn-sm {
        min-height: 36px;
        padding: 0.45rem 0.72rem;
        font-size: 0.88rem !important;
    }

    .v2-app .modal-footer .btn,
    .v2-confirm-actions .btn {
        min-width: 0;
    }

    .v2-brand img {
        height: 42px;
        max-width: min(260px, calc(100vw - 170px));
    }

    .v2-header-profile {
        width: 42px;
        height: 42px;
        border-radius: 11px;
    }

    .v2-app .card {
        border-radius: 14px !important;
    }

    .v2-app .modal-dialog {
        align-items: flex-end;
        min-height: calc(100% - 1rem);
        margin: 0.5rem;
    }

    .v2-app .modal-content {
        border-radius: 18px 18px 12px 12px !important;
    }

    .v2-app #quickLoginModal .modal-dialog {
        min-height: calc(100% - 1rem);
        display: flex;
        align-items: center;
        margin: 0.5rem auto;
    }

    .v2-app #quickLoginModal .modal-content {
        border-radius: 16px !important;
    }

    .v2-system-info-dialog {
        width: calc(100vw - 1rem);
        max-width: calc(100vw - 1rem);
        min-height: calc(100% - 1rem);
        display: flex;
        align-items: center;
        margin: 0.5rem auto;
    }

    .v2-system-info-modal {
        border-radius: 18px !important;
    }

    .v2-system-info-hero {
        padding: 1.65rem 3rem 1.2rem 1rem;
    }

    .v2-system-info-content {
        padding: 1rem;
    }

    .v2-system-info-item {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 0.75rem;
    }

    .v2-system-info-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 1rem;
    }

    .v2-app #quickLoginClear {
        white-space: nowrap;
        font-size: 0.88rem !important;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .v2-dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
        min-height: auto;
        padding: 1rem;
    }

    .v2-dashboard-hero h1,
    .v2-page-header h1 {
        font-size: 1.43rem;
        line-height: 1.12;
    }

    .v2-dashboard-hero p,
    .v2-page-header p {
        font-size: 0.96rem;
        line-height: 1.45;
    }

    .v2-eyebrow {
        font-size: 0.73rem;
    }

    .v2-hero-mark {
        justify-content: flex-start;
        min-width: 0;
    }

    .v2-hero-mark img {
        width: 190px;
        max-width: 75vw;
    }

    .v2-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .v2-home-info-card {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        padding: 1rem;
    }

    .v2-birthday-card {
        grid-template-columns: 1fr;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }

    .v2-birthday-icon {
        width: 54px;
        height: 54px;
        border-radius: 14px;
        font-size: 1.75rem;
    }

    .v2-birthday-icon > span {
        width: 27px;
        height: 27px;
        right: -5px;
        bottom: -5px;
        border-radius: 9px;
        font-size: 0.9rem;
    }

    .v2-birthday-copy > span {
        font-size: 0.72rem;
    }

    .v2-birthday-copy h2 {
        font-size: clamp(1.65rem, 9vw, 2.35rem);
        line-height: 1.05;
    }

    .v2-birthday-copy p {
        margin-top: 0.6rem;
        font-size: 0.95rem;
        line-height: 1.42;
    }

    .v2-home-greeting {
        padding: 0.15rem 1rem 0.25rem;
    }

    .v2-home-greeting span {
        font-size: 0.94rem;
    }

    .v2-home-greeting strong {
        font-size: 1.16rem;
        line-height: 1.12;
    }

    .v2-home-banner {
        border-radius: 16px;
    }

    .v2-home-banner .carousel-item > img {
        aspect-ratio: 16 / 8;
    }

    .v2-home-banner-fallback {
        min-height: 150px;
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .v2-home-banner-fallback span {
        margin-bottom: 0.35rem;
        font-size: 0.72rem;
    }

    .v2-home-banner-fallback strong {
        font-size: 1.05rem;
    }

    .v2-home-banner-fallback p {
        margin-top: 0.45rem;
        font-size: 0.9rem;
        line-height: 1.38;
    }

    .v2-home-banner-fallback > img,
    .v2-home-banner-fallback.is-sso > img,
    .v2-home-banner-fallback > picture,
    .v2-home-banner-fallback.is-sso > picture {
        width: min(170px, 64%);
    }

    .v2-home-logo-lockup {
        width: min(230px, 72%);
    }

    .v2-home-logo-lockup img:first-child {
        width: min(155px, 48vw);
    }

    .v2-home-logo-lockup img:last-child {
        width: min(70px, 22vw);
    }

    .v2-system-rating-card {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        padding: 1rem;
        border-radius: 16px;
    }

    .v2-system-rating-form {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .v2-system-rating-options {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .v2-system-rating-option {
        min-height: 68px;
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.75rem 0.85rem;
        text-align: left;
    }

    .v2-system-rating-option span {
        font-size: 0.96rem;
        white-space: nowrap;
    }

    .v2-system-rating-option i {
        width: 34px;
        flex: 0 0 auto;
        font-size: 1.75rem;
        text-align: center;
    }

    .v2-system-rating-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-content: stretch;
    }

    .v2-system-rating-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .v2-home-info-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 1rem;
    }

    .v2-home-info-card p {
        font-size: 0.96rem;
        line-height: 1.42;
    }

    .v2-dashboard-welcome {
        min-height: 112px;
        padding: 1.2rem;
    }

    .v2-dashboard-welcome h1 {
        font-size: 1.45rem;
        line-height: 1.12;
    }

    .v2-auth-screen {
        align-items: center;
        min-height: 100dvh;
        padding: 0.9rem 0.75rem 1.25rem;
    }

    .v2-auth-card {
        width: 100%;
        max-width: 430px;
    }

    .v2-auth-hero {
        padding: 1.25rem 1.2rem 0.55rem;
    }

    .v2-auth-hero h1 {
        font-size: 1.04rem;
    }

    .v2-auth-hero p {
        font-size: 0.96rem;
        line-height: 1.4;
    }

    .v2-auth-body {
        padding: 0 1.2rem 1.25rem;
    }

    .v2-auth-label {
        font-size: 0.86rem;
    }

    .v2-auth-card .separator-demo {
        font-size: 0.88rem;
    }

    .v2-onboarding-screen {
        min-height: auto;
        padding: 1rem 0.9rem 5.35rem;
    }

    .v2-onboarding-shell {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .v2-onboarding-intro {
        position: sticky;
        top: 0.75rem;
        z-index: 20;
        padding: 1rem;
        border-radius: 16px;
    }

    .v2-onboarding-intro img {
        width: 180px;
        margin: 0 auto 0.8rem;
    }

    .v2-onboarding-intro span,
    .v2-onboarding-card-header span {
        font-size: 0.7rem;
    }

    .v2-onboarding-intro h1 {
        font-size: 1.26rem;
        line-height: 1.12;
    }

    .v2-onboarding-intro p {
        font-size: 0.93rem;
    }

    .v2-onboarding-card {
        border-radius: 16px;
    }

    .v2-onboarding-card-header {
        padding: 0.95rem;
    }

    .v2-onboarding-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 1rem;
    }

    .v2-onboarding-card-header h2 {
        font-size: 1.08rem;
    }

    .v2-onboarding-card-body {
        padding: 1rem;
    }

    .v2-onboarding-card .form-label {
        font-size: 0.84rem;
    }

    .v2-flow-page {
        max-width: none;
    }

    .v2-flow-card {
        padding: 1rem;
        border-radius: 16px;
    }

    .v2-flow-card-header {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 0.75rem;
    }

    .v2-flow-card-header h2 {
        font-size: 1.08rem;
    }

    .v2-flow-card-header p {
        font-size: 0.92rem;
    }

    .v2-qr-panel {
        padding: 0.8rem;
    }

    .v2-qr-panel svg,
    .v2-qr-panel img {
        width: min(220px, 72vw);
    }

    .v2-alert-card {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 0.65rem;
        padding: 0.75rem;
    }

    .v2-alert-card > i {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .v2-otp-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .v2-app .otp-input,
    .v2-app .otpEmail-input,
    .v2-app .verify-email-otp-input,
    .v2-app .profile-otp-input,
    .v2-app .email-otp-input,
    .v2-app .v2-otp-input {
        width: 100% !important;
        max-width: 46px;
        height: 46px !important;
        min-height: 46px !important;
        font-size: 1.06rem !important;
    }

    .v2-form-actions .btn {
        width: 100%;
    }

    .v2-method-preview-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .v2-preview-tile {
        min-height: 78px;
        padding: 0.45rem 0.2rem;
        font-size: 0.72rem;
        border-radius: 8px;
    }

    .v2-preview-tile i {
        font-size: 1.45rem;
    }

    .v2-profile-panel {
        grid-row: auto;
    }

    .v2-info-list {
        grid-template-columns: 1fr;
    }

    .v2-profile-top {
        align-items: flex-start;
        gap: 0.8rem;
    }

    .v2-avatar {
        width: 66px;
        height: 66px;
        flex-basis: 66px;
        border-radius: 14px;
    }

    .v2-profile-name h2 {
        font-size: 1.34rem;
        line-height: 1.14;
    }

    .v2-profile-name p {
        font-size: 0.98rem;
    }

    .v2-status {
        font-size: 0.84rem;
        padding: 0.45rem 0.65rem;
    }

    .v2-info-list span,
    .v2-action-tile small,
    .v2-device-card small {
        font-size: 0.8rem;
    }

    .v2-info-list strong {
        font-size: 1rem;
    }

    .v2-primary-actions .btn {
        width: 100%;
    }

    .v2-page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
        padding: 1rem;
        border-radius: 16px;
    }

    .v2-section-heading span {
        font-size: 0.98rem;
    }

    .v2-section-heading strong,
    .v2-section-heading a {
        font-size: 0.8rem;
    }

    .v2-settings-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .v2-settings-card {
        grid-template-columns: 44px minmax(0, 1fr);
        align-items: start;
        gap: 0.75rem;
        padding: 0.95rem;
        border-radius: 16px;
    }

    .v2-settings-card > .v2-settings-icon {
        align-self: start;
    }

    .v2-settings-card .v2-primary-actions {
        grid-column: 2;
        margin-top: 0;
    }

    .v2-settings-card h2,
    .v2-device-card h3 {
        font-size: 1.06rem;
    }

    .v2-settings-card p,
    .v2-device-card p,
    .v2-empty-large p {
        font-size: 0.92rem;
    }

    .v2-settings-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 1.25rem;
    }

    .v2-action-grid-2 {
        grid-template-columns: 1fr;
    }

    .v2-action-tile {
        min-height: 68px;
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 0.75rem;
    }

    .v2-action-tile i {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 1.08rem;
    }

    .v2-device-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 1.25rem;
    }

    .v2-action-tile span {
        font-size: 1rem;
    }

    .v2-device-card {
        grid-template-columns: 44px minmax(0, 1fr);
        align-items: start;
        gap: 0.75rem;
        padding: 0.85rem;
    }

    .v2-device-card > .v2-device-icon {
        align-self: start;
    }

    .v2-device-card form {
        grid-column: 2;
        margin-top: 0;
    }

    .v2-activity-item {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 0.6rem;
        padding: 0.65rem;
        border-radius: 14px;
    }

    .v2-activity-item > i {
        width: 34px;
        height: 34px;
        font-size: 0.94rem;
    }

    .v2-activity-item strong {
        font-size: 0.9rem;
        line-height: 1.34;
        font-weight: 700;
    }

    .v2-activity-item span {
        margin-top: 0.18rem;
        font-size: 0.76rem;
    }

    .v2-app .modal-title,
    .v2-app .quick-login-title {
        font-size: 1rem !important;
    }

    .v2-app .quick-login-nokp {
        font-size: 1rem !important;
    }

    .v2-app .quick-login-btn-primary,
    .v2-app .quick-login-btn-mydigitalid,
    .v2-app .quick-login-btn-alternative,
    .v2-app .quick-login-btn-no,
    .v2-app .quick-login-btn-clear {
        font-size: 0.92rem !important;
    }

    .v2-confirm-modal .modal-body {
        padding: 1rem;
    }

    .v2-confirm-modal h2 {
        font-size: 1.06rem;
    }

    .v2-confirm-modal p {
        font-size: 0.9rem;
    }

    .v2-bottom-nav {
        left: 0.5rem;
        right: 0.5rem;
        bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
        gap: 0.22rem;
        padding: 0.4rem;
    }

    .v2-bottom-nav a {
        min-height: 56px;
        font-size: 0.68rem;
        font-weight: 700;
    }

    .v2-bottom-nav i {
        font-size: 1.22rem;
    }
}

@media (max-width: 991.98px) and (orientation: landscape) {
    .v2-main {
        padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    }

    .v2-system-rating-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.9rem 1rem;
    }

    .v2-system-rating-copy h2 {
        max-width: 420px;
        font-size: 1rem;
        line-height: 1.2;
    }

    .v2-system-rating-form {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .v2-system-rating-options {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
        gap: 0.55rem;
    }

    .v2-system-rating-option {
        min-height: 72px;
        padding: 0.65rem 0.5rem;
    }

    .v2-system-rating-option i {
        font-size: 1.65rem;
    }

    .v2-system-rating-option span {
        font-size: 0.78rem;
        line-height: 1.12;
        white-space: normal;
    }

    .v2-system-rating-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-content: stretch;
    }

    .v2-system-rating-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .v2-bottom-nav {
        left: 0.5rem;
        right: 0.5rem;
        bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px));
        border-radius: 14px;
        gap: 0.22rem;
        padding: 0.35rem;
    }

    .v2-bottom-nav::before {
        height: calc(76px + env(safe-area-inset-bottom, 0px));
    }

    .v2-bottom-nav a {
        min-height: 46px;
        gap: 0.12rem;
        border-radius: 10px;
        font-size: 0.62rem;
    }

    .v2-bottom-nav i {
        font-size: 1.08rem;
    }
}

@media (prefers-color-scheme: dark) {
    /* ── CSS Variables ── */
    :root {
        --v2-bg: #0f172a;
        --v2-surface: #111827;
        --v2-surface-soft: #1e293b;
        --v2-text: #f1f5f9;
        --v2-muted: #94a3b8;
        --v2-border: #2d3748;
        --v2-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
        --v2-blue: #3b82f6;
        --v2-blue-dark: #2563eb;
        --v2-green: #22c55e;
        --v2-red: #ef4444;
        --v2-yellow: #f59e0b;
    }

    /* ── App Bar & Navigation ── */
    .v2-appbar {
        background: rgba(15, 23, 42, 0.95);
        border-bottom-color: var(--v2-border);
    }

    .v2-icon-link {
        background: var(--v2-surface);
        color: var(--v2-muted);
        border-color: var(--v2-border);
    }

    .v2-icon-link.active,
    .v2-icon-link:hover {
        color: var(--v2-blue);
        background: rgba(59, 130, 246, 0.12);
        border-color: rgba(59, 130, 246, 0.28);
    }

    /* ── Bottom Navigation ── */
    .v2-bottom-nav {
        /* Container gelap dengan border jelas */
        background: #1a2235;
        border-color: #2d3a52;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    }

    .v2-bottom-nav::before {
        /* Solid gelap — bukan blur/gradient */
        background: #111827;
        border-top: 1px solid #1e2d42;
        box-shadow: none;
    }

    .v2-bottom-nav a {
        /* Tile sedikit lebih cerah dari container — wujudkan depth */
        background: #1e2d45;
        border-color: #334a6a;
        color: #8ea9cc;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .v2-bottom-nav a:not(.active):hover {
        background: #243352;
        border-color: #3d5680;
        color: #a8c0db;
    }

    .v2-bottom-nav a.active {
        /* Active state — biru terang dengan glow */
        color: #60a5fa;
        background: rgba(59, 130, 246, 0.18);
        border-color: rgba(96, 165, 250, 0.4);
        box-shadow: 0 4px 16px rgba(59, 130, 246, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    /* ── Sidebar ── */
    .v2-sidebar {
        background: var(--v2-surface);
        border-right-color: var(--v2-border);
    }

    /* ── Loading Overlay ── */
    #loadingOverlay {
        background: rgba(15, 23, 42, 0.9);
    }

    .spinner {
        border-color: #2d3748;
        border-top-color: var(--v2-blue);
    }

    /* ── Auth Screen ── */
    .v2-auth-screen {
        background: var(--v2-bg);
    }

    .v2-auth-card {
        background: var(--v2-surface);
        border-color: var(--v2-border);
        box-shadow: 0 22px 55px rgba(0, 0, 0, 0.5);
    }

    .v2-auth-card .btn-mydigitalid-login-demo {
        background: #1e293b !important;
        border-color: #2d4a7a !important;
    }

    /* ── Form Controls ── */
    .v2-app .form-control,
    .v2-app .input-group-text,
    .v2-app select,
    .v2-app textarea {
        background: var(--v2-surface-soft) !important;
        border-color: var(--v2-border) !important;
        color: var(--v2-text) !important;
    }

    .v2-app .form-control::placeholder {
        color: var(--v2-muted);
    }

    .v2-app .form-control:focus {
        background: var(--v2-surface) !important;
        border-color: var(--v2-blue) !important;
    }

    /* ── Buttons ── */
    .v2-app .btn-secondary,
    .v2-app .btn-outline-secondary,
    .v2-app .btn-light {
        color: var(--v2-text) !important;
        border-color: var(--v2-border) !important;
        background: var(--v2-surface-soft) !important;
    }

    .v2-app .btn-outline-primary {
        color: var(--v2-blue) !important;
        border-color: rgba(59, 130, 246, 0.4) !important;
        background: rgba(59, 130, 246, 0.1) !important;
    }

    .v2-app .btn-outline-danger {
        color: var(--v2-red) !important;
        border-color: rgba(239, 68, 68, 0.4) !important;
        background: rgba(239, 68, 68, 0.08) !important;
    }

    .v2-app .btn-warning {
        background: rgba(245, 158, 11, 0.15) !important;
        border-color: rgba(245, 158, 11, 0.3) !important;
        color: #fbbf24 !important;
    }

    /* ── Cards ── */
    .v2-app .card {
        background: var(--v2-surface) !important;
        border-color: var(--v2-border) !important;
    }

    .v2-app .list-group-item {
        background: transparent !important;
        border-color: var(--v2-border) !important;
        color: var(--v2-text);
    }

    /* ── Modals ── */
    .v2-app .modal-content {
        background: var(--v2-surface) !important;
        border-color: var(--v2-border) !important;
    }

    .v2-app .modal-header,
    .v2-app .modal-footer {
        background: var(--v2-surface) !important;
        border-color: var(--v2-border) !important;
    }

    .v2-app .btn-close {
        background-color: var(--v2-surface-soft);
        /* Ganti SVG ikon X dari hitam kepada putih untuk dark mode */
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
        opacity: 0.78;
        filter: none;
    }

    /* ── System Info Modal ── */
    .v2-system-info-hero {
        background: linear-gradient(180deg, #1a2744 0%, var(--v2-surface) 100%);
        border-bottom-color: var(--v2-border);
    }

    .v2-system-info-icon {
        color: var(--v2-blue);
        background: rgba(59, 130, 246, 0.12);
    }

    .v2-system-contact-method {
        background: var(--v2-surface-soft);
        border-color: var(--v2-border);
    }

    /* ── Onboarding ── */
    .v2-onboarding-intro,
    .v2-onboarding-card {
        background: var(--v2-surface);
        border-color: var(--v2-border);
    }

    .v2-onboarding-card-header {
        background: linear-gradient(180deg, var(--v2-surface) 0%, var(--v2-surface-soft) 100%);
        border-bottom-color: var(--v2-border);
    }

    .v2-onboarding-icon {
        background: rgba(59, 130, 246, 0.12);
    }

    /* ── Home Dashboard ── */
    .v2-home-info-card {
        background: linear-gradient(180deg, var(--v2-surface) 0%, var(--v2-surface-soft) 100%);
        border-color: var(--v2-border);
    }

    .v2-home-info-icon {
        background: rgba(59, 130, 246, 0.12);
    }

    .v2-birthday-card {
        background: linear-gradient(180deg, #10233d 0%, var(--v2-surface-soft) 100%);
        border-color: rgba(96, 165, 250, 0.28);
        box-shadow: var(--v2-shadow);
    }

    .v2-birthday-icon {
        color: #93c5fd;
        background: rgba(59, 130, 246, 0.14);
        border-color: rgba(96, 165, 250, 0.22);
    }

    .v2-birthday-icon > span {
        color: #67e8f9;
        background: rgba(8, 47, 73, 0.85);
        border-color: rgba(103, 232, 249, 0.22);
        box-shadow: none;
    }

    .v2-birthday-copy > span {
        color: #93c5fd;
    }

    .v2-birthday-copy h2 {
        color: #67e8f9;
    }

    .v2-birthday-copy p {
        color: #cbd5e1;
    }

    .v2-home-banner {
        background: var(--v2-surface);
        border-color: var(--v2-border);
    }

    .v2-home-banner-fallback {
        background: var(--v2-surface-soft);
    }

    .v2-system-rating-card {
        background: linear-gradient(180deg, var(--v2-surface) 0%, var(--v2-surface-soft) 100%);
        border-color: var(--v2-border);
        box-shadow: var(--v2-shadow);
    }

    .v2-system-rating-option {
        color: #f8fafc;
        background: var(--v2-surface);
        border-color: var(--v2-border);
    }

    .v2-system-rating-option:hover,
    .v2-system-rating-option:focus-visible,
    .v2-system-rating-option.is-selected {
        color: #ffffff;
        background: rgba(59, 130, 246, 0.12);
        border-color: rgba(59, 130, 246, 0.48);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
    }

    .v2-system-rating-dismiss {
        color: #f8fafc;
    }

    .v2-system-rating-dismiss:hover,
    .v2-system-rating-dismiss:focus-visible {
        color: #ffffff;
        background: rgba(59, 130, 246, 0.18);
    }

    .v2-system-rating-actions .btn:disabled,
    .v2-system-rating-actions .btn.disabled {
        background: #475569;
        border-color: #475569;
        color: #cbd5e1;
        opacity: 0.78;
    }

    .v2-system-rating-actions .btn-outline-secondary {
        color: #f8fafc;
        background: transparent;
        border-color: var(--v2-border);
    }

    .v2-system-rating-actions .btn-outline-secondary:hover,
    .v2-system-rating-actions .btn-outline-secondary:focus-visible {
        color: #ffffff;
        background: rgba(59, 130, 246, 0.16);
        border-color: rgba(59, 130, 246, 0.48);
    }

    .v2-home-greeting span {
        color: var(--v2-blue);
    }

    /* ── Dashboard Hero / Panels ── */
    .v2-dashboard-hero,
    .v2-dashboard-welcome,
    .v2-page-header {
        background: var(--v2-surface);
        border-color: var(--v2-border);
    }

    .v2-profile-panel,
    .v2-security-panel,
    .v2-activity-panel,
    .v2-biometric-panel,
    .v2-note-panel {
        background: var(--v2-surface);
        border-color: var(--v2-border);
    }

    .v2-recovery-panel {
        border-color: var(--v2-border);
    }

    /* ── Tiles & Cards ── */
    .v2-action-tile {
        background: var(--v2-surface-soft);
        border-color: var(--v2-border);
        color: var(--v2-text);
    }

    .v2-action-tile i {
        color: var(--v2-blue);
        background: rgba(59, 130, 246, 0.12);
    }

    .v2-action-tile.is-good i {
        color: var(--v2-green);
        background: rgba(34, 197, 94, 0.12);
    }

    .v2-action-tile.is-danger i {
        color: var(--v2-red);
        background: rgba(239, 68, 68, 0.12);
    }

    .v2-action-tile.is-google i {
        color: var(--v2-blue);
        background: rgba(59, 130, 246, 0.12);
    }

    .v2-device-card {
        background: var(--v2-surface-soft);
        border-color: var(--v2-border);
    }

    .v2-device-icon {
        color: var(--v2-green);
        background: rgba(34, 197, 94, 0.12);
    }

    .v2-settings-card {
        background: var(--v2-surface);
        border-color: var(--v2-border);
    }

    .v2-settings-icon {
        color: var(--v2-blue);
        background: rgba(59, 130, 246, 0.12);
    }

    .v2-settings-icon.is-good {
        color: var(--v2-green);
        background: rgba(34, 197, 94, 0.12);
    }

    .v2-settings-icon.is-danger {
        color: var(--v2-red);
        background: rgba(239, 68, 68, 0.12);
    }

    /* ── Flow / QR ── */
    .v2-flow-card {
        background: var(--v2-surface);
        border-color: var(--v2-border);
    }

    .v2-qr-panel {
        background: var(--v2-surface-soft);
        border-color: var(--v2-border);
    }

    /* ── Alert Cards ── */
    .v2-alert-card {
        background: var(--v2-surface-soft);
        border-color: var(--v2-border);
    }

    .v2-alert-card > i {
        color: var(--v2-blue);
        background: rgba(59, 130, 246, 0.12);
    }

    .v2-alert-card.is-warning {
        background: rgba(245, 158, 11, 0.08);
        border-color: rgba(245, 158, 11, 0.25);
    }

    .v2-alert-card.is-warning > i {
        color: #fbbf24;
        background: rgba(245, 158, 11, 0.14);
    }

    /* ── Confirm Modals ── */
    .v2-confirm-icon {
        color: var(--v2-blue);
        background: rgba(59, 130, 246, 0.12);
    }

    .v2-confirm-icon.is-danger {
        color: var(--v2-red);
        background: rgba(239, 68, 68, 0.12);
    }

    .v2-confirm-icon.is-warning {
        color: var(--v2-yellow);
        background: rgba(245, 158, 11, 0.12);
    }

    .v2-confirm-icon.is-google {
        color: var(--v2-blue);
        background: rgba(59, 130, 246, 0.12);
    }

    /* ── Status Badges ── */
    .v2-status {
        background: var(--v2-surface-soft);
        border-color: var(--v2-border);
        color: var(--v2-muted);
    }

    .v2-status.is-good {
        background: rgba(34, 197, 94, 0.1);
        color: #4ade80;
        border-color: rgba(34, 197, 94, 0.25);
    }

    .v2-status.is-warning {
        background: rgba(245, 158, 11, 0.1);
        color: #fbbf24;
        border-color: rgba(245, 158, 11, 0.25);
    }

    .v2-status.is-danger {
        background: rgba(239, 68, 68, 0.1);
        color: #f87171;
        border-color: rgba(239, 68, 68, 0.25);
    }

    /* ── Info List ── */
    .v2-info-list > div {
        background: var(--v2-surface-soft);
        border-color: var(--v2-border);
    }

    /* ── Activity ── */
    .v2-activity-item {
        background: var(--v2-surface-soft);
        border-color: var(--v2-border);
    }

    .v2-activity-item > i {
        color: var(--v2-green);
        background: rgba(34, 197, 94, 0.12);
    }

    /* ── Empty State ── */
    .v2-empty-state {
        background: var(--v2-surface-soft);
        border-color: var(--v2-border);
    }

    /* ── Avatar ── */
    .v2-avatar {
        background: rgba(59, 130, 246, 0.12);
        border-color: rgba(59, 130, 246, 0.2);
    }

    .v2-header-profile {
        background: var(--v2-surface-soft);
        border-color: var(--v2-border);
        color: var(--v2-blue);
    }

    /* ── Login Method Tiles ── */
    .v2-preview-tile {
        background: var(--v2-surface);
        border-color: var(--v2-border);
        color: var(--v2-text);
    }

    .v2-preview-tile:disabled {
        background: var(--v2-surface-soft);
        opacity: 0.38;
    }

    .v2-preview-tile.is-active {
        color: #60a5fa;
        background: rgba(59, 130, 246, 0.16);
        border-color: rgba(96, 165, 250, 0.42);
        box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22), inset 0 0 0 1px rgba(96, 165, 250, 0.14);
    }

    .v2-preview-tile.is-active i {
        color: #60a5fa;
    }

    .v2-auth-card .secondary-login-btn {
        background: var(--v2-surface) !important;
        border-color: var(--v2-border) !important;
        color: var(--v2-text) !important;
    }

    /* ── Progress Bar ── */
    .v2-google-change-modal .progress {
        background: var(--v2-surface-soft);
    }

    /* ── Scrollbar ── */
    .v2-activity-list-page::-webkit-scrollbar-thumb,
    .v2-activity-list-page::-webkit-scrollbar-thumb {
        background: #334155;
    }

    /* ── OTP Inputs ── */
    .v2-app .otp-input,
    .v2-app .otpEmail-input,
    .v2-app .verify-email-otp-input,
    .v2-app .profile-otp-input,
    .v2-app .email-otp-input,
    .v2-app .v2-otp-input {
        background: var(--v2-surface-soft) !important;
        border-color: var(--v2-border) !important;
        color: var(--v2-text) !important;
    }

    /* ── Badges ── */
    .v2-app .badge.bg-light {
        background: var(--v2-surface-soft) !important;
        color: var(--v2-text) !important;
    }
}
