:root {
    --navy: #0a0f1e;
    --navy-mid: #111827;
    --navy-light: #1a2540;
    --gold: #c9a84c;
    --gold-light: #e8c97a;
    --gold-pale: #f5e9c8;
    --white: #ffffff;
    --off-white: #f8f7f4;
    --mist: #f0eeea;
    --slate-500: #8a91a0;
    --slate-700: #374151;
    --text-dark: #111827;
    --shadow-sm: 0 2px 12px rgba(10, 15, 30, 0.08);
    --shadow-md: 0 8px 32px rgba(10, 15, 30, 0.12);
    --shadow-lg: 0 20px 60px rgba(10, 15, 30, 0.18);
    --shadow-gold: 0 8px 32px rgba(201, 168, 76, 0.22);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --font-display: "Cormorant Garamond", serif;
    --font-body: "DM Sans", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--slate-700);
    overflow-x: hidden;
    background:
        radial-gradient(circle at top right, rgba(201, 168, 76, 0.08), transparent 24%),
        linear-gradient(180deg, #f9f7f2 0%, #f4f1eb 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    line-height: 1.2;
}

code {
    font-family: "Consolas", "Courier New", monospace;
}

.login-shell,
.public-shell {
    min-height: 100vh;
}

.login-shell {
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(10, 15, 30, 0.9), rgba(10, 15, 30, 0.74)),
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.18), transparent 28%),
        #0a0f1e;
}

.login-card,
.public-hero,
.public-section,
.hero-card,
.section-card,
.info-card,
.record-card,
.modal-content {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.login-card {
    width: min(100%, 460px);
    padding: 34px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(22px);
    color: rgba(255, 255, 255, 0.8);
}

.login-card__eyebrow,
.hero-card__eyebrow,
.modal__eyebrow,
.public-kicker,
.app-header__eyebrow {
    display: block;
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

.login-card__title,
.hero-card__title,
.page-title,
.modal__title,
.public-brand,
.public-section__heading h2,
.public-hero h1,
.section-card__title,
.info-card__value,
.app-header__brand,
.app-mobile-topbar__title {
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    color: var(--navy);
}

.login-card__title {
    color: var(--white);
    font-size: clamp(2.4rem, 7vw, 3.6rem);
    line-height: 0.95;
    text-align: center;
}

.login-card__subtitle,
.hero-card__intro,
.page-intro,
.section-card__subtitle,
.public-hero__copy p,
.public-feature-card p,
.public-timeline__item p {
    color: rgba(255, 255, 255, 0.68);
}

.login-card__subtitle {
    text-align: center;
    margin: 14px auto 0;
    max-width: 30ch;
}

.login-card .form-field span,
.login-card .login-credentials strong {
    color: var(--white);
}

.login-card .form-field input,
.login-card .form-field select,
.login-card .form-field textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--white);
}

.login-card .form-field input::placeholder,
.login-card .form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.34);
}

.login-card .btn-outline {
    color: var(--gold-light);
    border-color: rgba(201, 168, 76, 0.4);
}

.login-input-shell {
    position: relative;
}

.login-input-shell__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: rgba(201, 168, 76, 0.92);
    pointer-events: none;
}

.login-input-shell__icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.login-card .login-input-shell input {
    padding-left: 48px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
}

.login-submit-button {
    min-height: 56px;
    border-radius: 20px;
    font-size: 0.96rem;
    box-shadow: 0 18px 32px rgba(201, 168, 76, 0.2);
}

.login-submit-button__icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-submit-button__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.login-credentials {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px dashed rgba(201, 168, 76, 0.35);
    border-radius: var(--radius-md);
    background: rgba(201, 168, 76, 0.08);
    color: rgba(255, 255, 255, 0.74);
}

.login-card__footer {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.auth-shell {
    width: min(1160px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 24px;
    align-items: stretch;
}

.auth-shell--wide .login-card {
    width: 100%;
    margin: 0;
}

.auth-panel {
    min-height: 100%;
}

.auth-panel--feature {
    padding: 38px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(160deg, rgba(10, 15, 30, 0.96), rgba(17, 24, 39, 0.9)),
        radial-gradient(circle at top right, rgba(201, 168, 76, 0.2), transparent 28%);
    color: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-lg);
}

.auth-panel__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 0.92;
    color: var(--white);
}

.auth-panel__copy {
    margin: 18px 0 0;
    max-width: 540px;
    font-size: 1rem;
    line-height: 1.8;
}

