/* ============================================================
   Rajat Gupta Portfolio
   Theme: modern editorial developer portfolio
   ============================================================ */

:root {
  --bg: #f7f8fb;
  --bg-2: #eef3f8;
  --surface: rgba(255, 255, 255, .82);
  --surface-solid: #ffffff;
  --ink: #111827;
  --ink-soft: #3f4a5f;
  --muted: #697386;
  --line: rgba(17, 24, 39, .1);
  --line-strong: rgba(17, 24, 39, .18);
  --accent: #2563eb;
  --accent-2: #0f9f8f;
  --accent-3: #e26d35;
  --grad: linear-gradient(135deg, #2563eb 0%, #0f9f8f 58%, #e26d35 100%);
  --grad-soft: linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(15, 159, 143, .1));
  --shadow: 0 24px 70px rgba(17, 24, 39, .12);
  --shadow-soft: 0 16px 42px rgba(17, 24, 39, .09);
  --radius: 8px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(37, 99, 235, .08) 0 16%, transparent 16% 46%, rgba(15, 159, 143, .07) 46% 62%, transparent 62% 100%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 42%, #eef3f8 100%);
}

.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 24, 39, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .72) 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .72) 45%, transparent 100%);
}

.solar-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(226, 109, 53, .55);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, width .18s ease, height .18s ease, margin .18s ease;
  mix-blend-mode: multiply;
}

.solar-cursor::before,
.solar-cursor::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(37, 99, 235, .34);
  border-radius: 50%;
  animation: cursor-orbit 2.8s linear infinite;
}

.solar-cursor::after {
  inset: -7px;
  border-color: rgba(15, 159, 143, .26);
  animation-duration: 4.8s;
  animation-direction: reverse;
}

.solar-cursor span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff4c7, #ffb347 50%, #e26d35 100%);
  box-shadow: 0 0 18px rgba(226, 109, 53, .45);
  transform: translate(-50%, -50%);
}

.solar-cursor span::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 10px rgba(37, 99, 235, .5);
  transform: translateX(-50%);
}

.solar-cursor.is-active { opacity: 1; }

@keyframes cursor-orbit {
  to { transform: rotate(360deg); }
}

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .has-solar-cursor,
  .has-solar-cursor * {
    cursor: none !important;
  }
}

img { max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(37, 99, 235, .2); color: var(--ink); }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 42px);
}

.narrow { max-width: 900px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(18px) saturate(150%);
}

.site-header .navbar { min-height: 76px; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark span {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.brand-mark strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.site-header .nav-link {
  position: relative;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 12px !important;
  transition: color .2s ease, background .2s ease;
}

.site-header .nav-link:hover {
  color: var(--ink);
  background: rgba(37, 99, 235, .08);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}

.nav-login,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: var(--radius);
  padding: 0 16px;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
}

.nav-login {
  border: 1px solid rgba(37, 99, 235, .22);
  background: rgba(37, 99, 235, .08);
  color: var(--accent);
}

.nav-cta {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.nav-login:hover { color: var(--ink); border-color: rgba(37, 99, 235, .34); }
.nav-cta:hover { color: #fff; background: #243044; }

.navbar-toggler {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 6px 9px;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(37, 99, 235, .16); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23111827' stroke-width='2' stroke-linecap='round' d='M4 8h22M4 15h22M4 22h22'/%3E%3C/svg%3E");
}

@media (min-width: 992px) {
  .site-header .navbar-collapse { visibility: visible !important; }
}
.site-header .navbar-collapse.show { visibility: visible !important; }

@media (max-width: 991px) {
  .site-header .navbar-collapse {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--shadow-soft);
  }
  .nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 10px 0 2px;
    width: 100%;
  }
  .nav-login,
  .nav-cta { width: 100%; }
}

.hero-shell {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: clamp(54px, 7vw, 96px) 0 64px;
  overflow: hidden;
}

.hero-shell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: clamp(34px, 7vw, 80px);
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--grad);
}

.hero-copy h1 {
  max-width: 790px;
  margin: 20px 0;
  color: var(--ink);
  font-size: clamp(46px, 7.8vw, 92px);
  line-height: .94;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn-primary-soft,
.btn-ghost-soft,
.section-link,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius);
  padding: 0 20px;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.btn-primary-soft {
  border: 1px solid transparent;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 18px 42px rgba(37, 99, 235, .2);
}
.btn-primary-soft:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(15, 159, 143, .22);
}

