@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Inter:wght@400;600&display=swap');

:root {
    --bg: #050914;
    --bg-2: #0b1020;
    --card: #0f172a;
    --border: #1f2a3c;
    --accent: #7cff6b;
    --accent-2: #26d7b4;
    --ink: #e5e7eb;
    --muted: #94a3b8;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --glass: rgba(255, 255, 255, 0.04);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at 15% 20%, rgba(124, 255, 107, 0.08), transparent 35%),
                radial-gradient(circle at 80% 0%, rgba(38, 215, 180, 0.15), transparent 45%),
                linear-gradient(135deg, var(--bg), var(--bg-2));
    color: var(--ink);
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    background: linear-gradient(90deg, rgba(124, 255, 107, 0.1), rgba(38, 215, 180, 0.05)) var(--glass);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
}

.brand {
    font-family: 'Barlow Condensed', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 22px;
}

.user {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--ink);
    margin-left: auto;
}

.nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-links a {
    padding: 0;
}

.nav-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.03);
    transition: border 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
}

.nav-chip.active {
    color: var(--accent);
    border-color: rgba(135, 245, 106, 0.45);
    background: rgba(135, 245, 106, 0.1);
}

.nav-chip:hover {
    border-color: rgba(124, 255, 107, 0.6);
    box-shadow: 0 10px 26px rgba(124, 255, 107, 0.15);
    transform: translateY(-1px);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    padding: 22px;
}

.dashboard-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
    gap: 18px;
    align-items: stretch;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(124, 255, 107, 0.12), rgba(38, 215, 180, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
}

.dashboard-hero-copy {
    align-self: center;
}

.dashboard-hero h1 {
    font-size: 34px;
}

.dashboard-hero-media {
    min-height: 230px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
    position: relative;
}

.dashboard-hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 9, 20, 0.15), transparent);
    pointer-events: none;
}

.dashboard-hero-media img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    display: block;
}

.dashboard-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 138px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
    position: relative;
    overflow: hidden;
}

.stat-card strong {
    font-size: 38px;
    line-height: 1;
    color: var(--accent);
}

.stat-label {
    color: var(--ink);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 12px;
}

.stat-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--accent);
    background: rgba(124, 255, 107, 0.11);
    border: 1px solid rgba(124, 255, 107, 0.32);
    box-shadow: 0 10px 26px rgba(124, 255, 107, 0.12);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.admin-table-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.table-card {
    padding: 0;
}

.table-card > * {
    position: relative;
    z-index: 1;
}

.table-card > .alert,
.table-card > .empty-visual,
.table-card > .muted {
    margin-left: 18px;
    margin-right: 18px;
}

.table-card > .muted {
    margin-bottom: 18px;
}

.card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 18px 10px;
}

.card-head h2 {
    margin-bottom: 4px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    padding: 0 18px 18px;
}

.data-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    color: var(--ink);
}

.data-table th,
.data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(255, 255, 255, 0.025);
}

.data-table tbody tr {
    transition: background 0.15s ease;
}

.data-table tbody tr:hover {
    background: rgba(124, 255, 107, 0.045);
}

.actions-col {
    width: 1%;
    white-space: nowrap;
}

.cell-title {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 180px;
}

.item-icon.compact {
    width: 32px;
    height: 32px;
    border-radius: 9px;
}

.item-icon.compact .icon {
    width: 16px;
    height: 16px;
}

.row-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.row-action {
    display: inline-flex;
    margin: 0;
}

.button.danger {
    background: rgba(255, 77, 109, 0.12);
    border: 1px solid rgba(255, 77, 109, 0.45);
    color: #ffc8d4;
    padding: 8px 10px;
}

.button.danger:hover {
    box-shadow: 0 10px 24px rgba(255, 77, 109, 0.18), 0 0 0 1px rgba(255, 77, 109, 0.35);
}

.compact-action {
    padding: 8px 10px;
}

.compact-input {
    max-width: 110px;
    min-height: 38px;
    padding: 8px 10px;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--accent);
    background: rgba(135, 245, 106, 0.1);
    border: 1px solid rgba(135, 245, 106, 0.28);
}

