 :root {
        --bg: #e9eaf4;
        --card: #f8f9fc;
        --text: #243f6b;
        --text-soft: #7e95b8;
        --primary: #4b6fae;
        --primary-dark: #37598f;
        --border: #eee;
        --accent: #7fb4f2;
        --shadow: 0 18px 40px rgba(53, 78, 116, 0.08);
        --radius-xl: 22px;
        --radius-lg: 18px;
      }

      * {
        box-sizing: border-box;
      }

      body {
        margin: 0;
        font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        background: radial-gradient(circle at top, #fbfbfd 0%, var(--bg) 100%);
        color: var(--text);
      }

      img {
        max-width: 100%;      }
      
      .page {
        min-height: 100vh;
        padding: 25px;
      }

      .container {
        max-width: 1120px;
        margin: 0 auto;
      }

   .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
      }

      .logo img{
        width: 110px;;

      }

      .nav {
        display: flex;
        gap: 30px;
      }

      .nav a {
        text-decoration: none;
        color: #6d81a6;
        font-size: 1.05rem;
        font-weight: 500;
      }


      .menu-toggle {
        display: none;
        width: 48px;
        height: 48px;
        border: 0;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.72);
        box-shadow: 0 10px 24px rgba(53, 78, 116, 0.12);
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 0;
      }

      .menu-toggle span {
        width: 20px;
        height: 2px;
        background: #4f6d97;
        border-radius: 999px;
        transition: transform 0.25s ease, opacity 0.25s ease;
      }

      body.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
      }

      body.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
      }

      body.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
      }
      .hero {
        text-align: center;
        padding: 50px 0 50px;
      }

      .hero h1 {
        margin: 0;
        font-size: clamp(2rem, 3vw, 3rem);
        line-height: 1;
        font-weight: 400;
        color: #22416f;
      }

      .hero p {
        margin: 16px 0 0;
        font-size: clamp(1.25rem, 1.75vw, 2rem);
        color: var(--text-soft);
        font-weight: 400;
      }

      .pricing-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
      }

      .card {
        position: relative;
        background:#fff;
        border: 1px solid var(--border);
        border-radius: var(--radius-xl);
        padding: 25px;
        box-shadow: inset 0px 0px 20px 20px rgba(0, 0, 0, 0.02);
        display: flex;
        flex-direction: column;
        align-items: center;
      }

      .product-visual {
        width: 100%;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px 0 10px;
      }
      .product-visual img
     {
	max-height: 300px;
     }
      
      .bottle--front {
        transform: scale(1.06);
      }

      .cap {
        position: absolute;
        left: 50%;
        top: 0;
        width: 26px;
        height: 88px;
        transform: translateX(-50%);
        background: linear-gradient(180deg, #ffffff 0%, #eef1f6 100%);
        border-radius: 14px 14px 8px 8px;
        border: 1px solid #e8ebf0;
      }

      .spray-head {
        position: absolute;
        left: 50%;
        top: 74px;
        width: 52px;
        height: 10px;
        transform: translateX(-50%);
        background: linear-gradient(180deg, #fcfdff 0%, #edf1f7 100%);
        border-radius: 8px;
        border: 1px solid #ebeff5;
      }

      .neck {
        position: absolute;
        left: 50%;
        top: 84px;
        width: 26px;
        height: 24px;
        transform: translateX(-50%);
        background: #fdfefe;
        border: 1px solid #edf1f5;
        border-radius: 5px;
      }

      .collar {
        position: absolute;
        left: 50%;
        top: 106px;
        width: 40px;
        height: 34px;
        transform: translateX(-50%);
        background: repeating-linear-gradient(
          90deg,
          #ffffff,
          #ffffff 2px,
          #eff3f8 2px,
          #eff3f8 4px
        );
        border: 1px solid #e8edf4;
        border-radius: 8px;
      }

      .body {
        position: absolute;
        left: 50%;
        top: 136px;
        width: 74px;
        height: 154px;
        transform: translateX(-50%);
        background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
        border: 1px solid #edf1f6;
        border-radius: 18px 18px 14px 14px;
        box-shadow: 0 10px 24px rgba(57, 78, 111, 0.08);
        overflow: hidden;
      }

      .label {
        position: absolute;
        left: 50%;
        top: 30px;
        width: 100%;
        height: 78px;
        transform: translateX(-50%);
        background: linear-gradient(180deg, rgba(191, 224, 255, 0.28), rgba(184, 220, 255, 0.45));
        border-top: 4px solid rgba(164, 210, 249, 0.35);
        border-bottom: 4px solid rgba(164, 210, 249, 0.35);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
      }

      .label-mark {
        width: 28px;
        height: 28px;
        border: 3px solid #86c0f0;
        border-radius: 50%;
        position: relative;
      }

      .label-mark::before,
      .label-mark::after {
        content: "";
        position: absolute;
        top: 7px;
        width: 6px;
        height: 8px;
        border: 2px solid #86c0f0;
        border-top: 0;
        border-radius: 0 0 8px 8px;
      }

      .label-mark::before {
        left: 5px;
        transform: rotate(-18deg);
      }

      .label-mark::after {
        right: 5px;
        transform: rotate(18deg);
      }

      .label-text {
        font-size: 0.7rem;
        font-weight: 800;
        color: #2d5b92;
      }

      .card h2 {
        margin: 0;
        font-size: 1.15rem;
        font-weight: 500;
        color: #29466f;
      }

      .price-row {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 10px 0;
      }

      .price {
        font-size: 2rem;
        line-height: 1;
        font-weight: 500;
        color: #29466f;
      }

      .save-tag {
       padding: 4px 10px;
       border-radius: 999px;
       border: 1px solid #7bbad7;
       color: #5d91b6;
       font-size: 0.75rem;
       white-space: nowrap;
       background-color: #ecf4ff;
      }

      .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: min(100%, 210px);
        margin-top: auto;
        padding: 17px 18px;
        border-radius: 16px;
        background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: #fff;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 700;
        box-shadow: 0 14px 26px rgba(56, 86, 135, 0.24);
        transition: all 0.25s ease;
      }

      .btn:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 20px 34px rgba(56, 86, 135, 0.32);
        background: linear-gradient(180deg, #5a7fc0 0%, #3f66a3 100%);
      }

      .btn:active {
        transform: translateY(-1px) scale(0.98);
        box-shadow: 0 10px 18px rgba(56, 86, 135, 0.2);
      }
      .btn_vnmo {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-top: auto;
        padding: 17px 18px;
        border-radius: 50px;
        background: #fff;
        color: #2f3033;
        text-decoration: none;
        font-size: 1.2rem;
        border: 2px solid #2f3033;
        font-weight: 700;
        transition: all 0.25s ease;
      }

      .btn_vnmo:hover {
        transform: translateY(-4px) scale(1.02);
        background: #2f3033;
        color:#fff;
      }
.btn_vnmo img{
  width: 30px;
  padding-right: 5px;
  vertical-align: center;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid #dde3ef;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
}
.payment-option:has(input:checked) {
  border-color: #3a5fa0;
  background: #f0f5ff;
}
.payment-option input[type="radio"] { accent-color: #3a5fa0; width: 18px; height: 18px; }
      .note {
        text-align: center;
        color: #8da0bf;
        font-size: 1rem;
      }

      .badge {
    position: absolute;
    right: 30px;
    bottom: 0;
    padding: 10px 20px;
    border-radius: 50%;
    background: linear-gradient(180deg, #91cfed 0%, #5681ae 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
    border: 2px solid #fff;
    font-weight: 500;
    line-height: 1.15;
    box-shadow: 0 12px 24px rgba(82, 143, 215, 0.25);
      }
      .pos_rel
      {
        position: relative;
      }

      .cart-page {
      
        padding: 50px 0 0 0;
        max-width: 680px;
        margin: 0 auto;
      }

      .modal {
        max-width: 100%;
        margin: 0 auto;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(233, 237, 244, 0.9);
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 0px 40px rgba(57, 73, 106, 0.1);
      }

      .modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 30px 30px 20px 30px;
        border-bottom: 1px solid #dfe5ee;
      }

      .modal-title {
        margin: 0;
        font-size: clamp(1.7rem, 2.2vw, 2.6rem);
        line-height: 1.1;
        font-weight: 500;
        color: #314a75;
      }

      .close {
        border: 0;
        background: transparent;
        color: #91a0bb;
        font-size: 2.8rem;
        line-height: 1;
        cursor: pointer;
        padding: 0;
      }

      .modal-body {
        padding: 30px;
      }

      .product {
        display: grid;
        grid-template-columns: 180px 1fr auto;
        gap: 24px;
        align-items: center;
        padding: 30px 0;
        border-bottom: 1px solid #dfe5ee;
      }

      .product-image {
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .product-image img {
        width: 100%;
        max-width: 150px;
        height: auto;
        object-fit: contain;
        filter: drop-shadow(0 16px 20px rgba(94, 111, 144, 0.12));
      }
      h1 {
        margin: 0 0 20px;
        font-size: clamp(2rem, 2.5vw, 3rem);
        line-height: 1;
        color: #274572;
      }
      h2 {
        margin: 0 0 10px;
        font-size: clamp(1.5rem, 2.25vw, 2.5rem);
        line-height: 1;
        color: #274572;
        font-weight: 500;
      }
       h3 {
        margin: 0 0 20px;
        font-size: clamp(1.25rem, 1.5vw, 2rem);
        line-height: 1;
        color: #274572;
        font-weight: 500;
      }

      .product-copy p {
        margin: 0 0 28px;
        font-size: clamp(1.25rem, 1.75vw, 2rem);
        line-height: 1.15;
        color: #485b7c;
        max-width: 420px;
      }

      .qty-control {
        display: inline-grid;
        grid-template-columns: 56px 64px 56px;
        border: 1px solid #dfe5ef;
        border-radius: 16px;
        overflow: hidden;
        background: #fbfbfd;
      }

      .qty-btn,
      .qty-value {
        height: 58px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        color: #425674;
      }

      .qty-btn {
        border: 0;
        background: transparent;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.2s ease;
      }

      .qty-btn:hover {
        background: #f0f4fb;
      }

      .qty-btn:active {
        transform: scale(0.97);
      }

      .qty-value {
        border-left: 1px solid #dfe5ef;
        border-right: 1px solid #dfe5ef;
        font-size: 1.8rem;
        font-weight: 500;
      }

      .price {
        font-size: clamp(1.75rem, 2.2vw, 3rem);
        line-height: 1;
        color: #223c67;
        font-weight: 500;
      }

      .summary {
        padding: 20px 0;
      }

      .summary-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        font-size: clamp(1rem, 2vw, 1.75rem);
        line-height: 1.2;
        color: #445776;
        margin-bottom: 20px;
      }

      .summary-row strong,
      .summary-row .summary-value-strong {
        color: #243f6b;
        font-weight: 500;
      }

      .divider {
        margin: 24px 0 26px;
      }

      .cart-page .btn{
        width: 100%;
        font-size: clamp(1.5rem, 1.75vw, 2rem);
        font-weight: 400;
      }
      .checkout-form {
    display: grid;
    gap: 20px;
}
.mt10
{
  margin-top: 10px;
}
.mt20
{
  margin-top: 20px;
}
.mt30
{
  margin-top: 30px;
}
.mt40
{
  margin-top: 40px;
}
.mb0
{
  margin-bottom: 0px;
}
.mb10
{
  margin-bottom: 10px;
}
.mb20
{
  margin-bottom: 20px;
}
.mb30
{
  margin-bottom: 30px;
}
.fw600
{
  font-weight: 600;
}
.field, .field-select {
    width: 100%;
    min-height: 60px;
    border: 1px solid #e5e9f1;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.55);
    padding: 0 20px;
    font-size: clamp(1rem, 1.25vw, 1.75rem);
    color: #475a7b;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #7f90ad 50%), linear-gradient(135deg, #7f90ad 50%, transparent 50%);
    background-position: calc(100% - 28px) calc(50% - 3px), calc(100% - 20px) calc(50% - 3px);
    background-size: 8px 8px, 8px 8px;
    background-repeat: no-repeat;
    padding-right: 50px;
}
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.divider {
    height: 1px;
    background: #dfe5ee;
    margin: 18px 0 18px;
}
button, input, textarea, select {
    font-family: inherit;
}
.crypto-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 0;
    color: #526684;
    margin-bottom: 20px;
    font-size: clamp(1rem, 1.5vw, 1.75rem);
}
.crypto-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(180deg, #90bef5 0%, #6ea8eb 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    padding-bottom: 3px;
}
.trust-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    font-weight: 600;
    flex-wrap: wrap;
    margin-top: 30px;
    color: #9aa7bf;
    font-size: clamp(0.85rem, 1.1vw, 1.25rem);
}
.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.txt_center
{
  text-align: center;
}
.txt_s
{
  font-size: clamp(0.75rem, 1vw, 1.125rem);
}
.txt_sm
{
  font-size: clamp(0.85rem, 1.1vw, 1.25rem);
}
.txt_m
{
    font-size: clamp(1rem, 1.25vw, 1.4rem);
}
.txt_md
{
    font-size: clamp(1.25rem, 1.65vw, 1.85rem);
}
.txt_l
{
    font-size: clamp(1.5rem, 2vw, 3rem);
    line-height: 2rem;
}
.txt_lg
{
    font-size: clamp(1.85rem, 2.2vw, 3.25rem);
    line-height: 2.5rem;
}
.c_light
{
      color: #6c82ac;
}
.c_blue
{
  color: #5583b9;
}
.c_dblue
{
  color: #214c8b;
}
.c_gold
{
  color: #ca9b34;
}

