/*
Theme Name: Afiedle
Theme URI: https://afiedle.com
Description: Mekan keşif ve indirim platformu - Modern flat tasarım
Version: 3.0.0
Author: Afiedle
Text Domain: mekanbul
*/

/* ========== DESIGN TOKENS - SADE ========== */
:root {
  --primary: #FF6B00;
  --primary-dark: #E55A00;
  --primary-light: #FFF1E6;
  --primary-50: #FFF8F2;
  
  --ink: #1F2937;
  --text: #374151;
  --text-light: #6B7280;
  --text-muted: #9CA3AF;
  
  --bg: #F9FAFB;
  --bg-2: #F3F4F6;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  
  /* Shadows - subtle */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.10);
  --shadow-glow: none;
  
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
  
  --transition: 0.2s ease;
  --transition-fast: 0.15s ease;
  --ease: ease;
  
  --primary-glow: rgba(255, 107, 0, 0.12);
  
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========== RESET ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--primary-dark);
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p {
  margin-bottom: 0.75rem;
}

/* italic emphasis kaldırıldı, normal render */
em {
  font-style: normal;
  color: var(--primary);
  font-weight: 700;
}

/* ========== CONTAINER ========== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== BUTTONS - FLAT ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  border: none;
}

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

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

.btn-secondary {
  background: var(--ink);
  color: white;
}

.btn-secondary:hover {
  background: #374151;
  color: white;
}

.btn-outline {
  background: white;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-2);
  border-color: var(--text-muted);
}

.btn-ghost {
  background: var(--primary-light);
  color: var(--primary);
}

.btn-ghost:hover {
  background: var(--primary);
  color: white;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ========== HEADER - SADE ========== */
.site-header {
  background: white;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease;
  will-change: transform;
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-top {
  background: var(--ink);
  color: white;
  padding: 8px 0;
  font-size: 0.8rem;
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top a {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
}

.header-top a:hover {
  color: var(--primary);
}

.header-top-left,
.header-top-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-top-left span,
.header-top-left a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-top-left i {
  color: var(--primary);
}

.header-main {
  padding: 14px 0;
}

.header-main-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo i {
  color: var(--primary);
  font-size: 1.3rem;
}

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

.header-search {
  flex: 1;
  max-width: 540px;
}

.search-form {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.search-form:focus-within {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-form input {
  flex: 1;
  padding: 8px 14px;
  border: none;
  background: transparent;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  color: var(--ink);
}

.search-form input::placeholder {
  color: var(--text-muted);
}

.search-form button {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-xs);
  padding: 8px 18px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.88rem;
}

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

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mobile-search-toggle {
  display: none;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  font-weight: 500;
}

.user-menu-btn:hover {
  background: var(--bg);
  border-color: var(--text-muted);
}

.user-menu-btn img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.user-menu {
  position: relative;
  z-index: 999;
}

.user-dropdown {
  position: fixed;
  background: white;
  min-width: 220px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  border: 1px solid var(--border);
  z-index: 999999;
  pointer-events: none;
  max-width: calc(100vw - 24px);
}

.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text);
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
  font-weight: 500;
  font-size: 0.9rem;
}

.user-dropdown a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.user-dropdown a i {
  width: 16px;
  color: var(--text-light);
  font-size: 0.85rem;
}

.user-dropdown a:hover i {
  color: var(--primary);
}

.user-dropdown hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

/* Navigation - Flat */
.main-nav {
  background: white;
  border-bottom: 1px solid var(--border);
}

.main-nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
  position: relative;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.main-nav a i {
  font-size: 0.85rem;
}

/* ========== HERO MAP ========== */
.hero-map-section {
  position: relative;
  height: 420px;
  background: var(--bg);
}

#mekanbul-map {
  width: 100%;
  height: 100%;
}

.map-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--text-light);
}

.map-loading i {
  font-size: 2.5rem;
  color: var(--primary);
}

.map-loading-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.map-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}

.map-control-btn {
  width: 42px;
  height: 42px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--ink);
  transition: all var(--transition);
}

.map-control-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.hero-floating-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 4;
  background: white;
  padding: 18px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-width: 340px;
  border: 1px solid var(--border);
}

.hero-floating-card h2 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--ink);
}

.hero-floating-card h2 em {
  color: var(--primary);
  font-style: normal;
}

.hero-floating-card p {
  color: var(--text-light);
  font-size: 0.88rem;
  margin: 0;
}

/* ========== FILTER BAR ========== */
.filter-bar {
  background: white;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 70px;
  z-index: 50;
}

.filter-bar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  margin-right: 4px;
}

.filter-label i {
  color: var(--primary);
}

.filter-select {
  padding: 8px 32px 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  background: white;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236B7280' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.filter-select:hover {
  border-color: var(--text-muted);
}

.filter-select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
}

.filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ========== SECTIONS ========== */
.section {
  padding: 50px 0;
}

.section-alt {
  background: white;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-eyebrow {
  display: inline-block;
  padding: 4px 10px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.section-title em {
  color: var(--primary);
  font-style: normal;
}

.section-link {
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  transition: all var(--transition);
}

.section-link:hover {
  color: var(--primary-dark);
  gap: 8px;
}

/* ========== MEKAN CARDS - FLAT ========== */
.mekan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.mekan-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.mekan-slider::-webkit-scrollbar {
  height: 6px;
}

.mekan-slider::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: var(--radius-full);
}

.mekan-slider::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-full);
}

.mekan-slider .mekan-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
}

.mekan-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
}

.mekan-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--text-muted);
}

.mekan-card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--bg-2);
}

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

.mekan-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 2.5rem;
}

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 9px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: var(--radius-xs);
  color: white;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-yeni {
  background: var(--info);
}

.badge-indirim {
  background: var(--danger);
}

.badge-sponsorlu {
  background: var(--warning);
  color: white;
}

.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.favorite-btn:hover {
  color: var(--danger);
  border-color: var(--danger);
}

