/* Revive Business — Customer Portal */
:root {
    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    --color-bg: #f0f4f8;
    --color-bg-auth: #0c1222;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-primary: #0d9488;
    --color-primary-hover: #0f766e;
    --color-primary-soft: rgba(13, 148, 136, 0.12);
    --color-sidebar: #0f172a;
    --color-sidebar-hover: #1e293b;
    --color-accent: #38bdf8;
    --color-danger: #ef4444;
    --color-danger-bg: #fef2f2;
    --color-success: #10b981;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: 0.2s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-primary);
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-hover);
}

/* ─── Auth pages ─── */
body.auth-page {
    min-height: 100vh;
    background: var(--color-bg-auth);
    background-image:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(13, 148, 136, 0.35), transparent),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(56, 189, 248, 0.2), transparent);
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo img {
    width: 200px;
    max-width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.auth-header p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
}

.input-group {
    position: relative;
    display: block;
}

/* Prefix icon only (lock, envelope) — not the toggle button icon */
.input-group > i:first-child {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    width: 1rem;
    text-align: center;
    pointer-events: none;
    z-index: 1;
}

.form-control {
    width: 100%;
    height: 48px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0 14px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--color-text);
    background: var(--color-surface);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.input-group .form-control {
    padding-left: 44px;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.form-control:read-only {
    background: #f8fafc;
    color: var(--color-text-muted);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.auth-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.auth-options a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
}

.auth-options a:hover {
    color: var(--color-primary);
}

.btn-primary,
.btn-login {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary) 0%, #0891b2 100%);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover,
.btn-login:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.btn-primary:active,
.btn-login:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled,
.btn-login:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.btn-text,
.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-loader {
    position: absolute;
    opacity: 0;
    visibility: hidden;
}

.btn-login.loading .btn-text {
    opacity: 0;
    visibility: hidden;
}

.btn-login.loading .btn-loader {
    opacity: 1;
    visibility: visible;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-ghost:hover {
    background: #f8fafc;
    color: var(--color-text);
    border-color: #cbd5e1;
}

.error-text {
    color: var(--color-danger);
    font-size: 0.75rem;
    margin-top: 6px;
    display: block;
}

.form-error,
.alert-error {
    background: var(--color-danger-bg);
    color: #b91c1c;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 0.8125rem;
    border: 1px solid #fecaca;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-success {
    background: #ecfdf5;
    color: #047857;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 0.8125rem;
    border: 1px solid #a7f3d0;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.auth-footer a {
    font-weight: 600;
    text-decoration: none;
}

/* Password visibility toggle */
.input-group--password .toggle-password {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.input-group--password .toggle-password:hover {
    background: rgba(15, 23, 42, 0.06);
    color: var(--color-primary);
}

.input-group--password .toggle-password i {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    font-size: 0.95rem;
    width: auto;
    pointer-events: none;
}

.input-group--password .form-control {
    padding-right: 48px;
}

/* ─── Dashboard layout ─── */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--color-bg);
}

.sidebar {
    width: 292px;
    flex-shrink: 0;
    background: var(--color-sidebar);
    color: #fff;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 50;
}

.sidebar-logo {
    padding: 0 8px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.sidebar-logo img {
    width: 168px;
    display: block;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.sidebar-user-info {
    min-width: 0;
    flex: 1;
}

.sidebar-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    font-size: 0.7rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-main {
    flex-shrink: 0;
    margin-bottom: 12px;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    text-decoration: none;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
    width: 100%;
}

.sidebar-nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-nav-icon i {
    width: auto;
    font-size: 0.9rem;
    opacity: 0.95;
}

.sidebar-menu li.active .sidebar-nav-icon {
    background: rgba(13, 148, 136, 0.35);
}

.sidebar-menu li a:hover {
    background: var(--color-sidebar-hover);
    color: #e2e8f0;
}

.sidebar-menu li.active a {
    background: rgba(13, 148, 136, 0.2);
    color: #5eead4;
}

.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    color: #64748b;
    text-align: center;
}

.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    background: var(--color-surface);
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 40;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.topbar-left h2,
.topbar-left h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.topbar-left p {
    margin: 4px 0 0;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.profile-btn,
.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    white-space: nowrap;
    padding: 9px 16px;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.profile-btn {
    background: #f1f5f9;
    color: var(--color-text);
}

.profile-btn:hover {
    background: #e2e8f0;
    color: var(--color-text);
}

.logout-btn {
    background: var(--color-sidebar);
    color: #fff;
}

.logout-btn:hover {
    background: #1e293b;
}

.page-content {
    padding: 28px;
    flex: 1;
}

/* ─── Dashboard home ─── */
.dash-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 32px 36px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, var(--color-sidebar) 0%, #134e4a 45%, var(--color-primary) 100%);
    border-radius: var(--radius-lg);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.dash-hero::before {
    content: "";
    position: absolute;
    right: 10%;
    top: -60px;
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.dash-hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.dash-hero-eyebrow {
    margin: 0 0 6px;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.75;
    font-weight: 600;
}

.dash-hero h2 {
    margin: 0 0 10px;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dash-hero-desc {
    margin: 0 0 22px;
    font-size: 0.9375rem;
    opacity: 0.9;
    max-width: 520px;
    line-height: 1.55;
}

.dash-hero-desc strong {
    color: #5eead4;
}

.dash-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn-hero-primary {
    background: #fff;
    color: var(--color-sidebar);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    color: var(--color-sidebar);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.dash-hero-visual {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.dash-hero-stat-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
}

.dash-hero-stat-num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.dash-hero-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.8;
    margin-top: 4px;
}

.dash-section {
    margin-bottom: 28px;
}

.dash-section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.dash-section-title {
    margin: 0 0 16px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
}

.dash-section-row .dash-section-title {
    margin-bottom: 0;
}

.dash-link-all {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dash-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.dash-action-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.dash-action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.dash-action-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.dash-action-icon--teal { background: var(--color-primary-soft); color: var(--color-primary); }
.dash-action-icon--blue { background: rgba(56, 189, 248, 0.15); color: #0284c7; }
.dash-action-icon--amber { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.dash-action-icon--slate { background: #f1f5f9; color: #475569; }

.dash-action-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text);
}

.dash-action-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.dash-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.dash-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
}

.dash-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.dash-panel-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.dash-panel-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border-radius: 999px;
}

.dash-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.dash-check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin-bottom: 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    background: #fafbfc;
}

.dash-check-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.dash-check-item.is-done {
    background: #ecfdf5;
    border-color: #6ee7b7;
}

.dash-check-item.is-done .dash-check-body strong {
    color: #047857;
}

.dash-check-icon i {
    font-size: 1.15rem;
    color: #cbd5e1;
    width: auto;
}

.dash-check-item.is-done .dash-check-icon i {
    color: var(--color-success);
}

.dash-check-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-check-body strong {
    font-size: 0.875rem;
}

.dash-check-body span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.dash-check-arrow {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    width: auto;
}

.dash-onboard-progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.dash-onboard-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-success));
    border-radius: 999px;
    transition: width 0.4s ease;
}

.dash-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.dash-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.dash-category-chip:hover {
    background: var(--color-primary-soft);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.dash-category-chip i {
    width: auto;
    font-size: 0.8rem;
}

.dash-tip {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    background: #eff6ff;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: #1e40af;
    line-height: 1.45;
}

.dash-tip i {
    width: auto;
    flex-shrink: 0;
    margin-top: 2px;
}

.dash-tip p {
    margin: 0;
}

.dash-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.dash-featured-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
}

.dash-featured-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.dash-featured-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--color-primary-soft);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.dash-featured-card h4 {
    margin: 0 0 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.35;
}

