:root {
    --wg-navy: #071b2f;
    --wg-blue: #0b2a4a;
    --wg-cyan: #1976a2;
    --wg-orange: #ff6a1a;
    --wg-green: #16a34a;
    --wg-red: #dc2626;
    --wg-bg: #eef4f8;
    --wg-surface: #ffffff;
    --wg-surface-soft: #f7fafc;
    --wg-text: #17324d;
    --wg-muted: #64748b;
    --wg-border: rgba(25, 118, 162, .18);
    --wg-shadow: 0 18px 42px rgba(7, 27, 47, .08);
    --wg-sidebar-width: 250px;
    --wg-sidebar-collapsed-width: 74px;
    --wg-topbar-height: 58px;
}

html,
body {
    min-height: 100%;
    overflow-x: hidden;
}

body.weldgrid-shell {
    margin: 0;
    background: var(--wg-bg);
    color: var(--wg-text);
    font-family: Arial, "Segoe UI", sans-serif;
}

body.weldgrid-shell *,
body.weldgrid-shell *::before,
body.weldgrid-shell *::after {
    box-sizing: border-box;
}

/* =========================================================
   WeldGrid Shell Layout
========================================================= */
body.weldgrid-shell .app-wrapper {
    display: grid;
    grid-template-columns: var(--wg-sidebar-width) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "sidebar header"
        "sidebar main"
        "sidebar footer";
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    background: linear-gradient(180deg, #eef4f8 0%, #ffffff 100%);
}

body.weldgrid-shell.sidebar-collapse .app-wrapper {
    grid-template-columns: var(--wg-sidebar-collapsed-width) minmax(0, 1fr);
}

body.weldgrid-shell .app-header {
    grid-area: header;
    min-height: var(--wg-topbar-height);
    background: var(--wg-navy) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    position: sticky;
    top: 0;
    z-index: 1035;
    padding: 0;
}

body.weldgrid-shell .app-header .container-fluid {
    min-height: var(--wg-topbar-height);
    gap: 10px;
}

body.weldgrid-shell .app-main {
    grid-area: main;
    min-width: 0;
    min-height: calc(100vh - var(--wg-topbar-height) - 56px);
    padding: 18px;
    background: transparent;
}

body.weldgrid-shell .app-content,
body.weldgrid-shell .container-fluid {
    min-width: 0;
}

body.weldgrid-shell .app-footer.weldgrid-footer {
    grid-area: footer;
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    min-height: 56px;
    padding: 14px 18px;
    background: var(--wg-navy);
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #ffffff;
    z-index: 10;
}

body.weldgrid-shell .weldgrid-footer p {
    margin: 0;
    line-height: 1.5;
}

body.weldgrid-shell .weldgrid-footer a {
    color: #ffb074;
    font-weight: 700;
    text-decoration: none;
}

body.weldgrid-shell .weldgrid-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

body.weldgrid-shell .loader-spinner-container {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(238, 244, 248, .86);
}

body.weldgrid-shell .loader_spinner_css {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(25, 118, 162, .18);
    border-top-color: var(--wg-orange);
    border-radius: 50%;
    animation: wgSpin .8s linear infinite;
}

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

/* =========================================================
   WeldGrid Sidebar
========================================================= */
body.weldgrid-shell .app-sidebar {
    grid-area: sidebar;
    width: var(--wg-sidebar-width);
    min-width: var(--wg-sidebar-width);
    max-width: var(--wg-sidebar-width);
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
    background: linear-gradient(180deg, var(--wg-navy) 0%, var(--wg-blue) 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, .08);
    transition: width .18s ease, min-width .18s ease, max-width .18s ease;
}

body.weldgrid-shell.sidebar-collapse .app-sidebar {
    width: var(--wg-sidebar-collapsed-width) !important;
    min-width: var(--wg-sidebar-collapsed-width) !important;
    max-width: var(--wg-sidebar-collapsed-width) !important;
}

body.weldgrid-shell .sidebar-brand {
    min-height: 78px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

body.weldgrid-shell .weldgrid-brand-link,
body.weldgrid-shell .brand-link {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    padding: 6px;
    text-decoration: none;
}

body.weldgrid-shell .weldgrid-sidebar-logo,
body.weldgrid-shell .brand-image {
    display: block;
    max-width: 150px !important;
    max-height: 46px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    margin: 0 !important;
}

body.weldgrid-shell.sidebar-collapse .weldgrid-brand-link,
body.weldgrid-shell.sidebar-collapse .brand-link {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    height: 54px;
    padding: 6px;
}

body.weldgrid-shell.sidebar-collapse .weldgrid-sidebar-logo,
body.weldgrid-shell.sidebar-collapse .brand-image {
    max-width: 38px !important;
    max-height: 38px !important;
}

body.weldgrid-shell .sidebar-wrapper {
    height: calc(100vh - 78px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 8px 18px;
    scrollbar-gutter: stable;
}

body.weldgrid-shell .sidebar-wrapper::-webkit-scrollbar {
    width: 6px;
}

body.weldgrid-shell .sidebar-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .22);
    border-radius: 999px;
}

body.weldgrid-shell .sidebar-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

body.weldgrid-shell .session-timeout-wrapper {
    margin: 2px 0 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
    padding: 10px 12px;
}

body.weldgrid-shell .session-timeout-content {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

body.weldgrid-shell .session-timeout-message {
    margin: 0;
    font-size: .86rem;
    line-height: 1.35;
}

body.weldgrid-shell .countdown {
    font-weight: 800;
    color: #ffb074;
}

body.weldgrid-shell .sidebar-menu {
    gap: 0;
}

body.weldgrid-shell .sidebar-menu .nav-header {
    color: rgba(255, 255, 255, .54);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 14px 10px 4px;
}

body.weldgrid-shell .sidebar-menu .nav-link {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    margin: 4px 0;
    padding: 10px 12px;
    color: rgba(255, 255, 255, .84);
    white-space: nowrap;
    overflow: hidden;
}

body.weldgrid-shell .sidebar-menu .nav-link:hover {
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
}

body.weldgrid-shell .sidebar-menu .nav-link.active {
    background: linear-gradient(135deg, var(--wg-cyan) 0%, #145f87 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(25, 118, 162, .22);
}

body.weldgrid-shell .sidebar-menu .nav-link i {
    flex: 0 0 22px;
    width: 22px;
    text-align: center;
    font-size: 1.08rem;
}

body.weldgrid-shell .sidebar-menu .nav-link p {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.weldgrid-shell .sidebar-menu .nav-treeview {
    display: none;
    padding-left: 0;
}

body.weldgrid-shell .sidebar-menu .menu-open > .nav-treeview {
    display: block;
}

body.weldgrid-shell .sidebar-menu .nav-treeview .nav-link {
    min-height: 38px;
    margin-left: 12px;
    padding-left: 12px;
    font-size: .92rem;
    background: rgba(255, 255, 255, .04);
}

body.weldgrid-shell .nav-arrow {
    margin-left: auto;
    font-size: 1.25rem;
}

body.weldgrid-shell.sidebar-collapse .sidebar-wrapper {
    padding-left: 0;
    padding-right: 0;
    overflow-y: hidden;
}

body.weldgrid-shell.sidebar-collapse .sidebar-menu .nav-link {
    width: 48px;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
}

body.weldgrid-shell.sidebar-collapse .sidebar-menu .nav-link p,
body.weldgrid-shell.sidebar-collapse .sidebar-menu .nav-header,
body.weldgrid-shell.sidebar-collapse .session-timeout-message,
body.weldgrid-shell.sidebar-collapse .nav-arrow,
body.weldgrid-shell.sidebar-collapse #timeoutCountdownMobile,
body.weldgrid-shell.sidebar-collapse .nav-treeview {
    display: none !important;
}

body.weldgrid-shell.sidebar-collapse .session-timeout-wrapper {
    width: 48px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 0;
}

body.weldgrid-shell.sidebar-collapse .session-timeout-content {
    justify-content: center;
}

/* =========================================================
   WeldGrid Topbar
========================================================= */
body.weldgrid-shell .app-header .nav-link {
    color: #ffffff !important;
}

body.weldgrid-shell .wg-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

body.weldgrid-shell .wg-top-action {
    min-height: 38px;
    color: #ffffff !important;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

body.weldgrid-shell .wg-top-action:hover,
body.weldgrid-shell .wg-top-action:focus {
    background: rgba(255, 255, 255, .14);
    color: #ffffff !important;
}

body.weldgrid-shell .wg-top-action-primary {
    background: linear-gradient(135deg, var(--wg-orange) 0%, #ff8a3d 100%);
    border-color: rgba(255, 106, 26, .42);
}

body.weldgrid-shell #notifications-nav-item {
    position: relative;
}

body.weldgrid-shell #notifications-bell-btn {
    position: relative;
    border: 0;
    background: transparent;
}

body.weldgrid-shell .wg-notification-icon {
    font-size: 1.45rem;
}

body.weldgrid-shell #notifications-badge {
    display: none;
}

body.weldgrid-shell .notifications-dropdown-menu {
    min-width: 340px;
    max-width: 450px;
    max-height: 65vh;
    overflow-y: auto;
    right: 0;
    left: auto;
}

body.weldgrid-shell .user-menu .user-image {
    width: 34px;
    height: 34px;
    object-fit: cover;
}

body.weldgrid-shell .user-menu .dropdown-menu {
    border: 1px solid var(--wg-border);
    box-shadow: var(--wg-shadow);
}

body.weldgrid-shell .user-menu .user-header {
    background: var(--wg-blue) !important;
    color: #ffffff !important;
}

body.weldgrid-shell .user-menu .user-footer {
    background: #f8fafc !important;
}

/* =========================================================
   WeldGrid Pages
========================================================= */
.wg-page-shell {
    width: 100%;
    min-height: calc(100vh - 150px);
}

.wg-page-header {
    background: linear-gradient(135deg, rgba(11, 42, 74, .98), rgba(25, 118, 162, .92));
    border: 1px solid rgba(255, 106, 26, .22);
    border-radius: 8px;
    color: #ffffff;
    margin: 0 0 18px;
    padding: 28px 30px;
    box-shadow: 0 18px 42px rgba(7, 27, 47, .14);
}

.wg-page-header-kicker {
    color: #ffb074;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.wg-page-header h1 {
    font-size: 2rem;
    font-weight: 850;
    letter-spacing: 0;
    margin: 0 0 10px;
}

.wg-page-header p {
    color: rgba(255, 255, 255, .84);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
    max-width: 860px;
}

.wg-module-panel {
    background: var(--wg-surface);
    border: 1px solid var(--wg-border);
    border-radius: 8px;
    box-shadow: var(--wg-shadow);
    padding: 22px;
}

.wg-module-empty {
    min-height: 340px;
    border: 1px dashed rgba(25, 118, 162, .28);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 24px;
    text-align: center;
}

.wg-module-empty-inner {
    max-width: 720px;
}

.wg-module-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--wg-blue) 0%, var(--wg-cyan) 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    margin-bottom: 18px;
}

.wg-module-empty h2 {
    color: var(--wg-blue);
    font-size: 1.35rem;
    font-weight: 850;
    margin: 0 0 10px;
}

.wg-module-empty p {
    color: var(--wg-muted);
    line-height: 1.7;
    margin: 0;
}

.wg-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.wg-overview-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 220px;
    padding: 22px;
    color: var(--wg-text);
    text-decoration: none;
    background: var(--wg-surface);
    border: 1px solid var(--wg-border);
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(7, 27, 47, .06);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.wg-overview-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 106, 26, .34);
    box-shadow: 0 18px 38px rgba(7, 27, 47, .1);
    color: var(--wg-text);
}