.status-pill.pending {
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.status-pending {
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
}

.status-accepted {
    color: var(--accent);
    background: rgba(135, 245, 106, 0.1);
    border-color: rgba(135, 245, 106, 0.28);
}

.status-declined {
    color: #ffd3dc;
    background: rgba(255, 93, 122, 0.12);
    border-color: rgba(255, 93, 122, 0.36);
}

.category-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 6px 0;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--accent-3);
    background: rgba(246, 196, 83, 0.1);
    border: 1px solid rgba(246, 196, 83, 0.28);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.priority-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

.compact-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

h2 .icon,
h3 .icon {
    color: var(--accent);
    margin-right: 6px;
    vertical-align: -3px;
}

.button .icon,
button .icon {
    width: 17px;
    height: 17px;
}

.list-row {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    align-items: start;
}

.item-icon,
.empty-visual {
    display: grid;
    place-items: center;
    color: var(--accent);
    background: rgba(124, 255, 107, 0.1);
    border: 1px solid rgba(124, 255, 107, 0.28);
}

.item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.empty-visual {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    margin-bottom: 6px;
}

.empty-visual .icon {
    width: 30px;
    height: 30px;
}

.card, .auth-card {
    background: linear-gradient(160deg, var(--card), #0d1426);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.card::after, .auth-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(124, 255, 107, 0.06), rgba(38, 215, 180, 0.04), transparent);
}

.auth-card {
    max-width: 460px;
    margin: 60px auto 80px;
}

h1, h2, h3 {
    margin: 0 0 12px;
    font-family: 'Barlow Condensed', 'Inter', sans-serif;
    letter-spacing: 0.4px;
    color: var(--ink);
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    gap: 6px;
    font-size: 14px;
    color: var(--ink);
}

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

input, textarea, select {
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #0b1222;
    color: var(--ink);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(124, 255, 107, 0.35), 0 12px 30px rgba(124, 255, 107, 0.08);
}

textarea {
    resize: vertical;
}

.button,
button {
    gap: 8px;
    padding: 13px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0b0f1a;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 0.2px;
    transition: transform 0.08s ease, box-shadow 0.15s ease, filter 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.button:hover,
button:hover {
    box-shadow: 0 12px 26px rgba(124, 255, 107, 0.22), 0 0 0 1px rgba(124, 255, 107, 0.5);
    filter: brightness(1.02);
}

.button:active,
button:active {
    transform: translateY(1px) scale(0.995);
}

.button.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--ink);
    padding: 9px 12px;
    border-radius: 10px;
}

/* Star rating (tap-to-rate like Google) */
.star-rate {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 6px;
    justify-content: flex-start;
}
.star-rate input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.star-rate label {
    font-size: 24px;
    cursor: pointer;
    color: #334155;
    transition: color 0.15s ease;
    user-select: none;
}
.star-rate label:hover,
.star-rate label:hover ~ label {
    color: var(--accent);
}
.star-rate input:checked ~ label {
    color: var(--accent);
}

.list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.list li {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--ink);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.stacked-edit {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: grid;
    place-items: center;
    z-index: 50;
}

.modal {
    background: #0f172a;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--shadow);
    max-width: 480px;
    width: 90%;
}

.suggestions {
    margin-top: 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    max-height: 220px;
    overflow-y: auto;
}

.suggestions div {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}

.suggestions div:last-child {
    border-bottom: none;
}

.suggestions div:hover {
    background: rgba(124, 255, 107, 0.08);
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

.alert {
    background: rgba(255, 77, 109, 0.08);
    border: 1px solid rgba(255, 77, 109, 0.45);
    color: #ffc8d4;
    padding: 10px;
    border-radius: 10px;
}

.alert ul {
    margin: 0;
    padding-left: 18px;
}

.inline-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    align-items: end;
}

.machine-form {
    margin: 0 18px 18px;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.check-card {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}

.check-card input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--accent);
}

.check-card strong,
.check-card small {
    display: block;
}

.check-card small {
    color: var(--muted);
    margin-top: 3px;
}

.machine-thumb {
    width: 72px;
    height: 54px;
    display: block;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.machine-thumb.placeholder {
    position: relative;
}

.machine-thumb.placeholder::after {
    content: '';
    position: absolute;
    inset: 16px 24px;
    border-radius: 8px;
    border: 2px solid rgba(154, 168, 183, 0.55);
}

.machine-reference {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid rgba(135, 245, 106, 0.2);
    border-radius: 14px;
    background: rgba(135, 245, 106, 0.055);
}

.workout-progress {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.progress-meta,
.workout-day-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
    box-shadow: 0 0 22px rgba(135, 245, 106, 0.28);
    transition: width 0.25s ease;
}

.done-form {
    display: inline-flex;
    margin: 0;
}

.done-button {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
}

.done-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #0b0f1a;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.workout-comment-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.workout-comment-form textarea {
    min-height: 78px;
}