.favorite-btn.active {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.mekan-card-body {
  padding: 14px 16px;
}

.card-category {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg);
  color: var(--text-light);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-title {
  font-size: 1rem;
  margin-bottom: 6px;
  font-weight: 700;
  line-height: 1.3;
}

.card-title a {
  color: var(--ink);
}

.card-title a:hover {
  color: var(--primary);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.rating {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--warning);
  font-size: 0.82rem;
}

.rating strong {
  color: var(--ink);
  font-weight: 700;
  margin-left: 2px;
}

.rating .count {
  color: var(--text-muted);
  margin-left: 3px;
  font-weight: 500;
}

.card-price {
  color: var(--success);
  font-weight: 700;
  font-size: 0.85rem;
}

.card-address {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 10px;
  line-height: 1.4;
}

.card-address i {
  color: var(--text-muted);
  margin-top: 2px;
  flex-shrink: 0;
}

.card-campaign {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #92400E;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-campaign i {
  color: #D97706;
}

/* ========== CATEGORIES ========== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.category-card {
  background: white;
  padding: 22px 14px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--ink);
}

.category-card:hover {
  border-color: var(--primary);
  background: var(--primary-50);
  color: var(--primary);
}

.category-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  transition: all var(--transition);
}

.category-card:hover .category-icon {
  background: var(--primary);
  color: white;
}

.category-name {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.category-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========== FORMS ========== */
.form-container {
  max-width: 720px;
  margin: 0 auto;
  background: white;
  padding: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.form-title {
  text-align: center;
  margin-bottom: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.form-title i {
  color: var(--primary);
}

.form-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
}

.form-label .required {
  color: var(--danger);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  transition: all var(--transition-fast);
  color: var(--ink);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236B7280' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-section {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.form-section-title {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.form-section-title i {
  color: var(--primary);
  font-size: 0.95rem;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.88rem;
  font-weight: 500;
}

.checkbox-item:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.checkbox-item input {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.form-text {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 4px;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ========== ALERTS ========== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.alert-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.alert-danger {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.alert-info {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

/* ========== NOTIFICATION ========== */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 14px 18px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 99999;
  transform: translateX(420px);
  transition: transform 0.3s ease;
  max-width: 360px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
}

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

.notification-success {
  border-left: 3px solid var(--success);
}

.notification-success i {
  color: var(--success);
}

.notification-error {
  border-left: 3px solid var(--danger);
}

.notification-error i {
  color: var(--danger);
}

/* ========== FOOTER ========== */
.site-footer {
  background: white;
  color: var(--text);
  margin-top: 60px;
  border-top: 1px solid var(--border);
}

.footer-main {
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

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

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

.footer-desc {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.footer-title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: 8px;
}

.footer-menu a,
.footer-menu li {
  color: var(--text-light);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-menu a:hover {
  color: var(--primary);
}

.footer-menu i {
  color: var(--text-muted);
  width: 14px;
  font-size: 0.8rem;
}

.footer-bottom {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ========== SINGLE MEKAN ========== */
.mekan-single {
  background: var(--bg);
}

.mekan-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: var(--bg-2);
}

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

.mekan-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 0 28px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: white;
}

.mekan-hero-title {
  color: white;
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mekan-hero-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.mekan-hero-meta > span,
.mekan-hero-meta .rating {
  color: white;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mekan-content {
  padding: 40px 0;
}

.mekan-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}

.mekan-info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
}

.mekan-info-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.mekan-info-title i {
  color: var(--primary);
  font-size: 1rem;
}

.info-list {
  list-style: none;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list li > i {
  width: 18px;
  color: var(--text-muted);
  margin-top: 3px;
  flex-shrink: 0;
}

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

.feature-tag {
  padding: 6px 12px;
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
}

.feature-tag i {
  color: var(--primary);
  font-size: 0.75rem;
}

/* ========== PROFILE ========== */
.profile-hero {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 40px 0 32px;
  position: relative;
}

.profile-hero.has-cover {
  background-color: var(--ink);
}

.profile-hero.has-cover .profile-info h1,
.profile-hero.has-cover .profile-info p,
.profile-hero.has-cover .profile-info p i,
.profile-hero.has-cover .profile-bio,
.profile-hero.has-cover .profile-stat-number,
.profile-hero.has-cover .profile-stat-label {
  color: white;
}

.profile-hero.has-cover .profile-hero-actions .btn-outline {
  background: rgba(255,255,255,0.15);
  color: white;
  border-color: rgba(255,255,255,0.4);
}

/* overlay div artık kullanılmıyor - gradient inline style ile yapılıyor */
.profile-hero-overlay { display: none; }

.profile-hero-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

.profile-info h1 {
  margin-bottom: 6px;
  font-size: 1.75rem;
  color: var(--ink);
}

.profile-info p {
  color: var(--text-light);
  margin-bottom: 2px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-info p i {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.profile-stats {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}

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

.profile-stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  display: block;
  color: var(--ink);
}

.profile-stat-label {
  font-size: 0.78rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.profile-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  background: white;
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.profile-tab {
  padding: 10px 18px;
  background: transparent;
  border: none;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-tab:hover {
  color: var(--ink);
  background: var(--bg);
}

.profile-tab.active {
  color: white;
  background: var(--primary);
}

.profile-content {
  padding: 16px 0;
}

/* ========== DASHBOARD ========== */
.dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 32px 0;
}

.dashboard-sidebar {
  background: white;
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--border);
  height: fit-content;
  position: sticky;
  top: 90px;
}

.dashboard-sidebar h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.dashboard-sidebar h3 i {
  color: var(--primary);
  font-size: 0.95rem;
}

.dashboard-menu {
  list-style: none;
}

.dashboard-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text);
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
  transition: all var(--transition-fast);
  font-weight: 500;
  font-size: 0.88rem;
}

.dashboard-menu a:hover {
  background: var(--bg);
  color: var(--primary);
}

.dashboard-menu a.active {
  background: var(--primary);
  color: white;
}

.dashboard-menu a i {
  width: 16px;
  font-size: 0.85rem;
}

.dashboard-content {
  background: white;
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.stat-label i {
  color: var(--primary);
}

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-state i {
  font-size: 3.5rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.empty-state h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
}

.empty-state p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 0.92rem;
}

/* ========== PAGINATION ========== */
.page-numbers {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin: 0 3px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  font-weight: 600;
  font-size: 0.85rem;
}

.page-numbers:hover {
  background: var(--bg);
  border-color: var(--text-muted);
}

.page-numbers.current {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ========== AUTH PAGE ========== */
.auth-page {
  padding: 40px 0;
  min-height: calc(100vh - 200px);
}

.auth-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.auth-side {
  background: var(--primary);
  color: white;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  margin-bottom: 32px;
}

.auth-logo i {
  color: white;
}

.auth-logo span {
  color: white;
}

.auth-welcome {
  color: white !important;
  font-size: 1.75rem !important;
  line-height: 1.2 !important;
  margin-bottom: 14px !important;
  font-weight: 800;
}

.auth-welcome em {
  font-style: normal;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  padding: 0 6px;
  border-radius: 4px;
}

.auth-tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin-bottom: 28px;
  line-height: 1.5;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 0.9rem;
}

.auth-feature i {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.auth-form-side {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 5px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text-light);
  border-radius: var(--radius-xs);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-tab.active {
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.auth-form-container {
  display: none;
}

.auth-form-container.active {
  display: block;
}

.auth-title {
  font-size: 1.5rem;
  margin-bottom: 6px;
  font-weight: 800;
}

.auth-title em {
  color: var(--primary);
  font-style: normal;
}

.auth-subtitle {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
}

.password-toggle:hover {
  color: var(--primary);
}

.password-strength {
  margin-top: 6px;
}

.password-strength-bar {
  height: 3px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 3px;
}

.password-strength-fill {
  height: 100%;
  width: 0;
  transition: all var(--transition);
}

.password-strength-fill.weak {
  width: 33%;
  background: var(--danger);
}

.password-strength-fill.medium {
  width: 66%;
  background: var(--warning);
}

.password-strength-fill.strong {
  width: 100%;
  background: var(--success);
}

.password-strength-text {
  font-size: 0.78rem;
}

.auth-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
  font-size: 0.85rem;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.auth-remember input {
  accent-color: var(--primary);
}

.auth-link {
  color: var(--primary);
  font-weight: 600;
}

.auth-terms {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 14px 0;
  font-size: 0.82rem;
  cursor: pointer;
  line-height: 1.4;
}

.auth-terms input {
  accent-color: var(--primary);
  margin-top: 3px;
}

.auth-switch {
  text-align: center;
  margin-top: 18px;
  color: var(--text-light);
  font-size: 0.88rem;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 700;
  margin-left: 3px;
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.hidden { display: none !important; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .mekan-content-grid {
    grid-template-columns: 1fr;
  }
  .dashboard {
    grid-template-columns: 1fr;
  }
  .dashboard-sidebar {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .auth-wrapper {
    grid-template-columns: 1fr;
  }
  .auth-side {
    padding: 32px 28px;
  }
  .auth-features {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-top { display: none; }
  
  .header-main {
    padding: 10px 0;
  }
  
  .header-main-inner {
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
  }
  
  .header-search {
    display: none;
    order: 4;
    width: 100%;
    max-width: none;
    margin-top: 8px;
  }
  
  .header-search.active {
    display: block;
  }
  
  .mobile-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--ink);
    cursor: pointer;
    flex-shrink: 0;
  }
  
  .mobile-search-toggle.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }
  
  .site-logo {
    font-size: 1.25rem;
    flex-shrink: 0;
  }
  
  .site-logo i {
    font-size: 1.1rem;
  }
  
  .header-actions {
    gap: 5px;
    margin-left: auto;
  }
  
  .header-actions .btn span { display: none; }
  
  .header-actions .btn {
    padding: 8px 10px;
    font-size: 0.82rem;
    min-width: 38px;
    justify-content: center;
  }
  
  .header-actions .btn-primary {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 0;
  }
  
  .user-menu-btn {
    padding: 3px;
  }
  
  .user-menu-btn img {
    width: 30px;
    height: 30px;
  }
  
  .user-menu-btn .fa-chevron-down { display: none; }
  
  .main-nav {
    position: sticky;
    top: 0;
    z-index: 50;
  }
  
  .main-nav-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 4px;
  }
  
  .main-nav-inner::-webkit-scrollbar { display: none; }
  
  .main-nav a {
    padding: 12px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  
  .hero-map-section {
    height: 320px;
  }
  
  .hero-floating-card {
    bottom: 12px;
    left: 12px;
    right: 12px;
    max-width: none;
    padding: 14px 16px;
  }
  
  .map-controls {
    top: 12px;
    right: 12px;
    gap: 5px;
  }
  
  .map-control-btn {
    width: 38px;
    height: 38px;
  }
  
  .filter-bar {
    top: 50px;
    padding: 10px 0;
  }
  
  .filter-bar-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  
  .filter-bar-inner::-webkit-scrollbar { display: none; }
  
  .filter-label,
  .filter-select,
  .filter-chip {
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  .section { padding: 36px 0; }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }
  
  .section-title {
    font-size: 1.3rem !important;
  }
  
  .section-link {
    padding: 6px 12px;
    font-size: 0.82rem;
  }
  
  .mekan-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
  }
  
  .mekan-card-image { height: 160px; }
  
  .mekan-card-body { padding: 12px 14px; }
  
  .card-title { font-size: 0.95rem; }
  
  .form-row { grid-template-columns: 1fr; }
  .form-container { padding: 24px 18px; }
  
  .profile-hero {
    padding: 28px 0 24px;
  }
  
  .profile-hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .profile-avatar {
    width: 90px;
    height: 90px;
  }
  
  .profile-info h1 {
    font-size: 1.4rem;
  }
  
  .profile-info p {
    justify-content: center;
  }
  
  .profile-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .profile-stat-number {
    font-size: 1.4rem;
  }
  
  .profile-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    padding: 5px;
  }
  
  .profile-tabs::-webkit-scrollbar { display: none; }
  
  .profile-tab {
    padding: 8px 14px;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .mekan-hero { height: 280px; }
  
  .mekan-hero-title {
    font-size: 1.4rem;
  }
  
  .mekan-content { padding: 28px 0; }
  
  .mekan-info-card {
    padding: 18px 16px;
  }
  
  .mekan-info-title {
    font-size: 1.05rem;
  }
  
  .dashboard {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 0;
  }
  
  .dashboard-sidebar {
    position: static;
    padding: 14px;
  }
  
  .dashboard-menu {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 5px;
  }
  
  .dashboard-menu::-webkit-scrollbar { display: none; }
  
  .dashboard-menu a {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.82rem;
    margin-bottom: 0;
  }
  
  .dashboard-content {
    padding: 18px;
  }
  
  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .stat-card {
    padding: 14px;
  }
  
  .stat-value {
    font-size: 1.4rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  
  .footer-main {
    padding: 36px 0 24px;
  }
  
  .social-links,
  .footer-menu li,
  .footer-logo {
    justify-content: center;
  }
  
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
  
  .category-card {
    padding: 18px 12px;
  }
  
  .category-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  
  .category-name {
    font-size: 0.85rem;
  }
  
  .notification {
    top: auto;
    bottom: 16px;
    left: 12px;
    right: 12px;
    max-width: none;
    transform: translateY(120%);
  }
  
  .notification.show {
    transform: translateY(0);
  }
  
  .mekan-slider .mekan-card {
    flex: 0 0 220px;
  }
  
  .form-actions {
    flex-direction: column-reverse;
  }
  
  .form-actions .btn {
    width: 100%;
  }
  
  .auth-side {
    padding: 28px 24px;
  }
  
  .auth-form-side {
    padding: 28px 24px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mekan-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-stats { gap: 12px; }
  .profile-stat-number { font-size: 1.25rem; }
  
  .stat-value { font-size: 1.4rem; }
}

/* ========== MENÜ YÖNETİMİ (Mekan Paneli) ========== */
.menu-management {
  padding: 0;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.menu-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.menu-info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.menu-info-left h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.menu-info-left h4 i { color: var(--primary); }

.menu-url-display {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.menu-url-display input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--ink);
}

.menu-info-text {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.menu-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.menu-qr-preview {
  text-align: center;
}

.menu-qr-preview img {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-sm);
  background: white;
  padding: 8px;
  border: 1px solid var(--border);
}

.qr-label {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Menu Tabs */
.menu-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--bg);
  padding: 5px;
  border-radius: var(--radius-md);
}

.menu-tab {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-tab.active {
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.menu-tab-content {
  display: none;
}

.menu-tab-content.active {
  display: block;
}

.menu-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Menu Loading */
.menu-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

.menu-loading i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-right: 8px;
}

/* Kategori Blocks */
.kategori-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kategori-block {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.kategori-block.pasif {
  opacity: 0.5;
}

.kategori-block:hover {
  border-color: var(--text-muted);
}

.kategori-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg);
  gap: 12px;
  flex-wrap: wrap;
}

.kategori-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.kategori-info h4 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}

.kategori-icon {
  color: var(--primary);
  font-size: 1rem;
}

.urun-sayisi {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}

.kategori-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 0.82rem;
  transition: all var(--transition);
}

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

.btn-icon.btn-danger:hover {
  background: #FEE2E2;
  color: var(--danger);
  border-color: var(--danger);
}

.drag-handle, .urun-drag {
  color: var(--text-muted);
  cursor: grab;
  padding: 4px;
}

.drag-handle:active, .urun-drag:active {
  cursor: grabbing;
}

/* Urun List */
.urun-list {
  padding: 0 18px;
}

.urun-empty {
  padding: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-style: italic;
}

.urun-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-fast);
}

.urun-item.pasif {
  opacity: 0.5;
}

.urun-item:last-child {
  border-bottom: none;
}

.urun-item:hover {
  background: var(--bg);
  margin: 0 -18px;
  padding: 12px 18px;
}

.urun-thumb {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  flex-shrink: 0;
}

.urun-thumb-placeholder {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-xs);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.urun-info {
  flex: 1;
  min-width: 0;
}

.urun-name {
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.ozel-star {
  color: #FBBF24;
}

.urun-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.urun-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag-allergen, .tag-label {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--text-light);
  font-weight: 500;
}

.tag-label {
  background: var(--primary-light);
  color: var(--primary);
}

.urun-price {
  text-align: right;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.urun-price .old-price {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}

.urun-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

/* Modal */
.menu-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.menu-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.menu-modal-box {
  position: relative;
  background: white;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.menu-modal-large {
  max-width: 640px;
}

.menu-modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.menu-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
}

.menu-modal-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
}

.menu-modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: var(--bg);
}

/* Icon picker */
.icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.icon-option {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
}

.icon-option:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.icon-option input {
  display: none;
}

.icon-option:has(input:checked) {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Urun image upload */
.urun-image-upload {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.image-placeholder {
  width: 200px;
  height: 130px;
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
}

.image-placeholder:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.image-placeholder i {
  font-size: 1.5rem;
}

.image-placeholder span {
  font-size: 0.82rem;
  font-weight: 500;
}

.image-actions {
  display: flex;
  gap: 6px;
}

@media (max-width: 768px) {
  .menu-info-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .menu-qr-preview img {
    width: 140px;
    height: 140px;
  }
  
  .kategori-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .kategori-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .urun-item {
    flex-wrap: wrap;
  }
  
  .urun-info {
    width: 100%;
    order: 3;
    margin-top: 8px;
  }
}

/* ============================================
 * YENİ İYİLEŞTİRMELER (Kategoriler, Kampanyalar, Sosyal Akış)
 * ============================================ */

/* Kategori Chip Grid (Mekan Ekle Formu) */
.kategori-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.kategori-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.kategori-chip input {
  display: none;
}
.kategori-chip i {
  font-size: 1.5rem;
  color: var(--text-light);
  transition: all var(--transition);
}
.kategori-chip span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.kategori-chip:hover {
  border-color: var(--primary-light);
  background: var(--bg);
}
.kategori-chip:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
}
.kategori-chip:has(input:checked) i {
  color: var(--primary);
}

/* Kampanya Kartları & Alert */
.kampanyalar-hero h1 i {
  margin-right: 10px;
}

/* Sosyal Akış Hero */
.sosyal-hero {
  background: linear-gradient(135deg, var(--ink), #374151);
  color: white;
  padding: 60px 0;
  margin-bottom: 30px;
}
.sosyal-hero .section-eyebrow {
  background: rgba(255,255,255,0.1);
  color: white;
}
.sosyal-hero .section-title {
  color: white;
}
.sosyal-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Sosyal Layout */
.sosyal-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: start;
}
@media (max-width: 992px) {
  .sosyal-layout {
    grid-template-columns: 1fr;
  }
}

/* Post Card Premium Tasarım */
.social-post-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.social-post-card:hover {
  box-shadow: var(--shadow-md);
}
.post-card-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.post-card-author {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.post-card-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}
.post-card-author-info {
  display: flex;
  flex-direction: column;
}
.post-card-author-info strong {
  font-size: 1rem;
}
.post-card-author-info .post-time {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}
.post-card-body {
  padding: 0 20px 16px;
}
.post-card-body p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
.post-photo {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  background: var(--bg);
}
.post-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.post-card-actions {
  display: flex;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  gap: 16px;
}
.like-btn, .share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  padding: 6px 12px;
  border-radius: var(--radius-full);
}
.like-btn:hover, .share-btn:hover {
  background: var(--bg);
  color: var(--ink);
}
.like-btn.liked {
  color: var(--danger);
}
.like-btn.liked i {
  animation: heartPulse 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Sidebar Widget */
.sidebar-widget {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.widget-title i {
  color: var(--primary);
}
.sidebar-cat-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-weight: 500;
  font-size: 0.95rem;
}
.sidebar-cat-item:hover {
  background: var(--bg);
  color: var(--primary);
}
.sidebar-cat-item i {
  width: 24px;
  color: var(--primary);
}
.sidebar-cat-item .cat-count {
  margin-left: auto;
  background: var(--bg);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-light);
}

/* QR Scanner Line Animation */
.qr-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: scan 2s linear infinite;
}
@keyframes scan {
  0% { top: 0; }
  50% { top: 100%; }
  100% { top: 0; }
}

/* ============================================================
   EKSİK STİLLER - Tüm sayfaların ihtiyaç duyduğu sınıflar
   ============================================================ */

/* ── Genel yardımcılar ── */
.site-main { min-height: 60vh; }
.required { color: var(--danger); }
.text-light { color: var(--text-light); }
.old { text-decoration: line-through; color: var(--text-muted); }
.count { color: var(--text-muted); font-size: 0.82rem; font-weight: 500; }
.cat-count { color: var(--text-muted); font-size: 0.78rem; }
.page-content { padding: 40px 0; }
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 10px 0; text-align: center; font-size: .82rem; }

/* ── İkon font placeholder'ları (FA zaten CDN'den geliyor) ── */
.fas, .far, .fab { display: inline-block; }

/* ── Archive Filter Bar ── */
.archive-filter-bar {
  background: white;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

/* ── Auth ── */
.auth-form { display: block; }
.auth-tab-link { color: var(--primary); font-weight: 700; cursor: pointer; }

/* ── Avatar ── */
.avatar-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.profile-avatar-wrap { position: relative; display: inline-block; }
.profile-avatar-edit {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 28px; height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  cursor: pointer;
  border: 2px solid white;
}

/* ── Photo preview / remove ── */
.photo-preview {
  margin-top: 10px;
  display: none;
}
.photo-preview img {
  max-width: 200px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.photo-remove-btn {
  background: var(--danger);
  color: white;
  border: none;
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  font-size: .8rem;
  cursor: pointer;
  margin-top: 6px;
}

/* ── Profile layout ── */
.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 32px 0;
  align-items: start;
}
@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; }
}
.profile-sidebar {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  position: sticky;
  top: 90px;
}
.profile-main { min-width: 0; }
.profile-bio {
  color: var(--text-light);
  font-size: .9rem;
  margin-top: 8px;
  line-height: 1.5;
}
.profile-hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
/* overlay artık kullanılmıyor */