.dash-featured-card p {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.45;
    flex: 1;
}

.dash-featured-state {
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    background: #f1f5f9;
    border-radius: 999px;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.dash-featured-cta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
}

.dash-support {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}

.dash-support-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--color-primary-soft);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.dash-support h4 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.dash-support p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.dash-support > div:nth-child(2) {
    flex: 1;
    min-width: 200px;
}

/* Profile */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.profile-card {
    background: var(--color-surface);
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.profile-card-header i {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--color-primary-soft);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.profile-card h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}

.profile-card .card-subtitle {
    margin: 2px 0 0;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 20px;
    background: var(--color-sidebar);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu toggle */
.sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--color-text);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 45;
    opacity: 0;
    transition: opacity var(--transition);
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .dash-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 768px) {
    .sidebar-toggle {
        display: flex;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 50;
    }

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

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

    .dash-hero {
        flex-direction: column;
        text-align: center;
        padding: 28px 22px;
    }

    .dash-hero-actions {
        justify-content: center;
    }

    .dash-hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .page-content {
        padding: 20px 16px;
    }

    .topbar {
        padding: 14px 16px;
    }

    .topbar-right .btn-label {
        display: none;
    }
}

@media (max-width: 480px) {

    .auth-card {
        padding: 28px 22px;
    }
}

