/* ═══════════════════════════════════════════════════════════
     RESPONSIVE TYPOGRAPHY SYSTEM
     Using CSS clamp() for fluid, proportional scaling
  ═══════════════════════════════════════════════════════════ */

:root {
  /* Font Size Scale */
  --fs-xs: clamp(0.625rem, 1.5vw, 0.75rem);
  --fs-sm: clamp(0.75rem, 2vw, 0.875rem);
  --fs-base: clamp(0.875rem, 2.2vw, 1rem);
  --fs-md: clamp(1rem, 2.5vw, 1.125rem);
  --fs-lg: clamp(1.1rem, 3vw, 1.3rem);
  --fs-xl: clamp(1.25rem, 3.5vw, 1.5rem);
  --fs-2xl: clamp(1.4rem, 4vw, 1.8rem);
  --fs-3xl: clamp(1.8rem, 5vw, 2.2rem);
  --fs-4xl: clamp(2.2rem, 6vw, 2.8rem);

  /* Spacing Scale */
  --sp-xs: clamp(0.25rem, 1vw, 0.5rem);
  --sp-sm: clamp(0.5rem, 1.5vw, 0.75rem);
  --sp-md: clamp(1rem, 2vw, 1.25rem);
  --sp-lg: clamp(1.5rem, 3vw, 2rem);
  --sp-xl: clamp(2rem, 4vw, 2.5rem);
  --sp-2xl: clamp(2.5rem, 5vw, 3.5rem);
}

html {
  overflow-y: scroll;
}

