/* BidMasterPro — Modern Design System */

:root {
    --bg: #f3f6f7;
    --bg-pattern: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(40, 121, 111, 0.07), transparent);
    --sidebar-bg: #111c27;
    --sidebar-border: rgba(255, 255, 255, 0.06);
    --sidebar-text: #94a3b8;
    --sidebar-text-hover: #e2e8f0;
    --sidebar-active-bg: rgba(99, 213, 197, 0.14);
    --sidebar-active-text: #8ae6d9;
    --sidebar-active-bar: #63d5c5;
    --card: #ffffff;
    --card-alt: #f8fafc;
    --text: #0f172a;
    --text-secondary: #334155;
    --muted: #64748b;
    --accent: #28796f;
    --accent-hover: #1e625b;
    --accent-light: rgba(40, 121, 111, 0.12);
    --accent-gradient: linear-gradient(135deg, #246b64 0%, #28796f 100%);
    --success: #10b981;
    --success-bg: #ecfdf5;
    --success-text: #065f46;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --danger-text: #b91c1c;
    --warning: #f59e0b;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 40px -12px rgba(15, 23, 42, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --sidebar-width: 260px;
    --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

svg { width: 16px; height: 16px; flex-shrink: 0; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    background-image: var(--bg-pattern);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── App Shell ── */
.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem 1.25rem;
    margin-bottom: 0.5rem;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(40, 121, 111, 0.3);
}

.brand-icon svg { width: 18px; height: 18px; color: #fff; }

.brand-text {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f8fafc;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.7rem;
    color: var(--sidebar-text);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.nav-section-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
    padding: 1rem 0.75rem 0.5rem;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-md);
    color: var(--sidebar-text);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
    position: relative;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--sidebar-text-hover);
}

.sidebar a.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
}

.sidebar a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--sidebar-active-bar);
    border-radius: 0 3px 3px 0;
    margin-left: -0.75rem;
}

.sidebar a .nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar a.active .nav-icon,
.sidebar a:hover .nav-icon { opacity: 1; }

.sidebar-footer {
    margin-top: auto;
    padding: 1rem 0.75rem 0;
    border-top: 1px solid var(--sidebar-border);
}

.sidebar-user {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.25rem;
}

.sidebar-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #34d399;
    font-weight: 500;
}

.sidebar-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

/* ── Main Area ── */
.main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar h1 {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
}

.topbar .topbar-subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.8125rem;
    color: var(--muted);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.875rem 0.4rem 0.4rem;
    border-radius: var(--radius-full);
    background: var(--card);
    border: 1px solid var(--border);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: var(--shadow-xs);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.main-content {
    padding: 1.75rem 2rem 2.5rem;
    flex: 1;
}

/* ── Cards ── */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.callout {
    background: linear-gradient(135deg, rgba(40, 121, 111, 0.05) 0%, rgba(99, 213, 197, 0.05) 100%);
    border-color: rgba(40, 121, 111, 0.18);
}

.callout h2 {
    margin: 0.75rem 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.muted {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ── Status Pill ── */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.status-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    box-shadow: 0 2px 8px rgba(40, 121, 111, 0.28);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(40, 121, 111, 0.36);
}

.btn:active { transform: translateY(0); }

.btn-secondary {
    background: var(--card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    background: var(--card-alt);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.45rem 0.875rem;
    font-size: 0.8125rem;
}

.btn-ai {
    background: linear-gradient(135deg, #246b64, #28796f);
    box-shadow: 0 2px 8px rgba(40, 121, 111, 0.3);
}

.btn-ai:hover {
    box-shadow: 0 4px 14px rgba(40, 121, 111, 0.38);
}

/* ── Tabs ── */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.25rem;
    background: var(--card-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    width: fit-content;
}

.tabs a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.tabs a:hover { color: var(--text); }

.tabs a.active {
    background: var(--card);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

/* ── Alerts ── */
.alert {
    padding: 0.875rem 1.125rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Forms ── */
label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

input, textarea, select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card);
    color: var(--text);
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(40, 121, 111, 0.16);
}

textarea { min-height: 100px; resize: vertical; }

select { appearance: none; cursor: pointer; }

.form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.form-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.form-section h3 {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ── Tables ── */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

thead { background: var(--card-alt); }

th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}

td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

tbody tr:last-child td { border-bottom: none; }

tbody tr:hover td { background: rgba(40, 121, 111, 0.035); }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-danger { background: var(--danger-bg); color: var(--danger-text); }

.badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* ── Metrics Grid ── */
.metrics-grid, .card-grid {
    display: grid;
    gap: 1rem;
}

.metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1.25rem;
}

.metric-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition);
}

.metric-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.metric-card:hover::after { opacity: 1; }

.metric-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent);
}

.metric-icon svg { width: 20px; height: 20px; }

.metric-card h3 {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted);
}

.metric-card strong {
    display: block;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.2;
}

.metric-card .muted { margin-top: 0.375rem; font-size: 0.8125rem; }

/* ── Summary Cards ── */
.card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.summary-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.375rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    display: block;
    min-height: 170px;
}

.summary-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: rgba(40, 121, 111, 0.28);
}

.summary-card h2 {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}

.summary-card p { margin: 0; }

.summary-card strong {
    display: block;
    margin-top: 1rem;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent);
}

.summary-card .detail {
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.8125rem;
}

.summary-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.875rem;
    color: var(--accent);
}

.summary-card-icon svg { width: 18px; height: 18px; }

/* ── Project Controls ── */
.project-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--card-alt);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
    margin-bottom: 0;
}

.radio-label:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
}

.radio-label input {
    width: auto;
    margin: 0;
    accent-color: var(--accent);
}

.search-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.search-row input { margin-bottom: 0; flex: 1; }

/* ── Instant Filters panel (public/projects.php) ── */
.instant-filter-toggle-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.instant-filter-panel .form-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

/* ── Project List ── */
.project-list { display: grid; gap: 1rem; }

.project-card {
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), border-color var(--transition);
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(40, 121, 111, 0.24);
}

.card-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.project-card h3 {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
}

.project-desc {
    margin: 0.5rem 0 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.875rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 1rem;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-light);
    border: 1px solid rgba(40, 121, 111, 0.18);
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}

.project-meta-item { display: flex; flex-direction: column; gap: 0.2rem; }

