/* =============================================================
   AAEL.in — Domain Auction  |  style.css
   Design: Rainbow animated gradient · Glassmorphism · Neon glow
   ============================================================= */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --glass-bg:     rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-blur:   24px;
  --white:        #ffffff;
  --white-70:     rgba(255,255,255,0.7);
  --white-40:     rgba(255,255,255,0.4);
  --gold:         #ffd700;
  --gold-glow:    rgba(255, 215, 0, 0.6);
  --success:      #00ff88;
  --error-color:  #ff6b6b;
  --radius-sm:    10px;
  --radius-md:    20px;
  --radius-lg:    32px;
  --font-head:    'Syne', sans-serif;
  --font-body:    'Space Grotesk', sans-serif;
  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background: linear-gradient(
    -45deg,
    #ff0080, #ff4500, #ff9900, #00cc44,
    #0088ff, #8800ff, #ff0080
  );
  background-size: 400% 400%;
  animation: rainbow-shift 12s ease infinite;
}

@keyframes rainbow-shift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* Overlay for depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 0;
}

/* ── Particle Canvas ── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── Glassmorphism Card ── */
.glass-card {
  background:    var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border:        1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}
.logo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold), 0 0 24px var(--gold);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { transform: scale(1); box-shadow: 0 0 12px var(--gold); }
  50%      { transform: scale(1.3); box-shadow: 0 0 20px var(--gold), 0 0 40px var(--gold); }
}
.logo-accent { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: var(--white-70);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-admin {
  background: rgba(255,255,255,0.15);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
}
.nav-admin:hover { background: rgba(255,255,255,0.25) !important; }

/* ── Hero Section ── */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,100,0,0.25);
  border: 1px solid rgba(255,100,0,0.5);
  border-radius: 100px;
  padding: 0.4rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  animation: fadeInDown 0.8s ease both;
}

.domain-title {
  font-family: var(--font-head);
  font-size: clamp(4rem, 14vw, 10rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  animation: fadeInUp 0.8s 0.2s ease both;
  user-select: none;
}
.domain-text {
  color: var(--white);
  text-shadow:
    0 0 20px rgba(255,255,255,0.8),
    0 0 60px rgba(255,255,255,0.5),
    0 0 120px rgba(120,80,255,0.6);
}
.domain-ext {
  color: var(--gold);
  text-shadow:
    0 0 20px var(--gold),
    0 0 60px var(--gold-glow),
    0 0 100px rgba(255,180,0,0.4);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--white-70);
  line-height: 1.7;
  max-width: 700px;
  animation: fadeInUp 0.8s 0.35s ease both;
}
.hero-tagline code {
  background: rgba(255,255,255,0.15);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
  color: var(--white);
}

/* Rotating tagline words */
.rotating-words {
  display: inline-block;
  position: relative;
  height: 1.4em;
  overflow: hidden;
  vertical-align: bottom;
}
.rotating-words span {
  display: block;
  color: var(--gold);
  font-weight: 700;
  animation: rotate-words 10s ease infinite;
}
@keyframes rotate-words {
  0%,15%  { transform: translateY(0); opacity: 1; }
  20%,100% { transform: translateY(-100%); opacity: 0; }
}
.rotating-words span:nth-child(2) { animation-delay: 2s; }
.rotating-words span:nth-child(3) { animation-delay: 4s; }
.rotating-words span:nth-child(4) { animation-delay: 6s; }
.rotating-words span:nth-child(5) { animation-delay: 8s; }

/* Stats Bar */
.stats-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 1rem 2rem;
  margin-top: 0.5rem;
  animation: fadeInUp 0.8s 0.5s ease both;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 2rem;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--white-40);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.stat-value {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}
.stat-value.pulse {
  color: var(--gold);
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

/* Currency pill */
.currency-pill {
  display: flex;
  background: rgba(0,0,0,0.2);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}
.currency-btn {
  border: none;
  background: transparent;
  color: var(--white-70);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}
.currency-btn.active {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: var(--white-40);
  font-size: 0.8rem;
  animation: fadeIn 1.5s 1s ease both;
}
.scroll-arrow {
  font-size: 1.2rem;
  animation: bounce 2s ease infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ── Shared Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.section-header p {
  color: var(--white-70);
  font-size: 1.1rem;
}

/* ── Industries Section ── */
.industries {
  position: relative;
  z-index: 2;
  padding: 6rem 2rem;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.industry-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--glass-border);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
.industry-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 0 40px rgba(255,255,255,0.05);
}

.industry-img {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.industry-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.industry-card:hover .industry-img img { transform: scale(1.08); }
.industry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.6) 100%);
}

