/* ============================================================
   PIPEIT — Global Stylesheet
   Pixel-perfect static conversion from React/Tailwind source
   ============================================================ */

@import url("../../../assets/css/fonts-inter-jetbrains.css");
@import url("../../../assets/css/material-symbols-outlined.css");

/* ── Design Tokens ── */
:root {
    /* Colors — Enterprise Blueprint palette */
    --background: hsl(220, 20%, 97%);
    --foreground: hsl(222, 47%, 11%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(222, 47%, 11%);
    --primary: hsl(24, 90%, 48%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(220, 14%, 96%);
    --secondary-foreground: hsl(222, 47%, 11%);
    --muted: hsl(220, 14%, 96%);
    --muted-foreground: hsl(220, 9%, 46%);
    --accent: hsl(24, 90%, 48%);
    --accent-foreground: hsl(0, 0%, 100%);
    --destructive: hsl(0, 84%, 60%);
    --destructive-foreground: hsl(0, 0%, 100%);
    --border: hsl(220, 13%, 91%);
    --input: hsl(220, 13%, 91%);
    --ring: hsl(24, 90%, 48%);
    --radius: 0;
    --hero-bg: hsl(225, 35%, 7%);
    --hero-foreground: hsl(220, 20%, 97%);
    --hero-muted: hsl(220, 15%, 60%);
    --sidebar-background: hsl(222, 47%, 11%);
    --sidebar-foreground: rgba(255, 255, 255, 0.6);
    --sidebar-border: rgba(255, 255, 255, 0.08);

    /* Gradients */
    --gradient-primary: linear-gradient(
        135deg,
        hsl(24, 90%, 48%),
        hsl(28, 85%, 52%)
    );
    --gradient-hero: linear-gradient(
        180deg,
        hsl(225, 35%, 7%) 0%,
        hsl(230, 40%, 14%) 100%
    );
    --gradient-cta: linear-gradient(
        135deg,
        hsl(24, 90%, 48%),
        hsl(28, 85%, 52%)
    );
    --gradient-card: linear-gradient(
        180deg,
        hsl(0, 0%, 100%) 0%,
        hsl(220, 20%, 98%) 100%
    );

    /* Shadows */
    --shadow-card:
        0 1px 3px hsl(220 13% 91% / 0.5), 0 8px 24px hsl(220 13% 91% / 0.3);
    --shadow-card-hover:
        0 4px 12px hsl(24 90% 48% / 0.1), 0 12px 32px hsl(220 13% 91% / 0.4);
    --shadow-glow: 0 0 40px hsl(24 90% 48% / 0.15);

    /* Sidebar dimensions */
    --sidebar-width: 256px;
    --sidebar-collapsed-width: 72px;
    --sidebar-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-toggle-duration: 350ms;
    --sidebar-hover-duration: 225ms;
    --navbar-height: 64px;
}

/* ── Base Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-color: var(--border);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Inter", system-ui, sans-serif;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
}
button {
    cursor: pointer;
    font-family: inherit;
}
input,
textarea,
select {
    font-family: inherit;
}
img {
    max-width: 100%;
    display: block;
}

/* ── Utility Classes ── */

/* Gradient Utilities */
.cta-gradient {
    background: var(--gradient-cta);
}
.gradient-primary {
    background: var(--gradient-primary);
}
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-section {
    background: var(--gradient-hero);
}
.card-elevated {
    background: var(--gradient-card);
    box-shadow: var(--shadow-card);
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}
.card-elevated:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}
.glow {
    box-shadow: var(--shadow-glow);
}

/* Text utilities */
.text-foreground {
    color: var(--foreground);
}
.text-muted {
    color: var(--muted-foreground);
}
.text-primary {
    color: var(--primary);
}
.text-destructive {
    color: var(--destructive);
}
.text-emerald {
    color: #059669;
}
.text-amber {
    color: #b45309;
}
.text-red {
    color: #b91c1c;
}
.text-blue {
    color: #1d4ed8;
}
.text-purple {
    color: #7c3aed;
}

.font-mono {
    font-family: "JetBrains Mono", "Courier New", monospace;
    font-weight: 500;
}
.font-medium {
    font-weight: 500;
}
.font-semibold {
    font-weight: 600;
}
.font-bold {
    font-weight: 700;
}
.font-extrabold {
    font-weight: 800;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}
.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}
.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}
.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}
.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.uppercase {
    text-transform: uppercase;
}
.tracking-wide {
    letter-spacing: 0.025em;
}
.capitalize {
    text-transform: capitalize;
}
.leading-tight {
    line-height: 1.25;
}
.leading-relaxed {
    line-height: 1.625;
}
.whitespace-nowrap {
    white-space: nowrap;
}
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}

