@font-face {
    font-family: 'GibsonSemiBd';
    src: url('../Fonts/GibsonSemiBd.OTF') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'GibsonSemiBd';
    src: url('../Fonts/GibsonSemiBd.OTF') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'GibsonRegular';
    src: url('../Fonts/GibsonRegular.OTF') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'gibson-medium';
    src: url('../Fonts/gibson-medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

:root {
    --primary-purple: #2f1e58; /* Deep purple */
    --gold: #E8CC7A;
}

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

body {
    font-family: 'GibsonRegular', sans-serif;
    font-weight: normal; /* Use Normal by default */
    background: url('../pic/cad-bg.png') repeat;
    background-size: cover; 
    background-color: #4f298a;
    color: white;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    touch-action: pan-x pan-y; /* Disable pinch zoom */
}

.container {
    width: 100%;
    max-width: 480px; /* Mobile constraint */
    margin: 0 auto;
    /* background-color: var(--primary-purple); REMOVED */
    position: relative;
    min-height: 100vh; /* Changed from height: 100vh */
    /* overflow-y: auto; Changed from overflow: hidden */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
}

/* Header */
header {
    display: flex;
    justify-content: center; /* Logo centered */
    padding: 15px 0;
    position: relative;
    width: 100%;
    flex-shrink: 0;
}

.menu-icon {
    position: absolute;
    left: 20px;
    width: 55px !important; /* Smaller menu button */
    top: 30px !important; /* Aligned with logo top (30px padding) */
    cursor: pointer;
    z-index: 100;
    transform: none !important;
}

.logo {
    width: 100px;
}

/* Main Carousel */
.carousel-container {
    flex: 1; /* Takes available space */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    overflow: visible; /* Allow button overlap */
    padding: 0;
}

.carousel-slide {
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    justify-content: center; /* Vertically center content */
    animation: fadeIn 0.5s ease;
}

.carousel-slide.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.main-img {
    z-index: 1;
    position: relative;
    max-width: 400px;
}

.img-slide1 {
    width: 75%;
    margin-bottom: -5px; /* Overlap for Golden Egg */
}

.img-slide2 {
    width: 70%; /* Smaller for Mandai leaf */
    margin-bottom: 10px; /* Positive space, no overlap */
}
.gold-btn {
    /* Click effect fixes */
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.gold-btn span {
    cursor: pointer;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.cta-btn {
    cursor: pointer;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    max-width: 380px;
}

.btn-slide1 {
    width: 75%; /* Button 1 size */
}

.btn-slide2 {
    width: 65%; /* Button 2 smaller */
}

/* Arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0; /* Remove padding */
    width: 20px; /* Reduced size based on user feedback */
    height: auto;
    z-index: 20;
    outline: none;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}
/* Removed ::after pseudo-elements */

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 60px; /* Increased gap further */
    margin-top: auto; /* Push to bottom before flowers */
    padding: 10px 0;
    width: 100%;
    flex-shrink: 0;
    z-index: 10;
}

.footer-links a {
    color: white;
    text-decoration: underline;
    font-size: 0.9rem;
    font-weight: normal; /* Removed bold */
}

/* Floral Footer */
.footer-decoration {
    width: 100%;
    margin-top: 0; /* Remove extra space */
    display: block;
    flex-shrink: 0;
    line-height: 0; /* Remove inline gap */
    padding-bottom: env(safe-area-inset-bottom); /* Handle mobile fullscreen bottom space */
}

.footer-decoration img {
    width: 100%;
    display: block;
}

/* Side Menu Overlay */
/* Menu Overlay Iframe */
/* Menu Overlay Iframe */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 200;
    border: none;
    background: transparent; /* å…³é”®ï¼šiframe æœ¬èº«ä¸å¸¦é¢œè‰² */
    display: none; /* åˆå§‹éšè— */
}

.menu-overlay.open {
    display: block;
}

/* Restored Menu Component Styles */
.menu-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center; /* Center logo */
    position: relative;
}

.menu-wrapper {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    padding-top: 50px; 
    padding-bottom: 800px; /* Added bottom darkening area */
    display: flex;
    flex-direction: column;
}

.menu-content {
    width: 100%; 
    background: #493285; /* Lighter Purple for Menu Background */
    height: auto;
    margin-left: auto; /* Fit to right */
}

.menu-list {
    list-style: none;
    padding: 0 0 10px 0; /* Remove top padding to flush first item */
    margin: 0; /* Remove default ul margin */
    flex: 1; 
}

