* {
  box-sizing: border-box;
}

:root {
  --bg: #08090c;
  --card: rgba(255, 255, 255, 0.065);
  --card2: rgba(0, 0, 0, 0.24);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f4f5;
  --muted: #a9a9b3;
  --green: #00e58a;
  --red: #ff4f6f;
  --purple: #9146ff;
  --youtube: #ff0033;
  --blue: #68b7ff;
  --gold: #ffd34d;
  --orange: #ff7a00;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(145, 70, 255, 0.22) 0, transparent 30%),
    radial-gradient(circle at 85% 0%, rgba(255, 0, 51, 0.18) 0, transparent 32%),
    linear-gradient(180deg, #151622 0%, #08090c 48%, #050609 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.app {
  max-width: 1060px;
  margin: 0 auto;
  padding: 30px;
}

.hero {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(145, 70, 255, 0.16), rgba(255, 0, 51, 0.08)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(125, 211, 255, 0.10);
  border: 1px solid rgba(125, 211, 255, 0.20);
  color: #7dd3ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.6px;
}

h1 {
  margin: 0;
  font-size: 38px;
  letter-spacing: 0.5px;
}

p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.open-overlay,
a {
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--purple), #5a00c9);
  padding: 13px 18px;
  border-radius: 14px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 12px 34px rgba(145, 70, 255, 0.26);
}

.status-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.mini-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.mini-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 7px;
}

.mini-card strong {
  font-size: 21px;
}

.mini-card.twitch {
  border-color: rgba(145, 70, 255, 0.28);
}

.mini-card.youtube {
  border-color: rgba(255, 0, 51, 0.28);
}

.mini-card.server {
  border-color: rgba(0, 229, 138, 0.24);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.22);
}

.main-card {
  border-color: rgba(255, 255, 255, 0.15);
}

.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

h2 {
  margin: 0;
  font-size: 25px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 900;
  color: #dfdfe5;
}

input {
  width: 100%;
  border: 1px solid #3a3d4f;
  border-radius: 14px;
  background: rgba(9, 10, 16, 0.82);
  color: #fff;
  padding: 14px 15px;
  font-size: 16px;
  outline: none;
  transition: 0.15s ease;
}

input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(145, 70, 255, 0.16);
}

