/* Brand List Container */
.brand-list {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.brand-list,
.brand-list *,
.brand-list *::before,
.brand-list *::after {
  box-sizing: border-box;
}

.brand-list strong {
  font-weight: 700;
}

/* Brand Card - default template */
#brand-card-default.brand-card {
  display: grid;
  grid-template-areas: "intro description benefits rating payment cta";
  grid-template-columns: 120px 1.5fr 1.2fr 0.8fr 1fr 180px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  gap: 20px;
  box-sizing: border-box;
  margin: 20px 0;
  align-items: center;
  position: relative;
}

#brand-card-default .list-number {
  position: absolute;
  top: -10px;
  left: -10px;
  background-color: #ff5a7a;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

/* Grid Areas */
#brand-card-default .brand-intro { 
  grid-area: intro;
}

#brand-card-default .brand-description { 
  grid-area: description;
}

#brand-card-default .brand-cta-block { 
  grid-area: benefits;
}

#brand-card-default .brand-rating { 
  grid-area: rating;
}

#brand-card-default .brand-payment { 
  grid-area: payment;
}

#brand-card-default .brand-cta { 
  grid-area: cta;
}

/* Logo Section */
#brand-card-default .brand-logo {
  width: 100%;
  height: 80px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

#brand-card-default .brand-intro img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Description/Offer */
#brand-card-default .brand-description p {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  padding: 0;
  margin: 0;
  line-height: 1.3;
}

/* Benefits List */
#brand-card-default .brand-cta-block ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#brand-card-default .brand-cta-block li {
  font-size: 13px;
  color: #2d7a3d;
  display: flex;
  align-items: center;
  line-height: 1.4;
}

#brand-card-default .brand-cta-block li::before {
  content: "✓";
  margin-right: 8px;
  color: #2d7a3d;
  font-weight: bold;
  font-size: 14px;
}

/* Rating Section */
#brand-card-default .brand-rating h3 {
  margin: 0 0 5px 0;
  font-size: 16px;
  color: var(--brand-title, #333);
  font-weight: 700;
}

#brand-card-default .brand-rating p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

#brand-card-default .brand-rating p strong {
  color: #333;
}

/* Payment Methods */
#brand-card-default .brand-payment h3 {
  margin: 0 0 5px 0;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

#brand-card-default .brand-payment p {
  margin: 0;
  font-size: 13px;
  color: #666;
}

/* CTA Button */
#brand-card-default .brand-cta {
  text-align: center;
}

#brand-card-default .brand-link {
  display: inline-block;
  width: 100%;
  max-width: 160px;
  font-size: 16px;
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out;
  text-align: center;
  background: var(--bg-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#brand-card-default .brand-link:hover {
  box-shadow: 0 3px 6px rgba(30, 29, 29, 0.4);
  background: var(--hover-color);
}

/* No Brands Message */
#brand-card-default .no-brands-message {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 16px;
}

/* RESPONSIVE TABLET */
@media (max-width: 968px) {
  #brand-card-default.brand-card {
    grid-template-areas:
      "intro description benefits"
      "rating payment cta";
    grid-template-columns: 100px 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px 15px;
    padding: 15px;
  }

  #brand-card-default .brand-intro {
    grid-row: 1 / 2;
    align-self: start;
  }

  #brand-card-default .brand-cta {
    grid-row: 2 / 3;
    align-self: start;
    justify-self: end;
  }

  #brand-card-default .brand-description p {
    font-size: 16px;
  }

  #brand-card-default .brand-cta-block {
    justify-self: end;
  }

  #brand-card-default .brand-cta-block li {
    font-size: 12px;
  }
}

/* RESPONSIVE MOBILE */
@media (max-width: 640px) {
  #brand-card-default .brand-list {
    padding: 0 10px;
  }

  #brand-card-default.brand-card {
    grid-template-areas:
      "intro description"
      "benefits benefits"
      "rating payment"
      "cta cta";
    grid-template-columns: 100px 1fr;
    grid-template-rows: auto auto auto auto;
    padding: 15px;
    gap: 12px;
    margin-bottom: 12px;
  }

  /* Center logo */
  #brand-card-default .brand-intro {
    text-align: center;
  }

  #brand-card-default .brand-logo {
    height: 70px;
    padding: 8px;
  }

  /* Center description */
  #brand-card-default .brand-description {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  #brand-card-default .brand-description p {
    font-size: 15px;
  }

  /* Center benefits */
  #brand-card-default .brand-cta-block {
    text-align: center;
    justify-self: unset;
  }

  #brand-card-default .brand-cta-block ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    justify-items: self-start;
  }

  #brand-card-default .brand-cta-block li {
    font-size: 12px;
    justify-content: center;
  }

  /* Center rating and payment */
  #brand-card-default .brand-rating,
  #brand-card-default .brand-payment {
    text-align: center;
  }

  #brand-card-default .brand-rating h3,
  #brand-card-default .brand-payment h3 {
    font-size: 14px;
  }

  #brand-card-default .brand-rating p,
  #brand-card-default .brand-payment p {
    font-size: 12px;
  }

  /* CTA full width */

  #brand-card-default .brand-cta {
    grid-row: 4 / 4;
    justify-self: unset;
  }

  #brand-card-default .brand-link {
    max-width: 100%;
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
  }
}