/* ─── Services catalog ─── */
.services-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--color-sidebar) 0%, #134e4a 50%, var(--color-primary) 100%);
    border-radius: var(--radius-lg);
    color: #fff;
}

.services-hero h2 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 700;
}

.services-hero p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
    max-width: 520px;
}

.services-search-wrap {
    position: relative;
    flex: 1;
    min-width: 260px;
    max-width: 380px;
}

.services-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    width: auto;
}

.services-search {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9375rem;
    box-shadow: var(--shadow-md);
}

.services-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--color-primary-soft);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.services-result-count {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin: 0 0 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.service-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.service-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.service-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--color-primary-soft);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.service-card-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    background: #f1f5f9;
    color: var(--color-text-muted);
    border-radius: 999px;
}

.service-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.35;
}

.service-card p {
    margin: 0 0 16px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    flex: 1;
}

.service-card-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
}

.services-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--color-text-muted);
}

.services-empty i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Service detail */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-nav i {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    width: auto;
}

.breadcrumb-nav span {
    color: var(--color-text-muted);
}

.service-detail-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    align-items: start;
}

.requirements-progress-wrap {
    margin-bottom: 16px;
}

.requirements-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    margin-bottom: 8px;
    gap: 12px;
}

.requirements-progress-header span {
    color: var(--color-text-muted);
}

.requirements-progress-header strong {
    color: var(--color-primary);
    font-size: 1rem;
}

.requirements-progress-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.requirements-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--color-primary), var(--color-success));
    border-radius: 999px;
    transition: width 0.4s ease;
}

.requirements-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin: 0 0 14px;
    line-height: 1.4;
}

.requirements-hint i {
    width: auto;
    margin-top: 2px;
    color: var(--color-primary);
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.requirement-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    margin-bottom: 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    line-height: 1.45;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    background: #fafbfc;
}

.requirement-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.requirement-item.is-complete {
    background: #ecfdf5;
    border-color: #6ee7b7;
}

.requirement-item.is-complete .requirement-status i {
    color: var(--color-success);
}

.requirement-item.is-pending .requirement-status i {
    color: #cbd5e1;
}

.requirement-item.just-completed {
    animation: reqPop 0.5s ease;
}

@keyframes reqPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.requirement-status {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.requirement-status i {
    font-size: 1.15rem;
    width: auto;
    transition: color 0.25s ease, transform 0.25s ease;
}

.requirement-item.is-complete .requirement-status i {
    transform: scale(1.05);
}

.requirement-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.requirement-text {
    color: var(--color-text);
    font-weight: 500;
}

.requirement-item.is-complete .requirement-text {
    color: #047857;
}

.requirement-tag {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.requirement-item.is-complete .requirement-tag {
    color: #059669;
}

/* Form fields linked to requirements */
.req-track.field-complete {
    border-color: var(--color-success) !important;
    background: #f0fdf4 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12) !important;
}

.req-track.field-highlight {
    border-color: #86efac !important;
    background: #f7fef9 !important;
}

.req-track.field-pulse {
    animation: fieldPulse 1.2s ease;
}

@keyframes fieldPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(13, 148, 136, 0); }
}

