@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #050505;
  --bg-2: #0a0a0b;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.58);
  --soft: rgba(255, 255, 255, 0.72);
  --red: #ef233c;
  --red-2: #b90f24;
  --red-soft: rgba(239, 35, 60, 0.16);
  --red-line: rgba(239, 35, 60, 0.32);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(239, 35, 60, 0.14), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.045), transparent 26%),
    linear-gradient(180deg, #050505 0%, #080809 42%, #050505 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 0%, black 0%, transparent 70%);
  z-index: -2;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
main { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.nav {
  position: sticky;
  top: 16px;
  z-index: 20;
  width: min(var(--max), calc(100% - 40px));
  margin: 16px auto 0;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 8, 9, 0.78);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.45);
}
.brand {
  padding-left: 14px;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 18px;
}
.brand::after { content: "."; color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a, .nav-form button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 180ms ease;
}
.nav-links a:hover, .nav-links a.active, .nav-form button:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border-color: var(--line);
}
.nav-form { margin: 0; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.hero {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
  padding: 72px 0 48px;
}
.hero-copy h1, .page-head h1, .about-copy-pro h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.075em;
  font-weight: 900;
}
.hero-copy h1 {
  max-width: 760px;
  background: linear-gradient(90deg, #fff, rgba(255,255,255,0.74), #fff);
  -webkit-background-clip: text;
  color: transparent;
}
.hero-lead, .page-head p, .section-heading p, .services-intro p, .spotlight-copy p, .cta-panel p, .about-text-stack p {
  color: var(--soft);
  line-height: 1.75;
  font-size: 15px;
}
.hero-lead { max-width: 650px; margin: 24px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--line-2); background: rgba(255,255,255,0.09); }
.btn.primary {
  color: #fff;
  border-color: var(--red-line);
  background: linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: 0 14px 35px rgba(239,35,60,0.22);
}
.btn.ghost { background: rgba(255,255,255,0.035); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 12px; }
.btn.full { width: 100%; }
.text-link {
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.text-link::after { content: "→"; color: var(--red); }
.stat-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.stat-strip span, .tool-cloud span, .showcase-services span, .spotlight-list span, .section-band span {
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 800;
}
.hero-showcase {
  position: relative;
  min-height: 540px;
  border: 1px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    radial-gradient(circle at 50% 0%, rgba(239,35,60,0.34), transparent 48%);
  box-shadow: var(--shadow);
}
.showcase-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(239,35,60,0.22);
  filter: blur(70px);
  right: -100px;
  top: -90px;
}
.showcase-topline { display: flex; gap: 8px; padding: 22px; position: relative; z-index: 1; }
.showcase-topline span { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,0.22); }
.showcase-inner {
  position: absolute;
  inset: auto 24px 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(5,5,5,0.64);
  backdrop-filter: blur(18px);
}
.showcase-inner h2 { margin: 0; font-size: 34px; line-height: 1; letter-spacing: -0.05em; }
.showcase-inner p { color: var(--soft); line-height: 1.65; }
.showcase-services { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }

.section-band {
  display: flex;
  gap: 10px;
  overflow: hidden;
  justify-content: center;
  padding: 18px 0 62px;
  border-bottom: 1px solid var(--line);
}
.section-block { padding: 86px 0; border-bottom: 1px solid var(--line); }
.section-heading { margin-bottom: 34px; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h2, .services-intro h2, .spotlight-copy h2, .cta-panel h2 {
  margin: 0;
  max-width: 750px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 900;
}
.center-heading { text-align: center; display: grid; place-items: center; }

.featured-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; }
.featured-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: 200ms ease;
}
.featured-card:hover { transform: translateY(-5px); border-color: var(--red-line); background: var(--panel-2); }
.featured-card-large { grid-row: span 2; }
.project-image-link { position: relative; aspect-ratio: 16/11; overflow: hidden; display: block; background: #0d0d0e; }
.featured-card-large .project-image-link { aspect-ratio: 1/1.15; }
.project-image-link img, .portfolio-gallery-pro img.gallery-main, .portfolio-card-pro img { width: 100%; height: 100%; object-fit: cover; transition: transform 240ms ease; }
.featured-card:hover img, .portfolio-card-pro:hover .gallery-main { transform: scale(1.04); }
.image-count {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.62);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
}
.featured-card-body { padding: 22px; }
.tag, .portfolio-meta span {
  color: var(--red);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 900;
  margin: 0 0 10px;
}
.featured-card-body h3, .portfolio-card-content h2, .service-pro-card h3, .process-grid h3, .about-cards h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.04em;
}
.featured-card-body p, .service-pro-card p, .process-grid p, .portfolio-card-content p, .about-cards p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.services-pro { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 44px; align-items: start; }
.services-intro { position: sticky; top: 120px; }
.services-grid-pro { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service-pro-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.028);
  transition: 180ms ease;
}
.service-pro-card:hover { border-color: var(--red-line); background: rgba(239,35,60,0.055); transform: translateY(-3px); }
.service-number, .process-grid span, .about-cards span, .admin-panel-head > span {
  color: rgba(255,255,255,0.42);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.fivem-spotlight, .cta-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--red-line);
  border-radius: 30px;
  background: radial-gradient(circle at 10% 10%, rgba(239,35,60,0.20), transparent 36%), rgba(255,255,255,0.035);
  margin: 86px 0;
  box-shadow: var(--shadow);
}
.spotlight-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spotlight-list span { border-radius: 14px; padding: 16px; }
.process-grid, .about-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.process-grid article, .about-cards article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}
.cta-panel { text-align: center; display: block; }
.center-actions { justify-content: center; }

.page-head { padding: 105px 0 44px; max-width: 850px; }
.page-head.portfolio-head { text-align: center; margin: 0 auto; }
.page-head h1 { font-size: clamp(40px, 6vw, 76px); }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding-bottom: 34px; }
.filter-pill, .mini {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  padding: 10px 13px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}
.filter-pill.active, .filter-pill:hover, .mini:hover { color: var(--text); border-color: var(--red-line); background: var(--red-soft); }
.portfolio-grid-pro { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 0 0 90px; }
.portfolio-card-pro {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}
.portfolio-card-pro.hidden { display: none; }
.portfolio-gallery-pro { position: relative; aspect-ratio: 16/10; background: #0d0d0e; overflow: hidden; }
.gallery-thumbs.floating-thumbs {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  max-width: calc(100% - 28px);
  overflow-x: auto;
  padding: 6px;
  border-radius: 16px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(14px);
}
.gallery-thumb { width: 46px; height: 46px; border: 1px solid var(--line); padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer; opacity: 0.55; background: #111; flex: 0 0 auto; }
.gallery-thumb.active, .gallery-thumb:hover { opacity: 1; border-color: var(--red); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-card-content { padding: 24px; }
.portfolio-meta { display: flex; gap: 10px; flex-wrap: wrap; }

.about-pro-page { display: grid; grid-template-columns: 1fr 0.82fr; gap: 70px; padding: 105px 0 70px; align-items: start; }
.about-copy-pro h1 span { color: var(--red); }
.about-text-stack { margin-top: 24px; }
.tool-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.skills-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,0.035);
  box-shadow: var(--shadow);
}
.skill-row { margin: 0 0 24px; }
.skill-row div { display: flex; justify-content: space-between; color: var(--soft); font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.skill-row strong { color: var(--red); }
.skill-row i { display: block; height: 3px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.skill-row b { display: block; width: var(--level); height: 100%; background: linear-gradient(90deg, var(--red-2), var(--red)); animation: growBar 1.2s ease both; animation-delay: var(--delay); }
@keyframes growBar { from { width: 0; } }
.about-cards { grid-template-columns: repeat(3, 1fr); padding-top: 0; }

.contact-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 10px 0 40px; }
.contact-button {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.035);
  display: grid;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: 180ms ease;
}
.contact-button:hover { transform: translateY(-3px); border-color: var(--red-line); background: rgba(239,35,60,0.055); }
.contact-button span { color: var(--red); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .16em; }
.contact-button small { color: var(--muted); }
.form-shell { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 32px; padding-bottom: 90px; }
.form-card, .admin-panel, .admin-rail {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,0.035);
}
.form-card { padding: 28px; }
.form, .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 8px; color: var(--soft); font-size: 12px; font-weight: 800; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,0.24);
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
  outline: none;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--red-line); box-shadow: 0 0 0 4px rgba(239,35,60,0.09); }
