/* ── Reset & Variables ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f1f5f9; --bg-card: #fff; --bg-sidebar: #1e3a8a;
  --border: #e2e8f0; --border-input: #cbd5e1;
  --text: #0f172a; --text-muted: #64748b; --text-faint: #94a3b8;
  --accent: #2563eb; --accent-hover: #1d4ed8;
  --danger: #ef4444; --success: #22c55e; --warning: #f59e0b;
  --shadow: 0 1px 3px rgba(0,0,0,.08),0 4px 16px rgba(0,0,0,.04);
  --shadow-hover: 0 4px 12px rgba(0,0,0,.12),0 8px 32px rgba(0,0,0,.06);
  --radius: .75rem;
}
.dark {
  --bg: #0d1117; --bg-card: #161b27; --bg-sidebar: #0d1117;
  --border: #1e2d45; --border-input: #2a3a55;
  --text: #e2e8f0; --text-muted: #8b9ab5; --text-faint: #4a5568;
}
body { font-family: Inter, system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }

/* ── Layout ────────────────────────────────────────────────────── */
.app-layout { display: flex; height: 100vh; overflow: hidden; }
.app-content { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.app-main { flex: 1; overflow-y: auto; padding: 1.5rem; background: var(--bg); }

/* ── Sidebar ───────────────────────────────────────────────────── */
.sidebar { width: 240px; background: var(--bg-sidebar); border-right: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; transition: width .3s; flex-shrink: 0; }
.sidebar.collapsed { width: 64px; }
.sidebar-logo { display: flex; align-items: center; gap: .75rem; padding: 1.25rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.logo-icon { width: 32px; height: 32px; background: #3b82f6; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.logo-text { font-weight: 700; font-size: 1rem; color: #fff; white-space: nowrap; overflow: hidden; }
.sidebar-nav { flex: 1; padding: 1rem .5rem; display: flex; flex-direction: column; gap: .25rem; }
.nav-item { display: flex; align-items: center; gap: .75rem; padding: .625rem .75rem; border-radius: .75rem; color: rgba(255,255,255,.6); font-weight: 500; transition: all .15s; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: rgba(59,130,246,.8); color: #fff; box-shadow: 0 0 20px rgba(59,130,246,.3); }
.nav-icon { font-size: 1.1rem; flex-shrink: 0; }
.nav-label { white-space: nowrap; overflow: hidden; }
.sidebar-user { padding: 1rem; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: .75rem; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#3b82f6,#6366f1); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .875rem; flex-shrink: 0; }
.user-info { min-width: 0; }
.user-name { color: #fff; font-size: .875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { color: rgba(255,255,255,.4); font-size: .75rem; }

/* ── Header ────────────────────────────────────────────────────── */
.app-header { background: var(--bg-card); border-bottom: 1px solid var(--border); padding: .75rem 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.menu-btn { background: none; border: none; cursor: pointer; padding: .5rem; border-radius: .5rem; font-size: 1.25rem; color: var(--text-muted); }
.menu-btn:hover { background: rgba(0,0,0,.05); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { background: none; border: none; cursor: pointer; padding: .5rem; border-radius: .75rem; font-size: 1rem; color: var(--text-muted); position: relative; }
.icon-btn:hover { background: rgba(0,0,0,.05); }
.user-btn { background: none; border: none; cursor: pointer; padding: .25rem; border-radius: .75rem; }
.user-avatar-sm { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#3b82f6,#6366f1); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .875rem; }
.badge-count { position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ── Dropdown ──────────────────────────────────────────────────── */
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 8px); background: var(--bg-card); border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow-hover); z-index: 50; min-width: 160px; overflow: hidden; }
.dropdown-menu.open { display: block; }
.dropdown-right { right: 0; }
.dropdown-header { padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.dropdown-item { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .625rem 1rem; background: none; border: none; cursor: pointer; font-size: .875rem; color: var(--text); text-align: left; }
.dropdown-item:hover { background: rgba(0,0,0,.05); }
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item { padding: .75rem 1rem; border-bottom: 1px solid var(--border); cursor: pointer; }
.notif-item:hover { background: rgba(0,0,0,.03); }
.notif-item.unread { border-left: 2px solid var(--accent); }
.empty-msg { text-align: center; padding: 2rem 1rem; color: var(--text-faint); }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: var(--radius); font-weight: 600; font-size: .875rem; cursor: pointer; border: none; transition: all .2s; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg,#3b82f6,#2563eb); color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,.4); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 6px 20px rgba(37,99,235,.5); }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow); }
.btn-secondary:hover { box-shadow: var(--shadow-hover); }
.btn-danger { background: linear-gradient(to right,#ef4444,#e11d48); color: #fff; box-shadow: 0 4px 14px rgba(239,68,68,.35); }
.btn-danger:hover { filter: brightness(1.08); }
.btn-ghost { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: .5rem 1rem; border-radius: var(--radius); font-weight: 500; }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: .375rem .75rem; font-size: .75rem; border-radius: .5rem; }
.btn-lg { padding: .875rem 2rem; font-size: 1rem; }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-ghost-white { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.w-full { width: 100%; justify-content: center; }
.link-btn { background: none; border: none; cursor: pointer; color: #3b82f6; font-size: .875rem; font-weight: 500; }
.link-btn:hover { color: #2563eb; }

/* ── Forms ─────────────────────────────────────────────────────── */
.input { background: var(--bg-card); border: 1px solid var(--border-input); color: var(--text); width: 100%; padding: .5rem .75rem; border-radius: var(--radius); font-size: .875rem; transition: all .2s; font-family: inherit; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,.2); }
.input::placeholder { color: var(--text-faint); }
.form-group { display: flex; flex-direction: column; gap: .375rem; }
.form-group label { font-size: .875rem; font-weight: 500; color: var(--text-muted); }
.hint { font-size: .75rem; color: var(--text-faint); margin-top: .25rem; }
.info-box { background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.2); border-radius: var(--radius); padding: .75rem; font-size: .75rem; color: #1e40af; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

/* ── Cards ─────────────────────────────────────────────────────── */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.card-header h3 { font-weight: 600; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-3 { margin-bottom: .75rem; }

/* ── Badges ────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: .125rem .625rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; }
.badge-p1 { background: #fee2e2; color: #b91c1c; }
.badge-p2 { background: #ffedd5; color: #c2410c; }
.badge-p3 { background: #fef9c3; color: #a16207; }
.badge-p4 { background: #dcfce7; color: #15803d; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-warning { background: #fef9c3; color: #a16207; }
.badge-gray { background: #f3f4f6; color: #4b5563; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-action { background: #ede9fe; color: #6d28d9; }
.badge-status { background: #dbeafe; color: #1d4ed8; }
.dark .badge-p1 { background: rgba(153,27,27,.4); color: #fca5a5; }
.dark .badge-p2 { background: rgba(154,52,18,.4); color: #fdba74; }
.dark .badge-p3 { background: rgba(133,77,14,.4); color: #fde047; }
.dark .badge-p4 { background: rgba(20,83,45,.4); color: #86efac; }
.dark .badge-success { background: rgba(20,83,45,.4); color: #86efac; }
.dark .badge-danger { background: rgba(153,27,27,.4); color: #fca5a5; }
.dark .badge-warning { background: rgba(133,77,14,.4); color: #fde047; }
.dark .badge-gray { background: #1f2937; color: #9ca3af; }

/* ── Tables ────────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th { text-align: left; padding: .75rem 1rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); border-bottom: 1px solid var(--border); background: rgba(128,128,128,.04); }
.data-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); }
.data-table tr.clickable { cursor: pointer; }
.data-table tr.clickable:hover td { background: rgba(128,128,128,.04); }
.mono { font-family: monospace; }
.text-xs { font-size: .75rem; } .text-sm { font-size: .875rem; }
.text-muted { color: var(--text-muted); } .text-faint { color: var(--text-faint); }
.text-danger { color: var(--danger); } .text-success { color: var(--success); }
.font-medium { font-weight: 500; } .font-semibold { font-weight: 600; } .font-bold { font-weight: 700; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.max-w-xs { max-width: 20rem; }
.whitespace-pre-wrap { white-space: pre-wrap; }

/* ── Page Helpers ──────────────────────────────────────────────── */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.page-header h1 { font-size: 1.5rem; font-weight: 700; }
.flex { display: flex; } .flex-1 { flex: 1; } .flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; } .items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; } .justify-end { justify-content: flex-end; }
.gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; }
.shrink-0 { flex-shrink: 0; }

/* ── Stat Cards ────────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1rem; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.25rem; display: flex; align-items: flex-start; gap: 1rem; box-shadow: var(--shadow); }
.stat-icon { font-size: 1.5rem; padding: .625rem; border-radius: .75rem; }
.stat-label { font-size: .875rem; color: var(--text-muted); }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--text); }
.stat-sub { font-size: .75rem; color: var(--text-faint); margin-top: .25rem; }
.stat-blue .stat-icon { background: #dbeafe; }
.stat-red .stat-icon { background: #fee2e2; }
.stat-green .stat-icon { background: #dcfce7; }
.stat-yellow .stat-icon { background: #fef9c3; }
.stat-purple .stat-icon { background: #ede9fe; }

/* ── Alerts ────────────────────────────────────────────────────── */
.alert { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .875rem; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* ── Filters ───────────────────────────────────────────────────── */
.filter-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.filter-row .input { min-width: 0; }
.w-auto { width: auto; }
.flex-1 { flex: 1; }
.min-w-48 { min-width: 12rem; }

/* ── Pagination ────────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; border-top: 1px solid var(--border); }

/* ── Ticket Detail ─────────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; }
.detail-main { min-width: 0; }
.detail-sidebar { min-width: 0; }
.detail-list { display: flex; flex-direction: column; gap: .5rem; margin-top: .75rem; }
.detail-row { display: flex; justify-content: space-between; gap: .5rem; font-size: .875rem; }
.detail-row dt { color: var(--text-muted); flex-shrink: 0; }
.detail-row dd { font-weight: 500; text-align: right; overflow: hidden; text-overflow: ellipsis; }
.attachment-link { display: flex; align-items: center; gap: .5rem; color: #3b82f6; font-size: .875rem; margin-top: .5rem; }
.attachment-link:hover { text-decoration: underline; }
.approval-history-item { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .75rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.dot-green { background: #22c55e; } .dot-red { background: #ef4444; } .dot-yellow { background: #f59e0b; }
.status-approved { color: #16a34a; } .status-rejected { color: #dc2626; } .status-pending { color: #d97706; }
.comments-list { display: flex; flex-direction: column; gap: 1rem; }
.comment { display: flex; gap: .75rem; }
.comment-internal { opacity: .7; }
.comment-avatar { width: 32px; height: 32px; background: #dbeafe; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #1d4ed8; font-weight: 700; font-size: .875rem; flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.comment-form { border-top: 1px solid var(--border); padding-top: 1rem; }
.approval-item { display: flex; align-items: center; justify-content: space-between; padding: .75rem; border-radius: .75rem; border: 1px solid rgba(234,179,8,.25); background: rgba(234,179,8,.08); margin-bottom: .5rem; }

/* ── Modal ─────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 1.25rem; width: 100%; max-width: 520px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.modal-header h2 { font-weight: 700; font-size: 1.125rem; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 1.125rem; color: var(--text-muted); padding: .25rem; border-radius: .5rem; }
.modal-close:hover { background: rgba(0,0,0,.05); }

/* ── Auth Pages ────────────────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; position: relative; background: linear-gradient(135deg,#0f172a,#1e3a8a,#0f172a); }
.auth-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%,rgba(59,130,246,.15),transparent 60%),radial-gradient(ellipse at 70% 50%,rgba(99,102,241,.1),transparent 60%); }
.auth-card { position: relative; z-index: 1; background: rgba(255,255,255,.95); border-radius: 1.5rem; padding: 2rem; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.auth-card h2 { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: .5rem; color: #0f172a; }
.auth-sub { text-align: center; color: #64748b; font-size: .875rem; margin-bottom: 1.5rem; }
.auth-footer { text-align: center; font-size: .75rem; color: #64748b; margin-top: 1rem; }
.auth-footer a { font-weight: 700; color: #0f172a; }
.role-grid { display: grid; grid-template-columns: 1fr; gap: .5rem; }
.role-btn { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-radius: .75rem; border: 2px solid rgba(100,120,140,.3); background: rgba(15,23,42,.8); cursor: pointer; text-align: left; transition: all .2s; }
.role-btn:hover { border-color: rgba(59,130,246,.5); }
.role-btn.selected { border-color: #3b82f6; background: rgba(59,130,246,.15); }
.role-icon { font-size: 1.25rem; }
.role-label { font-weight: 600; color: #fff; font-size: .875rem; }
.role-desc { font-size: .75rem; color: rgba(255,255,255,.5); }

/* ── Landing ───────────────────────────────────────────────────── */
.landing { font-family: Inter, sans-serif; }
.landing-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 3rem; height: 64px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid #f0f0f0; }
.landing-logo { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.1rem; color: #111; }
.accent { color: #6366f1; }
.landing-nav-links { display: flex; gap: 2rem; }
.landing-nav-links a { color: #555; font-size: .875rem; font-weight: 500; }
.landing-nav-links a:hover { color: #6366f1; }
.landing-nav-actions { display: flex; gap: .75rem; align-items: center; }
.hero { display: flex; min-height: 100vh; padding-top: 64px; }
.hero-left { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 5rem 4rem 5rem 5rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: #eef2ff; color: #6366f1; border-radius: 100px; padding: .375rem 1rem; font-size: .8125rem; font-weight: 600; margin-bottom: 1.75rem; width: fit-content; }
.hero-left h1 { font-size: 3.25rem; font-weight: 900; line-height: 1.1; margin-bottom: 1.25rem; color: #0f0f1a; }
.gradient-text { background: linear-gradient(135deg,#6366f1,#8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-left p { font-size: 1.0625rem; color: #6b7280; line-height: 1.7; max-width: 440px; margin-bottom: 2.25rem; }
.hero-cta { display: flex; gap: .875rem; margin-bottom: 3.25rem; }
.hero-stats { display: flex; gap: 2.5rem; }
.hero-stats div strong { display: block; font-size: 1.625rem; font-weight: 800; color: #111; }
.hero-stats div span { font-size: .8125rem; color: #9ca3af; }
.hero-right { flex: 1; background: linear-gradient(145deg,#0f0c29,#1a1040,#0d1b3e); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.hero-notifications { display: flex; flex-direction: column; gap: 1rem; position: relative; z-index: 2; }
.notif-card { background: rgba(255,255,255,.08); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.15); border-radius: .875rem; padding: .875rem 1.125rem; display: flex; align-items: center; gap: .75rem; width: 260px; font-size: .8125rem; color: #fff; animation: floatUp 3s ease-in-out infinite; }
.notif-card strong { display: block; font-weight: 600; }
.notif-card small { color: rgba(255,255,255,.5); font-size: .75rem; }
@keyframes floatUp { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.features-section,.how-section { padding: 6.25rem 5rem; }
.features-section { background: #fafafa; }
.section-label { color: #6366f1; font-weight: 600; font-size: .875rem; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .05em; text-align: center; }
.features-section h2,.how-section h2 { font-size: 2.5rem; font-weight: 800; color: #0f0f1a; text-align: center; margin-bottom: 3.75rem; }
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.feature-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.75rem 1.5rem; transition: all .25s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(99,102,241,.12); border-color: #c7d2fe; }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-weight: 700; font-size: 1rem; color: #111; margin-bottom: .5rem; }
.feature-card p { color: #6b7280; font-size: .875rem; line-height: 1.6; }
.steps { display: flex; max-width: 900px; margin: 0 auto; position: relative; }
.step { flex: 1; text-align: center; padding: 0 1.5rem; }
.step-num { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1.25rem; background: linear-gradient(135deg,#6366f1,#8b5cf6); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: .9375rem; box-shadow: 0 4px 20px rgba(99,102,241,.4); }
.step h3 { font-weight: 700; font-size: 1rem; color: #111; margin-bottom: .5rem; }
.step p { color: #6b7280; font-size: .875rem; line-height: 1.6; }
.cta-section { background: linear-gradient(135deg,#0f0c29,#1a1040); padding: 5rem; text-align: center; }
.cta-section h2 { font-size: 2.625rem; font-weight: 900; color: #fff; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,.6); font-size: 1.0625rem; margin-bottom: 2.5rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; }
.landing-footer { background: #fff; border-top: 1px solid #f0f0f0; padding: 2.5rem 5rem; display: flex; justify-content: space-between; align-items: center; }
.landing-footer p { color: #9ca3af; font-size: .8125rem; }
.landing-footer a { color: #555; font-size: .8125rem; margin-left: 1.5rem; }
.landing-footer a:hover { color: #6366f1; }

/* ── Service Catalog ───────────────────────────────────────────── */
.cat-heading { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.cat-heading span { font-size: 1.25rem; }
.cat-heading h2 { font-size: 1rem; font-weight: 600; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 1rem; }
.service-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; box-shadow: var(--shadow); transition: all .2s; }
.service-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.service-icon { font-size: 1.75rem; }

/* ── Admin ─────────────────────────────────────────────────────── */
.admin-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); overflow-x: auto; }
.admin-tab { display: flex; align-items: center; gap: .5rem; padding: .625rem 1rem; font-size: .875rem; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--text-muted); white-space: nowrap; transition: all .15s; }
.admin-tab:hover { color: #3b82f6; }
.admin-tab.active { border-bottom-color: #3b82f6; color: #3b82f6; }
.stage-num { width: 24px; height: 24px; background: #2563eb; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.bg-muted { background: rgba(128,128,128,.06); border-radius: .5rem; padding: .75rem; }

/* ── New Ticket ────────────────────────────────────────────────── */
.type-selector { display: flex; gap: .75rem; }
.type-btn { flex: 1; padding: 1rem; border-radius: .75rem; border: 2px solid var(--border); background: var(--bg-card); cursor: pointer; text-align: left; transition: all .2s; }
.type-btn strong { display: block; font-size: .875rem; color: var(--text); }
.type-btn span { font-size: .75rem; color: var(--text-muted); }
.type-btn.active { border-color: #3b82f6; background: rgba(59,130,246,.08); }
.type-btn:hover { border-color: rgba(59,130,246,.4); }
.priority-p1 { color: #ef4444; } .priority-p2 { color: #f97316; } .priority-p3 { color: #eab308; } .priority-p4 { color: #22c55e; }

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .detail-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero { flex-direction: column; }
  .hero-right { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .sidebar { width: 64px; }
  .logo-text, .nav-label, .user-info { display: none; }
}

/* ── Microsoft SSO Button ─────────────────────────────────────── */
.btn-microsoft {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  background: #fff;
  color: #1a1a1a;
  border: 1.5px solid #d0d0d0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
  margin-bottom: 4px;
}
.btn-microsoft:hover {
  background: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  text-decoration: none;
  color: #1a1a1a;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #888;
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}
.auth-logo {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}
.auth-logo .accent { color: var(--primary, #3b82f6); }

/* ── Azure Sync stat pills ─────────────────────────────────────── */
.stat-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  gap: 4px;
}
.stat-pill.stat-green  { background: #dcfce7; color: #166534; }
.stat-pill.stat-blue   { background: #dbeafe; color: #1e40af; }
.stat-pill.stat-gray   { background: #f3f4f6; color: #374151; }
.stat-pill.stat-red    { background: #fee2e2; color: #991b1b; }
.badge-info     { background: #dbeafe; color: #1e40af; }
.badge-secondary { background: #f3f4f6; color: #374151; }
.badge-action   { background: #ede9fe; color: #5b21b6; font-size: 11px; }