/* ── Sidebar mekan widget ── */
.sidebar-mekan-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
}
.sidebar-mekan-item:last-child { border-bottom: none; }
.sidebar-mekan-img {
  width: 50px; height: 50px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  flex-shrink: 0;
}
.sidebar-mekan-placeholder {
  width: 50px; height: 50px;
  border-radius: var(--radius-xs);
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-mekan-info { flex: 1; min-width: 0; }
.sidebar-mekan-info strong {
  display: block;
  font-size: .88rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-mekan-info span { font-size: .78rem; color: var(--text-muted); }
.widget-see-all {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: .82rem;
  color: var(--primary);
  font-weight: 600;
}

/* ── Mekan status badge ── */
.mekan-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mekan-card-wrapper { position: relative; }

/* ── Campaign filter ── */
.campaign-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* ── Mekan search (paylaşım composer'ı için) ── */
.mekan-search-wrap { position: relative; }
.mekan-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-height: 260px;
  overflow-y: auto;
  z-index: 200;
}
.selected-mekan-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: .82rem;
  font-weight: 600;
  margin-top: 8px;
}

/* ── Sosyal akış (page-sosyal + page-profil) ── */
.sosyal-main {
  flex: 1;
  min-width: 0;
}
.sosyal-sidebar {
  width: 300px;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .sosyal-sidebar { display: none; }
}
.sosyal-filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.sosyal-filter-btn {
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: all var(--transition);
}
.sosyal-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.sosyal-filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ── Post composer ── */
.post-composer {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.post-composer:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.post-composer-top {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.composer-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.composer-field-wrap { flex: 1; }
.composer-field {
  width: 100%;
  border: none;
  background: var(--bg);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  resize: vertical;
  min-height: 72px;
  outline: none;
  color: var(--ink);
  transition: background var(--transition);
}
.composer-field:focus { background: white; }
.composer-field::placeholder { color: var(--text-muted); }
.composer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.composer-left-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.composer-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: all var(--transition);
}
.composer-btn i { font-size: .88rem; }
.composer-btn:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }

/* ── Social feed ── */
.social-feed { display: flex; flex-direction: column; gap: 16px; }

/* ── Feed loading ── */
.feed-loading {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-light);
}
.feed-loading i { font-size: 2rem; color: var(--primary); margin-bottom: 12px; display: block; }

/* ── Reviews list ── */
.reviews-list { display: flex; flex-direction: column; gap: 14px; }

/* ── Settings cards ── */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.settings-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.settings-card-header {
  padding: 14px 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  color: var(--ink);
}
.settings-card-header i { color: var(--primary); }

/* ── Öneri composer ── */
.oneri-composer {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}
.oneri-form { display: flex; flex-direction: column; gap: 14px; }
.oneri-categories { }
.oneri-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.oneri-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: all var(--transition);
}
.oneri-cat-chip:hover { border-color: var(--primary); color: var(--primary); }
.oneri-cat-chip.active { background: var(--primary); color: white; border-color: var(--primary); }
.oneri-selected-mekan {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,107,0,.2);
}
.oneri-list { display: flex; flex-direction: column; gap: 14px; }

