/* =========================================================
   THEME VARIABLES (default / fallback)
   ========================================================= */
:root {
  --bg-top: #0b0f19;
  --bg-bottom: #11244a;

  --card-bg: rgba(255,255,255,0.08);
  --card-border: rgba(255,255,255,0.18);

  --text-main: #ffffff;
  --text-muted: rgba(255,255,255,0.85);

  --btn-bg: #4f8cff;
  --btn-text: #ffffff;
}

/* =========================================================
   THEME: option1
   ========================================================= */
body.theme-option1 {
  --bg-top: #0b0f19;
  --bg-bottom: #11244a;

  --card-bg: rgba(255,255,255,0.08);
  --card-border: rgba(255,255,255,0.18);

  --btn-bg: #4f8cff;
  --btn-text: #ffffff;
}

/* =========================================================
   THEME: TOTAL_FG
   ========================================================= */
body.theme-TOTAL_FG {
  --bg-top: #0f1b14;
  --bg-bottom: #27A9E6;

  --card-bg: rgba(0,0,0,0.35);
  --card-border: rgba(79, 220, 160, 0.45);

  --btn-bg: #4fdca0;
  --btn-text: #0b0f19;
}

/* =========================================================
   THEME: option2
   ========================================================= */
body.theme-option2 {
  --bg-top: #0f1b14;
  --bg-bottom: #1e3b2a;

  --card-bg: rgba(0,0,0,0.35);
  --card-border: rgba(79, 220, 160, 0.45);

  --btn-bg: #4fdca0;
  --btn-text: #0b0f19;
}

/* =========================================================
   BASE LAYOUT (iframe-safe)
   ========================================================= */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;

  background: linear-gradient(var(--bg-top), var(--bg-bottom));
  color: var(--text-main);

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* =========================================================
   UNIT WRAPPER
   ========================================================= */
#unit {
  position: relative;
  width: 100%;
  height: 100%;
}

/* =========================================================
   CANVAS
   ========================================================= */
#cnv {
  display: block;
  width: 100%;
  height: 100%;
}

/* =========================================================
   SLOT (overlay for banners / forms)
   ========================================================= */
#slot {
  position: absolute;
  inset: 0;

  display: grid;
  place-items: center;

  padding: 10px;
  box-sizing: border-box;
}

/* =========================================================
   BANNER CARD
   ========================================================= */
.banner {
  width: calc(100% - 20px);
  max-width: 304px;

  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;

  color: var(--text-main);
  overflow: hidden;

  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
}

.banner .content {
  padding: 12px;
}

/* =========================================================
   CLICKABLE BANNER IMAGE (NEW)
   ========================================================= */
.banner .img-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  line-height: 0;
}

.banner .img-link img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.banner .img-link:hover img,
.banner .img-link:focus-visible img {
  transform: scale(1.02);
  filter: brightness(1.05);
}

.banner .img-link:focus {
  outline: none;
}

.banner .img-link:focus-visible {
  outline: 2px solid var(--btn-bg);
  outline-offset: 3px;
}

/* =========================================================
   BUTTONS & LINKS
   ========================================================= */
a.btn,
button.btn {
  display: inline-block;
  margin-top: 10px;

  padding: 10px 12px;
  border-radius: 10px;
  border: 0;

  background: var(--btn-bg);
  color: var(--btn-text);

  text-decoration: none;
  font-weight: 600;
  cursor: pointer;

  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

a.btn:hover,
button.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  opacity: 0.95;
}

/* =========================================================
   FORMS
   ========================================================= */
form {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

label {
  font-size: 12px;
  opacity: 0.92;
}

input,
textarea,
select {
  width: 100%;
  box-sizing: border-box;

  padding: 10px;
  border-radius: 10px;

  border: 1px solid var(--card-border);
  background: rgba(0,0,0,0.25);

  color: var(--text-main);
  outline: none;
}

/* Make select look consistent and readable across browsers */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.7) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.7) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 30px; /* room for arrow */
}

/* Style placeholder option (disabled) if you use it */
select option[disabled] {
  color: rgba(255,255,255,0.6);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,0.6);
}

textarea {
  resize: vertical;
  min-height: 70px;
}



/* =========================================================
   SMALL TEXT
   ========================================================= */
small {
  font-size: 12px;
  color: var(--text-muted);
}

/* =========================================================
   QUICK FORM LINK (persistent CTA)
   ========================================================= */
.quick-form-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 50;

  padding: 10px 16px;
  border-radius: 999px;
  border: 0;

  background: var(--btn-bg);
  color: var(--btn-text);

  font-size: 13px;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;
  white-space: nowrap;

  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition:
    transform 0.15s ease,
    opacity 0.15s ease,
    box-shadow 0.15s ease;
}

.quick-form-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
}

.quick-form-btn:focus {
  outline: none;
}

.quick-form-btn:focus-visible {
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 3px;
}

@media (max-width: 420px) {
  .quick-form-btn {
    bottom: 10px;
    right: 10px;
    padding: 12px 18px;
    font-size: 14px;
  }
}
``
