/* ==========================================================================
   ENTERPRISE RESTAURANT TEMPLATE - CORE CSS
   Author: Umitcan Cinar (System Architect)
   ========================================================================== */

:root {
    --bg-main: #ffffff;
    --bg-alt: #f8f9fa;
    --text-main: #1a1a1a;
    --text-muted: #6c757d;
    --primary-color: #e63946;
    --primary-hover: #c1121f;
    --secondary-color: #1d3557;
    --accent-color: #457b9d;
    --border-color: #e9ecef;
    --card-bg: #ffffff;
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

[data-theme="dark"] {
    --bg-main: #0f1014;
    --bg-alt: #16181d;
    --text-main: #f8f9fa;
    --text-muted: #adb5bd;
    --primary-color: #ff4d5a;
    --primary-hover: #ff7680;
    --secondary-color: #a8dadc;
    --border-color: #2a2d35;
    --card-bg: #1c1e24;
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.7);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.w-100 {
    width: 100%;
}

.box-shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* --- YÜKLEME EKRANI --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    animation: forceKillPreloader 3s forwards;
}

.loader-content {
    text-align: center;
}

.plate-loader {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.spinning-icon {
    font-size: 2rem;
    color: var(--primary-color);
    animation: counter-spin 1.5s linear infinite;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.loader-text span {
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--text-muted);
    letter-spacing: normal;
}

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

@keyframes counter-spin {
    100% {
        transform: rotate(-360deg);
    }
}

@keyframes forceKillPreloader {
    0% {
        opacity: 1;
        visibility: visible;
    }

    85% {
        opacity: 1;
        visibility: visible;
    }

    99% {
        opacity: 0;
        visibility: hidden;
    }

    100% {
        opacity: 0;
        visibility: hidden;
        z-index: -9999;
        display: none;
    }
}

/* --- BUTONLAR --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

.disabled-btn {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #fff;
    color: #fff;
    backdrop-filter: blur(5px);
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn-glow {
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.5);
}

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(230, 57, 70, 0.8);
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(var(--bg-main), 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 16, 20, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar.scrolled .logo {
    color: var(--text-main);
}

.logo span,
.logo i {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li {
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1.05rem;
    padding: 5px 0;
}

.navbar.scrolled .nav-link {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-btn,
.admin-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.navbar.scrolled .theme-btn,
.navbar.scrolled .admin-link {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-main);
}

.theme-btn:hover,
.admin-link:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: rotate(15deg);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--text-main);
}

/* --- MOBİL MENÜ --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-main);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    padding: 80px 30px;
    display: flex;
    flex-direction: column;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links a {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.mobile-nav-links a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: url('https://images.unsplash.com/photo-1514933651103-005eec06c04b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    width: 100%;
}

.hero-text-box {
    max-width: 700px;
}

.hero-subtitle {
    display: inline-block;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-section h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-section h1 .highlight {
    color: var(--primary-color);
    font-style: italic;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.hero-scroll-indicator.scroll-indicator-visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-arrow-icon {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    animation: arrowBounce 1.4s ease-in-out infinite;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

.scroll-arrow-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.95);
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.9;
    }

    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}


/* --- SECTION HEADINGS --- */
.section-heading {
    margin-bottom: 3rem;
}

.section-heading .subtitle {
    display: block;
    font-family: var(--font-body);
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.heading-line {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lead-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.features-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.feature-item i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.1);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.about-images {
    position: relative;
}

.img-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.img-wrapper:hover img {
    transform: scale(1.05);
}

.main-img {
    height: 500px;
    width: 80%;
    margin-left: auto;
    border: 10px solid var(--bg-main);
    z-index: 2;
    position: relative;
}

.sub-img {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 50%;
    height: 300px;
    border: 10px solid var(--bg-main);
    z-index: 3;
}

.experience-badge {
    position: absolute;
    top: 30px;
    left: 10px;
    background: var(--primary-color);
    color: #fff;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 4;
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

.experience-badge .years {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

/* --- MENU SECTION --- */
.menu-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.menu-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.menu-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.menu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.menu-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.menu-badge.hot {
    background: var(--primary-color);
}

.menu-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.menu-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 10px;
}

.menu-title-row h3 {
    font-size: 1.25rem;
    margin: 0;
}

.price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.menu-desc {
    flex-grow: 1;
    font-size: 0.95rem;
}

.btn-add-cart {
    margin-top: 1rem;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.btn-add-cart:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.menu-item.hide {
    display: none;
}

/* --- PROMO SECTION --- */
.promo-section {
    position: relative;
    padding: 120px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.promo-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1555939594-58d7cb561ad1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    z-index: 1;
    background-attachment: fixed;
}

.promo-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
}

.promo-content h2 {
    font-size: 3rem;
    color: #fff;
}

.promo-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* --- GALLERY --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(230, 57, 70, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    color: #fff;
    font-size: 2rem;
    transform: scale(0);
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-item.w-2 {
    grid-column: span 2;
}

.gallery-item.h-2 {
    grid-row: span 2;
}

/* --- RESERVATION FORM --- */
.reservation-wrapper {
    display: flex;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--card-bg);
}

.res-info {
    flex: 1;
    padding: 4rem 3rem;
    background: var(--primary-color);
    color: #fff;
}

.res-info h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.res-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.res-contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.res-contact-list li {
    position: relative;
    z-index: 5;
    /* Ensure it is above other elements */
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    width: 100%;
    cursor: pointer;
    pointer-events: auto;
    /* Force clickability */
}

.contact-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.res-contact-list i {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.res-form-container {
    flex: 2;
    padding: 4rem 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row:nth-child(2) {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    display: none;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* --- FLOATING BUTTONS --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: var(--shadow-md);
    z-index: 100;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: translateY(-5px);
}

.tooltip-text {
    position: absolute;
    right: 75px;
    background: #fff;
    color: #333;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.whatsapp-float:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform: translateY(20px);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-5px);
}

/* --- FOOTER --- */
.footer {
    background: var(--bg-alt);
    padding: 80px 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-logo span,
.footer-logo i {
    color: var(--primary-color);
}

.footer-desc {
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    color: var(--text-main);
}

.social-icon:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links i {
    font-size: 0.8rem;
    color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    background: var(--card-bg);
    color: var(--text-main);
    outline: none;
}

.newsletter-form button {
    padding: 0 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-hover);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

.developer-signature p {
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cooking-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    color: var(--primary-color);
    letter-spacing: 2px;
    font-weight: 700;
}

.cooking-author .pan {
    color: var(--primary-color);
    animation: panToss 1.5s infinite ease-in-out;
    display: inline-block;
    font-size: 16px;
}

.cooking-author .letters {
    display: inline-flex;
}

.cooking-author .letter {
    display: inline-block;
    animation: cookLetter 1.5s infinite alternate;
}

.cooking-author .letter:nth-child(2) {
    animation-delay: 0.1s;
}

.cooking-author .letter:nth-child(3) {
    animation-delay: 0.2s;
}

.cooking-author .letter:nth-child(4) {
    animation-delay: 0.3s;
}

.cooking-author .letter:nth-child(5) {
    animation-delay: 0.4s;
}

.cooking-author .letter:nth-child(6) {
    animation-delay: 0.5s;
}

.cooking-author .letter:nth-child(7) {
    animation-delay: 0.6s;
}

.cooking-author .letter:nth-child(8) {
    animation-delay: 0.7s;
}

.cooking-author .letter:nth-child(9) {
    animation-delay: 0.8s;
}

@keyframes panToss {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-3px) rotate(-15deg);
    }
}

@keyframes cookLetter {
    0% {
        transform: translateY(0) scale(1);
        color: var(--primary-color);
        text-shadow: none;
    }

    50% {
        transform: translateY(-4px) scale(1.1);
        color: #fff;
        text-shadow: 0 0 8px rgba(201, 168, 76, 0.8);
    }

    100% {
        transform: translateY(0) scale(1);
        color: var(--primary-color);
        text-shadow: none;
    }
}

/* --- LEGAL MODAL ZIRHLI TASARIM --- */
.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.legal-modal.active {
    display: flex !important;
    animation: fadeIn 0.3s forwards;
}

.legal-modal-content {
    background: var(--card-bg);
    width: 90%;
    max-width: 600px;
    padding: 2rem;
    border-radius: var(--radius-lg);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.legal-modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.legal-text p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.legal-text strong {
    color: var(--text-main);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- ADMİN PANELİ (CMS) STİLLERİ --- */
.admin-body {
    background-color: var(--bg-main);
    height: 100vh;
    overflow: hidden;
    display: flex;
}

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: var(--transition);
}

.login-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.login-box {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.login-box h2 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.login-box p {
    margin-bottom: 2rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--primary-color);
}

.error-text {
    color: var(--primary-color);
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
}

.admin-dashboard {
    display: flex;
    width: 100%;
    height: 100%;
}

.admin-dashboard.hidden {
    display: none;
}

.sidebar {
    width: 280px;
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.admin-badge {
    display: inline-block;
    background: rgba(230, 57, 70, 0.1);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 5px;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
    flex-grow: 1;
}

.sidebar-menu li {
    padding: 1rem 2rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-muted);
}

.sidebar-menu li i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-menu li:hover,
.sidebar-menu li.active {
    color: var(--primary-color);
    background: rgba(230, 57, 70, 0.05);
    border-right: 4px solid var(--primary-color);
}

.sidebar-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.developer-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.main-content {
    flex-grow: 1;
    padding: 3rem;
    overflow-y: auto;
    background: var(--bg-main);
}

.admin-section.hidden {
    display: none;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.stat-card i {
    font-size: 3rem;
    color: var(--primary-color);
    background: rgba(230, 57, 70, 0.1);
    padding: 15px;
    border-radius: 12px;
}

.stat-info h3 {
    font-size: 1rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.stat-info p {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    line-height: 1;
}

.admin-grid-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.form-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.form-container h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-container label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition);
}

.admin-input:focus {
    border-color: var(--primary-color);
}

.admin-hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 2rem 0;
}

.form-help-text {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-style: italic;
    margin-top: -10px;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    padding: 15px;
    background: var(--bg-alt);
    color: var(--text-main);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}

.admin-badge-status {
    background: #d4edda;
    color: #155724;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-delete {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-delete:hover {
    background: #c82333;
}

.admin-toast {
    position: fixed;
    bottom: 30px;
    right: -300px;
    background: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: 0.5s ease;
    z-index: 9999;
}

.admin-toast.show {
    right: 30px;
}

/* --- SCROLL ANİMASYONLARI --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .main-img {
        width: 100%;
        height: 400px;
    }

    .sub-img {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reservation-wrapper {
        flex-direction: column;
    }

    .res-info,
    .res-form-container {
        padding: 2rem;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .admin-grid-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .admin-link {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .form-row,
    .form-row:nth-child(2) {
        grid-template-columns: 1fr;
    }

    .gallery-item.w-2 {
        grid-column: span 1;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }

    .sidebar {
        position: absolute;
        left: -280px;
        z-index: 1000;
        height: 100%;
        transition: 0.3s;
    }

    /* === MOBILE UI POLISH === */
    .section-padding {
        padding: 40px 0;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .menu-card {
        margin-bottom: 0;
    }

    .menu-img {
        height: 200px;
    }

    .cart-item-info {
        flex-direction: column;
        gap: 4px;
    }

    .cart-item-actions {
        flex-wrap: wrap;
        margin-top: 8px;
    }

    .stories-container {
        padding: 0 10px;
        gap: 12px;
    }

    .story-item {
        min-width: 65px;
    }

    .story-ring {
        width: 58px;
        height: 58px;
    }

    .story-label {
        font-size: 0.65rem;
    }
}

/* ==========================================
   SEPET SİSTEMİ (CART)
   ========================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    max-width: 100%;
    height: 100vh;
    background: var(--bg-main);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease-in-out;
}

.cart-sidebar.open {
    right: 0;
}

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

.cart-header h3 {
    margin: 0;
    color: var(--text-main);
}

.cart-header button {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.cart-items {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.cart-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: var(--text-main);
}

.cart-item-info span {
    color: var(--primary-color);
    font-weight: 600;
}

.cart-item-remove {
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 16px;
    transition: 0.3s;
}

.cart-item-remove:hover {
    color: var(--primary-color);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-alt);
}

.cart-total {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    color: var(--text-main);
}

.cart-fab {
    position: fixed;
    bottom: 110px;
    /* Enhanced position to prevent overlapping with WhatsApp */
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.4);
    z-index: 1000;
    transition: transform 0.3s;
}

.cart-fab:hover {
    transform: translateY(-5px);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #0f1014;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #fff;
}

[data-theme="dark"] .cart-count {
    background: #fff;
    color: #0f1014;
    border-color: #0f1014;
}

.cart-fly-item {
    position: fixed;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 14px;
    animation: flightToCart 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes flightToCart {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(calc(var(--flight-x) / 2), calc(var(--flight-y) / 2)) scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: translate(var(--flight-x), var(--flight-y)) scale(0.1);
        opacity: 0.2;
    }
}

/* Cart FAB pulse when item added */
@keyframes cartPulseAnim {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.42);
        box-shadow: 0 0 0 8px rgba(201, 168, 76, 0.25);
    }

    60% {
        transform: scale(1.18);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }
}

