/* ==========================================
   CAMPAIGN POPUP STYLES
========================================== */

#campaign-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 1rem;
}
#campaign-popup.campaign-visible { display: flex; }

.cp-inner {
  position: relative;
  width: 100%;
  animation: cpFadeScale .35s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes cpFadeScale {
  from { opacity: 0; transform: scale(.88); }
  to   { opacity: 1; transform: scale(1); }
}

.cp-close {
  position: absolute;
  top: -12px; right: -12px;
  z-index: 10;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #374151;
  transition: background .2s, color .2s;
}
.cp-close:hover { background: #f3f4f6; color: #111; }

.cp-no-show-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  font-size: .8rem;
  color: #6b7280;
}
.cp-no-show-row input[type=checkbox] {
  width: 15px; height: 15px;
  accent-color: #ff5f00;
  cursor: pointer;
}
.cp-no-show-row label { cursor: pointer; user-select: none; }

/* ─── T1: Klassik ─── */
.cp-t1 {
  max-width: 460px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 64px -12px rgba(0,0,0,.18);
}
.cp-t1 .cp-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.cp-t1 .cp-img-placeholder { width: 100%; height: 140px; background: linear-gradient(135deg,#0a2a66 0%,#1a3a86 100%); }
.cp-t1 .cp-body { padding: 1.5rem 1.75rem; }
.cp-t1 .cp-title { font-size: 1.3rem; font-weight: 700; color: #1e293b; margin-bottom: .6rem; }
.cp-t1 .cp-desc  { font-size: .9rem; color: #64748b; line-height: 1.6; margin-bottom: 1.2rem; }
.cp-t1 .cp-btn   { display: inline-block; padding: .6rem 1.6rem; background: linear-gradient(135deg,#ff5f00 0%,#ff8c42 100%); color: #fff; border-radius: 50px; font-weight: 600; font-size: .9rem; text-decoration: none; transition: opacity .2s; }
.cp-t1 .cp-btn:hover { opacity: .88; }

/* ─── T2: Split Sol ─── */
.cp-t2 {
  max-width: 700px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 64px -12px rgba(0,0,0,.18);
  display: flex;
  min-height: 320px;
}
.cp-t2 .cp-side-img { width: 42%; flex-shrink: 0; object-fit: cover; display: block; }
.cp-t2 .cp-side-img-placeholder { width: 42%; flex-shrink: 0; background: linear-gradient(160deg,#0a2a66 0%,#1a3a86 100%); }
.cp-t2 .cp-body { flex: 1; padding: 2rem 1.75rem; display: flex; flex-direction: column; justify-content: center; }
.cp-t2 .cp-title { font-size: 1.3rem; font-weight: 700; color: #1e293b; margin-bottom: .7rem; }
.cp-t2 .cp-desc  { font-size: .88rem; color: #64748b; line-height: 1.6; margin-bottom: 1.2rem; }
.cp-t2 .cp-btn   { align-self: flex-start; padding: .55rem 1.5rem; background: linear-gradient(135deg,#ff5f00 0%,#ff8c42 100%); color: #fff; border-radius: 50px; font-weight: 600; font-size: .88rem; text-decoration: none; transition: opacity .2s; }
.cp-t2 .cp-btn:hover { opacity: .88; }

/* ─── T3: Ters Split ─── */
.cp-t3 {
  max-width: 700px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 64px -12px rgba(0,0,0,.18);
  display: flex;
  flex-direction: row-reverse;
  min-height: 320px;
}
.cp-t3 .cp-side-img { width: 42%; flex-shrink: 0; object-fit: cover; display: block; }
.cp-t3 .cp-side-img-placeholder { width: 42%; flex-shrink: 0; background: linear-gradient(160deg,#ff5f00 0%,#ff8c42 100%); }
.cp-t3 .cp-body { flex: 1; padding: 2rem 1.75rem; display: flex; flex-direction: column; justify-content: center; }
.cp-t3 .cp-title { font-size: 1.3rem; font-weight: 700; color: #1e293b; margin-bottom: .7rem; }
.cp-t3 .cp-desc  { font-size: .88rem; color: #64748b; line-height: 1.6; margin-bottom: 1.2rem; }
.cp-t3 .cp-btn   { align-self: flex-start; padding: .55rem 1.5rem; background: linear-gradient(135deg,#ff5f00 0%,#ff8c42 100%); color: #fff; border-radius: 50px; font-weight: 600; font-size: .88rem; text-decoration: none; transition: opacity .2s; }
.cp-t3 .cp-btn:hover { opacity: .88; }

/* ─── T4: Hero Fon ─── */
.cp-t4 {
  max-width: 560px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 64px -12px rgba(0,0,0,.18);
  position: relative;
  min-height: 340px;
}
.cp-t4 .cp-bg-img      { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cp-t4 .cp-bg-gradient { position: absolute; inset: 0; background: linear-gradient(135deg,#0a2a66 0%,#071d47 100%); }
.cp-t4 .cp-overlay     { position: absolute; inset: 0; background: linear-gradient(to top,rgba(0,0,0,.75) 0%,rgba(0,0,0,.2) 100%); }
.cp-t4 .cp-body        { position: relative; z-index: 2; padding: 3rem 2rem 2rem; display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 340px; justify-content: flex-end; }
.cp-t4 .cp-title { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: .7rem; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.cp-t4 .cp-desc  { font-size: .9rem; color: rgba(255,255,255,.85); line-height: 1.6; margin-bottom: 1.2rem; }
.cp-t4 .cp-btn   { padding: .65rem 2rem; background: linear-gradient(135deg,#ff5f00 0%,#ff8c42 100%); color: #fff; border-radius: 50px; font-weight: 700; font-size: .9rem; text-decoration: none; transition: opacity .2s; }
.cp-t4 .cp-btn:hover { opacity: .88; }
.cp-t4 .cp-close { top: 12px; right: 12px; }

/* ─── T5: Alt Panel ─── */
#campaign-popup.cp-align-bottom { align-items: flex-end; padding: 0; }
.cp-t5 {
  width: 100%; max-width: 100%;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(0,0,0,.18);
  animation: cpSlideUp .35s cubic-bezier(.34,1.4,.64,1) both;
}
@keyframes cpSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cp-t5 .cp-inner { animation: none; max-width: 720px; margin: 0 auto; }
.cp-t5 .cp-row   { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; }
.cp-t5 .cp-thumb             { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.cp-t5 .cp-thumb-placeholder { width: 72px; height: 72px; background: linear-gradient(135deg,#ff5f00 0%,#ff8c42 100%); border-radius: 10px; flex-shrink: 0; }
.cp-t5 .cp-content  { flex: 1; }
.cp-t5 .cp-title    { font-size: 1rem; font-weight: 700; color: #1e293b; margin-bottom: .3rem; }
.cp-t5 .cp-desc     { font-size: .82rem; color: #64748b; line-height: 1.5; }
.cp-t5 .cp-actions  { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.cp-t5 .cp-btn      { padding: .5rem 1.2rem; background: linear-gradient(135deg,#ff5f00 0%,#ff8c42 100%); color: #fff; border-radius: 50px; font-weight: 600; font-size: .82rem; text-decoration: none; white-space: nowrap; transition: opacity .2s; }
.cp-t5 .cp-btn:hover { opacity: .88; }
.cp-t5 .cp-no-show-row { padding: 0 1.5rem .75rem; margin-top: 0; }
.cp-t5 .cp-close { top: -14px; right: 10px; }

/* ─── T6: Yan Panel ─── */
#campaign-popup.cp-align-right { align-items: flex-end; justify-content: flex-end; padding: 1rem; }
.cp-t6 {
  max-width: 320px; width: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 64px -12px rgba(0,0,0,.18);
  animation: cpSlideRight .35s cubic-bezier(.34,1.4,.64,1) both;
}
@keyframes cpSlideRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.cp-t6 .cp-img             { width: 100%; height: 160px; object-fit: cover; display: block; }
.cp-t6 .cp-img-placeholder { width: 100%; height: 120px; background: linear-gradient(135deg,#0a2a66 0%,#1a3a86 100%); }
.cp-t6 .cp-body  { padding: 1.25rem 1.25rem 1rem; }
.cp-t6 .cp-title { font-size: 1.05rem; font-weight: 700; color: #1e293b; margin-bottom: .5rem; }
.cp-t6 .cp-desc  { font-size: .82rem; color: #64748b; line-height: 1.55; margin-bottom: 1rem; }
.cp-t6 .cp-btn   { display: block; text-align: center; padding: .55rem 1rem; background: linear-gradient(135deg,#ff5f00 0%,#ff8c42 100%); color: #fff; border-radius: 50px; font-weight: 600; font-size: .85rem; text-decoration: none; transition: opacity .2s; }
.cp-t6 .cp-btn:hover { opacity: .88; }

/* ─── T7: Minimal ─── */
.cp-t7 {
  max-width: 440px;
  background: linear-gradient(135deg,#0a2a66 0%,#071d47 100%);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 32px 64px -12px rgba(0,0,0,.18);
  text-align: center;
  color: #fff;
}
.cp-t7 .cp-badge { display: inline-block; background: linear-gradient(135deg,#ff5f00 0%,#ff8c42 100%); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .8rem; border-radius: 50px; margin-bottom: 1rem; }
.cp-t7 .cp-title { font-size: 1.6rem; font-weight: 800; margin-bottom: .75rem; color: #fff; }
.cp-t7 .cp-desc  { font-size: .9rem; color: rgba(255,255,255,.8); line-height: 1.6; margin-bottom: 1.5rem; }
.cp-t7 .cp-btn   { display: inline-block; padding: .65rem 2rem; background: linear-gradient(135deg,#ff5f00 0%,#ff8c42 100%); color: #fff; border-radius: 50px; font-weight: 700; font-size: .9rem; text-decoration: none; transition: opacity .2s; }
.cp-t7 .cp-btn:hover { opacity: .88; }
.cp-t7 .cp-no-show-row { justify-content: center; color: rgba(255,255,255,.6); }
.cp-t7 .cp-close { background: rgba(255,255,255,.15); color: #fff; }
.cp-t7 .cp-close:hover { background: rgba(255,255,255,.25); }
.cp-t7 .cp-t7-img {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.3);
  margin: 0 auto 1rem;
  display: block;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .cp-t2, .cp-t3 { flex-direction: column; min-height: auto; }
  .cp-t2 .cp-side-img, .cp-t3 .cp-side-img { width: 100%; height: 160px; }
  .cp-t2 .cp-side-img-placeholder, .cp-t3 .cp-side-img-placeholder { width: 100%; height: 120px; }
  .cp-t5 .cp-row { flex-wrap: wrap; }
  .cp-t5 .cp-actions { flex-direction: row; width: 100%; }
  .cp-t6 { max-width: 100%; }
  #campaign-popup.cp-align-right { justify-content: center; }
}
