/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    touch-action: manipulation;
}

/* App Container */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar */
.sidebar {
    width: 200px;
    background: #242424;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #333;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.menu-label {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-toggle {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
}

.nav-items {
    list-style: none;
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.nav-item:hover {
    background: #2a2a2a;
}

.nav-item.active {
    background: linear-gradient(90deg, #ff6b35, #ff8c42);
    color: white;
}

.nav-icon {
    font-size: 20px;
}

.nav-text {
    font-size: 14px;
    font-weight: 500;
}

.nav-badge {
    position: absolute;
    right: 15px;
    background: #ff4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #333;
    text-align: center;
}

.brand {
    font-size: 14px;
    font-weight: 600;
    color: #ff6b35;
}

.version {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    background: #242424;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    background: #333;
    border: none;
    color: #aaa;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.category-tab:hover {
    background: #444;
    color: white;
}

.category-tab.active {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
}

/* Page Container */
.page-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.page {
    display: none;
    height: 100%;
    overflow-y: auto;
    padding: 20px;
}

.page.active {
    display: block;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* AI Banner */
.ai-banner {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #2a2a4a, #3a3a5a);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #4a4a6a;
}

.ai-banner-icon {
    font-size: 40px;
}

.ai-banner-content {
    flex: 1;
}

.ai-banner-title {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 4px;
}

.ai-banner-text {
    font-size: 16px;
}

.ai-banner-btn {
    background: #ff6b35;
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.ai-banner-btn:active {
    transform: scale(0.95);
}

/* Menu Items */
.menu-item {
    background: #2a2a2a;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.menu-item:hover {
    background: #333;
    transform: translateY(-2px);
}

.menu-item:active {
    transform: scale(0.98);
}

.menu-item-image {
    width: 80px;
    height: 80px;
    background: #333;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.menu-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-item-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.menu-item-desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.menu-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b35;
}

.menu-item-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.menu-item-tag.fresh {
    background: #22c55e;
    color: white;
}

.menu-item-tag.popular {
    background: #f59e0b;
    color: white;
}

.menu-item-tag.recommended {
    background: #8b5cf6;
    color: white;
}

.menu-item-tag.vegan {
    background: #10b981;
    color: white;
}

/* Chatbot */
.chatbot-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

.chatbot-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #242424;
    border-radius: 16px;
    margin-bottom: 16px;
}

.chatbot-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.chatbot-name {
    font-size: 18px;
    font-weight: 600;
}

.chatbot-status {
    font-size: 13px;
    color: #22c55e;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.chat-message {
    margin-bottom: 16px;
    display: flex;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 80%;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.5;
}

.chat-message.bot .chat-bubble {
    background: #2a2a2a;
    border-bottom-left-radius: 4px;
}

.chat-message.user .chat-bubble {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    border-bottom-right-radius: 4px;
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.suggestion-btn {
    background: #333;
    border: 1px solid #444;
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-btn:hover {
    background: #444;
    border-color: #ff6b35;
}

.chatbot-input {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #242424;
    border-radius: 16px;
}

.chatbot-input input {
    flex: 1;
    background: #333;
    border: none;
    color: white;
    padding: 14px 20px;
    border-radius: 25px;
    font-size: 15px;
    outline: none;
}

.chatbot-input input::placeholder {
    color: #666;
}

.chat-send {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-send:active {
    transform: scale(0.9);
}

/* Games */
.games-container {
    max-width: 800px;
    margin: 0 auto;
}

.games-title {
    font-size: 28px;
    margin-bottom: 24px;
    text-align: center;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.game-card {
    background: #2a2a2a;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.2s;
}

.game-card:hover {
    transform: translateY(-4px);
    background: #333;
}

.game-icon {
    font-size: 50px;
    margin-bottom: 16px;
}

.game-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.game-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.game-btn {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    border: none;
    color: white;
    padding: 14px 32px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.game-btn:active {
    transform: scale(0.95);
}

/* Tellerpreise */
.tellerpreise-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.tellerpreise-container h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.teller-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.teller-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.teller-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--teller-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.teller-price {
    font-size: 16px;
    font-weight: 600;
}

/* Placeholder */
.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.placeholder-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.placeholder-content h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.placeholder-content p {
    font-size: 16px;
    color: #888;
}

/* Touch Feedback */
@media (hover: none) {
    .menu-item:hover,
    .game-card:hover,
    .nav-item:hover {
        transform: none;
        background: inherit;
    }
    
    .menu-item:active,
    .game-card:active {
        transform: scale(0.98);
        background: #333;
    }
}

/* Page Titles */
.page-title {
    font-size: 28px;
    margin-bottom: 12px;
    text-align: center;
}

.page-subtitle {
    font-size: 16px;
    color: #888;
    text-align: center;
    margin-bottom: 30px;
}

/* Angebote */
.angebote-container {
    max-width: 900px;
    margin: 0 auto;
}

.angebote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.angebot-card {
    background: #2a2a2a;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transition: all 0.2s;
}

.angebot-card:hover {
    transform: translateY(-2px);
    background: #333;
}

.angebot-card.highlight {
    background: linear-gradient(135deg, #2a2a4a, #3a3a5a);
    border: 1px solid #ff6b35;
}

.angebot-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff6b35;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
}

.angebot-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.angebot-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.angebot-desc {
    font-size: 14px;
    color: #aaa;
    line-height: 1.5;
}

.angebot-code {
    margin-top: 12px;
    background: #333;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    color: #ff6b35;
}

/* Tellerpreise Enhanced */
.tellerpreise-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.teller-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

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

.teller-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.teller-price {
    font-size: 18px;
    font-weight: 700;
}

.teller-examples {
    font-size: 12px;
    color: #888;
}

.teller-info {
    background: #2a2a2a;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 14px;
}

/* Standorte */
.standorte-container {
    max-width: 900px;
    margin: 0 auto;
}

.standorte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.standort-card {
    background: #2a2a2a;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s;
}

.standort-card:hover {
    background: #333;
}

.standort-card.coming-soon {
    background: #1a1a2a;
    border: 2px dashed #444;
    text-align: center;
}

.standort-city {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.standort-badge {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.standort-address {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 12px;
}

.standort-hours {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.open-badge {
    background: #22c55e;
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 8px;
}

.standort-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature {
    background: #333;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
}

/* My Yooji's */
.myyoojis-container {
    max-width: 500px;
    margin: 0 auto;
}

.profile-card {
    background: #2a2a2a;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.profile-name {
    font-size: 22px;
    font-weight: 600;
}

.profile-status {
    font-size: 14px;
    color: #888;
}

.myyoojis-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #ff6b35;
}

.stat-label {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.myyoojis-levels {
    background: #2a2a2a;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.myyoojis-levels h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.level-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.level-item.active {
    background: #333;
    opacity: 1;
}

.level-icon {
    font-size: 24px;
}

.level-name {
    flex: 1;
    font-weight: 500;
}

.level-points {
    font-size: 13px;
    color: #888;
}

.myyoojis-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    background: #333;
    border: none;
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn.primary {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
}

.action-btn:active {
    transform: scale(0.98);
}

/* Coupons */
.coupon-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #333;
}

.coupon-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.coupon-list {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
}

.no-coupons {
    text-align: center;
    color: #666;
    padding: 20px;
    font-size: 14px;
}

.coupon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #333;
    border-radius: 8px;
    margin-bottom: 8px;
}

.coupon-item:last-child {
    margin-bottom: 0;
}

.coupon-desc {
    font-size: 14px;
    font-weight: 600;
}

.coupon-code {
    font-size: 12px;
    color: #ff6b35;
    font-family: monospace;
}

.coupon-use-btn {
    background: #ff6b35;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.coupon-redeem {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.coupon-redeem input {
    flex: 1;
    background: #333;
    border: 1px solid #444;
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    text-transform: uppercase;
}

.coupon-redeem input::placeholder {
    text-transform: none;
    color: #666;
}

.coupon-message {
    font-size: 14px;
    min-height: 20px;
}

.coupon-message .success {
    color: #22c55e;
}

.coupon-message .error {
    color: #ef4444;
}

/* Nachhaltigkeit */
.nachhaltigkeit-container {
    max-width: 900px;
    margin: 0 auto;
}

.nachhaltig-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.nachhaltig-card {
    background: #2a2a2a;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s;
}

.nachhaltig-card:hover {
    background: #333;
}

.nachhaltig-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.nachhaltig-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.nachhaltig-desc {
    font-size: 14px;
    color: #aaa;
    line-height: 1.5;
}

.progress-bar {
    background: #333;
    height: 8px;
    border-radius: 4px;
    margin-top: 16px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    border-radius: 4px;
}

.progress-label {
    font-size: 12px;
    color: #22c55e;
    margin-top: 6px;
}

.nachhaltig-cta {
    background: linear-gradient(135deg, #2a4a2a, #3a5a3a);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    font-size: 15px;
    border: 1px solid #4a6a4a;
}

/* Main Header */
.main-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #242424;
}

.main-header .category-tabs {
    flex: 1;
    padding: 0;
    background: none;
}

/* Cart Button */
.cart-btn {
    position: relative;
    background: #333;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    z-index: 10;
    -webkit-tap-highlight-color: rgba(255, 107, 53, 0.3);
    touch-action: manipulation;
    user-select: none;
}

.cart-btn:hover {
    background: #444;
}

.cart-btn:active {
    transform: scale(0.95);
    background: #ff6b35;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff6b35;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart Panel */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    z-index: 101;
    transform: translateX(100%);
}

.cart-panel.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
}

.cart-header h3 {
    font-size: 20px;
}

.close-cart {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.cart-empty-icon {
    font-size: 60px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.cart-empty-hint {
    font-size: 13px;
    margin-top: 8px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #2a2a2a;
    border-radius: 12px;
    margin-bottom: 10px;
}

.cart-item-emoji {
    font-size: 32px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.cart-item-price {
    font-size: 13px;
    color: #ff6b35;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #333;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #444;
}

.qty-btn:active {
    transform: scale(0.9);
}

.qty-value {
    font-size: 16px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #333;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 18px;
}

.cart-total {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b35;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.checkout-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.checkout-btn:not(:disabled):active {
    transform: scale(0.98);
}

/* Add Button on Menu Items */
.add-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #ff6b35;
    color: white;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-btn:active {
    transform: scale(0.9);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: white;
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 200;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s;
    z-index: 200;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Order Status Page */
.order-container {
    max-width: 600px;
    margin: 0 auto;
}

.no-order {
    text-align: center;
    padding: 60px 20px;
}

.no-order-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-order h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.no-order p {
    color: #888;
    margin-bottom: 24px;
}

.order-card {
    background: #2a2a2a;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.order-id {
    font-size: 14px;
    color: #888;
    font-family: monospace;
}

.order-status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.order-status-badge.confirmed {
    background: #3b82f6;
    color: white;
}

.order-status-badge.preparing {
    background: #f59e0b;
    color: white;
}

.order-status-badge.quality {
    background: #8b5cf6;
    color: white;
}

.order-status-badge.ready {
    background: #22c55e;
    color: white;
}

.order-progress {
    margin-bottom: 20px;
}

.progress-bar-order {
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill-order {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #ff8c42);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

.progress-labels span.active {
    color: #ff6b35;
    font-weight: 600;
}

.order-estimate {
    background: #333;
    padding: 14px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.estimate-icon {
    font-size: 24px;
}

.order-ready-banner {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-weight: 600;
}

.ready-icon {
    font-size: 28px;
}

.order-items {
    margin-bottom: 20px;
}

.order-items h4 {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.order-item:last-of-type {
    border-bottom: none;
}

.order-item-emoji {
    font-size: 24px;
}

.order-item-name {
    flex: 1;
    font-size: 14px;
}

.order-item-qty {
    color: #888;
    font-size: 13px;
}

.order-item-price {
    font-size: 14px;
    font-weight: 600;
}

.order-total {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 2px solid #444;
    font-size: 18px;
    font-weight: 700;
}

.order-total span:last-child {
    color: #ff6b35;
}

.order-timeline {
    border-top: 1px solid #333;
    padding-top: 20px;
}

.order-timeline h4 {
    font-size: 14px;
    color: #888;
    margin-bottom: 16px;
}

.timeline-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 18px;
    bottom: 0;
    width: 2px;
    background: #333;
}

.timeline-item.done::before {
    background: #ff6b35;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #333;
    flex-shrink: 0;
    margin-top: 3px;
}

.timeline-item.done .timeline-dot {
    background: #ff6b35;
}

.timeline-text {
    font-size: 14px;
    font-weight: 500;
}

.timeline-time {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.new-order-btn {
    width: 100%;
    padding: 16px;
    background: #333;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.new-order-btn:hover {
    background: #444;
}

/* Games Active */
.game-active {
    max-width: 600px;
    margin: 0 auto;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.back-btn {
    background: #333;
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.game-stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #aaa;
}

.game-result {
    text-align: center;
    padding: 40px;
    background: #2a2a2a;
    border-radius: 20px;
    margin-top: 20px;
}

.result-icon {
    font-size: 60px;
    margin-bottom: 16px;
}

.result-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.result-text {
    font-size: 16px;
    color: #aaa;
    margin-bottom: 20px;
}

.result-code {
    background: #333;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 18px;
    margin-bottom: 20px;
    color: #ff6b35;
}

/* Memory Game */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.memory-card {
    aspect-ratio: 1;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

.memory-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.card-front {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    font-weight: bold;
}

.card-back {
    background: #2a2a2a;
    transform: rotateY(180deg);
    font-size: 40px;
}

/* Quiz Game */
.quiz-container {
    background: #2a2a2a;
    border-radius: 20px;
    padding: 30px;
}

.quiz-question {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.4;
}

.quiz-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-answer {
    background: #333;
    border: 2px solid #444;
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.quiz-answer:hover:not(:disabled) {
    border-color: #ff6b35;
    background: #3a3a3a;
}

.quiz-answer:active:not(:disabled) {
    transform: scale(0.98);
}

.quiz-answer.correct {
    background: #22c55e;
    border-color: #22c55e;
}

.quiz-answer.wrong {
    background: #ef4444;
    border-color: #ef4444;
}

.quiz-answer:disabled {
    cursor: default;
}

/* Wheel Game */
.wheel-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.wheel-pointer {
    font-size: 40px;
    color: #ff6b35;
    margin-bottom: -15px;
    z-index: 10;
}

.wheel {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    position: relative;
    background: conic-gradient(
        #ff6b35 0deg 45deg,
        #22c55e 45deg 90deg,
        #3b82f6 90deg 135deg,
        #f59e0b 135deg 180deg,
        #8b5cf6 180deg 225deg,
        #ef4444 225deg 270deg,
        #06b6d4 270deg 315deg,
        #ec4899 315deg 360deg
    );
    box-shadow: 0 0 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(0,0,0,0.3);
    border: 4px solid #333;
}

.wheel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: #1a1a1a;
    border-radius: 50%;
    z-index: 5;
    border: 3px solid #333;
}

.wheel-segment {
    display: none;
}

.wheel-labels {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.wheel-label {
    position: absolute;
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    white-space: nowrap;
}

.spin-btn {
    margin-top: 30px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    border: none;
    color: white;
    padding: 18px 50px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    touch-action: manipulation;
}

.spin-btn:hover:not(:disabled) {
    transform: scale(1.05);
}

.spin-btn:active:not(:disabled) {
    transform: scale(0.95);
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
}

.spin-btn:disabled {
    background: #666;
    cursor: not-allowed;
}

.spin-info-box {
    text-align: center;
    padding: 16px;
    background: #2a2a2a;
    border-radius: 12px;
    margin-bottom: 20px;
}

.spins-available {
    font-size: 20px;
    font-weight: 700;
    color: #22c55e;
}

.spins-info {
    font-size: 16px;
    color: #888;
}

.spin-info-box small {
    color: #666;
    font-size: 12px;
}

.wheel-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 20px;
    padding: 16px;
    background: #2a2a2a;
    border-radius: 12px;
    max-width: 320px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.legend-item.win {
    color: #22c55e;
}

.legend-item.lose {
    color: #888;
}

.legend-item.retry {
    color: #f59e0b;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

/* Menu Item Tag - Spicy */
.menu-item-tag.spicy {
    background: #ef4444;
    color: white;
}

.menu-item-tag.special {
    background: #8b5cf6;
    color: white;
}

.menu-item-tag.vegetarian {
    background: #22c55e;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar-header {
        padding: 15px;
        justify-content: center;
    }
    
    .menu-label {
        display: none;
    }
    
    .nav-item {
        padding: 16px;
        justify-content: center;
    }
    
    .nav-text,
    .nav-badge {
        display: none;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .category-tab {
        padding: 10px 18px;
        font-size: 13px;
    }
}
