
.scv-tg-wrap, .scv-tg-wrap *, .scv-tg-wrap *::before, .scv-tg-wrap *::after {
  box-sizing: border-box;
}
.scv-tg-wrap {
  --tg-forest: #163325;
  --tg-forest-2: #244B38;
  --tg-teal: #1D7A8C;
  --tg-coral: #E86A42;
  --tg-border: #DCE5D8;
  --tg-bg: #FFFEF9;
  width: 100%;
  margin: 0 auto;
  font-family: inherit;
}
.scv-tg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 40px;
  padding: 16px 18px 22px;
  background: #FFFFFF;
  border: 1px solid var(--tg-border);
  border-radius: 16px;
}
.scv-tg-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.scv-tg-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #FFFFFF;
  color: #294134;
  border: 1px solid var(--tg-border);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.scv-tg-tab:hover {
  border-color: var(--tg-forest-2);
  color: var(--tg-forest);
}
.scv-tg-tab.is-active {
  background: var(--tg-forest);
  color: #FFFFFF;
  border-color: var(--tg-forest);
}
.scv-tg-count {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(22, 51, 37, 0.08);
  color: inherit;
}
.scv-tg-tab.is-active .scv-tg-count {
  background: rgba(255, 255, 255, 0.22);
}
.scv-tg-upload-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--tg-coral);
  color: #FFFFFF !important;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(232, 106, 66, 0.24);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.scv-tg-upload-pill:hover {
  transform: translateY(-1px);
  filter: brightness(0.95);
}
.scv-tg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 52px;
  width: 100%;
}
.scv-tg-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--tg-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.scv-tg-card:hover {
  transform: translateY(-4px);
  border-color: var(--tg-forest-2);
  box-shadow: 0 16px 34px rgba(18, 42, 30, 0.12);
}
.scv-tg-card.is-filter-hidden,
.scv-tg-card.is-paged-hidden {
  display: none !important;
}
.scv-tg-preview {
  position: relative;
  aspect-ratio: 3 / 3.15;
  background: #EDF2EC;
  padding: 22px 22px 0;
  border-bottom: 1px solid var(--tg-border);
  overflow: hidden;
}
.scv-tg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 6px;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}
.scv-tg-badge-ats {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: #0F766E;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.25);
}
.scv-tg-zoom-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(22, 51, 37, 0.18);
  background: rgba(255, 255, 255, 0.94);
  color: var(--tg-forest);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, background 0.15s ease;
}
.scv-tg-zoom-btn:hover {
  transform: scale(1.08);
  background: #FFFFFF;
}
.scv-tg-colors {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  width: fit-content;
  cursor: help;
}
.scv-tg-colors::after {
  content: attr(data-tip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  background: #163325;
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 10;
}
.scv-tg-colors:hover::after,
.scv-tg-colors:focus-within::after {
  opacity: 1;
  transform: translateY(0);
}
.scv-tg-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  display: inline-block;
  flex-shrink: 0;
}
.scv-tg-swatch-plus {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px dashed #64748B;
  background: #F8FAFC;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.scv-tg-info {
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  background: #FFFFFF;
}
.scv-tg-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--tg-forest);
  line-height: 1.25;
}
.scv-tg-tagline {
  font-size: 0.84rem;
  color: #496053;
  line-height: 1.45;
}
.scv-tg-use-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  background: #F2F7F3;
  border-top: 1px solid var(--tg-border);
  color: var(--tg-forest) !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.18s ease, color 0.18s ease;
}
.scv-tg-card:hover .scv-tg-use-bar,
.scv-tg-use-bar:hover {
  background: var(--tg-forest);
  color: #FFFFFF !important;
}
.scv-tg-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}
.scv-tg-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 320px;
  padding: 10px 12px 10px 24px;
  border-radius: 999px;
  border: none;
  background: #F39B7A;
  color: #163325;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 6px rgba(243, 155, 122, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.scv-tg-more-btn:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}
