:root {
    --sidebar-bg: #0f172a;
    --sidebar-bg-alt: #111c34;
    --sidebar-border: rgba(148, 163, 184, 0.16);
    --primary: #0f766e;
    --primary-soft: rgba(15, 118, 110, 0.14);
    --primary-alt: #0b5f79;
    --surface: #ffffff;
    --surface-soft: #f5f7fb;
    --surface-muted: #eef3f8;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #dbe3ed;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    --app-body-bg: linear-gradient(180deg, #f4f8fb 0%, #eef3f8 100%);
    --auth-body-bg: radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 30%), radial-gradient(circle at bottom right, rgba(11, 95, 121, 0.18), transparent 35%), linear-gradient(135deg, #edf5f7 0%, #f8fafc 100%);
    --auth-intro-bg: linear-gradient(160deg, #0f172a 0%, #12314a 70%, #0f766e 100%);
    --hero-bg: linear-gradient(135deg, rgba(15, 118, 110, 0.12) 0%, rgba(11, 95, 121, 0.08) 100%);
    --hero-border: rgba(15, 118, 110, 0.12);
    --app-font-family: "Instrument Sans", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body.app-body {
    margin: 0;
    font-family: var(--app-font-family);
    background: var(--app-body-bg);
    color: var(--text-main);
    background-attachment: fixed;
}

body.app-body,
body.app-body button,
body.app-body input,
body.app-body select,
body.app-body textarea,
body.app-body .btn,
body.app-body .form-control,
body.app-body .form-select,
body.app-body .table,
body.app-body .dropdown-menu,
.auth-body,
.auth-body button,
.auth-body input,
.auth-body select,
.auth-body textarea {
    font-family: var(--app-font-family);
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-heading,
.sidebar-brand h1,
.dashboard-hero-title,
.panel-card h3,
.section-card-header h3,
.btn,
.badge,
.nav-link,
.table th,
.topbar-eyebrow {
    font-family: var(--app-font-family);
}

a {
    text-decoration: none;
}

::selection {
    background: var(--primary);
    color: #fff;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}

.badge.bg-primary,
.badge.text-bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-alt) 100%) !important;
    color: #fff !important;
}

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--auth-body-bg);
}

.auth-shell {
    width: min(1080px, 100%);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(219, 227, 237, 0.9);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.auth-intro {
    background: var(--auth-intro-bg);
    color: #fff;
    padding: 3rem;
    min-height: 100%;
}

.auth-intro .brand-chip,
.sidebar-brand .brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-alt) 100%);
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 12px 24px var(--primary-soft);
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    gap: 1rem;
}

.auth-features li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.auth-features i {
    color: #7dd3fc;
    margin-top: 0.15rem;
}

.auth-form-wrap {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.96);
}

.auth-card {
    max-width: 420px;
    margin: 0 auto;
}

.form-control,
.form-select {
    border-radius: 14px;
    border-color: var(--border);
    padding: 0.8rem 0.95rem;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.95);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem var(--primary-soft);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-alt) 100%);
    border: 0;
    color: #fff;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    box-shadow: 0 14px 28px var(--primary-soft);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-alt) 0%, var(--primary) 100%);
    color: #fff;
    transform: translateY(-1px);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 285px;
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-alt) 100%);
    color: rgba(255, 255, 255, 0.94);
    padding: 1.5rem 1rem;
    position: fixed;
    inset: 0 auto 0 0;
    border-right: 1px solid var(--sidebar-border);
    overflow-y: auto;
    z-index: 1030;
}

.app-sidebar.app-sidebar-light {
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
    color: var(--text-main);
    border-right-color: var(--border);
}

.app-sidebar.app-sidebar-light .sidebar-brand h1 {
    color: var(--text-main);
}

.app-sidebar.app-sidebar-light .sidebar-brand p,
.app-sidebar.app-sidebar-light .sidebar-link {
    color: var(--text-muted);
}

.app-sidebar.app-sidebar-light .sidebar-link:hover,
.app-sidebar.app-sidebar-light .sidebar-link.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.sidebar-brand h1 {
    font-size: 1.1rem;
    margin: 0;
    color: #fff;
}

.sidebar-brand p {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.72);
}

.sidebar-nav {
    display: grid;
    gap: 0.35rem;
}

.sidebar-group {
    display: grid;
    gap: 0.4rem;
}

.sidebar-group summary {
    list-style: none;
}

.sidebar-group summary::-webkit-details-marker {
    display: none;
}