/* ── Story slider (sosyal) ── */
.story-slider-wrap { margin-bottom: 20px; overflow: hidden; }
.story-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.story-slider::-webkit-scrollbar { display: none; }
.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  cursor: pointer;
}
.story-avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  padding: 2px;
  background: white;
}
.story-item span {
  font-size: .72rem;
  color: var(--text-light);
  font-weight: 500;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Urun tag (QR menü müşteri sayfası) ── */
.urun-tag {
  font-size: .7rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--text-light);
  font-weight: 500;
}
.urun-ozel-star { color: #FBBF24; }
.old-price { text-decoration: line-through; color: var(--text-muted); font-weight: 400; }

/* ── QR Menü müşteri sayfası (page-menu.php) ── */
.menu-page-header {
  background: white;
  padding: 24px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.menu-logo {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
  object-fit: cover;
  border: 2px solid var(--border);
}
.menu-logo-placeholder {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: var(--primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
}
.menu-mekan-name { font-size: 1.4rem; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.menu-mekan-meta { color: var(--text-light); font-size: .85rem; }
.menu-lang-switcher {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.menu-lang-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.menu-lang-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.menu-tabs-inner {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 8px;
  gap: 4px;
}
.menu-tabs-inner::-webkit-scrollbar { display: none; }
.menu-tab-btn {
  flex-shrink: 0;
  padding: 13px 16px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  display: flex; align-items: center; gap: 6px;
}
.menu-tab-btn:hover { color: var(--ink); }
.menu-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.menu-content { padding: 8px 0 80px; }
.menu-kategori { background: white; margin-bottom: 8px; padding: 16px 16px 8px; }
.menu-kategori-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.menu-urun {
  display: flex; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-2);
  cursor: pointer;
}
.menu-urun:last-child { border-bottom: none; }
.menu-urun-image {
  width: 80px; height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.menu-urun-image-placeholder {
  width: 80px; height: 80px;
  border-radius: 8px;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.menu-urun-info { flex: 1; min-width: 0; }
.menu-urun-name {
  font-weight: 700;
  font-size: .98rem;
  color: var(--ink);
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 5px;
}
.menu-urun-desc {
  font-size: .82rem;
  color: var(--text-light);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.menu-urun-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.menu-urun-price {
  text-align: right;
  flex-shrink: 0;
  font-weight: 800;
  color: var(--ink);
  font-size: 1rem;
  white-space: nowrap;
}
.menu-urun-old-price {
  display: block;
  font-size: .78rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}
.menu-urun-discount-price { color: var(--danger); }
.menu-empty { text-align: center; padding: 60px 20px; color: var(--text-light); }
.menu-empty i { font-size: 3rem; margin-bottom: 12px; color: var(--text-muted); display: block; }
.menu-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex; gap: 8px;
  z-index: 100;
  box-shadow: 0 -2px 8px rgba(0,0,0,.05);
}
.menu-footer-btn {
  flex: 1;
  padding: 11px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: .88rem;
  text-align: center;
  text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  cursor: pointer;
  transition: all .2s;
}
.menu-footer-btn:hover { background: var(--bg); }
.menu-footer-btn.primary { background: var(--primary); color: white; border-color: var(--primary); }
.powered-by { text-align: center; padding: 14px; font-size: .78rem; color: var(--text-muted); }
.powered-by a { color: var(--primary); font-weight: 600; }

/* ── Urun modal (müşteri QR menüsü) ── */
.urun-modal {
  position: fixed; inset: 0;
  z-index: 9999;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.urun-modal.active { display: flex; }
.urun-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.urun-modal-box {
  position: relative;
  background: white;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  border-radius: 16px 16px 0 0;
  overflow-y: auto;
}
@media (min-width: 600px) {
  .urun-modal { align-items: center; }
  .urun-modal-box { border-radius: 16px; margin: 20px; }
}
.urun-modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px;
  background: white; border: none; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.urun-modal-image { width: 100%; height: 240px; object-fit: cover; }
.urun-modal-image-placeholder {
  width: 100%; height: 180px;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 3rem;
}
.urun-modal-body { padding: 20px; }
.urun-modal-name { font-size: 1.3rem; font-weight: 800; color: var(--ink); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.urun-modal-desc { color: var(--text-light); margin-bottom: 14px; line-height: 1.6; font-size: .92rem; }
.urun-modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.urun-modal-price { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.urun-modal-allergens {
  padding: 12px;
  background: #FEF3C7;
  border-radius: 8px;
  font-size: .85rem;
  color: #92400E;
  margin-top: 10px;
}

/* ── Menü yönetimi – modal ── */
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
}
.modal-box {
  position: relative;
  background: white;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { margin: 0; font-size: 1.1rem; }
.modal-close {
  background: none; border: none;
  font-size: 1.5rem; cursor: pointer;
  color: var(--text-light); line-height: 1; padding: 0;
}
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }

/* ── Urun drag handle ── */
.urun-drag { color: var(--text-muted); cursor: grab; padding: 4px; }
.urun-drag:active { cursor: grabbing; }

/* ── Lang field toggles ── */
.lang-tr, .lang-en, .lang-ar { }
.lang-check, .allergen-check, .label-check { accent-color: var(--primary); }
.lang-fields-en, .lang-fields-ar { }

/* ── Lang field show/hide ── */
/* JS tarafından display:none / display:block yapılıyor, CSS müdahale etmez */


/* ============================================================
   MENU YÖNETİMİ v2 - Telefon dostu, modern, sade
   ============================================================ */
.menu-management-v2 { padding: 0; }

/* Üst kısım */
.menu-top-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.mekan-selector {
  max-width: 100%;
  font-size: 1rem;
  padding: 10px 14px;
}

.qr-info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.qr-mini-preview img {
  width: 100px; height: 100px;
  border-radius: var(--radius-sm);
  background: white;
  padding: 6px;
  border: 1px solid var(--border);
  display: block;
}
.qr-info-text { flex: 1; min-width: 0; }
.qr-info-text h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qr-url-display {
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
}
.qr-url-display i { color: var(--primary); flex-shrink: 0; }
.qr-url-display span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.qr-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.qr-actions .btn { font-size: 0.78rem; padding: 6px 10px; }

/* Tab bar */
.menu-mgmt-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  background: var(--bg);
  padding: 4px;
  border-radius: var(--radius-md);
}
.mgmt-tab {
  flex: 1;
  padding: 10px 12px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.mgmt-tab.active {
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.mgmt-tab-content { display: none; }
.mgmt-tab-content.active { display: block; }

/* Hızlı eylem butonları */
.quick-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.quick-action-btn {
  flex: 1;
  min-width: 140px;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
}
.quick-action-btn.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.quick-action-btn.primary:hover {
  background: var(--primary-dark);
  color: white;
}

/* Kategori blokları */
.kat-blocks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.kat-block {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.kat-block.pasif { opacity: 0.55; }

.kat-block-header {
  padding: 12px 14px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.kat-block-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.kat-block-info h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kat-icon { color: var(--primary); }
.kat-meta {
  font-size: 0.78rem;
  color: var(--text-light);
  display: block;
}
.kat-order-btns {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.order-btn {
  width: 26px; height: 22px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 0.65rem;
}
.order-btn:hover:not(:disabled) {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.order-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.kat-block-actions {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.kat-icon-btn {
  width: 34px; height: 34px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 0.85rem;
  text-decoration: none;
}
.kat-icon-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}
.kat-icon-btn.delete-kat:hover, .kat-icon-btn.delete-urun:hover {
  background: #FEE2E2;
  color: var(--danger);
  border-color: var(--danger);
}

/* Ürün listesi */
.kat-urun-list { padding: 6px 14px; }
.kat-urun-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.88rem;
}
.urun-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.urun-row:last-of-type { border-bottom: none; }
.urun-row.pasif { opacity: 0.5; }

.urun-order-btns {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.order-btn-sm {
  width: 22px; height: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.6rem;
}
.order-btn-sm:disabled { opacity: 0.3; cursor: not-allowed; }
.order-btn-sm:hover:not(:disabled) {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.urun-row-img {
  width: 50px; height: 50px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  flex-shrink: 0;
}
.urun-row-img-placeholder {
  width: 50px; height: 50px;
  border-radius: var(--radius-xs);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.urun-row-info { flex: 1; min-width: 0; }
.urun-row-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.urun-row-desc {
  font-size: 0.78rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.urun-row-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 3px;
}
.urun-mini-badge {
  font-size: 0.7rem;
  padding: 1px 4px;
  background: var(--bg);
  border-radius: 4px;
}
.badge-mini {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 4px;
}

.urun-row-price {
  text-align: right;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  font-size: 0.92rem;
  flex-shrink: 0;
}
.urun-row-price .old {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}
.urun-row-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.urun-row-actions .kat-icon-btn {
  width: 30px; height: 30px;
  font-size: 0.78rem;
}

/* "Bu kategoriye ürün ekle" satırı */
.add-urun-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  margin: 6px 0;
  background: var(--primary-50);
  border: 2px dashed rgba(255,107,0,0.3);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
}
.add-urun-row:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* Empty state özel */
.empty-state-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
}
.empty-state-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 16px;
  display: block;
}
.empty-state-card h3 {
  margin-bottom: 8px;
  color: var(--ink);
}
.empty-state-card p {
  color: var(--text-light);
  margin-bottom: 18px;
}

/* Settings */
.settings-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}
.settings-section-title {
  font-size: 1.05rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.settings-section-title i { color: var(--primary); }

.social-input {
  display: flex;
  align-items: stretch;
  margin-bottom: 10px;
}
.social-prefix {
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.social-input input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* İstatistik */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.stat-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}
.stat-icon { font-size: 1.8rem; margin-bottom: 6px; }
.stat-box .stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.stat-box .stat-label {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
}

.stats-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 14px;
}
.stats-section h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-products-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.top-product {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}
.top-product:last-child { border-bottom: none; }
.top-rank {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.05rem;
  min-width: 30px;
}
.top-name {
  flex: 1;
  color: var(--ink);
  font-weight: 600;
}
.top-stat {
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Modal */
.menu-modal {
  position: fixed; inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.menu-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
}
.menu-modal-box {
  position: relative;
  background: white;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.menu-modal-large { max-width: 640px; }
.menu-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.menu-modal-header h3 { margin: 0; font-size: 1.1rem; }
.menu-modal-close {
  background: none; border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-light);
  width: 32px;
  height: 32px;
}
.menu-modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.menu-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: var(--bg);
}

/* Hızlı kategori chip'leri */
.quick-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px;
}
.quick-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
}
.quick-cat-chip:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.quick-cat-chip.selected { background: var(--primary); color: white; border-color: var(--primary); }
.quick-cat-chip i { color: var(--primary); }
.quick-cat-chip.selected i { color: white; }

/* QR yazdırma şablonları */
.print-template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.print-template {
  padding: 18px 12px;
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: inherit;
}
.print-template:hover { border-color: var(--primary); background: white; }
.print-template .print-icon { font-size: 2.2rem; margin-bottom: 6px; }
.print-template strong { display: block; color: var(--ink); margin-bottom: 2px; }
.print-template span { color: var(--text-light); font-size: 0.78rem; }

.print-style-selector { margin-top: 20px; }
.design-options { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.design-option {
  flex: 1;
  min-width: 90px;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  font-weight: 500;
  font-size: 0.85rem;
}
.design-option input { display: none; }
.design-option:has(input:checked) {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============================================================
   ÜRÜN DÜZENLEME SAYFASI (page-urun-duzenle.php)
   ============================================================ */
.urun-edit-page {
  padding: 20px 0 100px;
  background: var(--bg);
  min-height: calc(100vh - 100px);
}

.urun-edit-topbar {
  background: white;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}
.back-btn:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.urun-edit-title {
  font-size: 1.3rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.urun-edit-title i { color: var(--primary); }

.form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 14px;
}
.form-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}
.form-card-title i:first-child { color: var(--primary); }
.optional {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: auto;
}

.form-card.collapsible .form-card-title[data-toggle] { cursor: pointer; }
.form-card.collapsible .toggle-arrow {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.2s;
  margin-left: 8px;
}
.form-card.collapsible .toggle-arrow.rotated,
.form-card.collapsible.collapsed .toggle-arrow {
  transform: rotate(-90deg);
}
.form-card.collapsible.collapsed .collapsible-content { display: none; }

.form-control-lg {
  padding: 12px 14px;
  font-size: 1rem;
}

.price-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.price-input-wrap input { padding-right: 36px; flex: 1; }
.price-currency {
  position: absolute;
  right: 14px;
  font-weight: 700;
  color: var(--text-light);
  font-size: 1rem;
  pointer-events: none;
}

/* Görsel section */
.image-section { }
.image-preview-area {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-preview-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-placeholder-big {
  text-align: center;
  color: var(--text-muted);
}
.image-placeholder-big i {
  font-size: 3rem;
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.image-placeholder-big p {
  font-size: 0.88rem;
  font-weight: 500;
}
.image-loading { text-align: center; padding: 40px; color: var(--primary); }
.image-loading i { font-size: 2rem; }

.image-source-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.img-source-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}
.img-source-btn i {
  font-size: 1.3rem;
  color: var(--primary);
}
.img-source-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}
.img-source-btn.img-remove-btn { color: var(--danger); }
.img-source-btn.img-remove-btn i { color: var(--danger); }
.img-source-btn.img-remove-btn:hover { background: #FEE2E2; border-color: var(--danger); }

/* Form bottom bar */
.form-bottom-bar {
  position: sticky;
  bottom: 0;
  background: white;
  padding: 14px 0;
  margin-top: 20px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}
.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover {
  background: #DC2626;
  color: white;
}

/* Search modal (web image search) */
.search-modal {
  position: fixed; inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.search-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
}
.search-modal-box {
  position: relative;
  background: white;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.search-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.search-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-modal-header h3 i { color: var(--primary); }
.search-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-light);
}
.search-modal-body { padding: 20px; overflow-y: auto; }

.search-input-wrap {
  display: flex;
  gap: 8px;
}
.search-input-wrap input { flex: 1; }

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.search-result-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--bg);
}
.search-result-item:hover { border-color: var(--primary); }
.search-result-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.select-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,107,0,0.85);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s;
}
.search-result-item:hover .select-overlay { opacity: 1; }

/* Icon picker */
.icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 6px;
  margin-top: 6px;
}
.icon-option {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: var(--radius-xs);
  cursor: pointer;
  color: var(--text);
}
.icon-option input { display: none; }
.icon-option:hover { background: var(--primary-light); color: var(--primary); }
.icon-option:has(input:checked) {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .qr-info-card { flex-direction: column; text-align: center; }
  .qr-info-text { width: 100%; }
  .qr-url-display { justify-content: center; }
  .qr-actions { justify-content: center; }
  
  .mgmt-tab span { display: none; }
  .mgmt-tab i { font-size: 1.05rem; }
  
  .kat-block-header { flex-wrap: wrap; }
  .kat-block-actions { width: 100%; justify-content: flex-end; }
  
  .urun-row { flex-wrap: wrap; }
  .urun-row-info { flex: 1 1 100%; order: 3; padding: 0 8px; }
  .urun-row-price { font-size: 0.88rem; }
  
  .urun-edit-topbar { flex-direction: column; align-items: flex-start; }
  .urun-edit-title { font-size: 1.15rem; }
  
  .form-bottom-bar { 
    flex-direction: column-reverse;
    bottom: 0;
    margin: 20px -16px -16px;
    padding: 14px 16px;
    background: white;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
  }
  .form-bottom-bar .btn { width: 100%; }
}

/* ============================================================
   İNDİRİM KODU YÖNETİMİ
   ============================================================ */
.indirim-management { padding: 0; }

.indirim-top-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* Tab bar */
.indirim-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  background: var(--bg);
  padding: 4px;
  border-radius: var(--radius-md);
}
.ind-tab {
  flex: 1;
  padding: 10px 12px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.ind-tab.active {
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.ind-tab-content { display: none; }
.ind-tab-content.active { display: block; }

/* Toolbar */
.codes-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 10px;
  flex-wrap: wrap;
}

/* Period toggle */
.period-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 3px;
  border-radius: var(--radius-sm);
}
.period-btn {
  background: transparent;
  border: none;
  padding: 6px 12px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-light);
  border-radius: var(--radius-xs);
  cursor: pointer;
}
.period-btn.active { background: white; color: var(--ink); box-shadow: var(--shadow-xs); }

/* Grafik */
.chart-wrapper {
  position: relative;
  height: 220px;
}

/* Kod kartları */
.codes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.code-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition);
}
.code-card:hover { border-color: var(--text-muted); }
.code-card.pasif { opacity: 0.55; }

.code-card-left { flex: 1; min-width: 0; }

.code-value-display {
  font-family: monospace;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.code-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.code-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.code-discount {
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}
.code-status {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status-active { background: #DCFCE7; color: #166534; }
.status-passive { background: var(--bg); color: var(--text-muted); }
.status-expired { background: #FEE2E2; color: #991B1B; }

.code-restrictions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.code-restrictions span {
  font-size: 0.74rem;
  background: var(--bg);
  color: var(--text);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.code-card-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.code-usage-stat {
  text-align: center;
  min-width: 80px;
}
.code-usage-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.code-usage-stat span {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
}
.code-actions { display: flex; gap: 5px; }

/* Code type badge in top codes */
.code-type-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 6px;
}

/* Recent usages */
.recent-usages-list, .usage-list-detailed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.usage-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  gap: 12px;
  flex-wrap: wrap;
}
.usage-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.88rem;
}
.usage-user i { color: var(--primary); font-size: 1.1rem; }
.usage-code {
  font-family: monospace;
  font-size: 0.88rem;
  color: var(--text);
}
.usage-time {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Usage summary in modal */
.usage-summary {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.usage-summary-stat {
  flex: 1;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}
.usage-summary-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}
.usage-summary-stat span {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Gün chip'leri */
.day-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.day-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 8px 12px;
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}
.day-chip input { display: none; }
.day-chip:hover { background: var(--primary-light); color: var(--primary); }
.day-chip.selected,
.day-chip:has(input:checked) {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Empty state ekstra */
.empty-state-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 50px 24px;
  text-align: center;
}
.empty-state-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 16px;
  display: block;
}
.empty-state-card h3 { margin-bottom: 8px; color: var(--ink); }
.empty-state-card p {
  color: var(--text-light);
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .code-card { flex-direction: column; align-items: stretch; }
  .code-card-right { justify-content: space-between; }
  .ind-tab span { display: none; }
  .codes-toolbar { flex-direction: column; align-items: stretch; }
  .codes-toolbar select { max-width: 100% !important; }
  .usage-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .day-chips { justify-content: center; }
}

/* ============================================================
   PERSONEL YÖNETİMİ
   ============================================================ */
.staff-info-card {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.staff-info-icon {
  font-size: 1.4rem;
  color: #2563EB;
  flex-shrink: 0;
}
.staff-info-card strong {
  display: block;
  color: #1E3A8A;
  margin-bottom: 4px;
  font-size: 1rem;
}
.staff-info-card p {
  margin: 0;
  color: #1E40AF;
  font-size: 0.88rem;
  line-height: 1.5;
}
.staff-info-card a {
  color: #1D4ED8;
  text-decoration: underline;
  font-weight: 600;
}

.add-staff-section,
.staff-list-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
}
.add-staff-section h4,
.staff-list-section h4 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--ink);
}

.add-staff-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.add-staff-form input { flex: 1; min-width: 200px; }

.staff-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.staff-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.staff-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.staff-info { flex: 1; min-width: 0; }
.staff-info strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.staff-info small {
  display: block;
  color: var(--text-light);
  font-size: 0.78rem;
  margin-bottom: 4px;
}
.staff-role {
  display: inline-block;
  padding: 2px 8px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

/* ============================================================
   GARSON ONAYLAMA SAYFASI
   ============================================================ */
.onaylama-page {
  padding: 24px 0 60px;
  min-height: calc(100vh - 100px);
  background: var(--bg);
}

.onaylama-header {
  text-align: center;
  margin-bottom: 24px;
}
.onaylama-header h1 {
  font-size: 1.8rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.onaylama-header p { color: var(--text-light); margin: 0; }

.current-mekan-info {
  background: white;
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--ink);
}
.current-mekan-info i { color: var(--primary); margin-right: 6px; }

/* Method tabs */
.method-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.method-tab {
  flex: 1;
  padding: 14px 16px;
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
}
.method-tab i { font-size: 1.4rem; }
.method-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.method-content {
  display: none;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.method-content.active { display: block; }
.method-info {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 16px;
}

/* PIN giriş */
.pin-entry { text-align: center; }
.pin-input-wrap { margin-bottom: 16px; }
.pin-input {
  width: 240px;
  max-width: 100%;
  padding: 24px 16px;
  font-size: 2.6rem;
  text-align: center;
  font-family: monospace;
  font-weight: 800;
  letter-spacing: 0.4em;
  border: 3px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--ink);
  outline: none;
}
.pin-input:focus {
  border-color: var(--primary);
  background: white;
}

/* QR Scanner */
.qr-scanner-wrap { text-align: center; }
#qrReader {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}
.qr-status {
  margin: 10px 0;
  color: var(--text);
  font-weight: 500;
  text-align: center;
}
.qr-status i { color: var(--primary); margin-right: 6px; }

/* Approval card */
.approval-card {
  background: white;
  border: 2px solid var(--success);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  margin-top: 16px;
  text-align: center;
}
.approval-success-icon {
  width: 64px; height: 64px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: white;
  font-size: 2rem;
}
.approval-card h2 {
  margin: 0 0 18px;
  font-size: 1.3rem;
  color: var(--ink);
}

.approval-detail {
  text-align: left;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 14px;
}
.approval-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
}
.approval-row:last-child { border-bottom: none; }
.approval-row .label {
  color: var(--text-light);
  font-size: 0.88rem;
}
.approval-row strong {
  color: var(--ink);
  text-align: right;
}
.code-display {
  font-family: monospace;
  font-size: 1.05rem;
  color: var(--primary) !important;
  letter-spacing: 0.05em;
}
.discount-display {
  background: var(--primary-light);
  color: var(--primary) !important;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
}

.approval-countdown {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-weight: 600;
  color: #92400E;
}
.approval-countdown strong { color: var(--primary); font-size: 1.1rem; }

.approval-extra {
  text-align: left;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--bg);
}
.approval-extra summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}
.approval-extra summary::-webkit-details-marker { color: var(--primary); }
.approval-extra > .form-row,
.approval-extra > .form-group { margin-top: 12px; }