.meta-label {
    font-size: 0.6875rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.project-meta-item strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.posted-at {
    font-size: 0.8125rem;
    color: var(--muted);
    white-space: nowrap;
}

.project-action {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
    flex-shrink: 0;
}

.client-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    color: var(--muted);
    font-size: 0.8125rem;
    margin-top: 0.625rem;
}

.client-details span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.client-details span + span::before {
    content: '·';
    margin-right: 0.5rem;
    color: var(--border);
}

/* ── Modal ── */
.dialog-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 50;
}

.dialog-backdrop.active { display: flex; }

.modal {
    width: min(720px, 100%);
    max-height: calc(100vh - 3rem);
    display: flex;
    flex-direction: column;
    background: var(--card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    animation: modal-in 200ms ease-out;
    overflow: hidden;
}

@keyframes modal-in {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.modal-close:hover { background: var(--border-light); color: var(--text); }

.modal-body {
    padding: 1.5rem;
    display: grid;
    gap: 1.25rem;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-section {
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.125rem;
}

.modal-section h3 {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.modal-section p {
    margin: 0.5rem 0 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.modal-section label { margin-top: 0.75rem; }

.modal-section input,
.modal-section textarea { margin-bottom: 0.5rem; }

.proposal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
}

.proposal-select {
    max-width: 240px;
    flex: 1 1 auto;
}

.proposal-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.proposal-meta-row .modal-note { margin: 0; }

.proposal-counter {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--muted);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .proposal-toolbar { flex-direction: column; align-items: stretch; }
    .proposal-select { max-width: 100%; }
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.625rem;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.qr-payment-modal { width: min(440px, 100%); }
.qr-payment-modal .modal-body { gap: 1rem; }
.qr-payment-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-alt);
}
.qr-payment-summary strong { font-size: 1.25rem; color: var(--text); }
.qr-payment-code {
    display: grid;
    place-items: center;
    min-height: 250px;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.qr-payment-code img, .qr-payment-code canvas {
    display: block;
    width: min(240px, 100%);
    height: auto;
    max-height: 240px;
    object-fit: contain;
}
.qr-payment-code [hidden] { display: none !important; }
.qr-payment-modal .modal-footer { margin: 0 -1.5rem -1.5rem; }

.modal-note {
    font-size: 0.8125rem;
    color: var(--muted);
}

.modal-project-title {
    font-weight: 600;
    color: var(--text);
    margin: 0.375rem 0 0;
}

.modal-project-desc {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 0.875rem;
    white-space: pre-line;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--accent);
}

.empty-state h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

/* ── Page Actions ── */
.page-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8125rem;
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
    color: var(--accent);
}

/* ── Bid History (My Bids) ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bid-history-card {
    padding: 0;
    overflow: hidden;
}

.bid-history-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--card);
}

.bid-status-filter {
    margin: 0;
}

.bid-status-filter select {
    width: auto;
    min-width: 180px;
    margin-bottom: 0;
    font-weight: 500;
}

.bid-history-wrap {
    border: none;
    border-radius: 0;
}

.bid-history-table th,
.bid-history-table td {
    vertical-align: top;
}

.bid-history-table th:last-child,
.bid-history-table td:last-child {
    width: 72px;
    text-align: center;
}

.bid-col-project {
    min-width: 280px;
    max-width: 420px;
}

.bid-project-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1.4;
    margin-bottom: 0.35rem;
}

.bid-project-desc {
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 1.55;
    margin-bottom: 0.625rem;
}

.bid-skill-tags {
    margin-top: 0;
}

.tag-pill-more {
    color: var(--muted);
    background: var(--card-alt);
    border-color: var(--border);
}

.bid-col-amount {
    min-width: 160px;
    white-space: nowrap;
}

.bid-amount-gross {
    font-size: 1rem;
    font-weight: 700;
    color: #059669;
    line-height: 1.3;
}

.bid-amount-net {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.bid-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.bid-duration-icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
    color: var(--muted);
}

.bid-duration-icon svg {
    width: 14px;
    height: 14px;
}

.bid-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.bid-type-fixed,
.bid-type-hourly {
    background: rgba(40, 121, 111, 0.12);
    color: #1e625b;
}

.bid-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.bid-status-icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
}

.bid-status-icon svg {
    width: 14px;
    height: 14px;
}

.bid-status-submitted {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.bid-status-pending {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.bid-status-accepted {
    background: var(--success-bg);
    color: var(--success-text);
}

.bid-status-rejected {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.bid-status-withdrawn {
    background: var(--card-alt);
    color: var(--muted);
    border: 1px solid var(--border);
}

.bid-status-failed {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.bid-submitted-at {
    font-size: 0.8125rem;
    color: var(--muted);
    white-space: nowrap;
}

.bid-action-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}

.bid-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent-gradient);
    color: #ffffff;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(40, 121, 111, 0.24);
    transition: transform var(--transition), box-shadow var(--transition);
}

.bid-action-btn svg {
    width: 16px;
    height: 16px;
}

.bid-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(40, 121, 111, 0.32);
}

.bid-history-card .empty-state {
    padding: 3.5rem 1.5rem;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .metrics-grid, .card-grid, .project-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .modal-grid, .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .app-shell { grid-template-columns: 1fr; }

    .sidebar {
        position: relative;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .brand { padding: 0.25rem 0.5rem; margin-bottom: 0; }

    .sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
        flex: unset;
    }

    .nav-section-label { display: none; }

    .sidebar a .nav-label { display: none; }

    .sidebar a.active::before { display: none; }

    .sidebar-footer { display: none; }

    .topbar {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .main-content { padding: 1rem; }

    .metrics-grid, .card-grid, .project-meta { grid-template-columns: 1fr; }

    .project-controls { flex-direction: column; }

    .search-row { flex-direction: column; }

    .card-heading { flex-direction: column; }

    .project-action { align-items: flex-start; }
}
/* ── Proposal Templates ── */
.section-header {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--success-bg);
    color: var(--success-text);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.ai-badge svg { width: 14px; height: 14px; }

.badge-neutral {
    background: var(--card-alt);
    color: var(--muted);
    border: 1px solid var(--border);
}

.template-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.template-title-cell {
    font-weight: 600;
    color: var(--text);
}

/* Toggle switch */
.switch {
    position: relative;
    display: inline-flex;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    cursor: pointer;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.switch-track {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: var(--radius-full);
    transition: background var(--transition);
}

.switch-track::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--transition);
    box-shadow: var(--shadow-xs);
}

