/* =====================================================
   GREEN APPLE AJANS TÜM HAKLARI SAKLIDIR
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #a67c61; /* Brand primary color */
    --primary-dark: #8d664d;
    --bg-body: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --border: #eeeeee;
    --safe-area-bottom: env(safe-area-inset-bottom);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.4;
    overflow-x: hidden;
    padding-bottom: calc(100px + var(--safe-area-bottom));
}

.container {
    padding: 0 20px;
}

/* =====================================================
   TOP HEADER
   ===================================================== */

.top-header {
    padding: 20px 20px 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.user-info h1 {
    font-size: 20px;
    font-weight: 400;
    margin: 0;
}

.user-info h1 strong {
    font-weight: 700;
}

.user-info .points {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 4px;
}

.header-icons {
    display: flex;
    gap: 15px;
    font-size: 24px;
}

/* =====================================================
   LOYALTY CIRCLE CHART
   ===================================================== */

/* Loyalty ana alan – aşağı taşmayı engeller */
.loyalty-section {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* SVG + metin kartı */
.chart-container {
    margin-bottom: 8px;   /* Fazla boşluğu kes */
}

/* SVG + alt yazı blok */
.loyalty-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Alt açıklama */
.remaining-text {
    margin-top: 10px;
    margin-bottom: 0;
}

/* Sizin İçin Seçtiklerimiz başlığı yukarı çek */
.section-title {
    margin-top: 12px !important;

}

.chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    z-index: 10;
    border: 1px solid #eee;
}

.chart-center img {
    width: 80px;
    height: auto;
    object-fit: contain;
}

.chart-label {
    position: absolute;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    white-space: nowrap;
}

.label-top { top: -10px; left: 50%; transform: translateX(-50%); color: #dc2626; font-size: 16px; }
.label-left { top: 35%; left: -20px; text-align: right; }
.label-right { top: 35%; right: -20px; text-align: left; }
.label-bottom { bottom: 10px; left: 50%; transform: translateX(-50%); }

.chart-value {
    display: block;
    font-size: 11px;
    color: #333;
    font-weight: 400;
}

/* =====================================================
   HORIZONTAL SCROLL CARDS
   ===================================================== */

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 20px 15px;
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    padding: 0 20px 10px;
    gap: 15px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.food-card {
    flex: 0 0 160px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
}

.food-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.food-card-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
}

/* =====================================================
   MENU BANNER
   ===================================================== */

.menu-banner {
    margin: 0 20px 20px;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    display: block;
    text-decoration: none;
}

.menu-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-banner-text {
    color: white;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* =====================================================
   ACTION BUTTONS (RED)
   ===================================================== */

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 20px;
    margin-bottom: 25px;
}

.action-btn {
    background: var(--primary);
    color: white !important;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s;
}

.action-btn:hover, .action-btn:active, .action-btn:focus {
    background: var(--primary-dark);
    color: white !important;
    text-decoration: none;
}

.action-btn i {
    font-size: 24px;
    color: white !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hover durumunda iconun kaybolmasını engellemek için zorunlu görünürlük */
.action-btn:hover i, 
.action-btn:active i, 
.action-btn:focus i,
.action-btn:hover span + i {
    color: white !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Genel buton hover efekti sırasında içeriğin korunması */
.action-btn:hover * {
    color: white !important;
}

/* =====================================================
   ANNOUNCEMENT CARD (LARGE)
   ===================================================== */

.news-card {
    margin: 0 20px 20px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 220px;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.news-card-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}


/* =====================================================
   BOTTOM NAVIGATION (BIGCHEFS STYLE)
   ===================================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 calc(10px + var(--safe-area-bottom));
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255,255,255,0.8) !important;
    font-size: 11px;
    width: 20%;
}

.nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
    color: inherit !important;
    display: block !important;
}

.nav-item.active {
    color: #ffffff !important;
}

.nav-item:hover, .nav-item:active, .nav-item:focus {
    color: #ffffff !important;
    text-decoration: none;
}

.nav-item.scan-btn-container {
    position: relative;
    top: -30px;
}

.scan-fab {
    width: 70px;
    height: 70px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 5px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scan-fab:active {
    transform: scale(0.9) rotate(5deg);
}

/* =====================================================
   RESPONSIVE & ANIMATIONS
   ===================================================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-container > div, .main-container > h2, .main-container > a {
    animation: fadeIn 0.5s ease forwards;
}

@media (min-width: 768px) {
    .main-container {
        max-width: 500px;
        margin: 0 auto;
        border-left: 1px solid #eee;
        border-right: 1px solid #eee;
        min-height: 100vh;
        background: #fff;
    }
    .bottom-nav {
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
    }
}

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

.food-card img {
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

/* Lightbox Style */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: zoom-out;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


/* =====================================================
   COUPON CARD (MODERN)
   ===================================================== */

.coupon-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin: 15px 20px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.coupon-icon-box {
    width: 60px;
    height: 60px;
    background: #fff5f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 30px;
}

.coupon-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.coupon-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.coupon-code-badge {
    margin-left: auto;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* =====================================================
   ADMIN PANEL STYLES
   ===================================================== */

.admin-container {
    display: flex;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.admin-sidebar {
    width: 260px;
    background-color: #1a1a1a;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.admin-logo {
    padding: 30px 20px;
    border-bottom: 1px solid #333;
}

.admin-logo h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--primary);
}

.admin-logo p {
    font-size: 12px;
    margin: 5px 0 0;
    opacity: 0.6;
}

.admin-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    flex-grow: 1;
}

.admin-menu li {
    margin-bottom: 5px;
}

.admin-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
    gap: 12px;
}

.admin-menu li a i {
    font-size: 18px;
}

.admin-menu li.active a, .admin-menu li a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-left: 4px solid var(--primary);
}

