/* =====================================================================
   Redwood Online Banking — "traditional retail bank" UI layer
   ---------------------------------------------------------------------
   Loaded after front/css/styles.css. Provides:
     1. Design tokens (red identity, grays, spacing)
     2. Formal reskin of shared theme components (buttons, badges, cards…)
     3. The new authenticated shell (sidebar + banner + quick actions)
     4. Reusable widget primitives (cards, tiles, status tags, rows)
     5. Dark mode + responsive + accessibility
   ---------------------------------------------------------------------
   Only visual rules live here. No business logic / markup contracts
   are defined in this file beyond the `.rw-*` presentation hooks.
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* 1. Design tokens ---------------------------------------------------- */
:root {
    --rw-red: #c62828;
    --rw-red-600: #b71c1c;
    --rw-red-700: #8e1b1b;
    --rw-red-800: #7a1616;
    --rw-red-900: #631212;
    --rw-red-tint: rgba(198, 40, 40, 0.08);
    --rw-red-tint-strong: rgba(198, 40, 40, 0.16);

    --rw-green: #157240;
    --rw-green-tint: rgba(21, 114, 64, 0.1);
    --rw-amber: #b45309;
    --rw-amber-tint: rgba(180, 83, 9, 0.1);

    --rw-text: #1f2937;
    --rw-muted: #6b7280;
    --rw-heading: #111827;
    --rw-border: #e5e7eb;
    --rw-border-strong: #d1d5db;
    --rw-page: #f3f4f6;
    --rw-card: #ffffff;
    --rw-hover: #f9fafb;

    --rw-tile-bg: #7a1616;
    --rw-tile-border: #631212;

    --rw-radius: 6px;
    --rw-radius-sm: 4px;
    --rw-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
    --rw-shadow-md: 0 2px 6px rgba(16, 24, 40, 0.08);
    --rw-sidebar-w: 248px;
    --rw-row-h: 52px;
    --rw-font: "Inter", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body.dark-theme {
    --rw-text: #e5e7eb;
    --rw-muted: #9ca3af;
    --rw-heading: #f9fafb;
    --rw-border: #333a45;
    --rw-border-strong: #414a57;
    --rw-border-strong: #414a57;
    --rw-page: #14181d;
    --rw-card: #1c222a;
    --rw-hover: #232b35;
    --rw-red-tint: rgba(198, 40, 40, 0.18);
    --rw-red-tint-strong: rgba(198, 40, 40, 0.28);
    --rw-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --rw-shadow-md: 0 2px 6px rgba(0, 0, 0, 0.45);
    --rw-tile-bg: #2a1416;
    --rw-tile-border: #3d1a1c;
}

/* Typography: small, tight, formal. */
body {
    font-family: var(--rw-font);
    color: var(--rw-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.rw-shell,
.rw-shell input,
.rw-shell select,
.rw-shell textarea,
.rw-shell button {
    font-family: var(--rw-font);
}

/* Accessibility: always-visible focus ring on keyboard navigation. */
.rw-shell a:focus-visible,
.rw-shell button:focus-visible,
.rw-shell input:focus-visible,
.rw-shell select:focus-visible,
.rw-shell textarea:focus-visible,
.authOne a:focus-visible,
.authOne button:focus-visible,
.authOne input:focus-visible {
    outline: 2px solid var(--rw-red);
    outline-offset: 2px;
    border-radius: var(--rw-radius-sm);
}

/* 2. Formal reskin of shared theme components ------------------------- */
/* Buttons: flat, squared-off, red. Scoped to the authenticated shell and
   the auth screens so the public marketing site keeps its own identity. */
.rw-shell .site-btn,
.rw-shell .site-btn-sm,
.rw-shell .site-btn-big,
.rw-shell .site-btn-round,
.rw-shell .primary-btn,
.rw-shell .red-btn,
.rw-shell .blue-btn,
.rw-shell .gradient-btn,
.rw-shell .grad-btn,
.half-authpage .site-btn,
.half-authpage .site-btn-sm,
.half-authpage .site-btn-big,
.half-authpage .primary-btn {
    border-radius: var(--rw-radius-sm) !important;
    box-shadow: none !important;
    letter-spacing: 0.01em;
}

.rw-shell .primary-btn {
    background: var(--rw-red) !important;
    color: #fff !important;
}

.rw-shell .primary-btn:hover,
.rw-shell .primary-btn:focus {
    background: var(--rw-red-600) !important;
    color: #fff !important;
}

.rw-shell .site-btn svg,
.rw-shell .site-btn-sm svg {
    width: 16px;
    margin-right: 6px;
}

/* Status pills become small square-ish tags. */
.rw-shell .site-badge {
    border-radius: 3px !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
}

/* Card headers / links. */
.rw-shell .site-card .site-card-header .card-header-links .card-header-link {
    border-radius: var(--rw-radius-sm) !important;
    background: var(--rw-red) !important;
    font-weight: 600;
}

.rw-shell .site-card .site-card-header .card-header-links .card-header-link:hover {
    background: var(--rw-red-600) !important;
}

/* Formality for the generic card used by inner pages. */
.rw-shell .site-card {
    background: var(--rw-card);
    border: 1px solid var(--rw-border);
    border-radius: var(--rw-radius);
    box-shadow: var(--rw-shadow);
    overflow: hidden;
}

.rw-shell .site-card .site-card-header {
    padding: 12px 16px;
}

.rw-shell .site-card .site-card-header .title,
.rw-shell .site-card .site-card-header .title-small {
    font-size: 14px;
    font-weight: 600;
    color: var(--rw-heading);
}

.rw-shell .site-card .site-card-body {
    padding: 16px;
}

/* Bootstrap-ish form controls used across inner pages. */
.rw-shell .box-input,
.rw-shell .form-control,
.rw-shell .nice-select,
.rw-shell select.form-select {
    border-radius: var(--rw-radius-sm) !important;
    border-color: var(--rw-border-strong);
}

.rw-shell .box-input:focus,
.rw-shell .form-control:focus {
    border-color: var(--rw-red);
    box-shadow: 0 0 0 3px var(--rw-red-tint) !important;
}

/* Deprecated fintech "balance/hero" card still used on a few inner
   pages (wallets, deposit …). Flatten it into a formal white panel. */
.main-user-dahboard .page-content .main-content .page-gap .user-profile-card {
    background: var(--rw-card) !important;
    border: 1px solid var(--rw-border);
    border-radius: var(--rw-radius) !important;
    color: var(--rw-text);
    box-shadow: var(--rw-shadow);
    min-height: 0 !important;
    padding: 20px !important;
}

.main-user-dahboard .page-content .main-content .page-gap .user-profile-card .title {
    color: var(--rw-muted) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.main-user-dahboard .page-content .main-content .page-gap .user-profile-card .acc-balance {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--rw-heading);
    font-variant-numeric: tabular-nums;
}

.main-user-dahboard .page-content .main-content .page-gap .user-profile-card .o {
    display: none !important;
}

.main-user-dahboard .page-content .main-content .page-gap .user-profile-card .acc-num {
    background: var(--rw-hover) !important;
    color: var(--rw-text) !important;
    border: 1px solid var(--rw-border);
}

.main-user-dahboard .page-content .main-content .page-gap .user-profile-card .acc-num span {
    color: var(--rw-red) !important;
}

.main-user-dahboard .page-content .main-content .page-gap .user-profile-card .buttons a {
    border-radius: var(--rw-radius-sm) !important;
    box-shadow: none !important;
    background: var(--rw-red) !important;
    color: #fff !important;
    text-transform: none;
    font-weight: 600;
    padding: 9px 14px !important;
    line-height: 1.2 !important;
}

.main-user-dahboard .page-content .main-content .page-gap .user-profile-card .buttons a.add {
    background: var(--rw-heading) !important;
    color: #fff !important;
}

/* 3. Shell ------------------------------------------------------------ */
.rw-shell.main-user-dahboard {
    height: auto;
    min-height: 100vh;
    background: var(--rw-page);
}

/* --- Sidebar --- */
.main-user-dahboard .user-sidebar.rw-sidebar {
    width: var(--rw-sidebar-w);
    background: var(--rw-card);
    border-right: 1px solid var(--rw-border);
    height: 100vh;
    left: 0;
    top: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform 0.2s ease;
}

.rw-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 68px;
    padding: 0 16px;
    border-bottom: 1px solid var(--rw-border);
    flex: 0 0 auto;
}

.rw-sidebar-head .rw-brand {
    display: flex;
    align-items: center;
    max-width: 170px;
    overflow: hidden;
}

.rw-sidebar-head .rw-brand img {
    height: 30px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.rw-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--rw-radius-sm);
    background: transparent;
    color: var(--rw-text);
    cursor: pointer;
}

.rw-sidebar-toggle svg {
    width: 20px;
    height: 20px;
}

.main-user-dahboard .user-sidebar.rw-sidebar .user-nav.rw-nav {
    padding: 12px 10px;
    top: 0;
    position: relative;
    flex: 1 1 auto;
    overflow-y: auto;
}

.main-user-dahboard .user-sidebar.rw-sidebar .user-nav ul li {
    margin-bottom: 2px;
}

/* Neutralise the theme's per-item rainbow colours. */
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li a,
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li:nth-of-type(12n + 1) a,
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li:nth-of-type(12n + 2) a,
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li:nth-of-type(12n + 3) a,
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li:nth-of-type(12n + 4) a,
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li:nth-of-type(12n + 5) a,
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li:nth-of-type(12n + 6) a,
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li:nth-of-type(12n + 7) a,
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li:nth-of-type(12n + 8) a,
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li:nth-of-type(12n + 9) a,
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li:nth-of-type(12n + 10) a,
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li:nth-of-type(12n + 11) a,
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li:nth-of-type(12n + 12) a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 11px 14px;
    border-radius: var(--rw-radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--rw-muted) !important;
    background: transparent !important;
}

