/* ==========================================================================
   IA Code Studio — Instant Smart Ad & App Finder ($0 Local, 0ms Search)
   ========================================================================== */

.sf-badge-local {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid rgba(16, 185, 129, 0.38);
  background: rgba(16, 185, 129, 0.13);
  color: #6ee7b7;
  white-space: nowrap;
}

.sf-results-panel {
  display: none;
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(8, 13, 28, 0.94);
  border: 1px solid rgba(139, 92, 246, 0.32);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.55);
  text-align: left;
  animation: sfFadeIn 0.2s ease;
}
.sf-results-panel.open { display: block; }

@keyframes sfFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.sf-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 700;
}
.sf-results-head strong { color: #fff; }
.sf-close-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}
.sf-close-btn:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

.sf-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 410px;
  overflow-y: auto;
  padding-right: 4px;
}

.sf-card {
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.sf-card:hover {
  border-color: rgba(139, 92, 246, 0.55);
  background: rgba(30, 41, 59, 0.75);
  transform: translateY(-2px);
}
.sf-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sf-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.sf-card-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}
.sf-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-cat-pill {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.sf-cat-ads { background: rgba(245, 158, 11, 0.16); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.35); }
.sf-cat-new { background: rgba(236, 72, 153, 0.2); color: #f9a8d4; border: 1px solid rgba(236, 72, 153, 0.4); }
.sf-cat-3d { background: rgba(6, 182, 212, 0.16); color: #67e8f9; border: 1px solid rgba(6, 182, 212, 0.35); }
.sf-cat-apps { background: rgba(139, 92, 246, 0.18); color: #ddd6fe; border: 1px solid rgba(139, 92, 246, 0.35); }
.sf-cat-tools { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.35); }

.sf-card-desc {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
}

.sf-card-actions {
  display: flex;
  gap: 7px;
  margin-top: auto;
  padding-top: 4px;
}
.sf-btn-launch {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 9px;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: #fff;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: filter 0.2s;
}
.sf-btn-launch:hover { filter: brightness(1.12); }

.sf-btn-ide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.sf-btn-ide:hover { background: rgba(16, 185, 129, 0.25); color: #fff; }

.sf-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px 12px;
  color: #94a3b8;
  font-size: 0.86rem;
}

/* Homepage Co-Flagship Advertising Spotlight Strip */
.ad-spotlight-card {
  margin-top: 22px;
  padding: 26px 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(236, 72, 153, 0.10) 45%, rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(245, 158, 11, 0.34);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ad-spotlight-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}
.ad-spotlight-copy h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 8px 0 6px;
}
.ad-spotlight-copy p {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 680px;
  margin: 0;
}
.ad-spotlight-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ad-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #f1f5f9;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s ease;
}
.ad-quick-pill:hover {
  border-color: #fbbf24;
  background: rgba(245, 158, 11, 0.18);
  transform: translateY(-2px);
}
.ad-quick-pill.is-new {
  border-color: rgba(236, 72, 153, 0.45);
  background: rgba(236, 72, 153, 0.14);
}
.ad-spotlight-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 13px;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.28);
  white-space: nowrap;
  transition: transform 0.2s;
}
.ad-spotlight-cta:hover { transform: translateY(-2px); }

/* Homepage VIP Promo Card — Clock Ultra 3D Billboard & Brand Engine */
.clock-promo-card {
  margin-top: 20px;
  padding: 26px 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.14), rgba(99, 102, 241, 0.14) 48%, rgba(245, 158, 11, 0.10) 85%, rgba(8, 13, 28, 0.94));
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.clock-promo-copy h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.52rem;
  font-weight: 800;
  color: #fff;
  margin: 10px 0 8px;
  line-height: 1.2;
}
.clock-promo-copy p {
  color: #cbd5e1;
  font-size: 0.91rem;
  line-height: 1.6;
  margin: 0 0 14px;
  max-width: 640px;
}
.clock-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.clock-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 13px;
  background: linear-gradient(135deg, #06b6d4, #6366f1);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 0 10px 28px rgba(6, 182, 212, 0.3);
  transition: transform 0.2s, filter 0.2s;
}
.clock-promo-cta:hover { filter: brightness(1.1); transform: translateY(-2px); }
.clock-promo-ide {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  border-radius: 13px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  transition: background 0.2s, transform 0.2s;
}
.clock-promo-ide:hover { background: rgba(16, 185, 129, 0.24); color: #fff; transform: translateY(-2px); }

.clock-promo-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 16px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 42%, rgba(56, 189, 248, 0.22), rgba(8, 12, 28, 0.9) 72%);
  border: 1px solid rgba(56, 189, 248, 0.32);
  position: relative;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.clock-promo-visual:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 191, 36, 0.65);
  box-shadow: 0 14px 36px rgba(6, 182, 212, 0.26);
}
.clock-mini-dial {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #1d356b, #071026 56%, #030712 100%);
  border: 5px solid #f59e0b;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25), 0 0 34px rgba(56, 189, 248, 0.42), inset 0 0 26px rgba(0, 0, 0, 0.85);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.clock-mini-dial::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 38%, transparent 55%);
  pointer-events: none;
  z-index: 5;
}
.clock-mini-dial::after {
  content: "CLOCK 3D";
  position: absolute;
  top: 32px;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.17em;
  color: rgba(251, 191, 36, 0.9);
  z-index: 1;
}
.clock-mini-tick {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 2px;
  height: 7px;
  margin-left: -1px;
  background: rgba(226, 232, 240, 0.52);
  border-radius: 2px;
  transform-origin: 50% 65px;
  z-index: 1;
}
.clock-mini-tick.major {
  width: 3px;
  height: 11px;
  margin-left: -1.5px;
  background: #fbbf24;
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.55);
}
.clock-mini-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  border-radius: 99px;
  will-change: transform;
}
.clock-mini-hand.hr {
  width: 4.5px;
  height: 36px;
  margin-left: -2.25px;
  background: linear-gradient(180deg, #fde047, #f59e0b);
  box-shadow: 0 0 6px rgba(250, 204, 21, 0.45);
  z-index: 2;
}
.clock-mini-hand.min {
  width: 3px;
  height: 50px;
  margin-left: -1.5px;
  background: linear-gradient(180deg, #ffffff, #cbd5e1);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
  z-index: 3;
}
.clock-mini-hand.sec {
  width: 1.8px;
  height: 56px;
  margin-left: -0.9px;
  background: #ec4899;
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.85);
  z-index: 4;
}
.clock-mini-hand.sec::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 12px;
  margin-left: -1px;
  background: #ec4899;
  border-radius: 99px;
}
.clock-mini-center {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffd700;
  border: 2px solid #050815;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.65);
  z-index: 6;
}
.clock-live-digital {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.04em;
}
.clock-promo-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.clock-promo-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

@media (max-width: 820px) {
  .clock-promo-card { grid-template-columns: 1fr; padding: 20px 18px; }
  .clock-promo-visual { order: -1; }
}

@media (max-width: 760px) {
  .sf-results-grid { grid-template-columns: 1fr; }
  .sf-badge-local { margin-left: 0; }
  .ad-spotlight-card { padding: 20px 18px; }
}
