    body {
      background-color: var(--primary); /* Deep purple background */
      margin: 0;
      color: #333;
    }
    
    .page-container {
      background-color: var(--primary);
      padding-bottom: 70px;
    }

    /* Top Navigation Icons */
    .top-nav {
      display: flex;
      justify-content: space-around;
      align-items: center;
      background: #FFFFFF;
      padding: 12px 0;
    }
    .nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
    }
    .nav-item img {
      width: 44px;
      height: 44px;
      object-fit: contain;
    }
    .nav-item span {
      font-size: 11px;
      color: #333;
      font-weight: 500;
    }

    /* Marquee */
    .marquee-container {
      background: linear-gradient(90deg, #2A1054 0%, #461C8B 50%, #2A1054 100%);
      color: #FFF;
      padding: 8px 12px;
      height: 52px; /* Adjusted to fit exactly 2 lines (18px * 2 + 16px padding) */
    }
    .marquee-container marquee {
      height: 100%;
    }
    .marquee-item {
      font-size: 12px;
      line-height: 18px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Tabs */
    .tabs-row {
      display: flex;
      background: #190B2D;
      margin-top: 1px;
      border-left: 4px solid #FF2E4D;
    }
    .tab-item {
      flex: 1;
      text-align: center;
      padding: 12px 0;
      font-size: 12px;
      color: #FFF;
      font-weight: 500;
      position: relative;
    }
    .tab-item.active {
      color: #FF2E4D;
    }

    /* Winning Poster */
    .winning-card {
      background: #FFFFFF;
      border-radius: 6px;
      margin: 12px;
      padding: 14px 12px;
      position: relative;
    }
    .winning-title {
      text-align: center;
      font-size: 15px;
      color: #555;
      font-weight: 600;
      margin-bottom: 2px;
    }
    .winning-subtitle {
      text-align: center;
      font-size: 11px;
      color: #999;
      margin-bottom: 6px;
    }
    .winning-numbers {
      display: flex;
      justify-content: center;
      gap: 6px;
      margin-bottom: 12px;
    }
    .winning-numbers .num {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      color: #190B2D;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 15px;
      font-weight: 800;
      box-shadow: 0 3px 6px rgba(0,0,0,0.15);
      transition: background 0.3s;
    }
    
    /* Number ball gradient themes */
    .theme-digital .num {
      background: radial-gradient(circle at 50% 20%, #43EA6C 0%, #0DB04B 80%);
    }
    .theme-motor .num {
      background: radial-gradient(circle at 50% 20%, #FF8D43 0%, #E83F0D 80%);
      color: #FFF;
    }
    .theme-gold .num {
      background: radial-gradient(circle at 50% 20%, #FFF354 0%, #D4A500 80%);
    }

    .firework {
      position: absolute;
      right: 16px;
      top: 36px;
      width: 50px;
    }
    .serial-num {
      text-align: center;
      font-size: 12px;
      color: #0DB04B;
      font-weight: 600;
      margin-bottom: 4px;
    }
    .winning-details {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 12px;
      font-size: 10px;
      margin-bottom: 12px;
      color: #555;
    }
    .detail-item .val { color: #0DB04B; font-weight: 700; margin-left: 2px; }
    
    .more-btn-wrap {
      text-align: center;
    }
    .more-btn {
      background: #333;
      color: #FFF;
      border: none;
      border-radius: 12px;
      padding: 4px 22px;
      font-size: 11px;
    }

    /* Category Headers */
    .cat-hdr {
      background: #190B2D;
      color: #FFFFFF;
      font-size: 13px;
      font-weight: 500;
      padding: 10px 14px;
      margin: 0 12px;
      border-left: 4px solid #FF2E4D;
      text-transform: uppercase;
    }

    /* Product Cards */
    .prod-card {
      background: linear-gradient(180deg, #FFFFFF 0%, #E8F0F8 100%);
      border-radius: 12px;
      margin: 10px 12px 16px 12px;
      position: relative;
      overflow: hidden;
      padding-bottom: 16px;
    }
    .hot-badge {
      position: absolute;
      top: 10px;
      left: 10px;
      background: #FF2E4D;
      color: #FFF;
      font-size: 10px;
      padding: 3px 10px;
      border-radius: 12px;
      font-weight: 500;
      z-index: 2;
    }
    .prod-img {
      width: 100%;
      height: auto;
      object-fit: cover;
      background: transparent;
      display: block;
    }
    .prod-info {
      padding: 12px 14px;
      background: transparent;
    }
    .prod-row1 {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 6px;
    }
    .prod-title {
      font-size: 14px;
      color: #222;
      font-weight: 500;
      white-space: nowrap;
    }
    .prod-price {
      font-size: 15px;
      color: #0DB04B;
      font-weight: 600;
    }
    .prod-row2 {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
    }
    .prod-no {
      font-size: 12px;
      color: #0DB04B;
      font-weight: 500;
    }
    .time-box {
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .time-box .time-ico {
      width: 14px;
      height: 14px;
    }
    .time-col {
      display: flex;
      flex-direction: column;
    }
    .time-lbl {
      font-size: 9px;
      color: #FF2E4D;
    }
    .time-val {
      font-size: 10px;
      font-weight: bold;
      color: #FF2E4D;
    }

    .prod-prog-track {
      height: 4px;
      background: var(--primary); /* Deep purple background */
      border-radius: 2px;
      width: 100%;
      overflow: hidden;
      margin-bottom: 6px;
    }
    .prod-prog-fill {
      height: 100%;
      background: #0DB04B; /* Green fill */
    }
    .prod-stats {
      display: flex;
      justify-content: space-between;
      font-size: 11px;
      margin-bottom: 12px;
    }
    .prod-stats .sales {
      color: #0DB04B;
    }
    .prod-stats .rem {
      color: var(--primary);
    }

    .prod-buy-btn {
      width: auto;
      min-width: 130px;
      background: #0DB04B;
      color: #FFF;
      border: none;
      border-radius: 20px;
      padding: 8px 30px;
      font-size: 14px;
      font-weight: 600;
      display: block;
      margin: 0 auto;
      cursor: pointer;
    }

    /* Footer Text */
    .footer-info {
      padding: 10px 16px 30px;
      font-size: 10px;
      color: #FFFFFF;
      line-height: 1.5;
      opacity: 0.9;
    }
    .footer-info p {
      margin: 0 0 10px 0;
    }

    /* Reset anchor colors from bottom bar */
    .bottom-tab-bar a {
      text-decoration: none;
    }

    /* Popup Modal */
    .popup-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.65);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      animation: fadeIn 0.3s ease;
    }
    .popup-content {
      position: relative;
      width: 85%;
      max-width: 340px;
      animation: zoomIn 0.3s ease;
    }
    .popup-content img {
      width: 100%;
      height: auto;
      display: block;
    }
    .popup-img-wrap {
      display: block;
      position: relative;
    }
    .popup-amount {
      position: absolute;
      top: 54%; /* Lowered slightly to match ticket */
      left: 46%; /* Shifted left as purple card is slightly offset in the image */
      transform: translate(-50%, -50%);
      font-size: 38px;
      font-weight: 900;
      color: #3F1900; /* Dark brown to match the mockup */
      text-shadow: 2px 2px 0px #FFF, -2px -2px 0px #FFF, 2px -2px 0px #FFF, -2px 2px 0px #FFF, 0px 3px 6px rgba(0,0,0,0.2); /* White stroke effect */
      letter-spacing: -2px;
      pointer-events: none; /* Let clicks pass through to the image/link */
    }
    .popup-close {
      position: absolute;
      top: -40px;
      right: 0;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 1px solid #FFFFFF;
      color: #FFFFFF;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      cursor: pointer;
      background: rgba(0, 0, 0, 0.3);
    }
    
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    
    @keyframes zoomIn {
      from { transform: scale(0.8); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }
