:root {
  --bg: #070707;
  --white: #f6f3eb;
  --muted: rgba(246, 243, 235, 0.68);
  --gold: #c9a84c;
  --gold-bright: #e8d5a3;
  --gold-deep: #8a6f2a;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--white);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.pkg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}

.pkg-orb--1 {
  width: 480px;
  height: 480px;
  background: rgba(201, 168, 76, 0.32);
  top: -160px;
  right: -100px;
  animation: orbFloat 12s ease-in-out infinite;
}

.pkg-orb--2 {
  width: 340px;
  height: 340px;
  background: rgba(255, 255, 255, 0.05);
  bottom: 8%;
  left: -100px;
  animation: orbFloat 14s ease-in-out infinite reverse;
}

.pkg-orb--3 {
  width: 220px;
  height: 220px;
  background: rgba(201, 168, 76, 0.12);
  top: 42%;
  left: 45%;
  animation: orbFloat 16s ease-in-out infinite;
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(18px, -22px);
  }
}

.pkg-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.pkg-top {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 1.35rem 0;
  display: flex;
  align-items: center;
}

.pkg-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  transition: opacity 0.2s var(--ease);
}

.pkg-logo:hover {
  opacity: 0.85;
}

.pkg-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201, 168, 76, 0.45);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.08);
}

.pkg-main {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0.75rem 0 3.75rem;
}

.pkg-intro {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.75rem;
  animation: fadeUp 0.7s var(--ease) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.pkg-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.pkg-intro-line {
  width: 72px;
  height: 2px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.lead {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.pkg-empty {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.pkg-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  background-color: rgba(12, 12, 12, 0.88);
  border: 1px solid rgba(201, 168, 76, 0.3);
  backdrop-filter: blur(18px);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: fadeUp 0.75s var(--ease) both;
}

.pkg-card:nth-child(2) {
  animation-delay: 0.12s;
}

.pkg-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 168, 76, 0.55);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(201, 168, 76, 0.12),
    0 0 40px rgba(201, 168, 76, 0.12);
}

.pkg-photo {
  position: relative;
  background:
    radial-gradient(ellipse at center, rgba(201, 168, 76, 0.12), transparent 65%),
    #101010;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.pkg-photo img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: contain;
  object-position: top center;
  transition: transform 0.5s var(--ease);
}

.pkg-card:hover .pkg-photo img {
  transform: scale(1.015);
}

.pkg-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.25rem 1.35rem 1.4rem;
  flex: 1;
}

.pkg-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1a1508;
  background: linear-gradient(135deg, #f0e2b8, var(--gold));
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 0 6px 16px rgba(201, 168, 76, 0.25);
}

.pkg-card h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
}

.pkg-sub {
  color: var(--gold-bright);
  font-size: 0.92rem;
}

.pkg-desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.pkg-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 0.9rem;
  margin-top: 0.15rem;
}

.pkg-price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.pkg-price strong {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1;
}

.pkg-price .old {
  color: rgba(246, 243, 235, 0.4);
  text-decoration: line-through;
  font-size: 1rem;
}

.pkg-save {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #1a1508;
  background: rgba(232, 213, 163, 0.9);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-weight: 500;
}

.pkg-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pkg-chips li {
  font-size: 0.78rem;
  color: var(--gold-bright);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.28);
  background: rgba(201, 168, 76, 0.08);
}

.pkg-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.pkg-features li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.pkg-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.pkg-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1rem;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  color: #1a1508;
  background: linear-gradient(135deg, #f0e2b8, var(--gold) 48%, var(--gold-deep));
  box-shadow: 0 10px 28px rgba(201, 168, 76, 0.3);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.pkg-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(201, 168, 76, 0.4);
}

.pkg-cta:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.buy-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
}

.buy-modal.hidden {
  display: none;
}

.buy-dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 1.85rem 1.55rem 1.55rem;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(28, 28, 28, 0.98), rgba(12, 12, 12, 0.98));
  border: 1px solid rgba(201, 168, 76, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: fadeUp 0.35s var(--ease);
}

.buy-close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  border: none;
  background: transparent;
  color: rgba(246, 243, 235, 0.55);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.buy-dialog h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  padding-right: 1.5rem;
}

.buy-price {
  color: var(--gold-bright);
  font-size: 1.1rem;
  margin-bottom: 1.15rem;
}