.wg-overview-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(25, 118, 162, .1);
    color: var(--wg-cyan);
    font-size: 1.6rem;
}

.wg-overview-card h2 {
    font-size: 1.18rem;
    font-weight: 850;
    margin: 0;
}

.wg-overview-card p {
    color: var(--wg-muted);
    line-height: 1.6;
    margin: 0;
}

.wg-overview-card-action {
    margin-top: auto;
    color: var(--wg-orange);
    font-weight: 800;
}

.wg-data-table-shell {
    overflow-x: auto;
}

.wg-table {
    width: 100%;
    border-collapse: collapse;
}

.wg-table th,
.wg-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    vertical-align: middle;
}

.wg-table th {
    color: var(--wg-blue);
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: #f8fafc;
}

.wg-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    color: #166534;
    background: rgba(22, 163, 74, .12);
    border: 1px solid rgba(22, 163, 74, .22);
}

.wg-status-pill.is-muted {
    color: #475569;
    background: rgba(100, 116, 139, .12);
    border-color: rgba(100, 116, 139, .22);
}

.wg-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wg-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(25, 118, 162, .18);
    border-radius: 8px;
    padding: 8px 13px;
    background: var(--wg-surface);
    color: var(--wg-blue);
    font-weight: 800;
    text-decoration: none;
}

