/* patents.css — shared by /patents, /patent-apply and /patent-application */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #080809; --surface: #111114; --surface2: #1a1a1f;
  --border: rgba(255,255,255,0.07); --border-hover: rgba(255,255,255,0.16);
  --accent: #f5c842; --accent-dim: rgba(245,200,66,0.10);
  --text: #f0ede8; --muted: #8a867e; --soft: #c9c4ba;
  --green: #6ee7b7; --blue: #60a5fa; --purple: #a78bfa; --red: #ff6b6b; --orange: #fb923c;
}
body { background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 800; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 1.5rem 1.5rem 3rem; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; padding: 0.75rem 1.2rem; font-family: 'Cabinet Grotesk', sans-serif; font-weight: 800; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; border: 1px solid transparent; transition: opacity .2s, transform .2s, border-color .2s; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-gold { background: var(--accent); color: #080809; }
.btn-gold:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.btn-ghost { background: none; border-color: var(--border); color: var(--text); font-family: 'DM Sans', sans-serif; font-weight: 600; }
.btn-ghost:hover:not(:disabled) { border-color: var(--border-hover); }
.btn-danger { background: none; border-color: rgba(255,107,107,0.35); color: var(--red); font-family: 'DM Sans', sans-serif; font-weight: 600; }
.btn-danger:hover:not(:disabled) { border-color: var(--red); }
.btn-sm { padding: 0.5rem 0.85rem; font-size: 13px; border-radius: 10px; }

/* Cards */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.4rem; }
.panel + .panel { margin-top: 16px; }
.panel-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.st-requested { background: rgba(251,146,60,0.12); color: var(--orange); }
.st-quoted { background: var(--accent-dim); color: var(--accent); }
.st-in_progress { background: rgba(96,165,250,0.12); color: var(--blue); }
.st-filed { background: rgba(167,139,250,0.14); color: var(--purple); }
.st-completed { background: rgba(110,231,183,0.12); color: var(--green); }
.st-disputed { background: rgba(255,107,107,0.12); color: var(--red); }
.st-declined, .st-cancelled, .st-refunded { background: rgba(255,255,255,0.06); color: var(--muted); }

/* Forms */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin: -2px 0 8px; line-height: 1.5; }
.input, .select, .textarea { width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-family: inherit; font-size: 14.5px; padding: 0.75rem 0.9rem; outline: none; transition: border-color .2s; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(245,200,66,0.5); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.counter { font-size: 11.5px; color: var(--muted); text-align: right; margin-top: 4px; }
.counter.low { color: var(--orange); }
.error-box { background: rgba(255,107,107,0.08); border: 1px solid rgba(255,107,107,0.3); color: #ffb4b4; border-radius: 10px; padding: 0.75rem 0.9rem; font-size: 13.5px; margin-bottom: 1rem; }
.note { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 0.9rem 1rem; font-size: 13.5px; line-height: 1.6; color: var(--soft); }
.note.gold { border-color: rgba(245,200,66,0.3); background: var(--accent-dim); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; color: var(--soft); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }

/* Avatars */
.av { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-dim); border: 1px solid rgba(245,200,66,0.5); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person small { color: var(--muted); font-size: 12.5px; }
.verified { color: var(--green); font-size: 12px; font-weight: 700; }

.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty .icon { font-size: 38px; margin-bottom: 0.6rem; }
.loading { text-align: center; padding: 2.5rem; color: var(--muted); }

footer { padding: 2rem 3rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 13px; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--surface2); border: 1px solid var(--border-hover); color: var(--text); border-radius: 12px; padding: 0.75rem 1.1rem; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 1200; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 640px) {
  .wrap { padding: 1rem 1rem 2.5rem; }
  .row2 { grid-template-columns: 1fr; }
  .panel { padding: 1.1rem; }
  footer { padding: 1.5rem 1rem; flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; gap: 0.75rem; }
}
