/**
 * Add Your Car - Complete Redesign
 * Modern glass morphism with animated backgrounds
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
.page-add-car {
  --ac-cyan: var(--teal-2, #00c8e6);
  --ac-teal: var(--teal, #18e1ff);
  --ac-purple: #a855f7;
  --ac-good: #41d79e;
  --ac-muted: #9db2bf;
  --ac-glass-bg: rgba(15, 20, 30, 0.8);
  --ac-glass-border: rgba(255, 255, 255, 0.08);
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0f1a 0%, #0d1420 50%, #0a1218 100%);
  position: relative;
  overflow-x: hidden;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.ac-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.ac-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: acOrbFloat 20s ease-in-out infinite;
}

.ac-bg-orb--cyan {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--ac-cyan) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.ac-bg-orb--teal {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--ac-teal) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
}

.ac-bg-orb--purple {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--ac-purple) 0%, transparent 70%);
  top: 50%;
  left: 30%;
  animation-delay: -14s;
}

@keyframes acOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 30px) scale(1.02); }
}

/* ============================================
   GHOST CAR IMAGES
   ============================================ */
.ac-ghost-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.ac-ghost-img {
  position: absolute;
  object-fit: cover;
  border-radius: 16px;
  opacity: 0.06;
  filter: grayscale(50%) blur(2px);
  animation: acGhostDrift 30s ease-in-out infinite;
}

.ac-ghost-img--1 {
  width: 280px;
  height: 180px;
  top: 15%;
  left: -5%;
  animation-delay: 0s;
}

.ac-ghost-img--2 {
  width: 220px;
  height: 140px;
  top: 60%;
  right: -3%;
  animation-delay: -10s;
}

.ac-ghost-img--3 {
  width: 200px;
  height: 130px;
  bottom: 10%;
  left: 15%;
  animation-delay: -20s;
}

@keyframes acGhostDrift {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 0.06;
  }
  25% {
    transform: translate(20px, -15px) rotate(2deg) scale(1.02);
    opacity: 0.08;
  }
  50% {
    transform: translate(-10px, 10px) rotate(-1deg) scale(0.98);
    opacity: 0.05;
  }
  75% {
    transform: translate(15px, 20px) rotate(1deg) scale(1.01);
    opacity: 0.07;
  }
}

/* ============================================
   GRID OVERLAY
   ============================================ */
.ac-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  background-image:
    linear-gradient(rgba(0, 210, 211, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 210, 211, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}

/* ============================================
   MAIN LAYOUT
   ============================================ */
.ac-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem 6rem;
  position: relative;
  z-index: 10;
}

/* ============================================
   HEADER
   ============================================ */
.ac-header {
  text-align: center;
  padding: 2rem 0 3rem;
}

.ac-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(24, 225, 255, 0.15), rgba(0, 210, 211, 0.1));
  border: 1px solid rgba(24, 225, 255, 0.25);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ac-teal);
  margin-bottom: 1.5rem;
  animation: acBadgePulse 3s ease-in-out infinite;
}

.ac-header__badge svg {
  width: 16px;
  height: 16px;
}

@keyframes acBadgePulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(24, 225, 255, 0.15);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(24, 225, 255, 0.3);
    transform: scale(1.02);
  }
}