.auth-feature-list {
    display: grid;
    gap: 16px;
    margin-top: 30px;
}

.auth-feature-item {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-feature-item strong {
    color: var(--gold-light);
    font-weight: 700;
}

.auth-feature-item span {
    color: rgba(255, 255, 255, 0.72);
}

.auth-panel--form {
    display: grid;
    align-content: start;
}

.auth-panel__form-title {
    font-size: clamp(2.1rem, 5vw, 3.2rem);
}

.auth-panel__links {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.public-shell {
    padding: 24px;
}

.public-header,
.public-footer,
.public-nav,
.public-hero,
.public-hero__actions,
.public-timeline,
.app-header,
.app-footer,
.page-header,
.filter-bar,
.section-card__header,
.hero-card,
.modal__header,
.modal__footer,
.record-card__title-row,
.record-card__meta,
.pagination-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.public-header,
.public-footer,
.public-section,
.public-hero {
    max-width: 1180px;
    margin: 0 auto;
}

.public-header,
.public-footer {
    padding: 8px 0 24px;
}

.public-brand {
    font-size: 1.8rem;
}

.public-nav {
    flex-wrap: wrap;
}

.public-main {
    display: grid;
    gap: 28px;
}

.public-hero,
.public-section {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(201, 168, 76, 0.16);
    padding: 32px;
}

.public-hero {
    background:
        linear-gradient(135deg, rgba(10, 15, 30, 0.92), rgba(17, 24, 39, 0.78)),
        radial-gradient(circle at top right, rgba(201, 168, 76, 0.18), transparent 26%);
    color: var(--white);
}

.public-hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    line-height: 0.95;
    color: var(--white);
}

.public-hero__copy,
.public-hero__panel {
    flex: 1;
}

.public-hero__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 24px;
}

.public-hero__panel,
.public-feature-grid {
    display: grid;
    gap: 18px;
}

.public-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
}

.public-stat-card,
.public-feature-card,
.public-timeline__item {
    border-radius: var(--radius-md);
    padding: 20px;
}

.public-stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.public-feature-card,
.public-timeline__item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 247, 244, 0.96));
    border: 1px solid rgba(201, 168, 76, 0.12);
}

.public-stat-card span,
.public-footer,
.public-feature-card p,
.public-timeline__item p {
    color: var(--slate-500);
}

.public-stat-card strong,
.public-feature-card h3,
.public-timeline__item strong,
.app-sidebar__brand-name {
    display: block;
    margin-top: 8px;
    color: var(--navy);
}

.public-section--accent {
    background:
        linear-gradient(180deg, rgba(201, 168, 76, 0.08), rgba(255, 255, 255, 0.92));
}

.app-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(201, 168, 76, 0.1), transparent 24%),
        linear-gradient(180deg, #f8f7f4 0%, #f2eee6 100%);
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 296px;
    padding: 24px 18px 18px;
    background:
        linear-gradient(180deg, rgba(10, 15, 30, 0.98), rgba(17, 24, 39, 0.98));
    color: rgba(255, 255, 255, 0.74);
    box-shadow: 24px 0 60px rgba(10, 15, 30, 0.22);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.app-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
}

.app-sidebar__brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.app-sidebar__brand-name {
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: var(--white);
}

.app-sidebar__brand-tag {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.app-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.app-sidebar__nav--stacked {
    gap: 18px;
}

.app-sidebar__group {
    display: grid;
    gap: 10px;
}

.app-sidebar__group-label {
    padding: 0 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.app-sidebar__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.72);
    border: 1px solid transparent;
    transition: 0.28s ease;
}

.app-sidebar__item-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-sidebar__item-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.app-sidebar__item-label {
    line-height: 1.2;
}

.app-sidebar__item:hover,
.app-sidebar__item--active {
    color: var(--white);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.18), rgba(255, 255, 255, 0.06));
    border-color: rgba(201, 168, 76, 0.24);
}