.wg-btn:hover {
    color: var(--wg-blue);
    border-color: rgba(255, 106, 26, .32);
}

.wg-btn-primary {
    background: var(--wg-orange);
    border-color: var(--wg-orange);
    color: #ffffff;
}

.wg-btn-primary:hover {
    color: #ffffff;
}

.wg-placeholder-panel {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--wg-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--wg-shadow);
    padding: 28px;
}

.wg-eyebrow {
    color: var(--wg-orange);
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 0 0 8px;
}
.wg-legal-panel {
    padding: 26px;
}

.wg-legal-content {
    color: var(--wg-text);
    line-height: 1.75;
}

.wg-legal-content h1,
.wg-legal-content h2,
.wg-legal-content h3 {
    color: var(--wg-blue);
    font-weight: 850;
}

.wg-legal-content h1 {
    font-size: 1.7rem;
}

.wg-legal-content h2 {
    font-size: 1.25rem;
    margin-top: 1.4rem;
}

.wg-legal-content p,
.wg-legal-content li {
    color: var(--wg-muted);
}


/* Existing account pages */
.profiledash-shell {
    width: 100%;
    padding: 0;
}

.profiledash-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
    gap: 22px;
    align-items: stretch;
    margin-bottom: 22px;
    padding: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--wg-blue), var(--wg-cyan));
    color: #ffffff;
    box-shadow: var(--wg-shadow);
    overflow: hidden;
}