.btn-ghost-soft,
.section-link,
.back-link {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
}
.btn-ghost-soft:hover,
.section-link:hover,
.back-link:hover {
  color: var(--ink);
  border-color: rgba(37, 99, 235, .35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 44px;
}

.metric-strip div {
  min-height: 98px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
}
.metric-strip strong {
  display: block;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
}
.metric-strip span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

.portrait-panel {
  position: relative;
  max-width: 470px;
  justify-self: end;
}

.solar-flex {
  position: absolute;
  inset: -86px -86px -74px -86px;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.solar-core {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fff4c7, #ffc45b 48%, #e26d35 78%);
  box-shadow: 0 0 32px rgba(226, 109, 53, .28), 0 0 76px rgba(226, 109, 53, .18);
  opacity: .26;
}

.solar-orbit {
  position: absolute;
  border: 1px solid rgba(17, 24, 39, .1);
  border-radius: 50%;
  animation: solar-spin 22s linear infinite;
}

.solar-orbit i {
  position: absolute;
  top: 50%;
  right: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(37, 99, 235, .28);
}

.orbit-a {
  width: min(70%, 330px);
  aspect-ratio: 1 / 1;
  animation-duration: 12s;
}

.orbit-b {
  width: min(84%, 400px);
  aspect-ratio: 1 / 1;
  animation-duration: 18s;
  animation-direction: reverse;
}

.orbit-c {
  width: min(98%, 470px);
  aspect-ratio: 1 / 1;
  animation-duration: 24s;
}

.orbit-d {
  width: min(112%, 540px);
  aspect-ratio: 1 / 1;
  animation-duration: 31s;
  animation-direction: reverse;
}

.orbit-e {
  width: min(128%, 620px);
  aspect-ratio: 1 / 1;
  animation-duration: 40s;
}

.orbit-f {
  width: min(144%, 700px);
  aspect-ratio: 1 / 1;
  animation-duration: 50s;
  animation-direction: reverse;
}

.orbit-g {
  width: min(160%, 780px);
  aspect-ratio: 1 / 1;
  animation-duration: 62s;
}

.orbit-h {
  width: min(176%, 860px);
  aspect-ratio: 1 / 1;
  animation-duration: 74s;
  animation-direction: reverse;
}

.planet-mercury { width: 8px !important; height: 8px !important; right: -4px !important; background: #8b95a1 !important; }
.planet-venus { width: 11px !important; height: 11px !important; right: -5px !important; background: #d8a35d !important; }
.planet-earth { width: 13px !important; height: 13px !important; right: -6px !important; background: #2563eb !important; box-shadow: 0 0 16px rgba(37, 99, 235, .34) !important; }
.planet-mars { width: 10px !important; height: 10px !important; right: -5px !important; background: #c75035 !important; }
.planet-jupiter {
  width: 18px;
  height: 18px;
  right: -9px;
  background: linear-gradient(135deg, #e7b77e, #a86339);
  box-shadow: 0 0 18px rgba(226, 109, 53, .3);
}
.planet-saturn {
  width: 16px !important;
  height: 16px !important;
  right: -8px !important;
  background: #d7bb78 !important;
}
.planet-saturn::after {
  content: "";
  position: absolute;
  inset: 5px -7px;
  border: 1px solid rgba(215, 187, 120, .85);
  border-radius: 50%;
  transform: rotate(-18deg);
}
.planet-uranus { width: 14px !important; height: 14px !important; right: -7px !important; background: #67c8d7 !important; }
.planet-neptune { width: 14px !important; height: 14px !important; right: -7px !important; background: #4568d8 !important; }

@keyframes solar-spin {
  to { transform: rotate(360deg); }
}

.portrait-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #dfe7f0;
  box-shadow: var(--shadow);
}
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 6px;
  pointer-events: none;
}
.portrait-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.55;
  object-fit: cover;
  object-position: center top;
}

.availability-card,
.hero-stats-card {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.availability-card {
  left: -30px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(310px, 92%);
  padding: 14px 16px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 800;
}
.availability-card span {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: #11b981;
  box-shadow: 0 0 0 5px rgba(17, 185, 129, .14);
}

.hero-stats-card {
  right: -28px;
  top: 26px;
  width: min(260px, 82%);
  padding: 18px;
}
.hero-stats-card strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}
.hero-stats-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.section-panel {
  position: relative;
  padding: clamp(72px, 8vw, 112px) 0;
}

.section-panel.muted {
  background: rgba(255, 255, 255, .5);
  border-block: 1px solid var(--line);
}

.section-panel h2 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: clamp(31px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}
.section-heading p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}
.about-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 34px);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.section-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.82;
}

.ownership-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(15, 159, 143, .08));
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.ownership-note strong { color: var(--accent); }

.ownership-note span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.ownership-note:hover {
  color: var(--ink);
  border-color: rgba(37, 99, 235, .34);
  box-shadow: var(--shadow-soft);
}

.work-note {
  margin-top: 12px;
  border-color: rgba(226, 109, 53, .22);
  background: linear-gradient(135deg, rgba(226, 109, 53, .08), rgba(37, 99, 235, .07));
}

.work-note strong { color: var(--accent-3); }

.focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.focus-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.timeline-item,
.skill-tile,
.service-card,
.blog-card,
.line-card,
.project-card,
.inquiry-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .75) inset;
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}
.timeline-item:hover,
.skill-tile:hover,
.service-card:hover,
.blog-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, .28);
  box-shadow: var(--shadow-soft);
}