.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li a svg {
    width: 18px;
    height: 18px;
    margin-right: 11px;
    flex: 0 0 auto;
}

.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li a span {
    color: inherit !important;
}

.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li a:hover,
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li:nth-of-type(12n + 1) a:hover,
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li:nth-of-type(12n + 2) a:hover,
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li:nth-of-type(12n + 3) a:hover,
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li:nth-of-type(12n + 4) a:hover,
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li:nth-of-type(12n + 5) a:hover,
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li:nth-of-type(12n + 6) a:hover{
    background: var(--rw-hover) !important;
    color: var(--rw-text) !important;
}

/* Active item: light red tint + left red accent bar (no solid fill). */
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li.active a,
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li:nth-of-type(12n + 1).active a,
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li:nth-of-type(12n + 2).active a,
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li:nth-of-type(12n + 3).active a,
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li:nth-of-type(12n + 4).active a,
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li:nth-of-type(12n + 5).active a {
    background: var(--rw-red-tint) !important;
    color: var(--rw-red) !important;
    font-weight: 600;
}

.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li.active a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--rw-red);
}

.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li a .count-number {
    margin-left: auto;
    background: var(--rw-red-tint-strong) !important;
    color: var(--rw-red) !important;
    border-radius: 3px !important;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 7px !important;
}