.workout-comments {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(45, 212, 191, 0.22);
    border-radius: 14px;
    background: rgba(45, 212, 191, 0.055);
}

.client-comment {
    margin-top: 10px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}

.client-comment p {
    margin: 4px 0 0;
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(124, 255, 107, 0.95), rgba(38, 215, 180, 0.95));
    color: #0b0f1a;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
    animation: slide-up 0.35s ease, pulse 2.5s ease infinite;
    font-weight: 700;
}

@keyframes slide-up {
    from { transform: translateY(14px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 14px 40px rgba(124, 255, 107, 0.2); }
    50% { box-shadow: 0 14px 40px rgba(124, 255, 107, 0.35); }
}

@media (max-width: 600px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.hero {
    padding: 32px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: center;
    width: min(1600px, 98vw);
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: 8px;
}

.tagline {
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 18px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 255, 107, 0.15);
    border: 1px solid rgba(124, 255, 107, 0.4);
    color: var(--ink);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 14px;
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.hero-cta-tight {
    margin-top: 6px;
}
.small-links {
    font-size: 13px;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.glass {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.8), rgba(13, 20, 38, 0.75));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.back-link {
    margin-bottom: 8px;
}

.back-link a {
    color: var(--muted);
    font-weight: 600;
}

.role-toggle {
    display: flex;
    gap: 10px;
}

.role-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    color: var(--ink);
    transition: border 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.role-pill input {
    display: none;
}

.role-pill.active {
    border-color: rgba(124, 255, 107, 0.8);
    box-shadow: 0 10px 26px rgba(124, 255, 107, 0.18);
    transform: translateY(-1px);
}

.landing-body {
    background: radial-gradient(circle at 15% 20%, rgba(124, 255, 107, 0.1), transparent 35%),
                radial-gradient(circle at 80% 10%, rgba(38, 215, 180, 0.15), transparent 45%),
                linear-gradient(135deg, var(--bg), var(--bg-2));
}

.landing {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 24px 28px;
    width: min(1600px, 98vw);
    margin: 0 auto 80px;
}

.landing-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(5, 9, 20, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.hero-long {
    position: relative;
    overflow: hidden;
}

.metrics {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.metric {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.metric-number {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
}

.metric-label {
    color: var(--muted);
    font-size: 13px;
}

.panel {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: var(--shadow);
}

.panel.deep {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.8), rgba(13, 20, 38, 0.9));
    border-color: rgba(124, 255, 107, 0.25);
}

.panel.highlight {
    background: linear-gradient(120deg, rgba(124, 255, 107, 0.12), rgba(38, 215, 180, 0.12));
}

.section-head h2 {
    margin-bottom: 6px;
}

.feature-grid, .ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.timeline {
    display: grid;
    gap: 12px;
}

.step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.step-number {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(124, 255, 107, 0.12);
    border: 1px solid rgba(124, 255, 107, 0.4);
    font-weight: 800;
    color: var(--accent);
}

.shape {
    position: absolute;
    filter: blur(60px);
    opacity: 0.8;
    z-index: 0;
}

.shape.one {
    width: 260px;
    height: 260px;
    background: rgba(124, 255, 107, 0.18);
    top: -60px;
    right: -40px;
}

.shape.two {
    width: 220px;
    height: 220px;
    background: rgba(38, 215, 180, 0.2);
    bottom: -80px;
    left: -30px;
}

.cta-row {
    flex-wrap: wrap;
}

.landing-topbar {
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .dashboard-hero {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }
    .dashboard-actions {
        justify-content: flex-start;
        width: 100%;
    }
    .landing {
        padding: 18px;
        width: 100%;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .feature-grid, .ai-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .timeline {
        grid-template-columns: 1fr;
    }
    .nav-links {
        width: 100%;
        justify-content: flex-start;
    }
    .nav-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .landing-topbar {
        position: static;
    }
    .nav-links a {
        width: 100%;
    }
    .hero {
        grid-template-columns: 1fr;
    }
    .metrics {
        grid-template-columns: 1fr;
    }
}

/* Professional UI refresh */
:root {
    --bg: #080a0d;
    --bg-2: #11161b;
    --surface: rgba(16, 20, 24, 0.86);
    --surface-2: rgba(23, 29, 34, 0.9);
    --card: #111820;
    --border: rgba(231, 238, 247, 0.12);
    --accent: #87f56a;
    --accent-2: #2dd4bf;
    --accent-3: #f6c453;
    --danger: #ff5d7a;
    --ink: #f3f7fb;
    --muted: #9aa8b7;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    --soft-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
    --radius: 16px;
    --radius-sm: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        linear-gradient(135deg, rgba(8, 10, 13, 0.96), rgba(17, 22, 27, 0.98)),
        url('assets/dashboard-hero.png') center top / 100% auto no-repeat;
    color: var(--ink);
    line-height: 1.5;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(8, 10, 13, 0.25), rgba(8, 10, 13, 0.92) 420px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 78px);
    z-index: -1;
}

a {
    color: var(--accent-2);
    font-weight: 700;
}

a:hover {
    color: var(--accent);
    text-decoration: none;
}

.topbar,
.landing-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 14px 24px;
    background: rgba(8, 10, 13, 0.82);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    letter-spacing: 1.2px;
}

.nav-links {
    gap: 8px;
}

.nav-links a,
.nav-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.04);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-chip:hover {
    border-color: rgba(135, 245, 106, 0.5);
    background: rgba(135, 245, 106, 0.1);
    box-shadow: 0 10px 28px rgba(45, 212, 191, 0.12);
}

.user {
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    overflow: hidden;
}

.user span {
    padding-left: 10px;
    color: var(--muted);
    font-size: 13px;
}

.grid,
.dashboard-shell,
.landing {
    width: min(1440px, 100%);
    margin-inline: auto;
    padding: 24px;
}

.grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    align-items: start;
}

