:root {
  --bg: #070b14;
  --panel: #101827;
  --panel2: #141f32;
  --text: #f7f9fc;
  --muted: #aab5c8;
  --line: rgba(255,255,255,.10);
  --accent: #8b5cf6;
  --accent2: #22d3ee;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 75% 10%,
      rgba(139,92,246,.16),
      transparent 28%
    ),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

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


/* =========================================
   NAVIGATION
   ========================================= */

.nav {
  width: 100%;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  border-bottom: 1px solid var(--line);
  background: rgba(7,11,20,.75);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  min-width: 0;
}

.brand img {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  min-width: 0;
}

nav a {
  white-space: nowrap;
}

nav a:hover {
  color: white;
}

.nav-button,
.primary {
  background:
    linear-gradient(
      135deg,
      var(--accent),
      #6366f1
    );
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  display: inline-block;
}


/* =========================================
   HERO
   ========================================= */

.hero {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 100px 6% 90px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  color: #a78bfa;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

h1 {
  font-size: clamp(48px,7vw,82px);
  line-height: .98;
  letter-spacing: -.055em;
  margin: 18px 0 24px;
}

h1 span {
  background:
    linear-gradient(
      90deg,
      #a78bfa,
      #67e8f9
    );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p,
.section-heading p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 17px;
  max-width: 650px;
}

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

.secondary {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #dbe3f0;
}


/* =========================================
   HERO CARD
   ========================================= */

.hero-card {
  width: 100%;
  min-height: 430px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(
      145deg,
      #121b2c,
      #090e18
    );
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .65;
}

.orb-one {
  width: 260px;
  height: 260px;
  background: #7c3aed;
  left: -70px;
  top: -60px;
}

.orb-two {
  width: 240px;
  height: 240px;
  background: #0891b2;
  right: -80px;
  bottom: -80px;
}

.hero-panel {
  position: relative;
  width: 76%;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  background: rgba(10,15,27,.78);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  color: #cbd5e1;
  font-size: 12px;
  margin-bottom: 12px;
}

.preview {
  height: 210px;
  border-radius: 14px;
  background:
    linear-gradient(
      145deg,
      #312e81 0%,
      #0f766e 45%,
      #f59e0b 100%
    );
  position: relative;
  overflow: hidden;
}

.preview:after {
  content: "";
  position: absolute;
  inset: 35% -10% -30%;
  background: rgba(0,0,0,.42);
  transform: skewY(-8deg);
}

.prompt-line {
  font-size: 12px;
  color: #b9c4d6;
  padding: 12px 2px 8px;
}

.progress {
  height: 4px;
  background: #263247;
  border-radius: 9px;
  overflow: hidden;
}

.progress span {
  display: block;
  width: 64%;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      #8b5cf6,
      #22d3ee
    );
}


/* =========================================
   STUDIO
   ========================================= */

.studio,
.steps,
.creations-section {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 70px 6%;
}

.section-heading {
  text-align: center;
}

.section-heading p {
  margin: 12px auto;
}

h2 {
  font-size: clamp(34px,4vw,52px);
  letter-spacing: -.04em;
  margin: 12px 0;
}


/* =========================================
   TOOL CARDS
   ========================================= */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
  margin-top: 42px;
}

.tool-card {
  min-width: 0;
  background:
    linear-gradient(
      180deg,
      rgba(20,31,50,.9),
      rgba(12,18,30,.9)
    );
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.icon {
  font-size: 30px;
}

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

.tool-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.tool-button {
  margin-top: auto;
  border: 0;
  background: transparent;
  color: #c4b5fd;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  padding: 10px 0 0;
}


/* =========================================
   CREATOR
   ========================================= */

.creator {
  width: 100%;
  min-width: 0;
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  background: rgba(13,20,33,.9);
}

.creator-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.close {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 28px;
  cursor: pointer;
}

.creator label {
  display: block;
  margin: 24px 0 10px;
  color: #dbe4f0;
  font-weight: 700;
}

textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #080e19;
  color: white;
  padding: 16px;
  font: inherit;
  outline: none;
}

textarea:focus {
  border-color: #7c3aed;
}

.creator-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

select {
  background: #080e19;
  color: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.result {
  width: 100%;
  min-width: 0;
  min-height: 160px;
  margin-top: 20px;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #75839a;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}

.result.active {
  color: #dbeafe;
}

.hidden {
  display: none;
}


/* =========================================
   IMAGE → VIDEO
   ========================================= */

.upload-box {
  width: 100%;
  margin-top: 24px;
  padding: 28px;
  border: 2px dashed rgba(255,255,255,.2);
  border-radius: 18px;
  text-align: center;
  background: rgba(255,255,255,.03);
}

.upload-box input[type="file"] {
  display: none;
}

.upload-label {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  background: rgba(255,255,255,.08);
  transition:
    transform .2s ease,
    background .2s ease;
}

.upload-label:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.14);
}

