@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
    /* DEFAULT (DARK MODE) */
    --primary-color: #4393F9;
    --primary-dark: #3182F6;
    --primary-light: rgba(67, 147, 249, 0.15);

    --bg-color: rgba(18, 18, 18, 0.95);
    --surface-color: #1A1A24;
    --surface-elevated: #2A2A35;

    --text-main: #FFFFFF;
    --text-sub: #B0B8C1;
    --border-color: #2F313D;

    --red: #F04452;
    --gradient-bg: linear-gradient(135deg, rgba(42, 42, 53, 0.8) 0%, rgba(26, 26, 36, 0.8) 100%);
    --body-bg: #000000;
    --bg-image: url('bg-dark.png');
    --nav-bg: rgba(18, 18, 18, 0.85);
    --surface-bg: #1A1A24;
}

:root.light-mode {
    /* LIGHT MODE */
    --primary-color: #3182F6;
    --primary-dark: #1b64da;
    --primary-light: rgba(49, 130, 246, 0.1);

    --bg-color: rgba(255, 255, 255, 0.9);
    --surface-color: #FFFFFF;
    --surface-elevated: #F2F4F6;

    --text-main: #191F28;
    --text-sub: #4E5968;
    --border-color: #E5E8EB;

    --red: #F04452;
    --gradient-bg: linear-gradient(135deg, rgba(242, 244, 246, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%);
    --body-bg: #E5E8EB;
    --bg-image: url('bg-light.png');
    --nav-bg: rgba(255, 255, 255, 0.85);
    --surface-bg: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: var(--body-bg);
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Use app-container for scrolling instead of body to fix fixed bottom nav in iframes/webviews */
    overflow: hidden;
}

body {
    background-color: var(--body-bg);
    display: flex;
    justify-content: center;
    transition: background-color 0.3s, background-image 0.5s;
}

/* Mobile App Container Simulation */
.app-container {
    width: 100%;
    max-width: 1200px;
    /* Responsive PC width */
    margin: 0 auto;
    background-color: transparent;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    color: var(--text-main);
    padding-bottom: 20px;
    /* Prevent text selection and long-press callouts for a native feel */
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.app-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--bg-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: -1;
}

@media (max-width: 600px) {
    .app-container {
        max-width: 100%;
        box-shadow: none;
    }
}



/* Header Sections */
.main-header {
    background: var(--gradient-bg);
    padding: 20px 24px 30px 24px;
    color: var(--text-main);
    border-radius: 0 0 32px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* Header Decorator Gradient Glows */
.header-glow {
    position: absolute;
    top: -50px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(67, 147, 249, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.header-glow-2 {
    position: absolute;
    bottom: -30px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(240, 68, 82, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.top-badge {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 16px;
    border: 1px solid rgba(67, 147, 249, 0.3);
}

.search-container {
    margin-bottom: 24px;
    padding-top: 10px;
}

.search-bar {
    background-color: var(--bg-color);
    border-radius: 12px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: var(--text-sub);
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-bar:active {
    background-color: var(--border-color);
}

.search-placeholder {
    color: var(--text-tertiary);
    font-size: 15px;
    font-weight: 500;
}

.header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.theme-toggle-btn {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.theme-toggle-btn:active {
    transform: scale(0.9);
}

.banner-text h2 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.highlight {
    color: var(--primary-color);
}

.benefit-btn {
    background-color: var(--surface-elevated);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.benefit-btn:active {
    background-color: var(--border-color);
    transform: scale(0.97);
}

.banner-image {
    font-size: 60px;
    color: var(--primary-color);
    margin-right: 5px;
    filter: drop-shadow(0 4px 10px rgba(67, 147, 249, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(-5deg);
    }

    50% {
        transform: translateY(-8px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(-5deg);
    }
}

/* Navigation Tabs */
.nav-tabs-wrapper {
    position: sticky;
    top: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10;
    padding: 10px 10px 0;
}

.nav-tabs,
.admin-tabs {
    display: flex !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
    padding-bottom: 8px !important;
}

.admin-tabs li {
    padding: 10px 16px !important;
    font-size: 14px !important;
    border-radius: 8px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
}

.admin-tabs li.active {
    background: var(--primary-color);
    color: #000 !important;
    border-color: var(--primary-color);
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tabs li,
.admin-tabs li {
    padding: 16px 14px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-tertiary);
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.nav-tabs li.active,
.admin-tabs li.active {
    color: var(--text-main);
    font-weight: 800;
}

.nav-tabs li.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 14px;
    right: 14px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px 3px 0 0;
}

.admin-tabs li.active::after {
    display: none !important;
}

/* Menu Grid */
.menu-section {
    padding: 24px 20px;
    padding-bottom: 90px;
    background-color: transparent;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 32px;
    column-gap: 16px;
}

@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
        column-gap: 24px;
    }
}

@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(5, 1fr);
        column-gap: 32px;
    }
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.menu-item:active {
    transform: scale(0.95);
    opacity: 0.8;
}

.menu-icon-wrapper {
    width: 76px;
    height: 76px;
    background-color: var(--surface-color);
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    font-size: 38px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.dimmed {
    filter: grayscale(1) opacity(0.5);
    pointer-events: none;
}

.menu-item.sold-out {
    cursor: default;
}

.badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: var(--red);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(240, 68, 82, 0.4);
    z-index: 2;
}

.quick-add-btn {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 5;
    transition: all 0.2s;
}

.quick-add-btn:active {
    transform: scale(0.8);
    background-color: var(--primary-dark);
}

.menu-name {
    font-size: 15px;
    color: var(--text-main);
    font-weight: 700;
    text-align: center;
    word-break: keep-all;
}

.menu-price {
    font-size: 13px;
    color: var(--text-sub);
    font-weight: 600;
    margin-top: 5px;
    text-align: center;
}

/* Cart Badge for Bottom Nav */
.nav-cart-badge {
    position: absolute;
    top: -6px;
    right: -12px;
    background-color: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 10px;
    border: 2px solid var(--nav-bg);
    min-width: 18px;
    text-align: center;
}

/* Bottom Navigation */
.bottom-nav {
    position: sticky;
    margin-top: auto;
    bottom: 20px;
    /* Floating look on PC */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 500px;
    /* Keep nav compact and centered */
    height: 72px;
    flex-shrink: 0;
    background-color: var(--nav-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    /* Rounded floating nav */
    z-index: 1000;
    padding-bottom: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

@media (max-width: 600px) {
    .bottom-nav {
        bottom: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        height: 75px;
        padding-bottom: env(safe-area-inset-bottom);
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    gap: 6px;
}

.nav-item i {
    font-size: 22px;
}

.nav-item.active {
    color: var(--text-main);
}

/* Modal System */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    /* Slightly darker/more solid */
    z-index: 2000;
    display: none;
    align-items: flex-end;
    /* Default: Bottom sheet */
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s;
}

.modal.centered {
    align-items: center;
}

.modal-content {
    background: var(--surface-color);
    width: 100%;
    border-radius: 28px 28px 0 0;
    padding: 24px;
    padding-bottom: 90px;
    animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
    overflow-y: auto;
}

.modal.centered .modal-content {
    width: 90%;
    max-width: 400px;
    border-radius: 32px;
    padding-bottom: 24px;
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-top: 4px;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
}

.close-modal {
    background: var(--surface-elevated);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: var(--text-sub);
    cursor: pointer;
}

.modal-body {
    overflow-y: auto;
    flex-grow: 1;
    padding-bottom: 24px;
}

.modal-body::-webkit-scrollbar {
    display: none;
}

.order-items {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
}

.order-item-info {
    display: flex;
    align-items: center;
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--text-sub);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.remove-item-btn:hover {
    color: var(--red);
}

.order-item-details {
    display: flex;
    flex-direction: column;
}

.order-item-details span {
    font-weight: 700;
    color: var(--text-main);
}

.order-item-price {
    font-size: 14px;
    color: var(--text-sub);
    font-weight: 600;
    margin-top: 4px;
}

.clear-cart-text-btn {
    background: none;
    border: none;
    color: var(--text-sub);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.clear-cart-text-btn:hover {
    background-color: var(--surface-elevated);
    color: var(--text-main);
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--surface-elevated);
    border-radius: 10px;
    padding: 4px 6px;
}

.qty-btn {
    background: var(--border-color);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
}

.qty-btn:active {
    background-color: var(--text-tertiary);
}

.qty-input-wrapper {
    display: flex;
    align-items: center;
    gap: 2px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
}

.qty-input {
    width: 40px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 800;
    text-align: right;
    padding: 0;
    outline: none;
    font-family: inherit;
}

/* Remove arrows for number input */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Detail Modal Styles */
.detail-review-section {
    margin-top: 20px;
}

#detailReviewsList .review-card {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 12px;
    background-color: var(--bg-color);
}

#detailReviewsList .review-content {
    font-size: 14px;
    margin-bottom: 4px;
}

#detailReviewsList .review-time {
    font-size: 10px;
}

.modal-body::-webkit-scrollbar {
    width: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

/* Review Section Styles */
.review-write-card {
    background-color: var(--surface-color);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.star-rating {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.star-rating i {
    cursor: pointer;
    color: var(--text-sub);
    transition: transform 0.2s, color 0.2s;
}

.star-rating i:hover {
    transform: scale(1.1);
}

#reviewText,
#detailReviewText {
    width: 100%;
    background-color: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px;
    color: var(--text-main);
    font-size: 15px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

#reviewText:focus,
#detailReviewText:focus {
    border-color: var(--primary-color);
    background-color: var(--surface-color);
    box-shadow: 0 0 0 3px rgba(0, 100, 255, 0.1);
}

#reviewText::placeholder,
#detailReviewText::placeholder {
    color: var(--text-sub);
    opacity: 0.6;
}

.review-card {
    background-color: var(--surface-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-time {
    font-size: 11px;
    color: var(--text-sub);
}

.review-content {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-main);
    margin-bottom: 12px;
    word-break: break-all;
}

.review-footer {
    font-size: 12px;
    color: var(--text-sub);
    font-weight: 500;
}

.qty-controls span {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    user-select: none;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-sub);
}

.required {
    color: var(--red);
}

.form-group input {
    width: 100%;
    padding: 16px;
    background-color: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s;
}

.form-group input::placeholder {
    color: var(--text-tertiary);
}

.form-group input:focus {
    border-color: var(--primary-color);
    background-color: var(--bg-color);
}

.info-box {
    background-color: var(--surface-elevated);
    color: var(--text-sub);
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid var(--border-color);
}

.info-box strong {
    color: var(--primary-color);
}

.modal-footer {
    padding-top: 10px;
}

.submit-order-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-order-btn:active {
    background-color: var(--primary-dark);
}

.submit-order-btn:disabled {
    background-color: var(--surface-elevated);
    color: var(--text-tertiary);
    cursor: not-allowed;
    border: 1px solid var(--border-color);
}

/* Auth Toggle */
.auth-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    background: var(--surface-elevated);
    padding: 6px;
    border-radius: 12px;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-sub);
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab.active {
    background: var(--surface-color);
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Toast */
.toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(42, 42, 53, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    z-index: 3000;
    transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.toast.show {
    top: 40px;
}

.toast i {
    color: var(--primary-color);
    font-size: 20px;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Admin Dashboard Styles */
#adminDashboardSection {
    margin-top: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-sub);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-trend {
    font-size: 12px;
    color: var(--text-sub);
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.dashboard-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    min-height: 200px;
}

.dashboard-card h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chart-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chart-label-group {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
}

.chart-bar-bg {
    height: 8px;
    background: var(--surface-elevated);
    border-radius: 4px;
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.top-customer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--surface-elevated);
    border-radius: 12px;
    margin-bottom: 8px;
}

.customer-name {
    font-weight: 700;
    font-size: 14px;
}

.customer-stats {
    font-size: 12px;
    color: var(--text-sub);
    text-align: right;
}

.delete-review-btn {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-sub);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.delete-review-btn:hover {
    color: var(--red);
    border-color: var(--red);
}

/* --- Roulette & Token System --- */
.roulette-container {
    position: relative;
    width: min(500px, 95vw);
    height: min(500px, 95vw);
    margin: 20px auto;
    border-radius: 50%;
    background: var(--surface-bg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 12px solid var(--surface-elevated);
}

.roulette-wheel {
    position: relative;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 5s cubic-bezier(0.15, 0, 0.15, 1);
    background: #FFB300;
    border: 4px solid var(--surface-bg);
    box-sizing: border-box;
}


.roulette-pointer {
    position: absolute;
    top: -25px;
    /* Moved up more */
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    /* Larger */
    height: 50px;
    /* Larger */
    background: var(--red);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.roulette-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: 50% 50%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15px;
    clip-path: polygon(50% 50%, 50% 0, 86.3% 0);
}

.roulette-segment span {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100px;
    height: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(18deg);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 35px;
    font-size: 15px;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 1), 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    white-space: nowrap;
}

.stat-card i {
    color: var(--primary-color);
}

#orderProgressBar {
    box-shadow: 0 0 10px rgba(255, 179, 0, 0.4);
}

/* Fix for the Token acquisition UI */
#rouletteView .review-write-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#rouletteView .token-method-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--surface-elevated);
    border-radius: 16px;
    min-height: 64px;
}

#rouletteView .token-method-info {
    flex: 1;
    margin-right: 12px;
}

.check-in-btn:disabled {
    background: var(--border-color);
    color: var(--text-sub);
    cursor: default;
}

/* Animations */
@keyframes coin-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: coin-pulse 0.4s ease-in-out;
}

/* Store Selection Styles */
.store-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 10px;
}

@media (min-width: 600px) {
    .store-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.store-card {
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: left;
}

.store-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(67, 147, 249, 0.2);
}

.store-card:active {
    transform: scale(0.97);
}

.store-card.disabled {
    opacity: 0.6;
    cursor: default;
    filter: grayscale(0.5);
}

.store-card.disabled:hover {
    transform: none;
    border-color: var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.store-icon {
    font-size: 36px;
    width: 64px;
    height: 64px;
    background: var(--surface-elevated);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.store-info {
    flex-grow: 1;
}

.store-name {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.store-desc {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.4;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1);
}