.timeline-list {
  display: grid;
  gap: 16px;
}

.journey-flow {
  position: relative;
  gap: 16px;
}

.journey-flow::before { display: none; }

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  margin-left: 0;
  padding: 24px;
  overflow: hidden;
  border-left: 4px solid var(--accent);
}

.timeline-item::before { display: none; }

.timeline-item.current-role {
  border-left-color: var(--accent-3);
  border-color: rgba(226, 109, 53, .3);
  border-left-width: 4px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(226, 109, 53, .1)),
    #fff;
  box-shadow: 0 24px 70px rgba(226, 109, 53, .11);
}

.timeline-item.current-role::before {
  background: var(--accent-3);
  box-shadow: 0 0 0 6px rgba(226, 109, 53, .13);
}

.timeline-item.education-step {
  border-left-color: var(--accent-2);
  border-color: rgba(15, 159, 143, .22);
  border-left-width: 4px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(15, 159, 143, .07));
}

.timeline-item.education-step::before {
  background: var(--accent-2);
  box-shadow: 0 0 0 6px rgba(15, 159, 143, .12);
}

.timeline-item.internship-step {
  border-left-color: var(--accent);
  border-color: rgba(37, 99, 235, .24);
  border-left-width: 4px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(37, 99, 235, .07));
}

.timeline-item.featured-internship {
  grid-template-columns: 210px 1fr;
  border-color: rgba(37, 99, 235, .34);
  border-left-width: 6px;
  background:
    radial-gradient(circle at 88% 18%, rgba(226, 109, 53, .16), transparent 28%),
    radial-gradient(circle at 8% 100%, rgba(15, 159, 143, .14), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(37, 99, 235, .1));
  box-shadow: 0 26px 76px rgba(37, 99, 235, .13);
}

.timeline-item.internship-step::before {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, .12);
}

.timeline-item.featured-internship::after {
  content: "Featured";
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(37, 99, 235, .2);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, .88);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-highlight-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  border: 1px solid rgba(226, 109, 53, .24);
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(226, 109, 53, .09);
  color: var(--accent-3);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-item.business-step {
  border-left-color: #8a6f20;
  border-color: rgba(138, 111, 32, .24);
  border-left-width: 4px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(138, 111, 32, .08));
}

.timeline-item.business-step .timeline-date span {
  border-color: rgba(138, 111, 32, .28);
  color: #725a14;
}

.timeline-date {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-content: start;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  min-width: 0;
}

.timeline-date span {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: normal;
}

.timeline-item.current-role .timeline-date span {
  border-color: rgba(226, 109, 53, .3);
  color: var(--accent-3);
}

.timeline-item h3,
.project-card h3,
.service-card h3,
.line-card h3,
.blog-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}
.timeline-item p,
.project-card p,
.service-card p,
.blog-card p,
.line-card p {
  color: var(--ink-soft);
  line-height: 1.68;
}
.timeline-item .company {
  margin: 6px 0 12px;
  color: var(--accent-2);
  font-weight: 800;
}

.timeline-item .company a {
  color: inherit;
  text-decoration: none;
}

.timeline-item .company a:hover { color: var(--accent); }

.tech-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  color: #17665e;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 800;
}

.tech-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.erp-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  gap: 28px;
  margin-top: 28px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(37, 99, 235, .07) 45%, rgba(226, 109, 53, .07)),
    #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.erp-showcase-copy {
  position: relative;
  z-index: 1;
}

.erp-showcase-copy h3 {
  margin: 14px 0 14px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  font-weight: 800;
}

.erp-showcase-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.72;
}

.erp-system-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.erp-system-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.erp-system-card span {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.erp-system-card strong {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.18;
  font-weight: 800;
}

.erp-system-card p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.6;
}