strong{
  font-weight: 700;
}
.reward-table {
        border: 1px solid #e8edf4;
        border-radius: 18px;
        overflow: hidden;
        background: rgba(255,255,255,0.55);
      }

      .reward-row {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
      }

      .reward-row + .reward-row {
        border-top: 1px solid #e8edf4;
      }

      .reward-cell {
        padding: 20px;
       font-size:  clamp(1.25rem, 1.4vw, 1.75rem);
        color: #334d78;
      }

      .reward-cell + .reward-cell {
        border-left: 1px solid #e8edf4;
      }

      .reward-label,
      .reward-value {
        display: inline-flex;
        align-items: center;
        gap: 16px;
      }

      .reward-value {
        gap: 12px;
      }

      .reward-value strong {
        font-weight: 700;
        font-size: clamp(1.375rem, 1.75vw, 2rem);
      }
.user-icon {
  width: 34px;
  height: 34px;
  border: 3px solid #ca9b34;
  border-radius: 50%;
  position: relative;
  box-sizing: border-box;
}

.user-icon::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 3px solid #ca9b34;
  border-radius: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.user-icon::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 18px;
  height: 10px;
  border: 3px solid #ca9b34;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.friend-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 0 0 auto;
    border: 3px solid #71aced;
}
.friend-icon::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 3px solid #71aced;
    border-radius: 50%;
    position: absolute;
}
.friend-icon::after {
    content: "";
    width: 14px;
    height: 8px;
    border: 3px solid #71aced;
    border-top: 0;
    border-radius: 0 0 10px 10px;
    position: absolute;
    bottom: 4px;
}
       .milestone-card {
        display: grid;
        grid-template-columns: 160px 1fr;
        gap: 25px;
        align-items: start;
        border: 1px solid #e8edf4;
        border-radius: 20px;
        padding: 20px;
         background: linear-gradient(90deg, rgba(234, 242, 255, 1) 0%, rgba(234, 242, 255, 0.2) 100%);
      }

      .milestone-visual {
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
      }

      .milestone-visual img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
      }
       .ligtblue-card {
        border: 1px solid #e8edf4;
        border-radius: 15px;
        padding: 15px;
background: #D4E6FC;
background: linear-gradient(90deg, rgba(212, 230, 252, 1) 0%, rgba(247, 247, 252, 1) 50%, rgba(212, 230, 252, 1) 100%);
      }
      .d_none
      {
        display: none;
      }
      .prod_ico
      {
        width: 25px;
        margin-right: 5px;
      }
      .custom-list {
  list-style: none;
  padding: 0;
  margin: 0;
  
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 40px;
}