/* RESPONSIVE SMALL MOBILE (480px and below) */
@media (max-width: 480px) {
  #brand-card-default .brand-list {
    padding: 0 8px;
  }

  #brand-card-default.brand-card {
    grid-template-areas:
      "intro"
      "description"
      "benefits"
      "rating"
      "payment"
      "cta";
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
    margin-bottom: 10px;
  }

  /* Center everything on small mobile */
  #brand-card-default .brand-intro {
    text-align: center;
  }

  #brand-card-default .brand-logo {
    margin: 0 auto;
    max-width: 140px;
    height: 80px;
  }

  #brand-card-default .brand-description {
    text-align: center;
  }

  #brand-card-default .brand-description p {
    font-size: 16px;
  }

  #brand-card-default .brand-cta-block {
    text-align: center;
  }

  #brand-card-default .brand-cta-block ul {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  #brand-card-default .brand-cta-block li {
    font-size: 12px;
  }

  #brand-card-default .brand-rating,
  #brand-card-default .brand-payment {
    text-align: center;
  }

  #brand-card-default .brand-rating h3,
  #brand-card-default .brand-payment h3 {
    font-size: 15px;
  }

  #brand-card-default .brand-rating p,
  #brand-card-default .brand-payment p {
    font-size: 13px;
  }

  #brand-card-default .brand-cta {
    grid-row: 6 / 6;
    text-align: center;
    margin-top: 8px;
  }

  #brand-card-default .brand-link {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
  }
}

/* Brand Card - Promo template */

#brand-card-promo.brand-card {
    display: grid;
    grid-template-areas:
      "intro offer benefits cta"
      "payment payment payment payment";
    grid-template-columns: 120px 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 15px 15px 0 15px;
    margin: 15px 0;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
}

#brand-card-promo.brand-card .brand-intro {
   grid-area: intro;
}

#brand-card-promo.brand-card .brand-logo {
   height: 90px;
   width: 120px;
   display: flex;
   overflow: hidden;
}

#brand-card-promo.brand-card .brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

#brand-card-promo.brand-card .brand-offer {
    grid-area: offer;
}

#brand-card-promo.brand-card .brand-offer h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--brand-title, #333);
}

#brand-card-promo.brand-card .brand-offer h3 {
    font-size: 24px;
    line-height: 26px;
    font-weight: 600;
    margin: 5px 0;
}

#brand-card-promo.brand-card .brand-offer strong {
  line-height: 0;
}

#brand-card-promo.brand-card .brand-offer .offer-rating {
  display: flex;
  gap: 2px;
  align-items: center;
  margin: 5px 0;
}

#brand-card-promo.brand-card .brand-offer .offer-rating svg {
  width: 15px;
  height: 15px;
  fill: #f5a623;
}

#brand-card-promo.brand-card .payment {
  grid-area: payment;
  display: flex;
  align-items: center;
  padding: 5px 0;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  border-top: 1px solid #e0e0e0;
}

#brand-card-promo.brand-card .payment h4 {
    font-size: 16px;
    line-height: 26px;
    font-weight: 600;
    margin: 0;
}

#brand-card-promo.brand-card .payment p {
  margin: 0;
}

#brand-card-promo .benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#brand-card-promo .benefits li {
  font-size: 16px;
  color: #2d7a3d;
  display: flex;
  align-items: center;
  line-height: 1.4;
}

#brand-card-promo .benefits li::before {
  content: "✓";
  margin-right: 5px;
  color: #2d7a3d;
  font-weight: bold;
  font-size: 18px;
}

#brand-card-promo .brand-cta {
  text-align: center;
}

#brand-card-promo .brand-link {
  display: inline-block;
  width: 100%;
  max-width: 160px;
  font-size: 16px;
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 2px;
  font-weight: 600;
  background: var(--bg-color);
  text-decoration: none !important;
  transition: all 0.2s ease-in-out;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#brand-card-promo .brand-link:hover {
 transform: translateY(-2px);
 background: var(--hover-color);
}

#brand-card-promo .payment h4 {
  font-size: 14px;
}

#brand-card-promo .payment p {
  font-size: 14px;
  color: #666;
}

/* PROMO TEMPLATE - RESPONSIVE TABLET (968px and below) */
@media (max-width: 968px) {
  #brand-card-promo.brand-card {
    grid-template-areas:
      "intro offer cta"
      "benefits benefits payment";
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
    padding: 15px;
  }

  #brand-card-promo .brand-logo {
    height: 80px;
    width: 100px;
  }

  #brand-card-promo .brand-offer h2 {
    font-size: 16px;
  }

  #brand-card-promo .brand-offer h3 {
    font-size: 20px;
    line-height: 22px;
  }

  #brand-card-promo .benefits li {
    font-size: 14px;
  }

  #brand-card-promo .payment {
    padding: 10px 0;
    border-top: unset !important;
  }

  #brand-card-promo .payment h4 {
    font-size: 14px;
  }

  #brand-card-promo .brand-cta {
    grid-area: cta;
  }

  #brand-card-promo .brand-link {
    max-width: 140px;
    padding: 10px 16px;
    font-size: 15px;
  }
}

/* PROMO TEMPLATE - RESPONSIVE MOBILE (640px and below) */
@media (max-width: 640px) {
  #brand-card-promo.brand-card {
    grid-template-areas:
      "intro"
      "offer"
      "benefits"
      "cta"
      "payment";
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
    padding: 12px;
    gap: 12px;
    margin-bottom: 12px;
  }

  #brand-card-promo .brand-logo {
    height: 70px;
    width: 180px;
    justify-self: center;
  }

  #brand-card-promo .brand-offer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #brand-card-promo .brand-offer h2 {
    font-size: 14px;
  }

  #brand-card-promo .brand-offer h3 {
    font-size: 18px;
    line-height: 20px;
    margin: 3px 0;
  }

  #brand-card-promo .benefits {
    text-align: center;
  }

  #brand-card-promo .benefits {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-items: center;
  }

  #brand-card-promo .benefits li {
    font-size: 13px;
  }

  #brand-card-promo .benefits li::before {
    font-size: 16px;
  }

  #brand-card-promo .brand-cta {
    text-align: center;
  }

  #brand-card-promo .brand-link {
    max-width: 100%;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
  }

  #brand-card-promo .payment {
    padding: 10px 0;
    gap: 8px;
    border-top: 1px solid #e0e0e0;
  }

  #brand-card-promo .payment h4 {
    font-size: 13px;
    line-height: 20px;
  }
}

