* {
  box-sizing: border-box;
}

:root {
  --bg: #08111f;
  --bg2: #0d1630;
  --panel: rgba(14, 22, 41, 0.78);
  --stroke: rgba(255,255,255,0.09);
  --text: #eef3ff;
  --muted: #a7b5d7;
  --accent: #7c5cff;
  --accent2: #2fd2ff;
  --accent3: #ff4fa3;
  --success: #39d98a;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124,92,255,0.20), transparent 30%),
    radial-gradient(circle at bottom right, rgba(47,210,255,0.18), transparent 35%),
    linear-gradient(135deg, var(--bg), var(--bg2));
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 90%);
  pointer-events: none;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  opacity: .45;
  pointer-events: none;
}

.orb-1 {
  width: 280px;
  height: 280px;
  background: var(--accent);
  top: 10%;
  left: -50px;
  animation: drift 12s ease-in-out infinite;
}

.orb-2 {
  width: 340px;
  height: 340px;
  background: var(--accent2);
  bottom: -80px;
  right: -80px;
  animation: drift 16s ease-in-out infinite reverse;
}

.glass {
  background: var(--panel);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-body {
  display: grid;
  place-items: center;
  padding: 30px;
}

.login-wrap {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  z-index: 2;
}

.login-card {
  border-radius: 28px;
  padding: 34px;
  animation: rise .8s ease;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.brand-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: 0 12px 30px rgba(124,92,255,.4);
}

.eyebrow {
  margin: 0;
  color: #95a8d8;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 700;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

.login-card h1 {
  margin-bottom: 0;
  font-size: 2.4rem;
}

.login-card h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

.muted {
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

.login-form {
  display: grid;
  gap: 12px;
  margin: 26px 0 10px;
}

.login-form label {
  color: #c7d4f7;
  font-size: .95rem;
}

.login-form input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: white;
  outline: none;
  font-size: 1rem;
}

.login-form input:focus {
  border-color: rgba(124,92,255,0.8);
  box-shadow: 0 0 0 4px rgba(124,92,255,0.14);
}

.primary-btn, .secondary-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
}

.primary-btn {
  color: white;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 14px 30px rgba(50, 140, 255, 0.28);
}

.secondary-btn {
  color: white;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,0.05);
}

.primary-btn:hover, .secondary-btn:hover {
  transform: translateY(-2px);
}

.tiny-note {
  color: #8ea2d4;
  font-size: .92rem;
}

