/* ==========================================================================
   👷 ŞEHİR — İNŞAAT EKİBİ (3 kademe · gerçek para · IAP sipariş akışı)
   Premium Offer Design (Docs/PremiumOfferDesign.md) — transferFlashOffer.css'in .ccrew- ön ekli kopyası.
   Lazy: cityCampus.js sekme ilk açıldığında yükler. Pencere kuralı (AGENTS.md §4.2): kendi içinde kayar.
   ========================================================================== */
.ccrew-view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  top: 112px; /* below the floating header row: scrolled cards never slide under it */
  padding: 6px clamp(14px, 3%, 48px) 30px;
  background: radial-gradient(ellipse at 50% 0%, #1e293b 0%, #0b1526 70%);
}
.city-panel-open .ccrew-view {
  padding-right: calc(clamp(260px, 30%, 440px) + 30px);
}
.ccrew-inner {
  max-width: 1180px;
  margin: 0 auto;
}

/* ---- hero ---- */
.ccrew-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 22px;
  border-radius: 16px;
  background: linear-gradient(120deg, #1e1b4b 0%, #4c1d95 45%, #9d174d 100%);
  border: 1.5px solid rgba(244, 114, 182, 0.6);
  box-shadow: 0 12px 32px rgba(76, 29, 149, 0.35);
}
.ccrew-hero-glow {
  position: absolute;
  inset: -40% 40% -40% -10%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.35) 0%, transparent 60%);
  pointer-events: none;
  animation: ccrewGlowDrift 6s ease-in-out infinite alternate;
}
@keyframes ccrewGlowDrift {
  from { transform: translateX(0); }
  to { transform: translateX(18%); }
}
.ccrew-hero-left {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ccrew-hero-kicker {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fbbf24;
}
.ccrew-hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}
.ccrew-hero-sub {
  font-size: 13.5px;
  font-weight: 600;
  color: #f5d0fe;
}
.ccrew-hero-timer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(9, 9, 20, 0.55);
  border: 1.5px solid #f472b6;
  border-radius: 12px;
  padding: 8px 18px;
}
.ccrew-timer-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #fbcfe8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.ccrew-timer-clock {
  font-family: 'Courier New', monospace;
  font-size: 26px;
  font-weight: 900;
  color: #fde047;
  letter-spacing: 2px;
  text-shadow: 0 0 16px rgba(253, 224, 71, 0.7);
}

