* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f7f8fb;
  color: #222;
}

button,
input {
  font: inherit;
}

.hidden {
  display: none !important;
}

.screen {
  min-height: 100vh;
}

.app-container {
  width: 100%;
}

.login-card,
.card,
.app-header {
  width: min(92%, 900px);
  margin-left: auto;
  margin-right: auto;
}

.login-card {
  margin-top: 8vh;
  background: #ffffff;
  padding: 32px;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.login-card h1 {
  margin-bottom: 0;
  font-size: 44px;
}

.login-card h2 {
  margin-top: 4px;
  margin-bottom: 6px;
}

.subtitle {
  margin-top: 0;
  margin-bottom: 28px;
  color: #666;
}

label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 14px;
  border: 1px solid #d8dbe2;
  border-radius: 10px;
  background: #fff;
}

.primary-button,
.secondary-button,
.whatsapp-button,
.posted-button,
.skip-button {
  border: 0;
  border-radius: 10px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 700;
}

.primary-button {
  width: 100%;
  margin-top: 20px;
  background: #222;
  color: #fff;
}

.secondary-button {
  background: #fff;
  color: #222;
  border: 1px solid #d8dbe2;
}

.whatsapp-button {
  background: #e9f8ee;
  color: #1d5f32;
}

.posted-button {
  background: #e8f1ff;
  color: #214d8f;
}

.skip-button {
  background: #f1f1f1;
  color: #555;
}

.message {
  margin-top: 14px;
  color: #b00020;
}

.app-header {
  padding: 26px 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.app-header h1 {
  margin: 0;
}

.app-header p {
  margin: 4px 0 0;
  color: #666;
}

.card {
  background: #fff;
  margin-top: 16px;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.section-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #777;
}

.progress-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.stat {
  text-align: center;
  padding: 16px 10px;
  border-radius: 12px;
  background: #f6f7fa;
}

.stat span {
  display: block;
  font-size: 28px;
  font-weight: 800;
}

.stat small {
  color: #666;
}

.progress-bar {
  margin-top: 20px;
  height: 12px;
  background: #eceef2;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #333;
  transition: width 0.2s ease;
}

#ad-message {
  white-space: pre-wrap;
}

.ad-message {
  margin-top: 12px;
  padding: 16px;
  background: #f8f9fb;
  border-radius: 12px;
  line-height: 1.5;
}

.group-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f1f1f1;
  font-size: 13px;
}

.queue-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.complete-card {
  text-align: center;
  margin-bottom: 30px;
}

@media (max-width: 700px) {
  .login-card {
    padding: 24px;
  }

  .app-header {
    align-items: flex-start;
  }

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

  .queue-buttons {
    grid-template-columns: 1fr;
  }

  .secondary-button {
    padding: 10px 12px;
  }
}
