@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');

/* Danger border for invalid input */
.input-error {
    border: 1.5px solid #d32f2f !important;
    box-shadow: 0 0 0 2px rgba(211,47,47,0.08);
}
.btn-loading svg {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}
/* Refined style for Services Received checkboxes in modal */
.usm-checkbox-group.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}
.service-checkbox-row {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0.5px solid var(--primary, #d6a551);
    border-radius: 12px;
    padding: 10px 16px;
    background: #fffdfa;
    transition: border-color 0.18s, box-shadow 0.18s;
    cursor: pointer;
}
.service-checkbox-row:hover,
.service-checkbox-row:focus-within {
    border-color: var(--primary-dark, #b6842d);
    box-shadow: 0 2px 8px rgba(214, 165, 81, 0.08);
}
.service-checkbox-row input[type="checkbox"] {
    accent-color: var(--primary, #d6a551);
    width: 20px;
    height: 20px;
    margin: 0 6px 0 0;
    flex-shrink: 0;
}
.service-checkbox-label {
    font-size: 1em;
    font-weight: 600;
    color: #3c2c24;
    user-select: none;
}
:root {
    --primary: #d6a551;
    --primary-dark: #b6842d;
    --secondary: #f4dee0;
    --secondary-soft: #f7e0e1;
    --text: #1f2933;
    --muted: #5f6c78;
    --bg: #ffffff;
    --bg-alt: #faf7f4;
    --radius-lg: 24px;
    --radius-md: 14px;
    --shadow: 0 18px 40px rgba(31, 41, 51, 0.12);
    --shadow-soft: 0 12px 24px rgba(31, 41, 51, 0.08);
    --profile-breadcrumb-font-size: 0.875rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 20%, #f8efe0 0, transparent 40%),
        radial-gradient(circle at 90% 0, #fbeff0 0, transparent 35%),
        var(--bg);
    line-height: 1.6;
}

body.dashboard-sidebar-open {
    overflow: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: "Cormorant Garamond", serif;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.4rem, 4.6vw, 3.4rem);
    line-height: 1.15;
}

h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    line-height: 1.18;
}

h3 {
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    line-height: 1.2;
}

h4 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.25;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}


.site-header {
    border-bottom: 1px solid #eadfce;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.header-inner {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
    position: relative;
    padding: 4px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    width: auto;
    height: 44px;
    object-fit: contain;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid #d6c5a8;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle-bar {
    width: 20px;
    height: 2px;
    background: #3c2c24;
    border-radius: 2px;
}

.nav-toggle:focus-visible {
    outline: 2px solid #3c2c24;
    outline-offset: 2px;
}

.site-nav .nav-list {
    list-style: none;
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--muted);
    font-weight: 500;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #3c2c24;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-alt);
    border: 1px solid #ecdcc5;
    padding: 6px 10px 6px 6px;
    border-radius: 999px;
    margin-left: auto;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    position: relative;
}

.header-actions .language-switcher {
    margin-left: 0;
}

.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2d3c0;
    border-radius: 999px;
    background: #fff;
    padding: 4px 10px 4px 4px;
    cursor: pointer;
    color: #3c2c24;
}

.user-menu-trigger:focus-visible {
    outline: 2px solid #3c2c24;
    outline-offset: 2px;
}

.user-menu-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #d8c9b8;
    background: #f8f3eb;
}

.user-menu-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7a6048;
}

.user-menu-avatar-placeholder svg {
    width: 18px;
    height: 18px;
}

.user-menu-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.86rem;
    font-weight: 600;
}

.user-menu-caret {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
}

.user-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 190px;
    background: #fff;
    border: 1px solid #eadfce;
    border-radius: 12px;
    box-shadow: 0 16px 30px rgba(31, 41, 51, 0.12);
    padding: 6px;
    display: none;
    z-index: 1500;
}

.user-menu.is-open .user-menu-dropdown {
    display: block;
}

.user-menu-item {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    color: #3c2c24;
    font-size: 0.9rem;
    font-weight: 500;
}

.user-menu-item:hover,
.user-menu-item:focus-visible {
    background: #f8efe0;
}