.upload-help {
  margin-top: 14px;
  opacity: .7;
  font-size: 14px;
}

#image-preview {
  margin-top: 22px;
}

.uploaded-preview {
  display: block;
  max-width: 100%;
  max-height: 420px;
  margin: 0 auto;
  border-radius: 14px;
  object-fit: contain;
}


/* =========================================
   GENERATED IMAGE / VIDEO
   ========================================= */

.generated-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-width: 0;
}

.generated-result img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 650px;
  border-radius: 16px;
  object-fit: contain;
}

.generated-video {
  display: block;
  width: 100%;
  max-width: 900px;
  max-height: 650px;
  border-radius: 16px;
  background: #000;
}

.download-button {
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
}


/* =========================================
   LOADING
   ========================================= */

.loading {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.loading p {
  margin: 0;
  font-weight: 700;
}

.loading small {
  opacity: .65;
}

.spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.2);
  border-top-color: currentColor;
  animation: duncanai-spin .8s linear infinite;
}

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


/* =========================================
   ERROR
   ========================================= */

.error {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255,60,60,.1);
  border: 1px solid rgba(255,60,60,.25);
}


/* =========================================
   WORKFLOW
   ========================================= */

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

.step-grid div {
  padding: 24px;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.step-grid strong {
  color: #a78bfa;
}

.step-grid p {
  color: var(--muted);
  line-height: 1.6;
}


/* =========================================
   FOOTER
   ========================================= */

footer {
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 30px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  gap: 20px;
}

footer .brand img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  object-fit: contain;
}


/* =========================================
   IMAGE → VIDEO STUDIO
   ========================================= */

.video-workspace {
  width: 100%;
  min-width: 0;
  margin-top: 24px;
}

.video-source-card {
  width: 100%;
  min-width: 0;
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}

.video-source-title {
  margin-bottom: 14px;
  color: #dbeafe;
  font-weight: 700;
  font-size: 14px;
}

.video-source-image {
  display: block;
  width: 100%;
  max-width: 500px;
  max-height: 360px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 14px;
}

.video-generation-panel {
  width: 100%;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
  text-align: center;
}

.video-generation-panel h3 {
  margin: 0 0 8px;
  color: #f8fafc;
}

.video-generation-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.video-status {
  margin-top: 22px;
  color: #c4b5fd;
  font-weight: 700;
}

.video-progress {
  width: 100%;
  max-width: 500px;
  height: 6px;
  margin: 18px auto 0;
  overflow: hidden;
  border-radius: 20px;
  background: #263247;
}

.video-progress span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--accent2)
  );
  animation: duncanai-progress 1.8s ease-in-out infinite;
}

@keyframes duncanai-progress {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(280%);
  }
}

.video-result-card {
  width: 100%;
  min-width: 0;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}

.video-result-title {
  margin-bottom: 16px;
  font-weight: 800;
  color: #f8fafc;
}

.video-result-player {
  display: block;
  width: 100%;
  max-width: 900px;
  max-height: 650px;
  margin: 0 auto;
  border-radius: 16px;
  background: #000;
  object-fit: contain;
}

.video-result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.video-result-actions a,
.video-result-actions button {
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.video-download {
  background: linear-gradient(
    135deg,
    var(--accent),
    #6366f1
  );
  color: white;
  border: 0;
}

.video-open {
  border: 1px solid var(--line);
  color: #dbeafe;
  background: rgba(255,255,255,.05);
}

.video-new {
  border: 1px solid var(--line);
  color: #c4b5fd;
  background: transparent;
}

.video-success {
  margin-top: 12px;
  color: #67e8f9;
  font-size: 14px;
  font-weight: 700;
}


/* =========================================
   MY CREATIONS
   ========================================= */

.creations-section {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 70px 6%;
  overflow: hidden;
}

.creations-toolbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  margin-bottom: 24px;
}

.creation-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.creation-filter-button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: #cbd5e1;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
}

.creation-filter-button:hover {
  background: rgba(255,255,255,.08);
}

.creation-filter-button.active {
  background:
    linear-gradient(
      135deg,
      var(--accent),
      #6366f1
    );
  color: white;
  border-color: transparent;
}

.clear-creations-button {
  border: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: #fda4af;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
}

.clear-creations-button:hover {
  background: rgba(255,60,90,.08);
}

.creations-grid {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );
  gap: 18px;
  align-items: start;
}

.creation-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(20,31,50,.9),
      rgba(12,18,30,.95)
    );
}

.creation-media {
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 10;
  background: #050812;
  overflow: hidden;
}

.creation-media img,
.creation-media video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.creation-info {
  width: 100%;
  min-width: 0;
  padding: 16px;
  overflow: hidden;
}

.creation-type {
  display: inline-block;
  margin-bottom: 8px;
  color: #a78bfa;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.creation-prompt {
  width: 100%;
  min-height: 42px;
  color: #dbe4f0;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.creation-date {
  margin-top: 8px;
  color: #75839a;
  font-size: 12px;
}