/* ─── Events Section ─── */
.sfx-events-section {
  position: relative;
  padding: var(--sp-2xl) 0;
  background-image:
    linear-gradient(
      to bottom,
      #000 0%,
      rgba(0, 0, 0, 0.75) 15%,
      rgba(0, 0, 0, 0.75) 85%,
      #000 100%
    ),
    url("../img/story-fabric.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.sfx-events-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10rem 1rem;
  position: relative;
  z-index: 5;
}

.sfx-events-header {
  text-align: center;
  margin-bottom: var(--sp-2xl);
}

.sfx-overline {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #d4af37;
  font-weight: 700;
  margin: 0;
}

.sfx-events-title {
  font-family: "Playfair Display", serif;
  font-size: var(--fs-3xl);
  color: #f1f5f9;
  margin-top: var(--sp-sm);
  margin-bottom: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ─── Event Block Grid ─── */
.sfx-events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.sfx-event-block {
  margin-bottom: 0;
  position: relative;
  background: linear-gradient(145deg, rgba(16, 24, 46, 0.6), rgba(11, 17, 33, 0.8));
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sfx-event-block:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ─── Event Info Card ─── */
.sfx-event-infocard {
  background: transparent;
  border: none;
  padding: 0 0 16px 0;
  margin-bottom: var(--sp-sm);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  box-shadow: none;
}

.sfx-event-name-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.sfx-event-name-md {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: #f8fafc;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.sfx-event-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.sfx-meta-item {
  color: #f1f5f9;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  background: rgba(212, 175, 55, 0.15);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.sfx-meta-item:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

.sfx-meta-item i {
  color: #d4af37;
  font-size: clamp(0.7rem, 1.8vw, 0.85rem);
}

.sfx-meta-dot {
  display: none;
}

.sfx-multi-badge {
  display: none;
}

/* ─── Floating Day Badge ─── */
.sfx-day-badge {
  position: absolute;
  top: -12px;
  right: 32px;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sfx-day-badge-multi {
  background: linear-gradient(135deg, #d4af37, #f97316);
  color: #020617;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sfx-day-badge-single {
  background: linear-gradient(135deg, #38bdf8, #3b82f6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ─── Timebar ─── */
.sfx-event-timebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

.sfx-timebar-col {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 4px;
}

.sfx-timebar-label {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.sfx-timebar-value {
  font-family: "Open Sans", sans-serif;
  font-size: 0.9rem;
  color: #e2e8f0;
  font-weight: 600;
  line-height: 1.2;
}

.sfx-timebar-sep {
  display: block;
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
}

/* ─── Countdown ─── */
.sfx-cd-mini {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.sfx-cd-item {
  text-align: center;
}

.sfx-cd-n {
  display: block;
  font-family: "Open Sans", sans-serif;
  font-size: 0.95rem;
  color: #e2e8f0;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 2px;
}

.sfx-cd-item small {
  font-size: 0.6rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
}

.sfx-cd-sep {
  display: none;
}

/* ─── Tier Toggle Button ─── */
.sfx-tier-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-sm) var(--sp-md);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  color: #d4af37;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: var(--sp-md);
}

.sfx-tier-toggle:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
}

.sfx-tier-toggle-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sfx-tier-toggle-text i {
  font-size: clamp(0.7rem, 1.8vw, 0.8rem);
}

.sfx-tier-toggle-icon {
  font-size: clamp(0.6rem, 1.5vw, 0.75rem);
  transition: transform 0.3s ease;
}

.sfx-tier-toggle.active .sfx-tier-toggle-icon {
  transform: rotate(180deg);
}

/* ─── Tier Collapse ─── */
.sfx-tier-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.sfx-tier-collapse.active {
  max-height: 3000px;
}

/* ─── Tier Grid Layout ─── */
.sfx-tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

/* ═══════════════════════════════════════════════════════════
     CLOUD DECORATIVE ELEMENTS - SMART DETECTION
     JavaScript mengatur visibility berdasarkan device capabilities
  ═══════════════════════════════════════════════════════════ */

.sfx-clouds-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.sfx-cloud {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  --scale: 0.67;
  transform: scale(var(--scale));
  animation:
    cloud-fade-in 1.5s ease forwards,
    cloud-bob ease-in-out infinite;
}

.sfx-cloud-1 {
  top: 3%;
  right: -15%;
  width: 763px;
  height: 320px;
  background-image: url("../img/clouds/awan1.png");
  animation-delay: 0.5s, 2s;
  --bob-y: -15px;
  --bob-duration: 7s;
}

.sfx-cloud-2 {
  bottom: -8%;
  right: 1%;
  width: 284px;
  height: 210px;
  background-image: url("../img/clouds/awan2.png");
  animation-delay: 1.5s, 3.2s;
  --bob-y: 12px;
  --bob-duration: 6s;
}

.sfx-cloud-3 {
  bottom: 5%;
  left: -8%;
  width: 470px;
  height: 232px;
  background-image: url("../img/clouds/awan3.png");
  animation-delay: 1.2s, 2.8s;
  --bob-y: -18px;
  --bob-duration: 9s;
}

.sfx-cloud-4 {
  top: 10%;
  left: 1%;
  width: 351px;
  height: 173px;
  background-image: url("../img/clouds/awan4.png");
  animation-delay: 0.8s, 2.3s;
  --bob-y: 10px;
  --bob-duration: 8s;
}

.sfx-cloud-5 {
  bottom: -10%;
  left: 45%;
  margin-left: -137px;
  width: 274px;
  height: 212px;
  background-image: url("../img/clouds/awan5.1.png");
  animation-delay: 1.8s, 3.5s;
  --bob-y: -8px;
  --bob-duration: 10s;
}

@keyframes cloud-fade-in {
  0% {
    opacity: 0;
    transform: scale(var(--scale)) translateY(20px);
  }
  100% {
    opacity: 0.85;
    transform: scale(var(--scale)) translateY(0);
  }
}

@keyframes cloud-bob {
  0%,
  100% {
    transform: scale(var(--scale)) translateY(0);
  }
  50% {
    transform: scale(var(--scale)) translateY(var(--bob-y));
  }
}

/* Hidden state - applied by JavaScript */
.sfx-clouds-container.hidden {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
     TIER CARD - RESPONSIVE LAYOUT
  ═══════════════════════════════════════════════════════════ */

.trcrd-tier-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.8));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.trcrd-tier-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15);
  transform: translateY(-4px);
}

/* ─── LEFT GROUP: Nama & Deskripsi ─── */
.trcrd-group-left {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  flex: 1;
  min-width: 0;
  text-align: left;
}

.trcrd-tier-name {
  font-family: "Playfair Display", serif;
  font-size: var(--fs-lg);
  color: #f8fafc;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trcrd-tier-desc {
  font-size: clamp(0.75rem, 2vw, 0.82rem);
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Syarat & Ketentuan Button ─── */
.trcrd-terms-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #d4af37;
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.trcrd-terms-link:hover {
  color: #e5c96a;
  gap: 8px;
}

.trcrd-terms-link i {
  font-size: clamp(0.6rem, 1.5vw, 0.7rem);
}

/* ─── RIGHT GROUP: Harga & Button ─── */
.trcrd-group-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-md);
  flex-shrink: 0;
}

/* Pricing Block */
.trcrd-tier-pricing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.trcrd-tier-price-old {
  font-size: clamp(0.65rem, 1.8vw, 0.75rem);
  color: #64748b;
  text-decoration: line-through;
  font-weight: 500;
}

.trcrd-tier-price-now {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  color: #d4af37;
  font-weight: 700;
  line-height: 1;
}

.trcrd-tier-per-day {
  font-size: clamp(0.6rem, 1.5vw, 0.7rem);
  color: #64748b;
  font-weight: 500;
}

/* ─── CTA Button ─── */
.trcrd-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: transparent;
  border: 1.5px solid #d4af37;
  color: #d4af37;
  text-decoration: none;
  border-radius: 50px;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.3s ease;
  min-width: 100px;
}

.trcrd-cta-link:hover {
  background: linear-gradient(135deg, #d4af37, #f97316);
  color: #020617;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* ─── Sold Out State ─── */
.trcrd-tier-soldout {
  opacity: 0.55;
  filter: grayscale(0.8);
}

.trcrd-cta-soldout {
  background: transparent !important;
  border-color: #475569 !important;
  color: #475569 !important;
  cursor: not-allowed;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
     INSTAGRAM FEED SECTION
  ═══════════════════════════════════════════════════════════ */

.sfx-ig-section {
  padding: var(--sp-xl) 0;
}

.sfx-ig-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

.sfx-ig-header {
  text-align: center;
  margin-bottom: var(--sp-2xl);
}

.sfx-ig-title {
  font-family: "Playfair Display", serif;
  font-size: var(--fs-3xl);
  color: #f1f5f9;
  margin-top: var(--sp-sm);
  margin-bottom: 0;
}

.sfx-ig-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--sp-md);
  padding: var(--sp-sm) var(--sp-md);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 50px;
  color: #d4af37;
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all 0.3s ease;
}

.sfx-ig-account:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
}

/* ─── Grid ─── */
.sfx-ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  padding: 0;
}

.sfx-ig-card {
  width: 100%;
  background: #0f0f0f;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: var(--sp-sm);
  transition: all 0.3s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.sfx-ig-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

.sfx-ig-card .video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.sfx-ig-card .video-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sfx-ig-card .video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.3s ease;
}

.sfx-ig-card .video-overlay:hover {
  background: rgba(0, 0, 0, 0.4);
}

.sfx-ig-card .play-button {
  width: clamp(40px, 8vw, 50px);
  height: clamp(40px, 8vw, 50px);
  background: rgba(212, 175, 55, 0.9);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.sfx-ig-card .video-overlay:hover .play-button {
  transform: scale(1.1);
  background: #e5c96a;
}

.sfx-ig-card .play-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #0f0f0f;
}

.sfx-ig-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-md);
  height: clamp(150px, 40vw, 250px);
  color: #475569;
}