.ac-header__title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--ac-teal) 50%, var(--ac-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ac-header__subtitle {
  font-size: 1.0625rem;
  color: var(--ac-muted);
  margin: 0 auto;
  max-width: 480px;
  line-height: 1.6;
}

.ac-header__subtitle strong {
  color: var(--ac-teal);
}

/* ============================================
   PREVIEW CARD
   ============================================ */
.ac-preview {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.ac-preview__card {
  width: 100%;
  max-width: 500px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(15, 20, 30, 0.9), rgba(10, 15, 25, 0.95));
  border: 1px solid rgba(24, 225, 255, 0.15);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(24, 225, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ac-preview__card:hover {
  border-color: rgba(24, 225, 255, 0.3);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.35),
    0 0 80px rgba(24, 225, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.ac-preview__media {
  width: 140px;
  height: 100px;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(24, 225, 255, 0.05), rgba(168, 85, 247, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ac-preview__placeholder {
  width: 100%;
  height: 100%;
  padding: 8px;
  color: var(--ac-teal);
  opacity: 0.6;
  animation: acCarBreathe 4s ease-in-out infinite;
}

@keyframes acCarBreathe {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.02); }
}

.ac-preview__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.ac-preview__info {
  text-align: left;
}

.ac-preview__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ac-good);
  background: rgba(65, 215, 158, 0.1);
  border: 1px solid rgba(65, 215, 158, 0.25);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.ac-preview__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ac-good);
  animation: acDotPulse 2s ease-in-out infinite;
}

@keyframes acDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.ac-preview__title {
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  color: #fff;
}

.ac-preview__subtitle {
  color: var(--ac-muted);
  font-size: 0.9rem;
}

@media (max-width: 520px) {
  .ac-preview__card {
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .ac-preview__media {
    width: 100px;
    height: 75px;
  }
}

/* ============================================
   PROGRESS STEPS
   ============================================ */
.ac-steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  position: relative;
  margin: 0 auto 3rem;
  max-width: 400px;
  padding: 0 1rem;
}

.ac-steps__track {
  position: absolute;
  top: 24px;
  left: 80px;
  right: 80px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  z-index: 0;
}

.ac-steps__progress {
  position: absolute;
  top: 24px;
  left: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--ac-teal), var(--ac-cyan));
  border-radius: 2px;
  z-index: 1;
  width: 0;
  transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 0 10px rgba(24, 225, 255, 0.5);
}

.ac-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  position: relative;
  z-index: 2;
}

.ac-step__circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0a0f1a;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.ac-step__num {
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.ac-step__check {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
  color: #000;
}

.ac-step__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

/* Active Step */
.ac-step.active .ac-step__circle {
  border-color: var(--ac-teal);
  box-shadow:
    0 0 30px rgba(24, 225, 255, 0.4),
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 0 20px rgba(24, 225, 255, 0.1);
  transform: scale(1.1);
}

.ac-step.active .ac-step__circle::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--ac-teal);
  opacity: 0.3;
  animation: acStepPulse 2s ease-in-out infinite;
}

@keyframes acStepPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.3); opacity: 0; }
}

.ac-step.active .ac-step__num {
  color: var(--ac-teal);
}

.ac-step.active .ac-step__label {
  color: var(--ac-teal);
}

