* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f4f6f8;
  color: #1f2937;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
  text-align: center;
  padding: 56px 20px 40px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
}

.subtitle {
  margin-top: 10px;
  font-size: 16px;
  color: #6b7280;
}

/* Main layout */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* Success message */
.success-message {
  display: none;
  text-align: center;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #047857;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 32px;
  font-size: 15px;
  font-weight: 600;
}

.success-message.show {
  display: block;
}

/* Tools */
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.tool-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px 24px;
  width: 280px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.tool-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.tool-card h2 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111827;
}

.tool-card p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 20px;
  min-height: 44px;
}

/* Buttons */
.unlock-btn,
#adgrove-unlock {
  background: #4f46e5;
  color: #ffffff;
  border: none;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.unlock-btn:hover,
#adgrove-unlock:hover {
  background: #4338ca;
}

.unlock-btn {
  width: 100%;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 39, 0.55);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 32px;
  width: 600px;
  max-width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.modal h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111827;
}

.modal p {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 24px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #9ca3af;
}

.modal-close:hover {
  color: #374151;
}

/* Ad area - kept large so the AdGrove ad is never cropped */
.ad-area {
  min-height: 340px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  padding: 20px;
}

/* Responsive */
@media (max-width: 620px) {
  .header {
    padding: 40px 16px 28px;
  }

  .header h1 {
    font-size: 26px;
  }

  .tool-card {
    width: 100%;
  }

  .modal {
    padding: 28px 20px;
  }
}