.switch input:checked + .switch-track { background: #10b981; }

.switch input:checked + .switch-track::before { transform: translateX(18px); }

.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 3px rgba(40, 121, 111, 0.26); }

.switch-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0 1.25rem;
}

.switch-field label { margin: 0; cursor: pointer; }

/* Template form layout */
.template-form-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 1.5rem;
    align-items: start;
}

.placeholder-panel {
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    position: sticky;
    top: 5.5rem;
}

.placeholder-panel h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.placeholder-panel h3 svg { width: 16px; height: 16px; }

.placeholder-chip {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.625rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8125rem;
    color: var(--accent);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

.placeholder-chip:hover { background: var(--accent-light); border-color: rgba(40, 121, 111, 0.32); }

.placeholder-chip:last-child { margin-bottom: 0; }

/* Rich text editor */
.editor-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background: var(--card-alt);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.editor-toolbar button {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8125rem;
    font-family: inherit;
}

.editor-toolbar button:hover { background: var(--border-light); color: var(--text); }

.editor-toolbar .toolbar-sep {
    width: 1px;
    align-self: stretch;
    background: var(--border);
    margin: 0.25rem 0.375rem;
}

.editor-content {
    min-height: 240px;
    max-height: 480px;
    overflow-y: auto;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--card);
}

.editor-content:focus { outline: none; }

.editor-content ul, .editor-content ol { padding-left: 1.25rem; margin: 0.5rem 0; }

.editor-content p { margin: 0 0 0.75rem; }

.editor-source {
    display: none;
    width: 100%;
    min-height: 240px;
    border: none;
    border-radius: 0;
    margin: 0;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8125rem;
}

@media (max-width: 900px) {
    .template-form-grid { grid-template-columns: 1fr; }
    .placeholder-panel { position: static; }
}
/* ── Alerts: info / warning ── */
.alert-info {
    background: var(--accent-light);
    color: var(--text-secondary);
    border: 1px solid rgba(40, 121, 111, 0.22);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.08);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.alert svg { flex-shrink: 0; }

/* ── Preference rows (checkbox + title + description) ── */
.pref-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pref-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
}

.pref-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0.15rem 0 0;
    flex-shrink: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.pref-row-text { display: flex; flex-direction: column; gap: 0.15rem; cursor: pointer; }

.pref-row-title { font-weight: 600; color: var(--text); font-size: 0.9375rem; }

.pref-row-desc { font-size: 0.8125rem; color: var(--muted); }

/* ── Field hints ── */
.field-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: var(--muted);
    margin: 0.4rem 0 1.25rem;
}

.field-hint svg { width: 14px; height: 14px; flex-shrink: 0; }

label svg { width: 14px; height: 14px; color: var(--muted); vertical-align: -2px; margin-left: 0.2rem; }

.required-mark { color: var(--danger); margin-left: 0.15rem; }

/* ── Sync banner + outline button row ── */
.sync-row { margin-bottom: 1rem; }

/* ── Chip boxes (tag inputs / removable chips) ── */
.chip-box-wrap { position: relative; margin-bottom: 0.5rem; }

.chip-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    gap: 0.4rem;
    width: 100%;
    min-height: 46px;
    max-height: 92px;
    overflow: hidden;
    padding: 0.5rem 2.5rem 0.5rem 0.625rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.chip-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(40, 121, 111, 0.16);
}

.chip-box.expanded { max-height: none; }

.chip-box.chip-box-empty { min-height: 46px; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.3rem 0.3rem 0.65rem;
    border-radius: var(--radius-full);
    background: var(--accent-light);
    color: var(--accent-hover);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: rgba(40, 121, 111, 0.15);
    color: var(--accent-hover);
    font-size: 0.75rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.chip-remove:hover { background: rgba(40, 121, 111, 0.3); }

.chip-input-field {
    flex: 1 1 120px;
    min-width: 120px;
    border: none;
    outline: none;
    background: transparent;
    padding: 0.3rem 0.2rem;
    margin: 0;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--text);
}

.chip-box-toggle {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--card-alt);
    border-radius: var(--radius-sm);
    color: var(--muted);
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), color var(--transition);
}

.chip-box-toggle:hover { background: var(--border-light); color: var(--text); }

.chip-box-toggle svg { width: 14px; height: 14px; }

.chip-box-toggle.rotated { transform: rotate(180deg); }

.chip-box-footnote {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: var(--muted);
    margin: 0.5rem 0 0;
}

.chip-box-footnote svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 0.1rem; }

/* Language filter: add-back select */
.language-add-row { margin-top: 0.75rem; }

.language-add-row select { margin-bottom: 0; max-width: 280px; }

@media (max-width: 760px) {
    .language-add-row select { max-width: 100%; }
}
.mandatory-mark {
    color: var(--danger);
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.4rem;
}

.pref-row:has(input:disabled) { cursor: default; }

.pref-row input:disabled { cursor: default; opacity: 0.6; }
/* ── Bid Rules: inner sub-tab strip ── */
.rule-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    margin: -0.25rem 0 1.5rem;
    padding-bottom: 0;
}

.rule-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.15rem 0 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color var(--transition), border-color var(--transition);
}

.rule-tab svg { width: 16px; height: 16px; }

.rule-tab:hover { color: var(--accent-hover); }

.rule-tab.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

/* ── Bid Rules: header row ── */
.rule-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.rule-header-row h2 { margin: 0; }

/* ── Bid Rules: stat tiles ── */
.rule-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rule-stat-tile {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 1rem 1.125rem;
}

.rule-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent);
    flex-shrink: 0;
}

.rule-stat-icon svg { width: 20px; height: 20px; }

.rule-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.15;
}

.rule-stat-label {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 0.1rem;
}

.rule-stat-tile--green { border-left-color: var(--success); }
.rule-stat-tile--green .rule-stat-icon { background: var(--success-bg); color: var(--success-text); }