.erp-system-card:hover {
  color: var(--ink);
  border-color: rgba(37, 99, 235, .32);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.erp-orbit {
  position: absolute;
  left: -80px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 50%;
}

.erp-orbit::before,
.erp-orbit::after {
  content: "";
  position: absolute;
  inset: 42px;
  border: 1px solid rgba(15, 159, 143, .16);
  border-radius: 50%;
}

.erp-orbit::after {
  inset: 92px;
  border-color: rgba(226, 109, 53, .18);
}

.erp-orbit span,
.erp-orbit i {
  position: absolute;
  border-radius: 50%;
}

.erp-orbit span {
  top: 52px;
  right: 56px;
  width: 18px;
  height: 18px;
  background: var(--accent);
}

.erp-orbit i {
  right: 108px;
  bottom: 74px;
  width: 24px;
  height: 24px;
  background: var(--accent-3);
}

.skill-grid,
.service-grid,
.blog-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.skill-tile,
.service-card,
.blog-card,
.line-card {
  padding: 24px;
}
.skill-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  font-weight: 800;
}
.skill-top span {
  color: var(--accent);
  font-family: var(--mono);
}
.skill-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  margin: 16px 0 10px;
  background: rgba(17, 24, 39, .08);
}
.skill-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad) !important;
}
.skill-tile small { color: var(--muted); font-weight: 700; }

.ai-tools-panel {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  background:
    radial-gradient(circle at 94% 8%, rgba(226, 109, 53, .16), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(15, 159, 143, .08) 52%, rgba(37, 99, 235, .08));
  box-shadow: var(--shadow-soft);
}

.ai-tools-panel h3 {
  margin: 10px 0 10px;
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.12;
  font-weight: 900;
}

.ai-tools-panel p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

.ai-tool-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.ai-tool-list span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid rgba(17, 24, 39, .1);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(17, 24, 39, .06);
}

.coding-languages-panel {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(15, 159, 143, .2);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  background:
    radial-gradient(circle at 8% 18%, rgba(15, 159, 143, .13), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(226, 109, 53, .06));
  box-shadow: var(--shadow-soft);
}

.coding-languages-panel h3 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.14;
  font-weight: 900;
}

.coding-language-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.coding-language-list span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 24, 39, .09);
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 22px rgba(17, 24, 39, .05);
}

.project-card { overflow: hidden; }
.project-card img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.project-card > div { padding: 22px; }
.project-card span,
.blog-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.blog-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.blog-card a::after {
  content: "->";
  color: var(--accent);
  transition: transform .2s ease;
}
.blog-card a:hover::after { transform: translateX(4px); }

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: rgba(255, 255, 255, .75);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.project-link.primary {
  background: var(--ink);
  color: #fff;
}

.project-link.mobile {
  border-color: rgba(15, 159, 143, .28);
  background: rgba(15, 159, 143, .08);
  color: #17665e;
}

.project-link:hover {
  color: var(--ink);
  border-color: rgba(37, 99, 235, .34);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.project-link.primary:hover { color: #fff; }

.resume-projects {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 24px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow-soft);
}

.resume-projects h3 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
}

.resume-project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.resume-project-list a,
.resume-project-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
}

.resume-project-list a {
  border-color: rgba(15, 159, 143, .28);
  color: #17665e;
}

.resume-project-list a:hover {
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.gallery-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(37, 99, 235, .06)),
    #eef3f8;
  box-shadow: var(--shadow);
}

.gallery-stage {
  border-radius: inherit;
  background: #0f172a;
}

.gallery-photo-shell {
  display: grid;
  min-height: min(66vh, 610px);
  place-items: center;
  padding: clamp(14px, 2.4vw, 26px);
  background:
    radial-gradient(circle at 15% 18%, rgba(37, 99, 235, .18), transparent 28%),
    radial-gradient(circle at 90% 92%, rgba(15, 159, 143, .18), transparent 30%),
    #0f172a;
}

.gallery-frame img {
  width: 100%;
  max-height: min(62vh, 560px);
  object-fit: contain;
  object-position: center;
}

.gallery-frame .carousel-caption {
  right: auto;
  left: 28px;
  bottom: 28px;
  max-width: 520px;
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(17, 24, 39, .72);
  text-align: left;
  backdrop-filter: blur(12px);
}

.gallery-indicators {
  display: flex;
  gap: 10px;
  padding: 14px;
  overflow-x: auto;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid var(--line);
}

.gallery-indicators button {
  width: 74px;
  min-width: 74px;
  height: 52px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: #dbe5ef;
  opacity: .68;
  transition: border-color .2s ease, opacity .2s ease, transform .2s ease;
}

.gallery-indicators button.active {
  border-color: var(--accent);
  opacity: 1;
  transform: translateY(-1px);
}

.gallery-indicators img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.gallery-frame .carousel-control-prev,
.gallery-frame .carousel-control-next {
  top: calc(50% + 38px);
  width: 56px;
  height: 56px;
  margin: auto 18px;
  border-radius: 50%;
  background: rgba(17, 24, 39, .58);
  backdrop-filter: blur(10px);
}
.gallery-frame .carousel-caption h3 {
  margin: 0 0 6px;
  color: #fff;
  font-weight: 800;
}
.gallery-frame .carousel-caption p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
}