/* Logout keeps a restrained treatment. */
.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li.logout a {
    color: var(--rw-muted) !important;
    background: transparent !important;
}

.main-user-dahboard .user-sidebar.rw-sidebar .user-nav li.logout a:hover {
    background: var(--rw-red-tint) !important;
    color: var(--rw-red) !important;
}

.rw-sidebar-user {
    flex: 0 0 auto;
    border-top: 1px solid var(--rw-border);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rw-sidebar-user .rw-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--rw-border);
    flex: 0 0 auto;
}

.rw-sidebar-user .rw-user-meta {
    min-width: 0;
    flex: 1 1 auto;
}

.rw-sidebar-user .rw-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--rw-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rw-sidebar-user .rw-user-sub {
    font-size: 11px;
    color: var(--rw-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rw-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.5);
    z-index: 1035;
}

/* --- Main column --- */
.main-user-dahboard .page-content.rw-main {
    padding-left: var(--rw-sidebar-w);
    background: var(--rw-page);
    min-height: 100vh;
}

.main-user-dahboard .page-content.rw-main .main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Banner (greeting + controls + account tiles) --- */
.main-user-dahboard .page-content .main-content .user-part-header.rw-banner {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    border-bottom: none;
    background: var(--rw-red-700);
    color: #fff;
}

.rw-banner-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.rw-banner-top-left,
.rw-banner-top-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rw-banner .rw-banner-toggle {
    color: #fff;
}

.rw-banner-logo {
    display: none;
}

.rw-banner-logo img {
    height: 28px;
    width: auto;
}