.lang-current-flag {
    width: 38px;
    height: 28px;
    border: 1px solid #d6c5a8;
    border-radius: 999px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-flag-icon {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    display: none;
}

.lang-flag-icon.is-visible {
    display: block;
}

.lang-select {
    border: 0;
    background: transparent;
    color: #3c2c24;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    padding: 2px 20px 2px 2px;
    cursor: pointer;
}

.lang-select:focus-visible {
    outline: 2px solid #3c2c24;
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.hero {
    padding: 56px 0 26px;
    text-align: center;
}

.hero-subtitle {
    max-width: 680px;
    margin: 12px auto 0;
    color: var(--muted);
    font-size: 1.06rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding: 10px 0 64px;
}

.docs-page {
    padding: 28px 0 64px;
    display: grid;
    gap: 18px;
}

.docs-hero {
    background: #fff;
    border: 1px solid #eadfce;
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.docs-role-section {
    background: #fff;
    border: 1px solid #eadfce;
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
}

.docs-role-section h2 {
    font-size: 1.55rem;
    color: #33251d;
}

.docs-video-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.docs-video-card {
    border: 1px solid #f0e3d2;
    border-radius: 14px;
    background: #fffaf3;
    padding: 12px;
    min-height: 170px;
}

.docs-video-card h3 {
    font-size: 1.02rem;
    color: #33251d;
}

.docs-video-card p {
    margin-top: 8px;
    color: var(--muted);
}

.docs-embed-wrap {
    margin-top: 8px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eadfce;
    background: #000;
    aspect-ratio: 16 / 9;
}

.docs-embed-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.portal-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid #f0e3d2;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.portal-card:nth-child(2) {
    background: linear-gradient(180deg, #fff7ea, #fff);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--secondary-soft);
    color: #4a2f1f;
}

.card-text {
    color: var(--muted);
}

.primary-btn {
    margin-top: auto;
    display: inline-block;
    background: var(--primary);
    color: #2f2118;
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.primary-btn:hover,
.primary-btn:focus-visible {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.site-footer {
    border-top: 1px solid #eadfce;
    padding: 20px 0 28px;
    color: var(--muted);
    text-align: center;
    background: #fff;
}

.footer-inner {
    display: grid;
    gap: 6px;
}

.footer-links {
    margin: 0;
}

.footer-link {
    color: #5b3a25;
    font-weight: 600;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: #2f2118;
    text-decoration: underline;
}

.policy-page {
    padding: 28px 0 64px;
}

.policy-panel {
    background: #fff;
    border: 1px solid #eadfce;
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    max-width: 960px;
    margin: 0 auto;
}

.policy-meta {
    color: var(--muted);
    margin: 8px 0 14px;
}

.policy-panel h2 {
    margin-top: 20px;
    color: #33251d;
}

.policy-panel p,
.policy-panel li {
    color: #2b3640;
}

.policy-panel ul {
    margin: 8px 0 0 20px;
    display: grid;
    gap: 6px;
}

.policy-disclaimer {
    margin-top: 22px;
    padding-top: 12px;
    border-top: 1px dashed #d8c9b8;
    color: var(--muted);
    font-size: 0.95rem;
}

.page-placeholder {
    padding: 36px 0 52px;
}

.auth-page {
    padding: 28px 0 64px;
}

.auth-panel {
    background: #fff;
    border: 1px solid #eadfce;
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.auth-panel h1,
.auth-panel h2 {
    color: #33251d;
}

.auth-panel-wide {
    max-width: 900px;
    margin: 0 auto;
}

.auth-subtitle {
    color: var(--muted);
    margin-top: 6px;
}

.auth-form {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.auth-form > * {
    min-width: 0;
}

.auth-form label {
    font-weight: 600;
    color: #3c2c24;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
    border: 1px solid #d8c9b8;
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
    background: #fff;
    width: 100%;
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap input {
    width: 100%;
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #5f6c78;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: #f5ede0;
    color: #2f2118;
    outline: none;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

.password-toggle .eye-closed {
    display: none;
}

.password-toggle[aria-pressed="true"] .eye-open {
    display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
    display: block;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    border-color: var(--primary-dark);
    outline: none;
    box-shadow: 0 0 0 2px rgba(182, 132, 45, 0.18);
}

.auth-submit {
    margin-top: 6px;
    padding: 14px 26px;
    font-size: 1rem;
    letter-spacing: 0.2px;
    box-shadow: 0 10px 24px rgba(182, 132, 45, 0.32);
}

.auth-submit:hover,
.auth-submit:focus-visible {
    box-shadow: 0 14px 28px rgba(182, 132, 45, 0.38);
}

.auth-submit.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.9;
    color: transparent;
}

.auth-submit.is-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    margin-top: -9px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    animation: auth-submit-spin 0.8s linear infinite;
}

@keyframes auth-submit-spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-link {
    color: #5b3a25;
    font-weight: 600;
}

.auth-link:hover,
.auth-link:focus-visible {
    color: #2f2118;
    text-decoration: underline;
}

.auth-grid-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.auth-field-full {
    grid-column: 1 / -1;
}

.auth-field-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-dual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.dashboard-welcome {
    font-size: clamp(1.7rem, 3.1vw, 2.4rem);
    line-height: 1.2;
}

.dashboard-shell .site-header {
    position: sticky;
    top: 0;
    z-index: 1300;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(16px);
}

.dashboard-shell .site-header .container {
    width: 100%;
    padding-inline: 24px;
}

.dashboard-header-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid #d6c5a8;
    border-radius: 10px;
    background: #fff;
    color: #3c2c24;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.dashboard-header-toggle:focus-visible {
    outline: 2px solid #3c2c24;
    outline-offset: 2px;
}

.user-dashboard-page {
    width: 100%;
    padding: 0;
}

.dashboard-workspace {
    min-height: calc(100vh - 103px);
    padding-left: 292px;
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(244, 222, 224, 0.4), transparent 24%),
        linear-gradient(180deg, #fffaf4 0%, #fff 46%, #faf7f4 100%);
}

.dashboard-sidebar-toggle-wrap {
    display: none;
    width: fit-content;
    z-index: 1350;
}

.dashboard-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #d6c5a8;
    border-radius: 10px;
    background: #fff;
    padding: 0;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.dashboard-menu-label {
    display: block;
    text-align: center;
    margin-bottom: 3px;
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    line-height: 1;
    color: #6b4b31;
    font-weight: 700;
}

.dashboard-hamburger {
    position: relative;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #3c2c24;
}

.dashboard-hamburger::before,
.dashboard-hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #3c2c24;
}

.dashboard-hamburger::before {
    top: -6px;
}

.dashboard-hamburger::after {
    top: 6px;
}

.dashboard-sidebar {
    position: fixed;
    top: 79px;
    left: 0;
    bottom: 0;
    width: 272px;
    padding: 22px 18px 28px;
    overflow-y: auto;
    background: linear-gradient(180deg, #fff8ec 0%, #fffefb 100%);
    border-top: 0;
    border-right: 1px solid #eadfce;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0 28px 28px 0;
    box-shadow: 16px 0 40px rgba(31, 41, 51, 0.08);
}

.dashboard-sidebar-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 1px solid #d8c9b8;
    border-radius: 8px;
    background: #fff;
    color: #3c2c24;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.dashboard-sidebar-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #6b4b31;
    font-weight: 700;
    margin-bottom: 10px;
}

.dashboard-menu {
    display: grid;
    gap: 10px;
}

.dashboard-menu-link {
    display: block;
    border: 1px solid #f1e4d3;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    color: #364450;
    font-weight: 600;
    padding: 12px 14px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dashboard-menu-link-with-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dashboard-menu-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    background: #b72222;
    color: #fff;
    box-shadow: 0 6px 14px rgba(183, 34, 34, 0.3);
    flex-shrink: 0;
}

.dashboard-menu-link:hover,
.dashboard-menu-link:focus-visible {
    border-color: #d6a551;
    background: #fff3de;
    color: #2f2118;
    transform: translateX(2px);
}

.dashboard-menu-link.is-active {
    border-color: #c09030;
    background: #ffe8b0;
    color: #1e1208;
    transform: translateX(4px);
    font-weight: 700;
}

.dashboard-main-panel {
    min-height: calc(100vh - 79px);
    padding: 30px 38px 44px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.dashboard-main-top {
    display: block;
    border: 1px solid rgba(240, 227, 210, 0.9);
    border-radius: 24px;
    padding: 28px;
    background: linear-gradient(145deg, rgba(255, 249, 239, 0.98), rgba(255, 255, 255, 0.96) 44%, rgba(255, 245, 245, 0.94));
    box-shadow: 0 22px 50px rgba(31, 41, 51, 0.09);
}

.dashboard-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6b4b31;
    font-weight: 700;
}

.dashboard-intro-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.15;
    margin-top: 6px;
}

.dashboard-intro-subtitle {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 1.02rem;
    text-align: left;
}

.dashboard-identity-list {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 10px 18px;
}

.dashboard-identity-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #ecdcc5;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #3b4650;
    min-width: 0;
    white-space: nowrap;
}

.dashboard-identity-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #eadfce;
    background: rgba(255, 255, 255, 0.95);
    color: #7a582f;
    flex: 0 0 auto;
}

.dashboard-identity-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.dashboard-identity-label {
    color: #6b4b31;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-identity-value {
    color: #2f2118;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-identity-link {
    justify-content: space-between;
    min-width: 230px;
    color: #2f2118;
    font-weight: 700;
}

.dashboard-identity-link-arrow {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #e7d7c1;
    background: rgba(255, 255, 255, 0.95);
    color: #6b4b31;
    flex: 0 0 auto;
}

.dashboard-identity-link-arrow svg {
    width: 12px;
    height: 12px;
    display: block;
}

.dashboard-identity-link:hover,
.dashboard-identity-link:focus-visible {
    border-color: #d6a551;
    background: #fff3de;
}


.dashboard-setup-indicator {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #ecdcc5;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
}

.setup-loader {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #e5d3b6;
    border-top-color: #b6842d;
    animation: dashboard-setup-spin 0.85s linear infinite;
}

.setup-status-copy {
    color: #6b4b31;
    font-size: 0.92rem;
    font-weight: 600;
}

.dashboard-quick-actions {
    margin-top: 22px;
}

.dashboard-stats-row {
    margin-top: 22px;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    gap: 14px;
    scrollbar-width: thin;
    scrollbar-color: #d6a551 #f5ede0;
}

.dashboard-stats-row::-webkit-scrollbar {
    height: 6px;
}

.dashboard-stats-row::-webkit-scrollbar-track {
    background: #f5ede0;
    border-radius: 3px;
}

.dashboard-stats-row::-webkit-scrollbar-thumb {
    background: #d6a551;
    border-radius: 3px;
}

.dashboard-stat-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border: 1px solid rgba(240, 227, 210, 0.92);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 34px rgba(31, 41, 51, 0.05);
}

.admin-review-card-grid {
    align-items: stretch;
}

.admin-review-card-grid .dashboard-stat-card {
    flex: 0 0 240px;
    min-width: 240px;
}

.admin-review-card {
    color: inherit;
    text-decoration: none;
    min-height: 178px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-review-card .dashboard-stat-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.admin-review-card .dashboard-stat-note {
    max-width: none;
}

.admin-review-card-indicator {
    margin-left: auto;
    align-self: center;
}

.admin-review-card:hover,
.admin-review-card:focus-visible {
    border-color: #d6a551;
    box-shadow: 0 20px 32px rgba(31, 41, 51, 0.08);
    transform: translateY(-2px);
}

.dashboard-stat-card-approved {
    background: linear-gradient(145deg, #f4fbf2, #ffffff 68%);
}

.dashboard-stat-card-submitted {
    background: linear-gradient(145deg, #eef7ff, #ffffff 68%);
}

.dashboard-stat-card-pending {
    background: linear-gradient(145deg, #fff7eb, #ffffff 68%);
}

.dashboard-stat-card-staff {
    background: linear-gradient(145deg, #f0eeff, #ffffff 68%);
}

.dashboard-stat-card-staff-profiles {
    background: linear-gradient(145deg, #fce8f3, #ffffff 68%);
}

.dashboard-stat-card-clients {
    background: linear-gradient(145deg, #e8faf4, #ffffff 68%);
}

.dashboard-stat-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #eadfce;
    background: rgba(255, 255, 255, 0.9);
    color: #7a582f;
}

.dashboard-stat-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.dashboard-stat-copy {
    display: grid;
    gap: 4px;
}

.dashboard-stat-label {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b4b31;
    font-weight: 700;
}

.admin-review-card-title-split {
    max-width: 10ch;
    line-height: 1.35;
}

.dashboard-stat-value {
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1;
    color: #2f2118;
}

.dashboard-stat-note {
    color: var(--muted);
    font-size: 0.93rem;
    max-width: 30ch;
}

.dashboard-quick-actions h2 {
    font-size: 1.24rem;
    color: #33251d;
}

.dashboard-action-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-action-btn {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    min-height: 118px;
    border-radius: 18px;
    border: 1px solid #f0e3d2;
    background: #fffdf8;
    padding: 18px;
    color: #3c2c24;
    box-shadow: 0 16px 28px rgba(31, 41, 51, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dashboard-action-btn:nth-child(1) {
    background: #fff6ea;
}

.dashboard-action-btn:nth-child(2) {
    background: #eef7ff;
}

.dashboard-action-btn:nth-child(3) {
    background: #f2f8ef;
}

.dashboard-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #eadfce;
}

.dashboard-action-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.dashboard-action-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.dashboard-action-title {
    font-weight: 700;
    color: #2f2118;
}

.dashboard-action-description {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.45;
}

.dashboard-action-link-indicator {
    margin-left: auto;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #e7d7c1;
    background: rgba(255, 255, 255, 0.9);
    color: #6b4b31;
    flex: 0 0 auto;
}

.dashboard-action-link-indicator svg {
    width: 14px;
    height: 14px;
    display: block;
}

.dashboard-action-btn:hover,
.dashboard-action-btn:focus-visible {
    border-color: #d6a551;
    background: #fff3de;
    box-shadow: 0 20px 32px rgba(31, 41, 51, 0.08);
    transform: translateY(-2px);
}

.dashboard-widget-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.dashboard-widget-card {
    border: 1px solid rgba(240, 227, 210, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    padding: 22px;
    box-shadow: 0 18px 34px rgba(31, 41, 51, 0.06);
}

.dashboard-widget-card h3 {
    font-size: 1.05rem;
    color: #33251d;
}

.dashboard-widget-title-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dashboard-widget-title-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: #fff4de;
    border: 1px solid #ecdcc5;
    color: #7a582f;
}

.dashboard-widget-title-icon svg {
    width: 15px;
    height: 15px;
    display: block;
}

.dashboard-widget-list {
    margin-top: 12px;
    padding-left: 20px;
    display: grid;
    gap: 8px;
    color: #3b4650;
    font-size: 0.93rem;
}

.dashboard-sidebar-backdrop {
    display: none;
}

@keyframes dashboard-setup-spin {
    to {
        transform: rotate(360deg);
    }
}

.dashboard-top-actions {
    margin-top: 12px;
}

.support-fab {
    position: fixed;
    right: 18px;
    bottom: 20px;
    z-index: 1200;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #3c2c24;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.support-fab:hover,
.support-fab:focus-visible {
    background: #2e211b;
}

.support-fab-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}

.support-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
}

.support-modal.is-open {
    display: block;
}

.support-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(31, 41, 51, 0.4);
}

.support-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, calc(100% - 24px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #eadfce;
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.support-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
}

.support-subtitle {
    margin-top: 4px;
    color: var(--muted);
}

.support-form {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.support-form label {
    font-weight: 600;
    color: #3c2c24;
}

.support-form input,
.support-form textarea {
    border: 1px solid #d8c9b8;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
}

.support-form input:focus,
.support-form textarea:focus {
    border-color: var(--primary-dark);
    outline: none;
    box-shadow: 0 0 0 2px rgba(182, 132, 45, 0.16);
}

.support-submit {
    margin-top: 4px;
}

.support-status {
    min-height: 1.2em;
    color: var(--muted);
    font-size: 0.94rem;
}

.support-status.is-error {
    color: #a11d2f;
}

.support-status.is-success {
    color: #13643b;
}

@media (max-width: 980px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .docs-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-dual-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 721px) {
    .dashboard-main-panel {
        padding: 34px 42px 52px;
    }
}

@media (min-width: 721px) and (max-width: 980px) {
    .dashboard-workspace {
        padding-left: 248px;
    }

    .dashboard-sidebar {
        width: 232px;
    }

    .dashboard-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-identity-list {
        grid-template-columns: 1fr;
    }

    .dashboard-main-panel {
        padding: 28px 24px 40px;
    }
}

@media (max-width: 720px) {
    .dashboard-shell .site-header .container {
        padding-inline: 16px;
    }

    .dashboard-shell .header-inner {
        display: grid;
        grid-template-columns: auto auto 1fr;
        align-items: center;
        min-height: 74px;
        padding: 12px 0;
        gap: 12px;
    }

    .dashboard-shell .brand {
        min-width: 0;
        justify-self: start;
        order: 1;
    }

    .dashboard-shell .dashboard-header-toggle {
        display: inline-flex;
        order: 2;
        justify-self: start;
    }

    .dashboard-shell .brand-logo {
        height: 50px;
    }

    .dashboard-shell .header-actions {
        justify-self: end;
        order: 3;
        gap: 8px;
    }

    .dashboard-shell .language-switcher {
        position: static;
        margin: 0;
        padding-right: 8px;
        transform: none;
    }

    .dashboard-shell .user-menu-name {
        display: none;
    }

    .dashboard-shell .user-menu-avatar {
        display: none;
    }

    .dashboard-shell .user-menu-trigger {
        padding-right: 6px;
    }

    .dashboard-shell .user-menu-dropdown {
        right: 0;
        min-width: 168px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .docs-video-grid {
        grid-template-columns: 1fr;
    }

    .auth-grid-form {
        grid-template-columns: 1fr;
    }

    .dashboard-workspace {
        min-height: calc(100vh - 74px);
        padding-left: 0;
    }

    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: auto;
        width: min(320px, 86vw);
        height: 100dvh;
        z-index: 1400;
        border-right: 1px solid #eadfce;
        border-radius: 0 26px 26px 0;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        overflow-y: auto;
        box-shadow: 24px 0 48px rgba(31, 41, 51, 0.18);
    }

    .dashboard-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .dashboard-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(31, 41, 51, 0.34);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 1350;
    }

    .dashboard-workspace.is-sidebar-open .dashboard-sidebar {
        transform: translateX(0);
    }

    .dashboard-workspace.is-sidebar-open .dashboard-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .dashboard-main-panel {
        min-height: calc(100vh - 74px);
        padding: 18px 16px 36px;
    }

    .dashboard-main-top {
        padding: 20px 18px;
        border-radius: 20px;
    }

    .dashboard-identity-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dashboard-identity-item {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border-radius: 16px;
        width: 100%;
    }

    .dashboard-stats-row .dashboard-stat-card {
        flex: 0 0 260px;
    }

    .dashboard-action-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-action-link-indicator {
        align-self: center;
    }

    .auth-form textarea,
    .support-form textarea {
        min-height: 92px;
    }

    .support-dialog {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
    }

    .support-fab {
        right: 12px;
        bottom: 12px;
    }

    .hero {
        text-align: left;
    }
}

@media (max-width: 420px) {
    .auth-panel {
        padding: 18px 14px;
    }

    .policy-panel {
        padding: 18px 14px;
    }
}

@media (max-width: 390px) {
    .g-recaptcha {
        transform: scale(0.92);
        transform-origin: left top;
    }

    .auth-field-actions {
        align-items: stretch;
    }

    .auth-field-actions .auth-submit,
    .auth-field-actions .auth-link {
        width: 100%;
        text-align: center;
    }
}

/* =========================================================
   PROFILE PAGE
   ========================================================= */

.profile-section {
    margin-top: 24px;
}

.profile-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.profile-section-header {
    --profile-breadcrumb-font-size: 0.875rem;
}

.profile-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--profile-breadcrumb-font-size);
    font-weight: 600;
    color: var(--muted);
    transition: color 0.18s;
}

.profile-back-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.profile-back-link:hover,
.profile-back-link:focus-visible {
    color: var(--primary-dark);
    outline: none;
}

.profile-section-title {
    margin: 0;
    font-size: var(--profile-breadcrumb-font-size);
    font-family: "Poppins", sans-serif;
    font-weight: 600;
}

.profile-card {
    margin-top: 0;
}

/* ---- Tabs ---- */

.profile-tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #eadfce;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

.profile-tab-nav::-webkit-scrollbar {
    display: none;
}

.profile-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 11px 22px;
    font: 600 0.9rem/1 "Poppins", sans-serif;
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.18s, border-color 0.18s;
}

.profile-tab:hover,
.profile-tab:focus-visible {
    color: var(--primary-dark);
    outline: none;
}

.profile-tab.is-active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

.profile-panel {
    display: none;
    min-width: 0;
}

.profile-panel.is-active {
    display: block;
}

/* ---- Basic info form grid ---- */

.profile-form {
    display: block;
}

.profile-form label {
    font-weight: 600;
    color: #3c2c24;
}

.profile-form input,
.profile-form select,
.profile-form textarea {
    border: 1px solid #d8c9b8;
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
    background: #fff;
    width: 100%;
}

    /* =========================================================
       USER SETTINGS PAGE  (system-users)
       ========================================================= */

    /* ── Toolbar ─────────────────────────────────────────────────────────── */
    .usm-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 18px;
    }

    .usm-search-wrap {
        position: relative;
        flex: 1 1 220px;
        max-width: 360px;
    }

    .usm-search-wrap svg {
        position: absolute;
        top: 50%;
        left: 12px;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        color: var(--muted);
        pointer-events: none;
    }

    .usm-search {
        width: 100%;
        padding: 10px 12px 10px 36px;
        border: 1px solid #d8c9b8;
        border-radius: 10px;
        font: inherit;
        font-size: 0.9rem;
        background: #fff;
        transition: border-color 0.18s, box-shadow 0.18s;
    }

    .usm-search:focus {
        border-color: var(--primary-dark);
        outline: none;
        box-shadow: 0 0 0 2px rgba(182, 132, 45, 0.18);
    }

    .usm-add-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 18px;
        border: none;
        border-radius: 10px;
        background: var(--primary-dark);
        color: #fff;
        font: inherit;
        font-size: 0.92rem;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
        transition: background 0.18s;
    }

    .usm-add-btn:hover,
    .usm-add-btn:focus-visible {
        background: #9a6d22;
        outline: none;
    }

    .usm-add-btn svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    /* ── Table ─────────────────────────────────────────────────────────────── */
    .usm-table-wrap {
        overflow-x: auto;
        border-radius: 14px;
        border: 1px solid #ecdcc5;
    }

    .usm-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.9rem;
    }

    .usm-table thead {
        background: linear-gradient(90deg, #fff8ec, #fffefb);
    }

    .usm-table th {
        padding: 12px 16px;
        text-align: left;
        font-size: 0.74rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #6b4b31;
        border-bottom: 1px solid #ecdcc5;
        white-space: nowrap;
    }

    .usm-table td {
        padding: 13px 16px;
        border-bottom: 1px solid #f1e8dc;
        color: #364450;
        vertical-align: middle;
    }

    .usm-table tbody tr:last-child td {
        border-bottom: none;
    }

    .usm-table tbody tr:hover td {
        background: #fffaf2;
    }

    .usm-empty-cell {
        text-align: center;
        color: var(--muted);
        padding: 40px 16px !important;
        font-size: 0.92rem;
    }

    /* ── Badges ────────────────────────────────────────────────────────────── */
    .usm-badge {
        display: inline-flex;
        align-items: center;
        padding: 3px 10px;
        border-radius: 999px;
        font-size: 0.74rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        white-space: nowrap;
    }

    .usm-badge-super {
        background: #fff0dc;
        color: #7a4a08;
        border: 1px solid #f0c97a;
    }

    .usm-badge-admin {
        background: #eaf2ff;
        color: #1a4a8a;
        border: 1px solid #a9c8f5;
    }

    .usm-badge-active {
        background: #e7f7ef;
        color: #1a6b3e;
        border: 1px solid #9adabb;
    }

    .usm-badge-inactive {
        background: #f5f5f5;
        color: #5f6c78;
        border: 1px solid #d0d0d0;
    }

    /* ── Row action buttons ─────────────────────────────────────────────────── */
    .usm-actions-cell {
        display: flex;
        gap: 6px;
        align-items: center;
        white-space: nowrap;
    }

    .usm-icon-btn {
        display: inline-grid;
        place-items: center;
        width: 32px;
        height: 32px;
        border: 1px solid #d8c9b8;
        border-radius: 8px;
        background: #fff;
        color: #3c2c24;
        cursor: pointer;
        transition: background 0.15s, border-color 0.15s, color 0.15s;
        padding: 0;
    }

    .usm-icon-btn svg {
        width: 15px;
        height: 15px;
        display: block;
    }

    .usm-btn-edit:hover,
    .usm-btn-edit:focus-visible {
        background: #fff3de;
        border-color: var(--primary);
        color: var(--primary-dark);
        outline: none;
    }

    .usm-btn-delete:hover,
    .usm-btn-delete:focus-visible {
        background: #fef2f2;
        border-color: #f9a8a8;
        color: #c0392b;
        outline: none;
    }

    .usm-btn-message:hover,
    .usm-btn-message:focus-visible {
        background: #ecf6ff;
        border-color: #9ac7f0;
        color: #16558f;
        outline: none;
    }

    .usm-toggle-icon {
        display: inline-grid;
        place-items: center;
        color: var(--muted);
    }

    .usm-toggle-icon.is-active {
        color: #1a6b3e;
    }

    .usm-btn-toggle:hover,
    .usm-btn-toggle:focus-visible {
        background: #f0faf5;
        border-color: #9adabb;
        outline: none;
    }

    .usm-icon-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* ── Modals ─────────────────────────────────────────────────────────────── */
    .usm-modal {
        position: fixed;
        inset: 0;
        z-index: 1400;
        display: grid;
        place-items: center;
        padding: 16px;
    }

    .usm-modal[hidden] {
        display: none;
    }

    .usm-modal-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(31, 41, 51, 0.46);
        backdrop-filter: blur(2px);
    }

    .usm-modal-dialog {
        position: relative;
        width: min(520px, 100%);
        max-height: calc(100dvh - 32px);
        overflow-y: auto;
        background: #fff;
        border: 1px solid #eadfce;
        border-radius: 18px;
        box-shadow: var(--shadow);
    }

    .usm-modal-dialog--sm {
        width: min(380px, 100%);
    }

    .usm-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 22px 14px;
        border-bottom: 1px solid #f0e5d4;
    }

    .usm-modal-title {
        font-family: "Poppins", sans-serif;
        font-size: 1.05rem;
        font-weight: 700;
        color: #33251d;
        margin: 0;
    }

    .usm-modal-close {
        display: inline-grid;
        place-items: center;
        width: 32px;
        height: 32px;
        border: 1px solid #d8c9b8;
        border-radius: 8px;
        background: #fff;
        color: #5f6c78;
        cursor: pointer;
        font-size: 1rem;
        line-height: 1;
        flex-shrink: 0;
        padding: 0;
        transition: background 0.15s, color 0.15s;
    }

    .usm-modal-close:hover,
    .usm-modal-close:focus-visible {
        background: #f5ede0;
        color: #2f2118;
        outline: none;
    }

    .usm-modal-body {
        padding: 20px 22px;
    }

    .usm-modal-footer {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        padding: 14px 22px 18px;
        border-top: 1px solid #f0e5d4;
        flex-wrap: wrap;
    }

    /* ── Form inside modals ─────────────────────────────────────────────────── */
    .usm-form {
        display: grid;
        gap: 14px;
    }

    .usm-form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .usm-field {
        display: grid;
        gap: 6px;
    }

    .usm-field label {
        font-size: 0.84rem;
        font-weight: 600;
        color: #3c2c24;
    }

    .usm-field input,
    .usm-field select {
        border: 1px solid #d8c9b8;
        border-radius: 10px;
        padding: 10px 12px;
        font: inherit;
        font-size: 0.9rem;
        background: #fff;
        width: 100%;
        transition: border-color 0.18s, box-shadow 0.18s;
    }

    .usm-field textarea {
        border: 1px solid #d8c9b8;
        border-radius: 10px;
        padding: 10px 12px;
        font: inherit;
        font-size: 0.9rem;
        background: #fff;
        width: 100%;
        transition: border-color 0.18s, box-shadow 0.18s;
        resize: vertical;
        min-height: 120px;
    }

    .usm-field input:focus,
    .usm-field select:focus,
    .usm-field textarea:focus {
        border-color: var(--primary-dark);
        outline: none;
        box-shadow: 0 0 0 2px rgba(182, 132, 45, 0.18);
    }

    .usm-field-hint {
        font-size: 0.78rem;
        color: var(--muted);
        margin-top: -2px;
    }

    /* ── Buttons ─────────────────────────────────────────────────────────────── */
    .usm-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 20px;
        border: 1px solid #d8c9b8;
        border-radius: 10px;
        font: inherit;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
        transition: background 0.16s, border-color 0.16s, color 0.16s;
    }

    .usm-btn-primary {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
        color: #fff;
        box-shadow: 0 4px 12px rgba(182, 132, 45, 0.28);
    }

    .usm-btn-primary:hover,
    .usm-btn-primary:focus-visible {
        background: #9a6d22;
        border-color: #9a6d22;
        outline: none;
    }

    .usm-btn-ghost {
        background: #fff;
        color: #3c2c24;
    }

    .usm-btn-ghost:hover,
    .usm-btn-ghost:focus-visible {
        background: #f9f0e4;
        outline: none;
    }

    .usm-btn-danger {
        background: #c0392b;
        border-color: #c0392b;
        color: #fff;
    }

    .usm-btn-danger:hover,
    .usm-btn-danger:focus-visible {
        background: #a93226;
        border-color: #a93226;
        outline: none;
    }

    .usm-btn.is-loading {
        pointer-events: none;
        opacity: 0.75;
    }

    /* ── Alert inside modal ─────────────────────────────────────────────────── */
    .usm-alert {
        padding: 10px 14px;
        border-radius: 9px;
        font-size: 0.88rem;
        font-weight: 500;
        margin-bottom: 4px;
    }

    .usm-alert[hidden] {
        display: none;
    }

    .usm-alert-error {
        background: #fef2f2;
        border: 1px solid #f9a8a8;
        color: #b91c1c;
    }

    .usm-alert-success {
        background: #e7f7ef;
        border: 1px solid #9adabb;
        color: #1a6b3e;
    }

    /* ── Delete confirm text ────────────────────────────────────────────────── */
    .usm-delete-msg {
        font-size: 0.95rem;
        color: #364450;
        line-height: 1.55;
    }

    .usm-delete-msg strong {
        color: #33251d;
    }

    /* ── Toast ───────────────────────────────────────────────────────────────── */
    .usm-toast {
        position: fixed;
        bottom: 28px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1500;
        padding: 12px 24px;
        border-radius: 12px;
        font-size: 0.9rem;
        font-weight: 600;
        box-shadow: var(--shadow);
        pointer-events: none;
        white-space: nowrap;
    }

    .usm-toast[hidden] {
        display: none;
    }

    .usm-toast-success {
        background: #3c2c24;
        color: #fff;
    }

    .usm-toast-error {
        background: #3c2c24;
        color: #fff;
    }

    /* ── Count chip ─────────────────────────────────────────────────────────── */
    .usm-count-chip {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        padding: 0 7px;
        border-radius: 999px;
        background: #fff0dc;
        color: #7a4a08;
        font-size: 0.74rem;
        font-weight: 700;
        margin-left: 6px;
        vertical-align: middle;
    }

    .spm-detail-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 14px;
    }

    .spm-detail-item {
        border: 1px solid #ecdcc5;
        border-radius: 10px;
        background: #fffaf2;
        padding: 10px 12px;
        display: grid;
        gap: 3px;
    }

    .spm-detail-item--full {
        grid-column: 1 / -1;
    }

    .spm-detail-photo-wrap {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        margin-bottom: 4px;
    }

    .spm-detail-photo {
        width: 112px;
        height: 112px;
        border-radius: 50%;
        border: 2px solid #ecdcc5;
        background: #f8f3eb;
        object-fit: cover;
        display: block;
    }

    .spm-detail-photo-placeholder {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        font-weight: 600;
        color: #6b4b31;
        text-align: center;
        padding: 8px;
    }

    .spm-detail-label {
        font-size: 0.74rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #6b4b31;
        font-weight: 700;
    }

    .spm-detail-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .spm-detail-toggle {
        border: 1px solid #d8c9b8;
        background: #fff;
        color: #5b3a25;
        border-radius: 999px;
        padding: 4px 10px;
        font: inherit;
        font-size: 0.76rem;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
    }

    .spm-detail-toggle:hover,
    .spm-detail-toggle:focus-visible {
        background: #f9f0e4;
        border-color: #d6a551;
        outline: none;
    }

    .spm-detail-value {
        font-size: 0.92rem;
        color: #2f2118;
        overflow-wrap: anywhere;
    }

    .spm-detail-meta {
        grid-column: 1 / -1;
        margin-top: 2px;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.76rem;
        color: #6d6052;
    }

    .spm-detail-meta-dot {
        color: #b09a82;
    }

    .spm-modal-footer-actions {
        justify-content: flex-start;
    }

    .spm-pagination {
        margin-top: 14px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        flex-wrap: wrap;
    }

    .spm-page-info {
        font-size: 0.85rem;
        color: #5f6c78;
        font-weight: 600;
        min-width: 100px;
        text-align: center;
    }

    .usm-field input[readonly] {
        background: #f9f5ef;
        color: #5f6c78;
        cursor: not-allowed;
        border-color: #e8ddd0;
    }

    /* ── Responsive ─────────────────────────────────────────────────────────── */
    @media (max-width: 600px) {
        .usm-form-row {
            grid-template-columns: 1fr;
        }
        .usm-toolbar {
            flex-direction: column;
            align-items: stretch;
        }
        .usm-search-wrap {
            max-width: none;
            min-width: 0;
            flex: 1 1 auto;
        }
        .usm-add-btn {
            justify-content: center;
        }
        .usm-table th:nth-child(5),
        .usm-table td:nth-child(5) {
            display: none;
        }
        .spm-detail-grid {
            grid-template-columns: 1fr;
        }
        .spm-pagination {
            justify-content: center;
        }
    }