.rule-stat-tile--blue { border-left-color: #3b82f6; }
.rule-stat-tile--blue .rule-stat-icon { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }

.rule-stat-tile--amber { border-left-color: var(--warning); }
.rule-stat-tile--amber .rule-stat-icon { background: rgba(245, 158, 11, 0.12); color: #b45309; }

/* ── Bid Rules: fallback level box ── */
.fallback-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.fallback-box h3 {
    margin: 0 0 0.3rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
}

.fallback-box p { margin: 0; }

.fallback-select-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.fallback-select-group label { margin: 0; white-space: nowrap; }

.fallback-select-group select { margin: 0; min-width: 160px; }

/* ── Bid Rules: table + action buttons ── */
.rule-currency-badge { white-space: nowrap; }

.bid-action-btn--muted {
    background: var(--card-alt);
    color: var(--text-secondary);
    box-shadow: none;
    border: 1px solid var(--border);
}

.bid-action-btn--danger {
    background: var(--danger);
    box-shadow: none;
}

@media (max-width: 1100px) {
    .rule-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .rule-stats-grid { grid-template-columns: 1fr; }
    .rule-header-row { flex-direction: column; align-items: stretch; }
    .fallback-box { flex-direction: column; align-items: stretch; }
    .fallback-select-group select { min-width: 0; flex: 1; }
}

/* ── Bid status: applied (Project Matches / auto-bidding) ── */
.bid-status-applied {
    background: var(--success-bg);
    color: var(--success-text);
}

/* ── Header: Auto-Bidding toggle ── */
.autobid-toggle-form {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}

.status-pill-off {
    background: var(--card-alt);
    color: var(--muted);
}

.status-pill-off::before {
    background: var(--muted);
    animation: none;
}

/* ── Project Matches page ── */
.bid-col-client {
    font-size: 0.875rem;
    min-width: 140px;
}

.bid-col-proposal {
    max-width: 320px;
}

.match-proposal-preview {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    text-align: left;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
    white-space: pre-line;
}

.match-proposal-preview:hover {
    color: var(--accent);
    text-decoration: underline;
}

.bid-col-delivery {
    font-size: 0.875rem;
    white-space: nowrap;
}

.match-status-detail {
    display: inline-flex;
    width: 14px;
    height: 14px;
    color: var(--muted);
    margin-top: 0.35rem;
    cursor: help;
}

.match-status-detail svg { width: 14px; height: 14px; }

/* "View project on Freelancer" icon-link next to a matched project's title
   on matchprojects.php (added 2026-09-23) -- deliberately small/muted and
   inline-flex, matching .match-status-detail above, rather than the larger
   .bid-action-btn gradient button (that one's sized for a standalone
   Actions column; this sits inline right after a bold title). */
.match-view-on-freelancer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 0.35rem;
    color: var(--muted);
    vertical-align: middle;
    text-decoration: none;
    transition: color var(--transition);
}

.match-view-on-freelancer:hover { color: var(--accent); }

.match-view-on-freelancer svg { width: 14px; height: 14px; }

/* ── Pagination ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 1.5rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

a.page-link:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent);
}

.page-link-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.page-link-disabled {
    opacity: 0.4;
    cursor: default;
}

.page-arrow {
    font-size: 1rem;
}

.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    color: var(--muted);
}

/* ── Dashboard: Auto-Bidding explainer banner ── */
.autobid-banner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.autobid-banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.18);
}

.autobid-banner-icon svg { width: 20px; height: 20px; }

.autobid-banner h2 {
    margin: 0 0 0.35rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.autobid-banner p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.autobid-banner p strong { color: #fff; }

.autobid-banner-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

/* ── Dashboard: section headers ── */
.dashboard-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0 0.25rem;
    font-size: 1.0625rem;
    font-weight: 700;
}

.dashboard-section-title svg { width: 18px; height: 18px; color: var(--accent); }

.dashboard-section-desc {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    color: var(--muted);
}

/* ── Dashboard: Filter Overview cards ── */
.filter-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .filter-overview-grid { grid-template-columns: 1fr; }
}

.filter-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.filter-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.filter-card-title svg { width: 18px; height: 18px; color: var(--accent); }

.filter-card-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.filter-card-actions a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.filter-card-actions a:hover { text-decoration: underline; }

.filter-card-desc {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    color: var(--muted);
}

.filter-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    font-size: 0.875rem;
    font-weight: 600;
}

.filter-status-row:last-of-type { margin-bottom: 0; }

.filter-status-row--on {
    background: var(--success-bg);
    border-left-color: var(--success);
    color: var(--success-text);
}

.filter-status-row--off {
    background: var(--danger-bg);
    border-left-color: var(--danger);
    color: var(--danger-text);
}

.filter-status-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.filter-status-flag svg { width: 14px; height: 14px; }

.filter-note-box {
    margin-top: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--card-alt);
    border: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.filter-note-box-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.filter-note-box-title svg { width: 14px; height: 14px; color: var(--muted); }

.filter-note-box .muted { margin-top: 0.2rem; }

.filter-config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
}

.filter-config-row:last-of-type { border-bottom: none; }

.filter-config-row-label { font-weight: 600; }

.filter-config-row-desc {
    display: block;
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

.filter-config-row-value {
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

/* ── Dashboard: Recent Matched Projects ── */
.dashboard-table-note {
    margin-bottom: 1rem;
}

.view-all-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.view-all-link:hover { text-decoration: underline; }

/* ── Find Projects: results table ── */
.projects-table th:nth-child(1), .projects-table td:nth-child(1) { width: 38%; }
.projects-table th:nth-child(4), .projects-table td:nth-child(4) { width: 22%; }

.project-col-title .bid-project-title { margin-bottom: 0.2rem; }

.project-col-budget {
    font-weight: 700;
    white-space: nowrap;
    font-size: 0.875rem;
}

.project-col-type {
    font-size: 0.8125rem;
    color: var(--muted);
    white-space: nowrap;
}

.project-col-client {
    font-size: 0.8125rem;
    min-width: 170px;
}

.project-client-location {
    font-weight: 600;
    color: var(--text);
}

.project-client-line {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    margin-top: 0.2rem;
}

.project-client-line svg { width: 13px; height: 13px; flex-shrink: 0; }

.project-client-line--rating { color: #b45309; }
.project-client-line--rating svg { color: #f59e0b; }

.project-verify-icons {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.project-verify-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-sm);
    background: var(--card-alt);
    color: var(--border);
    border: 1px solid var(--border);
}

.project-verify-icon svg { width: 12px; height: 12px; }

.project-verify-icon--on {
    /* Solid green (not the pale --success-bg tint) so a verified check is
       unmistakable at a glance in the Client column. */
    background: var(--success);
    color: #ffffff;
    border-color: transparent;
}

.project-col-actions { text-align: right; white-space: nowrap; }

/* ── App-wide login gate (public/applogin.php) ── */
.applogin-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg);
    background-image: var(--bg-pattern);
}

.applogin-card {
    width: 100%;
    max-width: 380px;
}

.applogin-brand {
    margin-bottom: 1.5rem;
}

.applogin-submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

/* ── Memberships (public/settings/memberships.php) ── */
.membership-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.plan-card-warning {
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.15);
}