/* PROMO TEMPLATE - RESPONSIVE SMALL MOBILE (480px and below) */
@media (max-width: 480px) {
  #brand-card-promo.brand-card {
    grid-template-areas:
      "intro"
      "offer"
      "benefits"
      "cta"
      "payment";
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
    margin-bottom: 10px;
  }

  #brand-card-promo .brand-intro {
    text-align: center;
  }

  #brand-card-promo .brand-logo {
    margin: 0 auto;
    height: 80px;
    width: 120px;
  }

  #brand-card-promo .brand-offer {
    text-align: center;
  }

  #brand-card-promo .brand-offer h2 {
    font-size: 15px;
  }

  #brand-card-promo .brand-offer h3 {
    font-size: 20px;
    line-height: 22px;
  }

  #brand-card-promo .benefits {
    text-align: center;
  }

  #brand-card-promo .benefits {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  #brand-card-promo .benefits li {
    font-size: 14px;
    justify-content: center;
  }

  #brand-card-promo .brand-cta {
    text-align: center;
    margin-top: 8px;
  }

  #brand-card-promo .brand-link {
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 700;
  }

  #brand-card-promo .payment {
    padding: 12px 0;
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }

  #brand-card-promo .payment h4 {
    font-size: 14px;
    margin: 0;
  }
}


/* FLIP TEMPLATE - STYLES */

#brand-card-flip.brand-card {
    perspective: 1000px;
    width: 100%;
    max-width: 800px;
    height: 350px;
    margin: 20px auto;
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
    transform-style: preserve-3d;
}

#brand-card-flip.brand-card.flipped {
    transform: rotateY(180deg);
}

/* Front and Back Card Faces */
#brand-card-flip .front,
#brand-card-flip .details {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: #fff;
    overflow: hidden;
}

#brand-card-flip .front {
    transform: rotateY(0deg);
    display: grid;
    grid-template-areas:
        "header header header header"
        "logo offer cta cta";
    grid-template-columns: 200px 1fr 200px 200px;
    grid-template-rows: auto 1fr;
    z-index: 2;
}

#brand-card-flip .details {
    transform: rotateY(180deg);
    display: grid;
    grid-template-areas:
        "header header"
        "benefits payment"
        "showless showless";
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto 1fr auto;
}

/* Header with Brand Name */
#brand-card-flip .header {
    grid-area: header;
    background: var(--bg-header-color, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    padding: 16px 24px;
    text-align: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

#brand-card-flip .header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text, #fff);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

/* Front - Logo Section (Left Side) */
#brand-card-flip .front .brand-intro {
    grid-area: logo;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

#brand-card-flip .front .brand-logo {
    width: 160px;
    height: 160px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

#brand-card-flip .front .brand-logo:hover {
    transform: scale(1.05);
}

#brand-card-flip .front .brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Front - Offer Section (Center) */
#brand-card-flip .front .brand-offer h3 {
  color:var(--color-offer, #fff);
}

#brand-card-flip .front .brand-offer {
    grid-area: offer;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#brand-card-flip .front .brand-offer .offer-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

#brand-card-flip .front .brand-offer .offer-rating svg {
    width: 20px;
    height: 20px;
}

#brand-card-flip .front .brand-offer .offer-rating .star.filled {
    fill: #ffc107;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

#brand-card-flip .front .brand-offer .offer-rating .star.empty {
    fill: #e0e0e0;
}

#brand-card-flip .front .brand-offer h3.offer {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

/* Front - CTA Section (Right Side) */
#brand-card-flip .front .brand-cta {
    grid-area: cta;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    background: #f8f9fa;
    border-left: 1px solid #e9ecef;
}

#brand-card-flip .brand-link {
    display: block;
    width: 100%;
    max-width: 180px;
    padding: 14px 24px;
    background: var(--bg-color, #6dbb7e);
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#brand-card-flip .brand-link:hover {
    background: var(--hover-color, #5aa86b);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#brand-card-flip .read-more {
    text-align: center;
}

#brand-card-flip .read-more a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#brand-card-flip .read-more a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#brand-card-flip .read-more svg {
    width: 24px;
    height: 24px;
}

/* Back - Benefits Section (Left Side) */
#brand-card-flip .details .benefits {
    grid-area: benefits;
    list-style: none;
    padding: 30px 24px;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    overflow-y: auto;
    align-content: start;
}

#brand-card-flip .details .benefits li {
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    padding-left: 0;
}

#brand-card-flip .details .benefits li::before {
    content: "✓";
    margin-right: 8px;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

/* Back - Payment Section (Right Side) */
#brand-card-flip .details .payment {
    grid-area: payment;
    padding: 30px 24px;
    background: #fff;
    border-left: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#brand-card-flip .details .payment h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#brand-card-flip .details .payment p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
}

/* Back - Show Less Button */
#brand-card-flip .show-less {
    grid-area: showless;
    padding: 16px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

#brand-card-flip .show-less a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#brand-card-flip .show-less a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#brand-card-flip .show-less svg {
    width: 24px;
    height: 24px;
}

/* FLIP TEMPLATE - RESPONSIVE TABLET (768px and below) */
@media (max-width: 968px) {
    #brand-card-flip.brand-card {
        max-width: 600px;
        height: 400px;
    }

    #brand-card-flip .front {
        grid-template-areas:
            "header header"
            "logo offer"
            "cta cta";
        grid-template-columns: 180px 1fr;
        grid-template-rows: auto 1fr auto;
    }

    #brand-card-flip .front .brand-logo {
        width: 140px;
        height: 140px;
        padding: 16px;
    }

    #brand-card-flip .front .brand-offer {
        padding: 20px;
        border-left: none;
    }

    #brand-card-flip .front .brand-offer h3.offer {
        font-size: 18px;
    }

    #brand-card-flip .front .brand-cta {
        padding: 20px;
        flex-direction: row;
        justify-content: space-around;
        border-left: none;
        border-top: 1px solid #e9ecef;
    }

    #brand-card-flip .brand-link {
        max-width: 200px;
        padding: 12px 20px;
        font-size: 15px;
    }

    #brand-card-flip .details {
        grid-template-areas:
            "header header"
            "benefits payment"
            "showless showless";
        grid-template-columns: 2fr 1fr;
    }

    #brand-card-flip .details .benefits {
        padding: 24px 20px;
        gap: 10px 14px;
    }

    #brand-card-flip .details .benefits li {
        font-size: 13px;
    }

    #brand-card-flip .details .payment {
        padding: 24px 20px;
    }
}