.req-field-group:has(.field-complete) label {
    color: var(--color-success);
}

.req-field-group:has(.field-complete) label::after {
    content: " ✓";
    font-weight: 700;
}

.service-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.service-meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    gap: 12px;
}

.service-meta-item .label {
    color: var(--color-text-muted);
}

.service-meta-item .value {
    font-weight: 600;
    text-align: right;
}

.ui-notice {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: #1e40af;
}

.ui-notice i {
    width: auto;
    flex-shrink: 0;
    margin-top: 2px;
}

.ui-notice p {
    margin: 0;
}

.form-section {
    border: none;
    margin: 0 0 28px;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--color-border);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section legend {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text);
    padding: 0 0 16px;
    width: 100%;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.required-mark {
    color: var(--color-danger);
}

.checkbox-label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.875rem;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
    margin-top: 4px;
    flex-shrink: 0;
}

.upload-dropzone {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    padding: 36px 24px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
}

.upload-dropzone i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 12px;
    width: auto;
}

.upload-dropzone p {
    margin: 0 0 6px;
    font-size: 0.9rem;
}

.upload-dropzone span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.upload-file-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.upload-file-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    font-size: 0.8125rem;
}

.upload-file-list li span {
    margin-left: auto;
    color: var(--color-text-muted);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.form-actions .btn-login {
    width: auto;
    min-width: 200px;
    padding: 0 28px;
}

.service-application-form .form-control {
    padding-left: 14px;
}

@media (max-width: 992px) {
    .service-detail-layout {
        grid-template-columns: 1fr;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 22px 20px;
    }

    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form-actions .btn-login,
    .form-actions .btn-ghost {
        width: 100%;
        justify-content: center;
    }
}

/* ─── Sidebar enhancements ─── */
.sidebar-logo-link {
    display: block;
    line-height: 0;
}

.sidebar-services {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 8px;
    padding-top: 14px;
}

.sidebar-services-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px 10px;
    gap: 8px;
}

.sidebar-services-heading {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
}

.sidebar-services-toggle-all {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: background var(--transition), color var(--transition);
}

.sidebar-services-toggle-all:hover {
    background: var(--color-sidebar-hover);
    color: #e2e8f0;
}

.sidebar-search {
    position: relative;
    margin: 0 4px 10px;
}

.sidebar-search > i.fa-magnifying-glass {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: #64748b;
    width: auto;
    pointer-events: none;
}

.sidebar-search input {
    width: 100%;
    padding: 9px 36px 9px 34px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
    color: #e2e8f0;
    font-family: inherit;
    font-size: 0.78rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.sidebar-search input::placeholder {
    color: #64748b;
}

.sidebar-search input:focus {
    border-color: rgba(13, 148, 136, 0.5);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.sidebar-search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.7rem;
}

.sidebar-search-clear:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-search-empty {
    margin: 0 8px 8px;
    font-size: 0.72rem;
    color: #64748b;
    text-align: center;
}

.sidebar-services-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 2px 8px 0;
    margin-right: -2px;
}

.sidebar-services-scroll::-webkit-scrollbar {
    width: 6px;
}

.sidebar-services-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
}

.sidebar-service-group {
    margin-bottom: 4px;
}

.sidebar-service-group[hidden] {
    display: none;
}

.sidebar-service-group summary {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    list-style: none;
    user-select: none;
    transition: background var(--transition);
}

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

.sidebar-service-group summary:hover {
    background: var(--color-sidebar-hover);
}

.sidebar-service-group[open] summary {
    color: #f1f5f9;
}

.sidebar-cat-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(13, 148, 136, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-cat-icon i {
    font-size: 0.75rem;
    color: #5eead4;
    width: auto;
}

.sidebar-cat-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-service-count {
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 2px 7px;
    border-radius: 999px;
    line-height: 1.4;
}

.sidebar-cat-chevron {
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);
}

.sidebar-cat-chevron i {
    font-size: 0.55rem;
    color: #64748b;
    width: auto;
}

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

.sidebar-service-list {
    list-style: none;
    margin: 4px 0 8px;
    padding: 0 0 0 6px;
    border-left: 2px solid rgba(255, 255, 255, 0.06);
    margin-left: 18px;
}