/* A trial that's actually already lapsed (planIsOverdue()), distinct from
   "expiring soon" above -- red instead of amber. */
.plan-card-danger {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.15);
}

.plan-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.progress-bar {
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--card-alt);
    border: 1px solid var(--border);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
}

/* Auto Bids / Manual Bids rows on public/settings/memberships.php -- full
   width, color-coded so the two are visually distinct at a glance (green
   for Auto, blue for Manual), matching the plan/comparison-table colors
   used elsewhere. */
.progress-bar-fill--auto { background: var(--success); }
.progress-bar-fill--manual { background: #3b82f6; }

.usage-progress-row { margin-bottom: 1rem; }

.usage-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.usage-progress-label span:first-child { display: flex; align-items: center; gap: 0.4rem; }
.usage-progress-label span:first-child svg { width: 14px; height: 14px; }

/* Small secondary line under a .usage-progress-row's bar -- e.g. Price by
   Currency's "Avg $X · Total $Y" on public/analytics.php. */
.usage-progress-sub { font-size: 0.75rem; margin-top: 0.3rem; margin-bottom: 0; }

.usage-caption {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: 0.3rem;
}

.usage-caption svg { width: 14px; height: 14px; flex-shrink: 0; }
.usage-caption--auto { color: var(--success); }
.usage-caption--manual { color: #1d4ed8; }

.feature-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.feature-tile {
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card-alt);
}

.feature-tile-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.feature-tile-value {
    font-size: 0.9375rem;
    font-weight: 600;
}

.feature-tile-off {
    opacity: 0.55;
}

.feature-tile-off .feature-tile-value { color: var(--muted); font-weight: 500; }

@media (max-width: 900px) {
    .membership-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .membership-stat-grid { grid-template-columns: 1fr; }
}

/* ── Memberships: current-plan header chips + "Upgrade Your Plan" modal ── */
.plan-card-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-card-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--accent-light);
    color: var(--accent);
    flex-shrink: 0;
}

.plan-card-icon svg { width: 16px; height: 16px; }

.plan-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.plan-card-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.chip svg { width: 12px; height: 12px; }

.chip-neutral { background: var(--card-alt); color: var(--text-secondary); border: 1px solid var(--border); }
.chip-accent { background: var(--accent-light); color: var(--accent); }
.chip-available { background: var(--success-bg); color: var(--success-text); }
.chip-unavailable { background: var(--danger-bg); color: var(--danger-text); }
.chip-limited { background: rgba(245, 158, 11, 0.14); color: #b45309; }

html[data-theme="dark"] .chip-limited { color: #fbbf24; }

.plan-card-upgrade-row {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

/* Advanced (custom-limits) / compare-table / FAQ collapsibles share this
   look wherever they appear on the Memberships page. */
details > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text);
    user-select: none;
}

details > summary::-webkit-details-marker { display: none; }

details > summary svg:last-child {
    margin-left: auto;
    width: 16px;
    height: 16px;
    color: var(--muted);
    transition: transform var(--transition);
}

details[open] > summary svg:last-child { transform: rotate(180deg); }

.upgrade-collapse-body { padding-top: 1rem; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 0.6rem;
    background: var(--card-alt);
}

.faq-item p {
    margin: 0.6rem 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-body { display: flex; flex-direction: column; }

/* public/settings/upgrade.php -- was a modal dialog, now its own page.
   These class names are kept (rather than renamed) since the hero markup
   in upgrade.php is otherwise unchanged. */
.upgrade-page { max-width: 68rem; margin: 0 auto; }

.upgrade-modal-hero { text-align: center; margin-bottom: 1.25rem; }

.upgrade-modal-hero-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #fff;
    margin-bottom: 0.75rem;
}

.upgrade-modal-hero-icon svg { width: 26px; height: 26px; }

.upgrade-modal-hero h2 {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 0.4rem;
}

.upgrade-modal-hero p { max-width: 46rem; margin: 0 auto; }

.region-toggle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.region-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.region-toggle-label svg { width: 16px; height: 16px; }

.region-toggle {
    display: inline-flex;
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.2rem;
    gap: 0.2rem;
}

.region-toggle-btn {
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    cursor: pointer;
}

.region-toggle-btn.is-active {
    background: var(--accent-gradient);
    color: #fff;
}

/* public/analytics.php -- date-range toggle (7/30/90 days), same visual
   pattern as .region-toggle above but plain <a> links (a real page
   reload per range, not client-side JS) since each range is its own
   server-computed getAnalyticsSummary() result. */
.analytics-range-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.analytics-range-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.analytics-range-label svg { width: 16px; height: 16px; }

.analytics-range-toggle {
    display: inline-flex;
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.2rem;
    gap: 0.2rem;
}

.analytics-range-btn {
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.analytics-range-btn.is-active {
    background: var(--accent-gradient);
    color: #fff;
}

.analytics-export-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.analytics-export-btn svg { width: 16px; height: 16px; }

/* Bids-per-day stacked bar chart -- pure CSS, no charting library. Each
   .analytics-bar-col is one calendar day; .analytics-bar-seg--auto (green,
   same color as the Auto Bids progress bar on memberships.php) and
   --manual (blue, same as Manual Bids there) stack from the bottom via
   column-reverse, each sized as a percentage of the tallest day in the
   current range so the chart is always comparable at a glance. */
.analytics-chart-wrap {
    margin-top: 1rem;
}

.analytics-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 180px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
}

.analytics-bar-col {
    flex: 1 1 0;
    min-width: 2px;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.analytics-bar {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column-reverse;
    border-radius: 2px 2px 0 0;
    overflow: hidden;
    background: var(--card-alt);
}

.analytics-bar-seg { width: 100%; }
.analytics-bar-seg--auto { background: var(--success); }
.analytics-bar-seg--manual { background: #3b82f6; }

.analytics-bar-labels {
    display: flex;
    gap: 2px;
    margin-top: 0.4rem;
}

.analytics-bar-label {
    flex: 1 1 0;
    min-width: 2px;
    font-size: 0.6875rem;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.plan-cards-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    align-items: stretch;
}

.plan-pricing-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    background: var(--card);
    display: flex;
    flex-direction: column;
}

.plan-pricing-card-best {
    background: linear-gradient(160deg, #1d494c 0%, #112a36 100%);
    border-color: #1d494c;
    color: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateY(-0.4rem);
}

.plan-pricing-card-best .muted,
.plan-pricing-card-best .plan-pricing-group-title { color: rgba(255, 255, 255, 0.65); }

.plan-pricing-card-best .plan-pricing-feature { color: rgba(255, 255, 255, 0.92); }
.plan-pricing-card-best .plan-pricing-feature-limited { color: rgba(255, 255, 255, 0.55); }

.best-value-ribbon {
    position: absolute;
    top: -0.6rem;
    right: 1rem;
    background: #fbbf24;
    color: #78350f;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.plan-pricing-name {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.plan-pricing-access { font-size: 0.75rem; margin-top: 0.15rem; }

.plan-pricing-price {
    margin: 0.65rem 0 1rem;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.plan-pricing-period {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted);
}

.plan-pricing-card-best .plan-pricing-period { color: rgba(255, 255, 255, 0.6); }

.plan-pricing-group { margin-bottom: 0.75rem; }

.plan-pricing-group-title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.plan-pricing-group-title svg { width: 13px; height: 13px; }

.plan-pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.15rem;
}

.plan-pricing-feature svg { width: 14px; height: 14px; color: var(--success); flex-shrink: 0; }

/* A feature this tier does NOT include (AI Proposal / Advanced Filters /
   Analytics toggled off in public/admin/plans.php) -- muted text, danger-
   colored "x" icon instead of the default success-colored check. */
.plan-pricing-feature-limited { color: var(--muted); }
.plan-pricing-feature-limited svg { color: var(--danger); }

.plan-pricing-btn { width: 100%; margin-top: auto; justify-content: center; }

.table-scroll { overflow-x: auto; }

.compare-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }

.compare-table th, .compare-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
    white-space: nowrap;
}

.compare-table th:first-child, .compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    white-space: normal;
}