.rw-banner .rw-control {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: var(--rw-radius-sm);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    cursor: pointer;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.rw-banner .rw-control:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.rw-banner .rw-control svg {
    width: 17px;
    height: 17px;
}

.rw-banner .rw-control .light-icon,
.rw-banner .rw-control .dark-icon {
    width: 17px;
    height: 17px;
}

/* Sun/moon visibility (mirrors the theme's original behaviour). */
.rw-banner .color-switcher .light-icon {
    display: none;
}

.rw-banner .color-switcher .dark-icon {
    display: block;
}

body.dark-theme .rw-banner .color-switcher .light-icon {
    display: block;
}

body.dark-theme .rw-banner .color-switcher .dark-icon {
    display: none;
}

.rw-banner .rw-control.language-switcher {
    padding: 0 6px;
}

.rw-banner .rw-control .langu-swit {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    height: 32px;
    padding: 0 6px;
    cursor: pointer;
}

.rw-banner .rw-control .langu-swit option {
    color: var(--rw-text);
}

.rw-banner .rw-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.rw-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--rw-radius-sm);
    padding: 3px 6px;
    min-height: 34px;
    cursor: pointer;
    color: #fff;
}

.rw-user-btn::after {
    display: none;
}

.rw-banner .dropdown-menu {
    border: 1px solid var(--rw-border);
    border-radius: var(--rw-radius);
    box-shadow: var(--rw-shadow-md);
    padding: 6px;
    min-width: 220px;
}

.rw-banner .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: var(--rw-radius-sm);
    font-size: 13px;
    font-weight: 500;
    padding: 9px 10px;
    color: var(--rw-text);
}

.rw-banner .dropdown-menu .dropdown-item svg {
    width: 16px;
    height: 16px;
    color: var(--rw-muted);
}

.rw-banner .dropdown-menu .dropdown-item:hover {
    background: var(--rw-hover);
    color: var(--rw-red);
}

.rw-user-drop-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid var(--rw-border);
    margin-bottom: 6px;
}

.rw-user-drop-top img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.rw-user-drop-top .name {
    font-size: 13px;
    font-weight: 600;
    color: var(--rw-heading);
}

.rw-user-drop-top .email {
    font-size: 11px;
    color: var(--rw-muted);
}

.rw-banner-body {
    padding-top: 4px;
    padding-bottom: 46px;
}

.rw-greeting {
    margin: 0 0 2px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.rw-greeting-sub {
    margin: 0 0 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

/* --- Account tiles (solid, darker than banner) --- */
.rw-tiles {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.rw-tiles::-webkit-scrollbar {
    height: 6px;
}

.rw-tiles::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 3px;
}

.rw-tile {
    flex: 0 0 240px;
    min-width: 200px;
    scroll-snap-align: start;
    background: var(--rw-tile-bg);
    border: 1px solid var(--rw-tile-border);
    border-radius: var(--rw-radius);
    padding: 12px 14px;
    color: #fff;
}

.rw-tile-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rw-tile-number {
    margin-top: 3px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
}

.rw-tile-balance {
    margin-top: 8px;
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

.rw-tile-caption {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Quick actions overlapping the banner edge --- */
.rw-quickbar {
    margin-top: -30px;
    position: relative;
    z-index: 5;
}

.rw-quickbar-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    background: var(--rw-card);
    border: 1px solid var(--rw-border);
    border-radius: var(--rw-radius);
    box-shadow: var(--rw-shadow-md);
    padding: 12px;
}

.rw-quick {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 76px;
    padding: 10px 6px;
    border-radius: var(--rw-radius-sm);
    background: var(--rw-hover);
    border: 1px solid var(--rw-border);
    color: var(--rw-text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.rw-quick:hover {
    background: var(--rw-red-tint);
    border-color: var(--rw-red-tint-strong);
    color: var(--rw-red);
}

.rw-quick-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--rw-radius-sm);
    background: var(--rw-red);
    color: #fff;
}

.rw-quick-icon svg {
    width: 18px;
    height: 18px;
}

/* --- Page body --- */
.main-user-dahboard .page-content .main-content .page-gap.rw-page {
    padding: 18px 15px 32px 15px;
    flex: 1 1 auto;
}

/* 4. Widget primitives ------------------------------------------------ */
.rw-card {
    display: block;
    background: var(--rw-card);
    border: 1px solid var(--rw-border);
    border-radius: var(--rw-radius);
    box-shadow: var(--rw-shadow);
    margin-bottom: 18px;
    overflow: hidden;
}

.rw-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--rw-border);
}

.rw-card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--rw-heading);
}