.admin-user {
    padding: 20px;
    border-top: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user i {
    font-size: 32px;
    color: var(--primary);
}

.admin-user div {
    display: flex;
    flex-direction: column;
}

.admin-user strong {
    font-size: 14px;
}

.admin-user small {
    font-size: 11px;
    opacity: 0.6;
}

.admin-content {
    flex-grow: 1;
    margin-left: 260px;
    padding: 30px;
}

.page-header-admin {
    margin-bottom: 30px;
}

.page-header-admin h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.page-header-admin p {
    color: var(--text-muted);
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.stat-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.stat-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.admin-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 100%;
}

.admin-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.tier-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tier-stat-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.tier-stat-label {
    font-weight: 700;
    font-size: 14px;
}

.tier-stat-value {
    font-size: 18px;
    margin: 5px 0;
}

.tier-stat-spend {
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .admin-sidebar {
        width: 70px;
    }
    .admin-sidebar .admin-logo h2, 
    .admin-sidebar .admin-logo p, 
    .admin-sidebar .admin-menu span, 
    .admin-sidebar .admin-user div {
        display: none;
    }
    .admin-content {
        margin-left: 70px;
    }
    .admin-menu li a {
        justify-content: center;
        padding: 15px 0;
    }
}

/* Auth Pages */
.auth-page {
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-bottom: 0;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo h1 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 15px;
}

.auth-title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 12px;
    font-weight: 700;
    border-radius: 8px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-block {
    width: 100%;
}

/* =====================================================
   LOADING SCREEN
   ===================================================== */

.loading-overlay {
    position: relative;
    width: 100%;
    padding: 30px 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading-overlay.hidden {
    display: none;
}

.loader-spinner-sade {
    width: 24px;
    height: 24px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 8px;
}

.loader-text-sade {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

@keyframes progressMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

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

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.loader-logo-small {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
    opacity: 0.8;
    animation: pulseLogo 2s infinite ease-in-out;
}

@keyframes pulseLogo {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.6; }
}

/* =====================================================
   NOTIFICATION SETTINGS MODAL
   ===================================================== */

.notification-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeInOverlay 0.3s ease;
    padding: 20px;
}

.notification-modal-overlay.active {
    display: flex;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.notification-modal {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 25px 20px;
    animation: zoomInModal 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

@keyframes zoomInModal {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.notification-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.notification-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.notification-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.notification-modal-close:hover {
    color: var(--text-main);
    transform: rotate(90deg);
}

.notification-settings-group {
    margin-bottom: 20px;
}

.notification-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.notification-setting-item:hover {
    background: #f0f1f3;
}

.notification-setting-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-setting-label strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.notification-setting-label small {
    font-size: 12px;
    color: var(--text-muted);
}

.notification-toggle {
    position: relative;
    width: 50px;
    height: 28px;
    background: #ddd;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
}

.notification-toggle.active {
    background: var(--primary);
}

.notification-toggle::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    left: 2px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.notification-toggle.active::after {
    left: 24px;
}

.notification-modal-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.notification-modal-footer button {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.notification-modal-footer .btn-save {
    background: var(--primary);
    color: white;
}

.notification-modal-footer .btn-save:hover {
    background: var(--primary-dark);
}

.notification-modal-footer .btn-cancel {
    background: #f0f1f3;
    color: var(--text-main);
}

.notification-modal-footer .btn-cancel:hover {
    background: #e0e1e3;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .notification-modal {
        max-height: 90vh;
    }
}

/* ===== LOYALTY RING (BigChefs style) ===== */
.loyalty-ring{
  position: relative;
  width: 280px;
  height: 340px; /* alttaki yazı için pay */
  margin: 0 auto 10px auto;
}

.ring-svg{
  display:block;
  margin: 0 auto;
}

.ring-center{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -55%);
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(3px);
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  text-align:center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.ring-logo{
  width: 62px;
  height: auto;
  margin-bottom: 8px;
  opacity: 0.95;
}

.ring-amount{
  font-size: 22px;
  font-weight: 800;
  color:#111827;
  line-height: 1.1;
}

.ring-sub{
  font-size: 12px;
  color:#6B7280;
  margin-top: 2px;
}

.ring-bottom-text{
  margin-top: 10px;
  text-align:center;
  font-size: 15px;
  color:#111827;
}

.ring-bottom-text strong{
  font-weight: 800;
}

.ring-bottom-text .muted{
  margin-right: 6px;
}
/* ====== FINAL 3-SEGMENT RING (BigChefs style) ====== */
.chart-modern{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px 0 10px;
}

.tier-ring{
  display:block;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.08));
}

.tier-chip{
  position:absolute;
  top: 10px;
  left: 12px;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  padding:8px 10px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.tier-chip strong{ font-size:13px; }
.tier-chip span{ font-size:11px; color:#6b7280; margin-top:2px; }

.center-modern{
  position:absolute;
  inset: 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  pointer-events:none;
}
.center-logo{
  width:58px;
  height:auto;
  margin-bottom:8px;
}
.center-amount{
  font-size:20px;
  font-weight:800;
  color:#111827;
  letter-spacing:.2px;
}
.center-label{
  font-size:12px;
  color:#6b7280;
  margin-top:2px;
}

.remaining-modern{
  position:absolute;
  bottom: -4px;
  width:100%;
  text-align:center;
}
.remaining-modern .remaining-title{
  font-size:13px;
  color:#111827;
}
.remaining-modern .remaining-value{
  font-size:14px;
  color:#DC2626;
  margin-top:2px;
  font-weight:700;
}

.login-link {
    display: inline-block;
    margin-top: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #d32f2f;
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

.remaining-modern {
    text-align: center;
    margin-top: 20px;
}

.remaining-title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

.remaining-value {
    font-size: 20px;
    font-weight: 700;
    color: #d32f2f;
    margin-top: 4px;
}

.tier-benefit {
    margin-top: 8px;
    font-size: 14px;
    color: #555;
}

.loyalty-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px; /* SVG ile yazı arası */
    margin-top: 10px;
}

.remaining-text {
    text-align: center;
    line-height: 1.4;
}

.remaining-line {
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

.remaining-amount {
    font-size: 20px;
    font-weight: 800;
    color: #d32f2f;
    margin-top: 2px;
}

.tier-benefit {
    margin-top: 6px;
    font-size: 14px;
    color: #555;
}

/* Loyalty ana kapsayıcı */
.loyalty-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* SVG */
.loyalty-visual svg {
    display: block;
    margin: 0 auto;
}

/* Alt metin bloğu */
.remaining-text {
    margin-top: 14px;          /* ← ÜST ÜSTE BİNMENİN ÇÖZÜMÜ */
    text-align: center;
    line-height: 1.4;
}

/* Satırlar */
.remaining-line {
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

.remaining-amount {
    font-size: 20px;
    font-weight: 800;
    color: #d32f2f;
    margin-top: 4px;
}

.tier-benefit {
    margin-top: 6px;
    font-size: 14px;
    color: #444;
}

.modern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 16px 8px;
}

.user-line {
    font-size: 22px;
    line-height: 1.1;
}

.hello {
    color: #777;
    margin-right: 6px;
}

.username {
    font-weight: 700;
}

.tier-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    width: fit-content;
}

.tier-gold {
    background: linear-gradient(135deg, #f4c430, #d4a017);
    color: #111;
}

.congrats-card {
    margin: 20px auto 10px;
    padding: 14px 20px;
    width: fit-content;
    background: rgba(255,255,255,0.9);
    border-radius: 16px;
    font-size: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.loyalty-summary {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

.loyalty-summary .highlight {
    color: #c97a5d;
    font-weight: 600;
}
.howto-btn {
    margin-top: 12px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid #c97a5d;
    background: #fff;
    color: #c97a5d;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.howto-btn:hover {
    background: #c97a5d;
    color: #fff;
}

/* HOW TO MODAL */
.howto-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.howto-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: modalFade 0.25s ease;
}

.howto-modal-content h3 {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
}

.howto-modal-content p {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 10px;
}

.howto-modal-content strong {
    color: #c97a5d;
}

.howto-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
}

@keyframes modalFade {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.howto-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.news-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.news-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.news-slide {
    min-width: 100%;
    box-sizing: border-box;
}

/* Mevcut kartları bozmuyoruz */
.news-card {
    margin-bottom: 0;
}

.announcement-text {
    font-size: 14px !important;   /* ← burada puntoyu sabitliyoruz */
    line-height: 1.5;
    font-weight: 400;
    color: #fff;
    letter-spacing: 0;
    transform: none !important;
    zoom: 1;
}

@media (max-width: 480px) {
    .announcement-text {
        font-size: 15px !important;
    }
}

/* Üst alanı zenginleştir – boşluk hissini alır */
.loyalty-section {
    position: relative;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(201,122,93,0.12),
            rgba(255,255,255,0) 60%
        ),
        repeating-linear-gradient(
            45deg,
            rgba(0,0,0,0.015),
            rgba(0,0,0,0.015) 1px,
            transparent 1px,
            transparent 14px
        );
    padding-top: 16px;
    padding-bottom: 12px;
}

.category-row {
    background: #fff;
    border-radius: 14px;
    padding: 18px 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    font-weight: 600;
    color: #7a7a7a;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.category-row i {
    font-size: 20px;
    color: #c62828;
}

.menu-item {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.menu-text strong {
    font-size: 16px;
    color: #6b6b6b;
}

.menu-text small {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #9a9a9a;
}

.menu-item img {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 12px;
}

.menu-page{
    padding: 16px;
    padding-bottom: 120px; /* bottom bar için */
}

.menu-category h2{
    font-size: 16px;
    font-weight: 700;
    color:#6b7280;
    margin: 24px 0 12px;
    text-transform: uppercase;
}

.menu-item{
    background:#fff;
    border-radius:16px;
    padding:12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:12px;
    box-shadow:0 4px 12px rgba(0,0,0,.04);
}

.menu-item-text h3{
    font-size:15px;
    font-weight:600;
    margin:0 0 6px;
}

.menu-item-text .price{
    font-size:14px;
    font-weight:700;
    color:#c97a5d;
}

.menu-item-text .locked{
    font-size:12px;
    color:#9ca3af;
}

.menu-item-img img{
    width:72px;
    height:72px;
    border-radius:12px;
    object-fit:cover;
}
/* === MENU TASARIMI === */

.menu-page {
    padding: 10px 16px;
}

/* Kategori başlığı */
.menu-category h2 {
    font-size: 15px;
    font-weight: 600;
    color: #6c757d;
    margin: 24px 0 10px;
    text-transform: uppercase;
}

/* Ürün satırı */
.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Sol metin */
.menu-item-text {
    flex: 1;
    padding-right: 12px;
}

.menu-item-text h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #495057;
}

.menu-item-text .price {
    font-size: 14px;
    font-weight: 700;
    color: #c97a5d;
}

.menu-item-text .locked {
    font-size: 12px;
    color: #adb5bd;
}

/* Sağ görsel */
.menu-item-img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f3f5;
}

.menu-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔴 KRİTİK SATIR */
    display: block;
}

/* === KATEGORİ LİSTESİ === */
.menu-category-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 12px;
    text-decoration: none;
    color: #495057;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.menu-category-card i {
    font-size: 18px;
    color: #c97a5d;
}

/* === KATEGORİ KAPAK === */
.category-hero {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    margin-bottom: 20px;
}

.category-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
}

.category-hero-overlay h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}