.compare-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--muted);
}

.compare-legend svg { width: 14px; height: 14px; }

.payment-methods-grid, .alt-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 0 1.25rem;
}

/* Only one block (PayPal) lives in here now that Payoneer is gone -- a
   single column so it doesn't sit half-width with an empty gap beside it. */
.alt-payment-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
}

.payment-methods-grid h4 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    margin: 0 0 0.5rem;
}

.payment-methods-grid h4 svg { width: 15px; height: 15px; color: var(--accent); }

.plain-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.alt-payment-block {
    /* No background here on purpose -- the other three upgrade-page
       accordions (Compare All Plans, Payment Methods Available, FAQ) are
       plain/unboxed, so this one used to stand out with an off-white
       var(--card-alt) tint of its own. Keeping just the border/padding box
       (no fill) matches this section's look to the other three. */
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.alt-payment-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 0.6rem;
}

.alt-payment-title svg { width: 16px; height: 16px; color: var(--accent); }

.alt-payment-block .plain-list { margin-bottom: 0.75rem; }

.alt-payment-block select {
    width: 100%;
    margin-top: 0.3rem;
}

.alt-payment-note { margin-top: 0.65rem; }

@media (max-width: 860px) {
    .plan-cards-row { grid-template-columns: 1fr; }
    .plan-pricing-card-best { transform: none; }
    .payment-methods-grid, .alt-payment-grid { grid-template-columns: 1fr; }
}

/* ── Topbar dropdowns: notifications bell + user menu ── */
.dropdown-wrap { position: relative; }

.icon-btn {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    font: inherit;
    transition: background var(--transition), color var(--transition);
}

.icon-btn:hover { background: var(--card-alt); color: var(--text); }

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: var(--radius-full);
    background: var(--danger);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
}

.user-chip-btn {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font: inherit;
}

.user-chip-btn svg {
    width: 14px;
    height: 14px;
    color: var(--muted);
    margin-left: 0.15rem;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    z-index: 50;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.notif-panel { width: 340px; max-width: min(90vw, 340px); }

.dropdown-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.link-btn {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
}

.link-btn:hover { color: var(--accent-hover); }

.notif-list { max-height: 360px; overflow-y: auto; }

.notif-empty { padding: 1.5rem 1rem; text-align: center; font-size: 0.8125rem; }

.notif-row {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition);
}

.notif-row:last-child { border-bottom: none; }

.notif-row.notif-unread { background: var(--accent-light); }

.notif-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.notif-icon svg { width: 16px; height: 16px; }

.notif-body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }

.notif-text { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.4; }

.notif-time { font-size: 0.6875rem; }

.user-menu-panel { width: 200px; padding: 0.4rem; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.6rem 0.7rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.dropdown-item:hover { background: var(--card-alt); color: var(--text); }

.dropdown-item svg { width: 16px; height: 16px; flex-shrink: 0; }

.dropdown-item-danger { color: var(--danger); }
.dropdown-item-danger:hover { background: var(--danger-bg); color: var(--danger); }

@media (max-width: 560px) {
    .notif-panel { width: min(92vw, 320px); right: -3.5rem; }
}

/* ── Dark theme (Toggle Theme, user menu) ──
 * Almost everything in this file already reads color via the custom
 * properties below, so redefining them here is enough for most of the app.
 * A few places hardcode a light-mode-only color directly -- those get a
 * small manual override right after.
 */
html[data-theme="dark"] {
    --bg: #101920;
    --bg-pattern: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(99, 213, 197, 0.1), transparent);
    --sidebar-bg: #0b151e;
    --sidebar-border: rgba(255, 255, 255, 0.07);
    --card: #17242c;
    --card-alt: #1d3035;
    --text: #e5e9f2;
    --text-secondary: #c3cad9;
    --muted: #8792a6;
    --accent: #80dfd2;
    --accent-hover: #a0eee3;
    --accent-light: rgba(99, 213, 197, 0.16);
    --accent-gradient: linear-gradient(135deg, #246b64 0%, #28796f 100%);
    --success: #34d399;
    --success-bg: rgba(16, 185, 129, 0.16);
    --success-text: #6ee7b7;
    --danger: #f87171;
    --danger-bg: rgba(239, 68, 68, 0.16);
    --danger-text: #fca5a5;
    --warning: #fbbf24;
    --border: #2e424a;
    --border-light: #263941;
}

html[data-theme="dark"] .alert-warning { color: #fbbf24; }
html[data-theme="dark"] .status-pill { color: #34d399; }
html[data-theme="dark"] .notif-badge { border-color: var(--bg); }

/* ══════════════════════════════════════════════════════════════════════
   Landing page (public/index.php, logged-out only) -- a standalone
   marketing page, not wrapped in renderHeader()'s app-shell/sidebar, so it
   gets its own nav/hero/section styling below. Everything here reads
   color from the same custom properties as the rest of the app, so it
   already follows light/dark theme automatically -- no separate dark
   overrides needed. Class names are all "landing-*" prefixed so nothing
   here can collide with the dashboard's own styles. */

.accent { color: var(--accent); }

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 0.9375rem;
}

.landing-body { background: var(--bg); background-image: var(--bg-pattern); }

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.landing-nav-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}

.landing-brand-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    color: #fff;
    flex-shrink: 0;
}