.rw-card-head-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rw-card-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--rw-red);
    text-decoration: none;
}

.rw-card-link:hover {
    color: var(--rw-red-600);
    text-decoration: underline;
}

.rw-card-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: var(--rw-radius-sm);
    color: var(--rw-muted);
}

.rw-card-menu:hover {
    background: var(--rw-hover);
    color: var(--rw-text);
}

.rw-card-menu svg {
    width: 17px;
    height: 17px;
}

.rw-card-body {
    padding: 0;
}

.rw-card-body.rw-pad {
    padding: 16px;
}

/* Transaction statement rows. */
.rw-txn-list {
    display: flex;
    flex-direction: column;
}

.rw-txn {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--rw-row-h);
    padding: 10px 16px;
    border-bottom: 1px solid var(--rw-border);
}

.rw-txn:last-child {
    border-bottom: none;
}

.rw-txn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--rw-radius-sm);
    flex: 0 0 auto;
    background: var(--rw-hover);
    color: var(--rw-muted);
}

.rw-txn-icon.is-credit {
    background: var(--rw-green-tint);
    color: var(--rw-green);
}

.rw-txn-icon.is-debit {
    background: var(--rw-red-tint);
    color: var(--rw-red);
}

.rw-txn-icon svg {
    width: 17px;
    height: 17px;
}

.rw-txn-main {
    flex: 1 1 auto;
    min-width: 0;
}

.rw-txn-desc {
    font-size: 13px;
    font-weight: 600;
    color: var(--rw-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rw-txn-desc span {
    cursor: help;
}

.rw-txn-desc svg {
    width: 13px;
    height: 13px;
    vertical-align: -2px;
    color: var(--rw-muted);
}

.rw-txn-meta {
    font-size: 11px;
    color: var(--rw-muted);
    font-variant-numeric: tabular-nums;
}

.rw-txn-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex: 0 0 auto;
    text-align: right;
}

.rw-txn-amount {
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.rw-txn-amount.is-credit {
    color: var(--rw-green);
}

.rw-txn-amount.is-debit {
    color: var(--rw-red);
}

/* Status tags. */
.rw-tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    line-height: 1.6;
    white-space: nowrap;
}

.rw-tag.is-success {
    background: var(--rw-green-tint);
    color: var(--rw-green);
}

.rw-tag.is-pending {
    background: var(--rw-amber-tint);
    color: var(--rw-amber);
}

.rw-tag.is-danger {
    background: var(--rw-red-tint);
    color: var(--rw-red);
}

.rw-tag.is-info {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.rw-tag.is-neutral {
    background: var(--rw-hover);
    color: var(--rw-muted);
}

/* Account-details definition list. */
.rw-detail {
    margin: 0;
}

.rw-detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--rw-border);
}

.rw-detail-row:last-child {
    border-bottom: none;
}

.rw-detail-row dt {
    font-size: 12px;
    font-weight: 500;
    color: var(--rw-muted);
    flex: 0 0 auto;
}

.rw-detail-row dd {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--rw-text);
    text-align: right;
    font-variant-numeric: tabular-nums;
    word-break: break-word;
}

.rw-detail-row dd.rw-strong {
    font-size: 15px;
    font-weight: 700;
}

.rw-muted {
    color: var(--rw-muted);
    font-weight: 400;
    font-size: 11px;
}

.rw-account-num {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.rw-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: var(--rw-radius-sm);
    background: var(--rw-hover);
    border: 1px solid var(--rw-border);
    color: var(--rw-red);
    cursor: pointer;
}

.rw-copy:hover {
    background: var(--rw-red-tint);
}

.rw-copy svg {
    width: 14px;
    height: 14px;
}

/* Alerts / messages list. */
.rw-alerts {
    display: flex;
    flex-direction: column;
}

.rw-alert {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--rw-border);
    text-decoration: none;
    color: var(--rw-text);
}

.rw-alert:last-child {
    border-bottom: none;
}

.rw-alert:hover {
    background: var(--rw-hover);
}