.cart-fab.cart-pulse {
    animation: cartPulseAnim 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}


/* ========================================================
   NEW ENTERPRISE FEATURES CSS — v3.0
   ======================================================== */

:root {
    --gold: #C9A84C;
    --gold-dim: rgba(201, 168, 76, 0.12);
    --warning: #f59e0b;
    --warning-dim: rgba(245, 158, 11, 0.12);
    --info: #3b82f6;
    --info-dim: rgba(59, 130, 246, 0.12);
}

.hidden {
    display: none !important;
}

/* ======================================================
   STORIES BAR
   ====================================================== */
.stories-bar {
    position: relative;
    z-index: 99;
    width: 100%;
    background: transparent;
    border-bottom: none;
    padding: 14px 0;
    display: flex;
    justify-content: flex-start;
    overflow: hidden;
}

.stories-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 0 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stories-container::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    min-width: 72px;
    transition: transform 0.2s;
}

.story-item:hover {
    transform: scale(1.08);
}

.story-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--gold), #e8b84b, var(--primary-color));
    margin-bottom: 6px;
}

.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--card-bg);
    border: 3px solid var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gold);
}

.story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.story-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-main);
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

/* STORY MODAL */
.story-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.story-modal-overlay.active {
    opacity: 1;
}

.story-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 80vh;
    max-height: 750px;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.story-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    z-index: 10;
}