.landing-brand-icon svg { width: 18px; height: 18px; }

.landing-nav-links {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.landing-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition);
}

.landing-nav-links a:hover { color: var(--accent); }

.landing-nav-actions { display: flex; gap: 0.625rem; align-items: center; flex-shrink: 0; }

@media (max-width: 720px) {
    .landing-nav-links { display: none; }
}

.landing-hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 1.5rem 3.5rem;
    text-align: center;
    background: radial-gradient(ellipse 70% 55% at 50% -10%, rgba(40, 121, 111, 0.12), transparent);
}

.landing-hero-inner { max-width: 46rem; margin: 0 auto; }

.landing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.landing-hero-badge svg { width: 14px; height: 14px; }

.landing-hero h1 {
    font-size: 2.75rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 1.125rem;
}

.landing-hero-sub {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 0 1.5rem;
}

.landing-hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.landing-hero-tags span { display: inline-flex; align-items: center; gap: 0.35rem; }
.landing-hero-tags svg { width: 15px; height: 15px; color: var(--success); }

.landing-hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.landing-hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: var(--muted);
    margin: 0;
}

.landing-section { padding: 4rem 1.5rem; max-width: 72rem; margin: 0 auto; }
.landing-section-alt { background: var(--card); }

.landing-section-head { text-align: center; max-width: 40rem; margin: 0 auto 2.75rem; }
.landing-section-head h2 { font-size: 1.875rem; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 0.75rem; }
.landing-section-head p { color: var(--text-secondary); margin: 0; font-size: 1rem; line-height: 1.6; }

.landing-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.landing-tool-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.landing-tool-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    color: #fff;
    margin-bottom: 1rem;
}

.landing-tool-icon svg { width: 22px; height: 22px; }

.landing-tool-card h3 { font-size: 1.0625rem; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.landing-tool-card p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.6; margin: 0; }

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.landing-feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.375rem;
    display: flex;
    gap: 0.875rem;
}

.landing-feature-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--accent-light);
    color: var(--accent);
    flex-shrink: 0;
}

.landing-feature-icon svg { width: 19px; height: 19px; }

.landing-feature-card h4 { font-size: 0.9375rem; margin: 0 0 0.3rem; }
.landing-feature-card p { font-size: 0.8438rem; color: var(--text-secondary); margin: 0; line-height: 1.55; }

.landing-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.landing-step { text-align: center; }

.landing-step-num {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 1.0625rem;
    margin-bottom: 0.875rem;
}

.landing-step h4 { font-size: 0.9688rem; margin: 0 0 0.4rem; }
.landing-step p { font-size: 0.8438rem; color: var(--text-secondary); margin: 0; line-height: 1.55; }

.landing-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.landing-pricing-note {
    text-align: center;
    color: var(--muted);
    font-size: 0.8438rem;
    margin: 1.75rem 0 0;
}

.landing-faq-wrap { max-width: 44rem; margin: 0 auto; }

.landing-cta-banner {
    background: var(--accent-gradient);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    color: #fff;
}

.landing-cta-banner h2 { font-size: 1.75rem; font-weight: 800; margin: 0 0 0.75rem; letter-spacing: -0.015em; }
.landing-cta-banner p { max-width: 34rem; margin: 0 auto 1.5rem; color: rgba(255, 255, 255, 0.85); font-size: 1rem; }
.landing-cta-banner .btn { background: #fff; color: var(--accent); border: none; }
.landing-cta-banner .btn:hover { background: rgba(255, 255, 255, 0.9); }
.landing-cta-banner .landing-hero-trust { color: rgba(255, 255, 255, 0.75); }

.landing-footer { border-top: 1px solid var(--border); padding: 3rem 1.5rem 2rem; }
.landing-footer-inner { max-width: 72rem; margin: 0 auto; }

.landing-footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.landing-footer-brand p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.6; margin: 0.75rem 0 0; max-width: 22rem; }

.landing-footer-col h5 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin: 0 0 0.875rem;
}

.landing-footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 0.625rem;
}

.landing-footer-col a:hover { color: var(--accent); }

.landing-footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.8125rem;
}

.blog-category-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; }
.blog-featured-post { margin: 0 0 1.5rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card-alt); }
.blog-post-card h2 { margin: 0.35rem 0 0.6rem; font-size: 1.2rem; line-height: 1.35; }
.blog-post-card h2 a { color: var(--text); text-decoration: none; }
.blog-post-card h2 a:hover { color: var(--accent); }
.blog-post-card > p:last-child { margin-top: 1rem; }
.blog-card-meta, .blog-byline { color: var(--muted); font-size: 0.8125rem; }
.blog-card-image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.blog-empty-state { max-width: 42rem; margin: 0 auto; padding: 2rem 0; text-align: center; }
.blog-pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; }
.blog-article-hero .blog-back-link { display: inline-block; margin-bottom: 1.25rem; color: var(--text-secondary); }
.blog-article-body { max-width: 52rem; }
.blog-article-body article { color: var(--text); font-size: 1.0625rem; line-height: 1.8; overflow-wrap: anywhere; }
.blog-article-image { display: block; width: 100%; height: auto; max-height: 32rem; object-fit: cover; border-radius: var(--radius-md); margin: 0 auto 2rem; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }

@media (max-width: 960px) {
    .landing-tools-grid, .landing-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .landing-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .landing-pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .landing-footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .landing-hero h1 { font-size: 2rem; }
    .landing-tools-grid, .landing-feature-grid, .landing-steps, .landing-pricing-grid { grid-template-columns: 1fr; }
    .landing-footer-top { grid-template-columns: 1fr; }
    .landing-section { padding: 3rem 1.25rem; }
    .blog-featured-post { padding: 0.875rem; }
    .blog-pagination { flex-wrap: wrap; }
}

/* Homepage campaign treatment, scoped away from feature, guide and blog pages. */
.landing-homepage { background: var(--bg); background-image: none; color: var(--text); }
.landing-site-theme .landing-nav { background: #111c27; border-color: rgba(255, 255, 255, 0.12); }
.landing-site-theme .landing-nav .landing-brand { color: #f7fbfc; }
.landing-site-theme .landing-nav-links a { color: #d2dde2; }
.landing-site-theme .landing-nav-links a:hover { color: #63d5c5; }
.landing-site-theme .landing-nav-actions .btn-secondary { color: #eef5f6; background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.28); }

.landing-home-hero {
    min-height: 590px;
    padding: 4.25rem 1.5rem 3.5rem;
    text-align: left;
    color: #f5f8fa;
    background-color: #111c27;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
}

.landing-home-hero-inner {
    max-width: 76rem;
    min-height: 490px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.landing-home-copy { max-width: 39rem; }
.landing-home-hero .landing-hero-badge { background: rgba(99, 213, 197, 0.13); color: #80e4d6; }
.landing-home-hero h1 { max-width: 39rem; font-size: 3.6rem; line-height: 1.06; }
.landing-home-accent { display: block; color: #63d5c5; }
.landing-home-hero .landing-hero-sub { max-width: 35rem; color: #c3d0d7; font-size: 1.125rem; }
.landing-home-hero .landing-hero-cta { justify-content: flex-start; margin: 0 0 1.25rem; }
.landing-home-primary { background: #63d5c5; color: #10242a; border: 1px solid #63d5c5; }
.landing-home-primary:hover { background: #8ae6d9; color: #10242a; }
.landing-home-secondary { color: #f5f8fa; background: rgba(17, 28, 39, 0.55); border-color: rgba(255, 255, 255, 0.28); }
.landing-home-secondary:hover { background: rgba(255, 255, 255, 0.08); }
.landing-home-hero .landing-hero-trust { justify-content: flex-start; color: #bdcbd2; }
.landing-home-hero .landing-hero-trust svg { color: #63d5c5; }
.landing-home-trial-note { margin-top: 1.25rem; color: #91a4ae; font-size: 0.875rem; font-weight: 600; }
.landing-home-trial-note span { padding: 0 0.5rem; color: #63d5c5; }

.landing-home-visual { margin: 0; position: relative; }
.landing-home-visual img { display: block; width: 100%; height: auto; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 10px; box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32); }
.landing-home-workflow { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 1.125rem; color: #d2dde2; font-size: 0.8125rem; font-weight: 600; }
.landing-home-workflow span { display: inline-flex; align-items: center; gap: 0.4rem; }
.landing-home-workflow i { color: #63d5c5; font-size: 0.6875rem; font-style: normal; }

.landing-homepage .landing-section { max-width: 76rem; }
.landing-homepage .landing-section-alt { max-width: none; padding-left: max(1.5rem, calc((100% - 76rem) / 2)); padding-right: max(1.5rem, calc((100% - 76rem) / 2)); }
.landing-homepage .landing-tool-card { border-radius: 8px; box-shadow: none; }
.landing-homepage .landing-feature-card { border-radius: 8px; }
.landing-homepage .landing-step-num { border-radius: 8px; background: #28796f; }
.landing-homepage .landing-cta-banner { border-radius: 8px; background: #163b3e; }
.landing-homepage .landing-cta-banner .btn { color: #10242a; }

html.landing-motion-ready [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 620ms ease, transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1); }
html.landing-motion-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: no-preference) {
    .landing-home-copy { animation: landing-home-rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
    .landing-home-visual { animation: landing-home-float 7s ease-in-out 700ms infinite alternate; }
}

@keyframes landing-home-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes landing-home-float {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}

@media (max-width: 900px) {
    .landing-home-hero { padding-top: 3.5rem; }
    .landing-home-hero-inner { grid-template-columns: 1fr; max-width: 46rem; gap: 2.5rem; }
    .landing-home-copy { max-width: none; }
    .landing-home-hero h1 { max-width: 42rem; font-size: 3.1rem; }
    .landing-home-visual { max-width: 42rem; }
}

@media (max-width: 640px) {
    .landing-home-hero { min-height: unset; padding: 1.75rem 1.25rem 1.25rem; }
    .landing-home-hero-inner { min-height: unset; gap: 1.125rem; }
    .landing-home-hero .landing-hero-badge { margin-bottom: 0.75rem; }
    .landing-home-hero h1 { font-size: 2.15rem; line-height: 1.04; margin-bottom: 0.75rem; }
    .landing-home-hero .landing-hero-sub { font-size: 0.9375rem; margin-bottom: 1rem; }
    .landing-home-hero .landing-hero-cta { align-items: stretch; flex-direction: row; gap: 0.5rem; margin-bottom: 0.85rem; }
    .landing-home-hero .landing-hero-cta .btn { flex: 1 1 0; justify-content: center; padding: 0.72rem 0.4rem; font-size: 0.75rem; }
    .landing-home-hero .landing-hero-trust { font-size: 0.75rem; line-height: 1.4; }
    .landing-home-trial-note { margin-top: 0.55rem; font-size: 0.75rem; }
    .landing-home-visual img { max-width: 280px; margin: 0 auto; }
    .landing-home-workflow { flex-wrap: nowrap; justify-content: space-between; gap: 0.25rem; margin-top: 0.6rem; font-size: 0.68rem; }
    .landing-home-workflow span { gap: 0.25rem; }
    .landing-homepage .landing-section-alt { padding-left: 1.25rem; padding-right: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .landing-homepage *, .landing-homepage *::before, .landing-homepage *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