.sidebar-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.85rem 0.95rem;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: rgba(226, 232, 240, 0.9);
    text-align: left;
    cursor: pointer;
    transition: 0.2s ease;
}

.sidebar-group-toggle:hover,
.sidebar-group[open] .sidebar-group-toggle {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar-group-label {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 600;
}

.sidebar-group-caret {
    font-size: 0.82rem;
    transition: transform 0.2s ease;
}

.sidebar-group[open] .sidebar-group-caret {
    transform: rotate(180deg);
}

.sidebar-subnav {
    display: grid;
    gap: 0.3rem;
    padding-left: 0.8rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.2s ease, opacity 0.2s ease;
}

.sidebar-group[open] .sidebar-subnav {
    max-height: 500px;
    opacity: 1;
}

.sidebar-group.is-open .sidebar-subnav {
    max-height: 500px;
    opacity: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: rgba(226, 232, 240, 0.84);
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    transition: 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, var(--primary-soft) 100%);
    color: #fff;
    transform: translateX(2px);
}

.sidebar-link i {
    font-size: 1.05rem;
}

.sidebar-sublink {
    padding: 0.72rem 0.9rem;
    font-size: 0.95rem;
}

.app-sidebar.app-sidebar-light .sidebar-group-toggle {
    color: var(--text-muted);
}

.app-sidebar.app-sidebar-light .sidebar-group-toggle:hover,
.app-sidebar.app-sidebar-light .sidebar-group[open] .sidebar-group-toggle {
    background: var(--primary-soft);
    color: var(--primary);
}

.app-sidebar.app-sidebar-light .sidebar-group.is-open .sidebar-group-toggle {
    background: var(--primary-soft);
    color: var(--primary);
}

.app-sidebar.app-sidebar-light .sidebar-subnav {
    border-left-color: rgba(148, 163, 184, 0.25);
}

.app-main {
    flex: 1;
    margin-left: 285px;
    padding: 1.5rem;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(219, 227, 237, 0.9);
    border-radius: 22px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.topbar::after {
    content: "";
    position: absolute;
    inset: auto -10% -70% 45%;
    height: 160px;
    background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
    pointer-events: none;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.page-heading {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.page-heading i {
    color: var(--primary);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.topbar-user p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-alt) 100%);
    color: #fff;
    font-weight: 700;
}

.sidebar-toggle {
    color: var(--text-main);
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.alerts-stack {
    margin-bottom: 1rem;
}

.dashboard-grid {
    display: grid;
    gap: 1.5rem;
}

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.6rem 1.75rem;
    background: var(--hero-bg);
    border: 1px solid var(--hero-border);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -80px;
    top: -120px;
    background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
    pointer-events: none;
}

.dashboard-hero-eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-alt);
    font-weight: 700;
}

.dashboard-hero-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-hero-copy {
    color: var(--text-muted);
    max-width: 720px;
}

.dashboard-hero-badge {
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(219, 227, 237, 0.9);
    color: var(--primary);
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

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

.info-card,
.panel-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(219, 227, 237, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.info-card::before,
.panel-card::before,
.section-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-alt) 100%);
    opacity: 0.9;
}

.info-card {
    padding: 1.35rem;
}

.info-card .stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.55rem;
}

.info-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.info-card .stat-meta {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.panel-card {
    padding: 1.4rem;
}

.panel-card h3 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-card {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 252, 0.98) 100%);
    position: relative;
    overflow: hidden;
}

.section-card-header {
    margin-bottom: 1rem;
}

.section-card-header h3 {
    margin-bottom: 0;
    font-size: 1rem;
}

.theme-preview-panel {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(241, 245, 249, 0.92) 100%);
}

.theme-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.theme-preview-label {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.theme-preview-header h4 {
    margin: 0;
    font-size: 1rem;
}

.theme-preview-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 600;
}

.theme-preview-stage {
    --preview-sidebar: var(--sidebar-bg);
    --preview-panel: linear-gradient(135deg, var(--primary) 0%, var(--primary-alt) 100%);
    --preview-body: var(--app-body-bg);
    --preview-font: var(--app-font-family);
    display: grid;
    grid-template-columns: 88px 1fr;
    overflow: hidden;
    border-radius: 18px;
    min-height: 180px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.theme-preview-sidebar {
    background: var(--preview-sidebar);
    padding: 1rem 0.85rem;
    display: grid;
    align-content: start;
    gap: 0.6rem;
}

.theme-preview-sidebar span {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.theme-preview-content {
    padding: 1rem;
    background: var(--preview-body);
}

.theme-preview-toolbar {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.theme-preview-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.8);
}

.theme-preview-card {
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.theme-preview-card strong,
.theme-preview-card p {
    font-family: var(--preview-font);
}

.theme-preview-card strong {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-main);
}

.theme-preview-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.theme-swatch-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1rem;
}

