/* ==========================================================================
   DARUMA Sushi - Custom & Component Styles
   ========================================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}


/* Custom Cursor - GPU Accelerated (No layout reflow) */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 64px;
    height: 64px;
    background-color: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate3d(-100px, -100px, 0) scale(0);
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 0.2s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#custom-cursor.active {
    opacity: 1;
}

/* GPU Acceleration Helpers */
.slide-item, .atmosphere-slide, .cuisine-card-item, nav, .daruma-user-dropdown, .daruma-policy-dropdown {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Atmosphere Swiper Styles */
.atmosphere-slide {
    width: 80%;
    max-width: 320px;
    height: 450px;
}

@media (min-width: 640px) {
    .atmosphere-slide {
        max-width: 450px;
        height: 500px;
    }
}

@media (min-width: 768px) {
    .atmosphere-slide {
        max-width: 600px;
        height: 550px;
    }
}

@media (min-width: 1024px) {
    .atmosphere-slide {
        max-width: 700px;
        height: 550px;
    }
}

.atmosphere-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4);
    width: 10px;
    height: 10px;
    opacity: 1;
    transition: all 0.3s ease;
}

.atmosphere-swiper .swiper-pagination-bullet-active {
    background: #d4af37;
    width: 30px;
    border-radius: 5px;
}

.atmosphere-swiper .swiper-slide {
    background-position: center;
    background-size: cover;
    opacity: 0.4;
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.atmosphere-swiper .swiper-slide-active {
    opacity: 1;
}

.atmosphere-swiper .swiper-slide-shadow-left,
.atmosphere-swiper .swiper-slide-shadow-right {
    border-radius: 24px;
}

/* Date & Time Input Picker Icons for Dark Theme */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.5;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Toast / Alert Notification */
.daruma-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    padding: 16px 24px;
    border-radius: 9999px;
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid #d4af37;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

.daruma-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   User Profile Capsule & Luxury Dropdown Menu
   ========================================================================== */
.daruma-user-wrapper {
    position: relative;
    display: inline-block;
    padding-top: 4px;
    padding-bottom: 4px;
}

.daruma-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111113 !important;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 9999px;
    padding: 6px 14px 6px 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.daruma-user-btn:hover {
    border-color: #d4af37;
    background: #18181c !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

.daruma-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #f6e05e);
    color: #000000;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.daruma-user-arrow {
    color: #d4af37;
    transition: transform 0.3s ease;
}

.daruma-user-wrapper:hover .daruma-user-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu Card (Strictly Solid Background - Never Transparent) */
.daruma-user-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    width: 270px;
    background-color: #0d0d0f !important;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.98), 0 0 25px rgba(212, 175, 55, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 99999 !important;
    text-align: left;
}

.daruma-user-wrapper:hover .daruma-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* User Info Header */
.daruma-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.daruma-dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d4af37, #fef08a);
    color: #000000;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    flex-shrink: 0;
}

.daruma-dropdown-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.daruma-dropdown-email {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 3px;
}

/* Role Chip */
.daruma-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 10px;
}

.daruma-role-admin {
    background: rgba(127, 29, 29, 0.7);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.daruma-role-staff {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.45);
}

.daruma-role-customer {
    background: rgba(6, 78, 59, 0.7);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.5);
}

/* Menu Action Links */
.daruma-menu-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.daruma-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.daruma-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.daruma-menu-item-gold {
    background: rgba(212, 175, 55, 0.12);
    color: #d4af37 !important;
    font-weight: 600;
    border-color: rgba(212, 175, 55, 0.25);
}

.daruma-menu-item-gold:hover {
    background: #d4af37 !important;
    color: #000000 !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
}

.daruma-menu-item-danger {
    color: #f87171 !important;
    background: transparent;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.daruma-menu-item-danger:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
}

/* ==========================================================================
   Desktop Navigation Bar (3-Column Layout with Perfectly Centered Logo)
   ========================================================================== */
.daruma-desktop-nav {
    display: none;
    width: 100%;
}

@media (min-width: 768px) {
    .daruma-desktop-nav {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        width: 100%;
    }
}

.daruma-desktop-nav-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
}

.daruma-desktop-nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.daruma-desktop-nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
}

/* ==========================================================================
   Policy Modal & Tabs Styles
   ========================================================================== */
.policy-modal-container {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.policy-tab-btn {
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
    white-space: nowrap;
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
}

.policy-tab-btn:hover {
    color: #ffffff;
}

.policy-tab-btn.active {
    color: #d4af37;
    border-bottom-color: #d4af37;
}

.policy-body-scroll {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d4af37 rgba(255, 255, 255, 0.05);
}

.policy-body-scroll::-webkit-scrollbar {
    width: 6px;
}

.policy-body-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.policy-body-scroll::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}