.approval-actions {
  display: flex;
  gap: 8px;
}
.approval-actions .btn { flex: 1; }

/* Success card */
.success-card {
  background: white;
  border: 2px solid var(--success);
  border-radius: var(--radius-md);
  padding: 40px 22px;
  margin-top: 16px;
  text-align: center;
}
.success-icon-big {
  font-size: 4.5rem;
  color: var(--success);
  margin-bottom: 12px;
}
.success-card h2 {
  font-size: 1.4rem;
  margin: 0 0 8px;
  color: var(--ink);
}
.loyalty-info {
  background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
  border: 1px solid #FDBA74;
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 14px 0;
  color: #9A3412;
  font-weight: 600;
}

.onaylama-error {
  background: #FEE2E2;
  border: 1px solid var(--danger);
  color: #991B1B;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 14px 0;
  font-weight: 600;
}

/* ============================================================
   MÜŞTERİ TARAFI - KOD KULLANMA MODAL
   ============================================================ */

/* Kod giriş kartı (sayfa) */
.code-redeem-card {
  background: linear-gradient(135deg, var(--primary-light), white);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  margin-bottom: 20px;
}
.code-redeem-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.code-redeem-card h2 {
  font-size: 1.5rem;
  margin: 0 0 8px;
  color: var(--ink);
}
.code-redeem-card > p {
  color: var(--text);
  margin: 0 0 18px;
}