.dashboard-shell,
.landing {
    gap: 20px;
}

.card,
.auth-card,
.panel,
.stat-card,
.metric,
.step {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        var(--surface);
    box-shadow: var(--soft-shadow);
}

.card,
.auth-card,
.panel {
    padding: 22px;
}

.card > *,
.auth-card > *,
.panel > * {
    position: relative;
    z-index: 1;
}

.card::after,
.auth-card::after {
    background:
        linear-gradient(120deg, rgba(135, 245, 106, 0.07), transparent 36%),
        linear-gradient(300deg, rgba(246, 196, 83, 0.045), transparent 42%);
}

h1,
h2,
h3 {
    letter-spacing: 0;
}

h1 {
    font-size: clamp(36px, 5vw, 72px);
    line-height: 0.95;
}

h2 {
    font-size: 28px;
    line-height: 1;
}

h3 {
    font-size: 22px;
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

.dashboard-hero,
.hero {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(135deg, rgba(14, 19, 23, 0.92), rgba(20, 28, 32, 0.76)),
        url('assets/dashboard-hero.png') right center / cover no-repeat;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dashboard-hero {
    grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 1.15fr);
    padding: 28px;
}

.dashboard-hero-copy {
    max-width: 620px;
}

.dashboard-hero h1 {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 0.95;
    max-width: 700px;
}

.dashboard-hero-media {
    min-height: 300px;
    border-radius: 18px;
    border-color: rgba(255, 255, 255, 0.16);
}

.dashboard-hero-media img {
    min-height: 300px;
}

.dashboard-actions {
    justify-content: flex-start;
}

.pill {
    border-radius: 999px;
    background: rgba(135, 245, 106, 0.13);
    border-color: rgba(135, 245, 106, 0.42);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat-card {
    min-height: 160px;
    padding: 18px;
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: auto 16px 16px auto;
    width: 64px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
    opacity: 0.75;
}

.stat-card strong {
    font-size: 44px;
}

.stat-icon,
.item-icon,
.empty-visual,
.step-number {
    color: var(--accent);
    background: rgba(135, 245, 106, 0.1);
    border-color: rgba(135, 245, 106, 0.28);
}

.dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

.admin-table-stack {
    gap: 20px;
}

.table-card {
    padding: 0;
}

.table-wrap {
    padding: 0 18px 18px;
}

.data-table {
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    background: rgba(255, 255, 255, 0.04);
}

.data-table th:first-child {
    border-radius: 12px 0 0 12px;
}

.data-table th:last-child {
    border-radius: 0 12px 12px 0;
}

.data-table td {
    border-bottom-color: rgba(255, 255, 255, 0.075);
}

.data-table tbody tr:hover {
    background: rgba(45, 212, 191, 0.055);
}

input,
textarea,
select {
    min-height: 44px;
    border-radius: 12px;
    background: rgba(5, 8, 12, 0.74);
    border-color: rgba(255, 255, 255, 0.12);
}

input::placeholder,
textarea::placeholder {
    color: rgba(154, 168, 183, 0.72);
}

label {
    color: #dce6ef;
    font-size: 13px;
}

.button,
button {
    min-height: 42px;
    padding: 11px 15px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 28px rgba(45, 212, 191, 0.16);
}

.button.ghost {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.055);
}

.logout-icon {
    position: relative;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    flex: 0 0 34px;
    padding: 0;
    border-radius: 999px;
    font-size: 0;
    color: #ffd3dc;
    background: transparent;
    border: none;
    box-shadow: none;
}

.logout-icon::before {
    content: '⏻';
    display: block;
    font-family: Arial, system-ui, sans-serif;
    font-size: 20px;
    line-height: 1;
}

.logout-icon:hover {
    color: #fff;
    background: rgba(255, 93, 122, 0.16);
    box-shadow: none;
}

.logout-icon .icon,
.logout-icon .sr-only {
    display: none;
}

.button.danger {
    background: rgba(255, 93, 122, 0.12);
    border-color: rgba(255, 93, 122, 0.42);
    color: #ffd3dc;
    box-shadow: none;
}

.list li {
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

.list li:hover {
    border-color: rgba(45, 212, 191, 0.32);
    background: rgba(45, 212, 191, 0.055);
}

.auth-card {
    display: grid;
    grid-template-columns: minmax(250px, 0.85fr) minmax(320px, 1fr);
    gap: 0;
    max-width: 980px;
    min-height: 580px;
    padding: 0;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    grid-column: 1;
    grid-row: 1 / span 20;
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(8, 10, 13, 0.08), rgba(8, 10, 13, 0.68)),
        url('assets/dashboard-hero.png') center / cover no-repeat;
}

.auth-card > * {
    grid-column: 2;
    margin-left: 28px;
    margin-right: 28px;
}

.auth-card > .back-link {
    margin-top: 28px;
}

.auth-card > form {
    margin-bottom: 28px;
}

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

.role-pill {
    justify-content: center;
    min-height: 46px;
    border-radius: 12px;
}

.role-pill.active {
    border-color: rgba(135, 245, 106, 0.65);
    background: rgba(135, 245, 106, 0.1);
}

.landing {
    gap: 24px;
}

.hero-long {
    min-height: min(720px, calc(100vh - 110px));
    align-content: center;
    padding: clamp(32px, 7vw, 82px);
}

.hero-long .tagline {
    font-size: 17px;
}

.metrics {
    max-width: 520px;
}

.metric {
    background: rgba(8, 10, 13, 0.5);
    backdrop-filter: blur(8px);
}

.panel {
    padding: clamp(22px, 3vw, 34px);
}

.feature-grid,
.ai-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.profile-avatar {
    width: 132px;
    height: 132px;
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.toast {
    z-index: 80;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

@media (max-width: 900px) {
    .dashboard-hero,
    .hero {
        grid-template-columns: 1fr;
    }

    .auth-card {
        display: block;
        max-width: min(560px, calc(100% - 28px));
        min-height: 0;
        padding: 24px;
    }

    .auth-card::before {
        display: block;
        min-height: 180px;
        border-radius: 14px;
        margin-bottom: 20px;
    }

    .auth-card > * {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 700px) {
    .grid,
    .dashboard-shell,
    .landing {
        padding: 14px;
    }

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

    .topbar,
    .landing-topbar {
        position: static;
        padding: 14px;
    }

    .user {
        width: 100%;
        justify-content: space-between;
        border-radius: 14px;
    }

    .nav-links a,
    .nav-chip {
        width: auto;
    }

    .dashboard-hero,
    .card,
    .auth-card,
    .panel {
        border-radius: 16px;
    }

    .role-toggle {
        grid-template-columns: 1fr;
    }
}
