/* MaresmeTech visual system, shared with the main website. */
:root {
  --primary-red: #38bdf8;
  --red-hover: #7dd3fc;
  --background-dark: #050816;
  --background-card: rgba(15, 23, 42, .85);
  --text-light: #e5e7eb;
  --text-secondary: #9ca3af;
  --border-color: rgba(148, 163, 184, .25);
  --mt-accent: #22c55e;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  background: radial-gradient(ellipse at top, #16233b 0, #020617 55%, #000 100%);
  background-attachment: fixed;
  line-height: 1.6;
}
button, input, textarea, select { font: inherit; }
a { color: #7dd3fc; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #38bdf8; outline-offset: 4px;
}
header.mt-header {
  position: sticky; top: 0; z-index: 40;
  padding: 12px max(24px, calc((100% - 1152px) / 2));
  gap: 20px; flex-direction: row;
  background: linear-gradient(to right, rgba(15,23,42,.92), rgba(15,23,42,.85));
  backdrop-filter: blur(16px);
  box-shadow: none;
}
.mt-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #e5e7eb; flex-shrink: 0; }
.mt-header .mt-brand img { width: 80px; height: 80px; object-fit: contain; margin: 0; filter: drop-shadow(0 4px 6px rgba(0,243,255,.3)); }
.mt-brand strong { display: block; font-size: 16px; font-weight: 600; letter-spacing: .025em; }
.mt-brand small { display: block; font-size: 11px; color: #94a3b8; }
.main-nav { width: auto; }
.main-nav ul { gap: 8px; align-items: center; }
.main-nav li { margin: 0; }
.main-nav .nav-link { display: inline-block; color: #cbd5e1; font-size: 14px; font-weight: 500; border-radius: 999px; padding: 8px 14px; }
.main-nav .nav-link:hover, .main-nav .nav-link.active {
  background: rgba(56,189,248,.12); color: #7dd3fc; box-shadow: none;
}
.main-content { width: min(1152px, calc(100% - 48px)); margin: 48px auto; min-width: 0; }
.mt-intro { margin-bottom: 32px; max-width: 740px; }
.mt-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #7dd3fc; padding: 4px 12px; background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.4); border-radius: 999px; }
.mt-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
h1, .mt-intro h1 { text-align: left; color: #e5e7eb; font-size: clamp(28px, 4vw, 46px); line-height: 1.15; letter-spacing: -.035em; font-weight: 600; margin: 18px 0 16px; }
.mt-intro h1 span { color: #38bdf8; }
.mt-intro p { color: #cbd5e1; font-size: 16px; margin: 0; }
.container, .blog-post-card, .history-item, .transcription-result, .summary-cards .card {
  background: var(--background-card); border: 1px solid var(--border-color); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15,23,42,.5);
}
.container { padding: 32px; margin-bottom: 24px; min-width: 0; }
.container h2, h2 { text-align: left; color: #e5e7eb; border: 0; padding: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 24px; }
label { color: #cbd5e1; font-size: 14px; font-weight: 500; }
textarea, input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), select, #card-element {
  background: rgba(2,6,23,.65); color: #e5e7eb; border: 1px solid rgba(148,163,184,.3); border-radius: 10px; max-width: 100%;
}
textarea { height: 160px; padding: 16px; margin-bottom: 20px; }
textarea::placeholder, input::placeholder { color: #94a3b8; opacity: 1; }
textarea:focus, input:focus, select:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,.12); }
button, .pro-call-to-action, #payment-button {
  background: linear-gradient(135deg, #0ea5e9, #22c55e); border-radius: 999px; color: white;
  padding: 13px 25px; font-size: 15px; font-weight: 600; box-shadow: 0 10px 28px rgba(34,197,94,.16);
}
button:hover, .pro-call-to-action:hover, #payment-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #0ea5e9, #22c55e); transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 12px 32px rgba(56,189,248,.22);
}
.small-button, .container a.download-qr-btn {
  display: inline-flex; align-items: center; justify-content: center; width: auto; margin: 0;
  background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.35); color: #bae6fd;
  border-radius: 999px; padding: 9px 16px; font-size: 13px; line-height: 1.5; box-shadow: none; text-decoration: none;
}
.small-button:hover, .container a.download-qr-btn:hover { background: rgba(56,189,248,.16); color: #e0f2fe; box-shadow: none; }
.qr-actions-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.inline-form-button { margin: 0; }
.qr-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; justify-items: stretch; padding: 24px 0 0; }
.qr-item { max-width: none; min-width: 0; width: 100%; padding: 24px 14px 16px; background: rgba(2,6,23,.65); border-color: var(--border-color); box-shadow: none; gap: 8px; }
.qr-item:hover { border-color: rgba(56,189,248,.55); box-shadow: 0 12px 28px rgba(2,6,23,.35); transform: translateY(-2px); }
.qr-item img { width: 120px; height: 120px; max-width: 100%; background: white; padding: 5px; border: 0; border-radius: 6px; }
.qr-source { border-radius: 999px; font-size: 10px; box-shadow: none; }
.qr-source-web { background: rgba(56,189,248,.14); color: #7dd3fc; }
.qr-source-csv { background: rgba(34,197,94,.14); color: #86efac; }
.delete-all-btn, .delete-all-btn:hover { background: rgba(244,63,94,.1) !important; border-color: rgba(251,113,133,.4) !important; color: #fda4af !important; box-shadow: none; }
.delete-qr-btn, .delete-qr-btn:hover { width: 28px; height: 28px; padding: 0; top: 6px; right: 6px; background: #881337; color: #ffe4e6; box-shadow: none; }
.modal-content { background: #0f172a; border: 1px solid rgba(56,189,248,.35); border-radius: 16px; overflow: auto; }
.modal-content img { max-width: 100%; height: auto; aspect-ratio: 1; }
.modal-content span { overflow-wrap: anywhere; }
.user-dropdown .dropdown-content { background: #0f172a; border: 1px solid var(--border-color); border-radius: 12px; }
.user-dropdown:focus-within .dropdown-content { display: block; }
.usage-table th { background: #0c4a6e; }
.usage-table tbody tr:hover { background: rgba(56,189,248,.08); }
footer.mt-footer { margin-top: auto; padding: 28px 24px; background: rgba(2,6,23,.7); font-size: 12px; }
.mt-footer-inner { max-width: 1152px; margin: auto; display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.mt-footer p { margin: 0; }
.mt-footer a { color: #cbd5e1; font-weight: 500; }
@media (max-width: 768px) {
  header.mt-header { position: relative; padding: 12px 20px; gap: 12px; }
  .mt-header .mt-brand img { width: 60px; height: 60px; }
  .main-nav ul { justify-content: flex-start; gap: 4px; }
  .main-nav .nav-link { padding: 7px 10px; font-size: 13px; white-space: normal; overflow-wrap: anywhere; }
  .main-content { width: calc(100% - 32px); margin: 30px auto; }
  .container { padding: 22px; }
  .container h2 { font-size: 20px; }
  .qr-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .mt-footer-inner { flex-direction: column; text-align: center; gap: 8px; }
}
@media (max-width: 400px) {
  .main-nav { width: 100%; }
  .container { padding: 18px; }
  .qr-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