.sfx-ig-placeholder i {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
}

.sfx-ig-placeholder span {
  font-size: var(--fs-sm);
}

/* ═══════════════════════════════════════════════════════════
     MODAL STYLES
  ═══════════════════════════════════════════════════════════ */

.trcrd-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.trcrd-modal.active {
  display: flex;
}

.trcrd-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.trcrd-modal-content {
  position: relative;
  z-index: 1001;
  width: 90%;
  max-width: 900px;
  height: 65vh;
  background: #0f0f0f;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
}

.trcrd-modal-header {
  padding: var(--sp-md) var(--sp-lg);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  flex-shrink: 0;
}

.trcrd-modal-header h2 {
  font-family: "Playfair Display", serif;
  font-size: var(--fs-xl);
  color: #f1f5f9;
  margin: 0;
}

.trcrd-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1002;
  width: 36px;
  height: 36px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  color: #d4af37;
  font-size: var(--fs-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.trcrd-modal-close:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.4);
}

.trcrd-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
}

/* Typography styles for dynamically loaded T&C content */
.trcrd-modal-body p {
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.trcrd-modal-body ul, 
.trcrd-modal-body ol {
  color: #cbd5e1;
  padding-left: 24px;
  margin-bottom: 16px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.trcrd-modal-body li {
  margin-bottom: 8px;
}

.trcrd-modal-body h1, 
.trcrd-modal-body h2, 
.trcrd-modal-body h3, 
.trcrd-modal-body h4 {
  color: #f8fafc;
  margin-top: 24px;
  margin-bottom: 12px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

.trcrd-modal-body h3 {
  font-size: 1.3rem;
}

.trcrd-modal-body strong, 
.trcrd-modal-body b {
  color: #d4af37;
  font-weight: 600;
}

.trcrd-modal-body a {
  color: #d4af37;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.trcrd-modal-body a:hover {
  color: #f97316;
}


/* Custom Scrollbar */
.trcrd-modal-body::-webkit-scrollbar {
  width: 10px;
}

.trcrd-modal-body::-webkit-scrollbar-track {
  background: rgba(212, 175, 55, 0.05);
  border-radius: 10px;
}

.trcrd-modal-body::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.trcrd-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.5);
}

.trcrd-modal-body {
  scrollbar-color: rgba(212, 175, 55, 0.3) rgba(212, 175, 55, 0.05);
  scrollbar-width: thin;
}

.trcrd-modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-md);
  height: 100%;
  color: #d4af37;
  font-size: var(--fs-base);
}