.profile-form input:focus,
.profile-form select:focus,
.profile-form textarea:focus {
    border-color: var(--primary-dark);
    outline: none;
    box-shadow: 0 0 0 2px rgba(182, 132, 45, 0.18);
}

.profile-form input[readonly] {
    background: #f9f5ef;
    color: var(--muted);
    cursor: not-allowed;
    border-color: #e8ddd0;
}

.profile-form textarea {
    resize: vertical;
    min-height: 72px;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
}

.profile-field-full {
    grid-column: 1 / -1;
}

.profile-readonly-hint {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 2px;
}

.profile-save-row {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ---- Profile picture tab ---- */

.profile-picture-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 16px 0 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.profile-picture-preview {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 3px solid #eadfce;
    object-fit: cover;
    background: #faf7f4;
    display: block;
}

.profile-picture-placeholder {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 3px solid #eadfce;
    background: #faf7f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c6b49a;
}

.profile-picture-placeholder svg {
    display: block;
    width: 64px;
    height: 64px;
}

.profile-picture-upload-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 22px;
    background: var(--bg-alt);
    border: 1px solid #d8c9b8;
    border-radius: 10px;
    font: 600 0.9rem/1 "Poppins", sans-serif;
    cursor: pointer;
    color: var(--text);
    transition: background 0.18s, border-color 0.18s;
    max-width: 100%;
    text-align: center;
}

.profile-picture-upload-label > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.profile-picture-upload-label:hover {
    background: #f0e5d6;
    border-color: var(--primary);
}

.profile-picture-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    left: -9999px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.profile-picture-hint {
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
}

/* ---- Password tab ---- */

.profile-password-fields {
    display: grid;
    gap: 14px;
    max-width: 440px;
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-field-full {
        grid-column: 1;
    }

    .profile-tab {
        padding: 10px 14px;
        font-size: 0.84rem;
    }

    .profile-password-fields {
        max-width: 100%;
    }
}
