/* Meme Intel. Design tokens, layout and component styles carried over from the
   original meme-intel.com stylesheet; the reset below stands in for the
   Tailwind preflight the original used. */

*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; }
img, svg { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; background: transparent; }
ol, ul { list-style: none; }
h1, h2 { font-size: inherit; font-weight: inherit; }
table { border-collapse: collapse; width: 100%; }

:root {
  --background: #0b0b0c;
  --foreground: #f5f5f2;
  --primary: #34f58a;
  --primary-foreground: #10120a;
  --muted: #242426;
  --muted-foreground: #aaa9ae;
  --border: #38383b;
  --ring: #34f58a;
  color-scheme: dark;
}

body { background: var(--background); color: var(--foreground); margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 16px; }
a { color: inherit; text-decoration: none; }
button, a, input { outline-offset: 5px; }
:is(a, button, input):focus-visible { outline: 2px solid var(--ring); }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }

.site { max-width: 1440px; min-height: 100svh; margin: auto; padding: 0 7%; display: flex; flex-direction: column; }
.site > main { flex: 1; }
.topbar { border-bottom: 1px solid #29292b; justify-content: space-between; align-items: center; gap: 20px; min-height: 108px; display: flex; }
.brand { letter-spacing: 2px; align-items: center; gap: 13px; font-size: 15px; font-weight: 800; display: flex; }
.brand-logo { object-fit: cover; border: 1px solid #38383b; border-radius: 9px; flex-shrink: 0; width: 44px; height: 44px; }
.header-guide { color: #34f58a; text-align: right; text-underline-offset: 4px; font-size: .875rem; line-height: 1.5; text-decoration: underline; }
.admin-link { font-size: .95rem; }

.join-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 9%; min-height: calc(100svh - 180px); padding: 70px 0 80px; display: grid; }
.eyebrow { letter-spacing: 2px; color: #a7a7ac; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; display: flex; }
.small-line { background: #34f58a; width: 24px; height: 2px; }
h1 { letter-spacing: -4px; margin: 28px 0 24px; font-size: clamp(48px, 5.6vw, 80px); font-weight: 600; line-height: 1.03; }
h1 span { color: #34f58a; }
.intro-copy { color: #a7a7ac; font-size: 17px; line-height: 1.6; }

.guide-card { background: #142219; border: 1px solid #37674a; border-radius: 12px; max-width: 450px; margin-top: 30px; padding: 24px; scroll-margin-top: 24px; }
.guide-label { color: #34f58a; letter-spacing: 1.5px; font-size: .75rem; font-weight: 700; line-height: 1.5; display: block; }
.guide-card h2 { letter-spacing: -.5px; margin: 12px 0; font-size: 1.5rem; line-height: 1.2; }
.guide-card p { color: #c1cec5; margin: 0 0 20px; font-size: 1rem; line-height: 1.6; }
.guide-download { color: #10120a; text-align: center; background: #34f58a; border-radius: 8px; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 12px 16px; font-size: 1rem; font-weight: 700; line-height: 1.5; display: flex; }
.guide-download svg { flex-shrink: 0; }
.guide-download:hover { background: #6affaa; }
.guide-details { color: #a9bcae; text-align: center; margin-top: 12px; font-size: .8125rem; line-height: 1.5; display: block; }

.referral { border-left: 2px solid #38383b; max-width: 320px; margin-top: 60px; padding-left: 22px; }
.ref-label { letter-spacing: 1.8px; color: #929296; font-size: 12px; }
.referral p { margin: 12px 0; font-size: 15px; }
.referral a { color: #34f58a; justify-content: space-between; align-items: center; font-size: 20px; font-weight: 600; display: flex; }
.referral a:hover { text-decoration: underline; }

.form-card { background: #171719; border: 1px solid #353537; border-radius: 20px; padding: 38px; box-shadow: 0 24px 80px #0003; min-width: 0; }
.card-top { color: #a8a8ac; letter-spacing: 1.7px; justify-content: space-between; align-items: center; margin-bottom: 28px; font-size: 11px; display: flex; }
.card-top svg { color: #34f58a; }
h2 { letter-spacing: -1.2px; margin: 0 0 15px; font-size: 32px; font-weight: 600; line-height: 1.2; }
.card-copy { color: #aaa9ae; margin: 0 0 30px; font-size: 16px; line-height: 1.65; }
.card-copy strong { color: #f5f5f2; }

label { margin-bottom: 10px; font-size: 14px; font-weight: 600; display: block; }
input:not(.trap input):not([type="checkbox"]) { color: #f5f5f2; border-radius: 8px; width: 100%; height: 52px; padding: 0 15px; background: #101012; border: 1px solid #3c3c3f; font-size: 16px; outline: none; }
input:not([type="checkbox"]):focus { border-color: #34f58a; box-shadow: 0 0 0 3px #34f58a33; }
input[aria-invalid="true"] { border-color: #ffaaa8; }
input::placeholder { color: #727278; }
.hint { color: #919197; margin: 8px 0 25px; font-size: 13px; line-height: 1.5; }
.input-at { position: relative; }
.input-at > span { color: #88888e; position: absolute; top: 14px; left: 15px; }
.input-at input { padding-left: 36px !important; }
.submit { border-radius: 8px; justify-content: center; align-items: center; gap: 14px; width: 100%; margin-top: 28px; display: flex; color: #12150b; background: #34f58a; height: 53px; font-size: 15px; font-weight: 700; }
.submit:hover { background: #6affaa; }
.fine-print { color: #929298; text-align: center; margin: 18px 0 0; font-size: 12px; line-height: 1.65; }
.trap { position: absolute; left: -9999px; }
.error { color: #ffaaa8; margin-top: 15px; font-size: 14px; line-height: 1.5; }

/* Request status page */
.status-layout { display: grid; justify-items: center; align-items: start; padding: 60px 0 80px; }
.nowrap { white-space: nowrap; }
.steps .hint { margin-bottom: 0; }
.status-card { width: 100%; max-width: 620px; }
.success-icon { color: #111; background: #34f58a; border-radius: 50%; place-items: center; width: 62px; height: 62px; margin-bottom: 28px; display: grid; }
.notice { background: #142219; border: 1px solid #37674a; border-radius: 8px; color: #c1cec5; padding: 12px 16px; margin: -12px 0 24px; font-size: 14px; line-height: 1.5; }
.steps { display: grid; gap: 26px; margin-bottom: 18px; }
.step-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.text-link { color: #34f58a; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.text-link:hover { text-decoration: underline; }
.text-link.small { font-size: 13px; }
.post-box { display: flex; gap: 12px; align-items: flex-start; background: #101012; border: 1px solid #3c3c3f; border-radius: 8px; padding: 14px 15px; margin-bottom: 12px; }
.post-box p { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.55; }
.copy-button { flex-shrink: 0; border: 1px solid #444; border-radius: 7px; padding: 6px 12px; font-size: 13px; }
.copy-button:hover { border-color: #34f58a; }
.code { color: #34f58a; font-family: "Courier New", monospace; letter-spacing: .5px; }
.checks { display: grid; gap: 10px; margin: 0 0 4px; font-size: 14px; line-height: 1.5; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check-mark { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: #242426; color: #aaa9ae; }
.check-pass .check-mark { background: #34f58a; color: #10120a; }
.check-fail .check-mark { background: #3a1d1d; color: #ffaaa8; }
.check-warn .check-mark { background: #3a2f1a; color: #ffcc95; }
.check-error .check-mark { background: #2f2a1a; color: #e1cf9e; }
.submitted { overflow-wrap: anywhere; background: #101012; border: 1px solid #333; border-radius: 10px; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 0; padding: 22px; font-size: 14px; display: grid; }
.submitted span { color: #aaa; }
.submitted strong { text-align: right; }

footer { color: #818188; border-top: 1px solid #29292b; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: 12px; display: flex; }
footer a { align-items: center; gap: 5px; display: flex; }

/* Admin */
.admin main { padding: 60px 0; }
.admin h1 { letter-spacing: -2px; font-size: 48px; }
.admin .card-copy { max-width: 760px; }
.admin-login { max-width: 400px; margin-top: 30px; }
.admin-actions { align-items: center; gap: 16px; margin: 35px 0 20px; display: flex; flex-wrap: wrap; }
.admin-actions > span { color: #aaa; margin-right: auto; font-size: 14px; }
.admin-actions button, .admin-actions .button, .inline-form button, .approve-form button { border: 1px solid #444; border-radius: 7px; padding: 8px 13px; font-size: 14px; display: inline-block; }
.admin-actions button:hover, .admin-actions .button:hover, .inline-form button:hover { border-color: #888; }
button.primary { background: #34f58a; color: #10120a; border-color: #34f58a; font-weight: 700; }
button.primary:hover { background: #6affaa; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters a { border: 1px solid #353537; border-radius: 999px; padding: 6px 14px; font-size: 13px; color: #aaa9ae; }
.filters a span { color: #f5f5f2; margin-left: 4px; }
.filters a[aria-current="page"] { border-color: #34f58a; color: #34f58a; }
.review-notice { background: #16251b; border: 1px solid #37674a; border-radius: 8px; padding: 16px 20px; line-height: 1.6; margin-bottom: 24px; }
.table-wrap { overflow-x: auto; }
.admin table { font-size: 14px; }
.admin td, .admin th { padding: 18px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #29292b; }
.admin th { color: #999; font-weight: 600; white-space: nowrap; }
.admin td:nth-child(4) { min-width: 260px; }
.admin td:last-child { min-width: 220px; }
.checks.compact { gap: 6px; margin-bottom: 8px; font-size: 13px; }
.checks.compact .check-mark { width: 18px; height: 18px; font-size: 11px; }
.muted { color: #929298; }
.small { font-size: 12px; }
.mono { font-family: "Courier New", monospace; white-space: nowrap; }
.inline-form { display: inline-block; margin: 8px 8px 0 0; }
.row-actions { gap: 8px; display: flex; flex-wrap: wrap; }
.verify-check { white-space: normal; align-items: center; gap: 10px; max-width: 320px; margin: 0 0 12px; font-size: 14px; font-weight: 400; line-height: 1.5; display: flex; }
.verify-check input { width: 16px; height: 16px; accent-color: #34f58a; flex-shrink: 0; }
.duplicate-note { color: #ffcc95; white-space: normal; max-width: 310px; margin: 0 0 12px; font-size: 13px; line-height: 1.5; }
.soft-note { color: #aaa9ae; max-width: 310px; margin: 0 0 12px; font-size: 13px; line-height: 1.5; }
.completed-note { color: #aaa; font-size: 14px; }
.empty { text-align: center; border: 1px dashed #444; border-radius: 12px; padding: 70px 20px; }
.empty p { color: #999; margin-top: 10px; }
.status { text-transform: capitalize; color: #34f58a; font-weight: 600; }
.status-pending { color: #e1cf9e; }
.status-approved { color: #6affaa; }
.status-invited { color: #34f58a; }
.status-rejected { color: #aaa; }
code { font-family: "Courier New", monospace; color: #34f58a; }

@media (max-width: 760px) {
  .site { padding: 0 6%; }
  .topbar { min-height: 82px; }
  .brand { gap: 10px; font-size: 13px; }
  .header-guide { max-width: 140px; }
  .join-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 38px 0 44px; }
  .intro h1 { letter-spacing: -2.5px; margin: 22px 0 16px; font-size: 51px; }
  .intro h1 br { display: none; }
  .intro h1 span { display: block; }
  .intro-copy { font-size: 15px; }
  .guide-card { max-width: none; padding: 22px; }
  .referral { max-width: 100%; margin-top: 28px; padding-left: 16px; }
  .referral p { font-size: 14px; }
  .ref-label { margin-bottom: 9px; display: block; }
  .referral a { max-width: 270px; margin-top: 10px; font-size: 18px; }
  .form-card { border-radius: 16px; padding: 26px 22px; }
  h2 { font-size: 29px; }
  .card-top { margin-bottom: 22px; }
  .card-copy { font-size: 15px; }
  .eyebrow { letter-spacing: 1.6px; font-size: 10px; }
  .status-layout { padding: 32px 0 44px; }
  .admin h1 { font-size: 40px; }
  /* Admin table becomes stacked cards on phones. */
  .admin thead { display: none; }
  .admin tr { display: block; border: 1px solid #29292b; border-radius: 12px; margin-bottom: 16px; padding: 6px 4px; }
  .admin td { display: block; border: 0; padding: 8px 12px; min-width: 0 !important; }
  .admin td::before { content: attr(data-label); display: block; color: #999; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 4px; }
}