/* === KATEGORİ LİSTESİ === */
.menu-category-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    background: #fff;
    border-radius: 14px;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #777;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* === KATEGORİ HERO === */
.category-hero {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    margin-bottom: 20px;
}

.category-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
}

.category-hero-overlay h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

/* === ÜRÜN === */
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 14px;
    border-radius: 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.menu-item-text h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.menu-item-text .price {
    color: #c97a5d;
    font-weight: 700;
}

.menu-item-text .locked {
    font-size: 13px;
    color: #999;
}

.menu-item-img img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

/* KATEGORİ LİSTESİ */
.menu-category-list {
    padding: 16px;
}

.menu-category-card {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px;
    margin-bottom:12px;
    background:#fff;
    border-radius:14px;
    font-size:18px;
    font-weight:600;
    color:#666;
    text-decoration:none;
    box-shadow:0 2px 10px rgba(0,0,0,.04);
}

/* HERO */
.category-hero {
    position:relative;
}
.category-hero img {
    width:100%;
    height:220px;
    object-fit:cover;
}
.back-btn {
    position:absolute;
    top:15px;
    left:15px;
    background:#fff;
    border-radius:50%;
    padding:8px;
}

/* ÜRÜN */
.menu-products {
    padding:16px;
}
.menu-product-card {
    display:flex;
    gap:14px;
    background:#fff;
    border-radius:16px;
    padding:14px;
    margin-bottom:14px;
}
.menu-product-card img {
    width:90px;
    height:90px;
    border-radius:12px;
    object-fit:cover;
}
.menu-product-text h3 {
    margin:0;
    font-size:16px;
}
.menu-product-text p {
    font-size:13px;
    color:#888;
    margin:4px 0;
}
.price {
    font-weight:700;
    color:#c0392b;
}
.locked {
    font-size:13px;
    color:#999;
}
/* ===== MENU HOME ===== */