.login-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.login-stats div {
  flex: 1;
  min-width: 120px;
  padding: 15px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.login-stats strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.login-stats span {
  color: var(--muted);
  font-size: .92rem;
}

.phone-showcase {
  display: grid;
  place-items: center;
}

.phone {
  position: relative;
  width: 330px;
  height: 670px;
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(160deg, #10182a, #0b1020);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}

.phone.compact {
  width: 280px;
  height: 560px;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #020611;
  border-radius: 0 0 16px 16px;
  z-index: 4;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(124,92,255,.24), transparent 24%),
    linear-gradient(180deg, #10192e, #0a1020 85%);
}

.app-topbar {
  display: grid;
  grid-template-columns: 44px 1fr 18px;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.app-logo, .app-dot {
  display: grid;
  place-items: center;
}

.app-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.app-search {
  height: 15px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.app-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent3);
  box-shadow: 0 0 0 6px rgba(255,79,163,.1);
}

.stories-row {
  display: flex;
  gap: 14px;
  margin: 24px 0 18px;
  overflow: hidden;
}

.story {
  width: 62px;
  text-align: center;
}

.story span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background:
    linear-gradient(#10192e, #10192e) padding-box,
    linear-gradient(135deg, var(--accent3), var(--accent2)) border-box;
  border: 3px solid transparent;
  font-weight: 800;
}

.story.active span {
  background:
    linear-gradient(#131b33, #131b33) padding-box,
    linear-gradient(135deg, var(--success), var(--accent2)) border-box;
}

.story small {
  color: #d6def5;
  font-size: .78rem;
}

.post-card, .mini-message {
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}

.post-card {
  padding: 14px;
}

.post-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}

.grad-a { background: linear-gradient(135deg, #ff6a88, #ffcc70); }
.grad-b { background: linear-gradient(135deg, #00c6ff, #0072ff); }
.grad-c { background: linear-gradient(135deg, #7c5cff, #2fd2ff); }

.post-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .86rem;
}

.gradient-card {
  border-radius: 20px;
  min-height: 180px;
  background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(47,210,255,.22));
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.ui-card {
  position: absolute;
  border-radius: 18px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}

.ui-card.one {
  inset: 24px auto auto 22px;
  width: 120px;
  height: 78px;
  animation: floatBox 5s ease-in-out infinite;
}
.ui-card.two {
  inset: 62px 24px auto auto;
  width: 140px;
  height: 96px;
  animation: floatBox 6s ease-in-out infinite reverse;
}
.ui-card.three {
  inset: auto 40px 20px auto;
  width: 94px;
  height: 58px;
  animation: floatBox 4.4s ease-in-out infinite;
}

.post-actions {
  display: flex;
  justify-content: space-between;
  color: #d8e2ff;
  font-size: .85rem;
  margin-top: 12px;
}

.mini-message {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  padding: 16px;
  align-items: flex-start;
}

.message-bubbles {
  display: grid;
  gap: 8px;
  width: 100%;
}

.bubble {
  width: fit-content;
  max-width: 100%;
  padding: 11px 14px;
  border-radius: 16px 16px 16px 4px;
  background: rgba(255,255,255,.08);
}

.bubble-alt {
  margin-left: auto;
  border-radius: 16px 16px 4px 16px;
  background: linear-gradient(135deg, rgba(124,92,255,.8), rgba(47,210,255,.8));
}

.phone-float {
  animation: floatPhone 7s ease-in-out infinite;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  gap: 24px;
  padding: 24px;
}

.sidebar {
  border-radius: 28px;
  padding: 20px;
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
}

.sidebar-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.sidebar-brand h2 {
  margin-bottom: 4px;
}

.sidebar-brand p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.nav-list {
  display: grid;
  gap: 10px;
}

.nav-item {
  padding: 14px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: #dde7ff;
  background: rgba(255,255,255,.03);
  border: 1px solid transparent;
  transition: .22s ease;
}

.nav-item:hover, .nav-item.active {
  background: rgba(124,92,255,.18);
  border-color: rgba(124,92,255,.35);
}

.profile-card {
  margin-top: 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  gap: 12px;
  align-items: center;
}

.profile-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.content {
  display: grid;
  gap: 24px;
  padding-bottom: 30px;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 26px;
  border-radius: 32px;
  padding: 30px;
  min-height: 410px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.04;
  margin-bottom: 16px;
  max-width: 760px;
}

.hero-text {
  color: var(--muted);
  line-height: 1.75;
  max-width: 700px;
  font-size: 1.02rem;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-phone {
  display: grid;
  place-items: center;
}

.hero-screen {
  display: grid;
  gap: 14px;
  align-content: start;
  padding-top: 48px;
}

.feed-banner {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(124,92,255,.28), rgba(47,210,255,.26));
  font-weight: 800;
  text-align: center;
}

.hero-feed-card,
.hero-chart,
.hero-dm {
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.06);
}

.hero-avatars {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-avatars span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent3), var(--accent2));
}

.hero-lines div {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  margin-bottom: 10px;
}

.hero-lines div:nth-child(1) { width: 92%; }
.hero-lines div:nth-child(2) { width: 76%; }
.hero-lines div:nth-child(3) { width: 56%; }

.hero-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  min-height: 110px;
}

.hero-chart div {
  flex: 1;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--accent2), var(--accent));
  animation: pulseBars 3s ease-in-out infinite;
}

.hero-chart div:nth-child(1) { height: 35%; animation-delay: .1s; }
.hero-chart div:nth-child(2) { height: 65%; animation-delay: .3s; }
.hero-chart div:nth-child(3) { height: 48%; animation-delay: .5s; }
.hero-chart div:nth-child(4) { height: 82%; animation-delay: .7s; }
.hero-chart div:nth-child(5) { height: 58%; animation-delay: .9s; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.info-card {
  border-radius: 28px;
  padding: 26px;
}

.section-tag {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(47,210,255,.16);
  color: #aeeeff;
  font-weight: 800;
}

.section-tag.accent {
  background: rgba(255,79,163,.15);
  color: #ffb8dc;
}

.info-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: #d7e3ff;
  line-height: 1.8;
}

.feature-section, .steps-section {
  border-radius: 30px;
  padding: 28px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.feature-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  transition: transform .22s ease, border-color .22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,92,255,.45);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(124,92,255,.3), rgba(47,210,255,.3));
  font-size: 1.2rem;
}