.buy-dialog form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.buy-dialog label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.buy-dialog label span {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.buy-dialog input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(201, 168, 76, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #f6f3eb;
  font: inherit;
}

.buy-dialog input:focus {
  outline: none;
  border-color: rgba(201, 168, 76, 0.55);
}

.buy-error {
  color: #f0a0a0;
  font-size: 0.88rem;
}

.pkg-foot {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.35rem;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  color: rgba(246, 243, 235, 0.4);
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .pkg-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .pkg-photo img {
    max-height: none;
  }

  .pkg-top,
  .pkg-main {
    width: min(1120px, calc(100% - 24px));
  }

  .pkg-intro {
    margin-bottom: 1.75rem;
  }

  .pkg-intro h1 {
    font-size: clamp(1.75rem, 7vw, 2.4rem);
  }

  .pkg-body {
    padding: 1.1rem 1.1rem 1.25rem;
  }

  .pkg-card:hover {
    transform: none;
  }

  .buy-dialog {
    width: 100%;
    max-height: min(92vh, 920px);
    overflow-y: auto;
  }

  .pkg-cta {
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .pkg-logo span {
    font-size: 1.05rem;
  }

  .pkg-price strong {
    font-size: 1.85rem;
  }

  .pkg-chips {
    flex-direction: column;
  }

  .pkg-chips li {
    width: 100%;
    text-align: center;
  }
}


/* AWL EQUAL CARD DESIGN V1 */

.pkg-grid {
    align-items: stretch;
}

.pkg-card {
    height: 100%;
    min-width: 0;
}

.pkg-photo {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pkg-photo img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    object-position: center;
}

.pkg-body {
    min-width: 0;
}

.pkg-card h2 {
    min-height: 2.5em;
    overflow-wrap: anywhere;
}

.pkg-sub {
    line-height: 1.5;
    min-height: 3em;
    overflow-wrap: anywhere;
}

.pkg-description-area {
    min-height: 7.2em;
}

.pkg-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    height: 4.8em;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.pkg-read-more {
    border: 0;
    background: transparent;
    color: var(--gold-bright);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 7px 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pkg-price-row {
    margin-top: auto;
}

.pkg-cta {
    margin-top: 0.5rem;
}

.pkg-description-dialog {
    position: fixed;
    z-index: 200;
    width: min(560px, calc(100% - 32px));
    max-height: 80vh;
    overflow-y: auto;
    margin: auto;
    padding: 30px;
    border-radius: 18px;
    border: 1px solid var(--gold);
    background: #151515;
    color: var(--white);
    box-shadow: 0 25px 75px rgba(0,0,0,.65);
}

.pkg-description-dialog::backdrop {
    background: rgba(0,0,0,.82);
}

.pkg-dialog-close {
    float: right;
    border: 0;
    background: transparent;
    color: var(--gold-bright);
    font-size: 28px;
    cursor: pointer;
}

.pkg-description-dialog h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 30px 18px 0;
    overflow-wrap: anywhere;
}

.pkg-dialog-text {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: anywhere;
}


/* COURSE IMAGE RESTORE V1 */

.pkg-photo {
    aspect-ratio: auto;
    display: block;
    overflow: hidden;
}

.pkg-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    object-position: top center;
}

@media (max-width: 860px) {
    .pkg-photo img {
        max-height: none;
    }
}


/* AWL UNIFIED CARD LAYOUT V2 */
.pkg-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}
.pkg-card {
    min-width: 0;
    height: 100%;
}
.pkg-photo {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.pkg-photo img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
}
.pkg-body {
    flex: 1;
}
.pkg-price-row {
    margin-top: auto;
}
@media (max-width: 900px) {
    .pkg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
        margin: 0;
    }
}
@media (max-width: 600px) {
    .pkg-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
}



/* AWL COURSE CARD SIZE FIX V3 */

/* Three equal card slots, even when only two products exist */
.pkg-main .pkg-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

.pkg-main .pkg-grid > .pkg-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 100%;
    box-sizing: border-box;
}

/* Consistent cover area */
.pkg-main .pkg-card .pkg-photo {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pkg-main .pkg-card .pkg-photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
}

/* Keep pricing and CTA aligned */
.pkg-main .pkg-card .pkg-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.pkg-main .pkg-card .pkg-price-row {
    margin-top: auto;
}

/* Tablet */
@media (max-width: 900px) {
    .pkg-main .pkg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .pkg-main .pkg-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
}


/* AWL COURSE FIX V4 - FIXED CARD WIDTH */

@media (min-width: 901px) {
    .pkg-main .pkg-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 350px)) !important;
        justify-content: start !important;
        gap: 28px !important;
        max-width: 1120px !important;
        margin: 0 auto !important;
    }

    .pkg-main .pkg-grid > .pkg-card {
        width: 100% !important;
        max-width: 350px !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}

.pkg-main .pkg-card .pkg-photo {
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pkg-main .pkg-card .pkg-photo img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
}

@media (min-width: 601px) and (max-width: 900px) {
    .pkg-main .pkg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: none !important;
    }
}

@media (max-width: 600px) {
    .pkg-main .pkg-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        max-width: 420px !important;
        margin: 0 auto !important;
    }
}