/* FLIP TEMPLATE - RESPONSIVE MOBILE (480px and below) - VERTICAL */
@media (max-width: 768px) {
    #brand-card-flip.brand-card {
        max-width: 340px;
        height: 500px;
        margin: 16px auto;
    }

    #brand-card-flip .front {
        display: flex;
        flex-direction: column;
    }

    #brand-card-flip .header {
        padding: 16px;
    }

    #brand-card-flip .header h2 {
        font-size: 18px;
    }

    #brand-card-flip .front .brand-intro {
        flex: 1;
        padding: 24px 16px;
    }

    #brand-card-flip .front .brand-logo {
        width: 140px;
        height: 140px;
        padding: 14px;
    }

    #brand-card-flip .front .brand-offer {
        padding: 16px;
        border-left: none;
        border-top: 1px solid #e9ecef;
    }

    #brand-card-flip .front .brand-offer .offer-rating svg {
        width: 18px;
        height: 18px;
    }

    #brand-card-flip .front .brand-offer h3.offer {
        font-size: 16px;
    }

    #brand-card-flip .front .brand-cta {
        padding: 16px;
        gap: 10px;
        border-left: none;
        border-top: 1px solid #e9ecef;
    }

    #brand-card-flip .brand-link {
        max-width: 100%;
        padding: 12px 18px;
        font-size: 14px;
    }

    #brand-card-flip .details {
        display: flex;
        flex-direction: column;
    }

    #brand-card-flip .details .benefits {
        flex: 1;
        padding: 20px 16px;
        gap: 10px;
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    #brand-card-flip .details .benefits li {
        font-size: 13px;
    }

    #brand-card-flip .details .benefits li::before {
        font-size: 16px;
    }

    #brand-card-flip .details .payment {
        padding: 16px;
        border-left: none;
        border-top: 1px solid #e9ecef;
    }

    #brand-card-flip .details .payment h4 {
        font-size: 13px;
    }

    #brand-card-flip .details .payment p {
        font-size: 13px;
    }

    #brand-card-flip .show-less {
        padding: 12px;
    }

    #brand-card-flip .read-more a,
    #brand-card-flip .show-less a {
        width: 36px;
        height: 36px;
    }

    #brand-card-flip .read-more svg,
    #brand-card-flip .show-less svg {
        width: 20px;
        height: 20px;
    }
}

/* FLIP TEMPLATE - RESPONSIVE SMALL MOBILE (360px and below) */
@media (max-width: 360px) {
    #brand-card-flip.brand-card {
        max-width: 310px;
        height: 480px;
    }

    #brand-card-flip .header h2 {
        font-size: 16px;
    }

    #brand-card-flip .front .brand-logo {
        width: 120px;
        height: 120px;
        padding: 12px;
    }

    #brand-card-flip .front .brand-offer h3.offer {
        font-size: 15px;
    }

    #brand-card-flip .brand-link {
        padding: 10px 16px;
        font-size: 13px;
    }

    #brand-card-flip .details .benefits {
        padding: 16px 14px;
    }

    #brand-card-flip .details .benefits li {
        font-size: 12px;
    }
}

/* Smooth animations */
#brand-card-flip.brand-card * {
    transition: all 0.3s ease;
}

/* Hover effects for desktop */
@media (min-width: 969px) {
    #brand-card-flip.brand-card:hover {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    }
}

/* Black TEMPLATE - STYLES */

#brand-card-black.brand-card {
    display: grid;
    grid-template-areas: "position logo offer rating payment cta";
    grid-template-columns: 60px 140px 2fr 1fr 1.5fr 180px;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #FF6B35;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 16px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#brand-card-black.brand-card:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #1a1a1a 0%, #4d2010 100%);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.3);
}

/* Position Badge */
#brand-card-black .position-badge {
    grid-area: position;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* Logo Section */
#brand-card-black .brand-logo {
    grid-area: logo;
    width: 140px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

#brand-card-black .brand-logo:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 184, 0, 0.3);
}

#brand-card-black .brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Offer Section */
#brand-card-black .brand-offer-section {
    grid-area: offer;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#brand-card-black .best-offer-badge {
    display: inline-block;
    align-self: flex-start;
    background: linear-gradient(90deg, #FFB800 0%, #F7931E 100%);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#brand-card-black .offer-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

#brand-card-black .offer-terms {
    margin: 0;
    font-size: 12px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

/* Rating Section */
#brand-card-black .brand-rating-section {
    grid-area: rating;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

#brand-card-black .rating-score {
    font-size: 28px;
    font-weight: 700;
    color: #FFB800;
    line-height: 1;
}

#brand-card-black .rating-stars {
    display: flex;
    gap: 2px;
}

#brand-card-black .rating-stars svg {
    width: 18px;
    height: 18px;
}

#brand-card-black .rating-stars svg.star.filled {
    width: 18px;
    height: 18px;
    fill: #FFB800;
}

#brand-card-black .rating-stars svg path {
  fill: #FFB800;
}

#brand-card-black .rating-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

/* Payment Section */
#brand-card-black .brand-payment-section {
    grid-area: payment;
}

#brand-card-black .payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

#brand-card-black .payment-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    transition: all 0.2s ease;
}

#brand-card-black .payment-badge:hover {
    background: rgba(255, 184, 0, 0.15);
    border-color: rgba(255, 184, 0, 0.4);
}

#brand-card-black .payment-more {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* CTA Section */
#brand-card-black .brand-cta-section {
    grid-area: cta;
    display: flex;
    justify-content: end;
}

#brand-card-black .brand-cta-button {
    display: block;
    width: 100%;
    max-width: 160px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #FFB800 0%, #F7931E 100%);
    color: #000 !important;
    text-align: center;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(255, 184, 0, 0.4);
    transition: all 0.3s ease;
    border: none;
}