.custom-list li {
  position: relative;
  padding-left: 20px; 
  line-height: 1.5;
}

.custom-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  
  width: 8px;
  height: 8px;
  background-color: #7aa7e0; 
  border-radius: 50%;
}
      /* ── Inline validation ─────────────────────────────── */
      .field-error {
        color: #c0392b;
        font-size: 0.82rem;
        margin-top: -12px;
        padding-left: 6px;
        line-height: 1.3;
        min-height: 0;
      }
      .field--invalid {
        border-color: #e05252 !important;
        background: rgba(255, 235, 235, 0.55) !important;
        box-shadow: 0 0 0 3px rgba(220, 60, 60, 0.09) !important;
      }
      .field-select--invalid {
        border-color: #e05252 !important;
        background-color: rgba(255, 235, 235, 0.55) !important;
        box-shadow: 0 0 0 3px rgba(220, 60, 60, 0.09) !important;
      }
      /* ── Empty cart state ──────────────────────────────── */
      .cart-empty {
        display: none;
        text-align: center;
        padding: 50px 20px;
        color: #7e95b8;
      }
      .cart-empty.visible {
        display: block;
      }
      .cart-empty-icon {
        font-size: 3.5rem;
        margin-bottom: 16px;
      }
      .cart-empty p {
        font-size: 1.1rem;
        margin: 0 0 24px;
      }

      @media (max-width: 980px) {
        .pricing-grid {
          grid-template-columns: 1fr;
        }

        .card {
          min-height: auto;
        }

        .badge {
          top: 28px;
        }


        .product {
          grid-template-columns: 1fr;
          gap: 18px;
          padding: 24px 8px 24px;
        }

        .product-image {
          justify-content: flex-start;
        }

        .product-copy p {
          margin-bottom: 20px;
        }

        .price {
          padding-right: 0;
        }

        .summary-row {
          font-size: 1.5rem;
        }


        .milestone-card {
          grid-template-columns: 1fr;
          gap: 18px;
        }

        .milestone-visual {
          min-height: 150px;
        }

      }

      @media (max-width: 640px) {
        .page {
          padding: 15px;
        }

      .header {
        position: relative;
        flex-direction: row;
        gap: 12px;
      }

.menu-toggle {
          display: inline-flex;
          margin-left: auto;
        }

        .nav {
          position: absolute;
          top: calc(100% + 12px);
          right: 0;
          left: auto;
          min-width: 180px;
          padding: 14px;
          border-radius: 18px;
          background: rgba(255, 255, 255, 0.96);
          box-shadow: 0 18px 40px rgba(53, 78, 116, 0.14);
          flex-direction: column;
          align-items: flex-start;
          gap: 14px;
          opacity: 0;
          pointer-events: none;
          transform: translateY(-8px);
          transition: opacity 0.25s ease, transform 0.25s ease;
        }

        body.menu-open .nav {
          opacity: 1;
          pointer-events: auto;
          transform: translateY(0);
        }

        .hero {
          padding: 56px 0 36px;
        }

        .card {
          padding: 26px 18px 22px;
        }

        .bottle {
          width: 72px;
          height: 264px;
        }

        .cap {
          height: 76px;
          width: 22px;
        }

        .spray-head {
          top: 64px;
          width: 46px;
        }

        .neck {
          top: 74px;
        }

        .collar {
          top: 96px;
          width: 36px;
        }

        .body {
          top: 124px;
          width: 64px;
          height: 134px;
        }

        .badge {
          right: 16px;
          width: 68px;
          height: 68px;
          font-size: 0.72rem;
        }



        .modal {
          border-radius: 18px;
        }

        .close {
          font-size: 2.2rem;
        }
      .modal-body {
        padding: 20px;
      }
        .product {
          gap: 12px;
          padding: 20px 4px 18px;
        }

        .product-copy h2 {
          margin-bottom: 8px;
        }

        .product-copy p {
          max-width: 220px;
          margin-bottom: 16px;
        }

        .qty-control {
          grid-template-columns: 48px 58px 48px;
          border-radius: 12px;
        }

        .qty-btn,
        .qty-value {
          height: 50px;
          font-size: 1.6rem;
        }

        .qty-value {
          font-size: 1.45rem;
        }

        .summary-row {
          font-size: 1.3rem;
          margin-bottom: 14px;
        }

        .divider {
          margin: 18px 0 20px;
        }

        .note {
          margin-top: 20px;
          font-size: 1rem;
        }
        .reward-cell {
          padding: 10px;
          font-size: 1.1rem;
        }

        .reward-label,
        .reward-value {
          gap: 10px;
        }

        .reward-icon,
        .milestone-badge-icon {
          transform: scale(0.82);
          transform-origin: left center;
        }

        .milestones-section {
          margin-top: 24px;
        }

        .milestone-card {
          border-radius: 16px;
          padding: 14px;
        }

        .milestone-visual {
          min-height: 122px;
          border-radius: 12px;
        }

        .milestone-visual img {
          width: 120px;
        }

        .milestone-badge {
          gap: 8px;
          margin-bottom: 8px;
          font-size: 1rem;
        }

        .milestone-price {
          gap: 8px;
        }

        .milestone-price strong {
          font-size: 2rem;
        }

        .milestone-price span {
          font-size: 1.1rem;
        }
      .custom-list {
    grid-template-columns: 1fr;
    gap: 8px 0;
  }
  .reward-row
  {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Referral code UI ── */
.referral-code-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0f4ff;
  border: 2px dashed var(--primary);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.referral-code-text {
  flex: 1;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
}

.referral-copy-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.referral-copy-btn:hover {
  background: var(--primary-dark);
}

.referral-stats {
  display: flex;
  gap: 20px;
  margin: 16px 0;
}

.referral-stat {
  flex: 1;
  text-align: center;
  background: #f8f9fc;
  border-radius: 12px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.referral-stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.referral-progress-wrap {
  background: #e2e8f0;
  border-radius: 100px;
  height: 10px;
  overflow: hidden;
  margin-top: 14px;
}

.referral-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 100px;
  transition: width 0.5s ease;
}

.referral-milestone-reached {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 14px;
  padding: 12px;
  background: #fffbe6;
  border-radius: 10px;
}

.c_red   { color: #e53e3e; }
.c_green { color: #2f855a; }

.referral-url-text {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  word-break: break-all;
}

.ref-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-soft);
  padding: 0 2px;
  vertical-align: middle;
}
.ref-remove-btn:hover { color: #e53e3e; }

.credit-notice {
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.credit-apply-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-left: auto;
}

/* ── Referral code input row ── */
.referral-input-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.referral-code-input {
  flex: 1;
  margin-bottom: 0 !important;
}

.btn-apply {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-apply:hover   { background: var(--primary-dark); }
.btn-apply:disabled { opacity: 0.6; cursor: not-allowed; }

.referral-status {
  font-size: 0.85rem;
  margin-top: 4px;
  padding: 4px 0;
}
.referral-status--applied { color: #2f855a; font-weight: 600; }
.referral-status--error   { color: #e53e3e; }

/* ── Inline order error ── */
.order-error {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  padding: 10px 14px;
  color: #c53030;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* ── Login page ── */
.login-body {
  margin: 0;
  height: 100vh;
  background: linear-gradient(135deg, #5fa8d3, #9ccfe5, #e6f4fa);
}

.login-page {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form label {
  font-size: clamp(1.125rem, 1.2vw, 1.5rem);
  color: #475a7b;
}

.lnk {
  color: var(--primary);
  text-decoration: underline;
  font-size: 0.9rem;
}

.nav-active {
  font-weight: 700;
  color: var(--primary) !important;
}

/* ── My Orders table ── */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.orders-table th {
  text-align: left;
  padding: 8px 12px;
  background: #f0f4ff;
  color: var(--text-soft);
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

.orders-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.orders-table tr:last-child td {
  border-bottom: none;
}

.orders-table tr:hover td {
  background: #f8f9fc;
}

.order-status-badge {
  background: #e8f4fd;
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.status-init    { background: #fef9e7; color: #9a6b00; }
.status-pending { background: #fff3e0; color: #e65100; }
.status-paid    { background: #e8f5e9; color: #2e7d32; }
.status-failed  { background: #ffebee; color: #c62828; }
.status-shipped { background: #e3f2fd; color: #1565c0; }

.btn-confirm {
  background: #2e7d32;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn-confirm:hover    { background: #1b5e20; }
.btn-confirm:disabled { opacity: 0.6; cursor: not-allowed; }

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mb16 { margin-bottom: 16px; }
      }