.menu-list li {
    padding: 0; 
    margin-bottom: 0; /* Reduced spacing significantly */
}

.menu-list li a {
    color: white;
    text-decoration: none;
    font-size: 1.25rem; /* Increased size */
    display: block;
    font-family: 'gibson-medium', sans-serif;
    font-weight: 500;
    padding: 15px 30px; /* Comfortable touch target */
    transition: background-color 0.3s;
}

.menu-list li a.active {
    background-color: #2f1e58; /* Active Highlight */
    font-weight: 600; /* Optional: make active slightly bolder */
}

/* Styles reused inside menu.html via import, but overrides applied there */


.stylized-form-box {
    width: 90%;
    max-width: 380px;
    margin: 20px auto; 
    position: relative;
    /* No background or border to match Figure 2 */
}

/* Dots removed per user request */


input, button, select, textarea {
    font-family: 'GibsonRegular', sans-serif;
    font-weight: normal;
}

/* Global Gold Button */
.gold-btn {
    position: relative;
    background: #3e0073;
    background-clip: padding-box; 
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 12px 50px;
    font-family: 'GibsonSemiBd', sans-serif;
    font-weight: bold;
    font-size: 1.4rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    background-image: linear-gradient(#3e0073, #3e0073), linear-gradient(90deg, #FDB931 0%, #F9D976 40%, #FDB931 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    color: #E8CC7A;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    text-align: center;
}

.gold-btn span {
    background: linear-gradient(to right, #FDB931 0%, #F9D976 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Global T&C Modal */
.tnc-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 4000;
    justify-content: center;
    align-items: center;
}

.tnc-content {
    background: #3e0073;
    padding: 30px;
    border-radius: 20px;
    border: 2px solid #FDB931;
    width: 90%;
    max-width: 420px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
}

.tnc-title {
    color: #FDB931;
    font-family: 'GibsonSemiBd', sans-serif;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.tnc-body {
    color: white;
    font-family: 'GibsonRegular', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-y: auto;
    padding-right: 15px;
    text-align: left;
    flex: 1;
}

.tnc-body h3 {
    color: #FDB931;
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
    font-family: 'GibsonSemiBd', sans-serif;
}

.tnc-body ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.tnc-body p {
    margin-bottom: 10px;
}

.list-style-none {
    list-style-type: none;
}

.close-tnc {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #FDB931;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.tnc-footer {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.tnc-btn {
    padding: 10px 25px;
    border-radius: 25px;
    border: none;
    font-family: 'GibsonSemiBd', sans-serif;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.tnc-btn.accept {
    background: #FDB931;
    color: #3e0073;
}

.tnc-btn.accept:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tnc-btn.reject {
    background: transparent;
    color: #FDB931;
    border: 1px solid #FDB931;
}

.sku-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 0.8rem;
    border: 1px solid #FDB931;
}

.sku-table th {
    background: #FDB931;
    color: #3e0073;
    padding: 8px;
    text-align: left;
    font-family: 'GibsonSemiBd', sans-serif;
}

.sku-table td {
    border: 1px solid #FDB931;
    padding: 5px 8px;
    color: white;
}

/* Prize Table in T&C */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 15px 0;
    -webkit-overflow-scrolling: touch;
}

.prize-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    color: white;
    min-width: 500px; /* Force scroll on small screens */
}

.prize-table th, .prize-table td {
    border: 1px solid #FDB931;
    padding: 8px 5px;
    text-align: center;
    vertical-align: middle;
}

.prize-table thead th {
    background: #FDB931;
    color: #3e0073;
    font-family: 'GibsonSemiBd', sans-serif;
    text-transform: uppercase;
}

.prize-table th.purp-head {
    background: #2f1e58;
    color: #FDB931;
}

.prize-table tbody tr:nth-child(even) {
    background: rgba(253, 185, 49, 0.1);
}

.prize-table tbody td {
    font-family: 'GibsonRegular', sans-serif;
}

/* Global Warning Popup */
.warning-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 5000;
    justify-content: center;
    align-items: center;
}

.warning-content {
    background: #3e0073;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #FDB931;
    text-align: center;
    max-width: 80%;
}

.warning-text {
    color: #E8CC7A;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.close-popup {
    background: #FDB931;
    color: #3e0073;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

/* Custom Scrollbar for T&C */
.tnc-body::-webkit-scrollbar, .table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.tnc-body::-webkit-scrollbar-track, .table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.tnc-body::-webkit-scrollbar-thumb, .table-container::-webkit-scrollbar-thumb {
    background: #FDB931;
    border-radius: 4px;
}