.service-card span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  margin-bottom: 18px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-weight: 800;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.line-card { margin-top: 16px; }
.line-card p { margin: 8px 0 0; color: var(--muted); }

.contact-section {
  background: linear-gradient(135deg, #111827 0%, #1f3148 55%, #123d3a 100%);
  color: #fff;
}
.contact-section .section-kicker,
.contact-section h2,
.contact-section .contact-lines a { color: #fff; }
.contact-section .section-kicker::before { background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 48px;
  align-items: start;
}
.contact-grid p {
  margin-top: 20px;
  color: rgba(255, 255, 255, .76);
  font-size: 18px;
  line-height: 1.7;
}
.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}
.contact-lines a {
  font-family: var(--mono);
  font-weight: 800;
  text-decoration: none;
  transition: opacity .2s ease;
}
.contact-lines a:hover { opacity: .72; }
.inquiry-card {
  padding: 26px;
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .22);
  backdrop-filter: blur(16px);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  padding: 13px 15px;
  outline: none;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-grid input::placeholder,
.form-grid textarea::placeholder { color: var(--muted); }
.form-grid input:focus,
.form-grid textarea:focus {
  border-color: #fff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .18);
}
.form-grid input[type="file"] { padding: 10px 12px; color: var(--ink-soft); }
.form-grid textarea {
  grid-column: 1 / -1;
  resize: vertical;
}

.site-footer {
  padding: 42px 0;
  background: #0d1420;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .68);
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand strong { color: #fff; }
.footer-brand span { background: #fff; color: var(--ink); }
.site-footer p {
  max-width: 520px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .62);
  line-height: 1.65;
}
.footer-contact {
  display: grid;
  gap: 8px;
  text-align: right;
}
.site-footer a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
}
.site-footer a:hover { color: #fff; }

.rg-section,
.detail-shell {
  padding: 82px 0 104px;
}
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: end;
  margin-top: 26px;
}
.detail-shell h1,
.rg-section h1 {
  max-width: 880px;
  margin: 14px 0 0;
  color: var(--ink);
  font-size: clamp(40px, 5.5vw, 70px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}
.detail-shell .lead,
.rg-section .lead {
  max-width: 760px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.72;
}
.detail-meta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.detail-meta span,
.detail-date {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.detail-meta strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  line-height: 1.5;
}
.detail-cover,
.rg-section img {
  display: block;
  width: 100%;
  margin: 34px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.detail-content,
.rg-section p,
.rg-section li,
.detail-shell p,
.detail-shell li {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.85;
}
.detail-content {
  max-width: 860px;
  white-space: normal;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.detail-link-panel {
  max-width: 860px;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.detail-link-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.detail-link-panel .detail-actions { margin-top: 16px; }

.detail-actions span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.rg-section strong { color: var(--ink); }
.rg-section a,
.detail-shell a { color: var(--accent); }

@media (max-width: 991px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .split-grid,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .portrait-panel {
    max-width: 440px;
    margin: 0 auto;
    justify-self: center;
  }
  .availability-card { left: 18px; }
  .hero-stats-card { right: 16px; }
  .solar-flex { inset: -24px; opacity: .7; }

  .metric-strip,
  .skill-grid,
  .project-grid,
  .service-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .erp-showcase,
  .ai-tools-panel,
  .coding-languages-panel,
  .erp-system-grid {
    grid-template-columns: 1fr;
  }

  .erp-system-card { min-height: auto; }

  .resume-projects {
    grid-template-columns: 1fr;
  }

  .ai-tool-list { justify-content: flex-start; }

  .coding-language-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-item,
  .timeline-item.featured-internship { grid-template-columns: 1fr; }
  .timeline-item {
    gap: 14px;
    margin-left: 0;
    padding: 20px;
  }
  .timeline-date {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
  }
  .timeline-date span { margin-right: 6px; }
  .section-heading {
    display: grid;
    align-items: start;
  }
  .footer-grid {
    display: grid;
    align-items: start;
  }
  .footer-contact { text-align: left; }
}

@media (max-width: 640px) {
  .site-header .navbar { min-height: 66px; }
  .brand-mark strong { max-width: 180px; }

  .hero-shell {
    min-height: auto;
    padding: 52px 0;
  }
  .hero-copy h1 { font-size: 43px; }
  .hero-copy p,
  .section-lead { font-size: 17px; }
  .hero-actions > a { width: 100%; }
  .ownership-note {
    display: grid;
    gap: 6px;
  }

  .skill-grid,
  .project-grid,
  .service-grid,
  .blog-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item.featured-internship::after {
    position: static;
    width: fit-content;
    order: -1;
    margin-bottom: 2px;
  }

  .ai-tool-list span {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 13px;
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 30px;
  }
  .metric-strip div {
    min-height: 84px;
    padding: 15px;
  }

  .availability-card,
  .hero-stats-card {
    position: static;
    width: 100%;
    margin-top: 12px;
  }
  .solar-flex {
    inset: -28px;
    opacity: .46;
  }
  .orbit-g,
  .orbit-h { display: none; }
  .portrait-frame::before { inset: 10px; }
  .section-panel { padding: 66px 0; }
  .section-panel h2 { font-size: 31px; }
  .gallery-frame img { height: 360px; }
  .gallery-photo-shell {
    min-height: 360px;
    padding: 10px;
  }
  .gallery-frame img {
    height: auto;
    max-height: 340px;
  }
  .gallery-frame .carousel-caption {
    position: static;
    max-width: none;
    border-radius: 0;
    padding: 14px;
    background: #111827;
  }
  .gallery-frame .carousel-control-prev,
  .gallery-frame .carousel-control-next {
    top: 48%;
    width: 42px;
    height: 42px;
    margin: auto 8px;
  }
  .gallery-indicators {
    gap: 8px;
    padding: 10px;
  }
  .gallery-indicators button {
    width: 58px;
    min-width: 58px;
    height: 42px;
  }
  .coding-language-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Admin - creative light workspace · solar/editorial motif
   ============================================================ */
@keyframes admin-spin      { to { transform: rotate(360deg); } }
@keyframes admin-spin-rev  { to { transform: rotate(-360deg); } }
@keyframes admin-sun-pulse {
  0%, 100% { box-shadow: 0 0 22px 4px rgba(226, 109, 53, .45), 0 0 60px 14px rgba(226, 109, 53, .18); }
  50%      { box-shadow: 0 0 30px 8px rgba(226, 109, 53, .58), 0 0 80px 22px rgba(226, 109, 53, .24); }
}

/* Reusable decorative solar system (orbits + sun), placed inside a panel */
.admin-orbit {
  position: absolute;
  width: 340px;
  height: 340px;
  pointer-events: none;
  opacity: .9;
}
.admin-orbit::before,
.admin-orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, .18);
  animation: admin-spin 26s linear infinite;
}
.admin-orbit::after {
  inset: 22%;
  border-color: rgba(15, 159, 143, .22);
  animation: admin-spin-rev 16s linear infinite;
}
.admin-orbit i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 33%, #fff4c7, #ffb347 48%, #e26d35 100%);
  animation: admin-sun-pulse 5s ease-in-out infinite;
}
.admin-orbit i::before,
.admin-orbit i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform-origin: center;
}
.admin-orbit i::before {
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(37, 99, 235, .6);
  transform: rotate(0deg) translateX(85px);
  animation: admin-spin 12s linear infinite;
}
.admin-orbit i::after {
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--accent-2);
  box-shadow: 0 0 12px rgba(15, 159, 143, .6);
  transform: rotate(0deg) translateX(150px);
  animation: admin-spin-rev 20s linear infinite;
}

.rg-admin-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% 8%, rgba(37, 99, 235, .12), transparent 24%),
    radial-gradient(circle at 4% 96%, rgba(15, 159, 143, .1), transparent 26%),
    #f4f7fb;
  color: #0f172a;
}
.rg-sidebar {
  position: sticky;
  top: 0;
  width: 286px;
  min-height: 100vh;
  padding: 20px 14px;
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 20% 0%, rgba(37, 99, 235, .22), transparent 60%),
    radial-gradient(120% 50% at 90% 100%, rgba(226, 109, 53, .16), transparent 60%),
    linear-gradient(180deg, #0d1420, #111827 52%, #103733);
  box-shadow: 18px 0 48px rgba(15, 23, 42, .13);
}
/* faint decorative orbit glow bottom of sidebar */
.rg-sidebar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -120px;
  width: 260px;
  height: 260px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 60px rgba(37, 99, 235, .18);
  pointer-events: none;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 10px;
  color: #fff;
}
.admin-brand {
  position: relative;
  z-index: 1;
}
.admin-brand span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: var(--grad);
  color: #fff;
  font-family: var(--mono);
  font-weight: 900;
  letter-spacing: .02em;
  box-shadow: 0 10px 26px rgba(37, 99, 235, .4);
}
.admin-brand strong {
  display: block;
  color: #fff;
  line-height: 1.1;
}
.admin-brand small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  font-weight: 700;
}
.admin-nav {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
}
.rg-sidebar a {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  border-radius: 10px;
  padding: 0 14px;
  color: rgba(255, 255, 255, .68);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.rg-sidebar a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  transform: translateX(3px);
}
.rg-sidebar .active {
  color: #fff;
  font-weight: 800;
  background: var(--grad);
  box-shadow: 0 10px 26px rgba(37, 99, 235, .34);
}
/* little orbiting dot marker on the active item */
.rg-sidebar .active::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, .8);
}
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(226, 232, 240, .9);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px);
}
.admin-topbar span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.admin-topbar span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(15, 159, 143, .16);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(15, 159, 143, .18); }
  50%      { box-shadow: 0 0 0 6px rgba(15, 159, 143, .05); }
}
.admin-topbar strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 20px;
}
.admin-topbar-actions {
  display: flex;
  gap: 8px;
}
.admin-main {
  padding: 28px;
}
.rg-admin-shell .card {
  border-radius: 10px;
  border: 1px solid #e2e8f0 !important;
}
.rg-admin-shell .btn-success {
  border: 0;
  background: var(--grad);
  font-weight: 700;
}
.rg-admin-shell .btn-success:hover { background: var(--grad); filter: brightness(1.08); }
.rg-admin-shell .form-control,
.rg-admin-shell .form-select {
  border-radius: 8px;
  min-height: 42px;
}