.rw-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--rw-radius-sm);
    background: var(--rw-red-tint);
    color: var(--rw-red);
    flex: 0 0 auto;
}

.rw-alert-icon svg {
    width: 16px;
    height: 16px;
}

.rw-alert-main {
    flex: 1 1 auto;
    min-width: 0;
}

.rw-alert-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rw-alert-time {
    display: block;
    font-size: 11px;
    color: var(--rw-muted);
}

.rw-alert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rw-red);
    flex: 0 0 auto;
}

/* Compact product stat used for DPS / FDR / Loan. */
.rw-stat {
    display: block;
    background: var(--rw-card);
    border: 1px solid var(--rw-border);
    border-radius: var(--rw-radius);
    box-shadow: var(--rw-shadow);
    padding: 14px 16px;
    margin-bottom: 18px;
    color: var(--rw-text);
    text-decoration: none;
}

.rw-stat:hover {
    border-color: var(--rw-red-tint-strong);
    color: var(--rw-text);
}

.rw-stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rw-muted);
}

.rw-stat-value {
    margin-top: 6px;
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--rw-heading);
}

.rw-stat-note {
    margin-top: 4px;
    font-size: 11px;
    color: var(--rw-muted);
}

.rw-empty {
    padding: 20px 16px;
    margin: 0;
    font-size: 13px;
    color: var(--rw-muted);
    text-align: center;
}

/* Language switcher (nice-select enhancement) inside the banner. */
.rw-banner .rw-control .nice-select {
    background: transparent;
    border: 0;
    color: #fff;
    height: 32px;
    line-height: 32px;
    padding: 0 22px 0 4px;
    font-size: 12px;
    font-weight: 500;
}

.rw-banner .rw-control .nice-select::after {
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    height: 7px;
    width: 7px;
    right: 8px;
}

.rw-banner .rw-control .nice-select .list {
    background: var(--rw-card);
    border-radius: var(--rw-radius-sm);
    box-shadow: var(--rw-shadow-md);
    z-index: 1200;
    min-width: 140px;
}

.rw-banner .rw-control .nice-select .option {
    color: var(--rw-text);
    font-size: 12px;
    min-height: 34px;
    line-height: 34px;
}

.rw-banner .rw-control .nice-select .option.selected {
    color: var(--rw-red);
    font-weight: 600;
}

/* 5. Notification dropdown (kept from theme, restyled) ---------------- */
.rw-banner .rw-notif-wrap {
    position: relative;
}

.rw-banner .notification-dot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--rw-radius-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
}

.rw-banner .notification-dot .number {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #fff;
    color: var(--rw-red-700);
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.rw-banner .notification-pop {
    width: 320px;
    max-width: 90vw;
    padding: 0;
    border: 1px solid var(--rw-border);
    border-radius: var(--rw-radius);
    box-shadow: var(--rw-shadow-md);
    overflow: hidden;
}

.rw-banner .notification-pop .noti-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--rw-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--rw-heading);
}

.rw-banner .notification-pop .all-noti {
    max-height: 320px;
    overflow-y: auto;
}

.rw-banner .notification-pop .all-noti .single-noti a {
    display: flex;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--rw-border);
    text-decoration: none;
    color: var(--rw-text);
}

.rw-banner .notification-pop .all-noti .single-noti a:hover {
    background: var(--rw-hover);
}

.rw-banner .notification-pop .all-noti .single-noti a.read {
    opacity: 0.6;
}

.rw-banner .notification-pop .all-noti .single-noti .icon {
    color: var(--rw-red);
    flex: 0 0 auto;
}

.rw-banner .notification-pop .all-noti .single-noti .content .main-cont {
    font-size: 13px;
    font-weight: 600;
}

.rw-banner .notification-pop .all-noti .single-noti .content .time {
    font-size: 11px;
    color: var(--rw-muted);
}

.rw-banner .notification-pop .noti-footer {
    display: flex;
    gap: 6px;
    padding: 10px;
    border-top: 1px solid var(--rw-border);
}