/* Mobile Nav Drawer */
#mobile-menu-drawer {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* ==========================================================================
   Policy Dropdown Menu in Navbar
   ========================================================================== */
.daruma-policy-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.daruma-policy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    color: #fdf6e3;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    cursor: pointer;
    transition: color 0.25s ease;
    padding: 6px 0;
    text-decoration: none !important;
}

.daruma-policy-btn:hover,
.daruma-policy-wrapper:hover .daruma-policy-btn {
    color: #d4af37;
}

.daruma-policy-arrow {
    width: 12px;
    height: 12px;
    color: #d4af37;
    transition: transform 0.3s ease;
}

.daruma-policy-wrapper:hover .daruma-policy-arrow {
    transform: rotate(180deg);
}

.daruma-policy-dropdown {
    position: absolute;
    right: -20px;
    top: 100%;
    margin-top: 8px;
    width: 330px;
    background-color: #0d0d0f !important;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.98), 0 0 25px rgba(212, 175, 55, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 99999 !important;
    text-align: left;
}

.daruma-policy-wrapper:hover .daruma-policy-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.daruma-policy-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    background: transparent;
    width: 100%;
    text-align: left;
}

.daruma-policy-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.daruma-policy-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.daruma-policy-title {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.daruma-policy-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    margin-top: 2px;
    line-height: 1.3;
}

/* ==========================================================================
   Mobile-Specific Optimizations (Responsive UI & UX Enhancements)
   ========================================================================== */

/* 1. Prevent iOS Auto-Zoom on form input focus */
@media screen and (max-width: 767px) {
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="number"],
    input[type="date"],
    input[type="time"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* 2. Remove Grey Tap Highlight on Mobile WebKit */
* {
    -webkit-tap-highlight-color: transparent;
}

/* 3. Utility: Smooth Mobile Scroll with Hidden Scrollbar */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* 4. Mobile Drawer Luxury Animation */
#mobile-menu-drawer {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu-drawer.flex {
    display: flex;
}

/* 5. Mobile Story & Cuisine Horizontal Snap Carousel */
.mobile-snap-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1rem;
}

.mobile-snap-item {
    scroll-snap-align: start;
    flex-shrink: 0;
    min-width: calc(100vw - 3.5rem);
}

@media (min-width: 640px) {
    .mobile-snap-item {
        min-width: 380px;
    }
}

/* 6. Active Tap Feedback for Mobile Touchables */
@media (hover: none) and (pointer: coarse) {
    button:active,
    a:active,
    .slider-btn:active {
        transform: scale(0.96);
        transition: transform 0.1s ease;
    }
}

/* 7. Atmosphere Swiper Mobile Height Refinement */
@media (max-width: 639px) {
    .atmosphere-slide {
        width: 85% !important;
        max-width: 300px !important;
        height: 390px !important;
    }
    .atmosphere-slide h3 {
        font-size: 1.25rem !important;
    }
    .atmosphere-slide p {
        font-size: 0.8rem !important;
    }
}

/* 8. Cuisine Card Mobile Touch Support */
@media (max-width: 640px) {
    .cuisine-card-item {
        width: calc(100vw - 3rem) !important;
        max-width: 360px !important;
        margin: 0 auto;
    }
}

/* 9. Hero Banner Slider Responsive Height (Sleek & Full-Image View) */
.hero-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 190px;
}

@media (min-width: 480px) {
    .hero-slider-container {
        aspect-ratio: 16 / 8.5;
        min-height: 240px;
    }
}

@media (min-width: 640px) {
    .hero-slider-container {
        aspect-ratio: 16 / 8;
        min-height: 300px;
    }
}

@media (min-width: 768px) {
    .hero-slider-container {
        aspect-ratio: 16 / 7.2;
        min-height: 380px;
        max-height: 480px;
    }
}

@media (min-width: 1024px) {
    .hero-slider-container {
        aspect-ratio: 16 / 6.8;
        min-height: 440px;
        max-height: 520px;
    }
}

/* 10. Slider Circular Pagination & Progress */
#slider-pagination {
    position: absolute !important;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 50 !important;
}

@media (min-width: 640px) {
    #slider-pagination {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
}

@media (min-width: 768px) {
    #slider-pagination {
        bottom: 32px;
        right: 32px;
        gap: 12px;
    }
}

.slider-btn {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 50;
}

.slider-btn svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.slider-btn span {
    position: relative;
    z-index: 10;
    font-weight: 700;
    font-size: 13px;
    color: #ffffff;
    pointer-events: none;
}