.admin-dashboard-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 20px;
  padding: clamp(26px, 4vw, 40px);
  background:
    radial-gradient(circle at 92% 10%, rgba(226, 109, 53, .16), transparent 34%),
    radial-gradient(circle at 60% 120%, rgba(15, 159, 143, .12), transparent 40%),
    linear-gradient(135deg, #ffffff, rgba(37, 99, 235, .1) 62%, rgba(15, 159, 143, .1));
  box-shadow: 0 22px 60px rgba(15, 23, 42, .08);
}
/* thin gradient rule along the top edge */
.admin-dashboard-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
}
.admin-dashboard-hero > div,
.admin-dashboard-hero > a { position: relative; z-index: 1; }
.admin-dashboard-hero .admin-orbit {
  top: 50%;
  right: -70px;
  transform: translateY(-50%);
  z-index: 0;
  opacity: .55;
}
.admin-dashboard-hero span,
.admin-action-panel > div > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.admin-dashboard-hero span::before,
.admin-action-panel > div > span::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.admin-dashboard-hero h1 {
  max-width: 720px;
  margin: 10px 0 10px;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  font-weight: 900;
}
.admin-dashboard-hero p {
  max-width: 700px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}
.admin-hero-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}
.admin-hero-link:hover { color: #fff; background: #243044; }
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.admin-stat-card {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 15px;
  align-items: center;
  min-height: 128px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 16px 38px rgba(15, 23, 42, .06);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
/* top accent bar (color cycles with the icon) */
.admin-stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 46px;
  height: 3px;
  background: var(--accent);
  transition: width .25s ease;
}
.admin-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, .28);
  box-shadow: 0 24px 50px rgba(15, 23, 42, .12);
}
.admin-stat-card:hover::before { width: 100%; }