/* Layout utilities */
.flex {
    display: flex;
}
.flex-col {
    flex-direction: column;
}
.flex-1 {
    flex: 1;
}
.flex-shrink-0 {
    flex-shrink: 0;
}
.flex-wrap {
    flex-wrap: wrap;
}
.items-start {
    align-items: flex-start;
}
.items-center {
    align-items: center;
}
.items-end {
    align-items: flex-end;
}
.justify-start {
    justify-content: flex-start;
}
.justify-center {
    justify-content: center;
}
.justify-between {
    justify-content: space-between;
}
.justify-end {
    justify-content: flex-end;
}
.gap-1 {
    gap: 0.25rem;
}
.gap-1\.5 {
    gap: 0.375rem;
}
.gap-2 {
    gap: 0.5rem;
}
.gap-3 {
    gap: 0.75rem;
}
.gap-4 {
    gap: 1rem;
}
.gap-5 {
    gap: 1.25rem;
}
.gap-6 {
    gap: 1.5rem;
}
.gap-8 {
    gap: 2rem;
}
.grid {
    display: grid;
}
.block {
    display: block;
}
.inline-block {
    display: inline-block;
}
.inline-flex {
    display: inline-flex;
}
.hidden {
    display: none;
}
.relative {
    position: relative;
}
.absolute {
    position: absolute;
}
.fixed {
    position: fixed;
}
.sticky {
    position: sticky;
}
.inset-0 {
    inset: 0;
}
.top-0 {
    top: 0;
}
.left-0 {
    left: 0;
}
.right-0 {
    right: 0;
}
.bottom-0 {
    bottom: 0;
}
.z-10 {
    z-index: 10;
}
.z-20 {
    z-index: 20;
}
.z-30 {
    z-index: 30;
}
.z-40 {
    z-index: 40;
}
.z-50 {
    z-index: 50;
}
.overflow-hidden {
    overflow: hidden;
}
.overflow-x-auto {
    overflow-x: auto;
}
.overflow-y-auto {
    overflow-y: auto;
}
.min-w-0 {
    min-width: 0;
}
.w-full {
    width: 100%;
}
.h-full {
    height: 100%;
}
.min-h-screen {
    min-height: 100vh;
}
.max-w-md {
    max-width: 28rem;
}
.max-w-3xl {
    max-width: 48rem;
}
.max-w-4xl {
    max-width: 56rem;
}
.max-w-7xl {
    max-width: 80rem;
}