.sidebar-service-item {
    margin-bottom: 2px;
}

.sidebar-service-item[hidden] {
    display: none;
}

.sidebar-service-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
    transition: background var(--transition), color var(--transition), padding-left var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-service-list a:hover {
    background: var(--color-sidebar-hover);
    color: #e2e8f0;
    padding-left: 12px;
}

.sidebar-service-item.active a {
    background: rgba(13, 148, 136, 0.22);
    color: #5eead4;
    border-left-color: var(--color-primary);
    font-weight: 600;
}

.sidebar-service-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.sidebar-service-status {
    flex-shrink: 0;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 4px;
}

.sidebar-service-status.status-draft {
    background: rgba(251, 191, 36, 0.2);
    color: #fcd34d;
}

.sidebar-service-status.status-submitted {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

/* ─── Service hub (detail) page ─── */
.service-hub-page {
    max-width: none;
}

.breadcrumb-nav-enhanced {
    margin-bottom: 20px;
}

.service-page-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px 28px;
    padding: 28px 32px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, var(--color-sidebar) 0%, #134e4a 40%, var(--color-primary) 100%);
    border-radius: var(--radius-lg);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.service-page-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.service-page-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 6px;
}

.service-page-title {
    margin: 0 0 8px;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.service-page-summary {
    margin: 0;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 560px;
    line-height: 1.55;
}

.service-page-hero-body {
    flex: 1;
    min-width: 200px;
}

.service-page-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: auto;
    align-self: center;
}

.service-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
}

.service-stat-pill i {
    width: auto;
    opacity: 0.9;
}

.service-stat-pill strong {
    font-weight: 700;
}

.service-hub-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

.service-hub-main {
    min-width: 0;
}

.service-hub-status-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px 32px;
    padding: 28px 32px;
    margin-bottom: 24px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    border-left: 5px solid #cbd5e1;
}

.service-hub-status-card.status-draft {
    border-left-color: #f59e0b;
}

.service-hub-status-card.status-submitted {
    border-left-color: var(--color-success);
}

.service-hub-status-card.status-none {
    border-left-color: var(--color-primary);
}

.service-hub-status-ring {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-soft), #e0f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-primary);
}

.status-submitted .service-hub-status-ring {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #059669;
}

.status-draft .service-hub-status-ring {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #d97706;
}

.service-hub-status-content h2 {
    margin: 10px 0 8px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.service-hub-status-content > p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.55;
    max-width: 520px;
}

.service-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: #f1f5f9;
    color: var(--color-text-muted);
}

.service-hub-status-card.status-submitted .service-status-badge {
    background: #ecfdf5;
    color: #047857;
}

.service-hub-status-card.status-draft .service-status-badge {
    background: #fffbeb;
    color: #b45309;
}

.service-hub-status-card.status-none .service-status-badge {
    background: var(--color-primary-soft);
    color: var(--color-primary-hover);
}

.service-hub-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin: 20px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--color-border);
}

.service-hub-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.service-hub-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-hub-step.is-current .service-hub-step-num {
    background: var(--color-primary);
    color: #fff;
}

.service-hub-step.is-done .service-hub-step-num {
    background: #ecfdf5;
    color: #059669;
}

.service-hub-step.is-done {
    color: var(--color-text);
}

.service-hub-meta {
    margin: 16px 0 0;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.service-hub-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.875rem;
    padding: 5px 0;
}

.service-hub-meta-row span {
    color: var(--color-text-muted);
}

.service-hub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
}

.service-hub-actions .btn-login,
.service-hub-actions .btn-ghost {
    width: auto;
    min-width: 0;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-hub-actions .btn-login i,
.service-hub-actions .btn-ghost i {
    width: auto;
}

.btn-block {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-submission-preview {
    margin-top: 20px;
    padding: 16px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    overflow: auto;
    max-height: 280px;
}

.service-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-hub-description {
    margin: 0 0 20px;
    color: var(--color-text-muted);
    line-height: 1.65;
    font-size: 0.9375rem;
}

.service-info-list {
    margin: 0;
    padding: 0;
}

.service-info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.875rem;
}

.service-info-row:last-child {
    border-bottom: none;
}

.service-info-row dt {
    margin: 0;
    color: var(--color-text-muted);
    font-weight: 500;
}

.service-info-row dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}