.industry-body {
  padding: 1.2rem 1.5rem 1.5rem;
}
.industry-icon { font-size: 1.8rem; }
.industry-body h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.4rem 0 0.5rem;
}
.industry-body p {
  color: var(--white-70);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Why Section ── */
.why-section {
  position: relative;
  z-index: 2;
  padding: 6rem 2rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.why-card {
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition);
}
.why-card:hover { transform: translateY(-4px); }
.why-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.why-card h4 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.why-card p { color: var(--white-70); font-size: 0.9rem; line-height: 1.6; }

/* ── Bid Section ── */
.bid-section {
  position: relative;
  z-index: 2;
  padding: 6rem 2rem;
}

.bid-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.bid-info h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.bid-info > p {
  color: var(--white-70);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.bid-meta {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.bid-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.95rem;
}
.bid-meta-row:last-child { border-bottom: none; }
.bid-meta-row span { color: var(--white-70); }
.bid-meta-row strong { font-weight: 700; }
.highlight { color: var(--gold) !important; }
.accent    { color: #7aefb0 !important; }

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}
.trust-badges span {
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Bid Form Card */
.bid-form-card {
  padding: 2.5rem;
  position: relative;
}

.bid-form-card h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white-70);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--white-40); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}
.form-group input.error { border-color: var(--error-color); }

.amount-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}
.amount-wrapper:focus-within { border-color: rgba(255,255,255,0.5); }
.amount-prefix {
  padding: 0 0.8rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  border-right: 1px solid var(--glass-border);
  line-height: 46px;
  background: rgba(255,215,0,0.08);
}
.amount-wrapper input {
  border: none !important;
  background: transparent;
  border-radius: 0;
  box-shadow: none !important;
  flex: 1;
}

.field-hint { display: block; font-size: 0.78rem; color: var(--white-40); margin-top: 0.3rem; }
.field-error { display: block; font-size: 0.78rem; color: var(--error-color); margin-top: 0.3rem; min-height: 1em; }
.currency-hint { color: var(--white-40); font-weight: 400; margin-left: 0.3rem; }

.form-currency { margin-top: 0.4rem; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ff6600, #ff0080, #8800ff);
  background-size: 200% 200%;
  animation: rainbow-shift 4s ease infinite;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.9rem 2rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.02em;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,0,128,0.4);
}
.btn-primary:active { transform: translateY(0); }
.btn-block { width: 100%; margin-top: 1rem; }

.form-note {
  font-size: 0.78rem;
  color: var(--white-40);
  line-height: 1.5;
  margin-top: 0.8rem;
  text-align: center;
}

.form-error-banner {
  background: rgba(255,107,107,0.15);
  border: 1px solid rgba(255,107,107,0.4);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--error-color);
  margin-top: 0.5rem;
}

/* Spinner */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Success State */
.form-success {
  text-align: center;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.success-icon { font-size: 4rem; }
.form-success h3 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--success);
}
.form-success p { color: var(--white-70); line-height: 1.7; }

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.2);
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-logo {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.footer-logo span { color: var(--gold); }
.footer p { color: var(--white-70); font-size: 0.9rem; line-height: 1.7; }
.footer-contact a { color: var(--white); text-decoration: underline; }
.footer-copy { color: var(--white-40) !important; font-size: 0.8rem !important; margin-top: 1rem; }

/* ── Admin Page Specific ── */
.admin-page body { font-family: var(--font-body); }

.admin-login {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.login-card {
  width: 100%;
  max-width: 400px;
  padding: 3rem 2.5rem;
  text-align: center;
}
.login-card h1 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.login-card p { color: var(--white-70); margin-bottom: 2rem; font-size: 0.9rem; }
.login-error {
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

/* Google Sign-In button */
.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: white;
  color: #1a1a2e;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  letter-spacing: 0.01em;
}
.btn-google:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.btn-google:active { transform: scale(0.98); }

/* Amount input wrapper (reused in modal) */
.amount-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}
.amount-wrapper:focus-within { border-color: rgba(255,255,255,0.4); }
.amount-prefix {
  padding: 0 0.8rem;
  color: var(--white-70);
  font-weight: 700;
  font-size: 1.1rem;
  border-right: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.06);
  line-height: 1;
  display: flex;
  align-items: center;
  height: 100%;
  padding-top: 0.78rem;
  padding-bottom: 0.78rem;
}
.amount-wrapper input {
  flex: 1;
  background: transparent;
  border: none !important;
  padding: 0.78rem 1rem;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
}
.amount-wrapper input:focus { outline: none; box-shadow: none !important; }
/* Hide number spinners */
.amount-wrapper input[type=number]::-webkit-inner-spin-button,
.amount-wrapper input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
.amount-wrapper input[type=number] { -moz-appearance: textfield; }