.app-sidebar__footer-nav {
    display: grid;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar__item--danger:hover,
.app-sidebar__item--danger:focus-visible {
    color: #ffd4d4;
    background: linear-gradient(135deg, rgba(184, 51, 51, 0.2), rgba(255, 255, 255, 0.05));
    border-color: rgba(184, 51, 51, 0.35);
}

.app-shell__sidebar-spacer {
    width: 296px;
    float: left;
    min-height: 1px;
}

.app-shell__page {
    margin-left: 296px;
    min-height: 100vh;
    padding: 24px;
}

.app-mobile-topbar {
    display: none;
}

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

.app-mobile-back,
.app-mobile-topbar__action {
    border: 0;
    background: rgba(10, 15, 30, 0.9);
    color: var(--white);
    border-radius: 999px;
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

.app-mobile-topbar__title {
    font-size: 1.5rem;
}

.app-header {
    margin-bottom: 24px;
    padding: 22px 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(201, 168, 76, 0.16);
    backdrop-filter: blur(18px);
}

.app-header__brand-wrap {
    display: grid;
    gap: 4px;
}

.app-header__brand {
    font-size: 2.15rem;
    line-height: 0.95;
}

.app-header__meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-content {
    display: grid;
    gap: 24px;
}

.app-shell--admin .app-header__brand,
.app-shell--admin .app-sidebar__brand-name,
.app-shell--admin .app-mobile-topbar__title {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.app-shell--admin .info-card__value {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.app-shell--admin .app-sidebar__item,
.app-shell--admin .app-header__eyebrow,
.app-shell--admin .app-sidebar__group-label {
    font-family: var(--font-body);
}

.page-header,
.hero-card,
.section-card,
.info-card {
    padding: 26px;
}

.hero-card,
.section-card,
.info-card,
.record-card,
.modal-content {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(201, 168, 76, 0.14);
    backdrop-filter: blur(16px);
}

.hero-card {
    background:
        linear-gradient(135deg, rgba(10, 15, 30, 0.95), rgba(26, 37, 64, 0.84)),
        radial-gradient(circle at top right, rgba(201, 168, 76, 0.18), transparent 30%);
    color: var(--white);
}

.hero-card__title,
.hero-card__intro,
.hero-card .btn-outline {
    color: var(--white);
}

.hero-card__actions {
    display: flex;
    gap: 12px;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: stretch;
}

.dashboard-hero__copy,
.dashboard-hero__panel,
.dashboard-hero__insight-list,
.dashboard-activity-list,
.dashboard-insights__grid {
    display: grid;
    gap: 16px;
}

.dashboard-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.dashboard-hero__panel {
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    align-content: start;
}

.dashboard-hero__insight {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-hero__insight span,
.dashboard-hero__insight small {
    display: block;
    color: rgba(255, 255, 255, 0.72);
}

.dashboard-hero__insight strong {
    display: block;
    margin: 8px 0 6px;
    font-size: 1.5rem;
    color: var(--white);
}

.dashboard-stat-card {
    display: grid;
    gap: 8px;
    padding: 20px 18px;
}

.dashboard-stat-card--link {
    color: inherit;
    transition: 0.22s ease;
}

.dashboard-stat-card--link:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(10, 15, 30, 0.1);
}

.dashboard-quick-actions__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-quick-action {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 244, 237, 0.98));
    min-width: 0;
}

.dashboard-quick-action strong {
    color: var(--navy);
    font-size: 1rem;
}

.dashboard-quick-action span {
    color: var(--slate-500);
    font-size: 0.88rem;
}

.dashboard-quick-action--primary {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(255, 255, 255, 0.98));
    border-color: rgba(201, 168, 76, 0.22);
}

.dashboard-mobile-card {
    min-width: 0;
}

.dashboard-stat-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.dashboard-stat-card .badge {
    padding: 5px 9px;
    font-size: 0.66rem;
}

.dashboard-stat-card__note {
    margin: 0;
    color: var(--slate-500);
    line-height: 1.45;
    font-size: 0.9rem;
}

.dashboard-insight-card {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 244, 237, 0.98));
    border: 1px solid rgba(201, 168, 76, 0.12);
}

.dashboard-insight-card span,
.dashboard-insight-card small {
    display: block;
}

.dashboard-insight-card span {
    color: var(--slate-500);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-insight-card strong {
    display: block;
    margin: 10px 0 6px;
    font-size: 1.45rem;
    color: var(--navy);
}

.dashboard-insight-card small {
    color: var(--slate-500);
    line-height: 1.55;
}

.dashboard-secondary-grid {
    align-items: start;
}

.dashboard-activity-card {
    padding: 18px;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 247, 244, 0.98));
    border: 1px solid rgba(201, 168, 76, 0.12);
}

.dashboard-activity-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-activity-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 12px;
    color: var(--slate-500);
    font-size: 0.9rem;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 0.95;
}