.profiledash-hero-main,
.profiledash-hero-content,
.profiledash-hero-copy {
    min-width: 0;
}

.profiledash-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #ffb074;
    font-weight: 850;
}

.profiledash-hero-head {
    display: flex;
    gap: 16px;
    align-items: center;
}

.profiledash-avatar {
    width: 74px;
    height: 74px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 74px;
}

.profiledash-avatar img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.profiledash-hero-title {
    font-size: 1.9rem;
    font-weight: 850;
    letter-spacing: 0;
    margin: 0 0 6px;
}

.profiledash-hero-role,
.profiledash-hero-location,
.profiledash-hero-text {
    color: rgba(255, 255, 255, .82);
}

.profiledash-hero-text {
    max-width: 860px;
    line-height: 1.65;
    margin: 16px 0 0;
}

.profiledash-hero-actions,
.credentials-switch-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.profiledash-hero-media,
.profiledash-hero-visual,
.profiledash-classic-side-media {
    min-height: 220px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    overflow: hidden;
}

.profiledash-hero-video,
.profiledash-edit-video {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.profiledash-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.profiledash-summary-card,
.profiledash-classic-info-item {
    min-width: 0;
    border: 1px solid rgba(25, 118, 162, .16);
    border-radius: 8px;
    background: #ffffff;
    padding: 14px;
    color: var(--wg-text);
}

.profiledash-summary-label,
.profiledash-classic-info-label,
.profiledash-info-top {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--wg-muted);
    font-size: .82rem;
    font-weight: 800;
}

.profiledash-summary-value,
.profiledash-classic-info-value {
    margin-top: 8px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.tab-content-profile-page {
    display: none;
}

.tab-content-profile-page.active {
    display: block;
}

.profiledash-classic-card {
    background: #ffffff;
    border: 1px solid var(--wg-border);
    border-radius: 8px;
    box-shadow: var(--wg-shadow);
    overflow: hidden;
}

.profiledash-classic-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    background: #f8fafc;
}

.profiledash-classic-card-title {
    color: var(--wg-blue);
    font-size: 1.16rem;
    font-weight: 850;
    margin: 0;
}

.profiledash-classic-card-subtitle {
    color: var(--wg-muted);
    margin: 5px 0 0;
}

.profiledash-classic-card-body {
    padding: 20px;
}

.profiledash-classic-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.profiledash-edit-layout {
    display: grid;
    grid-template-columns: minmax(260px, .36fr) minmax(0, .64fr);
    gap: 20px;
    align-items: start;
}

.profiledash-edit-layout--credentials {
    grid-template-columns: minmax(260px, .35fr) minmax(0, .65fr);
}
.profiledash-edit-form-shell {
    min-width: 0;
}

.credentials-switch-btn.is-active,
.tab-link.active {
    box-shadow: 0 0 0 3px rgba(255, 106, 26, .18);
}

