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

:root {
  --bg: #0b141a;
  --card: #1c252e;
  --header-footer: #111820;
  --green: #009f2d;
  --green-bright: #22c55e;
  --text: #ffffff;
  --text-muted: #9ca3af;
  --link: #e85d6a;
  --btn-happy: #16a34a;
  --btn-neutral: #ca8a04;
  --btn-sad: #dc2626;
  --highlight-box: #d4edda;
  --highlight-text: #155724;
  --max-width: 520px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

a {
  color: var(--link);
}

/* Header */
.site-header {
  background: var(--header-footer);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo img {
  display: block;
  height: 48px;
  width: auto;
}

#saldo {
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  background: var(--green);
  padding: 10px 18px;
  border-radius: 6px;
  white-space: nowrap;
  transition: transform 0.3s ease;
}

#saldo.zoom-in {
  transform: scale(1.15);
}

/* Main */
.site-main {
  flex: 1;
  padding: 24px 16px 32px;
  display: flex;
  justify-content: center;
}

.screen {
  display: none;
  width: 100%;
  max-width: var(--max-width);
  animation: fadeIn 0.35s ease;
}

.screen.active {
  display: block;
}

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

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
}

.card h1,
.card h2.title-main {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
}

.card p {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #e5e7eb;
}

.highlight-earned {
  background: var(--highlight-box);
  color: var(--highlight-text);
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  margin: 16px 0;
}

.btn-primary {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 20px auto 0;
  padding: 16px 24px;
  background: var(--green);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  letter-spacing: 0.02em;
  transition: filter 0.2s, transform 0.15s;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-pill {
  border-radius: 999px;
  font-size: 1.05rem;
  padding: 18px 28px;
}

/* Video evaluation */
.video-thumb {
  width: 100%;
  border-radius: 8px;
  display: block;
  margin-bottom: 16px;
}

.eval-question {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.eval-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.reaction-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.reaction-buttons button {
  flex: 1;
  max-width: 120px;
  padding: 14px 8px;
  border: none;
  border-radius: 8px;
  font-size: 1.75rem;
  cursor: pointer;
  transition: transform 0.15s, filter 0.2s;
  line-height: 1;
}

.reaction-buttons button:hover {
  filter: brightness(1.1);
  transform: scale(1.03);
}

.btn-happy {
  background: var(--btn-happy);
}

.btn-neutral {
  background: var(--btn-neutral);
}

.btn-sad {
  background: var(--btn-sad);
}

.yes-no-buttons {
  display: flex;
  gap: 12px;
}

.yes-no-buttons button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s;
}

.btn-yes {
  background: var(--btn-happy);
}

.btn-no {
  background: var(--btn-sad);
}

.yes-no-buttons svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Final screen */
.final-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
}

.balance-final {
  background: var(--green);
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 16px 0;
}

.final-sub {
  font-size: 0.95rem;
  color: #d1d5db;
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  background: var(--header-footer);
  padding: 20px 16px 28px;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer p {
  margin: 6px 0;
  color: var(--text-muted);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* VSL page */
.vsl-header .balance-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.vsl-card .vsl-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 8px;
}

.vsl-card .vsl-subtitle {
  text-align: center;
  color: #d1d5db;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.video-wrap {
  max-width: 400px;
  margin: 0 auto 24px;
}

.vsl-balance-badge {
  background: var(--green);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.comments-section {
  background: #fff;
  color: #050505;
  padding: 24px 16px 40px;
}

#fb-comments {
  font-family: "Segoe UI Historic", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 13px;
  max-width: 40em;
  margin: auto;
}

#fb-comments .fb-heading {
  margin: 0 0 0.625em;
  font-size: 1.3em;
  color: #555;
  font-weight: 400;
}

#fb-comments .comments-container {
  display: flex;
  flex-direction: column;
  gap: 1.25em;
  border: 1px solid #e9ebee;
  border-radius: 20px;
  padding: 1.25em;
}

#fb-comments .comment {
  display: flex;
  align-items: flex-start;
  gap: 0.625em;
  position: relative;
  width: 100%;
}

#fb-comments .comment.answer {
  margin-left: 3.625em;
  max-width: calc(100% - 3.625em);
}

#fb-comments .user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

#fb-comments .comment-data .user {
  background: #f0f2f5;
  border-radius: 12px;
  padding: 6px 12px 12px;
}

#fb-comments .name {
  margin: 0 0 4px;
  color: #365899;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

#fb-comments .text {
  margin: 0;
  font-size: 16px;
  color: #050505;
}

#fb-comments .buttons {
  margin: 4px 0 0 12px;
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 0.8em;
  color: #888;
}

#fb-comments like,
#fb-comments answer {
  font-weight: 600;
  cursor: pointer;
}

#fb-comments like[liked] {
  color: #365899;
}

#fb-comments answer {
  cursor: default;
}

#fb-comments likes {
  position: absolute;
  bottom: -10px;
  right: 0;
  background: #fff;
  border: 2px solid #eaebef;
  display: flex;
  align-items: center;
  font-size: 0.875em;
  color: #888;
  border-radius: 100px;
  padding: 1px 4px 1px 0;
}

#fb-comments likes::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url("../images/likes.png") center/contain no-repeat;
}

@media (min-width: 576px) {
  #fb-comments {
    font-size: 16px;
  }

  #fb-comments likes {
    bottom: 0;
  }
}

/* SweetAlert2 tweaks */
.swal2-popup {
  border-radius: 12px !important;
  padding: 28px 24px !important;
}

.swal2-title {
  color: #374151 !important;
  font-size: 1.35rem !important;
}

.swal2-html-container {
  color: #4b5563 !important;
  font-size: 1rem !important;
}

.swal2-html-container strong span {
  color: var(--green) !important;
  font-weight: 700;
}