.page-intro,
.section-card__subtitle {
    color: var(--slate-500);
}

.section-card__footer-action {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.info-card__label {
    color: var(--slate-500);
    margin-bottom: 10px;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.info-card__value {
    font-size: 2.6rem;
    line-height: 1;
}

.btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    cursor: pointer;
    transition: 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    box-shadow: var(--shadow-gold);
}

.btn-secondary,
.btn-danger {
    background: var(--navy);
    color: var(--white);
}

.btn-danger {
    background: #9d2931;
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid rgba(17, 24, 39, 0.12);
}

.btn-small {
    padding: 9px 14px;
    font-size: 0.82rem;
}

.btn-block {
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.badge-secondary {
    background: rgba(201, 168, 76, 0.12);
    color: #7f5e16;
}

.badge-in_stock,
.badge-available {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.badge-in_use {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.badge-maintenance,
.badge-pending_review {
    background: rgba(201, 168, 76, 0.14);
    color: #8a6410;
}

.badge-pending {
    background: rgba(201, 168, 76, 0.14);
    color: #8a6410;
}

.badge-new,
.badge-reviewed {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.badge-closed {
    background: rgba(107, 114, 128, 0.14);
    color: #374151;
}

.badge-suspended {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.badge-blocked {
    background: rgba(225, 29, 72, 0.12);
    color: #be123c;
}

.badge-retired,
.badge-rejected {
    background: rgba(225, 29, 72, 0.12);
    color: #be123c;
}

.filter-bar {
    flex-wrap: wrap;
    align-items: end;
}

.filter-bar__actions {
    display: flex;
    gap: 10px;
}

.form-card,
.form-grid {
    display: grid;
    gap: 18px;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
    display: grid;
    gap: 8px;
    align-content: start;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field span {
    display: block;
    margin: 0;
    padding: 0 0 2px;
    line-height: 1.2;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy-mid);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 16px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--navy);
    line-height: 1.25;
    transition: 0.2s ease;
}

.form-field select,
.form-select {
    min-height: 52px;
    height: 52px;
    padding-right: 42px;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(17, 24, 39, 0.55) 50%),
        linear-gradient(135deg, rgba(17, 24, 39, 0.55) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(50% - 3px),
        calc(100% - 14px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.form-field input,
.form-field textarea {
    min-height: 52px;
}

.form-field input:not([type="file"]),
.form-field select {
    height: 52px;
}

.form-field textarea {
    min-height: 140px;
    padding: 13px 14px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: rgba(201, 168, 76, 0.6);
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.12);
}

.form-field--compact {
    min-width: 200px;
}

.checkbox-field input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-height: 22px;
    padding: 0;
    border-radius: 8px;
}

.inline-action-field {
    display: flex;
    gap: 10px;
    align-items: center;
}

.inline-action-field input {
    flex: 1 1 auto;
}

.field-error {
    min-height: 18px;
    color: #be123c;
    font-size: 0.84rem;
}

.form-hint {
    color: var(--slate-500);
    font-size: 0.84rem;
}

.form-field--upload {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 242, 232, 0.92));
}

.file-input {
    width: 100%;
    min-height: 56px;
    padding: 10px 12px;
    border: 1px dashed rgba(201, 168, 76, 0.42) !important;
    border-radius: 18px !important;
    background:
        radial-gradient(circle at top right, rgba(201, 168, 76, 0.14), transparent 30%),
        rgba(255, 255, 255, 0.92) !important;
    color: var(--navy);
    cursor: pointer;
}

.file-input::file-selector-button {
    margin-right: 14px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    font-weight: 700;
    cursor: pointer;
}

.file-input:hover {
    border-color: rgba(201, 168, 76, 0.72) !important;
}

.file-input__status {
    color: var(--navy-mid);
    font-size: 0.82rem;
    font-weight: 600;
}

.alert,
.toast {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.alert-success,
.toast-success {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.alert-error,
.toast-error {
    background: rgba(225, 29, 72, 0.12);
    color: #be123c;
}

.toast-shell {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1200;
    display: grid;
    gap: 10px;
    max-width: 340px;
}

.table-scroll {
    overflow: auto;
}

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

.table th,
.table td {
    padding: 15px 12px;
    border-bottom: 1px solid rgba(17, 24, 39, 0.07);
    text-align: left;
    vertical-align: top;
}

.table th {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate-500);
}

.table-empty {
    text-align: center;
    color: var(--slate-500);
    padding: 28px 12px;
}

.table-subtext,
.record-card__support {
    margin-top: 6px;
    color: var(--slate-500);
    font-size: 0.84rem;
}

.table-thumb {
    width: 72px;
    height: 54px;
    margin-bottom: 10px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(201, 168, 76, 0.08);
}

.table-thumb img,
.record-card__media img,
.media-chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.table-actions {
    width: 246px;
}

.table-actions--users {
    width: 170px;
}

.action-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.table-actions--users-cell {
    vertical-align: middle;
    text-align: right;
}

.app-action-menu {
    position: relative;
    display: inline-flex;
    justify-content: flex-end;
}

.app-action-menu__trigger {
    border: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 238, 230, 0.96));
    border: 1px solid rgba(17, 24, 39, 0.08);
    color: var(--navy);
    border-radius: 999px;
    padding: 8px 12px 8px 10px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.22s ease;
    box-shadow: 0 8px 20px rgba(10, 15, 30, 0.06);
}

.app-action-menu__trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(10, 15, 30, 0.1);
}

.app-action-menu__trigger-icon,
.app-action-menu__item-icon,
.app-action-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.app-action-menu__trigger-icon,
.app-action-menu__item-icon {
    color: #8a6410;
}

.app-action-menu__trigger-icon svg,
.app-action-menu__item-icon svg,
.app-action-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.app-action-menu__trigger-label {
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
}

.app-action-menu__trigger-caret {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.7;
}

.app-action-menu__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 18px 40px rgba(10, 15, 30, 0.14);
    display: none;
    z-index: 20;
}