.field-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--white-40);
  margin-top: 0.3rem;
}

.admin-dash {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 5rem 1.5rem 3rem;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}
.admin-header h1 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
}
.admin-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.btn-secondary {
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--glass-border);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.22); }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 1300px;
  margin: 0 auto 2rem;
}
.admin-stat-card {
  padding: 1.5rem;
  text-align: center;
}
.admin-stat-card .s-label { font-size: 0.75rem; color: var(--white-40); text-transform: uppercase; letter-spacing: 0.08em; }
.admin-stat-card .s-value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  margin-top: 0.3rem;
  color: var(--gold);
}

.table-wrap {
  max-width: 1300px;
  margin: 0 auto;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(20px);
}
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead th {
  text-align: left;
  padding: 1rem 1.2rem;
  color: var(--white-40);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}
tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background var(--transition);
}
tbody tr:hover { background: rgba(255,255,255,0.05); }
tbody tr:last-child { border-bottom: none; }
tbody td { padding: 1rem 1.2rem; vertical-align: middle; }
.td-rank { font-weight: 800; font-size: 1.1rem; }
.td-name { font-weight: 600; }
.td-amount { font-family: var(--font-head); font-weight: 800; color: var(--gold); font-size: 1rem; }
.td-email { color: var(--white-70); }
.td-phone { color: var(--white-70); }
.td-date  { color: var(--white-40); font-size: 0.82rem; white-space: nowrap; }
.td-note  { color: var(--white-40); font-size: 0.82rem; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
  color: var(--white-70);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  margin-left: 0.4rem;
}
.copy-btn:hover { background: rgba(255,255,255,0.2); color: var(--white); }
.badge-top1 { background: linear-gradient(90deg,#ffd700,#ff9900); color:#000; font-weight:700; font-size:0.7rem; padding:0.15rem 0.5rem; border-radius:4px; margin-right:0.4rem; }
.no-bids { text-align: center; padding: 4rem; color: var(--white-40); }
.admin-live { display: inline-block; width:8px; height:8px; border-radius:50%; background:var(--success); margin-right:6px; animation: pulse-dot 1.5s ease infinite; }

/* ── Animations ── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* ── Utility ── */
.hidden { display: none !important; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .bid-container { grid-template-columns: 1fr; }
  .stats-bar { justify-content: center; gap: 0.5rem; }
  .stat-divider { display: none; }
  .stat-item { padding: 0.5rem 1rem; }
  .navbar { padding: 1rem 1.2rem; }
  .nav-links { gap: 1rem; }
}
@media (max-width: 600px) {
  .nav-links a:not(.nav-admin) { display: none; }
  .industries-grid { grid-template-columns: 1fr; }
  .bid-form-card { padding: 1.5rem; }
}

/* =============================================================
   DIAL BID SELECTOR
   ============================================================= */
.dial-section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 2rem;
}

.dial-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 560px;
}

.dial-top-hint {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-70);
  margin-bottom: 0.5rem;
}

/* Gauge wrap: SVG + overlay stacked */
.dial-gauge-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.dial-svg {
  width: 100%;
  display: block;
}

/* Center info overlay — positioned at arc's pivot point (5.2% up from bottom) */
.dial-center-overlay {
  position: absolute;
  bottom: 5.2%;           /* = (290-270)/290 ≈ 6.9%, adjusted empirically */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  pointer-events: none;   /* let scroll pass through to section */
  width: 280px;
}
/* Re-enable pointer events only on interactive children */
.dial-center-overlay button,
.dial-center-overlay .dial-btn-row { pointer-events: auto; }

.dial-current-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-40);
  font-weight: 700;
}

.dial-amount-big {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5.5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  text-shadow:
    0 0 12px var(--gold-glow),
    0 0 40px rgba(255,200,0,0.3);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.dial-usd-equiv {
  font-size: 0.82rem;
  color: var(--white-40);
  margin-bottom: 0.4rem;
}

/* ← [BID NOW] → row */
.dial-btn-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.dial-step-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--glass-border);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  user-select: none;
}
.dial-step-btn:hover  { background: rgba(255,255,255,0.22); transform: scale(1.1); }
.dial-step-btn:active { transform: scale(0.92); }