.feature-card p, .step p {
  color: var(--muted);
  line-height: 1.7;
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}

.step span {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.gallery-section {
  display: grid;
  gap: 16px;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mock-card {
  border-radius: 28px;
  padding: 18px;
}

.mock-top {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.mock-lines {
  width: 100%;
}

.mock-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.mock-lines span:first-child {
  width: 62%;
  margin-bottom: 8px;
}
.mock-lines span:last-child {
  width: 38%;
}

.mock-preview {
  min-height: 220px;
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.preview-feed div {
  position: absolute;
  left: 22px;
  right: 22px;
  height: 34px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,92,255,.7), rgba(47,210,255,.55));
  animation: slideGlow 6s ease-in-out infinite;
}

.preview-feed div:nth-child(1) { top: 30px; }
.preview-feed div:nth-child(2) { top: 88px; animation-delay: .6s; }
.preview-feed div:nth-child(3) { top: 146px; animation-delay: 1.2s; }

.preview-story {
  display: grid;
  place-items: center;
}

.story-ring {
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 6px solid rgba(255,79,163,.9);
  box-shadow: 0 0 30px rgba(255,79,163,.25);
  animation: pulseRing 3s ease-in-out infinite;
}
.ring-2 {
  width: 128px;
  height: 128px;
  border-color: rgba(124,92,255,.72);
  animation-delay: .5s;
}
.ring-3 {
  width: 172px;
  height: 172px;
  border-color: rgba(47,210,255,.55);
  animation-delay: 1s;
}

.preview-chat span {
  position: absolute;
  height: 38px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  animation: chatShift 5s ease-in-out infinite;
}

.preview-chat span:nth-child(1) {
  top: 34px;
  left: 18px;
  width: 72%;
}
.preview-chat span:nth-child(2) {
  top: 92px;
  right: 18px;
  width: 56%;
  background: linear-gradient(135deg, rgba(124,92,255,.8), rgba(47,210,255,.8));
  animation-delay: .7s;
}
.preview-chat span:nth-child(3) {
  top: 150px;
  left: 18px;
  width: 64%;
  animation-delay: 1.3s;
}

@keyframes drift {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(20px,-24px); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatPhone {
  0%,100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes floatBox {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulseBars {
  0%,100% { transform: scaleY(1); opacity: .9; }
  50% { transform: scaleY(1.08); opacity: 1; }
}

@keyframes slideGlow {
  0%,100% { transform: translateX(0); opacity: .92; }
  50% { transform: translateX(10px); opacity: 1; }
}

@keyframes pulseRing {
  0%,100% { transform: scale(1); opacity: .82; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes chatShift {
  0%,100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

@media (max-width: 1050px) {
  .login-wrap,
  .hero-panel,
  .info-grid,
  .feature-grid,
  .mockup-grid,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .phone-showcase,
  .hero-phone {
    order: -1;
  }
}

@media (max-width: 700px) {
  .login-body,
  .app-shell {
    padding: 16px;
  }

  .login-card,
  .hero-panel,
  .info-card,
  .feature-section,
  .steps-section,
  .mock-card,
  .sidebar {
    padding: 20px;
    border-radius: 22px;
  }

  .phone {
    width: 290px;
    height: 590px;
  }

  .phone.compact {
    width: 250px;
    height: 510px;
  }

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

  .hero-copy h1 {
    font-size: 2rem;
  }
}
.project-hero {
  min-height: auto;
}

.project-board {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  align-items: start;
}

.project-panel,
.project-detail {
  padding: 20px;
  border-radius: 28px;
}

.project-panel h2,
.project-detail h2 {
  margin-bottom: 8px;
}

.project-panel p,
.project-detail p {
  color: var(--muted);
}

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

.create-card,
.project-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.create-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,92,255,.38);
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}

.create-card {
  min-height: 240px;
  display: grid;
  place-items: center;
  cursor: pointer;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(124,92,255,.14), rgba(47,210,255,.10));
}

.create-plus {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 14px 30px rgba(50,140,255,.25);
}

.create-card h3 {
  margin: 0 0 6px;
}

.create-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.project-card {
  cursor: pointer;
}

.project-thumb {
  height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,17,31,.82), rgba(8,17,31,.12));
}

.project-card-body {
  padding: 14px 16px 16px;
}

.project-card-body h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.project-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

.detail-cover {
  height: 220px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,17,31,.88), rgba(8,17,31,.18));
}

.detail-head {
  margin-bottom: 18px;
}

.detail-head h2 {
  margin: 0 0 8px;
}

.detail-desc {
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 24px;
}

.devlog-list {
  display: grid;
  gap: 14px;
}

.devlog-item {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}

.devlog-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.devlog-top strong {
  font-size: .98rem;
}

.hours-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  background: rgba(124,92,255,.16);
  color: #d9d1ff;
  border: 1px solid rgba(124,92,255,.24);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 20, .72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 200;
}