.app-action-menu--open .app-action-menu__dropdown {
    display: grid;
    gap: 6px;
}

.app-action-menu__item {
    border: 0;
    width: 100%;
    text-align: left;
    padding: 11px 12px;
    border-radius: 14px;
    background: transparent;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
}

.app-action-menu__item:hover {
    background: rgba(201, 168, 76, 0.12);
}

.app-action-menu__item--delete {
    color: #be123c;
}

.app-action-menu__item--delete .app-action-menu__item-icon,
.app-action-icon--delete {
    color: #be123c;
}

.app-action-menu__item--approve .app-action-menu__item-icon,
.app-action-icon--approve {
    color: #047857;
}

.app-action-icon--view {
    color: #1d4ed8;
}

.app-action-icon--edit {
    color: #8a6410;
}

.app-action-group--mobile {
    align-items: center;
    justify-content: stretch;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
}

.app-action-icon {
    flex: 1 1 0;
    min-width: 0;
    min-height: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 238, 230, 0.96));
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 8px 20px rgba(10, 15, 30, 0.06);
}

.app-action-icon:hover {
    transform: translateY(-1px);
}

.user-action-menu {
    position: relative;
    display: inline-flex;
    justify-content: flex-end;
}

.user-action-menu__trigger {
    border: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 238, 230, 0.96));
    border: 1px solid rgba(17, 24, 39, 0.08);
    color: var(--navy);
    border-radius: 999px;
    padding: 8px 12px 8px 10px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.22s ease;
    box-shadow: 0 8px 20px rgba(10, 15, 30, 0.06);
}

.user-action-menu__trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(10, 15, 30, 0.1);
}

.user-action-menu__trigger-icon,
.user-action-menu__item-icon,
.user-action-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.user-action-menu__trigger-icon {
    color: #8a6410;
}

.user-action-menu__trigger-icon svg,
.user-action-menu__item-icon svg,
.user-action-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.user-action-menu__trigger-label {
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
}

.user-action-menu__trigger-caret {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.7;
}

.user-action-menu__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 18px 40px rgba(10, 15, 30, 0.14);
    display: none;
    z-index: 20;
}

.user-action-menu--open .user-action-menu__dropdown {
    display: grid;
    gap: 6px;
}

.user-action-menu__item {
    border: 0;
    width: 100%;
    text-align: left;
    padding: 11px 12px;
    border-radius: 14px;
    background: transparent;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
}

.user-action-menu__item:hover {
    background: rgba(201, 168, 76, 0.12);
}

.user-action-menu__item-icon {
    color: #8a6410;
}

.user-action-menu__item--delete {
    color: #be123c;
}

.user-action-menu__item--delete .user-action-menu__item-icon {
    color: #be123c;
}