.dial-bid-now-btn {
  background: linear-gradient(135deg, #ff6600, #ff0080, #7700ff);
  background-size: 200% 200%;
  animation: rainbow-shift 4s ease infinite;
  color: white;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  padding: 0.65rem 1.6rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  letter-spacing: 0.04em;
  box-shadow:
    0 4px 18px rgba(255,0,128,0.45),
    0 0 40px rgba(255,80,0,0.15);
  transition: transform var(--transition), box-shadow var(--transition);
}
.dial-bid-now-btn:hover {
  transform: scale(1.06);
  box-shadow:
    0 8px 30px rgba(255,0,128,0.65),
    0 0 60px rgba(255,80,0,0.25);
}
.dial-bid-now-btn:active { transform: scale(0.97); }

.bid-fire {
  display: inline-block;
  animation: bounce 1.5s ease-in-out infinite;
}

.dial-scroll-hint {
  font-size: 0.76rem;
  color: var(--white-40);
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
}

/* Auto-hiding drag helper hint */
.dial-drag-hint {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.72);
  color: rgba(255,255,255,0.92);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.9s ease;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.5s ease both;
}
.dial-drag-hint.fade-out { opacity: 0; }

/* Editable bid amount in modal — highlighted */
.modal-amount-group .amount-wrapper {
  border-color: rgba(255,215,0,0.5);
  box-shadow: 0 0 0 2px rgba(255,215,0,0.12);
}
.modal-amount-group input:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(255,215,0,0.15) !important;
}

/* Flash effect when value changes */
.dial-amount-big.flash { color: white; }

/* =============================================================
   BID MODAL
   ============================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 2rem 2rem 1.5rem;
  animation: fadeInUp 0.3s ease both;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.modal-close-btn:hover { background: rgba(255, 255, 255, 0.22); }

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.modal-emoji  { font-size: 2.2rem; margin-bottom: 0.4rem; }
.modal-header h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.modal-amount-display {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 18px var(--gold-glow);
  line-height: 1;
  margin: 0.3rem 0;
}
.modal-header p { color: var(--white-70); font-size: 0.9rem; }

/* =============================================================
   MOBILE — Dial layout: stack controls BELOW the SVG
   This fully eliminates the overlay/jumble on small screens.
   Desktop (>600px) is completely unchanged.
   ============================================================= */
@media (max-width: 600px) {

  /* General page */
  .nav-links a:not(.nav-admin) { display: none; }
  .industries-grid { grid-template-columns: 1fr; }
  .bid-form-card   { padding: 1.5rem; }

  /* Dial section: tighter top padding since dial is first thing visible */
  .dial-section { padding: 5rem 1rem 1.5rem; min-height: auto; }
  .dial-wrapper { gap: 0; max-width: 100%; }
  .dial-top-hint { font-size: 0.7rem; margin-bottom: 0.2rem; }

  /* Gauge wrap: add bottom padding to clear space for stacked controls */
  .dial-gauge-wrap { max-width: 100%; }

  /* ── KEY FIX ──
     Remove the absolute overlay — controls become a normal
     block below the SVG on mobile. */
  .dial-center-overlay {
    position: static;        /* leave document flow */
    transform: none;
    bottom: auto;
    left: auto;
    width: 100%;
    padding: 0.6rem 1rem 0.4rem;
    background: rgba(0,0,0,0.25);
    border-radius: 0 0 16px 16px;
    pointer-events: auto;
    gap: 0.2rem;
  }
  /* All children are already pointer-aware — keep them so */
  .dial-center-overlay button,
  .dial-center-overlay .dial-btn-row { pointer-events: auto; }

  /* Shrink the amount text so it fits in the bar */
  .dial-amount-big  { font-size: 1.5rem; }
  .dial-usd-equiv   { font-size: 0.72rem; margin-bottom: 0.15rem; }
  .dial-current-label { font-size: 0.6rem; }

  /* Tighten button row */
  .dial-btn-row     { gap: 0.6rem; }
  .dial-bid-now-btn { font-size: 0.85rem; padding: 0.5rem 1rem; }
  .dial-step-btn    { width: 34px; height: 34px; font-size: 1.1rem; }

  .dial-scroll-hint { font-size: 0.68rem; margin-top: 0.4rem; }
  .dial-drag-hint   { top: 10%; font-size: 0.7rem; }

  /* Modal */
  .modal-card           { padding: 1.2rem; }
  .modal-amount-display { font-size: 1.6rem; }
  .modal-header h2      { font-size: 1.2rem; }
  .modal-emoji          { font-size: 1.6rem; }
}

/* Very small phones (≤390px) — extra compression */
@media (max-width: 390px) {
  .dial-amount-big  { font-size: 1.25rem; }
  .dial-bid-now-btn { font-size: 0.78rem; padding: 0.45rem 0.85rem; }
  .dial-step-btn    { width: 30px; height: 30px; font-size: 1rem; }
}

/* Reduce motion & particle cost on mobile/low-power */
@media (prefers-reduced-motion: reduce) {
  .bid-fire,
  .dial-bid-now-btn,
  .hero-badge,
  .domain-title,
  .rainbow-bg { animation: none !important; }
}