.menu-home {
    background:#f7f7f7;
}

/* HERO */
.menu-hero {
    position:relative;
    height:420px;
    background:url('/assets/img/menu-hero.jpg') center/cover no-repeat;
    padding:20px;
}

.menu-back {
    position:absolute;
    top:20px;
    left:20px;
    background:#fff;
    border-radius:50%;
    padding:10px;
    font-size:18px;
    color:#111;
}

.menu-hero-content {
    position:absolute;
    bottom:150px;
    left:20px;
}

.menu-hero-content h1 {
    color:#fff;
    font-size:36px;
    font-weight:800;
    letter-spacing:2px;
}

/* SEARCH */
.menu-search {
    position:absolute;
    bottom:100px;
    left:20px;
    right:20px;
    background:rgba(255,255,255,.9);
    border-radius:12px;
    padding:12px 16px;
    display:flex;
    gap:10px;
    align-items:center;
}

.menu-search input {
    border:none;
    outline:none;
    width:100%;
    background:none;
    font-size:16px;
}

/* ACTIONS */
.menu-actions {
    position:absolute;
    bottom:40px;
    left:20px;
    right:20px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.btn-feedback {
    background:#b30000;
    color:#fff;
    padding:14px;
    border-radius:12px;
    text-align:center;
    font-weight:700;
    text-decoration:none;
}

.btn-qr {
    background:#b30000;
    color:#fff;
    padding:10px;
    border-radius:12px;
    font-size:13px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

/* CATEGORY LIST */
.menu-category-wrapper {
    background:#fff;
    border-radius:28px 28px 0 0;
    margin-top:-30px;
    padding:20px;
}

.menu-category-item {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px;
    margin-bottom:12px;
    background:#f9f9f9;
    border-radius:16px;
    font-size:18px;
    font-weight:600;
    color:#777;
    text-decoration:none;
}

.menu-category-item i {
    color:#b30000;
    font-size:18px;
}

/* CATEGORY HERO */
.category-hero {
    position:relative;
    height:240px;
}
.category-hero img {
    width:100%;
    height:100%;
    object-fit:cover;
}
.category-hero-overlay {
    position:absolute;
    inset:0;
    background:linear-gradient(to bottom,rgba(0,0,0,.2),rgba(0,0,0,.6));
    display:flex;
    align-items:flex-end;
    padding:20px;
}
.category-hero-overlay h1 {
    color:#fff;
    font-size:26px;
    font-weight:800;
}

/* PRODUCTS */
.menu-products {
    background:#fff;
    border-radius:28px 28px 0 0;
    margin-top:-30px;
    padding:20px;
}

.menu-item {
    display:flex;
    justify-content:space-between;
    gap:15px;
    padding:16px;
    background:#f9f9f9;
    border-radius:16px;
    margin-bottom:14px;
}

.menu-item img {
    width:90px;
    height:90px;
    object-fit:cover;
    border-radius:12px;
}

.menu-item h3 {
    font-size:16px;
    font-weight:700;
}

.price {
    color:#b30000;
    font-weight:700;
    margin-top:6px;
}

.locked {
    font-size:12px;
    color:#999;
}

.menu-back-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-back-btn:active {
    transform: scale(0.92);
}
/* =====================================================
   SUCCESS SCREEN (MODERN)
   ===================================================== */

.success-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin: 20px;
    border: 1px solid #f0f0f0;
    animation: slideUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #f0fdf4;
    color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
    position: relative;
}

.success-icon-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #22c55e;
    animation: pulseOut 2s infinite;
}