.creation-actions {
  width: 100%;
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.creation-action {
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.creation-action:hover {
  background: rgba(255,255,255,.08);
}

.creation-action.delete {
  color: #fda4af;
}

.creations-empty {
  grid-column: 1 / -1;
  min-height: 260px;
  padding: 40px 24px;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.creations-empty-icon {
  font-size: 42px;
  margin-bottom: 8px;
}

.creations-empty h3 {
  margin: 8px 0;
}

.creations-empty p {
  color: var(--muted);
  margin: 0 0 20px;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 850px) {

  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

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

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

  .creations-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

  .video-generation-panel,
  .video-result-card,
  .video-source-card {
    padding: 16px;
  }

  .video-result-player {
    max-height: 450px;
  }

  .video-result-actions {
    flex-direction: column;
  }

  .video-result-actions a,
  .video-result-actions button {
    width: 100%;
    text-align: center;
  }
}


@media (max-width: 520px) {

  .nav-button {
    display: none;
  }

  .hero-actions,
  .creator-row,
  footer {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-grid,
  .step-grid {
    grid-template-columns:
      minmax(0, 1fr);
  }

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

  .hero-card {
    min-height: 340px;
  }

  .hero-panel {
    width: 88%;
  }

  .nav .brand img {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
  }

  footer .brand img {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
  }

  .uploaded-preview {
    max-height: 300px;
  }

  .generated-video {
    max-height: 400px;
  }

  .creations-toolbar {
    width: 100%;
  }

  .creation-filter {
    width: 100%;
  }

  .creation-filter-button {
    flex: 1;
  }

  .clear-creations-button {
    width: 100%;
  }
}
/* =========================================
   DUNCANAI AUTHENTICATION
   ========================================= */

.nav-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-account-button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: #dbeafe;
  padding: 10px 15px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav-account-button:hover {
  background: rgba(255,255,255,.09);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(8px);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(
      180deg,
      rgba(20,31,50,.98),
      rgba(9,14,24,.98)
    );
  box-shadow: 0 35px 100px rgba(0,0,0,.55);
}

.auth-card h2 {
  margin-top: 12px;
  margin-bottom: 8px;
}

.auth-description {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.auth-close:hover {
  color: white;
}

.auth-card form {
  width: 100%;
}

.auth-card label {
  display: block;
  margin: 16px 0 8px;
  color: #dbe4f0;
  font-weight: 700;
  font-size: 14px;
}

.auth-card input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #080e19;
  color: white;
  outline: none;
  font: inherit;
}

.auth-card input:focus {
  border-color: #7c3aed;
}

.auth-submit {
  width: 100%;
  margin-top: 20px;
}

.auth-switch {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.auth-switch-button {
  margin-left: 5px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #c4b5fd;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-switch-button:hover {
  color: white;
}

.auth-message {
  width: 100%;
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.auth-error {
  border: 1px solid rgba(255,60,60,.25);
  background: rgba(255,60,60,.10);
  color: #fecaca;
}

.auth-success {
  border: 1px solid rgba(34,211,238,.20);
  background: rgba(34,211,238,.08);
  color: #a5f3fc;
}

.account-menu {
  position: fixed;
  top: 86px;
  right: 6%;
  z-index: 900;
}

.account-menu-inner {
  min-width: 230px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(
      180deg,
      rgba(20,31,50,.98),
      rgba(9,14,24,.98)
    );
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.account-user-email {
  padding: 8px 8px 12px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.account-menu-button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: #fda4af;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
}

.account-menu-button:hover {
  background: rgba(255,60,90,.08);
}

.hidden {
  display: none !important;
}


/* =========================================
   AUTH MOBILE
   ========================================= */

@media (max-width: 700px) {

  .nav-account {
    gap: 6px;
  }

  .nav-account-button {
    padding: 9px 11px;
    font-size: 13px;
  }

  .auth-card {
    padding: 24px 20px;
  }

  .account-menu {
    top: 82px;
    right: 4%;
    left: 4%;
  }

  .account-menu-inner {
    min-width: 0;
  }
}

@media (max-width: 520px) {

  .nav-account .nav-button {
    display: none;
  }

  .nav-account-button {
    font-size: 12px;
  }

  .auth-card {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }
}


/* =========================================
   EDIT & ENHANCE PRESET BUTTONS
   ========================================= */

.edit-preset-button {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  font-family: inherit;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.edit-preset-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.20);
}

.edit-preset-button:active {
  transform: translateY(0);
}

.edit-preset-button.selected {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(167, 139, 250, 0.65);
  color: #ffffff;
  box-shadow:
    0 0 0 2px rgba(139, 92, 246, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.25);
}

.edit-preset-button:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.8);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .edit-preset-button {
    min-height: 46px;
    font-size: 12px;
    padding: 10px 12px;
  }
}