.service-req-numbered {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-req-numbered li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.service-req-numbered li:last-child {
    border-bottom: none;
}

.service-req-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--color-primary-soft);
    color: var(--color-primary-hover);
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-req-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text);
    padding-top: 3px;
}

.service-hub-notice {
    margin-top: 24px;
}

.service-hub-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 88px;
}

.service-aside-card {
    padding: 20px;
}

.service-aside-card h4 {
    margin: 0 0 8px;
    font-size: 0.9375rem;
    font-weight: 700;
}

.service-aside-card > p {
    margin: 0 0 16px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.service-aside-cta {
    background: linear-gradient(180deg, #f0fdfa 0%, var(--color-surface) 100%);
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.service-related-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.service-related-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: color var(--transition);
}

.service-related-list a:hover {
    color: var(--color-primary);
}

.service-related-list a i {
    width: auto;
    font-size: 0.65rem;
    color: var(--color-text-muted);
}

.service-related-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
}

.service-aside-help {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.service-aside-help > i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.service-aside-link {
    font-size: 0.8125rem;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .service-hub-layout {
        grid-template-columns: 1fr;
    }

    .service-hub-aside {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 992px) {
    .service-hub-grid {
        grid-template-columns: 1fr;
    }

    .service-hub-status-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-hub-status-visual {
        display: flex;
        justify-content: center;
    }

    .service-hub-status-content > p {
        max-width: none;
    }

    .service-hub-steps {
        justify-content: center;
    }

    .service-hub-actions {
        justify-content: center;
    }

    .service-page-hero-stats {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .service-page-hero {
        padding: 22px 20px;
    }

    .service-page-title {
        font-size: 1.4rem;
    }
}

/* ─── Application stepper ─── */
.application-page {
    max-width: 1100px;
}

.application-stepper {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.stepper-nav {
    background: var(--color-sidebar);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    overflow-x: auto;
}

.stepper-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    min-width: min-content;
}

.stepper-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}

.stepper-item.is-active {
    background: rgba(13, 148, 136, 0.25);
    color: #fff;
}

.stepper-item.is-complete {
    color: rgba(255, 255, 255, 0.85);
}

.stepper-item.is-complete .stepper-num {
    background: var(--color-success);
}

.stepper-item.is-skipped:not(.is-uploaded) .stepper-num {
    background: #d97706;
}

.stepper-item.is-skipped:not(.is-uploaded) .stepper-label::after {
    content: ' — skipped';
    font-size: 0.75rem;
    opacity: 0.85;
}

.skipped-documents-panel {
    margin-bottom: 28px;
    padding: 20px 22px;
    border: 1px solid rgba(217, 119, 6, 0.35);
    border-radius: var(--radius-md);
    background: rgba(217, 119, 6, 0.08);
}

.skipped-documents-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.skipped-documents-header > i {
    color: #d97706;
    font-size: 1.25rem;
    margin-top: 2px;
}

.skipped-documents-header h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    color: var(--color-text);
}

.skipped-documents-header p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.skipped-documents-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skipped-documents-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.skipped-documents-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--color-text);
}

.skipped-documents-item-info i {
    color: #d97706;
}

.skipped-doc-upload {
    min-height: 40px;
    padding: 8px 18px;
    font-size: 0.875rem;
    white-space: nowrap;
}

.stepper-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.stepper-item.is-active .stepper-num {
    background: var(--color-primary);
}

.stepper-label small {
    font-weight: 400;
    opacity: 0.75;
}

.stepper-panels {
    position: relative;
}

.stepper-panel {
    display: none;
    animation: fadeUp 0.35s ease;
}

.stepper-panel.is-active {
    display: block;
}

.stepper-actions-spacer {
    flex: 0 0 148px;
}

.stepper-actions-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}

