:root {
  --navy: #132e63;
  --light-blue: #c7d7e2;
  --accent: #88a5d2;
  --bg: #000;
  --glass: rgba(19, 46, 99, 0.15);
  --glass-border: rgba(199, 215, 226, 0.12);
  --glass-strong: rgba(19, 46, 99, 0.35);
  --glow: rgba(136, 165, 210, 0.4);
  --text-primary: #c7d7e2;
  --text-muted: rgba(199, 215, 226, 0.66);
  --danger: #ff8a8a;
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #000;
  color: var(--text-primary);
  cursor: none;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(19, 46, 99, 0.36), transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(136, 165, 210, 0.08), transparent 60%),
    radial-gradient(ellipse 30% 30% at 20% 80%, rgba(19, 46, 99, 0.2), transparent 60%),
    #000;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

img,
video,
iframe {
  display: block;
  max-width: 100%;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background: var(--navy);
}

#cursor,
#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

#cursor {
  width: 12px;
  height: 12px;
  background: var(--accent);
  box-shadow: 0 0 20px var(--glow), 0 0 40px rgba(136, 165, 210, 0.2);
  transition: width 0.25s, height 0.25s, background 0.25s, opacity 0.25s;
}

#cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(136, 165, 210, 0.5);
  transition: width 0.25s, height 0.25s, border-color 0.25s, opacity 0.25s;
}

body.cursor-hover #cursor {
  width: 20px;
  height: 20px;
  background: #fff;
}

body.cursor-hover #cursor-ring {
  width: 62px;
  height: 62px;
  border-color: var(--accent);
}

body.cursor-card #cursor {
  opacity: 0.42;
}

body.cursor-card #cursor-ring {
  width: 82px;
  height: 82px;
  border-color: rgba(136, 165, 210, 0.32);
}

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 40px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: var(--light-blue);
  font-size: 18px;
  font-weight: 800;
}

.nav-logo img,
.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid rgba(136, 165, 210, 0.35);
  border-radius: 50%;
  background: #dff3fa;
  object-fit: cover;
  padding: 3px;
  box-shadow: 0 0 24px rgba(136, 165, 210, 0.22);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: color 0.25s;
}

.nav-links a:hover {
  color: var(--light-blue);
}

.nav-cta,
.btn-primary,
.btn-outline,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  border-radius: 999px;
  cursor: none;
  transition: transform 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.nav-cta {
  padding: 10px 24px;
  border: 1px solid var(--glass-border);
  background: var(--glass-strong);
  color: var(--light-blue);
  font-size: 13px;
  font-weight: 700;
}

.btn-primary,
.primary-button {
  padding: 14px 28px;
  border: 1px solid rgba(136, 165, 210, 0.42);
  background: linear-gradient(135deg, var(--navy), rgba(136, 165, 210, 0.32));
  color: #fff;
  font-weight: 800;
  position: relative;
  overflow: hidden;
}

.btn-outline,
.ghost-button {
  padding: 14px 28px;
  border: 1px solid rgba(199, 215, 226, 0.22);
  background: transparent;
  color: var(--light-blue);
  font-weight: 700;
}

.btn-primary:hover,
.btn-outline:hover,
.primary-button:hover,
.ghost-button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(136, 165, 210, 0.62);
  box-shadow: 0 0 34px rgba(136, 165, 210, 0.18);
}

#hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 40px 80px;
}

.hero-bg,
.hero-particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(1.5);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s var(--transition), transform 0.9s var(--transition);
}

.hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-avatar-wrap {
  position: relative;
  width: 164px;
  height: 164px;
  margin: 0 auto 48px;
}

.hero-avatar-ring {
  position: absolute;
  inset: -9px;
  border: 2px solid rgba(136, 165, 210, 0.45);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 8s linear infinite;
}

.hero-avatar-glow {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(136, 165, 210, 0.18), transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

.hero-avatar {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 2px solid rgba(136, 165, 210, 0.34);
  border-radius: 50%;
  background: #dff3fa;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

@keyframes pulse {
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  width: 40px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--accent));
}

.hero-eyebrow::after {
  transform: scaleX(-1);
}

.hero-title,
.section-title,
.admin-top h1,
.login-card h1 {
  margin: 0;
  overflow-wrap: anywhere;
  letter-spacing: 0;
}

.hero-title {
  margin-bottom: 24px;
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 900;
  line-height: 1.04;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--light-blue) 52%, var(--accent) 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 560px;
  margin: 0 auto 48px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero-scroll-line {
  width: 1px;
  height: 58px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

#stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 1px 40px;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: var(--glass-border);
}

.stat {
  padding: 40px 28px;
  background: #000;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--transition), transform 0.6s var(--transition);
}

.stat.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-num {
  display: block;
  background: linear-gradient(135deg, var(--light-blue), var(--accent));
  background-clip: text;
  color: var(--accent);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  line-height: 1;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  display: block;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
}

section {
  padding: 120px 40px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
}

.section-label::after {
  width: min(160px, 24vw);
  height: 1px;
  content: "";
  background: var(--glass-border);
}