.span-2 { grid-column: span 2; }
.notice { padding: 14px 16px; border-radius: 14px; margin-bottom: 14px; border: 1px solid var(--line); color: var(--soft); }
.notice.success { border-color: rgba(57, 255, 136, 0.22); background: rgba(57, 255, 136, 0.08); }
.notice.error { border-color: var(--red-line); background: var(--red-soft); }

.admin-shell { display: grid; grid-template-columns: 290px 1fr; gap: 18px; padding: 42px 0 90px; align-items: start; width: min(1400px, calc(100vw - 40px)); margin: 0 auto; }
body:has(.admin-shell) main { width: 100%; }
.admin-rail {
  position: sticky;
  top: 92px;
  padding: 22px;
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.admin-rail h1 { margin: 0; font-size: 30px; letter-spacing: -0.06em; }
.admin-rail p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.admin-rail nav { display: grid; gap: 8px; margin-top: 24px; }
.admin-rail nav a { padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--soft); font-weight: 800; font-size: 13px; background: rgba(255,255,255,0.025); }
.admin-rail nav a:hover { border-color: var(--red-line); color: var(--text); background: var(--red-soft); }
.admin-workspace { display: grid; gap: 18px; }
.admin-panel { padding: 24px; }
.admin-overview { display: grid; grid-template-columns: 1fr 1.25fr; gap: 22px; align-items: center; }
.admin-panel h2 { margin: 0; font-size: 28px; letter-spacing: -0.05em; }
.admin-panel p { color: var(--muted); line-height: 1.7; }
.admin-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.admin-stats article { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(0,0,0,0.18); }
.admin-stats span { font-size: 34px; font-weight: 900; color: var(--red); }
.admin-stats p { margin: 4px 0 0; font-size: 12px; font-weight: 800; }
.admin-panel-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 20px; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
details { border: 1px solid var(--line); border-radius: 18px; background: rgba(0,0,0,0.16); padding: 14px; }
details summary { cursor: pointer; font-weight: 900; margin-bottom: 12px; }
details label + label { margin-top: 12px; }
.project-form-pro { display: grid; gap: 16px; }
.check { display: flex; align-items: center; gap: 10px; }
.check input { width: auto; }
.upload-group-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 12px; }
.upload-group-head strong { display: block; color: var(--text); }
.upload-group-head small, label small { color: var(--muted); font-weight: 600; }
.upload-stack { display: grid; gap: 10px; }
.upload-slot {
  position: relative;
  border: 1px dashed var(--line-2);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,0.025);
}
.upload-slot input { margin-top: 8px; }
.remove-upload { position: absolute; right: 10px; top: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.06); color: var(--text); border-radius: 999px; padding: 4px 9px; cursor: pointer; }
.project-admin-list-pro { display: grid; gap: 16px; }
.project-editor-card { border: 1px solid var(--line); border-radius: 22px; padding: 16px; background: rgba(0,0,0,0.15); }
.project-editor-preview { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; margin-bottom: 16px; }
.project-editor-preview img { width: 120px; height: 80px; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
.project-editor-preview strong { display: block; }
.project-editor-preview span { color: var(--muted); font-size: 12px; }
.existing-images div { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.existing-images img { width: 64px; height: 48px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.admin-actions { margin-top: 12px; }
.delete-form { margin-top: 10px; }
.danger { border-color: rgba(255, 70, 70, 0.3); color: #ff8a8a; }
.message-list-pro { display: grid; gap: 12px; }
.message-row-pro { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(0,0,0,0.16); }
.message-row-pro strong { display: block; }
.message-row-pro span { color: var(--muted); font-size: 12px; }
.message-row-pro p { margin-bottom: 0; }
.sticky-notice { position: sticky; top: 92px; z-index: 4; }

.footer { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 34px 0 50px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.empty-state { color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; background: rgba(255,255,255,0.025); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.reveal-up { animation: revealUp 0.7s ease both; }
.delay-1 { animation-delay: .12s; }
@keyframes revealUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
::selection { background: var(--red); color: #fff; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 999px; }
::-webkit-scrollbar-track { background: #090909; }

@media (max-width: 980px) {
  main, .nav, .footer { width: min(100% - 28px, var(--max)); }
  .nav { border-radius: 24px; align-items: flex-start; flex-direction: column; }
  .nav-links { flex-wrap: wrap; }
  .hero, .services-pro, .fivem-spotlight, .about-pro-page, .form-shell, .admin-shell, .admin-overview { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 55px; gap: 28px; }
  .hero-showcase { min-height: 430px; }
  .featured-grid, .portfolio-grid-pro, .services-grid-pro, .process-grid, .about-cards, .contact-strip, .admin-stats, .editor-grid { grid-template-columns: 1fr; }
  .featured-card-large { grid-row: auto; }
  .services-intro, .admin-rail { position: static; }
  .admin-shell { width: min(100% - 28px, 1400px); }
  .admin-rail { min-height: auto; gap: 22px; }
  .field-grid, .form { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
}

@media (max-width: 560px) {
  .hero-copy h1, .page-head h1, .about-copy-pro h1 { font-size: 38px; letter-spacing: -0.06em; }
  .section-heading h2, .services-intro h2, .spotlight-copy h2, .cta-panel h2 { font-size: 30px; }
  .hero-showcase { min-height: 370px; border-radius: 24px; }
  .showcase-inner { inset: auto 14px 14px; padding: 18px; }
  .showcase-inner h2 { font-size: 26px; }
  .section-block { padding: 58px 0; }
  .fivem-spotlight, .cta-panel { padding: 24px; margin: 58px 0; }
  .project-editor-preview { grid-template-columns: 1fr; }
  .project-editor-preview img { width: 100%; height: 180px; }
}

/* Contact upgrade — premium CTA cards + live request layout */
.contact-hero-head { padding-bottom: 36px; }
.contact-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 6px 0 54px;
}
.contact-action {
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025)),
    radial-gradient(circle at 20% 0%, rgba(239,35,60,0.12), transparent 42%);
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: 220ms ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.20);
}
.contact-action:hover {
  transform: translateY(-5px);
  border-color: var(--red-line);
  background:
    linear-gradient(145deg, rgba(239,35,60,0.11), rgba(255,255,255,0.035)),
    radial-gradient(circle at 20% 0%, rgba(239,35,60,0.22), transparent 45%);
  box-shadow: 0 24px 70px rgba(239,35,60,0.10), 0 20px 60px rgba(0,0,0,0.28);
}
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: 0 14px 30px rgba(239,35,60,0.22);
}
.contact-action p {
  margin: 0 0 6px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.contact-action strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.03em;
  word-break: break-word;
}
.contact-action small { display: block; margin-top: 7px; color: var(--muted); font-weight: 700; }
.contact-action > i {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
}

.contact-live-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
  align-items: start;
  padding-bottom: 95px;
}
.live-copy {
  position: sticky;
  top: 110px;
  padding-top: 8px;
}
.live-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: .96;
  letter-spacing: -0.07em;
  font-weight: 900;
}
.live-copy p { color: var(--soft); line-height: 1.75; max-width: 480px; }
.live-points { display: grid; gap: 10px; margin-top: 24px; }
.live-points span {
  width: fit-content;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.live-chat-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
    rgba(8,8,9,0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.chat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.chat-card-top div { display: flex; align-items: center; gap: 10px; }
.chat-card-top small { color: var(--muted); font-weight: 800; }
.chat-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #39ff88;
  box-shadow: 0 0 20px rgba(57,255,136,.65);
}
.chat-form { display: grid; gap: 14px; }
.chat-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chat-form textarea { min-height: 180px; }

/* Admin live inbox upgrade */
.live-inbox-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.live-inbox-meta small { color: var(--muted); font-weight: 900; }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(57,255,136,.24);
  background: rgba(57,255,136,.07);
  color: rgba(220,255,235,.95);
  font-size: 12px;
  font-weight: 900;
}
.live-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #39ff88;
  box-shadow: 0 0 16px rgba(57,255,136,.8);
}
.live-message-list { gap: 14px; }
.message-row-pro {
  align-items: start;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
}
.message-row-pro.open-message { border-color: rgba(239,35,60,.28); }
.message-row-pro.closed-message { opacity: .62; }
.message-topline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.message-status {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted) !important;
  font-size: 10px !important;
  font-weight: 900;
  text-transform: uppercase;
}
.message-row-pro.open-message .message-status { color: #fff !important; border-color: var(--red-line); background: var(--red-soft); }
.message-main p { white-space: pre-wrap; color: var(--soft); line-height: 1.65; }
.message-main a { color: var(--text); text-decoration: underline; text-decoration-color: var(--red-line); }
.message-actions { display: grid; gap: 8px; justify-items: end; }
.mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.mini:hover { border-color: var(--red-line); background: var(--red-soft); }

@media (max-width: 980px) {
  .contact-action-grid, .contact-live-section, .chat-two { grid-template-columns: 1fr; }
  .live-copy { position: static; }
  .contact-action { grid-template-columns: 44px 1fr; }
  .contact-action > i { grid-column: 2; width: fit-content; }
}

@media (max-width: 560px) {
  .contact-action, .live-chat-card { padding: 18px; border-radius: 20px; }
  .contact-action strong { font-size: 14px; }
  .message-row-pro { grid-template-columns: 1fr; }
  .message-actions { justify-items: start; }
}

/* In-house website chat upgrade */
.upgraded-contact-actions { margin-top: 8px; }
.premium-contact-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
}
.premium-contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.08), transparent);
  transform: translateX(-110%);
  transition: 650ms ease;
  pointer-events: none;
}
.premium-contact-card:hover::before { transform: translateX(110%); }
.discord-icon { background: linear-gradient(135deg, #5865f2, #ef233c); }
.email-icon { background: linear-gradient(135deg, #ffffff, #ef233c); color: #111; }
.copy-icon { background: linear-gradient(135deg, #202020, #ef233c); }
.copy-action.copied { border-color: rgba(57,255,136,.4); background: rgba(57,255,136,.08); }
.inhouse-live-section { grid-template-columns: .9fr 1.1fr; }
.website-chat-card { min-height: 560px; }
.public-chat-window {
  height: 310px;
  overflow-y: auto;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(0,0,0,.25);
}
.chat-reply-form { display: grid; gap: 12px; }
.chat-bubble {
  width: fit-content;
  max-width: min(82%, 620px);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 12px;
  background: rgba(255,255,255,.045);
}
.chat-bubble strong { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.chat-bubble p { margin: 0; color: var(--text); line-height: 1.55; white-space: pre-wrap; }
.chat-bubble small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; }
.visitor-bubble { margin-left: auto; border-color: rgba(239,35,60,.32); background: linear-gradient(145deg, rgba(239,35,60,.17), rgba(255,255,255,.035)); }
.admin-bubble { margin-right: auto; background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025)); }
.chat-closed-note { color: var(--muted); font-weight: 800; text-align: center; padding: 12px; }
.live-chat-admin-panel { min-height: 720px; }
.admin-chat-console {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 16px;
}
.chat-thread-list {
  grid-row: 1 / 3;
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: 620px;
  overflow-y: auto;
  padding-right: 6px;
}
.chat-thread-item {
  position: relative;
  width: 100%;
  display: grid;
  gap: 7px;
  text-align: left;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  color: var(--text);
  cursor: pointer;
  transition: 200ms ease;
}
.chat-thread-item:hover,
.chat-thread-item.active {
  border-color: var(--red-line);
  background: rgba(239,35,60,.09);
  transform: translateY(-1px);
}
.chat-thread-item.closed-chat { opacity: .55; }
.thread-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.thread-top strong { font-size: 14px; }
.thread-top em { font-style: normal; color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.chat-thread-item > span:not(.thread-top) { color: var(--soft); font-weight: 800; font-size: 12px; }
.chat-thread-item small { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.chat-thread-item b {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
}
.chat-admin-window {
  min-height: 450px;
  max-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(0,0,0,.22);
}
.chat-admin-empty { padding: 28px; }
.chat-admin-empty h3 { margin-top: 0; font-size: 26px; }
.chat-admin-header {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}
.chat-admin-header h3 { margin: 4px 0 6px; font-size: 22px; }
.chat-admin-header span { color: var(--muted); font-weight: 800; }
.chat-admin-messages {
  height: 390px;
  overflow-y: auto;
  padding: 18px;
}
.chat-admin-reply {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.035);
}
.chat-admin-reply div { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.chat-admin-reply textarea { min-height: 104px; }
@media (max-width: 1050px) {
  .admin-chat-console { grid-template-columns: 1fr; grid-template-rows: auto; }
  .chat-thread-list { grid-row: auto; max-height: 330px; }
  .inhouse-live-section { grid-template-columns: 1fr; }
}