.stepper-actions-right .step-skip {
    min-height: 48px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
}

.stepper-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.stepper-actions .btn-ghost,
.stepper-actions .step-prev {
    min-height: 48px;
    min-width: 148px;
    padding: 12px 32px;
    font-size: 0.9375rem;
    font-weight: 600;
    justify-content: center;
    flex-shrink: 0;
}

.stepper-actions .btn-login,
.stepper-actions .step-next {
    width: auto;
    flex: 1;
    min-width: 180px;
    max-width: none;
}

.stepper-actions--form {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.doc-upload-status {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.doc-upload-status--ok {
    color: var(--color-success);
}

.doc-upload-status--error {
    color: var(--color-danger);
}

.doc-upload-status--warn {
    color: #d97706;
}

.upload-dropzone.has-file {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
}

.merchant-application-form .form-section {
    border: none;
    margin: 0 0 28px;
    padding: 0;
}

.merchant-application-form .form-section legend {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    padding: 0 0 14px;
    margin-bottom: 4px;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
}

.merchant-application-form .form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}

.merchant-application-form .form-group--full {
    grid-column: 1 / -1;
}

.merchant-application-form .form-group--checkbox {
    display: flex;
    align-items: flex-end;
    padding-bottom: 8px;
}

@media (max-width: 768px) {
    .merchant-application-form .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .stepper-label {
        display: none;
    }

    .stepper-item.is-active .stepper-label {
        display: inline;
    }

    .stepper-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .stepper-actions-spacer {
        display: none;
    }

    .stepper-actions-right {
        flex-direction: column-reverse;
        width: 100%;
    }

    .stepper-actions .btn-ghost,
    .stepper-actions .step-prev,
    .stepper-actions .btn-login,
    .stepper-actions .step-next,
    .stepper-actions-right .step-skip {
        width: 100%;
        min-width: 0;
    }

    .skipped-documents-item {
        flex-direction: column;
        align-items: stretch;
    }

    .skipped-doc-upload {
        width: 100%;
    }
}

/* ─── Request new document page ─── */
.document-requests-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.doc-requests-uploads {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.doc-request-card {
    margin-bottom: 0;
}

.doc-request-uploaded-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--color-success);
    font-weight: 600;
}

.dash-doc-requests-panel {
    margin-bottom: 0;
}

.doc-requests-table td,
.doc-requests-table th {
    vertical-align: middle;
}

.dash-empty-hint {
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.btn-link-refresh {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
}

.btn-link-refresh:hover {
    text-decoration: underline;
}

.text-muted {
    color: var(--color-text-muted);
}

.upload-dropzone.dragover {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
}

/* ─── Dashboard applications & profile ─── */
.dash-hero--compact {
    margin-bottom: 28px;
}

.dash-hero--compact .dash-hero-visual {
    display: none;
}

.dash-applications-panel,
.dash-profile-panel {
    margin-bottom: 24px;
}

.dash-loading {
    text-align: center;
    padding: 32px;
    color: var(--color-text-muted);
}

.dash-empty-state {
    text-align: center;
    padding: 40px 24px;
    color: var(--color-text-muted);
}

.dash-empty-state i {
    font-size: 2.5rem;
    color: var(--color-border);
    margin-bottom: 12px;
}

.dash-empty-state p {
    margin: 0 0 20px;
}

.btn-hero-primary--sm {
    display: inline-flex;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.dash-table-wrap {
    overflow-x: auto;
}

.dash-applications-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.dash-applications-table th,
.dash-applications-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.dash-applications-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    font-weight: 600;
}

.dash-applications-table tbody tr:hover {
    background: rgba(13, 148, 136, 0.04);
}

.dash-table-link {
    font-weight: 600;
    font-size: 0.875rem;
}

.app-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.app-status-badge.status-submitted {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.app-status-badge.status-draft {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
}

.app-status-badge.status-pending {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.app-status-badge.status-rejected {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.dash-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.dash-profile-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.dash-profile-item strong {
    font-size: 1rem;
    color: var(--color-text);
}

.dash-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
}

.text-right {
    text-align: right;
}