.section-title {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 900;
  line-height: 1.08;
}

.section-desc {
  max-width: 620px;
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
}

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 64px;
}

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.cat-tab {
  min-height: 42px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: none;
  font-size: 13px;
  font-weight: 800;
  transition: 0.25s;
}

.cat-tab.active {
  background: var(--navy);
  color: var(--light-blue);
  box-shadow: 0 0 20px rgba(19, 46, 99, 0.6);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--glass);
  cursor: none;
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transform-style: preserve-3d;
  transition: opacity 0.6s var(--transition), transform 0.6s var(--transition), border-color 0.35s, box-shadow 0.35s;
}

.work-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.work-card:hover {
  border-color: rgba(136, 165, 210, 0.26);
  box-shadow: var(--shadow), 0 0 42px rgba(136, 165, 210, 0.1);
}

.work-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #07101f;
}

.work-card-media.reel {
  aspect-ratio: 9 / 16;
  max-height: 420px;
}

.work-card-media img,
.work-card-media video,
.work-card-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  transition: transform 0.6s var(--transition);
}

.work-card:hover .work-card-media img,
.work-card:hover .work-card-media video {
  transform: scale(1.06);
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.16), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.work-card:hover .work-card-overlay {
  opacity: 1;
}

.work-card-play {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(10px);
}

.work-card-info {
  padding: 20px 24px 24px;
}

.work-card-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
}

.work-card-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.work-card-tag,
.media-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  padding: 5px 12px;
  border: 1px solid rgba(136, 165, 210, 0.22);
  border-radius: 999px;
  background: rgba(136, 165, 210, 0.1);
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.works-empty {
  display: none;
  padding: 80px 20px;
  color: var(--text-muted);
  text-align: center;
}

.works-empty.show {
  display: block;
}

.reels-container {
  display: none;
  min-height: 72vh;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.reels-container.show {
  display: flex;
}

.reel-frame {
  position: relative;
  width: min(360px, 78vw);
  max-height: 72vh;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: #07101f;
  box-shadow: var(--shadow), 0 0 40px rgba(136, 165, 210, 0.08);
}

.reel-media,
.reel-media iframe,
.reel-media video,
.reel-media img,
.reel-fallback {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.reel-fallback,
.fallback-preview {
  display: grid;
  place-items: center;
  min-height: 180px;
  background: linear-gradient(135deg, rgba(19, 46, 99, 0.7), rgba(136, 165, 210, 0.16));
  color: var(--light-blue);
  font-weight: 900;
}

.reel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 54%);
  pointer-events: none;
}

.reel-info {
  position: absolute;
  right: 20px;
  bottom: 22px;
  left: 20px;
  z-index: 3;
}

.reel-info h3 {
  margin: 0 0 6px;
}

.reel-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.reel-mute-btn,
.reel-nav-btn,
.icon-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: var(--glass-strong);
  color: var(--light-blue);
  cursor: none;
  transition: 0.25s;
}

.reel-mute-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  width: 42px;
  height: 42px;
}

.reel-nav-btn {
  width: 54px;
  height: 54px;
  font-size: 22px;
}

.reel-progress {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  z-index: 4;
  display: flex;
  gap: 4px;
}