.story-progress-fill {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width linear;
}

.story-header {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

.story-avatar-sm {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gold-dim);
    border: 2px solid var(--gold);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.story-info strong {
    color: #fff;
    font-size: 0.85rem;
    display: block;
}

.story-info span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
}

.story-close-btn {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.story-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.story-media {
    width: 100%;
    height: 100%;
}

.story-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.story-nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.story-prev {
    left: 10px;
}

.story-next {
    right: 10px;
}

/* ======================================================
   TABLEMAP — MASA HARİTASI
   ====================================================== */
.tablemap-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-dot.available {
    background: #22c55e;
}

.legend-dot.reserved {
    background: #ef4444;
}

.legend-dot.selected {
    background: var(--gold);
}

.tablemap-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;

    /* Fix for scroll chaining / trapped scroll issue */
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.tablemap-grid::-webkit-scrollbar {
    width: 4px;
}

.tablemap-grid::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}




.tablemap-zone-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tablemap-zone-tables {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tablemap-table {
    width: 80px;
    padding: 10px 6px;
    border-radius: 10px;
    border: 2px solid;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.tablemap-table.available {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.06);
}

.tablemap-table.available:hover {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    transform: scale(1.05);
}

.tablemap-table.reserved {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.06);
    opacity: 0.6;
    cursor: not-allowed;
}

