:root {
  --bg: #020617;
  --bg-alt: #030712;
  --card-bg: rgba(15, 23, 42, 0.92);
  --card-border: rgba(148, 163, 184, 0.35);
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.18);
  --accent-strong: rgba(16, 185, 129, 0.9);
  --accent-danger: #ef4444;
  --text-main: #e5e7eb;
  --text-subtle: #9ca3af;
  --shadow-soft: 0 22px 55px rgba(15, 23, 42, 0.95);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --border-subtle: 1px solid rgba(148, 163, 184, 0.3);
  --transition-fast: 180ms ease-out;
}

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

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.3), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.24), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(236, 72, 153, 0.16), transparent 55%),
    linear-gradient(145deg, #020617 0%, #020617 45%, #020617 100%);
}

.container {
  max-width: 1180px;
  margin: 24px auto 32px;
  padding: 20px 20px 24px;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), transparent 70%),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 60%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.93));
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.45);
  position: relative;
  overflow: hidden;
}

.container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 0%, rgba(59, 130, 246, 0.18), transparent 55%);
  pointer-events: none;
  opacity: 0.7;
}

.container > * {
  position: relative;
  z-index: 1;
}

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

.header-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

header h1 {
  margin: 0 0 4px 0;
  font-size: 26px;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, #e5e7eb, #f97316, #22c55e);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

header p {
  margin: 0;
  color: var(--text-subtle);
  font-size: 13px;
}

.header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 11px;
  color: var(--text-subtle);
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.11);
  color: #bbf7d0;
  border: 1px solid rgba(74, 222, 128, 0.3);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
}

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

.card {
  background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.12), transparent 65%),
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.15), transparent 65%),
    var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 12px 14px 10px;
  border: var(--border-subtle);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast), background var(--transition-fast);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.7);
}

.card h2 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0;
  font-size: 13px;
}

.row span:first-child {
  color: var(--text-subtle);
}

.row span:last-child {
  color: var(--text-main);
}

.mono {
  font-family: 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
    monospace;
  font-size: 11px;
}

.current-round {
  margin-bottom: 18px;
}

.current-round-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.countdown,
.last-buyer,
.participants-count {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 150px;
  background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.25), transparent 65%),
    #020617;
  border-radius: var(--radius-md);
  padding: 10px 11px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.countdown::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(34, 197, 94, 0.18), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.label {
  font-size: 12px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.value {
  font-size: 20px;
  margin-top: 6px;
  font-weight: 600;
}

.countdown .value {
  font-size: 32px;
  letter-spacing: 0.06em;
}

.participants-count .value {
  color: #facc15;
}

.last-buyer .value {
  font-size: 16px;
  word-break: break-all;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(30, 64, 175, 0.75);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.96));
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th,
td {
  padding: 7px 6px;
  text-align: left;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(30, 64, 175, 0.9), rgba(37, 99, 235, 0.85));
  color: #e5e7eb;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
}

tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.96);
}

tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.9);
}

tbody tr:hover {
  background: rgba(30, 64, 175, 0.45);
}

td {
  border-top: 1px solid rgba(30, 64, 175, 0.35);
  color: #e5e7eb;
}

.history {
  margin-top: 12px;
}

a {
  color: #38bdf8;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  color: #7dd3fc;
  opacity: 0.95;
}

footer {
  margin-top: 16px;
  color: var(--text-subtle);
  font-size: 11px;
}

@media (max-width: 900px) {
  .info {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .container {
    margin: 12px;
    padding: 14px 12px 18px;
  }
}

@media (max-width: 480px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  header h1 {
    font-size: 22px;
  }

  .value {
    font-size: 18px;
  }

  .countdown .value {
    font-size: 26px;
  }

  th,
  td {
    padding: 6px 4px;
  }
}
