/* Micro Computer Repair Services - Support Desk. Copyright (c) 2026 Jose Rodriguez - Micro Computer Repair Services.
   Palette follows microrepair.net (shcp-theme): dark navy header/hero, indigo -> cyan accents, light sections. */
:root {
  --ink: #1f2333; --muted: #6b7280; --line: #e5e7f0;
  --primary: #4f46e5; --primary-dark: #3730a3; --secondary: #06b6d4;
  --dark: #0f0c29; --dark-2: #302b63; --dark-3: #24243e;
  --bg: #f5f7fb; --card: #ffffff;
  --grad: linear-gradient(135deg, #4f46e5, #06b6d4);
  --grad-dark: linear-gradient(160deg, #0f0c29, #302b63 60%, #24243e);
  --radius: 14px; --shadow: 0 8px 24px rgba(15, 12, 41, .08), 0 1px 3px rgba(15, 12, 41, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink);
  background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--primary); text-decoration: none; } a:hover { text-decoration: underline; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
main.wrap { flex: 1; padding-top: 28px; padding-bottom: 48px; position: relative; z-index: 1; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .4em; color: var(--ink); } h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 17px; } h4 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.bg-blobs { display: none; }

/* top bar: same dark navy as microrepair.net */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--grad-dark); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 4px 18px rgba(15, 12, 41, .25); }
.topbar-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none !important; margin-right: auto; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand b { display: block; font-size: 16px; } .brand small { display: block; font-size: 11px; color: #c7d2fe; letter-spacing: .08em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
nav a, .linkbtn { color: rgba(255, 255, 255, .85); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none !important; }
nav a:hover, .linkbtn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
nav a.on { background: rgba(255, 255, 255, .12); color: #fff; }
nav a.cta { background: var(--grad); color: #fff; } nav a.cta:hover { opacity: .92; background: var(--grad); }
.linkbtn { background: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; }
.lang .linkbtn { border: 1.5px solid rgba(255, 255, 255, .3); padding: 5px 10px; font-size: 12px; margin-left: 6px; }
.inline { display: inline; margin: 0; }
.burger { display: none; background: rgba(255, 255, 255, .1); border: 0; color: #fff; font-size: 20px; border-radius: 10px; padding: 6px 12px; cursor: pointer; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 10px 18px;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important; transition: opacity .12s, transform .12s, box-shadow .12s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, .25); } .btn-primary:hover { opacity: .92; color: #fff; }
.btn-glass { background: #fff; color: var(--primary); border: 1.5px solid var(--line); } .btn-glass:hover { border-color: #c7d2fe; }
.btn-soft { background: #eef2ff; color: var(--primary-dark); } .btn-soft:hover { background: #e0e7ff; }
.btn-lg { padding: 13px 28px; font-size: 16px; } .btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.w100 { width: 100%; }

/* cards */
.glass { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); }
.card { padding: 22px; margin-bottom: 18px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }

/* landing hero: dark panel like microrepair.net's hero */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; padding: 56px 48px; border-radius: 20px; color: #fff;
  background: radial-gradient(900px 450px at 15% -20%, rgba(79, 70, 229, .35), transparent), radial-gradient(700px 400px at 95% 10%, rgba(6, 182, 212, .22), transparent), var(--grad-dark);
  box-shadow: 0 20px 50px rgba(15, 12, 41, .25); }
.hero h1 { font-size: 44px; color: #fff; }
.hero p { font-size: 18px; color: rgba(255, 255, 255, .78); max-width: 560px; }
.hero .eyebrow { color: #c7d2fe; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); padding: 6px 14px; border-radius: 999px; font-size: 12px; margin-bottom: 18px; }
.hero .btn-glass { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); } .hero .btn-glass:hover { background: rgba(255, 255, 255, .08); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); box-shadow: none; }
.tile { border-radius: 12px; padding: 16px 14px; font-weight: 600; color: #fff; display: flex; flex-direction: column; gap: 6px; font-size: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-top: 3px solid var(--secondary); }
.tile:nth-child(odd) { border-top-color: var(--primary); }
.tile span { font-size: 26px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.feat { padding: 22px; } .feat b { font-size: 26px; display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 12px; background: #eef2ff; margin-bottom: 10px; }
.feat p { color: var(--muted); margin: 0; }

/* auth */
.auth { display: flex; justify-content: center; padding: 20px 0; }
.auth-card { width: 100%; max-width: 520px; padding: 30px; border-top: 4px solid var(--primary); }
.auth-head { margin-bottom: 14px; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* forms */
.field { display: block; margin-bottom: 14px; } .field > span { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: #374151; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], select, textarea, .inline-form input {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #dfe3ee; border-radius: 10px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
textarea { resize: vertical; min-height: 110px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .grid2.top { align-items: start; } .grid3 { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 14px; }
.hint { color: var(--muted); font-size: 13px; margin: -4px 0 14px; }
.actions { display: flex; justify-content: flex-end; gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 6px 0 14px; cursor: pointer; } .check input { width: 18px; height: 18px; accent-color: var(--primary); }
.inline-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .inline-form h4 { margin: 0 8px 0 0; } .inline-form input { flex: 1; min-width: 180px; width: auto; }

/* alerts */
.alert { border-radius: 12px; padding: 13px 16px; margin-bottom: 16px; font-weight: 600; font-size: 14px; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert-info { background: #eef2ff; color: var(--primary-dark); border: 1px solid #c7d2fe; }

/* page head, stats, toolbar */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { border-radius: 14px; padding: 16px 18px; color: #fff; text-decoration: none !important; background: var(--grad-dark); box-shadow: var(--shadow);
  border-left: 4px solid var(--primary); transition: transform .12s; }
.stat:hover { transform: translateY(-2px); } .stat.on { box-shadow: 0 0 0 3px rgba(79, 70, 229, .35), var(--shadow); }
.stat b { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; } .stat span { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.stat.c1 { border-left-color: #818cf8; } .stat.c2 { border-left-color: var(--secondary); } .stat.c3 { border-left-color: #f59e0b; } .stat.c4 { border-left-color: #10b981; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: #374151; font-weight: 600; font-size: 13px; text-decoration: none !important; }
.chip:hover { border-color: #c7d2fe; } .chip.on { background: var(--dark-2); color: #fff; border-color: transparent; }
.search input { min-width: 280px; border-radius: 999px; padding-left: 18px; } .row-gap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* pills (status keeps its meaning colour, softer) */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.st-open { background: #eef2ff; color: #4338ca; } .st-in_progress { background: #ecfeff; color: #0e7490; } .st-waiting_client { background: #fffbeb; color: #b45309; }
.st-resolved { background: #ecfdf5; color: #047857; } .st-closed { background: #f3f4f6; color: #4b5563; }
.pr-low i, .pr-normal i, .pr-high i, .pr-urgent i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pr-low { background: #f3f4f6; color: #374151; } .pr-low i { background: #9ca3af; }
.pr-normal { background: #eef2ff; color: #4338ca; } .pr-normal i { background: var(--primary); }
.pr-high { background: #fffbeb; color: #b45309; } .pr-high i { background: #f59e0b; }
.pr-urgent { background: #fef2f2; color: #b91c1c; } .pr-urgent i { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .18); }
.role-owner { background: var(--dark-2); color: #fff; } .role-staff { background: #ecfeff; color: #0e7490; } .role-client { background: #f3f4f6; color: #374151; }

/* ticket list */
.tlist { display: flex; flex-direction: column; gap: 12px; }
.trow { display: flex; justify-content: space-between; gap: 18px; padding: 18px 20px; color: var(--ink); text-decoration: none !important; transition: transform .12s, box-shadow .12s; border-left: 4px solid var(--primary); }
.trow:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(15, 12, 41, .12); }
.trow h3 { margin: 6px 0 6px; } .trow-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tnum { font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: 12px; color: var(--dark-2); background: #eef2ff; padding: 3px 8px; border-radius: 6px; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.trow-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--muted); font-size: 13px; white-space: nowrap; } .trow-side small { font-size: 12px; }
.empty { text-align: center; padding: 48px 24px; } .empty .big { font-size: 52px; } .empty p { color: var(--muted); }
.errorbox { max-width: 560px; margin: 40px auto; }

/* dropzone */
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 26px 18px; border-radius: 14px; cursor: pointer;
  border: 2px dashed #c7d2fe; background: #f8f9ff; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--secondary); background: #f0fdff; }
.drop input { display: none; } .drop-ico { font-size: 28px; } .drop b { color: var(--primary-dark); } .drop small { color: var(--muted); font-size: 12px; }
.previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.prev { position: relative; width: 112px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 11px; }
.prev img, .prev .ficon { width: 112px; height: 84px; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 30px; background: #f5f7fb; }
.prev span { display: block; padding: 5px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .prev .bad { color: #dc2626; font-weight: 700; }
.prev button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(15, 12, 41, .75); color: #fff; cursor: pointer; line-height: 22px; padding: 0; }

/* ticket view */
.tickethead { padding: 22px 24px; align-items: center; border-top: 4px solid var(--primary); } .tickethead h1 { font-size: 26px; margin: 8px 0; }
.tgrid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.thread { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.msg { display: flex; gap: 12px; } .msg.from-staff { flex-direction: row-reverse; }
.avatar { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: #0e7490; font-size: 14px; }
.from-staff .avatar { background: var(--grad-dark); } .avatar.sm { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; font-size: 12px; }
.bubble { background: #fff; border: 1px solid var(--line); border-radius: 16px; border-top-left-radius: 4px; padding: 14px 16px; box-shadow: var(--shadow); max-width: 85%; min-width: 240px; }
.from-staff .bubble { background: #f3f4ff; border-color: #dfe3fb; border-top-left-radius: 16px; border-top-right-radius: 4px; }
.internal .bubble { background: repeating-linear-gradient(-45deg, #fffdf5, #fffdf5 12px, #fef9e7 12px, #fef9e7 24px); border-color: #fcd34d; }
.msg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; } .msg-head small { color: var(--muted); font-size: 12px; margin-left: auto; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--dark-2); color: #fff; } .tag-int { background: #d97706; }
.msg-body { white-space: pre-wrap; word-wrap: break-word; }
.att { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.thumb img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .12s; } .thumb:hover img { transform: scale(1.03); }
.fchip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: #f5f7fb; border: 1px solid var(--line); color: var(--ink); font-size: 13px; max-width: 100%; text-decoration: none !important; }
.fchip b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; } .fchip small { color: var(--muted); } .fchip:hover { border-color: #c7d2fe; }
.reply h4 { margin-bottom: 10px; } .reply textarea { margin-bottom: 12px; }
aside .card { padding: 18px; } .side-form .field { margin-bottom: 10px; }
.count { background: var(--dark-2); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 8px; }
.flist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.flist li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); } .flist li:last-child { border: 0; padding: 0; }
.flist a { font-weight: 600; word-break: break-all; } .flist small { color: var(--muted); } .flist code, .tbl code { font-size: 11px; color: var(--primary-dark); }
.timeline { list-style: none; margin: 0 0 14px; padding: 0 0 0 16px; border-left: 2px solid #dfe3ee; max-height: 420px; overflow: auto; font-size: 13px; }
.timeline li { position: relative; padding: 0 0 12px 10px; display: flex; flex-direction: column; } .timeline small { color: var(--muted); font-size: 12px; }
.timeline li::before { content: ""; position: absolute; left: -23px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px #eef2ff; }

/* tables */
.table-wrap { padding: 6px; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; } .tbl.small { font-size: 12.5px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 10px; border-bottom: 2px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid #f0f2f7; vertical-align: middle; } .tbl tr:hover td { background: #f8f9ff; }
.tbl .det code { white-space: pre-wrap; word-break: break-word; display: block; max-width: 360px; max-height: 80px; overflow: auto; }
.who { display: flex; align-items: center; gap: 10px; } .who small { display: block; color: var(--muted); font-size: 12px; } .right { text-align: right; white-space: nowrap; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }

/* two-factor authentication */
.shield { width: 56px; height: 56px; border-radius: 14px; background: var(--grad-dark); display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: var(--shadow); margin-bottom: 12px; }
.otp { font-family: ui-monospace, Consolas, monospace; font-size: 26px !important; letter-spacing: .35em; text-align: center; font-weight: 700; padding: 14px !important; }
.lead { color: #4b5563; font-size: 16px; max-width: 760px; margin: 0 0 18px; }
.mfa-grid { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: start; }
.qr { width: 220px; height: 220px; border-radius: 14px; padding: 10px; background: #fff; border: 2px solid #c7d2fe; box-shadow: var(--shadow); display: block; }
.secret { display: inline-block; font-size: 14px; background: #eef2ff; color: var(--primary-dark); padding: 8px 12px; border-radius: 8px; letter-spacing: .06em; word-break: break-all; }
.recover { margin-top: 18px; } .recover summary { cursor: pointer; color: var(--primary); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.auth-card.wide { max-width: 640px; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0; list-style: none; margin: 18px 0 22px; }
.codes li { background: #f5f7fb; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; text-align: center; }
.codes code { font-size: 17px; font-weight: 700; letter-spacing: .08em; color: var(--dark-2); }
.mfa-card { display: flex; align-items: center; gap: 18px; color: var(--ink); text-decoration: none !important; transition: transform .12s; } .mfa-card:hover { transform: translateY(-1px); }
.mfa-card .shield { margin: 0; flex: 0 0 56px; } .mfa-card h4 { margin-bottom: 4px; } .mfa-card .hint { margin: 0; } .mfa-card .go { margin-left: auto; font-size: 22px; color: var(--primary); }

/* footer */
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 26px; color: var(--muted); font-size: 13px; position: relative; z-index: 1; }

/* responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 40px 28px; } .hero h1 { font-size: 34px; } .features { grid-template-columns: 1fr; }
  .tgrid { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(2, 1fr); } .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .burger { display: block; } nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  nav.open { display: flex; } .topbar-in { flex-wrap: wrap; } .grid2, .grid3 { grid-template-columns: 1fr; }
  .trow { flex-direction: column; } .trow-side { flex-direction: row; align-items: center; gap: 12px; }
  .search input { min-width: 0; width: 100%; } .search { width: 100%; } h1 { font-size: 24px; } .bubble { max-width: 100%; min-width: 0; }
  .msg, .msg.from-staff { flex-direction: row; } .mfa-grid { grid-template-columns: 1fr; } .codes { grid-template-columns: 1fr; }
}