.scv-tg-more-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0B0F0D;
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.scv-tg-more-btn[hidden] {
  display: none;
}
.scv-tg-meta {
  font-size: 0.85rem;
  color: #496053;
  font-weight: 500;
}
.scv-tg-cta-box {
  margin-top: 34px;
  padding: 32px 34px;
  border-radius: 20px;
  background: linear-gradient(135deg, #10251C 0%, #1B3B2D 100%);
  color: #FFFFFF;
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  align-items: center;
  gap: 28px;
  box-shadow: 0 18px 42px rgba(16, 37, 28, 0.2);
  overflow: hidden;
}
.scv-tg-cta-copy {
  min-width: 0;
}
.scv-tg-cta-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #B7E4C7;
  margin-bottom: 8px;
}
.scv-tg-cta-title {
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.28;
  color: #FFFFFF;
  margin-bottom: 8px;
}
.scv-tg-cta-sub {
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}
.scv-tg-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.scv-tg-cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px 8px 22px;
  border-radius: 999px;
  background: #F39B7A;
  color: #163325 !important;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 0 0 5px rgba(243, 155, 122, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.scv-tg-cta-pill:hover {
  transform: translateY(-1px);
  filter: brightness(0.97);
}
.scv-tg-cta-pill-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0B0F0D;
  color: #FFFFFF;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.scv-tg-cta-sec {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.15s ease;
}
.scv-tg-cta-sec:hover {
  background: rgba(255, 255, 255, 0.16);
}
.scv-tg-deck {
  position: relative;
  height: 232px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scv-tg-cv {
  position: absolute;
  width: 158px;
  height: 204px;
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 36% 64%;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.scv-tg-cv.c4 {
  transform: translate(-54px, 12px) rotate(-10deg) scale(0.9);
  opacity: 0.68;
  z-index: 1;
}
.scv-tg-cv.c3 {
  transform: translate(-26px, 6px) rotate(-5deg) scale(0.94);
  opacity: 0.84;
  z-index: 2;
}
.scv-tg-cv.c2 {
  transform: translate(38px, 8px) rotate(6deg) scale(0.93);
  opacity: 0.86;
  z-index: 2;
}
.scv-tg-cv.c1 {
  position: relative;
  z-index: 4;
  transform: translate(4px, -4px);
  animation: scvTgDeckFloat 4.8s infinite ease-in-out;
}
.scv-tg-cv-side {
  padding: 10px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: #1D7A8C;
}
.scv-tg-cv.c1 .scv-tg-cv-side {
  animation: scvTgAccentShift 8s infinite ease-in-out;
}
.scv-tg-cv.c2 .scv-tg-cv-side { background: #244B38; }
.scv-tg-cv.c3 .scv-tg-cv-side { background: #E86A42; }
.scv-tg-cv.c4 .scv-tg-cv-side { background: #1E293B; }
.scv-tg-cv-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFFEF9 0%, #D9E6DD 100%);
  border: 2px solid rgba(255, 255, 255, 0.85);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.scv-tg-cv-avatar::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #355847;
}
.scv-tg-cv-avatar::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 12px;
  border-radius: 10px 10px 0 0;
  background: #355847;
}
.scv-tg-cv-sline {
  width: 100%;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.55);
}
.scv-tg-cv-sline.short { width: 70%; align-self: flex-start; }
.scv-tg-cv-main {
  padding: 11px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #FFFEF9;
}
.scv-tg-cv-name {
  height: 9px;
  width: 78%;
  border-radius: 4px;
  background: #163325;
}
.scv-tg-cv-role {
  height: 5px;
  width: 52%;
  border-radius: 3px;
  background: #1D7A8C;
  margin-bottom: 4px;
}
.scv-tg-cv.c1 .scv-tg-cv-role {
  animation: scvTgAccentShift 8s infinite ease-in-out;
}
.scv-tg-cv-bar {
  height: 5px;
  width: 100%;
  border-radius: 3px;
  background: #DCE5D8;
}
.scv-tg-cv-bar.w85 { width: 85%; }
.scv-tg-cv-bar.w65 { width: 65%; }
.scv-tg-cv-bar.w92 { width: 92%; }
.scv-tg-cv-bar.head {
  height: 6px;
  width: 48%;
  margin-top: 4px;
  background: #94A89B;
}
.scv-tg-deck-dots {
  position: absolute;
  bottom: 4px;
  z-index: 5;
  background: #FFFFFF;
  padding: 6px 11px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.scv-tg-deck-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  animation: scvTgDotPop 8s infinite;
}
.scv-tg-deck-dot.d1 { background: #1D7A8C; animation-delay: 0s; }
.scv-tg-deck-dot.d2 { background: #244B38; animation-delay: 2s; }
.scv-tg-deck-dot.d3 { background: #E86A42; animation-delay: 4s; }
.scv-tg-deck-dot.d4 { background: #1E293B; animation-delay: 6s; }
@keyframes scvTgDeckFloat {
  0%, 100% { transform: translate(4px, -4px) rotate(0deg); }
  50% { transform: translate(4px, -11px) rotate(1deg); }
}
@keyframes scvTgAccentShift {
  0%, 22% { background: #1D7A8C; }
  25%, 47% { background: #244B38; }
  50%, 72% { background: #E86A42; }
  75%, 97% { background: #1E293B; }
  100% { background: #1D7A8C; }
}
@keyframes scvTgDotPop {
  0%, 22% { transform: scale(1.32); box-shadow: 0 0 0 2px #163325; }
  25%, 100% { transform: scale(1); box-shadow: none; }
}
@media (max-width: 900px) {
  .scv-tg-cta-box {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }
}
.scv-tg-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(12, 24, 18, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.scv-tg-modal[hidden] {
  display: none;
}
.scv-tg-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: 92vh;
  background: #FFFEF9;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.scv-tg-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--tg-border);
  background: #FFFFFF;
}
.scv-tg-modal-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--tg-forest);
}
.scv-tg-modal-sub {
  font-size: 0.84rem;
  color: #496053;
}
.scv-tg-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--tg-border);
  background: #FFFFFF;
  color: var(--tg-forest);
  font-size: 1.15rem;
  cursor: pointer;
}
.scv-tg-modal-body {
  padding: 18px;
  background: #EDF2EC;
  overflow-y: auto;
  display: flex;
  justify-content: center;
}
.scv-tg-modal-body img {
  max-width: 100%;
  max-height: 62vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  background: #FFFFFF;
}
.scv-tg-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--tg-border);
  background: #FFFFFF;
}
.scv-tg-modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  background: var(--tg-coral);
  color: #FFFFFF !important;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(232, 106, 66, 0.28);
}
@media (max-width: 900px) {
  .scv-tg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .scv-tg-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .scv-tg-toolbar {
    padding: 14px 12px 18px;
    margin-bottom: 28px;
  }
  .scv-tg-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    width: 100%;
  }
  .scv-tg-tab {
    flex-shrink: 0;
  }
  .scv-tg-upload-pill {
    width: 100%;
    justify-content: center;
  }
  .scv-tg-more-btn {
    min-width: 100%;
    padding: 10px 12px 10px 18px;
  }
  .scv-tg-modal-cta {
    width: 100% !important;
  }
}
/* Compact 4-card preview strip (template sub-hubs) */
.scv-ar-mini-gal{margin:24px 0;padding:20px;border:1px solid #DCE5D8;border-radius:16px;background:#FFFEF9;direction:rtl}
.scv-ar-mini-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.scv-ar-mini-title{font-size:1.1rem;font-weight:800;color:#16344C;margin:0}
.scv-ar-mini-all{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border-radius:10px;background:#268599;color:#fff!important;font-size:.9rem;font-weight:700;text-decoration:none}
.scv-ar-mini-all:hover{background:#16344C}
.scv-ar-mini-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
@media(max-width:860px){.scv-ar-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.scv-ar-mini-card{display:flex;flex-direction:column;background:#fff;border:1px solid #E5ECE6;border-radius:12px;overflow:hidden;text-decoration:none;color:inherit;transition:transform .15s ease,box-shadow .15s ease}
.scv-ar-mini-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(22,52,76,.1)}
.scv-ar-mini-card img{width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;display:block;background:#F3F6F4}
.scv-ar-mini-cap{padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:.86rem;font-weight:700;color:#16344C}
.scv-ar-mini-ats{font-size:.72rem;font-weight:700;color:#0F766E;background:#E6F4F1;padding:2px 8px;border-radius:999px}
/* Ultra-light editorial link banner */
.scv-ar-ed-strip{margin:22px 0;padding:16px 20px;border:1px solid #DCE5D8;border-right:4px solid #268599;border-radius:12px;background:#F8FAF8;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;direction:rtl}
.scv-ar-ed-strip p{margin:0;color:#16344C;font-size:.96rem;font-weight:600}
.scv-ar-ed-strip a{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border-radius:9px;background:#E8885E;color:#fff!important;font-weight:700;font-size:.9rem;text-decoration:none;white-space:nowrap}