.code-redeem-form {
  display: flex;
  gap: 8px;
  max-width: 500px;
  margin: 0 auto;
}
.code-redeem-form input { flex: 1; }

.code-redeem-locked {
  max-width: 400px;
  margin: 0 auto;
  background: white;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.code-redeem-locked i {
  font-size: 1.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.code-redeem-locked p {
  margin: 0 0 14px;
  color: var(--text);
}

#codeRedeemAlert { margin-top: 14px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* Modal */
.usage-modal {
  position: fixed; inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.usage-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
}
.usage-modal-box {
  position: relative;
  background: white;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 440px;
  max-height: 95vh;
  overflow-y: auto;
  padding: 24px;
  animation: modalIn 0.3s;
}
@keyframes modalIn {
  from { opacity:0; transform: translateY(20px); }
  to   { opacity:1; transform: translateY(0); }
}

.usage-modal-header {
  text-align: center;
  margin-bottom: 18px;
}
.usage-modal-header h2 {
  font-size: 1.3rem;
  margin: 0 0 6px;
}
.usage-modal-header p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.92rem;
}

.usage-info-card {
  background: var(--bg);
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  text-align: center;
}
.usage-mekan {
  color: var(--text);
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.usage-mekan i { color: var(--primary); margin-right: 4px; }
.usage-discount-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.usage-discount-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
}

/* PIN gösterim */
.usage-pin-display,
.usage-qr-display {
  background: white;
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  margin-bottom: 14px;
}
.usage-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.usage-pin-digits {
  font-family: monospace;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.3em;
  margin: 6px 0;
}
.usage-pin-display small {
  color: var(--text-light);
  font-size: 0.78rem;
}
.usage-qr-wrap img {
  width: 200px;
  height: 200px;
  display: block;
  margin: 0 auto;
}
.usage-qr-display small {
  color: var(--text-light);
  font-size: 0.78rem;
  display: block;
  margin-top: 6px;
}

.usage-divider {
  text-align: center;
  position: relative;
  margin: 14px 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.usage-divider::before,
.usage-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}
.usage-divider::before { left: 0; }
.usage-divider::after { right: 0; }

.usage-countdown {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin: 14px 0;
  text-align: center;
  color: #92400E;
  font-weight: 600;
}
.usage-countdown i { margin-right: 6px; }
.usage-countdown strong { color: var(--primary); font-size: 1.1rem; }

/* Onaylanmış ekran */
.usage-success-icon,
.usage-expired-icon {
  text-align: center;
  font-size: 5rem;
  margin: 10px 0;
}
.usage-success-icon { color: var(--success); }
.usage-expired-icon { color: var(--text-muted); }

#approvedScreen h2,
#expiredScreen h2 {
  text-align: center;
  font-size: 1.4rem;
  margin: 0 0 10px;
}
#approvedScreen p,
#expiredScreen p {
  text-align: center;
  color: var(--text);
  margin: 0 0 14px;
}

.loyalty-points-earned {
  background: linear-gradient(135deg, #FEF3C7, #FCD34D);
  color: #92400E;
  padding: 14px;
  border-radius: var(--radius-sm);
  margin: 14px 0;
  text-align: center;
  font-weight: 600;
}

/* Review form */
.usage-review-form {
  background: var(--bg);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-top: 14px;
}
.usage-review-form h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  text-align: center;
}

.star-rating {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 2rem;
  margin: 10px 0;
}
.star-rating i {
  cursor: pointer;
  color: #F59E0B;
  transition: transform 0.15s;
}
.star-rating i:hover {
  transform: scale(1.15);
}

@media (max-width: 768px) {
  .code-redeem-form { flex-direction: column; }
  .code-redeem-form input { width: 100%; }
  .usage-pin-digits { font-size: 2.8rem; }
  .add-staff-form { flex-direction: column; }
  .add-staff-form select { max-width: 100% !important; }
}

/* ═══════════════════════════════════════════════════════════════
   KAMPANYA QR/PIN ONAYLAMA MODAL (Mekan Paneli)
═══════════════════════════════════════════════════════════════ */
.qr-approve-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.qr-approve-modal[style*="flex"] { display: flex !important; }

.qr-approve-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.qr-approve-box {
    position: relative;
    background: white;
    border-radius: var(--radius-md);
    padding: 22px;
    width: 100%;
    max-width: 480px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: qrModalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes qrModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.qr-approve-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}
.qr-approve-header h3 {
    margin: 0;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}
.qr-approve-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-light);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.qr-approve-close:hover {
    background: var(--bg);
    color: var(--ink);
}

/* Mekan seçici */
.qr-mekan-selector { margin-bottom: 14px; }

/* Method Tabs */
.qr-method-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    background: var(--bg);
    padding: 4px;
    border-radius: var(--radius-md);
}
.qr-method-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.qr-method-tab i { font-size: 1.05rem; }
.qr-method-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.qr-method-content {
    display: none;
}
.qr-method-content.active { display: block; }

.qr-method-info {
    text-align: center;
    color: var(--text);
    margin-bottom: 12px;
    font-size: 0.92rem;
}

/* PIN giriş */
.qr-pin-input {
    width: 100%;
    padding: 22px 14px;
    font-size: 2.4rem;
    text-align: center;
    font-family: monospace;
    font-weight: 800;
    letter-spacing: 0.35em;
    border: 3px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.qr-pin-input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}
.qr-pin-input::placeholder {
    color: var(--text-muted);
    letter-spacing: 0.35em;
}

/* QR Scanner alanı */
#qrPanelReader {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    margin-bottom: 12px;
}
#qrPanelReader video, #qrPanelReader img {
    border-radius: var(--radius-md);
}
#qrPanelStatus {
    margin: 10px 0;
    text-align: center;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
}
#qrPanelStatus i { color: var(--primary); margin-right: 6px; }

/* Onay Kartı */
.qr-approval-card {
    text-align: center;
}
.qr-approval-card h2 {
    margin: 8px 0 16px;
    font-size: 1.3rem;
    color: var(--ink);
}

/* Başarı Kartı */
.qr-success-card {
    text-align: center;
    padding: 24px 12px;
}
.qr-success-card h2 {
    margin: 8px 0 8px;
    font-size: 1.35rem;
}
.qr-success-card p {
    margin: 0 0 14px;
    color: var(--text);
}

/* Hata Kartı */
.qr-error-card {
    background: #FEE2E2;
    border: 1px solid var(--danger);
    color: #991B1B;
    padding: 18px;
    border-radius: var(--radius-md);
    text-align: center;
    margin: 14px 0;
}
.qr-error-card i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

@media (max-width: 480px) {
    .qr-pin-input { font-size: 1.8rem; padding: 18px 10px; letter-spacing: 0.25em; }
    .qr-approve-box { padding: 16px; }
}

/* ═══════════════════════════════════════════════════════════════
   PANEL PAGE HEADER + INFO HELPER (Yeni eklenenler)
═══════════════════════════════════════════════════════════════ */
.panel-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}
.panel-page-header h2 {
  margin: 0;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.info-helper {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.info-helper > i {
  color: #2563EB;
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.info-helper > div { flex: 1; min-width: 0; }
.info-helper strong {
  display: block;
  color: #1E3A8A;
  margin-bottom: 4px;
  font-size: 0.95rem;
}
.info-helper p {
  margin: 0;
  color: #1E40AF;
  font-size: 0.88rem;
  line-height: 1.5;
}
.info-helper a {
  color: #1D4ED8;
  font-weight: 600;
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════
   İNDİRİM KODLARI LİSTESİ (Yenilenen)
═══════════════════════════════════════════════════════════════ */
.discount-codes-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.discount-code-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  gap: 8px;
  border: 1px solid transparent;
  transition: border-color 0.15s;
}
.discount-code-item:hover {
  border-color: var(--border);
  background: white;
}
.discount-code-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.discount-code-text {
  font-family: monospace;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}
.discount-code-usage {
  color: var(--text-light);
  font-size: 0.78rem;
}
.discount-code-actions {
  display: flex;
  gap: 4px;
}
.kod-action-btn {
  background: white;
  border: 1px solid var(--border);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 0.85rem;
  transition: all 0.15s;
}
.kod-action-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════
   STATİK QR MODAL (Mağaza posteri için)
═══════════════════════════════════════════════════════════════ */
.static-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s;
}
.static-qr-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}
.static-qr-box {
  position: relative;
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  max-height: 95vh;
  overflow-y: auto;
  animation: qrModalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.static-qr-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--bg);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--text-light);
  line-height: 1;
}
.static-qr-close:hover { background: var(--border); color: var(--ink); }
.static-qr-box h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  padding: 0 30px;
}
.static-qr-box p {
  color: var(--text-light);
  font-size: 0.88rem;
  margin: 0 0 16px;
  line-height: 1.5;
}
.static-qr-img-wrap {
  background: white;
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 12px;
  display: inline-block;
  margin-bottom: 12px;
}
.static-qr-img-wrap img {
  display: block;
  width: 240px;
  height: 240px;
  max-width: 100%;
}
.static-qr-code-display {
  font-family: monospace;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--primary);
  letter-spacing: 0.1em;
  background: var(--primary-light);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 14px;
}
.static-qr-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.static-qr-actions .btn { flex: 1; max-width: 160px; }