.admin-stat-icon {
  display: grid;
  width: 52px;
  height: 52px;
  min-width: 52px;
  place-items: center;
  border-radius: 14px;
  background: rgba(37, 99, 235, .12);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 900;
  transition: transform .25s ease;
}
.admin-stat-card:hover .admin-stat-icon { transform: rotate(-6deg) scale(1.06); }

/* tri-color rotation across the grid: blue / teal / orange */
.admin-stat-card:nth-child(3n+2)::before { background: var(--accent-2); }
.admin-stat-card:nth-child(3n+2) .admin-stat-icon {
  background: rgba(15, 159, 143, .12);
  color: var(--accent-2);
}
.admin-stat-card:nth-child(3n+2):hover { border-color: rgba(15, 159, 143, .3); }
.admin-stat-card:nth-child(3n+3)::before { background: var(--accent-3); }
.admin-stat-card:nth-child(3n+3) .admin-stat-icon {
  background: rgba(226, 109, 53, .12);
  color: var(--accent-3);
}
.admin-stat-card:nth-child(3n+3):hover { border-color: rgba(226, 109, 53, .32); }

.admin-stat-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.admin-stat-card strong {
  display: block;
  margin: 3px 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 36px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.02em;
}
.admin-stat-card small {
  color: var(--ink-soft);
  font-weight: 700;
}
.admin-action-panel {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 22px;
  margin-top: 22px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 16px 38px rgba(15, 23, 42, .06);
}
.admin-action-panel h2 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.12;
  font-weight: 900;
}
.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.admin-action-grid a {
  position: relative;
  display: block;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 14px;
  padding: 18px 40px 18px 18px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .2s ease;
}
.admin-action-grid a::after {
  content: "→";
  position: absolute;
  top: 18px;
  right: 16px;
  color: var(--accent);
  font-weight: 900;
  opacity: .5;
  transition: transform .2s ease, opacity .2s ease;
}
.admin-action-grid a:hover {
  border-color: rgba(37, 99, 235, .28);
  transform: translateY(-3px);
  background: linear-gradient(135deg, #ffffff, rgba(37, 99, 235, .05));
  box-shadow: 0 16px 32px rgba(15, 23, 42, .1);
}
.admin-action-grid a:hover::after { transform: translateX(4px); opacity: 1; }
.admin-action-grid strong {
  display: block;
  font-weight: 900;
}
.admin-action-grid small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
}