/* Complete Step */
.ac-step.complete .ac-step__circle {
  background: linear-gradient(135deg, var(--ac-good), #2dd4bf);
  border-color: var(--ac-good);
  box-shadow: 0 0 20px rgba(65, 215, 158, 0.4);
}

.ac-step.complete .ac-step__num {
  opacity: 0;
  transform: scale(0);
}

.ac-step.complete .ac-step__check {
  opacity: 1;
  transform: scale(1);
}

.ac-step.complete .ac-step__label {
  color: var(--ac-good);
}

/* ============================================
   FORM PANELS
   ============================================ */
.form-step {
  display: none;
  animation: acFadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-step.active {
  display: block;
}

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

.ac-panel {
  background: linear-gradient(145deg, rgba(15, 20, 30, 0.95), rgba(10, 15, 25, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.75rem;
  padding: 2rem;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 60px rgba(24, 225, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.ac-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(24, 225, 255, 0.2), transparent);
}

.ac-panel__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ac-panel__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(24, 225, 255, 0.15), rgba(24, 225, 255, 0.05));
  border: 1px solid rgba(24, 225, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ac-panel__icon svg {
  width: 24px;
  height: 24px;
  color: var(--ac-teal);
}

.ac-panel__title {
  font-size: 1.375rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
  color: #fff;
}

.ac-panel__desc {
  font-size: 0.9rem;
  color: var(--ac-muted);
  margin: 0;
}

/* ============================================
   FORM FIELDS
   ============================================ */
.ac-field {
  margin-bottom: 1.5rem;
}

.ac-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  color: #fff;
  letter-spacing: 0.01em;
}

.ac-required {
  color: var(--error, #ff6b6b);
  margin-left: 0.25rem;
}

.ac-hint {
  font-weight: 400;
  color: var(--ac-muted);
}

.ac-input,
.ac-select,
.ac-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1rem 1.125rem;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ac-input:hover,
.ac-select:hover,
.ac-textarea:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.ac-input:focus,
.ac-select:focus,
.ac-textarea:focus {
  outline: none;
  border-color: var(--ac-teal);
  background: rgba(24, 225, 255, 0.05);
  box-shadow:
    0 0 0 4px rgba(24, 225, 255, 0.1),
    0 0 30px rgba(24, 225, 255, 0.1);
}

.ac-input::placeholder,
.ac-textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.ac-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2318e1ff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

.ac-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.ac-textarea-wrap {
  position: relative;
}

.ac-textarea-wrap .ac-textarea {
  padding-right: 120px;
}

.ac-field-hint {
  font-size: 0.8rem;
  color: var(--ac-muted);
  margin-top: 0.5rem;
}

.ac-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 540px) {
  .ac-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PHOTO UPLOAD
   ============================================ */
.ac-upload {
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(24, 225, 255, 0.02));
  overflow: hidden;
}

.ac-upload::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(24, 225, 255, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.ac-upload:hover {
  border-color: var(--ac-teal);
  background: linear-gradient(135deg, rgba(24, 225, 255, 0.05), rgba(24, 225, 255, 0.02));
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(24, 225, 255, 0.15);
}

.ac-upload:hover::before {
  opacity: 1;
}

.ac-upload.dragover {
  border-color: var(--ac-teal);
  border-style: solid;
  background: rgba(24, 225, 255, 0.1);
  transform: scale(1.02);
}

.ac-upload.has-photo {
  padding: 0;
  border-style: solid;
  border-color: var(--ac-good);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(65, 215, 158, 0.15);
}

.ac-upload.has-photo:hover {
  border-color: var(--ac-good);
  transform: none;
  box-shadow: 0 15px 50px rgba(65, 215, 158, 0.2);
}

.ac-upload.has-photo img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.ac-upload__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.ac-upload__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.ac-upload__icon {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(24, 225, 255, 0.1), rgba(24, 225, 255, 0.05));
  border: 1px solid rgba(24, 225, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.ac-upload__icon svg {
  width: 32px;
  height: 32px;
  color: var(--ac-teal);
}

.ac-upload:hover .ac-upload__icon {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(24, 225, 255, 0.2);
}

.ac-upload__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ac-upload__cta {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
}

.ac-upload__hint {
  font-size: 0.8rem;
  color: var(--ac-muted);
}

.ac-upload-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

/* ============================================
   MODS INPUT
   ============================================ */
.ac-mods-input {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.ac-mods-input .ac-select {
  width: auto;
  min-width: 140px;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
}

.ac-mods-input .ac-input {
  flex: 1;
  min-width: 150px;
  padding: 0.75rem 1rem;
}

.ac-mods-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Mod Chips - inherit from existing CSS */
.mod-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(24, 225, 255, 0.15);
  border: 1px solid rgba(24, 225, 255, 0.3);
  color: var(--ac-teal);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mod-chip:hover {
  background: rgba(24, 225, 255, 0.2);
}

.mod-chip[data-category="engine"] {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.mod-chip[data-category="suspension"] {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

.mod-chip[data-category="exterior"] {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #22c55e;
}

.mod-chip[data-category="interior"] {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: #a855f7;
}

.mod-chip[data-category="wheels"] {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #3b82f6;
}

.mod-chip[data-category="exhaust"] {
  background: rgba(24, 225, 255, 0.15);
  border-color: rgba(24, 225, 255, 0.4);
  color: #18e1ff;
}

.mod-chip[data-category="audio"] {
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.4);
  color: #ec4899;
}

.mod-chip[data-category="other"] {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.4);
  color: #94a3b8;
}

.mod-chip button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.mod-chip button:hover {
  opacity: 1;
}

/* ============================================
   INFO CARD (Rarity)
   ============================================ */
.ac-info-card {
  background: linear-gradient(135deg, rgba(24, 225, 255, 0.08), rgba(24, 225, 255, 0.03));
  border: 1px solid rgba(24, 225, 255, 0.15);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.ac-info-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ac-info-card__header svg {
  color: var(--ac-teal);
  flex-shrink: 0;
}

.ac-info-card__header h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.ac-info-card p {
  font-size: 0.875rem;
  color: var(--ac-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.ac-info-card p strong {
  color: #fff;
}

.ac-info-card__link {
  font-size: 0.8rem;
  color: var(--ac-teal);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.ac-info-card__link:hover {
  color: #fff;
  text-decoration: underline;
}

.ac-rarity-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ac-tier {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ac-tier--street { background: rgba(255, 255, 255, 0.1); }
.ac-tier--neon { background: rgba(24, 225, 255, 0.15); color: var(--ac-teal); }
.ac-tier--skye { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.ac-tier--nova { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.ac-tier--cosmic { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

/* ============================================
   BUTTONS
   ============================================ */
.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.ac-btn--primary {
  background: linear-gradient(135deg, var(--ac-cyan), var(--ac-teal));
  color: #000;
  box-shadow: 0 4px 20px rgba(24, 225, 255, 0.25);
}

.ac-btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.ac-btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(24, 225, 255, 0.35);
}

.ac-btn--primary:hover::before {
  opacity: 1;
}

.ac-btn--submit {
  background: linear-gradient(135deg, var(--ac-good), #2dd4bf);
  color: #000;
  box-shadow: 0 4px 20px rgba(65, 215, 158, 0.25);
}

.ac-btn--submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(65, 215, 158, 0.35);
}

.ac-btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ac-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.ac-btn--outline {
  background: transparent;
  color: var(--ac-teal);
  border: 1px solid rgba(24, 225, 255, 0.3);
}

.ac-btn--outline:hover {
  background: rgba(24, 225, 255, 0.1);
  border-color: var(--ac-teal);
}

.ac-btn--sm {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
}

.ac-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* AI Write Button */
.ac-btn-ai {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 999px;
  color: #d8b4fe;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 5;
}

.ac-btn-ai:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);
}

.ac-btn-ai:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ac-btn-ai.loading svg {
  animation: acSpin 1s linear infinite;
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.ac-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.ac-loading {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
}

.ac-loading.show {
  display: flex;
}

.ac-loading__spinner {
  width: 56px;
  height: 56px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--ac-teal);
  border-radius: 50%;
  animation: acSpin 1s linear infinite;
}

.ac-loading__text {
  color: var(--ac-muted);
  font-size: 1rem;
  margin: 0;
}

/* ============================================
   RARITY REVEAL (Keep existing styles)
   ============================================ */
.rarity-reveal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.rarity-reveal-overlay.show {
  display: flex;
  animation: acFadeIn 0.5s ease-out;
}

@keyframes acFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.rarity-card-container {
  perspective: 1000px;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.rarity-layout-switch {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.layout-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.layout-chip:hover {
  border-color: rgba(24, 225, 255, 0.35);
}

.layout-chip.is-active {
  background: rgba(24, 225, 255, 0.16);
  border-color: rgba(24, 225, 255, 0.4);
  color: var(--ac-teal);
  box-shadow: 0 0 24px rgba(24, 225, 255, 0.18);
}

.rarity-card {
  width: 280px;
  height: 400px;
  background:
    linear-gradient(135deg, rgba(24, 225, 255, 0.08) 0%, transparent 50%),
    linear-gradient(225deg, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 0%, rgba(24, 225, 255, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #1a1f26 0%, #0d1117 100%);
  border-radius: 1rem;
  position: relative;
  transform-style: preserve-3d;
  animation: acCardFloat 3s ease-in-out infinite;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(24, 225, 255, 0.15);
}

@keyframes acCardFloat {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-10px) rotateY(5deg); }
}

.rarity-card-image {
  width: 100%;
  height: 60%;
  object-fit: cover;
  position: relative;
  z-index: 3;
}

.rarity-card-info {
  padding: 1.25rem 1rem;
  text-align: center;
  position: relative;
  z-index: 4;
}

.rarity-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.rarity-card-subtitle {
  font-size: 0.875rem;
  color: var(--ac-muted);
}

.rarity-tier-badge {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 10;
  background: rgba(24, 225, 255, 0.16);
  border: 1px solid rgba(24, 225, 255, 0.4);
  color: var(--ac-teal);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.rarity-card-credential {
  width: 280px;
  position: relative;
}

.rarity-credential-label {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 5;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(24, 225, 255, 0.16);
  border: 1px solid rgba(24, 225, 255, 0.35);
  color: var(--ac-teal);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.rarity-card-credential gp-card {
  width: 280px;
}

.rarity-card-credential .gp-controls,
.rarity-card-credential .gp-mint-number,
.rarity-card-credential .gp-tier-badge {
  display: none !important;
}

.rarity-reveal-text {
  text-align: center;
  animation: acRevealPulse 1s ease-out;
  max-width: min(520px, calc(100vw - 32px));
}

.rarity-reveal-title {
  font-size: 1.5rem;
  font-weight: 900;
}

.rarity-reveal-subtitle {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: var(--ac-muted);
}

@keyframes acRevealPulse {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.rarity-reveal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Tier-specific styles */
.rarity-card.tier-owner {
  border: 2px solid rgba(24, 225, 255, 0.55);
  box-shadow: 0 0 46px rgba(24, 225, 255, 0.28), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.tier-badge-owner {
  background: linear-gradient(135deg, rgba(24, 225, 255, 0.2) 0%, rgba(24, 225, 255, 0.12) 100%);
  border: 1px solid rgba(24, 225, 255, 0.4);
  color: var(--ac-teal);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 24px rgba(24, 225, 255, 0.18);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
  .ac-main {
    padding: 1rem 0.75rem 5rem;
  }

  .ac-panel {
    padding: 1.5rem;
    border-radius: 1.25rem;
  }

  .ac-panel__header {
    flex-direction: column;
    text-align: center;
  }

  .ac-nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .ac-nav .ac-btn {
    width: 100%;
  }

  .ac-mods-input {
    flex-direction: column;
  }

  .ac-mods-input .ac-select,
  .ac-mods-input .ac-input {
    width: 100%;
  }
}

/* ============================================
   UTILITY CLASSES (JS compatibility)
   ============================================ */
.u-hidden { display: none !important; }

/* Legacy class aliases for JS compatibility */
.submit-loading.show,
.ac-loading.show {
  display: flex !important;
}

/* Photo upload zone states (JS sets has-photo class) */
.photo-upload-zone.has-photo,
.ac-upload.has-photo {
  padding: 0;
  border-style: solid;
  border-color: var(--ac-good);
}

.photo-upload-zone.has-photo .ac-upload__content,
.ac-upload.has-photo .ac-upload__content {
  display: none;
}

/* AI button legacy alias */
.btn-ai-write {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 999px;
  color: #d8b4fe;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 5;
}

.btn-ai-write:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);
}

.btn-ai-write.loading svg {
  animation: acSpin 1s linear infinite;
}