#brand-card-black .brand-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.6);
    background: linear-gradient(135deg, #F7931E 0%, #FFB800 100%);
}

/* BLACK TEMPLATE - RESPONSIVE TABLET (968px and below) */
@media (max-width: 968px) {
    #brand-card-black.brand-card {
        grid-template-areas:
            "position logo offer rating"
            "payment payment cta cta";
        grid-template-columns: 48px 120px 1fr 140px;
        grid-template-rows: auto auto;
        gap: 16px;
        padding: 16px;
    }

    #brand-card-black .position-badge {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    #brand-card-black .brand-logo {
        width: 120px;
        height: 70px;
    }

    #brand-card-black .offer-title {
        font-size: 16px;
    }

    #brand-card-black .rating-score {
        font-size: 24px;
    }

    #brand-card-black .rating-stars svg {
        width: 16px;
        height: 16px;
    }

    #brand-card-black .brand-cta-button {
        max-width: 140px;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* BLACK TEMPLATE - RESPONSIVE MOBILE (640px and below) */
@media (max-width: 640px) {
    #brand-card-black.brand-card {
        grid-template-areas:
            "position logo"
            "offer offer"
            "payment payment"
            "rating rating"
            "cta cta";
        grid-template-columns: 48px 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 12px;
        padding: 16px;
    }

    #brand-card-black .position-badge {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    #brand-card-black .brand-logo {
        width: 100%;
        height: 60px;
        justify-self: center;
    }

    #brand-card-black .brand-offer-section {
        text-align: center;
    }

    #brand-card-black .best-offer-badge {
        align-self: center;
    }

    #brand-card-black .offer-title {
        font-size: 15px;
    }

    #brand-card-black .offer-terms {
        font-size: 11px;
    }

    #brand-card-black .brand-rating-section {
        justify-self: center;
    }

    #brand-card-black .rating-score {
        font-size: 22px;
    }

    #brand-card-black .brand-payment-section {
        justify-self: center;
    }

    #brand-card-black .payment-methods {
        justify-content: center;
    }

    #brand-card-black .payment-badge {
        padding: 5px 10px;
        font-size: 12px;
    }

    #brand-card-black .brand-cta-section {
        grid-column: 1 / -1;
    }

    #brand-card-black .brand-cta-button {
        max-width: 100%;
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* BLACK TEMPLATE - RESPONSIVE SMALL MOBILE (480px and below) */
@media (max-width: 480px) {
    #brand-card-black.brand-card {
        grid-template-areas:
            "position"
            "logo"
            "offer"
            "rating"
            "payment"
            "cta";
        grid-template-columns: 1fr;
        padding: 14px;
        gap: 14px;
    }

    #brand-card-black .position-badge {
        width: 40px;
        height: 40px;
        font-size: 20px;
        justify-self: center;
    }

    #brand-card-black .brand-logo {
        width: 100%;
        max-width: 180px;
        height: 70px;
        margin: 0 auto;
    }

    #brand-card-black .brand-offer-section,
    #brand-card-black .brand-rating-section,
    #brand-card-black .brand-payment-section {
        text-align: center;
        justify-self: center;
    }

    #brand-card-black .offer-title {
        font-size: 16px;
    }

    #brand-card-black .rating-score {
        font-size: 26px;
    }

    #brand-card-black .rating-stars svg {
        width: 20px;
        height: 20px;
    }

    #brand-card-black .payment-methods {
        flex-direction: column;
        align-items: center;
    }

    #brand-card-black .brand-cta-button {
        padding: 16px 32px;
        font-size: 16px;
    }
}

/* COMPACT TEMPLATE - MODERN CARD STYLE */

#brand-card-compact.brand-card {
    display: grid;
    grid-template-areas: "position logo content cta";
    grid-template-columns: 40px 180px 2fr 240px;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    margin: 16px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

#brand-card-compact.brand-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
    transform: translateY(-2px);
}

/* Position Badge */
#brand-card-compact .compact-position-badge {
    grid-area: position;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Logo Section */
#brand-card-compact .compact-logo-section {
    grid-area: logo;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#brand-card-compact .compact-logo {
    width: 180px;
    height: 100px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

#brand-card-compact .compact-logo:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#brand-card-compact .compact-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#brand-card-compact .compact-country-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
}

#brand-card-compact .flag-icon {
    font-size: 16px;
}

/* Content Section */
#brand-card-compact .compact-content-section {
    grid-area: content;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#brand-card-compact .compact-offer-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #5b21b6;
    line-height: 1.3;
}

#brand-card-compact .compact-bonus-badge {
    display: inline-block;
    align-self: flex-start;
    background: #000;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
}

#brand-card-compact .compact-terms {
    margin: 4px 0;
}

#brand-card-compact .terms-text {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

#brand-card-compact .compact-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
}

#brand-card-compact .compact-benefits li {
    font-size: 13px;
    color: #374151;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

#brand-card-compact .compact-benefits li::before {
    content: "✓";
    margin-right: 6px;
    color: #10b981;
    font-weight: bold;
    font-size: 16px;
}

#brand-card-compact .compact-info-row {
    display: flex;
    gap: 20px;
    margin-top: 4px;
}

#brand-card-compact .compact-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

#brand-card-compact .info-icon {
    width: 18px;
    height: 18px;
    color: #6b7280;
}

#brand-card-compact .info-label {
    color: #6b7280;
    font-weight: 500;
}

#brand-card-compact .info-value {
    color: #111827;
    font-weight: 600;
}

/* CTA Section */
#brand-card-compact .compact-cta-section {
    grid-area: cta;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

#brand-card-compact .compact-cta-button {
    display: block;
    width: 100%;
    max-width: 220px;
    padding: 16px 28px;
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-transform: capitalize;
    box-shadow: 0 4px 14px rgba(91, 33, 182, 0.4);
    transition: all 0.3s ease;
    border: none;
}