/* Spacing */
.p-0 {
    padding: 0;
}
.p-2 {
    padding: 0.5rem;
}
.p-3 {
    padding: 0.75rem;
}
.p-4 {
    padding: 1rem;
}
.p-5 {
    padding: 1.25rem;
}
.p-6 {
    padding: 1.5rem;
}
.p-8 {
    padding: 2rem;
}
.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}
.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}
.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}
.py-1\.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}
.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.py-2\.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}
.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.py-3\.5 {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}
.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.pt-2 {
    padding-top: 0.5rem;
}
.pt-4 {
    padding-top: 1rem;
}
.pb-0 {
    padding-bottom: 0;
}
.pb-3 {
    padding-bottom: 0.75rem;
}
.pb-4 {
    padding-bottom: 1rem;
}
.pl-10 {
    padding-left: 2.5rem;
}
.pr-10 {
    padding-right: 2.5rem;
}
.mt-0\.5 {
    margin-top: 0.125rem;
}
.mt-1 {
    margin-top: 0.25rem;
}
.mt-1\.5 {
    margin-top: 0.375rem;
}
.mt-2 {
    margin-top: 0.5rem;
}
.mt-4 {
    margin-top: 1rem;
}
.mt-5 {
    margin-top: 1.25rem;
}
.mt-6 {
    margin-top: 1.5rem;
}
.mb-2 {
    margin-bottom: 0.5rem;
}
.mb-4 {
    margin-bottom: 1rem;
}
.mb-5 {
    margin-bottom: 1.25rem;
}
.mb-6 {
    margin-bottom: 1.5rem;
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Backgrounds */
.bg-white {
    background-color: white;
}
.bg-muted {
    background-color: var(--muted);
}
.bg-background {
    background-color: var(--background);
}
.bg-primary-10 {
    background-color: hsl(24 90% 48% / 0.1);
}
.bg-primary-5 {
    background-color: hsl(24 90% 48% / 0.05);
}
.bg-primary-3 {
    background-color: hsl(24 90% 48% / 0.03);
}

/* Status badge colors */
.badge-active {
    background-color: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}
.badge-trial {
    background-color: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}
.badge-expired {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}
.badge-team {
    background-color: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}
.badge-invited {
    background-color: #f5f3ff;
    color: #5b21b6;
    border-color: #ddd6fe;
}
.badge-pending {
    background-color: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}
.badge-deactivated {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}
.badge-paid {
    background-color: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}
.badge-failed {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}
.badge-accepted {
    background-color: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

/* Border utilities */
.border {
    border: 1px solid var(--border);
}
.border-b {
    border-bottom: 1px solid var(--border);
}
.border-t {
    border-top: 1px solid var(--border);
}
.border-r {
    border-right: 1px solid var(--border);
}
.border-primary {
    border-color: var(--primary);
}
.border-destructive {
    border-color: var(--destructive);
}
.divide-y > * + * {
    border-top: 1px solid var(--border);
}
.divide-x > * + * {
    border-left: 1px solid var(--border);
}

/* Border radius */
.rounded {
    border-radius: 0.25rem;
}
.rounded-md {
    border-radius: calc(var(--radius) - 2px);
}
.rounded-lg {
    border-radius: var(--radius);
}
.rounded-xl {
    border-radius: 0;
}
.rounded-2xl {
    border-radius: 0;
}
.rounded-full {
    border-radius: 0;
}

/* Transition */
.transition-colors {
    transition:
        color 0.15s,
        background-color 0.15s,
        border-color 0.15s;
}
.transition-all {
    transition: all 0.3s ease;
}
.duration-300 {
    transition-duration: 300ms;
}

/* Shadow utilities */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.shadow-md {
    box-shadow:
        0 4px 6px -1px rgb(0 0 0 / 0.1),
        0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.shadow-lg {
    box-shadow:
        0 10px 15px -3px rgb(0 0 0 / 0.1),
        0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.shadow-xl {
    box-shadow:
        0 20px 25px -5px rgb(0 0 0 / 0.1),
        0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Pointer events */
.pointer-events-none {
    pointer-events: none;
}
.cursor-pointer {
    cursor: pointer;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
@keyframes toastSlide {
    from {
        opacity: 0;
        transform: translateY(1rem) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}
.animate-fade-in {
    animation: fadeIn 0.2s ease forwards;
}

/* ============================================================
   COMPONENT: Button
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1.25;
    font-family: inherit;
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-primary {
    background: var(--primary);
    color: white;
    border-color: transparent;
}
.btn-primary:hover:not(:disabled) {
    opacity: 0.9;
}
.btn-outline {
    background: transparent;
    color: var(--foreground);
    border-color: var(--border);
}
.btn-outline:hover:not(:disabled) {
    background-color: var(--muted);
}
.btn-ghost {
    background: transparent;
    color: var(--muted-foreground);
    border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
    background-color: var(--muted);
    color: var(--foreground);
}
.btn-ghost-primary {
    background: transparent;
    color: var(--primary);
    border-color: transparent;
}
.btn-ghost-primary:hover:not(:disabled) {
    background-color: hsl(24 90% 48% / 0.05);
}
.btn-ghost-red {
    background: transparent;
    color: #dc2626;
    border-color: transparent;
}
.btn-ghost-red:hover:not(:disabled) {
    background-color: #fef2f2;
    color: #b91c1c;
}
.btn-destructive {
    background: var(--destructive);
    color: white;
    border-color: transparent;
}
.btn-sm {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    height: 2rem;
}
.btn-icon {
    padding: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius);
}
.btn-icon-sm {
    padding: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius);
}
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    height: 2.75rem;
}

/* ============================================================
   COMPONENT: Input / Label
   ============================================================ */
.input {
    display: block;
    width: 100%;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    background-color: white;
    border: 1px solid var(--input);
    border-radius: var(--radius);
    color: var(--foreground);
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
    outline: none;
}
.input:focus {
    border-color: var(--ring);
    box-shadow: 0 0 0 2px hsl(24 90% 48% / 0.15);
}
.input::placeholder {
    color: var(--muted-foreground);
}
.input.pl-10 {
    padding-left: 2.5rem;
}
.input.pr-10 {
    padding-right: 2.5rem;
}
.input[readonly] {
    background-color: var(--muted);
    cursor: default;
}

textarea.input {
    height: auto;
    min-height: 6rem;
    padding: 0.75rem;
    resize: vertical;
    line-height: 1.5;
}

.label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.375rem;
}

.input-wrapper {
    position: relative;
}
.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    pointer-events: none;
    display: flex;
    align-items: center;
}
.input-icon-right {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.input-icon-right:hover {
    color: var(--foreground);
}

/* ============================================================
   COMPONENT: Badge / Status Chip
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 0;
    border: 1px solid transparent;
    white-space: nowrap;
}
.badge-primary {
    background-color: hsl(24 90% 48% / 0.1);
    color: var(--primary);
}
.badge-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: hsl(24 90% 48% / 0.1);
    color: var(--primary);
}
.badge-coming-soon {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: hsl(220 9% 46% / 0.1);
    color: var(--muted-foreground);
}

/* ============================================================
   COMPONENT: Alert
   ============================================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 0.875rem;
}
.alert-destructive {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}
.alert-warning {
    background-color: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}
.alert-success {
    background-color: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}
.alert-info {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}
.alert svg,
.alert .material-symbols-outlined {
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============================================================
   COMPONENT: Card
   ============================================================ */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0;
}
.card-hover:hover {
    box-shadow: var(--shadow-card-hover);
    transition: box-shadow 0.2s ease;
}

/* ============================================================
   LAYOUT: Auth Pages
   ============================================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--hero-bg);
    position: relative;
    overflow: hidden;
}

/* Match marketing navbar (.navbar-inner + .section-container) horizontal inset */
.auth-header {
    position: relative;
    z-index: 20;
    padding: 0;
    height: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    flex-shrink: 0;
}
.auth-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 80rem; /* matches .section-container on index */
    margin-inline: auto;
    padding-inline: 1.5rem; /* matches .section-container mobile */
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}
@media (min-width: 1024px) {
    .auth-header-inner {
        padding-inline: 2rem; /* matches .section-container lg */
    }
}
.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.auth-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 0;
    border: 2px solid var(--primary);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-logo-text {
    font-family: "JetBrains Mono", monospace;
    font-size: 1.125rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.auth-back-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.15s;
}
.auth-back-link:hover {
    color: white;
}

.auth-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    position: relative;
    z-index: 10;
}
.auth-card-wrapper {
    width: 100%;
    max-width: 28rem;
}
.auth-card {
    background-color: white;
    border-radius: 0;
    box-shadow:
        0 20px 25px -5px rgb(0 0 0 / 0.08),
        0 8px 10px -6px rgb(0 0 0 / 0.05);
    border: 1px solid #f1f2f5;
    padding: 2rem;
}
.auth-card-title {
    font-family: "JetBrains Mono", monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}
.auth-card-subtitle {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}
.auth-footer {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1.5rem;
}

.auth-logo-symbol {
    color: #fff;
    font-size: 16px;
    line-height: 1;
    font-variation-settings:
        "FILL" 0,
        "wght" 400,
        "GRAD" 0,
        "opsz" 24;
}
.auth-back-icon {
    font-size: 14px;
    line-height: 1;
    font-variation-settings:
        "FILL" 0,
        "wght" 400,
        "GRAD" 0,
        "opsz" 24;
}
.auth-hero-icon {
    font-size: 24px;
    line-height: 1;
    font-variation-settings:
        "FILL" 0,
        "wght" 400,
        "GRAD" 0,
        "opsz" 24;
}
.auth-hero-icon-lg {
    font-size: 28px;
    line-height: 1;
    font-variation-settings:
        "FILL" 0,
        "wght" 400,
        "GRAD" 0,
        "opsz" 24;
}
.auth-success-hero-icon {
    font-size: 28px;
    line-height: 1;
    color: #10b981;
    font-variation-settings:
        "FILL" 0,
        "wght" 400,
        "GRAD" 0,
        "opsz" 24;
}
.auth-alert-icon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    font-variation-settings:
        "FILL" 0,
        "wght" 400,
        "GRAD" 0,
        "opsz" 24;
}
.auth-check-icon {
    font-size: 16px;
    line-height: 1;
    vertical-align: middle;
    font-variation-settings:
        "FILL" 0,
        "wght" 400,
        "GRAD" 0,
        "opsz" 24;
}
.auth-input-leading-icon {
    font-size: 16px;
    line-height: 1;
    font-variation-settings:
        "FILL" 0,
        "wght" 400,
        "GRAD" 0,
        "opsz" 24;
}
.auth-input-toggle-icon {
    font-size: 16px;
    line-height: 1;
    font-variation-settings:
        "FILL" 0,
        "wght" 400,
        "GRAD" 0,
        "opsz" 24;
}

.form-group {
    margin-bottom: 1rem;
}
.form-group:last-child {
    margin-bottom: 0;
}
.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.375rem;
    gap: 0.25rem 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 479px) {
    .auth-card .form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.125rem;
    }

    .auth-card .form-row .lms-auth-link-muted {
        align-self: flex-end;
    }
}