/* ═══════════════════════════════════════════════════════════════
   MOBİL UYUMLULUK — TÜM TEMA İÇİN GENİŞ KAPSAMLI
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* PANEL PAGE HEADER */
  .panel-page-header {
    flex-direction: column;
    align-items: stretch;
  }
  .panel-page-header h2 { font-size: 1.15rem; }
  .panel-page-actions {
    width: 100%;
  }
  .panel-page-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  
  /* İNDİRİM KODU İTEM */
  .discount-code-item {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .discount-code-info {
    justify-content: space-between;
  }
  .discount-code-actions {
    justify-content: center;
  }
  .kod-action-btn {
    width: 40px;
    height: 40px;
  }
  
  /* INFO HELPER */
  .info-helper { padding: 12px 14px; gap: 10px; }
  .info-helper > i { font-size: 1.1rem; }
  .info-helper strong { font-size: 0.92rem; }
  .info-helper p { font-size: 0.85rem; }
  
  /* STATIC QR */
  .static-qr-box { padding: 30px 18px 20px; }
  .static-qr-img-wrap img { width: 200px; height: 200px; }
  .static-qr-code-display { font-size: 1.3rem; }
  .static-qr-actions { flex-direction: column; }
  .static-qr-actions .btn { max-width: 100%; }
  
  /* QR APPROVE MODAL */
  .qr-approve-box {
    padding: 16px;
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    height: 100vh;
    width: 100vw;
  }
  .qr-approve-modal[style*="flex"] { padding: 0; align-items: stretch; }
  .qr-method-tabs .qr-method-tab { font-size: 0.85rem; padding: 9px 10px; }
  .qr-method-tab i { font-size: 0.95rem; }
  
  /* DASHBOARD PANEL */
  .dashboard-content { padding: 14px; }
  
  /* CAMPAIGN MODAL */
  #campaignModal > div {
    max-width: 100% !important;
    border-radius: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    padding: 20px !important;
    margin: 0 !important;
  }
  #campaignModal { padding: 0 !important; align-items: stretch !important; }
  
  /* FORM ROW MOBILE */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  /* MENU MODAL & GENERIC MODAL */
  .menu-modal-box {
    max-width: 100% !important;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0 !important;
  }
  .menu-modal[style*="flex"],
  .menu-modal {
    padding: 0 !important;
    align-items: stretch !important;
  }
  
  /* USAGE MODAL */
  .usage-modal-box {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 8px;
  }
  .usage-pin-digits { font-size: 2.8rem !important; }
  
  /* INDIRIM REDEEM CARD */
  .code-redeem-card { padding: 22px 18px; }
  .code-redeem-card h2 { font-size: 1.25rem; }
  .code-redeem-icon { font-size: 2.5rem; }
  
  /* GENERIC FORM CONTROLS */
  .form-control { font-size: 16px; }  /* iOS auto-zoom prevention */
  .form-control-lg { font-size: 16px; }
  
  /* BUTTONS - TOUCH TARGET */
  .btn { 
    min-height: 40px;
    padding: 9px 16px;
  }
  .btn-sm { min-height: 32px; padding: 6px 12px; }
  .btn-lg { min-height: 48px; padding: 12px 18px; }
  .btn-block { width: 100%; }
  
  /* TABLOLAR - YATAY SCROLL */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table {
    min-width: 100%;
    font-size: 0.85rem;
  }
  
  /* SECTION & CONTAINER */
  .section {
    padding: 20px 0;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .section-title {
    font-size: 1.2rem !important;
  }
  
  /* SOSYAL/PROFIL TABS */
  .profile-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .profile-tabs::-webkit-scrollbar { display: none; }
  .profile-tabs .tab {
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  /* MEKAN GRID */
  .mekan-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  
  /* HEADER NAV */
  .header-actions {
    gap: 8px;
  }
  
  /* QR APPROVAL CARD ELEMANLARI */
  .approval-actions {
    flex-direction: column-reverse;
  }
  .approval-actions .btn { width: 100%; }
  
  /* QR PIN INPUT */
  .qr-pin-input,
  .pin-input {
    font-size: 2rem !important;
    padding: 16px 12px !important;
    letter-spacing: 0.3em !important;
    width: 100% !important;
  }
  
  /* LOYALTY WIZARD */
  .wizard-progress label {
    font-size: 0.62rem !important;
  }
  .wizard-options {
    grid-template-columns: 1fr !important;
  }
  
  /* DAY CHIPS */
  .day-chips {
    justify-content: center;
  }
  .day-chip span {
    padding: 8px 10px;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  
  /* H1, H2 küçült */
  h1 { font-size: 1.4rem !important; }
  h2 { font-size: 1.15rem !important; }
  h3 { font-size: 1rem !important; }
  
  /* PANEL */
  .dashboard-content { padding: 12px; }
  
  /* BUTTONS COMPACT */
  .panel-page-actions .btn span {
    display: none;  /* ikonlar yeterli */
  }
  .panel-page-actions .btn {
    width: 44px;
    height: 44px;
    padding: 0;
  }
  .panel-page-actions .btn:last-child {
    flex: 1;
  }
  .panel-page-actions .btn:last-child span {
    display: inline;
  }
  .panel-page-actions .btn:last-child {
    width: auto;
    padding: 9px 14px;
  }
  
  /* PIN INPUT SMALLER */
  .qr-pin-input,
  .pin-input {
    font-size: 1.7rem !important;
    padding: 14px 10px !important;
  }
  
  /* MODAL HEADER */
  .qr-approve-header h3 { font-size: 1rem; }
  
  /* USAGE MODAL */
  .usage-pin-digits { font-size: 2.2rem !important; }
  .usage-qr-wrap img { width: 170px !important; height: 170px !important; }
  
  /* STATIC QR */
  .static-qr-img-wrap img { width: 180px; height: 180px; }
  
  /* CARDS */
  .stat-card { padding: 10px; }
  .stat-value { font-size: 1.2rem !important; }
  .stat-label { font-size: 0.72rem; }
  
  /* DASHBOARD STATS - 1 KOLON */
  .dashboard-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
  }
}

/* Çok dar (Galaxy Fold benzeri) */
@media (max-width: 360px) {
  .container { padding: 0 10px; }
  .dashboard-content { padding: 10px; }
  .btn { font-size: 0.82rem; padding: 8px 12px; }
  .btn-sm { font-size: 0.75rem; }
  .form-control { padding: 8px 10px; }
}

/* iOS Safari için ek düzeltmeler */
@supports (-webkit-touch-callout: none) {
  input, textarea, select {
    font-size: 16px;  /* zoom prevent */
  }
  .qr-approve-box,
  .menu-modal-box,
  .usage-modal-box {
    -webkit-overflow-scrolling: touch;
  }
}

/* ═══════════════════════════════════════════════════════════════
   AKILLI ARAMA MOTORU
═══════════════════════════════════════════════════════════════ */
.smart-search {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.smart-search-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.smart-search-tabs::-webkit-scrollbar { display: none; }
.smart-tab {
  flex: 1;
  min-width: 110px;
  background: none;
  border: none;
  padding: 14px 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.smart-tab i { font-size: 1.05rem; }
.smart-tab:hover { color: var(--ink); background: var(--bg); }
.smart-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--primary-light);
}

.smart-panel {
  padding: 22px;
  animation: fadeIn 0.3s;
}
.smart-panel-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.smart-panel-header > i {
  font-size: 1.8rem;
  color: var(--primary);
  background: var(--primary-light);
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.smart-panel-header h3 { margin: 0 0 4px; font-size: 1.2rem; }
.smart-panel-header p { margin: 0; color: var(--text-light); font-size: 0.9rem; line-height: 1.5; }

.smart-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.smart-form .filter-select,
.smart-form .product-search-input { flex: 1; min-width: 160px; }

/* Bütçe input */
.budget-input-group { display: flex; flex-direction: column; gap: 4px; }
.budget-input-group label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.budget-input-wrap { position: relative; }
.budget-input {
  font-size: 1.6rem;
  font-weight: 800;
  padding: 12px 40px 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  width: 160px;
  text-align: center;
  color: var(--primary);
  outline: none;
}
.budget-input:focus { border-color: var(--primary); }
.budget-currency {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}
.budget-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.budget-chip {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  transition: all 0.15s;
}
.budget-chip:hover, .budget-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.product-search-input {
  font-size: 1rem;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
}
.product-search-input:focus { border-color: var(--primary); }

.smart-filters {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  align-items: center;
}
.mini-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
}
.mini-filter input[type="number"] {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* Kombinasyon */
.combo-form { flex-direction: column; align-items: stretch; }
.combo-items { display: flex; flex-direction: column; gap: 8px; }
.combo-item-row { display: flex; gap: 8px; align-items: center; }
.combo-item-input {
  flex: 1;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  outline: none;
}
.combo-item-input:focus { border-color: var(--primary); }
.combo-remove {
  width: 38px; height: 38px;
  border: none;
  background: #FEE2E2;
  color: var(--danger);
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
  cursor: pointer;
  flex-shrink: 0;
}
.combo-remove:hover { background: var(--danger); color: white; }
.combo-add-btn {
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  color: var(--text-light);
  font-weight: 600;
  font-family: inherit;
  transition: all 0.15s;
}
.combo-add-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ── SONUÇLAR ── */
.smart-loading, .smart-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-light);
}
.smart-loading i { font-size: 2rem; color: var(--primary); margin-bottom: 12px; }
.smart-empty i { font-size: 3rem; color: var(--text-muted); margin-bottom: 12px; }
.smart-empty h3 { margin: 0 0 6px; color: var(--ink); }
.smart-empty p { margin: 0; }

.smart-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.smart-result-header h3 { margin: 0; font-size: 1.15rem; }
.result-best {
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
}

/* Bütçe sonuç kartları */
.budget-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.budget-mekan-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.budget-mekan-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.budget-mekan-img {
  display: block;
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg);
  position: relative;
}
.budget-price-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,0.7);
  color: #4ADE80;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
}
.budget-mekan-body { padding: 14px; }
.budget-mekan-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.budget-mekan-top h4 { margin: 0 0 4px; font-size: 1.05rem; color: var(--ink); }
.budget-rating {
  background: #FEF3C7;
  color: #92400E;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.budget-mekan-cat {
  display: inline-block;
  color: var(--text-light);
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.budget-items-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 6px;
}
.budget-items { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.budget-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.bi-name { color: var(--ink); }
.bi-price { color: var(--primary); font-weight: 700; }
.budget-more { font-size: 0.78rem; color: var(--text-light); text-align: center; margin-bottom: 10px; }

/* Ürün sonuç kartları */
.product-results { display: flex; flex-direction: column; gap: 10px; }
.product-result-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  position: relative;
  transition: box-shadow 0.2s;
}
.product-result-card:hover { box-shadow: var(--shadow-sm); }
.product-result-card.best-deal {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, var(--primary-light), white);
}
.best-badge {
  position: absolute;
  top: -10px; left: 14px;
  background: var(--primary);
  color: white;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}