.user-action-group--mobile {
    align-items: center;
    justify-content: stretch;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
}

.user-action-icon {
    width: 28px;
    min-width: 40px;
    height: 40px;
    border: 0;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 238, 230, 0.96));
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 8px 20px rgba(10, 15, 30, 0.06);
}

.user-action-icon--view {
    color: #1d4ed8;
}

.user-action-icon--edit {
    color: #8a6410;
}

.user-action-icon--delete {
    color: #be123c;
}

.user-action-icon:hover {
    transform: translateY(-1px);
}

.card-list {
    display: grid;
    gap: 16px;
}

.record-card {
    padding: 18px;
}

.pricing-card {
    display: grid;
    gap: 14px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    background:
        linear-gradient(135deg, rgba(10, 15, 30, 0.96), rgba(26, 37, 64, 0.84)),
        radial-gradient(circle at top right, rgba(201, 168, 76, 0.16), transparent 32%);
    color: rgba(255, 255, 255, 0.78);
}

.pricing-card__eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.pricing-card__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--white);
}

.pricing-card__copy,
.pricing-card__meta {
    color: rgba(255, 255, 255, 0.68);
}

.pricing-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pricing-card__price {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 0.95;
    color: var(--gold-light);
}

.record-card__media {
    width: 100%;
    height: 180px;
    margin: 10px 0 14px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(201, 168, 76, 0.08);
}

.detail-list {
    display: grid;
    gap: 14px;
}

.detail-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.detail-list--stacked {
    margin-top: 8px;
}

.media-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.media-chip {
    width: 138px;
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.16);
    background: rgba(248, 247, 244, 0.92);
}

.media-chip--primary {
    border-color: rgba(201, 168, 76, 0.4);
    box-shadow: var(--shadow-sm);
}

.media-chip img {
    height: 92px;
    border-radius: 12px;
}

.media-chip span {
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 600;
}

.detail-list__item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(248, 247, 244, 0.9);
    border: 1px solid rgba(201, 168, 76, 0.12);
}

.detail-list__label,
.confirm-copy {
    color: var(--slate-500);
}

.detail-list__item strong {
    color: var(--navy);
}

.password-guide-card {
    align-self: start;
}

.password-checklist {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.password-checklist__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(248, 247, 244, 0.82);
    border: 1px solid rgba(17, 24, 39, 0.08);
    color: var(--slate-500);
    transition: 0.2s ease;
}

.password-checklist__dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    flex: 0 0 12px;
    background: rgba(148, 163, 184, 0.6);
}

.password-checklist__item--pass {
    color: #166534;
    border-color: rgba(22, 101, 52, 0.15);
    background: rgba(240, 253, 244, 0.95);
}

.password-checklist__item--pass .password-checklist__dot {
    background: #22c55e;
}

.password-status {
    margin-top: 4px;
    padding: 13px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(248, 247, 244, 0.9);
    color: var(--navy);
    font-size: 0.92rem;
    font-weight: 600;
}

.password-status--neutral {
    color: var(--slate-500);
}

.password-status--success {
    color: #166534;
    border-color: rgba(22, 101, 52, 0.18);
    background: rgba(240, 253, 244, 0.95);
}

.password-status--warning {
    color: #8a6410;
    border-color: rgba(201, 168, 76, 0.22);
    background: rgba(255, 251, 235, 0.96);
}

.password-status--danger {
    color: #b91c1c;
    border-color: rgba(185, 28, 28, 0.18);
    background: rgba(254, 242, 242, 0.96);
}

.record-card__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--navy);
}

.record-card__meta {
    color: var(--slate-500);
    flex-wrap: wrap;
}

.pagination-shell {
    margin-top: 22px;
    flex-wrap: wrap;
}

.pagination-shell__buttons {
    display: flex;
    gap: 8px;
}

.modal.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 24px 12px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 30, 0.64);
}

.modal-content {
    position: relative;
    width: min(calc(100% - 24px), 720px);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
}

.modal-content--compact {
    width: min(calc(100% - 24px), 520px);
}

.modal-content--wide {
    width: min(calc(100% - 24px), 900px);
}

.modal__header,
.modal__footer {
    padding: 20px 24px;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    position: relative;
    z-index: 1;
}

.modal__body {
    padding: 0 24px 24px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 244, 237, 0.96) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.modal__header {
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.modal__footer {
    border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.modal__body::-webkit-scrollbar {
    width: 10px;
}

.modal__body::-webkit-scrollbar-track {
    background: rgba(17, 24, 39, 0.05);
    border-radius: 999px;
}

.modal__body::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.45);
    border-radius: 999px;
}