/* Password strength meter */
.pw-strength {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
}
.pw-strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 0;
    background-color: var(--muted);
    transition: background-color 0.3s;
}
.pw-strength-bar.active-weak {
    background-color: var(--destructive);
}
.pw-strength-bar.active-fair {
    background-color: #f59e0b;
}
.pw-strength-bar.active-good {
    background-color: #3b82f6;
}
.pw-strength-bar.active-strong {
    background-color: #10b981;
}
.pw-strength-label {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    color: var(--muted-foreground);
}

/* Invitation banner */
.invite-banner {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 0;
    background-color: hsl(24 90% 48% / 0.05);
    border: 1px solid hsl(24 90% 48% / 0.2);
}
.invite-banner-icon {
    width: 32px;
    height: 32px;
    border-radius: 0;
    background-color: hsl(24 90% 48% / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================================================
   LAYOUT: Dashboard
   ============================================================ */
.dashboard-layout {
    min-height: 100vh;
    background-color: #f8fafc;
    display: flex;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    color: var(--foreground);
    width: var(--sidebar-width);
    background-color: white;
    border-right: 1px solid var(--border);
    z-index: 50;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: none;
    transition:
        width var(--sidebar-toggle-duration) var(--sidebar-ease),
        transform var(--sidebar-toggle-duration) var(--sidebar-ease),
        box-shadow var(--sidebar-toggle-duration) var(--sidebar-ease);
}
.sidebar.sidebar--hover-timing {
    transition-duration:
        var(--sidebar-hover-duration), var(--sidebar-hover-duration),
        var(--sidebar-hover-duration);
}
.sidebar.sidebar--hover-timing .sidebar-nav-label,
.sidebar.sidebar--hover-timing .sidebar-logo-text,
.sidebar.sidebar--hover-timing .sidebar-user-info,
.sidebar.sidebar--hover-timing .sidebar-footer-text {
    transition-duration: var(--sidebar-hover-duration);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}
@media (min-width: 1024px) {
    .sidebar.collapsed.sidebar-hover-expanded {
        width: var(--sidebar-width);
        box-shadow: 4px 0 24px rgba(15, 23, 42, 0.12);
    }
}
.sidebar.mobile-closed {
    transform: translateX(-100%);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
}
.sidebar-overlay.active {
    display: block;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 1rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.sidebar-header > div:last-child {
    flex-shrink: 0;
}
.sidebar.collapsed .sidebar-header {
    justify-content: space-between;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
}
.sidebar-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 0;
    background: transparent;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sidebar-logo-text {
    font-family: "JetBrains Mono", monospace;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    transition:
        opacity var(--sidebar-toggle-duration) var(--sidebar-ease),
        transform var(--sidebar-toggle-duration) var(--sidebar-ease),
        max-width var(--sidebar-toggle-duration) var(--sidebar-ease);
}
@media (min-width: 1024px) {
    .sidebar.collapsed:not(.sidebar-hover-expanded) .sidebar-logo-text {
        opacity: 0;
        transform: translateX(-6px);
        max-width: 0;
        pointer-events: none;
    }
}

.sidebar-mobile-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 0;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
}

.sidebar-user {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.sidebar.collapsed .sidebar-user {
    display: flex;
    justify-content: flex-start;
    padding: 1rem 0.75rem;
}
.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 0;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}
.sidebar-avatar-lg {
    width: 36px;
    height: 36px;
    border-radius: 0;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}
.sidebar-user-info {
    min-width: 0;
    transition:
        opacity var(--sidebar-toggle-duration) var(--sidebar-ease),
        transform var(--sidebar-toggle-duration) var(--sidebar-ease),
        max-width var(--sidebar-toggle-duration) var(--sidebar-ease);
}
.sidebar-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-user-email {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (min-width: 1024px) {
    .sidebar.collapsed:not(.sidebar-hover-expanded) .sidebar-user-info {
        opacity: 0;
        transform: translateX(-6px);
        max-width: 0;
        overflow: hidden;
        pointer-events: none;
    }
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    border: none;
    background: transparent;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
    text-decoration: none;
    width: 100%;
    text-align: left;
    justify-content: flex-start;
}
.sidebar-nav-item:hover {
    background-color: var(--muted);
    color: var(--foreground);
}
.sidebar-nav-item.active {
    background-color: hsl(24 90% 48% / 0.1);
    color: var(--primary);
    box-shadow: inset 3px 0 0 0 var(--primary);
}
.sidebar-nav-item svg,
.sidebar-nav-item .material-symbols-outlined {
    flex-shrink: 0;
    width: 1.5rem;
    min-width: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sidebar-nav-item .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
    font-variation-settings:
        "FILL" 0,
        "wght" 400,
        "GRAD" 0,
        "opsz" 24;
}
.sidebar-logo-symbol {
    color: #fff;
    font-size: 16px;
    line-height: 1;
    font-variation-settings:
        "FILL" 0,
        "wght" 400,
        "GRAD" 0,
        "opsz" 24;
}
.sidebar-mobile-close .material-symbols-outlined {
    font-size: 16px;
    line-height: 1;
}
#mobile-menu-btn .material-symbols-outlined {
    font-size: 20px;
}
#fullscreen-btn .material-symbols-outlined {
    font-size: 16px;
}
.back-to-site .material-symbols-outlined {
    font-size: 14px;
    line-height: 1;
    vertical-align: middle;
}
.user-menu-trigger > span .material-symbols-outlined {
    font-size: 14px;
    line-height: 1;
}
.dropdown-item .material-symbols-outlined {
    font-size: 16px;
    line-height: 1;
}
.license-card-type-icon {
    font-size: 20px;
    line-height: 1;
}
.dashboard-icon-20 {
    font-size: 20px;
    line-height: 1;
}
.modal-title .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
}
.modal-success-symbol {
    font-size: 28px;
    line-height: 1;
    color: #10b981;
}
.help-banner-symbol {
    font-size: 24px;
    line-height: 1;
    color: #fff;
}
.doc-link-external-icon {
    font-size: 16px;
    line-height: 1;
    color: var(--muted-foreground);
    flex-shrink: 0;
    margin-top: 2px;
}
.get-app-hero-icon {
    font-size: 28px;
    line-height: 1;
    color: #fff;
}
.get-app-check-icon {
    font-size: 16px;
    line-height: 1;
    color: #10b981;
    flex-shrink: 0;
}
.dashboard-spin-icon {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    vertical-align: -0.2em;
}
.btn-sm .btn-sm-icon {
    font-size: 12px;
    line-height: 1;
}
.profile-info-icon .material-symbols-outlined {
    font-size: 16px;
    line-height: 1;
}
.input-icon-right .material-symbols-outlined {
    font-size: 16px;
    line-height: 1;
}