#brand-card-compact .compact-cta-button:hover {
    background-color: var(--hover-color, #6d28d9) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 33, 182, 0.5);
}

#brand-card-compact .compact-review-link {
    font-size: 14px;
    color: #5b21b6;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

#brand-card-compact .compact-review-link:hover {
    color: #6d28d9;
    text-decoration: underline;
}

/* COMPACT TEMPLATE - RESPONSIVE TABLET (968px and below) */
@media (max-width: 968px) {
    #brand-card-compact.brand-card {
        grid-template-areas:
            "position logo content"
            "cta cta cta";
        grid-template-columns: 36px 160px 1fr;
        grid-template-rows: auto auto;
        gap: 16px;
        padding: 16px;
    }

    #brand-card-compact .compact-logo {
        width: 160px;
        height: 90px;
        padding: 14px;
    }

    #brand-card-compact .compact-offer-title {
        font-size: 20px;
    }

    #brand-card-compact .compact-info-row {
        flex-direction: column;
        gap: 8px;
    }

    #brand-card-compact .compact-cta-section {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    #brand-card-compact .compact-cta-button {
        max-width: 200px;
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* COMPACT TEMPLATE - RESPONSIVE MOBILE (640px and below) */
@media (max-width: 640px) {
    #brand-card-compact.brand-card {
        grid-template-areas:
            "position logo"
            "content content"
            "cta cta";
        grid-template-columns: 36px 1fr;
        grid-template-rows: auto auto auto;
        gap: 14px;
        padding: 14px;
    }

    #brand-card-compact .compact-position-badge {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    #brand-card-compact .compact-logo-section {
        justify-self: center;
    }

    #brand-card-compact .compact-logo {
        width: 140px;
        height: 80px;
    }

    #brand-card-compact .compact-country-badge {
        font-size: 10px;
        padding: 5px 10px;
    }

    #brand-card-compact .compact-content-section {
        text-align: center;
        align-items: center;
    }

    #brand-card-compact .compact-offer-title {
        font-size: 18px;
    }

    #brand-card-compact .compact-bonus-badge {
        font-size: 13px;
        padding: 5px 12px;
        align-self: center;
    }

    #brand-card-compact .terms-text {
        font-size: 12px;
    }

    #brand-card-compact .compact-benefits {
        align-items: center;
    }

    #brand-card-compact .compact-benefits li {
        font-size: 12px;
    }

    #brand-card-compact .compact-info-row {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }

    #brand-card-compact .compact-info-item {
        font-size: 12px;
    }

    #brand-card-compact .info-icon {
        width: 16px;
        height: 16px;
    }

    #brand-card-compact .compact-cta-section {
        flex-direction: column;
        width: 100%;
    }

    #brand-card-compact .compact-cta-button {
        max-width: 100%;
        padding: 16px 24px;
        font-size: 16px;
    }

    #brand-card-compact .compact-review-link {
        font-size: 13px;
    }
}

/* COMPACT TEMPLATE - RESPONSIVE SMALL MOBILE (480px and below) */
@media (max-width: 480px) {
    #brand-card-compact.brand-card {
        grid-template-areas:
            "position"
            "logo"
            "content"
            "cta";
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 12px;
    }

    #brand-card-compact .compact-position-badge {
        justify-self: center;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    #brand-card-compact .compact-logo-section {
        width: 100%;
    }

    #brand-card-compact .compact-logo {
        width: 100%;
        max-width: 160px;
        height: 90px;
        margin: 0 auto;
    }

    #brand-card-compact .compact-country-badge {
        margin: 0 auto;
    }

    #brand-card-compact .compact-offer-title {
        font-size: 19px;
    }

    #brand-card-compact .compact-info-row {
        flex-direction: column;
        gap: 8px;
    }

    #brand-card-compact .compact-cta-button {
        padding: 18px 32px;
        font-size: 17px;
    }
}

/* HORIZONTAL TEMPLATE - MODERN GRADIENT CARD */

#brand-card-horizontal.brand-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

#brand-card-horizontal.brand-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Header Section */
#brand-card-horizontal .horizontal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
}

#brand-card-horizontal .horizontal-logo-wrapper {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #f9fafb;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
}

#brand-card-horizontal .horizontal-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#brand-card-horizontal .horizontal-title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#brand-card-horizontal .horizontal-brand-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
}

#brand-card-horizontal .horizontal-rating-stars {
    display: flex;
    align-items: center;
    gap: 6px;
}

#brand-card-horizontal .horizontal-rating-stars svg {
    width: 16px;
    height: 16px;
}


#brand-card-horizontal .horizontal-rating-stars svg.star.filled {
  fill: #ffb800;
}

#brand-card-horizontal .horizontal-rating-text {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-left: 2px;
}

#brand-card-horizontal .horizontal-review-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.2s ease;
    border-radius: 6px;
}

#brand-card-horizontal .horizontal-review-arrow:hover {
    background: #f3f4f6;
    color: #6b7280;
}

/* Offer Section */
#brand-card-horizontal .horizontal-offer-section {
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--offer-bg, #993366) 0%, var(--offer-bg, #993366) 100%);
    text-align: center;
}

#brand-card-horizontal .horizontal-offer-text {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    font-style: italic;
}

/* CTA Section */
#brand-card-horizontal .horizontal-cta-section {
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--border-bg, #e8b4d8) 0%, var(--border-bg, #f5d9ea) 100%);
    text-align: center;
}

#brand-card-horizontal .horizontal-cta-button {
    display: inline-block;
    width: 100%;
    max-width: 400px;
    padding: 16px 32px;
    background: var(--button-bg, #fff);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-style: italic;
}

#brand-card-horizontal .horizontal-cta-button:hover {
    background: var(--hover-color, #f3f4f6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Info Bar */
#brand-card-horizontal .horizontal-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    gap: 16px;
    flex-wrap: wrap;
}

#brand-card-horizontal .horizontal-popularity {
    display: flex;
    align-items: center;
    gap: 10px;
}

#brand-card-horizontal .info-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

#brand-card-horizontal .info-badge {
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-style: italic;
}