.modal-backdrop.show {
  display: flex;
}

.modal-card {
  width: min(720px, 100%);
  padding: 22px;
  border-radius: 28px;
  background: rgba(14, 22, 41, 0.96);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-top h2 {
  margin: 0;
}

.modal-close {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
}

.project-form {
  display: grid;
  gap: 12px;
}

.project-form input,
.project-form textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: white;
  outline: none;
  font-size: 1rem;
}

.project-form input:focus,
.project-form textarea:focus {
  border-color: rgba(124,92,255,0.8);
  box-shadow: 0 0 0 4px rgba(124,92,255,0.14);
}

@media (max-width: 1100px) {
  .project-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.shop-hero {
  min-height: 360px;
}

.shop-balance-row {
  margin-top: 22px;
}

.shop-balance {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 20px;
  min-width: 170px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}

.balance-label {
  color: var(--muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.shop-balance strong {
  font-size: 1.4rem;
  line-height: 1.1;
}

.shop-balance small {
  color: #b9c8ee;
}

.shop-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.06);
}

.shop-mini-card + .shop-mini-card {
  margin-top: 12px;
}

.shop-mini-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.shop-mini-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(124,92,255,.32), rgba(47,210,255,.28));
}

.shop-topbar {
  padding: 22px 24px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.shop-topbar h2 {
  margin: 6px 0 0;
}

.currency-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shop-card {
  padding: 20px;
  border-radius: 26px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.shop-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,92,255,.35);
  box-shadow: 0 18px 44px rgba(0,0,0,.2);
}

.shop-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.shop-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(124,92,255,.32), rgba(47,210,255,.28));
}

.shop-price {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(124,92,255,.14);
  color: #ddd5ff;
  border: 1px solid rgba(124,92,255,.24);
  font-size: .9rem;
  font-weight: 700;
}

.shop-card h3 {
  margin: 0 0 8px;
}

.shop-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.shop-btn {
  width: 100%;
}

.shop-history {
  padding: 22px;
  border-radius: 28px;
}

.shop-history-head h2 {
  margin: 6px 0 0;
}

.shop-history-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.shop-history-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}

.shop-history-item span {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .shop-topbar {
    padding: 18px;
  }
}

.discover-hero {
  min-height: 360px;
}

.discover-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.06);
}

.discover-mini-card + .discover-mini-card {
  margin-top: 12px;
}

.discover-mini-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.discover-mini-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.discover-toolbar {
  padding: 22px 24px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.discover-toolbar h2 {
  margin: 6px 0 0;
}

.discover-search-wrap {
  min-width: min(100%, 320px);
}

.discover-search {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: white;
  outline: none;
  font-size: 1rem;
}

.discover-search:focus {
  border-color: rgba(124,92,255,0.8);
  box-shadow: 0 0 0 4px rgba(124,92,255,0.14);
}

.discover-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: start;
}

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

.discover-card {
  border-radius: 26px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.discover-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,92,255,.35);
  box-shadow: 0 18px 44px rgba(0,0,0,.2);
}

.discover-card-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.discover-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,17,31,.82), rgba(8,17,31,.12));
}

.discover-card-body {
  padding: 16px;
}

.discover-card-body h3 {
  margin: 0 0 8px;
}

.discover-card-body p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

.discover-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discover-card-tags span,
.discover-tag {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .82rem;
  background: rgba(124,92,255,.14);
  color: #ddd5ff;
  border: 1px solid rgba(124,92,255,.24);
}

.discover-detail {
  padding: 20px;
  border-radius: 28px;
}

.discover-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

@media (max-width: 1100px) {
  .discover-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .discover-grid {
    grid-template-columns: 1fr;
  }

  .discover-toolbar {
    padding: 18px;
  }
}