.rw-banner .notification-pop .noti-footer a {
    display: inline-block;
    text-align: center;
    padding: 7px 10px;
    border-radius: var(--rw-radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.rw-banner .notification-pop .noti-footer a.noti-btn-1 {
    background: var(--rw-red);
    color: #fff;
}

.rw-banner .notification-pop .noti-footer a.noti-btn-2 {
    background: var(--rw-hover);
    color: var(--rw-text);
    border: 1px solid var(--rw-border);
}

/* Identity verification alert inside the content area. */
.main-user-dahboard .page-content .main-content .page-gap .identity-alert {
    border-radius: var(--rw-radius);
}

/* 6. Responsive ------------------------------------------------------- */
@media (max-width: 1200px) {
    .rw-tile {
        flex-basis: 220px;
    }
}

@media (max-width: 991px) {
    .main-user-dahboard .page-content.rw-main {
        padding-left: 0;
    }

    .main-user-dahboard .user-sidebar.rw-sidebar {
        transform: translateX(-100%);
        box-shadow: var(--rw-shadow-md);
    }

    body.rw-sidebar-open .user-sidebar.rw-sidebar {
        transform: translateX(0);
    }

    body.rw-sidebar-open .rw-sidebar-overlay {
        display: block;
    }

    .rw-sidebar-toggle {
        display: inline-flex;
    }

    .rw-banner-logo {
        display: block;
    }

    .rw-banner-logo img {
        filter: brightness(0) invert(1);
    }
}

@media (max-width: 676px) {
    .rw-banner .rw-control-earn {
        display: none !important;
    }

    .rw-quickbar {
        margin-top: -22px;
    }

    .rw-greeting {
        font-size: 19px;
    }

    .rw-tile {
        flex-basis: 200px;
    }
}

@media (max-width: 420px) {
    .rw-banner-body {
        padding-bottom: 38px;
    }

    .rw-tile-balance {
        font-size: 18px;
    }
}

/* RTL safety for the fixed sidebar. */
body.rtl_mode .main-user-dahboard .user-sidebar.rw-sidebar {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid var(--rw-border);
}

body.rtl_mode .main-user-dahboard .page-content.rw-main {
    padding-left: 0;
    padding-right: var(--rw-sidebar-w);
}

body.rtl_mode .main-user-dahboard .user-sidebar.rw-sidebar .user-nav li a .count-number {
    margin-left: 0;
    margin-right: auto;
}

@media (max-width: 991px) {
    body.rtl_mode .main-user-dahboard .page-content.rw-main {
        padding-right: 0;
    }

    body.rtl_mode .main-user-dahboard .user-sidebar.rw-sidebar {
        transform: translateX(100%);
    }

    body.rtl_mode.rw-sidebar-open .user-sidebar.rw-sidebar {
        transform: translateX(0);
    }
}

/* 7. Auth pages: formal split login with red accent ------------------- */
.half-authpage {
    background: var(--rw-page);
}

.half-authpage .authOne .auth-contents {
    background: var(--rw-card);
}

.half-authpage .authOne .auth-contents .contents .content > h3 {
    color: var(--rw-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
}

.half-authpage .authOne .auth-contents .contents .content p {
    color: var(--rw-muted);
    font-size: 13px;
}

.half-authpage .authOne .auth-contents .contents .content p a {
    color: var(--rw-red);
    font-weight: 600;
}

.half-authpage .authOne .auth-contents .contents .content form .inputs label {
    font-size: 12px;
    font-weight: 600;
    color: var(--rw-text);
}

.half-authpage .authOne .auth-contents .contents .content form .inputs .box-input {
    border-radius: var(--rw-radius-sm);
    border: 1px solid var(--rw-border-strong);
    height: 46px;
}

.half-authpage .authOne .auth-contents .contents .content form .inputs .box-input:focus {
    border-color: var(--rw-red);
    box-shadow: 0 0 0 3px var(--rw-red-tint);
}

.half-authpage .authOne .auth-contents .contents .content form .inputs .remem-for p a {
    color: var(--rw-red);
    font-weight: 600;
}

.half-authpage .authOne .auth-contents .contents .content .site-btn.primary-btn {
    background: var(--rw-red);
    border-radius: var(--rw-radius-sm);
    padding: 14px 20px;
}

.half-authpage .authOne .auth-contents .contents .content .site-btn.primary-btn:hover {
    background: var(--rw-red-600);
}

/* A thin red accent stripe across the top of auth screens. */
.half-authpage::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--rw-red);
    z-index: 50;
}

/* Keep the right-hand banner readable and formal. */
.half-authpage .authOne .auth-banner {
    background-size: cover !important;
    background-position: center !important;
}