#brand-card-horizontal .horizontal-payment-methods {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

#brand-card-horizontal .horizontal-payment-icon {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 12px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

#brand-card-horizontal .horizontal-payment-icon:hover {
    border-color: #7c2d7e;
    color: #7c2d7e;
}

#brand-card-horizontal .horizontal-payment-more {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

/* Terms Section */
#brand-card-horizontal .horizontal-terms {
    padding: 14px 24px;
    background: #fff;
}

#brand-card-horizontal .horizontal-terms-text {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    text-align: center;
}

#brand-card-horizontal .horizontal-benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

#brand-card-horizontal .horizontal-benefits-list li {
    font-size: 13px;
    color: #10b981;
    font-weight: 500;
    display: flex;
    align-items: center;
}

#brand-card-horizontal .horizontal-benefits-list li::before {
    content: "✓";
    margin-right: 6px;
    font-weight: bold;
    font-size: 16px;
}

/* HORIZONTAL TEMPLATE - RESPONSIVE TABLET (768px and below) */
@media (max-width: 768px) {
    #brand-card-horizontal .horizontal-header {
        padding: 14px 16px;
    }

    #brand-card-horizontal .horizontal-logo-wrapper {
        width: 50px;
        height: 50px;
    }

    #brand-card-horizontal .horizontal-brand-name {
        font-size: 15px;
    }

    #brand-card-horizontal .horizontal-rating-stars svg {
      width: 14px;
      height: 14px;
    }

    #brand-card-horizontal .horizontal-rating-text {
        font-size: 13px;
    }

    #brand-card-horizontal .horizontal-offer-section {
        padding: 18px 20px;
    }

    #brand-card-horizontal .horizontal-offer-text {
        font-size: 19px;
    }

    #brand-card-horizontal .horizontal-cta-section {
        padding: 14px 20px;
    }

    #brand-card-horizontal .horizontal-cta-button {
        max-width: 100%;
        padding: 14px 28px;
        font-size: 16px;
    }

    #brand-card-horizontal .horizontal-info-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 16px;
        gap: 12px;
    }

    #brand-card-horizontal .horizontal-payment-methods {
        width: 100%;
        justify-content: flex-start;
    }

    #brand-card-horizontal .horizontal-terms {
        padding: 12px 16px;
    }
}

/* HORIZONTAL TEMPLATE - RESPONSIVE MOBILE (480px and below) */
@media (max-width: 480px) {
    #brand-card-horizontal .horizontal-header {
        padding: 12px 14px;
        gap: 12px;
    }

    #brand-card-horizontal .horizontal-logo-wrapper {
        width: 45px;
        height: 45px;
        padding: 6px;
    }

    #brand-card-horizontal .horizontal-brand-name {
        font-size: 14px;
    }

    #brand-card-horizontal .horizontal-rating-stars {
        gap: 4px;
    }

    #brand-card-horizontal .horizontal-rating-stars svg {
        width: 13px;
        height: 13px;
    }

    #brand-card-horizontal .horizontal-rating-text {
        font-size: 12px;
    }

    #brand-card-horizontal .horizontal-review-arrow {
        width: 28px;
        height: 28px;
    }

    #brand-card-horizontal .horizontal-offer-section {
        padding: 16px 14px;
    }

    #brand-card-horizontal .horizontal-offer-text {
        font-size: 17px;
    }

    #brand-card-horizontal .horizontal-cta-section {
        padding: 12px 14px;
    }

    #brand-card-horizontal .horizontal-cta-button {
        padding: 14px 24px;
        font-size: 15px;
    }

    #brand-card-horizontal .horizontal-info-bar {
        padding: 10px 14px;
        gap: 10px;
    }

    #brand-card-horizontal .info-label {
        font-size: 12px;
    }

    #brand-card-horizontal .info-badge {
        font-size: 10px;
        padding: 3px 10px;
    }

    #brand-card-horizontal .horizontal-payment-methods {
        gap: 8px;
    }

    #brand-card-horizontal .horizontal-payment-icon {
        font-size: 11px;
        padding: 5px 10px;
    }

    #brand-card-horizontal .horizontal-payment-more {
        font-size: 12px;
    }

    #brand-card-horizontal .horizontal-terms {
        padding: 10px 14px;
    }

    #brand-card-horizontal .horizontal-terms-text {
        font-size: 11px;
    }

    #brand-card-horizontal .horizontal-benefits-list {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    #brand-card-horizontal .horizontal-benefits-list li {
        font-size: 12px;
    }
}

/* BIGLOGO TEMPLATE - LARGE LOGO BACKGROUND CARD */

#brand-card-biglogo.brand-card {
    display: grid;
    grid-template-areas: "left right";
    grid-template-columns: 200px 1fr;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

#brand-card-biglogo.brand-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Position Badge */
#brand-card-biglogo .biglogo-position-badge {
    grid-area: position;
    position: absolute;
    top: -5px;
    left: -5px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    z-index: 10;
}

/* Left Section - Logo Background */
#brand-card-biglogo .biglogo-left-section {
    grid-area: left;
    background: linear-gradient(135deg, #2d1b4e 0%, #1a0f2e 100%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
}

#brand-card-biglogo .biglogo-logo {
    width: 100%;
    max-width: 160px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

#brand-card-biglogo .biglogo-logo:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

#brand-card-biglogo .biglogo-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#brand-card-biglogo .biglogo-country-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 14px;
    backdrop-filter: blur(10px);
}

#brand-card-biglogo .biglogo-flag {
    font-size: 18px;
}

#brand-card-biglogo .biglogo-country-text {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

/* Right Section - Content */
#brand-card-biglogo .biglogo-right-section {
    grid-area: right;
    display: flex;
    flex-direction: column;
    background: #f8f9fb;
}

#brand-card-biglogo .biglogo-content {
    flex: 1;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#brand-card-biglogo .biglogo-offer-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #5b21b6;
    line-height: 1.3;
}