.best-badge i { margin-right: 3px; }
.product-result-img {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--bg);
  flex-shrink: 0;
}
.product-result-body { flex: 1; min-width: 0; }
.product-result-body h4 { margin: 0 0 4px; font-size: 1rem; color: var(--ink); }
.product-mekan-link {
  color: var(--text-light);
  font-size: 0.85rem;
  text-decoration: none;
}
.product-mekan-link:hover { color: var(--primary); }
.product-result-meta {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-light);
}
.product-result-price {
  text-align: right;
  flex-shrink: 0;
}
.product-result-price .old-price {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-result-price .current-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

/* Kombinasyon sonuç kartları */
.combo-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.combo-result-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
}
.combo-result-card.best-combo {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, var(--primary-light), white);
}
.combo-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.combo-result-header h4 { margin: 0; font-size: 1.05rem; color: var(--ink); }
.combo-result-header h4 i { color: var(--primary); margin-right: 4px; }
.combo-basket {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.combo-basket-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}
.cbi-query { color: var(--text-light); font-weight: 600; text-transform: capitalize; }
.cbi-name { color: var(--ink); flex: 1; }
.cbi-price { color: var(--primary); font-weight: 700; }
.combo-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--ink);
  color: white;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.combo-total-label { font-weight: 600; }
.combo-total-amount { font-size: 1.3rem; font-weight: 800; }
.combo-savings {
  background: #DCFCE7;
  color: #166534;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

@media (max-width: 768px) {
  .smart-tab span { font-size: 0.82rem; }
  .smart-panel { padding: 16px; }
  .smart-panel-header > i { width: 44px; height: 44px; font-size: 1.4rem; }
  .smart-panel-header h3 { font-size: 1.05rem; }
  .smart-form { flex-direction: column; align-items: stretch; }
  .smart-form .filter-select,
  .smart-form .product-search-input,
  .smart-form .btn { width: 100%; }
  .budget-input { width: 100%; }
  .budget-results, .combo-results { grid-template-columns: 1fr; }
  .product-result-card { flex-wrap: wrap; }
  .product-result-img { width: 50px; height: 50px; }
  .product-result-price { width: 100%; text-align: left; display: flex; align-items: baseline; gap: 8px; }
}

@media (max-width: 480px) {
  .smart-tab { min-width: 90px; padding: 12px 8px; }
  .smart-tab span { display: none; }
  .smart-tab i { font-size: 1.2rem; }
}

/* ═══════════════════════════════════════════════════════════════
   ★ TUTARLILIK & MOBİL DÜZELTME KATMANI ★
   (En sonda — tüm tutarsızlıkları normalleştirir, tasarımı korur)
═══════════════════════════════════════════════════════════════ */

/* ── 1. YATAY TAŞMA ÖNLEME (üst üste binme / taşma çözümü) ── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
* { min-width: 0; }  /* flex/grid çocuklarının taşmasını önler */
img, video, iframe, canvas, svg {
  max-width: 100%;
  height: auto;
}
/* Uzun metin / URL taşmasını önle */
p, h1, h2, h3, h4, h5, span, a, div {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ── 2. TUTARLI SPACING ÖLÇEĞİ ── */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --section-y: 48px;       /* bölüm dikey boşluğu */
  --section-y-mobile: 28px;
}

/* ── 3. TUTARLI BÖLÜM (SECTION) BOŞLUKLARI ── */
.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.section-sm { padding-top: var(--space-5); padding-bottom: var(--space-5); }

/* ── 4. TUTARLI BUTON ÖLÇEĞİ (her yerde aynı) ── */
.btn {
  min-height: 42px;
  line-height: 1.2;
  white-space: nowrap;
}
.btn-sm  { min-height: 34px; padding: 7px 14px; font-size: 0.82rem; }
.btn-lg  { min-height: 50px; padding: 13px 26px; font-size: 1rem; }
.btn i { flex-shrink: 0; }

/* ── 5. FORM ELEMANLARI TUTARLILIK ── */
.form-control, input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="password"], input[type="search"],
input[type="date"], input[type="time"], select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}
textarea { min-height: 90px; }
label { line-height: 1.4; }

/* ── 6. TUTARLI BAŞLIK ÖLÇEĞİ ── */
h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.2; }
h2 { font-size: clamp(1.25rem, 3vw, 1.7rem); line-height: 1.25; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); line-height: 1.3; }
h4 { font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.35; }

/* ── 7. KART İÇİ TUTARLI BOŞLUK ── */
.card, .mekan-card, .dashboard-card, .stat-card,
.settings-section, .smart-search, .reward-card {
  overflow: hidden;  /* içerik taşmasını engelle */
}

/* ═══════════════════════════════════════════════════════════════
   ★ MOBİL (≤768px) — KAPSAMLI DÜZELTME ★
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  html { font-size: 15px; }

  .container { padding-left: 16px; padding-right: 16px; }

  /* Bölüm boşlukları küçült */
  .section {
    padding-top: var(--section-y-mobile);
    padding-bottom: var(--section-y-mobile);
  }

  /* iOS zoom önleme: input min 16px */
  .form-control, input, select, textarea { font-size: 16px !important; }

  /* TÜM grid'leri tek sütuna indir (taşma/üst üste binme çözümü) */
  .mekan-grid,
  .dashboard-stats,
  .footer-grid,
  .card-grid,
  .stats-grid,
  .rewards-grid,
  .budget-results,
  .combo-results,
  .tiers-edit-list,
  .tier-distribution,
  .wizard-options,
  .reward-presets {
    grid-template-columns: 1fr !important;
    gap: var(--space-3) !important;
  }

  /* 2'li kalması mantıklı olanlar */
  .dashboard-stats,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Flex satırları sarsın (üst üste binme önlemi) */
  .smart-form,
  .panel-page-header,
  .members-toolbar,
  .section-header,
  .approval-actions,
  .add-staff-form {
    flex-wrap: wrap;
  }
  .smart-form > *,
  .add-staff-form > * { width: 100%; }

  /* Butonlar tam genişlik (dokunma kolaylığı) — modal/form içinde */
  .smart-form .btn,
  .wizard-actions .btn,
  .menu-modal-footer .btn {
    width: 100%;
  }

  /* Dashboard / panel — sidebar üste */
  .dashboard {
    grid-template-columns: 1fr !important;
    gap: var(--space-4) !important;
  }
  .dashboard-sidebar {
    position: static !important;
    margin-bottom: var(--space-4);
  }

  /* Yatay scroll gereken sekme barları */
  .smart-search-tabs,
  .loyalty-tabs,
  .profile-tabs,
  .main-nav-inner,
  .method-tabs,
  .qr-method-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .smart-search-tabs::-webkit-scrollbar,
  .loyalty-tabs::-webkit-scrollbar,
  .profile-tabs::-webkit-scrollbar { display: none; }

  /* Modallar tam ekrana yakın */
  .menu-modal-box,
  .qr-approve-box {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 0 !important;
    min-height: 100vh;
    max-height: 100vh;
  }
  .menu-modal, .qr-approve-modal { padding: 0 !important; }

  /* Usage / static QR modal ortada kalsın ama dar */
  .usage-modal-box,
  .static-qr-box {
    max-width: calc(100vw - 24px) !important;
    margin: 12px auto;
  }

  /* Tablolar yatay kaydırılabilir */
  table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }

  /* Member/liste kartları tek sütun */
  .member-card,
  .product-result-card,
  .top-customer-row,
  .discount-code-item {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
  }
  .member-stats { justify-content: space-between; }

  /* Başlık + buton içeren header'lar dikey */
  .panel-page-header,
  .section-header {
    align-items: flex-start;
    gap: var(--space-3);
  }
  .panel-page-actions { width: 100%; }
  .panel-page-actions .btn { flex: 1; }

  /* Hero alanı taşmasın */
  .hero, .hero-map-section { max-width: 100vw; overflow: hidden; }

  /* Profil header dikey */
  .profile-header,
  .profile-cover-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  /* Aşırı padding'leri normalize et */
  .dashboard-content,
  .settings-section,
  .smart-panel,
  .auth-side {
    padding: var(--space-4) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ★ KÜÇÜK TELEFON (≤480px) ★
═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  html { font-size: 14.5px; }
  .container { padding-left: 12px; padding-right: 12px; }

  /* Tek sütun her şey */
  .dashboard-stats,
  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  /* Sekme yazılarını gizle, ikon kalsın */
  .smart-tab span { display: none; }
  .smart-tab { min-width: 60px; padding: 12px 8px; }
  .smart-tab i { font-size: 1.25rem; }

  /* Buton metinleri sığsın */
  .btn { font-size: 0.85rem; padding: 9px 14px; }

  /* Başlık + ikon boşluğu */
  .smart-panel-header { flex-direction: column; text-align: center; align-items: center; }

  /* Stat değerleri küçült */
  .stat-value { font-size: 1.3rem !important; }

  /* PIN inputları sığsın */
  .qr-pin-input, .pin-input, .usage-pin-digits {
    font-size: 1.8rem !important;
    letter-spacing: 0.25em !important;
  }
}

/* ── iOS Safari momentum + safe area ── */
@supports (-webkit-touch-callout: none) {
  .menu-modal-box, .qr-approve-box, .usage-modal-box {
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
}

/* ── Erişilebilirlik: dokunma hedefleri min 40px ── */
@media (max-width: 768px) {
  a.btn, button.btn, .kod-action-btn, .kat-icon-btn,
  .smart-tab, .loy-tab, .method-tab, .qr-method-tab {
    min-height: 40px;
  }
}

/* ── STANDART MODAL (afiedle-modal) — tutarlı modal sistemi ── */
.afiedle-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.afiedle-modal[style*="flex"] { display: flex !important; }
.afiedle-modal-box {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: afiedleModalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes afiedleModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.afiedle-modal-box h3 { margin-bottom: var(--space-4); }

@media (max-width: 768px) {
  .afiedle-modal { padding: 0; align-items: stretch; }
  .afiedle-modal-box {
    max-width: 100%;
    border-radius: 0;
    min-height: 100vh;
    max-height: 100vh;
    padding: 20px;
  }
}