.sidebar-nav-label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-align: left;
    transition:
        opacity var(--sidebar-toggle-duration) var(--sidebar-ease),
        transform var(--sidebar-toggle-duration) var(--sidebar-ease),
        max-width var(--sidebar-toggle-duration) var(--sidebar-ease);
}
@media (min-width: 1024px) {
    .sidebar.collapsed:not(.sidebar-hover-expanded) .sidebar-nav-label {
        opacity: 0;
        transform: translateX(-8px);
        max-width: 0;
        flex: 0 0 auto;
        pointer-events: none;
    }
}

.sidebar-footer {
    padding: 1rem 0.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.sidebar-footer-text {
    font-size: 0.625rem;
    color: var(--muted-foreground);
    padding: 0.5rem 0.75rem 0;
    transition:
        opacity var(--sidebar-toggle-duration) var(--sidebar-ease),
        transform var(--sidebar-toggle-duration) var(--sidebar-ease),
        max-height var(--sidebar-toggle-duration) var(--sidebar-ease);
}
@media (min-width: 1024px) {
    .sidebar.collapsed:not(.sidebar-hover-expanded) .sidebar-footer-text {
        opacity: 0;
        transform: translateY(4px);
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin: 0;
        overflow: hidden;
        pointer-events: none;
    }
}

/* Dashboard Main Area */
.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0; /* allow flex item to shrink so wide content does not cause x-scroll */
    margin-left: var(--sidebar-width);
    transition: margin-left var(--sidebar-toggle-duration) var(--sidebar-ease);
}
.dashboard-main.collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