.profiledash-classic-card.d-none {
    display: none !important;
}

.profiledash-classic-card.is-active {
    display: block;
}


.profiledash-classic-side {
    background: #ffffff;
    border: 1px solid var(--wg-border);
    border-radius: 8px;
    box-shadow: var(--wg-shadow);
    overflow: hidden;
}

.profiledash-classic-side-copy {
    padding: 18px;
}

.profiledash-classic-side-copy h5 {
    color: var(--wg-blue);
    font-weight: 850;
    margin: 0 0 8px;
}

.profiledash-classic-side-copy p,
.profiledash-classic-point {
    color: var(--wg-muted);
    line-height: 1.6;
}

.profiledash-classic-points {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

.profiledash-classic-point {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.profiledash-classic-point i {
    color: var(--wg-green);
    font-size: 1.1rem;
}

.profiledash-form-wrap .form-label,
.profiledash-classic-card .form-label {
    color: var(--wg-blue);
    font-weight: 800;
}

.profiledash-classic-card .form-control,
.profiledash-classic-card .form-select,
.profiledash-classic-card .select2-selection {
    min-height: 42px;
    border-radius: 8px !important;
    border-color: rgba(15, 23, 42, .14) !important;
}

.input-group-text {
    border-radius: 8px 0 0 8px;
    color: var(--wg-blue);
    background: #f8fafc;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    color: var(--wg-muted);
    cursor: pointer;
}

.btn-primary-theme {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 850;
}

.btn-primary-theme-container,
.btn-primary-theme-whole-round {
    background: var(--wg-orange);
    border-color: var(--wg-orange);
    color: #ffffff;
}

.btn-primary-theme-container-secondary {
    background: #ffffff;
    border-color: rgba(25, 118, 162, .2);
    color: var(--wg-blue);
}

.btn-primary-theme:hover {
    filter: brightness(.98);
}

.profiledash-delete-account-btn {
    border-radius: 8px;
    font-weight: 850;
}

.status-badge,
.profiledash-email-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
    color: #166534;
    background: rgba(22, 163, 74, .12);
    border: 1px solid rgba(22, 163, 74, .2);
}

.strength-password-box {
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 8px;
    background: #f8fafc;
    padding: 14px;
}

.strength-bar {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    margin-top: 8px;
    overflow: hidden;
}

.strength-bar.weak {
    background: #ef4444;
}

.strength-bar.medium {
    background: #f59e0b;
}

.strength-bar.strong {
    background: #22c55e;
}

.strength-password-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.strength-password-requirement {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .1);
    color: var(--wg-muted);
    font-size: .8rem;
    font-weight: 700;
}

.strength-password-requirement.valid {
    color: #166534;
    border-color: rgba(22, 163, 74, .26);
    background: rgba(22, 163, 74, .08);
}

.otp-input {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.otp-input input {
    width: 44px;
    height: 44px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, .14);
    font-weight: 850;
}

.required {
    color: var(--wg-red);
}

.invalid-feedback,
.error-message {
    color: var(--wg-red);
}

/* =========================================================
   WeldGrid Responsive
========================================================= */
@media (max-width: 1199px) {
    .wg-overview-grid,
    .profiledash-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profiledash-hero,
    .profiledash-edit-layout,
    .profiledash-edit-layout--credentials {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    body.weldgrid-shell .app-wrapper,
    body.weldgrid-shell.sidebar-collapse .app-wrapper {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "main"
            "footer";
    }

    body.weldgrid-shell .app-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1040;
        transform: translateX(-100%);
        transition: transform .18s ease;
    }

    body.weldgrid-shell.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    body.weldgrid-shell .app-main {
        padding: 14px;
    }

    body.weldgrid-shell .wg-top-actions .wg-top-action span {
        display: none;
    }

    body.weldgrid-shell .notifications-dropdown-menu {
        min-width: min(340px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
    }
}

@media (max-width: 767px) {
    .wg-page-header {
        padding: 22px;
    }

    .wg-page-header h1,
    .profiledash-hero-title {
        font-size: 1.6rem;
    }

    .wg-overview-grid,
    .profiledash-summary-grid,
    .profiledash-classic-info-grid {
        grid-template-columns: 1fr;
    }

    .wg-placeholder-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .profiledash-hero {
        padding: 20px;
    }

    .profiledash-hero-head {
        align-items: flex-start;
    }
}