.trcrd-modal-loading i {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

/* ═══════════════════════════════════════════════════════════
     RESPONSIVE BREAKPOINTS
  ═══════════════════════════════════════════════════════════ */

/* Large Tablets: 2 Columns Events */
@media (max-width: 1024px) {
  .sfx-events-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-md);
  }
  .sfx-events-inner {
    padding: 2rem 1rem;
  }
  .sfx-ig-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-md);
  }
}

/* Tablet: 1 Column Events */
@media (max-width: 768px) {
  .sfx-events-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-sm);
  }
  .sfx-events-inner {
    padding: 2rem 1rem;
  }
  /* Mobile Timebar Custom Grid Layout */
  .sfx-event-timebar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    padding-top: 0;
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .sfx-timebar-col {
    padding: 12px 0;
    min-width: auto;
    align-items: flex-start;
  }
  
  /* Show Mulai Column */
  .sfx-timebar-col:nth-child(3) {
    align-items: flex-end;
    text-align: right;
  }

  /* First Separator (Vertical Line) */
  .sfx-timebar-sep:nth-child(2) {
    display: block;
    width: 1px;
    height: auto;
    margin: 12px 16px;
    background: rgba(255, 255, 255, 0.15);
  }

  /* Second Separator (Hidden) */
  .sfx-timebar-sep:nth-child(4) {
    display: none;
  }

  /* Countdown Row */
  .sfx-timebar-countdown {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
    padding: 16px 0;
    margin-top: 0;
  }
  
  .sfx-timebar-countdown .sfx-cd-mini {
    justify-content: center;
    width: 100%;
  }

  .trcrd-tier-card {
    padding: var(--sp-md);
    gap: var(--sp-md);
    flex-direction: column;
    align-items: flex-start;
  }

  .trcrd-group-right {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
    margin-top: 4px;
  }

  .trcrd-tier-pricing {
    align-items: flex-start;
    text-align: left;
  }

  .trcrd-cta-link {
    width: auto;
    padding: 10px 24px;
  }

  .trcrd-modal-content {
    width: 95%;
    max-width: 800px;
    height: 65vh;
  }

  .sfx-ig-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-md);
  }
}

/* Mobile: Single Column */
@media (max-width: 640px) {
  .sfx-events-section {
    padding: var(--sp-lg) 0;
  }
  .sfx-events-inner {
    padding: 1rem 1rem;
  }
  .sfx-events-header {
    margin-bottom: var(--sp-xl);
  }

  .sfx-events-title {
    margin-top: var(--sp-xs);
  }

  .sfx-day-badge {
    right: 16px;
    top: -10px;
    padding: 2px 10px;
    font-size: 0.65rem;
  }

  /* Event Grid */
  .sfx-events-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .sfx-event-block {
    padding: var(--sp-sm);
  }

  .sfx-event-infocard {
    padding: var(--sp-xs) var(--sp-sm);
    margin-bottom: var(--sp-sm);
    gap: var(--sp-xs);
  }

  /* Tier Cards */
  .trcrd-tier-card {
    padding: var(--sp-md) var(--sp-sm);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-md);
  }

  .trcrd-group-left {
    width: 100%;
  }

  .trcrd-group-right {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
    margin-top: 4px;
  }

  .trcrd-tier-pricing {
    align-items: flex-start;
    text-align: left;
  }

  .trcrd-cta-link {
    width: auto;
    padding: 10px 24px;
  }

  /* Instagram Grid */
  .sfx-ig-section {
    padding: var(--sp-lg) 0;
  }

  .sfx-ig-header {
    margin-bottom: var(--sp-xl);
  }

  .sfx-ig-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-sm);
  }

  .sfx-ig-card {
    padding: var(--sp-xs);
  }

  /* Modal Mobile */
  .trcrd-modal-content {
    width: 95%;
    height: 70vh;
  }

  .trcrd-modal-header {
    padding: var(--sp-md) var(--sp-md);
  }

  .trcrd-modal-body {
    padding: var(--sp-md);
  }
}

/* Extra Small Mobile */
@media (max-width: 380px) {
  .trcrd-tier-card {
    padding: var(--sp-sm) var(--sp-xs);
    gap: var(--sp-sm);
  }

  .trcrd-cta-link {
    padding: var(--sp-xs) var(--sp-sm);
  }

  .sfx-ig-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-xs);
  }

  .trcrd-modal-content {
    width: 98%;
    height: 75vh;
  }

  .trcrd-modal-header h2 {
    font-size: var(--fs-lg);
  }
}