.modal__body::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.72);
}

.modal__close {
    border: 0;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--navy);
}

.app-footer {
    margin-top: 24px;
    padding: 18px 22px;
    border-radius: 22px;
    background: rgba(10, 15, 30, 0.95);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 991px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar,
    .app-shell__sidebar-spacer,
    .app-header {
        display: none;
    }

    .app-shell__page {
        margin-left: 0;
        padding: 16px 16px calc(108px + env(safe-area-inset-bottom));
    }

    .app-mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 18px;
        position: sticky;
        top: 0;
        z-index: 25;
        padding: 10px 0 2px;
        background: linear-gradient(180deg, rgba(248, 247, 244, 0.98), rgba(248, 247, 244, 0.86));
        backdrop-filter: blur(18px);
    }

    .grid--3,
    .grid--2,
    .form-grid,
    .detail-grid,
    .public-feature-grid,
    .dashboard-hero,
    .dashboard-quick-actions__grid {
        grid-template-columns: 1fr;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: grid;
    }

    .app-footer {
        display: none;
    }

    .app-footer,
    .page-header,
    .section-card__header,
    .hero-card,
    .public-header,
    .public-footer,
    .public-hero,
    .public-timeline {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-shell,
    .public-hero,
    .public-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .public-header,
    .public-footer {
        padding-left: 0;
        padding-right: 0;
    }

    .auth-panel--feature {
        padding: 26px;
    }

    .modal {
        padding: 12px 8px;
        align-items: end;
    }

    .modal-content,
    .modal-content--compact,
    .modal-content--wide {
        width: min(100%, 100%);
        max-height: calc(100vh - 16px);
        border-radius: 24px 24px 18px 18px;
    }

    .modal__header,
    .modal__footer,
    .modal__body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .modal__header,
    .modal__footer {
        gap: 12px;
    }

    .modal__footer {
        flex-wrap: wrap;
        justify-content: stretch;
    }

    .modal__footer .btn {
        width: 100%;
    }

    .dashboard-hero__panel,
    .dashboard-activity-card {
        width: 100%;
    }

    .dashboard-desktop-hero {
        display: none;
    }

    .dashboard-quick-actions {
        padding-top: 20px;
    }

    .dashboard-quick-action {
        padding: 16px;
    }

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

    .dashboard-stat-card {
        padding: 16px 15px;
    }

    .dashboard-stat-card .info-card__value {
        font-size: 2rem;
    }

    .dashboard-stat-card__note {
        font-size: 0.84rem;
    }

    .user-action-group--mobile {
        justify-content: stretch;
        width: 100%;
        gap: 8px;
        margin-top: 14px;
    }

    .user-action-icon {
        flex: 1 1 0;
        width: 100%;
        min-width: 0;
        min-height: 38px;
        height: 38px;
    }

    .app-action-group--mobile {
        gap: 7px;
        margin-top: 14px;
    }

    .app-action-icon {
        min-height: 34px;
        height: 34px;
        border-radius: 11px;
    }

    .app-bottom-nav {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        z-index: 35;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
        border-radius: 26px;
        background: rgba(10, 15, 30, 0.94);
        border: 1px solid rgba(201, 168, 76, 0.18);
        box-shadow: 0 18px 45px rgba(10, 15, 30, 0.28);
        backdrop-filter: blur(18px);
    }

    .app-bottom-nav--five {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .app-bottom-nav__item {
        min-width: 0;
        display: grid;
        justify-items: center;
        gap: 6px;
        padding: 8px 4px;
        border-radius: 18px;
        color: rgba(255, 255, 255, 0.68);
        transition: 0.22s ease;
    }

    .app-bottom-nav__item--active {
        background: linear-gradient(135deg, rgba(201, 168, 76, 0.24), rgba(255, 255, 255, 0.08));
        color: var(--white);
    }

    .app-bottom-nav__icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        background: rgba(255, 255, 255, 0.08);
    }

    .app-bottom-nav__item--active .app-bottom-nav__icon {
        background: linear-gradient(135deg, var(--gold), var(--gold-light));
        color: var(--navy);
    }

    .app-bottom-nav__label {
        font-size: 0.7rem;
        line-height: 1;
        white-space: nowrap;
    }
}