/* Top Navbar */
.topnav {
    height: var(--navbar-height);
    background-color: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 30;
    flex-shrink: 0;
}
.topnav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.topnav-right {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.topnav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: background-color 0.15s;
    position: relative;
}
.topnav-icon-btn:hover {
    background-color: var(--muted);
}
.notif-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    background-color: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-site {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: color 0.15s;
}
.back-to-site:hover {
    color: var(--foreground);
}
.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.5rem;
    border-radius: var(--radius);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.15s;
}
.user-menu-trigger:hover {
    background-color: var(--muted);
}
.topnav-user-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.25;
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    min-width: 0;
    padding: 2rem;
}
.dashboard-footer {
    padding: 1rem 2rem;
    border-top: 1px solid var(--border);
    background-color: white;
    min-width: 0;
}
.dashboard-footer p {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    overflow-wrap: anywhere;
}

/* Page header */
.page-header {
    margin-bottom: 1.5rem;
}
.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
}
.page-subtitle {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}
.page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* ============================================================
   COMPONENT: Dropdown / Popover
   ============================================================ */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
}
.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 100;
    min-width: 12rem;
    padding: 0.25rem;
    animation: fadeIn 0.15s ease;
    display: none;
}
.dropdown-menu.open {
    display: block;
}
.dropdown-menu.w-80 {
    width: 20rem;
}
.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--foreground);
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    transition: background-color 0.1s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}
.dropdown-item:hover {
    background-color: var(--muted);
}
.dropdown-item.danger {
    color: #dc2626;
}
.dropdown-item.danger:hover {
    background-color: #fef2f2;
}
.dropdown-separator {
    height: 1px;
    background-color: var(--border);
    margin: 0.25rem 0;
}
.dropdown-user-info {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.dropdown-user-info p:first-child {
    font-size: 0.875rem;
    font-weight: 600;
}
.dropdown-user-info p:last-child {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Notification dropdown */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid hsl(220 13% 91% / 0.5);
    cursor: pointer;
    transition: background-color 0.1s;
}
.notif-item:last-child {
    border-bottom: none;
}
.notif-item:hover {
    background-color: hsl(220 14% 96% / 0.5);
}
.notif-item.unread {
    background-color: hsl(24 90% 48% / 0.03);
}
.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}
.notif-dot.read {
    border: 1px solid hsl(220 9% 46% / 0.3);
}
.notif-dot.unread {
    background-color: var(--primary);
}
.notif-title {
    font-size: 0.875rem;
    font-weight: 500;
}
.notif-title.read {
    color: var(--muted-foreground);
}
.notif-desc {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 2px;
}
.notif-time {
    font-size: 0.6875rem;
    color: hsl(220 9% 46% / 0.7);
    margin-top: 4px;
}

/* ============================================================
   COMPONENT: Modal / Dialog
   ============================================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.15s ease;
}
.modal-backdrop.hidden {
    display: none;
}
.modal {
    background-color: white;
    border-radius: 0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    max-width: 24rem;
    width: 100%;
    padding: 1.5rem;
    animation: fadeIn 0.2s ease;
}
.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.modal-success {
    text-align: center;
    padding: 1rem 0;
}
.modal-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 0;
    background-color: #ecfdf5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.modal-footer {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* ============================================================
   COMPONENT: Table
   ============================================================ */
.table-card {
    background-color: white;
    border-radius: 0;
    border: 1px solid var(--border);
    overflow: hidden;
}
.table-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.table-card-header h2 {
    font-weight: 600;
    color: var(--foreground);
    font-size: 0.9375rem;
}
.table-card-header p {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 2px;
}
.table-scroll {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
thead tr {
    border-bottom: 1px solid var(--border);
    background-color: hsl(220 14% 96% / 0.3);
}
thead th {
    padding: 0.75rem 1.25rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background-color 0.1s;
}
tbody tr:last-child {
    border-bottom: none;
}
tbody tr:hover {
    background-color: hsl(220 14% 96% / 0.3);
}
tbody td {
    padding: 0.875rem 1.25rem;
}

/* ============================================================
   COMPONENT: Tabs
   ============================================================ */
.tabs-list {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    padding-top: 1rem;
}
.tab-btn {
    padding-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: -1px;
}
.tab-btn:hover {
    color: var(--foreground);
}
.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.tab-content {
    display: none;
    padding: 1.5rem;
}
.tab-content.active {
    display: block;
}

/* ============================================================
   COMPONENT: Toast
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}
.toast {
    background-color: var(--foreground);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-card);
    pointer-events: auto;
    animation: toastSlide 0.3s ease forwards;
    max-width: 20rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.toast.success {
    background-color: #065f46;
}
.toast.error {
    background-color: #991b1b;
}
.toast.info {
    background-color: var(--primary);
}
.toast.removing {
    animation: toastSlide 0.3s ease reverse forwards;
}

/* ============================================================
   COMPONENT: Skeleton
   ============================================================ */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
.skeleton {
    background: linear-gradient(
        90deg,
        var(--muted) 25%,
        #e9eaee 50%,
        var(--muted) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

/* ============================================================
   COMPONENT: Filter / Toggle pills
   ============================================================ */
.filter-group {
    display: flex;
    gap: 0.25rem;
    background-color: hsl(220 14% 96% / 0.5);
    border-radius: var(--radius);
    padding: 0.25rem;
}
.filter-btn {
    padding: 0.25rem 0.75rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s;
    text-transform: capitalize;
}
.filter-btn:hover {
    color: var(--foreground);
}
.filter-btn.active {
    background-color: white;
    color: var(--foreground);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   OVERVIEW: License Cards
   ============================================================ */
.license-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}
.license-card {
    background-color: white;
    border-radius: 0;
    border: 1px solid var(--border);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: box-shadow 0.2s;
}
.license-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.license-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 0;
    background-color: hsl(24 90% 48% / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.license-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.75rem;
}
.license-card-detail-label {
    color: var(--muted-foreground);
    margin-bottom: 2px;
}
.license-card-detail-value {
    font-weight: 500;
    color: var(--foreground);
}
.license-card-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

/* ============================================================
   PROFILE
   ============================================================ */
.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}
.profile-info-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
/* Text column: min-width 0 so ellipsis / wrapping works inside flex row */
.profile-info-row > .profile-info-icon + div {
    min-width: 0;
    flex: 1;
}
.profile-info-icon {
    width: 32px;
    height: 32px;
    border-radius: 0;
    background-color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--muted-foreground);
}

/* ============================================================
   GET APP
   ============================================================ */
.revit-badge {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    background-color: hsl(220 14% 96% / 0.3);
}
.req-row {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid hsl(220 13% 91% / 0.5);
}
.req-row:last-child {
    border-bottom: none;
}
.req-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    width: 9rem;
    flex-shrink: 0;
}
.req-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}
.changelog-item {
    border-bottom: 1px solid var(--border);
}
.changelog-item:last-child {
    border-bottom: none;
}
.changelog-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s;
}
.changelog-btn:hover {
    background-color: hsl(220 14% 96% / 0.3);
}
.changelog-body {
    padding: 0 1.5rem 1rem;
    display: none;
}
.changelog-body.open {
    display: block;
}
.changelog-change-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.375rem;
}

/* ============================================================
   DOCUMENTATION
   ============================================================ */
.doc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.doc-link-card {
    background-color: white;
    border-radius: 0;
    border: 1px solid var(--border);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
}
.doc-link-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: hsl(24 90% 48% / 0.3);
}
.doc-link-card:hover .doc-link-title {
    color: var(--primary);
}
.doc-link-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--foreground);
    transition: color 0.15s;
}
.doc-link-desc {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

/* ============================================================
   BILLING: Summary cards
   ============================================================ */
.billing-summary {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}
.billing-summary-card {
    background-color: white;
    border-radius: 0;
    border: 1px solid var(--border);
    padding: 1rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .sm\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .sm\:flex-row {
        flex-direction: row;
    }
    .sm\:items-center {
        align-items: center;
    }
    .sm\:block {
        display: block;
    }
    .billing-summary {
        grid-template-columns: repeat(3, 1fr);
    }
    .doc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .md\:flex-row {
        flex-direction: row;
    }
    .md\:block {
        display: block;
    }
    .license-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .profile-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    }
}