.admin-login-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(37, 99, 235, .18), transparent 30%),
    radial-gradient(circle at 86% 78%, rgba(15, 159, 143, .18), transparent 32%),
    linear-gradient(135deg, #f8fbff 0%, #eef5fb 48%, #eaf7f3 100%);
}
.admin-login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .95fr) 430px;
  gap: 56px;
  align-items: center;
  width: min(1100px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
}
/* decorative orbiting solar system floating behind the login */
.admin-login-shell .admin-orbit {
  top: 8%;
  right: -60px;
  width: 300px;
  height: 300px;
  z-index: -1;
  opacity: .6;
}
.admin-login-shell::before {
  content: "";
  position: absolute;
  inset: auto 48% 8% -8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, .28), transparent);
}
.login-intro { color: var(--ink); }
.login-intro span {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(37, 99, 235, .08);
  border: 1px solid rgba(37, 99, 235, .16);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.login-intro h1 {
  max-width: 650px;
  margin: 22px 0 18px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}
.login-intro p {
  max-width: 570px;
  color: #465568;
  font-size: 18px;
  line-height: 1.75;
}
.login-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 650px;
  margin-top: 28px;
}
.login-feature-grid div {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 14px;
  padding: 18px 16px 16px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
  transition: transform .18s ease, box-shadow .2s ease;
}
.login-feature-grid div::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 36px;
  height: 3px;
  background: var(--accent);
}
.login-feature-grid div:nth-child(2)::before { background: var(--accent-2); }
.login-feature-grid div:nth-child(3)::before { background: var(--accent-3); }
.login-feature-grid div:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, .1);
}
.login-feature-grid strong,
.login-feature-grid small {
  display: block;
}
.login-feature-grid strong {
  color: var(--ink);
  font-weight: 900;
}
.login-feature-grid small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}
.login-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 20px;
  padding: 34px 32px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(15, 23, 42, .14);
}
.login-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad);
}
.login-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.login-mark {
  display: grid;
  width: 50px;
  height: 50px;
  min-width: 50px;
  place-items: center;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-family: var(--mono);
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(37, 99, 235, .38);
}
.login-card-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.login-card h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 27px;
  font-weight: 900;
}
.login-card .form-label {
  color: var(--ink);
  font-weight: 800;
}
.login-card .form-control {
  min-height: 46px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(203, 213, 225, .95);
  color: var(--ink);
}
.login-card .form-control::placeholder { color: var(--muted); }
.login-card .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
  background: #fff;
  color: var(--ink);
}
.login-card .btn-success {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: var(--grad);
  font-weight: 900;
  letter-spacing: .01em;
  box-shadow: 0 14px 32px rgba(37, 99, 235, .3);
  transition: transform .18s ease, box-shadow .25s ease, filter .2s ease;
}
.login-card .btn-success:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 20px 44px rgba(37, 99, 235, .4);
}
.login-back-link {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}
.login-back-link:hover { color: var(--accent); }

@media (max-width: 860px) {
  .rg-admin-shell {
    display: block !important;
  }
  .rg-sidebar {
    position: static;
    width: 100%;
    min-height: auto;
  }
  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-topbar,
  .admin-dashboard-hero,
  .admin-action-panel {
    grid-template-columns: 1fr;
  }
  .admin-main {
    padding: 18px;
  }
  .admin-stat-grid,
  .admin-action-grid {
    grid-template-columns: 1fr;
  }
  .admin-login-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 0;
  }
  .login-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 861px) and (max-width: 1180px) {
  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* hide the decorative solar system on small screens; pause on reduced motion */
@media (max-width: 640px) {
  .admin-orbit { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-orbit,
  .admin-orbit::before,
  .admin-orbit::after,
  .admin-orbit i,
  .admin-orbit i::before,
  .admin-orbit i::after,
  .admin-topbar span::before { animation: none !important; }
}
