/* Build by CJ - Client account portal */

.account-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg, #F9F9F7);
    color: var(--ink, #2C3236);
    overflow-x: clip;
    max-width: 100%;
}

.account-top-shell {
    background: #fff;
}

.account-header-bar {
    position: sticky;
    top: 0;
    z-index: 80;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--border, #E4E2DC);
}

.account-header-bar__inner {
    display: contents;
}

.account-top {
    background: transparent;
}

.account-top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    max-width: 1080px;
    margin: 0 auto;
    min-width: 0;
}

.account-top__section {
    display: none;
    margin: 0;
    flex: 1;
    min-width: 0;
    font-family: Manrope, system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ink, #2C3236);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Manrope, system-ui, sans-serif;
    font-weight: 700;
    color: var(--ink, #2C3236);
    text-decoration: none;
    min-width: 0;
    flex-shrink: 0;
}

.account-logo .logo-mark {
    width: 34px;
    height: 34px;
    background: var(--primary, #4A8268);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.account-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.account-nav__drawer-head,
.account-nav__user,
.account-nav__utility {
    display: none;
}

.account-nav__links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.account-nav__footer {
    display: flex;
    align-items: center;
}

.account-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-muted, #5a6168);
    font-size: 0.875rem;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.account-nav__link i,
.account-nav__link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.account-nav__link:hover {
    color: var(--primary, #4A8268);
    background: rgba(74, 130, 104, 0.08);
}

.account-nav__link.is-active {
    color: var(--primary, #4A8268);
    background: rgba(74, 130, 104, 0.12);
    font-weight: 600;
}

.account-nav__link--signout {
    color: var(--ink-muted, #5a6168);
}

.account-nav__drawer-close {
    display: none;
}

.account-nav__link--register {
    background: var(--primary, #4A8268);
    color: #fff !important;
}

.account-nav__link--register:hover,
.account-nav__link--register.is-active {
    background: var(--primary-hover, #3D715A);
    color: #fff !important;
}

.account-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--border, #E4E2DC);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 85;
}

.account-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink, #2C3236);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.account-nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.account-nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.account-nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.account-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 95;
    border: 0;
    background: rgba(44, 50, 54, 0.45);
    cursor: pointer;
}

body.account-nav-open {
    overflow: hidden;
}

body.account-nav-open .account-nav-toggle {
    z-index: 101;
}

.account-wrap--auth {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    background: var(--bg, #F9F9F7);
}

.account-auth-header {
    flex-shrink: 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--border, #E4E2DC);
}

.account-auth-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 56px;
    padding: 10px clamp(20px, 4vw, 48px);
}

.account-auth-header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-family: var(--font-heading, Manrope, system-ui, sans-serif);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--ink, #2C3236);
    text-decoration: none;
}

.account-auth-header__logo .logo-mark {
    width: 32px;
    height: 32px;
    background: var(--primary, #4A8268);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 800;
    flex-shrink: 0;
}

.account-auth-header__logo > span:not(.logo-mark) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-auth-header__link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--border, #E4E2DC);
    background: #fff;
    color: var(--ink, #2C3236);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.account-auth-header__link:hover {
    border-color: var(--primary, #4A8268);
    color: var(--primary, #4A8268);
    background: rgba(74, 130, 104, 0.06);
}

.account-logo .logo-image {
    height: 34px;
    max-width: 160px;
}

.account-impersonation-banner {
    position: sticky;
    top: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 20px;
    background: #fff8e6;
    border-bottom: 1px solid #f0d98c;
    color: #6b4f1d;
    font-size: 0.875rem;
}

.account-impersonation-banner strong {
    font-weight: 700;
}

.account-impersonation-banner__form {
    margin: 0;
}

.account-impersonation-banner__btn {
    border: 1px solid #d4a72c;
    background: #fff;
    color: #6b4f1d;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.account-impersonation-banner__btn:hover {
    background: #fff3cd;
}

.account-nav__signout-form {
    margin: 0;
    width: 100%;
}

.account-nav__link--button {
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.account-wrap--impersonating .account-top-shell {
    top: var(--account-impersonation-h, 44px);
}

@media (min-width: 769px) {
    .account-wrap--impersonating .account-header-bar {
        top: var(--account-impersonation-h, 44px);
    }
}

.account-main {
    flex: 1;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(20px, 3vw, 32px) clamp(16px, 3vw, 28px) 80px;
    overflow-x: clip;
    min-width: 0;
}

.account-wrap--auth .account-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: 0;
}

.account-alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.account-wrap--auth .account-alert {
    position: fixed;
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 48px);
    max-width: 480px;
    box-shadow: 0 8px 32px rgba(44, 50, 54, 0.12);
}

.account-alert--success {
    background: #e8f5ee;
    color: #2d6a4f;
    border: 1px solid #b8dfc8;
}

.account-alert--error {
    background: #fdecea;
    color: #922b21;
    border: 1px solid #f5c6cb;
}

/* ─── Auth split layout ─── */
.account-auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    flex: 1;
    width: 100%;
    min-height: 0;
}

.account-wrap--auth .account-footer {
    flex-shrink: 0;
    width: 100%;
}

.account-auth__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 56px);
    background:
        linear-gradient(180deg, var(--hero-gradient-start, #fff) 0%, var(--bg-alt, #F2F1EC) 100%);
    border-right: 1px solid var(--border, #E4E2DC);
    position: relative;
    overflow: hidden;
}

.account-auth__brand::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -8%;
    width: min(480px, 70vw);
    height: min(480px, 70vw);
    background: radial-gradient(circle, rgba(var(--primary-rgb, 74, 130, 104), 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.account-auth__brand::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -6%;
    width: min(360px, 55vw);
    height: min(360px, 55vw);
    background: radial-gradient(circle, rgba(var(--accent-rgb, 230, 162, 60), 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.account-auth__brand-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(520px, 100%);
}

.account-auth__brand-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary, #4A8268);
    margin: 0 0 14px;
}

.account-auth__brand-title {
    font-family: var(--font-heading, Manrope, system-ui, sans-serif);
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--heading, #2C3236);
    margin: 0 0 12px;
}

.account-auth__brand-text {
    color: var(--text, #4A5259);
    font-size: 1.0625rem;
    line-height: 1.65;
    margin: 0 0 28px;
    max-width: 36ch;
}

.account-auth__perks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-auth__perk {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--card, #fff);
    border: 1px solid var(--border, #E4E2DC);
    border-radius: var(--radius-sm, 12px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(44, 50, 54, 0.05));
    transition: border-color var(--transition, 0.25s ease), box-shadow var(--transition, 0.25s ease);
}

.account-auth__perk:hover {
    border-color: var(--hover-border, #D4D9DE);
    box-shadow: var(--shadow-md, 0 4px 24px rgba(44, 50, 54, 0.07));
}

.account-auth__perk-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(var(--primary-rgb, 74, 130, 104), 0.08);
    color: var(--primary, #4A8268);
}

.account-auth__perk-icon i,
.account-auth__perk-icon svg {
    width: 20px;
    height: 20px;
}

.account-auth__perk-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.account-auth__perk-copy strong {
    font-family: var(--font-heading, Manrope, system-ui, sans-serif);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--heading, #2C3236);
    line-height: 1.35;
}

.account-auth__perk-copy span {
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-light, #8A9399);
}

.account-auth__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 48px);
    background: var(--bg, #F9F9F7);
}

.account-auth__card {
    width: 100%;
    max-width: min(440px, 100%);
    background: var(--card, #fff);
    border: 1px solid var(--border, #E4E2DC);
    border-radius: var(--radius-sm, 16px);
    padding: 28px 28px 24px;
    box-shadow: var(--shadow-md, 0 4px 24px rgba(44, 50, 54, 0.07));
}

.account-auth__eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary, #4A8268);
    margin: 0 0 8px;
}

.account-auth__card h1 {
    font-family: var(--font-heading, Manrope, system-ui, sans-serif);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--heading, #2C3236);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.account-auth__card .subtitle {
    color: var(--text, #4A5259);
    font-size: 0.9375rem;
    margin-bottom: 22px;
    line-height: 1.5;
}

.account-auth__footer {
    margin-top: 24px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--ink-muted, #5a6168);
}

.account-auth__footer a {
    color: var(--primary, #4A8268);
    font-weight: 600;
    text-decoration: none;
}

.account-auth__footer a:hover {
    text-decoration: underline;
}

.account-auth__forgot {
    margin-top: 12px;
    text-align: right;
    font-size: 0.875rem;
}

.account-auth__forgot a {
    color: var(--primary, #4A8268);
    text-decoration: none;
    font-weight: 500;
}

.account-auth__forgot a:hover {
    text-decoration: underline;
}

.account-auth__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--ink-muted, #8A9399);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.account-auth__divider::before,
.account-auth__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border, #E4E2DC);
}

.account-auth__social-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border, #E4E2DC);
    width: 100%;
    max-width: 420px;
}

.account-auth__social-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border, #E4E2DC);
    background: #fff;
    color: var(--ink-muted, #5a6168);
    transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

.account-auth__social-row a:hover {
    border-color: var(--primary, #4A8268);
    color: var(--primary, #4A8268);
    background: rgba(74, 130, 104, 0.06);
    transform: translateY(-2px);
}

.account-auth__social-row svg {
    width: 20px;
    height: 20px;
}

/* Google OAuth button */
.account-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid var(--border, #E4E2DC);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink, #2C3236);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.account-btn-google:hover {
    border-color: #c4c8cc;
    box-shadow: 0 2px 8px rgba(44, 50, 54, 0.08);
    background: #fafafa;
}

.account-btn-google svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.account-auth__card .account-form .form-group {
    margin-bottom: 14px;
}

.account-auth__card .account-form input {
    padding: 10px 12px;
}

.account-auth__card .account-form__submit {
    margin-top: 4px;
}

/* ─── Forms ─── */
.account-form .form-group {
    margin-bottom: 18px;
}

.account-form label:not(.req-checkbox):not(.file-field__dropzone) {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ink, #2C3236);
}

.account-form input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
.account-form textarea,
.account-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border, #E4E2DC);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.account-form input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):focus,
.account-form textarea:focus,
.account-form select:focus {
    outline: none;
    border-color: var(--primary, #4A8268);
    box-shadow: 0 0 0 3px rgba(74, 130, 104, 0.12);
}

.account-form button[type="submit"],
.account-form__submit,
.account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--primary, #4A8268);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s;
}

.account-form button[type="submit"],
.account-form__submit {
    width: 100%;
    margin-top: 4px;
}

.account-form__optional {
    font-weight: 400;
    color: var(--ink-muted, #5a6168);
}

.account-form button[type="submit"]:hover,
.account-form__submit:hover,
.account-btn:hover {
    background: var(--primary-hover, #3D715A);
}

.account-form button[type="submit"]:active,
.account-form__submit:active,
.account-btn:active {
    transform: scale(0.98);
}

.account-btn--secondary {
    background: transparent;
    color: var(--ink, #2C3236);
    border: 1px solid var(--border, #E4E2DC);
}

.account-btn--secondary:hover {
    background: var(--bg-alt, #F2F1EC);
    border-color: #ccc;
}

.account-btn--danger {
    background: #c0392b;
}

.account-btn--danger:hover {
    background: #a93226;
}

.account-btn--sm {
    padding: 8px 14px;
    font-size: 0.85rem;
}

.recaptcha-wrap {
    margin-bottom: 16px;
}

/* ─── Dashboard app shell ─── */
.account-dashboard {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.account-panel + .account-panel {
    margin-top: 0;
}

.account-card {
    background: #fff;
    border: 1px solid var(--border, #E4E2DC);
    border-radius: 20px;
    padding: 32px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.account-card h1 {
    font-family: Manrope, system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.account-card .subtitle {
    color: var(--ink-muted, #5a6168);
    margin-bottom: 24px;
}

/* Dashboard hero */
.account-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(24px, 4vw, 32px);
    background: linear-gradient(135deg, #fff 0%, #F2F1EC 100%);
    border: 1px solid var(--border, #E4E2DC);
    border-radius: 20px;
    flex-wrap: wrap;
}

.account-hero__user {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    flex: 1 1 280px;
}

.account-hero__text {
    min-width: 0;
}

.account-hero__avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--primary, #4A8268);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Manrope, system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    overflow: hidden;
    flex-shrink: 0;
}

.account-hero__avatar-letter {
    line-height: 1;
    user-select: none;
}

.account-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-hero__greeting {
    font-family: Manrope, system-ui, sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.2;
}

.account-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    color: var(--ink-muted, #5a6168);
    font-size: 0.9rem;
    line-height: 1.45;
}

.account-hero__email {
    overflow-wrap: anywhere;
}

.account-hero__since::before {
    content: '·';
    margin-right: 10px;
    color: var(--border, #E4E2DC);
}

.account-hero__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1 1 220px;
    justify-content: flex-end;
}

/* Stat cards */
.account-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.account-stat__body {
    min-width: 0;
}

.account-stat {
    background: #fff;
    border: 1px solid var(--border, #E4E2DC);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.account-stat:hover {
    border-color: rgba(74, 130, 104, 0.35);
    box-shadow: 0 4px 16px rgba(44, 50, 54, 0.06);
}

.account-stat__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-stat__icon--orders {
    background: rgba(74, 130, 104, 0.12);
    color: var(--primary, #4A8268);
}

.account-stat__icon--messages {
    background: rgba(230, 162, 60, 0.15);
    color: #C4841A;
}

.account-stat__icon--spent {
    background: rgba(44, 50, 54, 0.08);
    color: var(--ink, #2C3236);
}

.account-stat__icon--invoices {
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}

.account-stat__icon svg {
    width: 22px;
    height: 22px;
}

.account-stat__label {
    font-size: 0.8rem;
    color: var(--ink-muted, #8A9399);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

.account-stat__value {
    font-family: Manrope, system-ui, sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ink, #2C3236);
}

.account-stat__value--money {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    line-height: 1.15;
}

.account-stat__hint {
    margin-top: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9a6b1a;
}

/* Quick actions */
.account-quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.account-quick__card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border, #E4E2DC);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.account-quick__card:hover {
    border-color: var(--primary, #4A8268);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 50, 54, 0.08);
}

.account-quick__card i,
.account-quick__card svg {
    width: 24px;
    height: 24px;
    color: var(--primary, #4A8268);
}

.account-quick__card strong {
    font-family: Manrope, system-ui, sans-serif;
    font-size: 0.95rem;
}

.account-quick__card span {
    font-size: 0.85rem;
    color: var(--ink-muted, #8A9399);
    line-height: 1.4;
}

/* Order list cards */
.account-section-title {
    font-family: Manrope, system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.account-section-title a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary, #4A8268);
    text-decoration: none;
}

.account-order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--border, #E4E2DC);
    border-radius: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    flex-wrap: wrap;
    text-decoration: none;
    color: inherit;
}

.account-order-item:hover {
    border-color: rgba(74, 130, 104, 0.4);
    box-shadow: 0 4px 16px rgba(44, 50, 54, 0.05);
}

.account-order-item__main strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
    overflow-wrap: anywhere;
}

.account-order-item__main span {
    display: block;
    font-size: 0.85rem;
    color: var(--ink-muted, #8A9399);
    line-height: 1.45;
}

.account-order-item__req {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem !important;
    font-weight: 600;
    color: var(--primary, #4A8268) !important;
}

.account-order-item__meta {
    text-align: right;
}

.account-order-item__amount {
    font-family: Manrope, system-ui, sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.account-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    margin-top: 6px;
}

.account-badge--paid {
    background: rgba(74, 155, 110, 0.15);
    color: #2d6a4f;
}

.account-badge--pending {
    background: rgba(230, 162, 60, 0.15);
    color: #9a6b1a;
}

.account-badge--due {
    background: rgba(245, 158, 11, 0.15);
    color: #B45309;
}

.account-badge--overdue {
    background: rgba(239, 68, 68, 0.12);
    color: #B91C1C;
}

.account-badge--partial {
    background: rgba(245, 158, 11, 0.15);
    color: #B45309;
}

.account-badge--failed,
.account-badge--cancelled {
    background: rgba(192, 57, 43, 0.12);
    color: #922b21;
}

.account-invoice-item__action {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary, #4A8268);
}

.account-invoice-item__balance {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.order-milestones-card {
    margin-bottom: 20px;
}

.order-milestones-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.order-milestones-list__item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid var(--border, #e8e8e4);
    border-radius: 12px;
}

.order-milestones-list__item.is-next {
    border-color: rgba(74, 130, 104, 0.35);
    background: rgba(74, 130, 104, 0.05);
}

.order-milestones-list__main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-milestones-list__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.order-milestones-list__date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.order-milestones-card__next {
    margin-top: 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.order-milestones-card__next--complete {
    color: #2d6a4f;
}

.account-empty--compact {
    padding: 24px;
}

.account-empty__action {
    margin-top: 12px;
}

.account-empty--compact p {
    margin-bottom: 0;
}

.account-empty {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border: 1px dashed var(--border, #E4E2DC);
    border-radius: 16px;
}

.account-empty i,
.account-empty svg {
    width: 48px;
    height: 48px;
    color: var(--ink-muted, #8A9399);
    margin-bottom: 16px;
}

.account-empty p {
    color: var(--ink-muted, #5a6168);
    margin-bottom: 20px;
}

.account-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.account-table th,
.account-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border, #E4E2DC);
}

.account-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-muted, #8A9399);
    font-weight: 600;
}

.account-msg {
    padding: 14px 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    border-left: 3px solid var(--primary, #4A8268);
    background: var(--bg-alt, #F2F1EC);
    font-size: 0.9rem;
}

.account-msg--admin {
    border-left-color: var(--accent, #E6A23C);
}

.account-help-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(74, 130, 104, 0.08);
    border: 1px solid rgba(74, 130, 104, 0.2);
    border-radius: 16px;
    flex-wrap: wrap;
}

.account-help-strip p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ink, #2C3236);
}

.account-help-strip p strong {
    display: block;
    margin-bottom: 2px;
}

.account-help-strip p strong {
    display: block;
    margin-bottom: 2px;
}

/* ─── Dashboard v2 (bento layout) ─── */
.dash {
    gap: 20px;
}

.dash-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: clamp(16px, 3vw, 24px);
    background: #fff;
    border: 1px solid var(--border, #E4E2DC);
    border-radius: 16px;
}

.dash-hero__profile {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1 1 220px;
}

.dash-hero__avatar {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background-color: var(--primary, #4A8268);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Manrope, system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 800;
    overflow: hidden;
    flex-shrink: 0;
}

.dash-hero__avatar-letter {
    line-height: 1;
    user-select: none;
}

.dash-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-hero__copy {
    min-width: 0;
    flex: 1;
}

.dash-hero__eyebrow {
    margin: 0 0 2px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary, #4A8268);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.dash-hero__title {
    margin: 0 0 4px;
    font-family: Manrope, system-ui, sans-serif;
    font-size: clamp(1.2rem, 2.8vw, 1.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.dash-hero__meta {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.8125rem;
    color: var(--ink-muted, #5a6168);
    line-height: 1.4;
}

.dash-hero__email,
.dash-hero__since {
    overflow-wrap: anywhere;
}

.dash-hero__since {
    color: var(--ink-muted, #8A9399);
    font-size: 0.75rem;
}

.dash-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    flex: 0 1 auto;
}

.dash-hero__btn {
    white-space: nowrap;
}

.dash-attention {
    background: #fff;
    border: 1px solid rgba(196, 132, 26, 0.25);
    border-radius: 18px;
    overflow: hidden;
}

.dash-attention__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(230, 162, 60, 0.08);
    border-bottom: 1px solid rgba(196, 132, 26, 0.15);
}

.dash-attention__head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: Manrope, system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
}

.dash-attention__head svg {
    width: 16px;
    height: 16px;
}

.dash-attention__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(196, 132, 26, 0.15);
    color: #9a6b1a;
    font-size: 0.75rem;
    font-weight: 700;
}

.dash-attention__list {
    display: flex;
    flex-direction: column;
}

.dash-attention__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border, #E4E2DC);
    transition: background 0.15s ease;
}

.dash-attention__item:last-child {
    border-bottom: none;
}

.dash-attention__item:hover {
    background: rgba(74, 130, 104, 0.04);
}

.dash-attention__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(74, 130, 104, 0.1);
    color: var(--primary, #4A8268);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-attention__icon svg {
    width: 18px;
    height: 18px;
}

.dash-attention__body {
    flex: 1;
    min-width: 0;
}

.dash-attention__body strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.dash-attention__body span {
    display: block;
    font-size: 0.8125rem;
    color: var(--ink-muted, #8A9399);
}

.dash-attention__cta {
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary, #4A8268);
    white-space: nowrap;
}

.dash-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.dash-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border, #E4E2DC);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

a.dash-metric:hover {
    border-color: rgba(74, 130, 104, 0.35);
    box-shadow: 0 6px 20px rgba(44, 50, 54, 0.06);
    transform: translateY(-1px);
}

.dash-metric--static {
    cursor: default;
}

.dash-metric__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-muted, #8A9399);
}

.dash-metric__value {
    font-family: Manrope, system-ui, sans-serif;
    font-size: 1.625rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.dash-metric__value--money {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
}

.dash-metric__value--money-multi {
    font-size: clamp(0.875rem, 1.8vw, 1.05rem);
    line-height: 1.3;
}

.dash-metric__hint {
    font-size: 0.75rem;
    color: var(--ink-muted, #8A9399);
}

.dash-metric__hint--alert {
    color: #9a6b1a;
    font-weight: 600;
}

.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
    gap: 20px;
    align-items: start;
}

.dash-main,
.dash-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.dash-shortcuts {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.dash-shortcuts::-webkit-scrollbar {
    display: none;
}

.dash-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--border, #E4E2DC);
    border-radius: 999px;
    text-decoration: none;
    color: var(--ink, #2C3236);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dash-shortcut:hover {
    border-color: var(--primary, #4A8268);
    background: rgba(74, 130, 104, 0.05);
}

.dash-shortcut svg {
    width: 16px;
    height: 16px;
    color: var(--primary, #4A8268);
}

.dash-panel {
    background: #fff;
    border: 1px solid var(--border, #E4E2DC);
    border-radius: 12px;
    padding: clamp(18px, 3vw, 24px);
}

.dash-panel--compact {
    padding: clamp(16px, 2.5vw, 20px);
}

.dash-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.dash-panel__head h2 {
    margin: 0 0 4px;
    font-family: Manrope, system-ui, sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
}

.dash-panel__head p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--ink-muted, #8A9399);
    line-height: 1.45;
}

.dash-panel__link {
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary, #4A8268);
    text-decoration: none;
    white-space: nowrap;
}

.dash-panel__link:hover {
    text-decoration: underline;
}

.dash-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-feed__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border, #E4E2DC);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

a.dash-feed__item:hover {
    border-color: rgba(74, 130, 104, 0.35);
    background: rgba(74, 130, 104, 0.03);
}

.dash-feed__item--static {
    grid-template-columns: auto 1fr auto;
}

.dash-feed--compact .dash-feed__item {
    padding: 12px;
}

.dash-feed__icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-feed__icon--order {
    background: rgba(74, 130, 104, 0.1);
    color: var(--primary, #4A8268);
}

.dash-feed__icon--invoice {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}

.dash-feed__icon svg {
    width: 18px;
    height: 18px;
}

.dash-feed__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.dash-feed__title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
}

.dash-feed__title--link {
    color: inherit;
    text-decoration: none;
}

.dash-feed__title--link:hover {
    color: var(--primary, #4A8268);
}

.dash-feed__sub {
    font-size: 0.8125rem;
    color: var(--ink-muted, #8A9399);
    line-height: 1.4;
}

.dash-feed__tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(44, 50, 54, 0.06);
    color: var(--ink-muted, #5a6168);
}

.dash-feed__tag--action {
    background: rgba(230, 162, 60, 0.12);
    color: #9a6b1a;
}

.dash-feed__aside {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.dash-feed__amount {
    font-family: Manrope, system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.dash-feed__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.dash-feed__action {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary, #4A8268);
    text-decoration: none;
    white-space: nowrap;
}

.dash-feed__action--primary {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--primary, #4A8268);
    color: #fff;
}

.dash-feed__action--primary:hover {
    background: var(--primary-hover, #3D715A);
}

.dash-empty {
    text-align: center;
    padding: 32px 20px;
    border: 1px dashed var(--border, #E4E2DC);
    border-radius: 14px;
    background: rgba(249, 249, 247, 0.6);
}

.dash-empty--compact {
    padding: 20px 16px;
    text-align: left;
}

.dash-empty__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: rgba(74, 130, 104, 0.1);
    color: var(--primary, #4A8268);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-empty__icon svg {
    width: 22px;
    height: 22px;
}

.dash-empty h3 {
    margin: 0 0 6px;
    font-family: Manrope, system-ui, sans-serif;
    font-size: 1rem;
}

.dash-empty p {
    margin: 0 0 16px;
    font-size: 0.875rem;
    color: var(--ink-muted, #8A9399);
    line-height: 1.5;
}

.dash-empty--compact p {
    margin-bottom: 8px;
}

.dash-empty__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.dash-card {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border, #E4E2DC);
    border-radius: 16px;
}

.dash-card--highlight {
    background: rgba(74, 130, 104, 0.06);
    border-color: rgba(74, 130, 104, 0.2);
}

.dash-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-family: Manrope, system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
}

.dash-card__title svg {
    width: 16px;
    height: 16px;
    color: var(--primary, #4A8268);
}

.dash-card__text {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    color: var(--ink-muted, #8A9399);
    line-height: 1.5;
}

.dash-card__links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-card__links a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary, #4A8268);
    text-decoration: none;
}

.dash-card__links a:hover {
    text-decoration: underline;
}

.dash-card__links a:hover {
    text-decoration: underline;
}

.account-page {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2.5vw, 24px);
}

.account-page__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border, #E4E2DC);
}

.account-page__head h1 {
    margin: 0 0 6px;
    font-family: Manrope, system-ui, sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.account-page__sub {
    margin: 0;
    max-width: 52ch;
    font-size: 0.9rem;
    color: var(--ink-muted, #8A9399);
    line-height: 1.5;
}

.dash-panel__head--compact {
    margin-bottom: 12px;
}

.dash-panel--list {
    padding: clamp(16px, 2.5vw, 22px);
}

.dash-panel__foot {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border, #E4E2DC);
}

.account-list-meta {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--ink-muted, #8A9399);
}

.account-main .pagination {
    margin: 0;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.account-main .pagination__pages {
    flex-wrap: wrap;
}

.account-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.9fr);
    gap: 16px;
    align-items: start;
}

.account-settings-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.account-settings-panel--profile .account-form {
    margin-top: 4px;
}

.account-form__hint {
    margin: 6px 0 0;
    font-size: 0.8125rem;
    color: var(--ink-muted, #8A9399);
    line-height: 1.45;
}

.account-form input:disabled {
    background: #f6f5f2;
    color: var(--ink-muted, #8A9399);
    cursor: not-allowed;
}

.dash-metrics--compact {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.dash-metric__value--alert {
    color: #9a6b1a;
}

.dash-feed__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.dash-feed__item--order {
    align-items: flex-start;
}

.dash-feed__actions--row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

@media (max-width: 1024px) {
    .account-stats,
    .dash-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .account-auth {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .account-auth__brand {
        display: none;
    }

    .account-auth-header__inner {
        min-height: 52px;
        padding: 8px clamp(16px, 4vw, 48px);
    }

    .account-auth-header__logo {
        gap: 8px;
        font-size: 0.875rem;
    }

    .account-auth-header__logo .logo-mark {
        width: 28px;
        height: 28px;
        font-size: 0.625rem;
        border-radius: 7px;
    }

    .account-auth-header__link {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .account-wrap--auth .account-alert {
        top: 58px;
        width: calc(100% - 32px);
    }

    .account-auth__panel {
        padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 32px);
        min-height: 0;
        align-items: stretch;
    }

    .account-auth__card {
        padding: 24px 20px 20px;
        border-radius: 16px;
        max-width: none;
    }

    .account-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .account-hero__actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .dash-hero {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .dash-hero__cta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .dash-hero__btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .account-stats,
    .account-quick,
    .dash-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .dash-hero {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
    }

    .dash-hero__profile {
        gap: 12px;
    }

    .dash-hero__avatar {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .dash-hero__cta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .dash-hero__btn {
        width: 100%;
        justify-content: center;
    }

    .dash-attention__item {
        flex-wrap: wrap;
    }

    .dash-attention__cta {
        width: 100%;
        padding-left: 50px;
    }

    .dash-feed__item,
    .dash-feed__item--static {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .dash-feed__aside,
    .dash-feed__actions {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding-left: 52px;
    }

    .dash-feed__actions--row {
        padding-left: 52px;
        justify-content: flex-start;
    }

    .account-page__head {
        flex-direction: column;
        align-items: stretch;
    }

    .account-page__head .account-btn {
        width: 100%;
        justify-content: center;
    }

    .dash-metric__value {
        font-size: 1.35rem;
    }

    .account-hero__actions {
        flex-direction: column;
    }

    .account-hero__actions .account-btn {
        width: 100%;
        justify-content: center;
    }

    .account-hero__since::before {
        display: none;
    }

    .account-hero__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .account-help-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-help-strip .account-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 769px) {
    .account-header-bar {
        padding: 0 24px;
    }

    .account-header-bar__inner {
        display: flex;
        align-items: center;
        gap: 24px;
        max-width: 1080px;
        width: 100%;
        margin: 0 auto;
        padding: 14px 0;
        min-width: 0;
    }

    .account-top-shell {
        flex: 0 0 auto;
        min-width: 0;
    }

    .account-top__inner {
        padding: 0;
        max-width: none;
        justify-content: flex-start;
    }

    .account-nav:not(.account-nav--guest) {
        position: static;
        transform: none;
        visibility: visible;
        pointer-events: auto;
        width: auto;
        height: auto;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        overflow: visible;
        flex: 1 1 auto;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 4px;
        min-width: 0;
    }

    .account-nav__links {
        flex: 1 1 auto;
        justify-content: flex-end;
    }

    .account-nav__footer {
        margin-left: 6px;
        padding-left: 16px;
        border-left: 1px solid var(--border, #E4E2DC);
    }

    .account-nav__link {
        padding: 8px 12px;
        font-size: 0.8125rem;
    }
}

@media (max-width: 768px) {
    .account-header-bar {
        display: contents;
    }

    .account-header-bar__inner {
        display: contents;
    }

    .account-top-shell {
        position: sticky;
        top: 0;
        z-index: 80;
        background: #fff;
        border-bottom: 1px solid var(--border, #E4E2DC);
    }

    .account-top__section {
        display: block;
    }

    .account-nav-toggle {
        display: flex;
    }

    .account-nav:not(.account-nav--guest) {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        width: min(340px, 100vw);
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        background: #fff;
        border-left: 1px solid var(--border, #E4E2DC);
        box-shadow: -12px 0 40px rgba(44, 50, 54, 0.16);
        transform: translate3d(100%, 0, 0);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.28s ease, visibility 0.28s;
        overflow: hidden;
        overscroll-behavior: contain;
    }

    .account-nav.is-open {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
    }

    .account-nav__drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding:
            max(16px, env(safe-area-inset-top))
            20px
            14px;
        border-bottom: 1px solid var(--border, #E4E2DC);
        background: #fff;
        flex-shrink: 0;
    }

    .account-nav__drawer-title {
        margin: 0;
        font-family: Manrope, system-ui, sans-serif;
        font-size: 0.9375rem;
        font-weight: 800;
        color: var(--ink, #2C3236);
    }

    .account-nav__drawer-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid var(--border, #E4E2DC);
        border-radius: 12px;
        background: #fff;
        color: var(--ink, #2C3236);
        cursor: pointer;
        flex-shrink: 0;
    }

    .account-nav__drawer-close svg {
        width: 18px;
        height: 18px;
    }

    .account-nav__user {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 18px 20px;
        border-bottom: 1px solid var(--border, #E4E2DC);
        background: var(--bg-alt, #F2F1EC);
        flex-shrink: 0;
    }

    .account-nav__user-avatar {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        background: var(--primary, #4A8268);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: Manrope, system-ui, sans-serif;
        font-size: 1.125rem;
        font-weight: 800;
        overflow: hidden;
        flex-shrink: 0;
    }

    .account-nav__user-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .account-nav__user-text {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .account-nav__user-text strong {
        font-family: Manrope, system-ui, sans-serif;
        font-size: 0.9375rem;
        font-weight: 700;
        color: var(--ink, #2C3236);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .account-nav__user-text span {
        font-size: 0.8125rem;
        color: var(--ink-muted, #8A9399);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .account-nav__links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        flex: 1 1 auto;
        min-height: 0;
        padding: 16px 16px 8px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .account-nav__utility {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid var(--border, #E4E2DC);
    }

    .account-nav__link {
        width: 100%;
        border-radius: 12px;
        padding: 13px 14px;
        font-size: 0.9375rem;
        white-space: normal;
    }

    .account-nav__link--utility {
        color: var(--ink-muted, #5a6168);
    }

    .account-nav__footer {
        flex-shrink: 0;
        margin-top: auto;
        padding:
            12px 16px
            max(20px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--border, #E4E2DC);
        background: #fff;
    }

    .account-nav__link--signout {
        margin-top: 0;
        border-top: 0;
        border-radius: 12px;
        padding: 13px 14px;
        color: #922b21;
        background: rgba(192, 57, 43, 0.06);
    }

    .account-nav__link--signout:hover {
        background: rgba(192, 57, 43, 0.1);
        color: #922b21;
    }

    .account-nav--guest {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 600px) {
    .account-top__inner {
        padding: 14px 16px;
    }

    .account-main {
        padding: 20px 16px 48px;
    }

    .account-dashboard {
        gap: 20px;
    }

    .account-hero {
        padding: 20px 18px;
        border-radius: 16px;
    }

    .account-hero__user {
        gap: 14px;
    }

    .account-hero__avatar {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        font-size: 1.25rem;
    }

    .account-stat {
        padding: 18px 16px;
    }

    .account-stat__value {
        font-size: 1.5rem;
    }

    .account-quick__card {
        padding: 18px 16px;
    }

    .account-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .account-card h1 {
        font-size: 1.35rem;
        overflow-wrap: anywhere;
    }

    .account-impersonation-banner {
        justify-content: flex-start;
        padding:
            max(10px, env(safe-area-inset-top))
            max(16px, env(safe-area-inset-right))
            10px
            max(16px, env(safe-area-inset-left));
    }

    .account-order-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-order-item__meta {
        text-align: left;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

/* Requirements form & order detail */
.account-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.account-requirements-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px;
    margin: 0;
    width: 100%;
}

.account-requirements-banner p {
    margin: 4px 0 0;
    font-size: 0.9rem;
}

.account-requirements-intro {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: rgba(74, 130, 104, 0.08);
    border: 1px solid rgba(74, 130, 104, 0.2);
    border-radius: 12px;
    font-size: 0.9375rem;
    color: var(--ink-muted, #5a6168);
}

.order-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.order-tabs__item {
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink-muted, #5a6168);
    background: #fff;
    border: 1px solid var(--border, #E4E2DC);
}

.order-tabs__item.is-active,
.order-tabs__item:hover {
    color: var(--primary, #4A8268);
    border-color: rgba(74, 130, 104, 0.35);
    background: rgba(74, 130, 104, 0.06);
}

.order-panel {
    margin-bottom: 20px;
    scroll-margin-top: 24px;
}

.order-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.order-panel__head h2,
.order-panel h2 {
    font-size: 1.125rem;
    margin: 0 0 12px;
}

.order-panel__meta {
    font-size: 0.8125rem;
    color: var(--ink-muted, #8A9399);
}

.order-panel__desc {
    color: var(--ink-muted, #5a6168);
    margin: -8px 0 16px;
    font-size: 0.9rem;
}

.order-meta {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.order-meta div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    font-size: 0.9375rem;
}

.order-meta dt {
    color: var(--ink-muted, #8A9399);
    font-weight: 600;
}

.order-meta dd {
    margin: 0;
}

.order-empty {
    color: var(--ink-muted, #8A9399);
    margin-bottom: 16px;
}

.req-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--border, #E4E2DC);
}

.req-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.req-section__header h3 {
    font-size: 1rem;
    margin: 0 0 6px;
}

.req-section__header p {
    margin: 0 0 16px;
    font-size: 0.875rem;
    color: var(--ink-muted, #8A9399);
}

.req-section__fields {
    display: grid;
    gap: 16px;
}

.req-help {
    font-size: 0.8125rem;
    color: var(--ink-muted, #8A9399);
    margin: -4px 0 8px;
}

.req-readonly {
    margin: 0;
    line-height: 1.65;
    color: var(--ink, #2C3236);
}

.req-empty {
    color: var(--ink-muted, #8A9399);
    margin: 0;
}

.req-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--ink, #2C3236);
}

.req-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin: 0.15em 0 0;
    padding: 0;
    flex-shrink: 0;
    border-radius: 4px;
    accent-color: var(--primary, #4A8268);
}

.req-help--checkbox {
    margin: 8px 0 0 1.625rem;
}

.req-file-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.req-file-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary, #4A8268);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
}

.req-file-list a svg,
.req-file-list a .lucide {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
}

.req-file-list span {
    font-size: 0.75rem;
    color: var(--ink-muted, #8A9399);
}

.req-hosting-promo {
    margin-top: 8px;
}

.req-hosting-promo__inner {
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--accent, #4A8268) 35%, var(--border, #E4E2DC));
    background: color-mix(in srgb, var(--accent, #4A8268) 6%, var(--surface, #fff));
}

.req-hosting-promo__head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.req-hosting-promo__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--accent, #4A8268) 14%, var(--surface, #fff));
    color: var(--accent, #4A8268);
    flex-shrink: 0;
    line-height: 0;
}

.req-hosting-promo__icon svg,
.req-hosting-promo__icon .lucide {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.req-hosting-promo__title {
    margin: 0 0 6px;
    font-size: 0.9375rem;
}

.req-hosting-promo__lead {
    margin: 0;
    font-size: 0.875rem;
    color: var(--ink-muted, #8A9399);
    line-height: 1.55;
}

.req-hosting-promo__block {
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--border, #E4E2DC);
}

.req-hosting-promo__block h5 {
    margin: 0 0 6px;
    font-size: 0.875rem;
}

.req-hosting-promo__block > p {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    color: var(--ink-muted, #8A9399);
}

.req-hosting-promo__plans {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.req-hosting-promo__plan {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border, #E4E2DC);
    background: var(--surface, #fff);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.req-hosting-promo__plan:hover {
    border-color: var(--accent, #4A8268);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.req-hosting-promo__plan strong {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 2px;
}

.req-hosting-promo__plan span {
    display: block;
    font-size: 0.8125rem;
    color: var(--ink-muted, #8A9399);
}

.req-hosting-promo__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent, #4A8268);
    text-decoration: none;
}

.req-hosting-promo__link:hover {
    text-decoration: underline;
}

.req-hosting-promo__link svg,
.req-hosting-promo__link .lucide {
    display: block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.req-hosting-promo__footnote {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--border, #E4E2DC);
    font-size: 0.8125rem;
    color: var(--ink-muted, #8A9399);
    line-height: 1.55;
}

.req-hosting-promo__footnote a {
    color: var(--accent, #4A8268);
}

.requirements-form__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border, #E4E2DC);
}

.account-msg-list {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.account-msg__meta {
    font-size: 0.8rem;
    color: var(--ink-muted, #8A9399);
    margin-bottom: 6px;
}

.account-msg__body {
    white-space: pre-wrap;
    margin: 0;
}

.order-message-form {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border, #E4E2DC);
}

.account-alert--warning {
    background: rgba(230, 162, 60, 0.12);
    border-color: rgba(230, 162, 60, 0.35);
    color: #7a5412;
}

.account-footer {
    margin-top: auto;
    border-top: 1px solid var(--border, #E4E2DC);
    background: #fff;
}

.account-footer__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
}

.account-wrap--auth .account-footer__inner {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 20px clamp(20px, 4vw, 48px);
}

.account-footer__copy,
.account-footer__version {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--ink-muted, #5a6168);
}

.account-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.account-footer__links a {
    font-size: 0.8125rem;
    color: var(--ink-muted, #5a6168);
    text-decoration: none;
}

.account-footer__links a:hover {
    color: var(--primary, #4A8268);
}

@media (max-width: 600px) {
    .account-wrap--auth .account-footer__inner {
        padding: 16px clamp(16px, 4vw, 32px);
    }

    .account-footer__inner {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
    }
}

.account-invoice-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.contract-document h2 {
    margin: 0 0 12px;
    font-size: 1.25rem;
}

.contract-document__signed {
    display: inline-block;
    margin-bottom: 16px;
}

.contract-body {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    white-space: pre-wrap;
}

.contract-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.account-form__row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.inquiry-detail__status {
    margin-bottom: 24px;
}

.inquiry-detail__status p {
    margin: 12px 0 16px;
    color: var(--ink-muted, #5c656d);
    line-height: 1.6;
}

.inquiry-detail__linked {
    padding: 16px 0 24px;
    border-top: 1px solid var(--border, #e4e2dc);
    margin-bottom: 8px;
}

.inquiry-detail__linked h2 {
    font-size: 1rem;
    margin: 0 0 8px;
}

.inquiry-detail__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    margin: 0;
}

.inquiry-detail__meta--full {
    grid-column: 1 / -1;
}

.inquiry-detail__meta dt {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-muted, #5c656d);
    margin-bottom: 4px;
}

.inquiry-detail__meta dd {
    margin: 0;
    line-height: 1.6;
}

.contract-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.contract-sign-form {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border, #e4e2dc);
}

.account-settings-panel h2 {
    font-size: 1.05rem;
    margin: 0 0 8px;
}

.account-settings-panel p {
    margin: 0 0 16px;
    color: var(--ink-muted, #5c656d);
    line-height: 1.6;
}

.account-settings-panel--danger {
    border-color: rgba(192, 57, 43, 0.2);
    background: rgba(192, 57, 43, 0.04);
}

@media (max-width: 900px) {
    .account-settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .account-form__row-2,
    .inquiry-detail__meta {
        grid-template-columns: 1fr;
    }
}