.tablemap-table.selected {
    border-color: var(--gold);
    background: var(--gold-dim);
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.3);
}

.tablemap-table-icon {
    font-size: 1rem;
    margin-bottom: 4px;
}

.tablemap-table.available .tablemap-table-icon {
    color: #22c55e;
}

.tablemap-table.reserved .tablemap-table-icon {
    color: #ef4444;
}

.tablemap-table.selected .tablemap-table-icon {
    color: var(--gold);
}

.tablemap-table-label {
    font-size: 0.85rem;
    font-weight: 700;
}

.tablemap-table-cap {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.tablemap-selected-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    padding: 10px 14px;
    background: var(--gold-dim);
    border-radius: 8px;
    margin-top: 14px;
}

.tablemap-selected-info i {
    font-size: 1rem;
}

.res-step-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ======================================================
   CHECKOUT MODAL
   ====================================================== */
.checkout-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 8000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}

.checkout-modal-overlay.active {
    opacity: 1;
}

.checkout-modal-box {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 36px 32px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    animation: modal-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-in {
    from {
        transform: translateY(20px) scale(0.97);
    }

    to {
        transform: translateY(0) scale(1);
    }
}

.checkout-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: background 0.2s;
}

.checkout-modal-close:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.checkout-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.checkout-modal-icon {
    width: 56px;
    height: 56px;
    background: rgba(230, 57, 70, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0 auto 12px;
}

.checkout-modal-header h2 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.checkout-modal-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checkout-field-group {
    margin-bottom: 14px;
}

.checkout-field-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.checkout-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.checkout-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.checkout-summary {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 14px;
    margin: 16px 0;
}

.checkout-summary-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-color);
}