@keyframes pulseOut {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.success-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.success-card p {
    color: #666;
    font-size: 15px;
    margin-bottom: 32px;
}

.success-details-box {
    background: #f9f9f9;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 32px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
}

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

.detail-label {
    color: #888;
    font-size: 13px;
    font-weight: 500;
}

.detail-value {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 700;
}

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

.btn-success-main {
    background: var(--primary);
    color: white !important;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-success-outline {
    background: transparent;
    color: var(--primary) !important;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--primary);
    transition: all 0.3s;
}

.btn-success-main:active {
    transform: scale(0.98);
    background: var(--primary-dark);
}

/* ============================================================
   MODERN MENU & ADMIN REDESIGN
   ============================================================ */

:root {
    --scala-gold: #d4a373;
    --scala-dark: #1a1a1a;
    --scala-light: #f8f4f1;
    --scala-glass: rgba(255, 255, 255, 0.8);
    --scala-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --scala-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Menu Grid & Cards */
.menu-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
}

.menu-category-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--scala-dark);
    box-shadow: var(--scala-shadow);
    transition: var(--scala-transition);
    display: flex;
    flex-direction: column;
}

.menu-category-card:active {
    transform: scale(0.95);
}

.category-image {
    height: 120px;
    overflow: hidden;
    background: var(--scala-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-placeholder i {
    font-size: 40px;
    color: var(--scala-gold);
}

.category-details {
    padding: 12px;
    text-align: center;
}

.category-details h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
}

.explore-btn {
    font-size: 11px;
    color: var(--scala-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modern Menu Items */
.modern-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    margin: 0 15px 15px;
    padding: 12px;
    border-radius: 18px;
    box-shadow: var(--scala-shadow);
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--scala-light);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 30px;
    color: var(--scala-gold);
}

.item-details {
    flex-grow: 1;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.item-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.item-price {
    font-weight: 800;
    color: var(--scala-gold);
    font-size: 15px;
}

.item-desc {
    font-size: 12px;
    color: #777;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.locked-price {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

/* Admin Redesign */
.admin-container {
    background: #f0f2f5;
    min-height: 100vh;
}

.stat-card {
    background: #fff;
    border-radius: 24px;
    padding: 25px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: var(--scala-transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: ".";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--scala-gold);
}

.stat-card h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--scala-dark);
}

.stat-card p {
    color: #888;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.admin-card {
    background: #fff;
    border-radius: 24px;
    padding: 25px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.admin-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table thead th {
    border: none;
    color: #aaa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 10px 15px;
}

.table tbody tr {
    background: #fff;
    transition: var(--scala-transition);
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.table tbody td:first-child {
    border-left: 1px solid #f0f0f0;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.table tbody td:last-child {
    border-right: 1px solid #f0f0f0;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 11px;
}

/* Modern Sidebar Styles */
.modern-sidebar {
    width: 260px;
    background: #fff;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #eee;
    z-index: 1000;
}

.sidebar-brand {
    padding: 30px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand img {
    width: 40px;
    height: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 18px;
    letter-spacing: 1px;
    color: var(--scala-dark);
}

.brand-text span {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    font-weight: 700;
}

.sidebar-nav {
    flex-grow: 1;
    padding: 0 15px;
    overflow-y: auto;
}

.nav-section {
    font-size: 10px;
    font-weight: 800;
    color: #ccc;
    padding: 20px 10px 10px;
    letter-spacing: 1px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--scala-transition);
    margin-bottom: 4px;
}

.nav-link i {
    font-size: 18px;
    color: #aaa;
    transition: var(--scala-transition);
}

.nav-link:hover {
    background: var(--scala-light);
    color: var(--scala-gold);
}

.nav-link:hover i {
    color: var(--scala-gold);
}

.nav-link.active {
    background: var(--scala-gold);
    color: #fff;
}

.nav-link.active i {
    color: #fff;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.logout-btn {
    color: #ff4d4d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Adjust Admin Content for Sidebar */
.admin-content {
    margin-left: 260px;
    padding: 30px;
}

@media (max-width: 992px) {
    .modern-sidebar {
        width: 70px;
    }
    .brand-text, .nav-section, .nav-link span, .admin-user-info span, .logout-btn span {
        display: none;
    }
    .sidebar-brand, .nav-link {
        justify-content: center;
        padding: 15px;
    }
    .admin-content {
        margin-left: 70px;
    }
}

.stat-icon {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 40px;
    color: var(--scala-gold);
    opacity: 0.1;
}

/* Modern Menu Header */
.menu-header-modern {
    padding: 30px 0 20px;
    background: #fff;
}

.back-circle-btn {
    width: 40px;
    height: 40px;
    background: var(--scala-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--scala-dark);
    text-decoration: none;
    transition: var(--scala-transition);
}

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

.modern-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0;
    color: var(--scala-dark);
}

/* Category Hero Modern */
.category-hero-modern {
    position: relative;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-bg-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--scala-dark);
    z-index: 1;
}

.category-hero-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
    z-index: 2;
}

.floating-back {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: #fff;
}

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

.category-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

.category-hero-content h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 5px 0 0;
}

