/* ==========================================================
   Design tokens — "Editor" theme for a developer portfolio
   ========================================================== */
:root {
  --ink:        #0B0E14;
  --panel:      #12161F;
  --panel-2:    #171C28;
  --border:     #232A3A;
  --text:       #E6E8EC;
  --muted:      #8B93A6;
  --accent:     #4FE7C1;   /* signature teal — cursor / active state */
  --accent-2:   #F5B942;   /* amber — status / highlight */
  --danger:     #F4674B;
  --accent-text:   var(--accent);   /* used specifically for TEXT sitting on a
                                        tinted/light background (badges, tags,
                                        icons) - identical to --accent in dark
                                        mode, but darkened in light mode below
                                        where the bright hue alone reads too
                                        washed out for good contrast. */
  --accent-2-text: var(--accent-2);
  --danger-text:   var(--danger);
  --radius:     10px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Light theme — same structural roles, inverted surfaces. Accent/amber/danger
   stay the same hex values in both themes on purpose: a lot of decorative
   elements across the site (icon backgrounds, badges) use hardcoded rgba()
   values built from these exact colors rather than var(--accent) directly,
   so keeping the accent hues constant means those stay correct automatically
   in both themes instead of needing every single one hunted down and fixed. */
html[data-theme="light"] {
  --ink:        #F5F6F8;
  --panel:      #FFFFFF;
  --panel-2:    #F0F2F5;
  --border:     #D8DBE1;
  --text:       #14171F;
  --muted:      #565E6D;
  --accent-text:   #0B7A63;
  --accent-2-text: #92650A;
  --danger-text:   #B91C1C;
}
html[data-theme="light"] body { background: var(--ink); }
html[data-theme="light"] .card,
html[data-theme="light"] .panel { box-shadow: 0 1px 3px rgba(20,23,31,.06); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Sticky-footer layout (so the footer reaches the bottom of the viewport
   even on short pages) - scoped to public/client pages specifically via
   this class, since applying flex-column to body globally breaks the admin
   area's sidebar+content layout, which relies on body's normal box behavior. */
body.site-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-text);
  letter-spacing: .06em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.eyebrow::before { content: '//'; opacity: .6; }

p { color: var(--muted); margin: 0 0 16px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .15s ease;
}
.btn-primary { background: var(--accent); color: #04120E; border-color: var(--accent); font-weight: 600; }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-text); }

/* ---- Nav ---- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,14,20,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
/* Navbar stays dark in both themes by design. Redefining the custom
   properties themselves (not just individual CSS rules) means every
   descendant correctly resolves to dark-theme values here - including
   anything using var(--border)/var(--muted) etc. via inline styles,
   which a one-off property override can't reach. */
html[data-theme="light"] .navbar {
  --text: #E6E8EC; --muted: #8B93A6; --border: #232A3A;
  --panel: #12161F; --panel-2: #171C28;
  --accent-text: #4FE7C1; --accent-2-text: #F5B942; --danger-text: #F4674B;
  background: #0B0E14; color: var(--text);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { font-family: var(--font-mono); font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 14px; height: 100%; }
.nav-links a:not(.btn) {
  display: inline-flex; align-items: center; height: 100%;
  color: var(--muted); font-weight: 500; letter-spacing: .01em;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.nav-links a:not(.btn):hover { color: var(--text); border-bottom-color: var(--accent); }
.nav-links .btn { flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; }

.theme-toggle {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text); font-size: 14px;
  transition: border-color .15s, color .15s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-icon-light, .theme-icon-dark { display: none; }
html[data-theme="dark"] .theme-icon-light { display: inline; }   /* dark now → sun shown → click for light */
html[data-theme="light"] .theme-icon-dark { display: inline; }   /* light now → moon shown → click for dark */

/* ---- Hero / editor window ---- */
.hero { padding: 90px 0 60px; }
.editor-window {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
/* Stays a dark code editor regardless of site theme - it's a fixed piece of
   brand identity (a dark-mode editor mockup), not regular page content, so
   switching it to a white background would look inauthentic either way. */
html[data-theme="light"] .editor-window {
  --panel: #12161F; --panel-2: #171C28; --border: #232A3A; --muted: #8B93A6;
  --text: #E6E8EC; --accent-text: #4FE7C1; --accent-2-text: #F5B942; --danger-text: #F4674B;
  color: var(--text);
}
.editor-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--panel-2); border-bottom: 1px solid var(--border);
}
.editor-titlebar span { width: 11px; height: 11px; border-radius: 50%; }
.editor-titlebar .r { background: #F4674B; }
.editor-titlebar .y { background: #F5B942; }
.editor-titlebar .g { background: #4FE7C1; }
.editor-titlebar .filename { margin-left: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.editor-body { display: flex; font-family: var(--font-mono); font-size: 14px; }
.gutter { padding: 24px 14px; text-align: right; color: #3B4356; user-select: none; border-right: 1px solid var(--border); }
.code { padding: 24px 28px; flex: 1; overflow-x: auto; }
.code .kw { color: #C792EA; }
.code .fn { color: var(--accent); }
.code .str { color: var(--accent-2); }
.code .cm { color: #5B6478; }
.code .type { color: #7FB7FF; }
.type-cursor::after {
  content: '';
  display: inline-block;
  width: 8px; height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-headline { font-size: 46px; margin: 28px 0 14px; }
.hero-sub { font-size: 17px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; }

/* ---- Sections ---- */
section { padding: 80px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 620px; margin-bottom: 46px; }

/* ---- Cards ---- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Purely for the scroll-reveal fade/slide effect (see main.js) — no visual
   box styling of its own, for content blocks that shouldn't look like a
   .card but should still get the same entrance animation as the rest of
   the site. */
.reveal { }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }

.project-card { padding: 0; overflow: hidden; }
.project-card .thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--panel-2), var(--ink)); position: relative; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-card .body { padding: 20px; }
.project-card .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.project-badge-group {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
}
.project-badge {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  padding: 5px 14px; border-radius: 100px;
  color: #fff; text-transform: uppercase; letter-spacing: .03em;
  white-space: nowrap;
  box-shadow: 0 4px 10px -2px rgba(0,0,0,.4);
}
.project-badge-private { background: #EF4444; }
.project-badge-live { background: #22C55E; }
.project-badge-dev { background: #EAB308; color: #241a02; }
.tag { font-family: var(--font-mono); font-size: 11px; padding: 4px 9px; border: 1px solid var(--border); border-radius: 100px; color: var(--muted); }
html[data-theme="light"] .tag { color: #3B4250; border-color: #C7CBD3; }

.radio-list { display: flex; flex-direction: column; gap: 8px; }
.radio-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--border);
  cursor: pointer; font-size: 14px;
  transition: border-color .15s, background .15s;
}
.radio-option:hover { border-color: var(--muted); }
.radio-option input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.radio-option:has(input:checked) { border-color: var(--accent); background: rgba(79,231,193,.06); }

.skill-bar { margin-bottom: 18px; }
.skill-bar .row { display: flex; justify-content: space-between; align-items: flex-start; font-family: var(--font-mono); font-size: 13px; margin-bottom: 6px; }
.skill-bar-category { display: block; font-size: 10.5px; color: var(--muted); font-weight: 400; margin-top: 2px; text-transform: uppercase; letter-spacing: .04em; }
.skill-bar .track { height: 6px; background: var(--panel-2); border-radius: 100px; overflow: hidden; }
.skill-card { cursor: default; }
.skill-card:hover { border-color: var(--border); transform: none; }
.skill-card-clickable { cursor: pointer; }
.skill-card-clickable:hover { border-color: var(--accent); transform: translateY(-3px); }
.skill-bar .fill { height: 100%; background: var(--accent); border-radius: 100px; }

.service-card .num { font-family: var(--font-mono); color: var(--accent-text); font-size: 13px; margin-bottom: 10px; }
.service-card-image {
  width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  background: var(--panel-2); border: 1px solid var(--border); margin-bottom: 14px;
}
.service-card-image img { width: 100%; height: 100%; object-fit: cover; }

.service-card { cursor: pointer; }
.service-price { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-text); }
.service-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.service-features li { font-size: 13px; color: var(--muted); display: flex; align-items: flex-start; gap: 8px; }
.service-features li i { color: var(--accent-text); font-size: 11px; margin-top: 3px; flex-shrink: 0; }

.blog-card .meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 10px; }

/* ---- About page hero + stats layout ---- */
.about-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.about-hero-grid.no-stats { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .about-hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- About page: personal photo next to interests ---- */
.about-interests-grid { display: grid; grid-template-columns: 71% 29%; gap: 44px; align-items: stretch; }
.about-interests-photo { min-height: 320px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.about-interests-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .about-interests-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-interests-photo { min-height: 280px; }
}

/* ---- Stats card (About page) ---- */
.stats-card {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 20px; padding: 30px 10px;
}
.stats-card-glow {
  position: absolute; top: -120px; left: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,231,193,.12), transparent 70%);
  pointer-events: none;
}

.stats-grid {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; row-gap: 24px;
}
.stat-item { text-align: center; padding: 0 12px; }
.stat-item:nth-child(2n) { border-left: 1px solid var(--border); }
.stat-item:nth-child(1), .stat-item:nth-child(2) {
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}

.stat-value { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.1; }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

@media (max-width: 640px) {
  .stats-card { padding: 24px 8px; border-radius: 16px; }
  .stat-value { font-size: 26px; }
}

/* ---- Footer ---- */
footer { border-top: 1px solid var(--border); padding: 50px 0; flex-shrink: 0; }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
/* Footer stays dark in both themes by design, same reasoning as the navbar */
html[data-theme="light"] footer {
  --text: #E6E8EC; --muted: #8B93A6; --border: #232A3A;
  --panel: #12161F; --panel-2: #171C28;
  --accent-text: #4FE7C1; --accent-2-text: #F5B942; --danger-text: #F4674B;
  background: #0B0E14; color: var(--text);
}
footer .muted { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
footer .social { display: flex; gap: 16px; align-items: center; }
footer .social a { color: var(--muted); }
footer .social a:hover { color: var(--accent); }
footer a.muted:hover { color: var(--accent); }

.donate-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 100px;
  background: rgba(245,185,66,.12); border: 1px solid var(--accent-2); color: var(--accent-2-text) !important;
  transition: background .15s, transform .15s;
}
.donate-btn:hover { background: rgba(245,185,66,.2); transform: translateY(-1px); }
/* On a light background, a subtle tint doesn't give this CTA enough
   highlight/emphasis - a solid, punchier orange fill reads much better here. */
html[data-theme="light"] .donate-btn {
  background: #F0800B; border-color: #F0800B; color: #ffffff !important;
}
html[data-theme="light"] .donate-btn:hover { background: #D46F09; border-color: #D46F09; }

/* ---- Forms ---- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: var(--font-mono); font-size: 13px; margin-bottom: 8px; color: var(--muted); }
.form-control {
  width: 100%; padding: 12px 14px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-family: var(--font-body); font-size: 14px;
}
.form-control:focus { outline: none; border-color: var(--accent); }
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 420px; }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 18px; }
.alert-error { background: rgba(244,103,75,.12); border: 1px solid var(--danger); color: #FFB4A3; }
html[data-theme="light"] .alert-error { color: var(--danger-text); }
.alert-success { background: rgba(79,231,193,.1); border: 1px solid var(--accent); color: var(--accent-text); }
.help-text { font-size: 12px; color: var(--muted); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-headline { font-size: 34px; }

  /* Safety net: this project has many custom two/three-column layouts built
     with inline styles (admin list+form splits on Skills/Services/Partners/
     Clients/Invoices/Messages/etc., the dashboard's activity+messages split,
     client portal panels, and more) that a class-based rule alone can't
     reach. Rather than hunt down every inline grid individually across
     dozens of files, collapse any of them to a single column at the same
     width the admin sidebar itself already collapses at — a side-by-side
     form-and-list layout stops making sense well before phone width. */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .client-info-grid { grid-template-columns: 1fr !important; }
  .nav-links {
    display: none;
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--panel); border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
    height: auto; padding: 8px 0;
  }
  .nav-links.is-open { display: flex; }
  html[data-theme="light"] .nav-links {
    background: #12161F; border-bottom-color: #232A3A;
  }
  html[data-theme="light"] .nav-links a:not(.btn) {
    color: #E6E8EC; border-bottom-color: #232A3A;
  }
  .nav-links a:not(.btn) {
    height: auto; padding: 14px 24px; border-bottom: 1px solid var(--border); border-left: 2px solid transparent;
  }
  .nav-links a:not(.btn):hover { border-bottom-color: var(--border); border-left-color: var(--accent); }
  .nav-links a:not(.btn):last-of-type { border-bottom: none; }
  .nav-links .btn { margin: 10px 24px 4px; justify-content: center; }
  .nav-links .theme-toggle { margin: 10px 24px; width: auto; padding: 10px; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .editor-body { flex-direction: column; }

  /* Hero and section headings read too large on small phones otherwise */
  .hero { padding: 60px 0 36px; }
  .hero-headline { font-size: 26px !important; }
  .hero-sub { font-size: 15px; }
  section > .container > .section-head h2,
  .section-head h2 { font-size: 20px !important; }

  /* Any inline two-column padding/gap tends to look cramped once forced
     to a single column — tighten up the outer container padding instead */
  .container { padding: 0 16px; }

  /* Chat bubbles were sized for desktop's extra width - widen them on
     mobile so they use the available space better instead of looking
     cramped at the same fixed percentage */
  .chat-bubble-wrap { max-width: 88% !important; }
}


/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .type-cursor::after { animation: none; }
  .card:hover { transform: none; }
}

/* ---- Partners: compact logo grid, full details open in a modal ---- */
#partners { padding: 64px 0; }

.partners-divider {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin: 36px 0 40px;
}
.partners-divider .line {
  flex: 1; max-width: 220px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border));
}
.partners-divider .line:last-child { background: linear-gradient(90deg, var(--border), transparent); }
.partners-divider .icon {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--accent-text); font-size: 18px;
}

.partners-grid-cols { grid-template-columns: repeat(6, 1fr); gap: 18px; }
@media (max-width: 1200px) {
  .partners-grid-cols { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}
@media (max-width: 900px) {
  .partners-grid-cols { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
  .partners-grid-cols { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 460px) {
  .partners-grid-cols { grid-template-columns: 1fr; gap: 14px; }
}

.partner-card {
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.partner-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 16px 34px -14px rgba(79,231,193,.3);
}

.partner-card-thumb {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1.7 / 1; padding: 20px;
  background: linear-gradient(150deg, #F8FAFC, #E8EDF2);
}
.partner-card-thumb img {
  width: auto; height: auto; max-width: 82%; max-height: 76%; object-fit: contain;
  transition: transform .3s ease;
}
.partner-card:hover .partner-card-thumb img { transform: scale(1.07); }
.partner-card-thumb .fallback {
  font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--ink);
}

.partner-card-body {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.partner-card-title { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.partner-card-cat { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }
.partner-card-arrow {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); color: var(--muted); font-size: 11px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.partner-card:hover .partner-card-arrow { background: var(--accent); color: var(--ink); transform: rotate(45deg); }

.partner-card-link {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-text);
  display: flex; align-items: center; gap: 7px;
}
.partner-card-link i { font-size: 11px; }

.partners-cta {
  margin-top: 32px; padding: 26px 28px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--panel);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.partners-cta-icon {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--accent-text); font-size: 18px;
}
.partners-cta-text { flex: 1; min-width: 200px; }
.partners-cta-text h3 { margin: 0; font-size: 17px; }
.partners-cta-text p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(5,7,11,.7);
  backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
}
.modal-overlay.is-open { display: flex; }
.modal-panel {
  width: 100%; max-width: 420px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
  overflow: hidden;
  position: relative;
  animation: modal-in .15s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-header {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header img { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; background: var(--panel-2); padding: 6px; }
.modal-header .num {
  width: 42px; height: 42px; border-radius: 8px; background: var(--panel-2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 14px; margin: 0;
}
.modal-header h4 { margin: 0; font-size: 16px; font-family: var(--font-display); }
.modal-header .sub { font-size: 12px; color: var(--muted); font-family: var(--font-mono); margin-top: 2px; }
.modal-close { position: absolute; top: 16px; right: 18px; background: none; border: none; color: var(--muted); font-size: 16px; cursor: pointer; padding: 4px; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 20px 22px; position: relative; overflow-y: auto; flex: 1; }
.modal-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.modal-row:last-child { border-bottom: none; }
.modal-row .k { color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.modal-row .v { text-align: right; color: var(--text); }
.modal-footer { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.lightbox-arrow:hover { border-color: var(--accent); color: var(--accent-text); }
@media (max-width: 900px) {
  .lightbox-arrow { display: none; }
}