.reel-progress-bar {
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.reel-progress-fill {
  width: 0;
  height: 100%;
  background: #fff;
}

#about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 80px;
  background: linear-gradient(180deg, #000, rgba(19, 46, 99, 0.08), #000);
}

.about-visual {
  position: relative;
}

.about-img-wrap {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: var(--glass);
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #dff3fa;
}

.about-float-card {
  position: absolute;
  right: -24px;
  bottom: -24px;
  padding: 20px 24px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(20px);
}

.about-float-card p {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.about-float-card span {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.about-skills {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}

.skill-bar-wrap {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 16px;
}

.skill-bar-label,
.skill-bar-pct {
  color: var(--text-muted);
  font-size: 13px;
}

.skill-bar-track {
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.skill-bar-fill {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--navy), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--transition);
}

.skill-bar-fill.animated {
  transform: scaleX(1);
}

#contacts {
  border-top: 1px solid var(--glass-border);
}

#faq {
  border-top: 1px solid var(--glass-border);
  background: linear-gradient(180deg, #000, rgba(19, 46, 99, 0.06), #000);
}

.faq-inner {
  max-width: 980px;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.faq-list details {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: rgba(199, 215, 226, 0.055);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.faq-list summary {
  min-height: 64px;
  padding: 20px 24px;
  color: #fff;
  cursor: none;
  font-weight: 850;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--text-muted);
}

.contacts-inner {
  max-width: 980px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.social-link {
  padding: 12px 18px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  color: var(--light-blue);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(20px);
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  width: min(1080px, calc(100vw - 32px));
  max-height: 90vh;
  text-align: center;
}

.lightbox-media {
  display: grid;
  min-height: min(62vh, 680px);
  place-items: center;
}

.lightbox-media iframe,
.lightbox-media video,
.lightbox-media img {
  width: min(100%, 980px);
  max-height: 72vh;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  z-index: 10001;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: none;
  font-size: 24px;
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

#lb-prev {
  top: 50%;
  left: 24px;
}

#lb-next {
  top: 50%;
  right: 24px;
}

.lightbox-title {
  margin: 20px 0 8px;
}

.lightbox-desc {
  margin: 0;
  color: var(--text-muted);
}

.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

.reveal {
  transform: translateY(34px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.visible,
.is-visible {
  opacity: 1;
  transform: none;
}

/* Admin */
.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0 0, rgba(136, 165, 210, 0.2), transparent 30rem),
    linear-gradient(135deg, #02060d, #08162b 54%, #000);
  cursor: auto;
}

.admin-body a,
.admin-body button,
.admin-body input,
.admin-body textarea,
.admin-body select,
.admin-body summary,
.login-body a,
.login-body button,
.login-body input {
  cursor: pointer;
}

.admin-body input,
.admin-body textarea,
.login-body input {
  cursor: text;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 28px;
  padding: 28px 20px;
  border-right: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-nav a {
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-muted);
}

.admin-nav a:hover {
  border-color: var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--light-blue);
}

.admin-main {
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
  padding: 38px 0 80px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-top h1 {
  font-size: clamp(2rem, 4vw, 4.8rem);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.backend-warning {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 205, 120, 0.35);
  border-radius: 14px;
  background: rgba(255, 176, 58, 0.09);
  color: #ffd9a0;
}

.backend-warning span {
  color: rgba(255, 231, 195, 0.78);
}

.backend-warning code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
}

.admin-panel,
.login-card {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: rgba(199, 215, 226, 0.075);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.panel-heading p,
.manager-card p,
.preview-box p {
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--light-blue);
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(199, 215, 226, 0.22);
  border-radius: 12px;
  padding: 12px 13px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text-primary);
  outline: none;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(136, 165, 210, 0.14);
}

.wide-field {
  grid-column: 1 / -1;
}

.inline-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.editable-list,
.works-manager {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.editable-row,
.manager-card,
.preview-box {
  display: grid;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
}

.editable-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.social-row {
  grid-template-columns: minmax(140px, 0.5fr) minmax(220px, 1fr) auto auto;
}

.manager-card,
.preview-box {
  grid-template-columns: 140px minmax(0, 1fr) auto;
}

.manager-thumb,
.preview-box > img,
.preview-box .fallback-preview {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: #07101f;
}

.manager-thumb img,
.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manager-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button {
  width: 42px;
  height: 42px;
}

.danger {
  color: var(--danger);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  max-width: min(340px, calc(100vw - 44px));
  padding: 14px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(8, 18, 34, 0.94);
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(14px);
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Upload progress ── */
.upload-progress {
  display: none;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(8, 18, 34, 0.94);
}

.upload-progress:not([hidden]) {
  display: grid;
}

.upload-progress-track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(199, 215, 226, 0.1);
}

.upload-progress-fill {
  width: 0;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--navy), var(--accent));
  transition: width 150ms ease;
}

.upload-progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.upload-progress-stats span {
  white-space: nowrap;
}

.upload-progress-stats span:nth-child(2) {
  color: var(--accent);
}

.upload-progress-stats span:nth-child(3) {
  color: var(--text-muted);
  text-align: right;
}

.login-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.login-shell {
  width: min(440px, calc(100% - 28px));
}

.login-card {
  display: grid;
  gap: 18px;
}

.login-card h1 {
  font-size: clamp(2rem, 8vw, 4rem);
}

.login-logo {
  width: 82px;
  height: 82px;
  border-radius: 16px;
  object-fit: cover;
  background: #dff3fa;
}

.login-error {
  min-height: 24px;
  margin: 0;
  color: var(--danger);
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }

  #cursor,
  #cursor-ring {
    display: none;
  }

  .nav-cta,
  .btn-primary,
  .btn-outline,
  .primary-button,
  .ghost-button,
  .cat-tab,
  .work-card,
  .reel-mute-btn,
  .reel-nav-btn,
  .icon-button {
    cursor: pointer;
  }
}

@media (max-width: 900px) {
  .site-nav,
  .portfolio-header,
  .admin-top,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    gap: 18px;
  }

  #stats,
  #about,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--glass-border);
  }

  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .form-grid,
  .manager-card,
  .preview-box,
  .social-row {
    grid-template-columns: 1fr;
  }

  .about-float-card {
    right: 18px;
  }
}

@media (max-width: 560px) {
  .site-nav,
  section,
  #hero {
    padding-right: 20px;
    padding-left: 20px;
  }

  #hero {
    padding-top: 150px;
  }

  .hero-avatar-wrap {
    width: 132px;
    height: 132px;
    margin-bottom: 36px;
  }

  #stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-right: 0;
    padding-left: 0;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .reels-container {
    flex-direction: column;
  }

  .reel-nav-btn {
    display: none;
  }

  .lightbox-nav {
    display: none;
  }

  .inline-editor {
    grid-template-columns: 1fr;
  }
}