.theme-swatch {
    padding: 0.3rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    display: grid;
    gap: 0.25rem;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-swatch:hover,
.theme-swatch.is-active {
    transform: translateY(-1px);
    border-color: var(--primary);
    box-shadow: 0 12px 24px var(--primary-soft);
}

.customer-logo-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--primary-soft) 100%);
}

.qr-info-card {
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
}

.qr-info-content {
    min-width: 0;
}

.qr-info-content p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.customer-logo-thumb,
.mini-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-alt) 100%);
    color: #fff;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 24px var(--primary-soft);
}

.customer-logo-thumb {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    font-size: 1.35rem;
}

.mini-logo-box {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 0.95rem;
}

.customer-logo-thumb img,
.mini-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.passport-logo-box {
    width: 135px;
    height: 170px;
    border-radius: 18px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--primary-soft) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.6rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.passport-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qr-preview-box {
    width: 150px;
    min-width: 150px;
    height: 150px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.qr-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.theme-swatch-top,
.theme-swatch-bottom {
    display: block;
    border-radius: 10px;
}

.theme-swatch-top {
    height: 18px;
}

.theme-swatch-bottom {
    height: 36px;
}

.table-clean {
    margin: 0;
}

.table-clean th {
    font-size: 0.82rem;
    color: var(--primary-alt);
    font-weight: 600;
    border-bottom-color: var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, var(--primary-soft) 100%);
}

.table-clean td {
    vertical-align: middle;
    border-color: var(--surface-muted);
}

.table-clean tbody tr:hover {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.28);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-success {
    color: var(--primary);
    background: var(--primary-soft);
}

.status-warning {
    color: #b45309;
    background: rgba(245, 158, 11, 0.16);
}

.status-danger {
    color: #be123c;
    background: rgba(244, 63, 94, 0.14);
}

.content-placeholder {
    padding: 2rem;
}

.soft-tile {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
}

.activity-list {
    display: grid;
    gap: 1rem;
}

.activity-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--surface-muted);
}

.activity-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--primary-soft);
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-alt) 100%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-tabs {
    border-bottom: 1px solid var(--border);
}

.profile-tabs .nav-link {
    color: var(--text-muted);
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding-inline: 0.5rem;
    margin-right: 1rem;
    font-weight: 600;
}

.profile-tabs .nav-link.active {
    color: var(--primary);
    background: transparent;
    border-bottom-color: var(--primary);
}

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

.info-grid > div {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--primary-soft) 100%);
    border: 1px solid var(--border);
}

.info-grid span {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.info-grid strong {
    display: block;
    font-weight: 600;
}

.info-grid-full {
    grid-column: 1 / -1;
}

.dashboard-note-list {
    padding-left: 1.1rem;
}

.placeholder-copy {
    color: var(--text-muted);
    max-width: 640px;
}

.footer-bar {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    text-align: center;
}

.alert-success {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--primary-soft) 100%);
    color: var(--text-main);
}

.alert-success .bi,
.alert-danger .bi {
    color: var(--primary);
}

body[data-font="merriweather"] .btn,
body[data-font="merriweather"] .badge,
body[data-font="merriweather"] .page-heading,
body[data-font="lora"] .btn,
body[data-font="lora"] .badge,
body[data-font="lora"] .page-heading {
    letter-spacing: 0.01em;
}

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

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .app-sidebar.is-open {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
        padding: 1rem;
    }

    .auth-intro,
    .auth-form-wrap {
        padding: 2rem;
    }

    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

@media (max-width: 767.98px) {
    .stats-grid,
    .stats-grid.stats-grid-xl {
        grid-template-columns: 1fr;
    }

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

    .topbar-right {
        align-self: flex-start;
    }

    .page-heading {
        font-size: 1.25rem;
    }

    .dashboard-hero-title {
        font-size: 1.35rem;
    }

    .theme-preview-header,
    .theme-preview-stage {
        grid-template-columns: 1fr;
    }

    .customer-logo-card {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .qr-info-card {
        grid-template-columns: 1fr;
    }

    .theme-preview-header {
        align-items: flex-start;
    }

    .theme-preview-sidebar {
        grid-auto-flow: column;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: center;
    }

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