/* ---- cards ---- */
.ccrew-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
  align-items: end;
}
.ccrew-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  color: #f8fafc;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ccrew-card:hover {
  transform: translateY(-4px);
}
.ccrew-card.normal {
  background: linear-gradient(165deg, #0f172a 0%, #0c4a6e 100%);
  border: 2px solid #38bdf8;
  box-shadow: 0 10px 26px rgba(12, 74, 110, 0.4);
}
.ccrew-card.strong {
  background: linear-gradient(165deg, #1e1b4b 0%, #6d28d9 100%);
  border: 2px solid #a78bfa;
  box-shadow: 0 12px 32px rgba(109, 40, 217, 0.45);
  padding-top: 30px;
}
.ccrew-card.super {
  background: linear-gradient(165deg, #2a0a18 0%, #701a75 55%, #be185d 100%);
  border: 3px solid #fbbf24;
  box-shadow: 0 14px 36px rgba(190, 24, 93, 0.5), 0 0 28px rgba(251, 191, 36, 0.4);
  padding-top: 30px;
  transform: scale(1.06);
  z-index: 1;
}
.ccrew-card.super:hover {
  transform: scale(1.06) translateY(-4px);
}
.ccrew-card-shine {
  position: absolute;
  top: -60%;
  left: -60%;
  width: 60%;
  height: 220%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
  transform: translateX(0) rotate(18deg);
  animation: ccrewShine 4.5s ease-in-out infinite;
  pointer-events: none;
}
/* composited: only transform / opacity animate (a box-shadow / filter / left animation repainted every frame) */
@keyframes ccrewShine {
  0%, 60% { transform: translateX(0) rotate(18deg); }
  100% { transform: translateX(333.33%) rotate(18deg); }
}
.ccrew-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: linear-gradient(90deg, #c4b5fd, #8b5cf6);
  color: #1e1b4b;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 4px 18px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45);
}
.ccrew-ribbon.super {
  background: linear-gradient(90deg, #fde047, #f59e0b);
  font-size: 13.5px;
  padding: 5px 22px;
}
/* composited: only transform / opacity animate (a box-shadow / filter / left animation repainted every frame) */
.ccrew-ribbon.super::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 4px 22px rgba(253, 224, 71, 0.9);
  opacity: 0;
  pointer-events: none;
  animation: ccrewRibbonGlowGlow 1.8s ease-in-out infinite;
}
@keyframes ccrewRibbonGlowGlow {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
.ccrew-badge {
  align-self: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.ccrew-title {
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
}
.ccrew-workers {
  text-align: center;
  font-size: 22px;
  letter-spacing: 2px;
  line-height: 1;
}

/* big value ring: the build time reduction */
.ccrew-ring {
  align-self: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
}
.ccrew-ring.normal {
  background: radial-gradient(circle at 30% 30%, #7dd3fc, #0369a1);
  border: 3px solid #e0f2fe;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}
.ccrew-ring.strong {
  background: radial-gradient(circle at 30% 30%, #fde68a, #b45309);
  border: 3px solid #fef3c7;
  color: #1e1b4b;
  box-shadow: 0 0 26px rgba(251, 191, 36, 0.7);
}
.ccrew-ring.super {
  background: radial-gradient(circle at 30% 30%, #f5d0fe, #a21caf);
  border: 3px solid #fdf4ff;
  box-shadow: 0 0 30px rgba(232, 121, 249, 0.8);
  position: relative;
}
/* composited: only transform / opacity animate (a box-shadow / filter / left animation repainted every frame) */
.ccrew-ring.super::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 38px rgba(232, 121, 249, 1);
  opacity: 0;
  pointer-events: none;
  animation: ccrewPulseGlow 2.2s ease-in-out infinite;
}
@keyframes ccrewPulseGlow {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
.ccrew-ring-num {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}
.ccrew-ring-cap {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  opacity: 0.85;
}

/* the player's own next upgrade: current ➜ new */
.ccrew-target {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.8);
  margin-bottom: -4px;
}
.ccrew-target strong {
  color: #fde047;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
}
.ccrew-gain {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 8px 12px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 900;
}
.ccrew-gain-old {
  font-size: 18px;
  color: #fca5a5;
}
.ccrew-gain-arrow {
  color: rgba(255, 255, 255, 0.6);
}
.ccrew-gain-new {
  font-size: 19px;
  color: #86efac;
}
.ccrew-gain-chip {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 14px;
}
.ccrew-bonus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  color: #1e1b4b;
  background: linear-gradient(90deg, #fde047, #fbbf24);
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.45);
}
.ccrew-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.92);
}
.ccrew-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 10px;
}
.ccrew-value-row strong {
  color: #86efac;
}
.ccrew-price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 900;
  line-height: 1;
}
.ccrew-price-num {
  font-size: 40px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.ccrew-price-cur {
  font-size: 22px;
  color: #fde047;
  margin-top: 4px;
}
.ccrew-price-free {
  font-size: 30px;
  color: #7dd3fc;
}
.ccrew-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.ccrew-btn:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.ccrew-btn.strong {
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
  color: #1e1b4b;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.6);
}
.ccrew-btn.super {
  background: linear-gradient(135deg, #f0abfc 0%, #c026d3 100%);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(192, 38, 211, 0.55);
}
.ccrew-btn.active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  cursor: default;
}
.ccrew-btn:disabled {
  cursor: default;
}
.ccrew-btn.muted {
  background: #334155;
  color: #cbd5e1;
}
.ccrew-active-note {
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #86efac;
  margin-top: -4px;
}
.ccrew-blocked-note {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 4px 8px;
  margin-top: -4px;
}

.ccrew-trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #475569;
}

@container game (max-width: 900px) {
  .ccrew-view { top: 134px; padding-top: 6px; }
  .ccrew-grid { gap: 10px; }
  .ccrew-card { padding: 16px 10px 12px; gap: 8px; }
  .ccrew-card.super { transform: none; }
  .ccrew-ring { width: 78px; height: 78px; }
  .ccrew-ring-num { font-size: 26px; }
  .ccrew-price-num { font-size: 32px; }
  .ccrew-perks { font-size: 12px; }
}
