body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0 10px 70px;
}

.header {
    background: #fff;
    padding: 15px;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #1e3c72;
    width: 100%;
    max-width: calc(100% - 20px);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    z-index: 10001;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
}

.brand h1 {
    margin: 0;
    font-size: clamp(20px, 5vw, 24px);
    font-weight: 700;
    color: #1e3c72;
}

.brand p {
    margin: 5px 0 0;
    font-size: clamp(12px, 3vw, 14px);
    color: #666;
}

.icon-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.icon-row button {
    background: #fff;
    border: 2px solid #2a5298;
    border-radius: 50%;
    width: clamp(35px, 10vw, 40px);
    height: clamp(35px, 10vw, 40px);
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-row button:hover {
    transform: scale(1.2);
    background-color: #e0e7ff;
}

.icon-row img {
    width: clamp(18px, 5vw, 20px);
    height: clamp(18px, 5vw, 20px);
    filter: none;
}

.profile-info {
    display: none;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), inset 0 0 12px rgba(0, 0, 0, 0.4);
    font-size: clamp(12px, 3vw, 14px);
    width: clamp(250px, 90%, 280px);
    line-height: 1.6;
    border: 2px solid #e0e7ff;
}

.profile-info.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.profile-info label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.profile-info input {
    width: 95%;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-top: 5px;
    font-size: clamp(11px, 3vw, 13px);
}

.profile-info button {
    margin-top: 12px;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    background: #2a5298;
    color: white;
    cursor: pointer;
    font-size: clamp(12px, 3vw, 14px);
    transition: background 0.3s ease;
}

.profile-info button:hover {
    background: #1e3c72;
}

.notification {
    display: none;
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: opacity 0.5s ease;
}

.notification.active {
    display: block;
    animation: fadeInOut 3s ease forwards;
}

.result-notification {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #28a745, #219653);
    color: white;
    padding: 20px;
    border-radius: 12px;
    z-index: 2000;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 25px rgba(40, 167, 69, 0.5);
    text-align: center;
    font-size: clamp(16px, 4vw, 18px);
    font-weight: bold;
}

.result-notification.active {
    display: block;
    animation: fadeInOut 4s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    10% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    90% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

.new-menu {
    position: fixed;
    bottom: 5px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    padding: 10px 0;
    border-radius: 12px;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    max-width: calc(100% - 20px);
    height: 60px;
}

.menu-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    transition: transform 0.2s ease;
}

.menu-icon img {
    width: clamp(25px, 8vw, 30px);
    height: clamp(25px, 8vw, 30px);
    filter: brightness(0.5) invert(1);
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.menu-icon:not(.active) img {
    opacity: 0.5;
}

.menu-icon.active img {
    animation: glow 1.5s ease-in-out infinite alternate;
    filter: none;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px #fff, 0 0 10px #ffd700;
    }
    to {
        box-shadow: 0 0 10px #fff, 0 0 20px #ffd700;
    }
}

.menu-icon:hover {
    transform: scale(1.1);
}

.menu-icon:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.menu-icon.active {
    border: 2px solid #ffd700;
}

.slideshow-container {
    width: 100%;
    max-width: calc(100% - 20px);
    height: clamp(200px, 50vw, 300px);
    margin: clamp(100px, 25vw, 120px) auto 15px;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    z-index: 1;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(30px, 10vw, 40px);
    height: clamp(30px, 10vw, 40px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(18px, 5vw, 24px);
    color: #1e3c72;
    user-select: none;
    transition: background 0.3s ease;
    z-index: 2;
}

.prev:hover, .next:hover {
    background: rgb(188, 185, 185);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.wheel-section {
    width: 100%;
    max-width: calc(100% - 20px);
    margin: 0 auto;
    padding: 2%;
    z-index: 1;
}

.wheel-container {
    text-align: center;
    margin: 20px auto;
    max-width: clamp(300px, 90%, 400px);
    padding: 20px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
    border: 2px solid #ffd700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.wheel-container:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.3);
}

.wheel-container h2 {
    color: #ffd700;
    font-size: clamp(24px, 6vw, 28px);
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
    letter-spacing: 1.5px;
}

.wheel-wrapper {
    width: clamp(200px, 70vw, 280px);
    height: clamp(200px, 70vw, 280px);
    margin: 0 auto 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wheel {
    width: clamp(160px, 60vw, 240px);
    height: clamp(160px, 60vw, 240px);
    border: 5px solid #ffffff;
    border-radius: 50%;
    overflow: hidden;
    background: conic-gradient(
        #ffd700 0deg 36deg,
        #c0392b 36deg 72deg,
        #2980b9 72deg 108deg,
        #27ae60 108deg 144deg,
        #8e44ad 144deg 180deg,
        #f1c40f 180deg 216deg,
        #e67e22 216deg 252deg,
        #16a085 252deg 288deg,
        #d35400 288deg 324deg,
        #3498db 324deg 360deg
    );
    position: relative;
    transform-origin: center center;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), inset 0 0 12px rgba(0, 0, 0, 0.4);
    transition: transform 5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.wheel[data-spinning="true"] {
    animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), inset 0 0 12px rgba(0, 0, 0, 0.4); }
    100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), inset 0 0 15px rgba(0, 0, 0, 0.5); }
}

