/* =========================================================
   LPMS Design System — Emerald/White (rounded soft SaaS)
   Inspired by: Lordbank, MyCloud, TeamHub, Dwison
   ========================================================= */

/* ---------- Base ---------- */
html, body {
    font-family: 'Noto Sans Thai', 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-900);
    letter-spacing: -0.003em;
    background: #f5f7fa;
}

h1, h2, h3, h4 { letter-spacing: -0.012em; }

[x-cloak] { display: none !important; }

/* Subtle scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--surface-300);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #94a3b8; background-clip: padding-box; border: 2px solid transparent; }

::selection { background: var(--brand-100); color: var(--brand-900); }

/* ---------- Card (rounded, floating) ---------- */
.card {
    background: var(--surface-0);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 20px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.03),
        0 4px 20px -6px rgba(15, 23, 42, 0.06);
}
.card-hover { transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.card-hover:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 32px -8px rgba(15, 23, 42, 0.12);
}
.card-elevated {
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.04),
        0 20px 48px -12px rgba(15, 23, 42, 0.14);
}
.card-sm { border-radius: 16px; }
.card-lg { border-radius: 24px; }
.card-pill { border-radius: 32px; }

/* Pastel card variants */
.card-mint   { background: #ecfdf5; border-color: #d1fae5; }
.card-blue   { background: #eff6ff; border-color: #dbeafe; }
.card-amber  { background: #fffbeb; border-color: #fef3c7; }
.card-peach  { background: #fff7ed; border-color: #fed7aa; }
.card-violet { background: #faf5ff; border-color: #e9d5ff; }
.card-slate  { background: #f8fafc; border-color: #e2e8f0; }

/* Card with emerald gradient (hero) */
.card-emerald-gradient {
    background: linear-gradient(135deg, #059669 0%, #065f46 100%);
    border: 0;
    color: #fff;
}
.card-emerald-gradient * { color: inherit; }

/* ---------- Button (rounded, soft) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5625rem 1.125rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.25;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.08s;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.btn-sm { padding: 0.375rem 0.875rem; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 15px; border-radius: 14px; }
.btn-xl { padding: 0.875rem 1.75rem; font-size: 16px; border-radius: 16px; }
.btn-icon {
    padding: 0; width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
}
.btn-icon-sm { width: 34px; height: 34px; border-radius: 10px; }

.btn-primary {
    background: var(--brand-600);
    color: #fff;
    box-shadow: 0 1px 2px rgba(5, 150, 105, 0.25), 0 8px 20px -8px rgba(5, 150, 105, 0.45);
}
.btn-primary:hover {
    background: var(--brand-700);
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3), 0 12px 28px -8px rgba(5, 150, 105, 0.5);
}

.btn-secondary {
    background: var(--surface-0);
    color: var(--text-900);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.btn-secondary:hover {
    background: #fbfcfe;
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.btn-ghost { background: transparent; color: var(--text-700); }
.btn-ghost:hover { background: rgba(15, 23, 42, 0.05); color: var(--text-900); }

.btn-soft {
    background: var(--brand-50);
    color: var(--brand-700);
}
.btn-soft:hover { background: var(--brand-100); color: var(--brand-800); }

.btn-danger {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 1px 2px rgba(220, 38, 38, 0.25), 0 8px 20px -8px rgba(220, 38, 38, 0.45);
}
.btn-danger:hover { background: #b91c1c; }

.btn-danger-soft {
    background: var(--danger-bg);
    color: var(--danger);
}
.btn-danger-soft:hover { background: #fecaca; }

.btn-link {
    background: transparent; color: var(--brand-700);
    padding: 0; border-radius: 4px;
}
.btn-link:hover { color: var(--brand-800); text-decoration: underline; }

/* Pill button */
.btn-pill { border-radius: 999px; }

/* ---------- Input ---------- */
/* !important needed to override @tailwindcss/forms plugin reset that loads after this file */
.input, .select, .textarea {
    width: 100%;
    padding: 0.625rem 0.875rem !important;
    border-radius: 14px !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    background: var(--surface-0);
    font-size: 15px !important;
    color: var(--text-900);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.input:hover, .select:hover, .textarea:hover { border-color: rgba(15, 23, 42, 0.22) !important; }
.input:focus, .select:focus, .textarea:focus {
    outline: none !important;
    border-color: var(--brand-500) !important;
    box-shadow: 0 0 0 4px var(--ring) !important;
}
.input::placeholder, .textarea::placeholder { color: var(--text-400); }

.input-lg { padding: 0.875rem 1.125rem !important; font-size: 16px !important; border-radius: 18px !important; }
.input-sm { padding: 0.4375rem 0.75rem !important; font-size: 13px !important; border-radius: 12px !important; }

.input-error, .input-error:focus {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12) !important;
}

.textarea { min-height: 92px; resize: vertical; line-height: 1.55; }

.input-code {
    font-family: 'SF Mono', ui-monospace, Menlo, Monaco, Consolas, 'Courier New', monospace;
    font-size: 13px;
}

.input-helper {
    font-size: 13px;
    color: var(--text-500);
    margin-top: 0.375rem;
}
.input-helper-error { color: var(--danger); }

.label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-700);
    margin-bottom: 0.4375rem;
}
.label-required::after { content: ' *'; color: var(--danger); }

.input-group { display: flex; align-items: stretch; }
.input-group > .input { border-radius: 12px 0 0 12px; border-right: 0; }
.input-group > .input-addon {
    display: inline-flex; align-items: center;
    padding: 0 0.875rem;
    background: var(--surface-50);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0 12px 12px 0;
    color: var(--text-500); font-size: 14px;
}

.form-group { margin-bottom: 1.25rem; }
.form-grid-2, .form-grid-3 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) {
    .form-grid-2 { grid-template-columns: 1fr 1fr; }
    .form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- Toggle switch ---------- */
.toggle {
    position: relative; display: inline-block;
    width: 40px; height: 22px;
    cursor: pointer;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; inset: 0;
    background: var(--surface-300);
    border-radius: 999px;
    transition: background 0.2s;
}
.toggle-slider::before {
    content: ''; position: absolute;
    left: 2px; top: 2px;
    width: 18px; height: 18px;
    background: #fff; border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    transition: transform 0.2s;
}
.toggle input:checked + .toggle-slider { background: var(--brand-600); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }
.toggle input:disabled + .toggle-slider { opacity: 0.5; cursor: not-allowed; }

/* ---------- Badge / chip (pill) ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 0.3125rem;
    padding: 0.1875rem 0.625rem;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}
.badge-gray    { background: var(--surface-100); color: var(--text-700); }
.badge-blue    { background: var(--info-bg); color: #1e40af; }
.badge-green   { background: var(--success-bg); color: #166534; }
.badge-red     { background: var(--danger-bg); color: #991b1b; }
.badge-amber   { background: var(--warn-bg); color: #92400e; }
.badge-emerald { background: var(--brand-100); color: var(--brand-800); }
.badge-primary { background: var(--brand-100); color: var(--brand-800); }
.badge-indigo  { background: #e0e7ff; color: #3730a3; }

.badge-dot::before {
    content: ''; display: inline-block;
    width: 6px; height: 6px; border-radius: 50%;
    background: currentColor;
}

.badge-solid-emerald { background: var(--brand-600); color: #fff; }

/* ---------- Sidebar (filled pill active state) ---------- */
.sidebar-link {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 12px;
    color: var(--text-700);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    text-decoration: none;
}
.sidebar-link:hover { background: rgba(15, 23, 42, 0.04); color: var(--text-900); }
.sidebar-link.active {
    background: var(--brand-600);
    color: #fff;
    box-shadow: 0 2px 6px -1px rgba(5, 150, 105, 0.4), 0 8px 20px -8px rgba(5, 150, 105, 0.5);
}
.sidebar-link svg { width: 18px; height: 18px; color: var(--text-400); flex-shrink: 0; }
.sidebar-link:hover svg { color: var(--text-600); }
.sidebar-link.active svg { color: #fff; }

.sidebar-section-title {
    padding: 1rem 0.875rem 0.375rem;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--text-400);
}

/* ---------- Topbar ---------- */
.topbar {
    height: 64px;
    background: var(--surface-0);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
@media (min-width: 768px) { .topbar { padding: 0 1.75rem; } }

/* ---------- Page header ---------- */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-900);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.page-subtitle {
    font-size: 14px;
    color: var(--text-500);
    margin-top: 0.375rem;
}
@media (min-width: 768px) { .page-title { font-size: 28px; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--text-500); margin-bottom: 0.5rem; }
.breadcrumb ol {
    list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem;
    padding: 0; margin: 0;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.375rem; }
.breadcrumb li:not(:last-child)::after {
    content: '›';
    color: var(--text-400);
    margin-left: 0.375rem;
}
.breadcrumb a { color: var(--text-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-700); text-decoration: underline; }
.breadcrumb li[aria-current='page'] { color: var(--text-700); font-weight: 500; }

/* ---------- Tabs (pill chip style) ---------- */
.tabs {
    display: flex; gap: 0.375rem;
    padding: 0.25rem;
    background: rgba(15, 23, 42, 0.04);
    border-radius: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    width: fit-content;
    max-width: 100%;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    padding: 0.5rem 1rem;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-600);
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s, box-shadow 0.15s;
    background: none;
    border: 0;
}
.tab:hover { color: var(--text-900); }
.tab.active, .tab[aria-selected='true'] {
    color: var(--brand-700);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
}

/* Underline tabs variant (for page tabs) */
.tabs-underline {
    background: none;
    padding: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0;
    gap: 0;
}
.tabs-underline .tab {
    border-radius: 0;
    padding: 0.875rem 1rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.tabs-underline .tab.active {
    background: transparent;
    box-shadow: none;
    color: var(--brand-700);
    border-bottom-color: var(--brand-600);
}

/* ---------- Table (inside rounded card) ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.875rem 1rem;
    background: rgba(15, 23, 42, 0.02);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.tbl td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    font-size: 14px;
    color: var(--text-900);
    vertical-align: middle;
}
.tbl tr:hover td { background: rgba(5, 150, 105, 0.02); }
.tbl tr:last-child td { border-bottom: 0; }

.data-table-toolbar {
    display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.02);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

/* ---------- Pagination ---------- */
.pagination {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 1rem;
}
.pagination-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 0.625rem;
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-700);
    text-decoration: none;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.pagination-btn:hover { background: rgba(15, 23, 42, 0.05); }
.pagination-btn.active {
    background: var(--brand-600);
    color: #fff;
    box-shadow: 0 1px 2px rgba(5, 150, 105, 0.2), 0 4px 12px -2px rgba(5, 150, 105, 0.35);
}
.pagination-btn.active:hover { background: var(--brand-700); }
.pagination-ellipsis { padding: 0 0.25rem; color: var(--text-400); font-size: 13px; }

/* ---------- Dropzone ---------- */
.dropzone {
    border: 2px dashed rgba(15, 23, 42, 0.15);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.02);
    transition: border-color 0.18s, background 0.18s;
    cursor: pointer;
}
.dropzone:hover, .dropzone.drag-over {
    border-color: var(--brand-500);
    background: var(--brand-50);
}
.dropzone-icon { display: inline-flex; margin-bottom: 0.625rem; color: var(--text-400); }
.dropzone:hover .dropzone-icon, .dropzone.drag-over .dropzone-icon { color: var(--brand-600); }

/* ---------- Progress ---------- */
.progress {
    width: 100%; height: 8px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-500), var(--brand-600));
    transition: width 0.3s ease-out;
    border-radius: 999px;
}

/* ---------- Toast ---------- */
.toast-container {
    position: fixed;
    top: 1rem; right: 1rem;
    z-index: 9999;
    display: flex; flex-direction: column; gap: 0.625rem;
    max-width: 380px;
}
.toast {
    padding: 0.875rem 1.125rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.04),
        0 16px 32px -8px rgba(15, 23, 42, 0.12);
    font-size: 14px;
    animation: slideIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.toast-success { border-left: 4px solid var(--success); }
.toast-error   { border-left: 4px solid var(--danger); }
.toast-info    { border-left: 4px solid var(--info); }
.toast-warn    { border-left: 4px solid var(--warn); }
@keyframes slideIn {
    from { transform: translateX(24px) scale(0.96); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

/* ---------- Modal ---------- */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(6px);
    z-index: 50;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.18s ease-out;
}
.modal {
    background: #fff;
    border-radius: 22px;
    box-shadow:
        0 4px 8px rgba(15, 23, 42, 0.05),
        0 32px 64px -16px rgba(15, 23, 42, 0.25);
    max-width: 640px; width: 100%;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    display: flex; flex-direction: column;
    animation: slideUp 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.05);
}
.modal-sm  { max-width: 440px; }
.modal-lg  { max-width: 820px; }
.modal-xl  { max-width: 1100px; }
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.125rem 1.375rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}
.modal-title { font-size: 16px; font-weight: 600; color: var(--text-900); }
.modal-body {
    padding: 1.375rem;
    overflow-y: auto; flex: 1;
}
.modal-footer {
    display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem;
    padding: 1rem 1.375rem;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    background: rgba(15, 23, 42, 0.02);
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp {
    from { transform: translateY(16px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ---------- Skeleton ---------- */
.skeleton {
    background: linear-gradient(90deg, var(--surface-100) 25%, var(--surface-200) 50%, var(--surface-100) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.4s infinite;
    border-radius: 8px;
}
@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- Empty state ---------- */
.empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    color: var(--text-500);
}
.empty-state-icon {
    display: inline-flex;
    width: 64px; height: 64px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.03);
    align-items: center; justify-content: center;
    margin-bottom: 0.875rem;
    color: var(--text-400);
}
.empty-state-message {
    font-size: 14px;
    color: var(--text-500);
    margin-bottom: 0.875rem;
}
.empty-state-cta { margin-top: 0.625rem; }

/* ---------- Stat card (big circle icon + big number) ---------- */
.stat-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 4px 16px -6px rgba(15, 23, 42, 0.06);
}
.stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px -8px rgba(15, 23, 42, 0.1);
}
.stat-card-icon {
    width: 48px; height: 48px;
    border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 0.875rem;
}
.stat-card-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-500);
    margin-bottom: 0.25rem;
}
.stat-card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-900);
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.stat-card-subtitle {
    font-size: 12px;
    color: var(--text-400);
    margin-top: 0.375rem;
}
.stat-card-trend {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.stat-card-trend-up   { background: var(--success-bg); color: #166534; }
.stat-card-trend-down { background: var(--danger-bg); color: #991b1b; }

/* ---------- Dropdown menu ---------- */
.dropdown-menu {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.04),
        0 20px 40px -8px rgba(15, 23, 42, 0.18);
    padding: 6px;
    min-width: 220px;
    z-index: 50;
    animation: slideUp 0.18s ease-out;
}
.dropdown-item {
    display: flex; align-items: center; gap: 0.625rem;
    padding: 0.5625rem 0.75rem;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-900);
    text-decoration: none;
    cursor: pointer;
    background: none; border: 0;
    width: 100%; text-align: left;
    transition: background 0.12s;
}
.dropdown-item:hover { background: rgba(15, 23, 42, 0.04); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: var(--danger-bg); }
.dropdown-divider { height: 1px; background: rgba(15, 23, 42, 0.06); margin: 5px 0; }

/* ---------- Focus rings (keyboard) ---------- */
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
    border-radius: 10px;
}
.input:focus-visible { outline: none; }

/* ---------- Utility ---------- */
.link-primary { color: var(--brand-700); text-decoration: none; font-weight: 500; }
.link-primary:hover { color: var(--brand-800); text-decoration: underline; }

.divider { height: 1px; background: rgba(15, 23, 42, 0.06); margin: 1rem 0; }

.kbd {
    display: inline-block;
    padding: 0.125rem 0.4375rem;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-family: 'SF Mono', ui-monospace, Menlo, monospace;
    font-size: 11px;
    color: var(--text-700);
}

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

.animate-fade-in { animation: fadeIn 0.2s ease-out; }
.animate-slide-up { animation: slideUp 0.25s ease-out; }

/* Subtle pattern for hero backgrounds */
.bg-dots {
    background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1.5px);
    background-size: 24px 24px;
}