.checkout-summary-row:last-child {
    border-bottom: none;
}

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 700;
    padding-top: 8px;
    margin-top: 4px;
    color: var(--primary-color);
}

.checkout-error {
    color: #ef4444;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 8px;
    min-height: 18px;
}

/* ======================================================
   ORDER STATUS PANEL (in cart sidebar)
   ====================================================== */
.order-status-panel {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    border: 1px solid var(--border-color);
}

.order-status-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-main);
}

.order-status-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    transition: all 0.3s;
    opacity: 0.4;
}

.status-step.active {
    background: rgba(230, 57, 70, 0.08);
    opacity: 1;
}

.status-step.done {
    opacity: 0.7;
}

.status-step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
    transition: all 0.3s;
}

.status-step.active .status-step-dot {
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: 0 0 8px rgba(230, 57, 70, 0.4);
}

.status-step.done .status-step-dot {
    border-color: #22c55e;
    background: #22c55e;
}

.status-step-text strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1px;
}

.status-step-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.order-status-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #f97316;
}

#order-countdown-val {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

/* ======================================================
   STAFF LOGIN DROPDOWN
   ====================================================== */
.developer-signature {
    position: relative;
}

.staff-login-dropdown {
    position: absolute;
    bottom: 32px;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 8px;
    min-width: 220px;
    box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.15);
    z-index: 999;
    animation: dropdown-up 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dropdown-up {
    from {
        transform: translateY(10px) scale(0.96);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.staff-login-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.2s;
}

.staff-login-option:hover {
    background: var(--bg-alt);
}

.staff-login-option i {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(230, 57, 70, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.staff-login-option:last-child i {
    background: rgba(201, 168, 76, 0.1);
    color: var(--gold);
}

.staff-login-option strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
}

.staff-login-option span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0;
}

/* ======================================================
   MENU WAIT TIME BADGE
   ====================================================== */
.menu-wait-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
    background: var(--gold-dim);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

/* ========================================
   KVKK CONSENT MODAL
   ======================================== */
.kvkk-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kvkk-modal-overlay.kvkk-active {
    opacity: 1;
}

.kvkk-modal-box {
    background: var(--bg-card);
    /* Fallback */
    background-color: rgb(24, 24, 28);
    /* Solid dark background to prevent bleed-through */
    border: 1px solid var(--border-color);
    border-radius: 20px;
    max-width: 560px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.kvkk-modal-overlay.kvkk-active .kvkk-modal-box {
    transform: translateY(0);
}

.kvkk-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s;
    z-index: 1;
}

.kvkk-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
}

.kvkk-modal-header {
    padding: 32px 32px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.kvkk-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(201, 168, 76, 0.05));
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
    color: var(--gold);
}

.kvkk-modal-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
}

.kvkk-modal-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.kvkk-modal-body {
    padding: 24px 32px;
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-height: 220px;
    overflow-y: auto;
}

.kvkk-modal-body::-webkit-scrollbar {
    width: 4px;
}

.kvkk-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.kvkk-modal-body::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

.kvkk-modal-body strong {
    color: var(--text);
}

.kvkk-modal-footer {
    padding: 20px 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.kvkk-link {
    font-size: 0.82rem;
    color: var(--gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.kvkk-link:hover {
    opacity: 1;
}

.kvkk-confirm-btn {
    width: 100%;
    max-width: 320px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.kvkk-cancel-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    transition: color 0.2s;
}

.kvkk-cancel-btn:hover {
    color: var(--text);
}

@media (max-width: 600px) {
    .kvkk-modal-header {
        padding: 24px 20px 16px;
    }

    .kvkk-modal-body {
        padding: 16px 20px;
    }

    .kvkk-modal-footer {
        padding: 16px 20px 24px;
    }
}