.wheel-inner {
    width: clamp(60px, 20vw, 80px);
    height: clamp(60px, 20vw, 80px);
    background: linear-gradient(145deg, #ffffff, #bdc3c7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    font-size: clamp(24px, 8vw, 32px);
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 8px rgba(255, 255, 255, 0.5);
    border: 3px solid #ffd700;
    transition: transform 0.3s ease;
}

.wheel-inner::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3), transparent);
    border-radius: 50%;
    z-index: -1;
}

.wheel-inner::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255,215,0,0.2), transparent);
    border-radius: 50%;
    z-index: -2;
    animation: subtleSpin 10s linear infinite;
}

@keyframes subtleSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.reward-info {
    background: #fff;
    color: #222;
    border-radius: 10px;
    padding: 12px;
    margin-top: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 1;
}

.wheel-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.view-btn, .spin-btn {
    background: linear-gradient(135deg, #ffd700, #f1c40f);
    color: #1a1a2e;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: clamp(14px, 4vw, 16px);
    font-weight: 600;
    width: clamp(100px, 30vw, 120px);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.view-btn:hover, .spin-btn:hover {
    background: linear-gradient(135deg, #f1c40f, #d4ac0d);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.item-details {
    display: none;
    background: #f8f9fa;
    color: #1a1a2e;
    padding: 15px;
    flex-direction: column;
    gap: 10px;
}

.item-details.active {
    display: flex;
}

.info-section {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-section h4 {
    margin: 0 0 8px;
    font-size: clamp(12px, 3vw, 14px);
    color: #2a5298;
    font-weight: 500;
}

.info-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-section ul li {
    font-size: clamp(11px, 2.5vw, 13px);
    padding: 4px 0;
    border-bottom: 1px solid #e0e7ff;
}

.info-section p {
    font-size: clamp(11px, 2.5vw, 13px);
    margin: 0;
    padding: 4px 0;
}

.related-items-container {
    margin-top: 10px;
}

.related-items-container h4 {
    font-size: clamp(12px, 3vw, 14px);
    color: #2a5298;
    font-weight: 500;
    margin: 0 0 8px;
}

.related-items {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: thin;
    scrollbar-color: #ffd700 #f8f9fa;
}

.related-items::-webkit-scrollbar {
    height: 6px;
}

.related-items::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 8px;
}

.related-items::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 8px;
}

.related-items .related-item {
    flex: 0 0 auto;
    width: clamp(100px, 25vw, 120px);
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.related-items .related-item:hover {
    transform: translateY(-2px);
}

.related-items .related-item img {
    width: 100%;
    height: clamp(60px, 15vw, 80px);
    object-fit: cover;
    border-radius: 6px;
}

.related-items .related-item h5 {
    font-size: clamp(10px, 2.5vw, 12px);
    margin: 5px 0;
    color: #1a1a2e;
}

.related-items .related-item p {
    font-size: clamp(9px, 2vw, 11px);
    color: #666;
    margin: 0 0 5px;
}

.related-items .related-item .order-btn {
    background: linear-gradient(135deg, #ffd700, #f1c40f);
    color: #1a1a2e;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: clamp(9px, 2vw, 11px);
    font-weight: 600;
    width: 100%;
    transition: background 0.3s ease, transform 0.2s ease;
}

.related-items .related-item .order-btn:hover {
    transform: translateY(-1px);
}

.menu-section {
    width: 100%;
    padding: 5px;
    z-index: 1;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    justify-items: center;
    align-items: stretch;
    width: 100%;
}

.menu-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, grid-column 0.3s ease, grid-row 0.3s ease;
    width: 100%;
    height: 250px;
    position: relative;
    display: flex;
    flex-direction: column;
    color: white;
}

.menu-item.expanded {
    grid-column: span 2;
    grid-row: span 2;
    height: auto;
    transform: scale(1.02);
    z-index: 2;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.menu-header .order-btn {
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.menu-header .order-btn:hover {
    background: white;
}

.menu-header .order-btn img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.menu-header .item-name {
    font-size: clamp(10px, 1vw, 12px);
    font-weight: 400;
    flex-grow: 1;
    margin: 0 10px;
    cursor: pointer;
    text-shadow: 2px 2px 4px yellow;
}

.menu-header .price {
    font-size: clamp(8px, 2vw, 10px);
    color: #e67e22;
    font-weight: 600;
}

.menu-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.show-more-btn {
    background: #2a5298;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: clamp(10px, 2.5vw, 12px);
    margin-top: 10px;
    transition: background 0.3s ease;
}

.show-more-btn:hover {
    background: #1e3c72;
}

@media (max-width: 600px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .menu-item {
        height: 120px;
    }
    .menu-item.expanded {
        grid-column: span 2;
        grid-row: span 2;
    }
    .menu-header .order-btn img {
        width: 14px;
        height: 14px;
    }
    .menu-header .item-name {
        font-size: clamp(8px, 2vw, 10px);
    }
    .menu-header .price {
        font-size: clamp(6px, 1.5vw, 8px);
    }
}