small {
  color: var(--muted);
  font-weight: 400;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

button {
  cursor: pointer;
  border: 0;
  border-radius: 14px;
  padding: 13px 17px;
  background: linear-gradient(135deg, #00c26e, #008a55);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  transition: 0.15s ease;
}

button:hover,
.open-overlay:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

button.secondary {
  background: linear-gradient(135deg, var(--purple), #5a00c9);
}

button.youtube {
  background: linear-gradient(135deg, var(--youtube), #a80024);
}

button.danger {
  background: linear-gradient(135deg, #4b5563, #2f343c);
}

#result {
  margin-top: 16px;
  color: var(--green);
  font-weight: 900;
}

.link-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.link-row:last-child {
  border-bottom: 0;
}

.link-row span {
  color: #ddd;
  font-weight: 800;
}

code {
  color: #7dd3ff;
  word-break: break-all;
}

.faq-card {
  margin-bottom: 44px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.faq-item {
  min-height: 178px;
  background: var(--card2);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.faq-item::after {
  content: "";
  position: absolute;
  inset: auto -30px -50px auto;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.faq-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 17px;
  background: rgba(255, 255, 255, 0.08);
}

.faq-icon.normal {
  background: rgba(255, 255, 255, 0.10);
}

.faq-icon.bits,
.faq-icon.superchat,
.faq-icon.gift {
  background: rgba(255, 211, 77, 0.16);
  color: var(--gold);
}

.faq-icon.sub,
.faq-icon.ytmember {
  background: rgba(0, 229, 138, 0.14);
  color: var(--green);
}

.faq-icon.raid {
  background: rgba(255, 122, 0, 0.16);
  color: var(--orange);
}

.faq-icon.mod,
.faq-icon.verified {
  background: rgba(104, 183, 255, 0.16);
  color: var(--blue);
}

.faq-icon.owner {
  background: rgba(255, 79, 111, 0.16);
  color: var(--red);
}

.faq-icon.server {
  background: rgba(145, 70, 255, 0.16);
  color: var(--purple);
}

.faq-icon.warn {
  background: rgba(255, 214, 0, 0.14);
  color: #ffe56a;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #ffffff;
}

.faq-item p {
  margin: 0;
  color: #bdbdc7;
  line-height: 1.45;
  font-size: 14px;
}

.faq-item strong {
  color: #7dd3ff;
}

@media (max-width: 900px) {
  .status-cards,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .app {
    padding: 16px;
  }

  h1 {
    font-size: 30px;
  }

  .status-cards,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .link-row {
    grid-template-columns: 1fr;
  }

  .actions button {
    width: 100%;
  }

  .open-overlay {
    width: 100%;
    text-align: center;
  }
}

.overlay-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.preset-card {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 16px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.preset-card h3 {
  margin: 0;
  font-size: 17px;
}

.preset-card p {
  margin: 0;
  color: #bdbdc7;
  font-size: 13px;
}

.preset-card code {
  display: block;
  margin-top: auto;
  padding: 10px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(125, 211, 255, 0.14);
  border-radius: 10px;
  font-size: 12px;
  color: #7dd3ff;
  word-break: break-all;
}

button.copy {
  width: fit-content;
  padding: 9px 12px;
  font-size: 13px;
  border-radius: 10px;
  background: linear-gradient(135deg, #334155, #1f2937);
}

.admin-link-row {
  margin-top: 16px;
}

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

@media (max-width: 640px) {
  .overlay-presets {
    grid-template-columns: 1fr;
  }

  button.copy {
    width: 100%;
  }
}

.toast-preset {
  border-color: rgba(255, 211, 77, 0.22);
}

.test-events {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.test-events span {
  font-weight: 900;
  color: #d8d8df;
  margin-right: 4px;
}

button.tiny {
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #334155, #1f2937);
}

button.tiny.youtube {
  background: linear-gradient(135deg, #ff0033, #a80024);
}

.stats-preset {
  border-color: rgba(125, 211, 255, 0.24);
}

.overlay-theme-box {
  display: grid;
  grid-template-columns: 1fr 180px auto 150px;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.overlay-theme-box label {
  margin-bottom: 0;
}

.overlay-theme-box select,
.overlay-theme-box input[type="color"] {
  width: 100%;
  height: 48px;
  border: 1px solid #3a3d4f;
  border-radius: 14px;
  background: rgba(9, 10, 16, 0.82);
  color: #fff;
  padding: 0 12px;
  font-size: 15px;
  outline: none;
}

.overlay-theme-box input[type="color"] {
  padding: 4px;
  cursor: pointer;
}

.theme-preview {
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.theme-preview.theme-transparent {
  background:
    linear-gradient(45deg, #555 25%, transparent 25%),
    linear-gradient(-45deg, #555 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #555 75%),
    linear-gradient(-45deg, transparent 75%, #555 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0px;
  background-color: #222;
}

.theme-preview.theme-gray {
  background: linear-gradient(180deg, #1b1d22, #111318);
}

.theme-preview.theme-dark {
  background: #08090c;
}

.theme-preview.theme-studio {
  background: linear-gradient(135deg, #14161c, #2b2e38);
}

@media (max-width: 900px) {
  .overlay-theme-box {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .overlay-theme-box {
    grid-template-columns: 1fr;
  }
}

.generated-url-box {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 2px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(125, 211, 255, 0.14);
}

.generated-url-box span {
  color: #d8d8df;
  font-weight: 900;
  font-size: 13px;
}

.generated-url-box code {
  display: block;
  padding: 10px;
  border-radius: 10px;
  color: #7dd3ff;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(125, 211, 255, 0.12);
  word-break: break-all;
  font-size: 12px;
}

@media (max-width: 800px) {
  .generated-url-box {
    grid-template-columns: 1fr;
  }
}

.live-stats-admin-card {
  border-color: rgba(0, 229, 138, 0.18);
}

.live-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.live-stat-box {
  padding: 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.live-stat-box span {
  display: block;
  color: #a7a7b0;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.live-stat-box strong {
  display: block;
  color: #00e58a;
  font-size: 22px;
  font-weight: 900;
}

.stats-help {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  color: #d7d7dd;
  font-size: 13px;
}

.stats-help code {
  display: inline-block;
  color: #7dd3ff;
  margin-left: 8px;
  word-break: break-all;
}

@media (max-width: 800px) {
  .live-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .live-stats-grid {
    grid-template-columns: 1fr;
  }
}

.shorts-card {
  border-color: rgba(255, 90, 0, 0.28);
}

.shorts-card strong {
  color: #ffb020;
}


.shorts-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: -4px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.shorts-save-btn {
  background: linear-gradient(135deg, #ff7a00, #ff0033) !important;
}

#shortsSaveStatus {
  color: #ffb020;
  font-weight: 900;
  font-size: 13px;
}


.shorts-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: -4px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.shorts-save-btn {
  background: linear-gradient(135deg, #ff7a00, #ff0033) !important;
}

#shortsSaveStatus {
  color: #ffb020;
  font-weight: 900;
  font-size: 13px;
}


.shorts-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: -4px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.shorts-save-btn {
  background: linear-gradient(135deg, #ff7a00, #ff0033) !important;
}

#shortsSaveStatus {
  color: #ffb020;
  font-weight: 900;
  font-size: 13px;
}


/* ===== HostStorm Exportar URLs para OBS ===== */

.obs-export-panel {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(12, 14, 22, .86);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 16px 50px rgba(0,0,0,.25);
}

.obs-export-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.obs-export-head h2 {
  margin: 0 0 4px 0;
  font-size: 20px;
  color: #fff;
}

.obs-export-head p {
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: 13px;
}

.obs-export-badge {
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #9146ff, #ff0033);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}

.obs-export-list {
  display: grid;
  gap: 10px;
}

.obs-export-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}

.obs-export-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.obs-export-info strong {
  color: #fff;
  font-size: 14px;
}

.obs-export-info span {
  color: rgba(255,255,255,.65);
  font-size: 12px;
}

.obs-export-info code {
  display: block;
  padding: 7px 9px;
  border-radius: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(0,0,0,.28);
  color: rgba(255,255,255,.82);
  font-size: 11px;
}

.obs-copy-btn {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 800;
  transition: .16s ease;
}

.obs-copy-btn:hover,
.obs-copy-btn.copied {
  background: linear-gradient(135deg, #9146ff, #ff0033);
}

.obs-export-tip {
  margin-top: 12px;
  color: rgba(255,255,255,.58);
  font-size: 12px;
}

.obs-export-tip code {
  color: #fff;
}

@media (max-width: 760px) {
  .obs-export-head,
  .obs-export-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .obs-copy-btn {
    width: 100%;
  }
}


/* ===== HostStorm OBS Export FORCE ===== */

.obs-force-panel {
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(10, 12, 20, .92);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
}

.obs-force-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.obs-force-head h2 {
  margin: 0 0 4px 0;
  font-size: 20px;
  color: #fff;
}

.obs-force-head p {
  margin: 0;
  color: rgba(255,255,255,.65);
  font-size: 13px;
}

.obs-force-head > span {
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #9146ff, #ff0033);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.obs-force-grid {
  display: grid;
  gap: 10px;
}

.obs-force-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}

.obs-force-card-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.obs-force-card-info strong {
  color: #fff;
  font-size: 14px;
}

.obs-force-card-info span {
  color: rgba(255,255,255,.65);
  font-size: 12px;
}

.obs-force-card-info code {
  display: block;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(0,0,0,.32);
  color: rgba(255,255,255,.82);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.obs-force-card button {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-weight: 800;
}

.obs-force-card button:hover,
.obs-force-card button.copied {
  background: linear-gradient(135deg, #9146ff, #ff0033);
}

/* ===== HostStorm OBS Export V2 ===== */

.obs-v2-panel {
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(10, 12, 20, .94);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 18px 60px rgba(0,0,0,.30);
}

.obs-v2-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.obs-v2-head h2 {
  margin: 0 0 4px 0;
  font-size: 20px;
  color: #fff;
}

.obs-v2-head p {
  margin: 0;
  color: rgba(255,255,255,.65);
  font-size: 13px;
}

.obs-v2-head > span {
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #9146ff, #ff0033);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.obs-v2-grid {
  display: grid;
  gap: 10px;
}

.obs-v2-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}

.obs-v2-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.obs-v2-info strong {
  color: #fff;
  font-size: 14px;
}

.obs-v2-info span {
  color: rgba(255,255,255,.65);
  font-size: 12px;
}

.obs-v2-info code {
  display: block;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(0,0,0,.32);
  color: rgba(255,255,255,.82);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.obs-v2-card button {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-weight: 800;
}

.obs-v2-card button:hover,
.obs-v2-card button.copied {
  background: linear-gradient(135deg, #9146ff, #ff0033);
}

/* ===== HostStorm OBS Export Static ===== */

.obs-static-panel {
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(10, 12, 20, .94);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 18px 60px rgba(0,0,0,.30);
}

.obs-static-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.obs-static-head h2 {
  margin: 0 0 4px 0;
  font-size: 20px;
  color: #fff;
}

.obs-static-head p {
  margin: 0;
  color: rgba(255,255,255,.65);
  font-size: 13px;
}

.obs-static-head > span {
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #9146ff, #ff0033);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.obs-static-grid {
  display: grid;
  gap: 10px;
}

.obs-static-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}

.obs-static-card div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.obs-static-card strong {
  color: #fff;
  font-size: 14px;
}

.obs-static-card small {
  color: rgba(255,255,255,.65);
  font-size: 12px;
}

.obs-static-card code {
  display: block;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(0,0,0,.32);
  color: rgba(255,255,255,.82);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.obs-static-card button {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-weight: 800;
}

.obs-static-card button:hover {
  background: linear-gradient(135deg, #9146ff, #ff0033);
}

@media (max-width: 760px) {
  .obs-static-head,
  .obs-static-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .obs-static-card button {
    width: 100%;
  }
}


/* ===== HostStorm YouTube API Dashboard Panel ===== */

.youtube-api-panel {
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(10, 12, 20, .94);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 18px 60px rgba(0,0,0,.30);
}

.youtube-api-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.youtube-api-head h2 {
  margin: 0 0 4px 0;
  color: #fff;
  font-size: 20px;
}

.youtube-api-head p {
  margin: 0;
  color: rgba(255,255,255,.65);
  font-size: 13px;
}

#youtubeApiModeBadge {
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff0033, #9146ff);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.youtube-api-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: #fff;
  font-weight: 800;
}

.youtube-api-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.youtube-api-grid label {
  display: grid;
  gap: 6px;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  font-weight: 800;
}

.youtube-api-grid input,
.youtube-api-grid select {
  width: 100%;
  box-sizing: border-box;
}

.youtube-api-grid small {
  color: rgba(255,255,255,.52);
  font-size: 11px;
  font-weight: 500;
}

.youtube-api-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.youtube-api-note {
  margin-top: 12px;
  color: rgba(255,255,255,.58);
  font-size: 12px;
}

@media (max-width: 760px) {
  .youtube-api-head,
  .youtube-api-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
}


/* ===== HostStorm Kick Official ===== */

.kick-api-panel {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(83, 252, 24, .25);
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(83, 252, 24, .07),
    rgba(10, 12, 16, .96)
  );
}

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

.kick-api-header h2 {
  margin: 0 0 5px;
  color: #fff;
}

.kick-api-header p {
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: 13px;
}

#kickApiBadge {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.7);
  font-size: 11px;
  font-weight: 900;
}

#kickApiBadge.connected {
  color: #091007;
  background: #53fc18;
}

.kick-api-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.kick-api-info > div {
  padding: 13px;
  border-radius: 14px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.08);
}

.kick-api-info small {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,.55);
}

.kick-api-info strong {
  color: #fff;
}

.kick-api-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.kick-api-error {
  margin-top: 10px;
  color: #ff6a82;
  font-size: 12px;
}

@media (max-width: 800px) {
  .kick-api-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ===== HostStorm Kick Layout Integration Fix ===== */

.kick-api-panel {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 18px 0;
  position: relative;
  overflow: hidden;
}

.kick-api-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    #53fc18,
    rgba(83, 252, 24, .15)
  );
}

.kick-api-header,
.kick-api-info,
.kick-api-actions,
.kick-api-error {
  position: relative;
  z-index: 1;
}

.kick-api-actions button {
  min-height: 36px;
  padding: 8px 13px;
  border: 0;
  border-radius: 9px;
  font-weight: 800;
  cursor: pointer;
}

.kick-api-actions button:first-child {
  background: #53fc18;
  color: #071005;
}

.kick-api-actions button.secondary {
  background: #6d28d9;
  color: #fff;
}

.kick-api-actions button.danger {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.kick-api-actions button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .kick-api-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .kick-api-info {
    grid-template-columns: 1fr;
  }

  .kick-api-actions button {
    width: 100%;
  }
}

/* ===== /HostStorm Kick Layout Integration Fix ===== */