.menu-products-modern {
    padding-top: 20px;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #ccc;
}

.empty-state i {
    font-size: 50px;
    margin-bottom: 15px;
    display: block;
}

/* Admin Table Soft Badges */
.bg-success-soft { background: #e6f4ea; color: #1e7e34; }
.bg-secondary-soft { background: #f1f3f4; color: #5f6368; }

.btn-icon-only {
    width: 35px;
    height: 35px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* COMPACT LOYALTY STYLES */
.remaining-compact {
    text-align: center;
    padding: 0 15px;
}
.remaining-compact .remaining-line {
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}
.remaining-compact .remaining-line strong:last-child {
    color: #d32f2f;
}
.remaining-compact .tier-benefit {
    font-size: 13px;
    color: #666;
    margin-top: 0;
}
.howto-btn-compact {
    margin-top: 10px;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #c97a5d;
    background: transparent;
    color: #c97a5d;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.howto-btn-compact:hover {
    background: #c97a5d;
    color: #fff;
}
.loyalty-visual {
    gap: 5px !important;
}
.remaining-text {
    margin-top: 5px !important;
}

/* Admin bildirim responsive duzeltme */
.admin-content,
.admin-card,
.tab-content,
.tab-pane,
.container-fluid {
    min-width: 0;
}

.admin-content {
    max-width: calc(100vw - 260px);
    overflow-x: hidden;
}

#notifTabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: visible;
}

#templates .admin-card {
    height: auto;
    max-width: 100%;
    overflow-x: hidden;
}

#templates .row > [class*="col-"] {
    min-width: 0;
}

#templates .input-group {
    max-width: 100%;
    min-width: 0;
}

#templates .form-control,
#templates textarea,
#templates select,
#templates input,
#templates pre {
    max-width: 100%;
    min-width: 0;
}

#templates textarea {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    resize: vertical;
}

#templates .text-muted {
    overflow-wrap: anywhere;
}

@media (max-width: 992px) {
    .admin-content {
        max-width: calc(100vw - 70px);
        padding: 18px;
    }
}

@media (max-width: 576px) {
    .admin-content {
        margin-left: 70px;
        max-width: calc(100vw - 70px);
        padding: 12px;
    }

    .admin-card {
        padding: 16px;
        border-radius: 14px;
    }

    #templates .input-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    #templates .input-group > .form-control,
    #templates .input-group > .btn {
        width: 100%;
        border-radius: 8px !important;
    }

    #templates .form-check.d-inline-block {
        display: block !important;
        margin-right