#brand-card-biglogo .biglogo-bonus-badge {
    display: inline-block;
    align-self: flex-start;
    background: #000;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
}

#brand-card-biglogo .biglogo-terms {
    margin: 4px 0;
}

#brand-card-biglogo .biglogo-terms-text {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

#brand-card-biglogo .biglogo-benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#brand-card-biglogo .biglogo-benefits-list li {
    font-size: 14px;
    color: #374151;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

#brand-card-biglogo .biglogo-benefits-list li::before {
    content: "✓";
    margin-right: 8px;
    color: #10b981;
    font-weight: bold;
    font-size: 18px;
}

#brand-card-biglogo .biglogo-info-row {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

#brand-card-biglogo .biglogo-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

#brand-card-biglogo .biglogo-info-icon {
    width: 18px;
    height: 18px;
    color: #6b7280;
}

#brand-card-biglogo .biglogo-info-label {
    color: #6b7280;
    font-weight: 500;
}

#brand-card-biglogo .biglogo-info-value {
    color: #111827;
    font-weight: 700;
}

/* CTA Section */
#brand-card-biglogo .biglogo-cta-section {
    padding: 20px 28px 24px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

#brand-card-biglogo .biglogo-cta-button {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 16px 32px;
    background: #5b21b6;
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    text-transform: capitalize;
    box-shadow: 0 4px 14px rgba(91, 33, 182, 0.4);
    transition: all 0.3s ease;
    border: none;
}

#brand-card-biglogo .biglogo-cta-button:hover {
    background: var(--hover-color, #6d28d9) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 33, 182, 0.5);
}

#brand-card-biglogo .biglogo-review-link {
    font-size: 14px;
    color: #5b21b6;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

#brand-card-biglogo .biglogo-review-link:hover {
    color: #6d28d9;
    text-decoration: underline;
}

/* BIGLOGO TEMPLATE - RESPONSIVE TABLET (968px and below) */
@media (max-width: 968px) {
    #brand-card-biglogo.brand-card {
        grid-template-areas:
            "left"
            "right right";
        grid-template-columns: 200px 1fr;
        grid-template-rows: auto auto;
    }

    #brand-card-biglogo .biglogo-left-section {
        flex-direction: row;
        padding: 20px;
        gap: 12px;
    }

    #brand-card-biglogo .biglogo-logo {
        max-width: 140px;
        height: 100px;
    }

    #brand-card-biglogo .biglogo-offer-title {
        font-size: 22px;
    }

    #brand-card-biglogo .biglogo-content {
        padding: 20px 24px;
    }

    #brand-card-biglogo .biglogo-cta-section {
        padding: 18px 24px 20px;
    }
}

/* BIGLOGO TEMPLATE - RESPONSIVE MOBILE (640px and below) */
@media (max-width: 640px) {
    #brand-card-biglogo.brand-card {
        grid-template-areas:
            "position"
            "left"
            "right";
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    #brand-card-biglogo .biglogo-position-badge {
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    #brand-card-biglogo .biglogo-left-section {
        flex-direction: column;
        padding: 32px 16px 20px;
    }

    #brand-card-biglogo .biglogo-logo {
        max-width: 160px;
        height: 120px;
    }

    #brand-card-biglogo .biglogo-content {
        padding: 20px 18px;
        text-align: center;
        align-items: center;
    }

    #brand-card-biglogo .biglogo-offer-title {
        font-size: 20px;
    }

    #brand-card-biglogo .biglogo-bonus-badge {
        font-size: 14px;
        padding: 7px 14px;
        margin: 0 auto;
    }

    #brand-card-biglogo .biglogo-terms-text {
        font-size: 12px;
    }

    #brand-card-biglogo .biglogo-benefits-list {
        align-items: center;
    }

    #brand-card-biglogo .biglogo-benefits-list li {
        font-size: 13px;
    }

    #brand-card-biglogo .biglogo-info-row {
        justify-content: center;
        gap: 20px;
    }

    #brand-card-biglogo .biglogo-info-item {
        font-size: 12px;
    }

    #brand-card-biglogo .biglogo-cta-section {
        padding: 16px 18px 20px;
    }

    #brand-card-biglogo .biglogo-cta-button {
        font-size: 16px;
        padding: 16px 28px;
    }

    #brand-card-biglogo .biglogo-review-link {
        font-size: 13px;
    }
}

/* BIGLOGO TEMPLATE - RESPONSIVE SMALL MOBILE (480px and below) */
@media (max-width: 480px) {
    #brand-card-biglogo .biglogo-position-badge {
        width: 36px;
        height: 36px;
        font-size: 16px;
        top: 6px;
    }

    #brand-card-biglogo .biglogo-left-section {
        padding: 28px 14px 18px;
    }

    #brand-card-biglogo .biglogo-logo {
        max-width: 140px;
        height: 100px;
        padding: 12px;
    }

    #brand-card-biglogo .biglogo-country-badge {
        padding: 7px 12px;
        font-size: 10px;
    }

    #brand-card-biglogo .biglogo-flag {
        font-size: 16px;
    }

    #brand-card-biglogo .biglogo-content {
        padding: 18px 16px;
    }

    #brand-card-biglogo .biglogo-offer-title {
        font-size: 19px;
    }

    #brand-card-biglogo .biglogo-bonus-badge {
        font-size: 13px;
        padding: 6px 12px;
    }

    #brand-card-biglogo .biglogo-terms-text {
        font-size: 11px;
    }

    #brand-card-biglogo .biglogo-benefits-list li {
        font-size: 12px;
    }

    #brand-card-biglogo .biglogo-benefits-list li::before {
        font-size: 16px;
    }

    #brand-card-biglogo .biglogo-info-row {
        flex-direction: column;
        gap: 10px;
    }

    #brand-card-biglogo .biglogo-info-item {
        justify-content: center;
    }

    #brand-card-biglogo .biglogo-cta-section {
        padding: 14px 16px 18px;
    }

    #brand-card-biglogo .biglogo-cta-button {
        padding: 16px 24px;
        font-size: 15px;
    }
}