@media (min-width: 1024px) {
    .dashboard-content {
        padding: 2rem;
    }
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .sidebar-mobile-close {
        display: none;
    }
    .sidebar {
        transform: translateX(0) !important;
    }
    .license-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .topnav-menu-btn {
        display: none;
    }
}

@media (max-width: 1023px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width) !important;
        box-shadow: none !important;
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    .sidebar.collapsed .sidebar-nav-label,
    .sidebar.collapsed .sidebar-logo-text,
    .sidebar.collapsed .sidebar-user-info,
    .sidebar.collapsed .sidebar-footer-text {
        opacity: 1 !important;
        transform: none !important;
        max-width: none !important;
        max-height: none !important;
        pointer-events: auto !important;
        flex: 1 !important;
        overflow: visible !important;
    }
    .sidebar.collapsed .sidebar-footer-text {
        flex: none !important;
        padding-top: 0.5rem !important;
    }
    .sidebar.collapsed .sidebar-nav-label {
        flex: 1 !important;
    }
    .dashboard-main {
        margin-left: 0 !important;
    }
    .sidebar-mobile-close {
        display: flex;
    }
    .back-to-site {
        display: none;
    }
}

@media (max-width: 767px) {
    .auth-body {
        padding: 1.5rem 1rem;
        align-items: flex-start;
    }

    .auth-card-wrapper {
        max-width: 100%;
        min-width: 0;
    }

    .auth-card {
        padding: 1.25rem;
    }

    .auth-card-title {
        font-size: 1.35rem;
        line-height: 1.2;
    }

    .auth-card .lms-auth-card-header .auth-card-title {
        word-break: break-word;
    }

    .input {
        min-height: 2.75rem;
        font-size: 1rem;
    }

    textarea.input {
        font-size: 1rem;
        line-height: 1.55;
    }

    .label {
        font-size: 0.9375rem;
    }

    .auth-card form.space-y-4 > * + * {
        margin-top: 1.125rem;
    }

    .auth-card .btn-lg {
        min-height: 3rem;
        height: auto;
        padding-block: 0.75rem;
    }

    .alert {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 639px) {
    .dashboard-content {
        padding: 1rem;
    }
    .topnav {
        min-width: 0;
        padding: 0 1rem;
    }
    .hide-mobile {
        display: none !important;
    }
}

/* ============================================================
   MISC
   ============================================================ */
.space-y-1 > * + * {
    margin-top: 0.25rem;
}
.space-y-2 > * + * {
    margin-top: 0.5rem;
}
.space-y-3 > * + * {
    margin-top: 0.75rem;
}
.space-y-4 > * + * {
    margin-top: 1rem;
}
.space-y-5 > * + * {
    margin-top: 1.25rem;
}
.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.secure-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 1rem;
}
.secure-note-icon {
    font-size: 14px;
    line-height: 1;
    color: #10b981;
    flex-shrink: 0;
    font-variation-settings:
        "FILL" 0,
        "wght" 400,
        "GRAD" 0,
        "opsz" 24;
}

/* License key display */
.license-key-box {
    flex: 1;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.875rem;
    background-color: var(--muted);
    padding: 0.625rem 1rem;
    border-radius: var(--radius);
    color: var(--foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem;
    text-align: center;
}
.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 0;
    background-color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Help/contact banner */
.help-banner {
    background-color: hsl(24 90% 48% / 0.05);
    border: 1px solid hsl(24 90% 48% / 0.1);
    border-radius: 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.help-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
@media (min-width: 640px) {
    .help-banner {
        flex-direction: row;
        align-items: center;
    }
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.pagination-btns {
    display: flex;
    gap: 0.25rem;
}
.pagination-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.15s;
}
.pagination-btn:hover {
    background-color: var(--muted);
}
.pagination-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Back button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    transition: all 0.15s;
    margin-bottom: 0.75rem;
}
.back-btn:hover {
    background-color: var(--muted);
    color: var(--foreground);
}

/* Col span utilities */
.col-span-2 {
    grid-column: span 2;
}
.col-span-3 {
    grid-column: span 3;
}

/* Notification type dots */
.notif-type-warning {
    background-color: #f59e0b;
}
.notif-type-info {
    background-color: #3b82f6;
}
.notif-type-success {
    background-color: #10b981;
}

/* Max width utilities */
.max-w-xs {
    max-width: 20rem;
}
.max-w-sm {
    max-width: 24rem;
}

/* border amber */
.border-amber {
    border-color: #fcd34d;
}

/* subscription page */
.subscription-card {
    background-color: white;
    border-radius: 0;
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 28rem;
    margin: 0 auto;
}
.subscription-icon {
    width: 64px;
    height: 64px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.subscription-icon.success {
    background-color: #ecfdf5;
}
.subscription-icon.cancel {
    background-color: #fff7ed;
}
