/* ===========================
   App Card — style.css
   Rəngli/Canlı tema
   =========================== */

:root {
  --grad1: #667eea;
  --grad2: #764ba2;
  --grad3: #f093fb;
  --accent: #f5576c;
  --success: #43e97b;
  --dark: #1a1a2e;
  --card-bg: rgba(255,255,255,0.97);
  --text: #2d2d44;
  --muted: #6b7280;
  --radius: 20px;
  --shadow: 0 20px 60px rgba(102,126,234,0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--grad1) 0%, var(--grad2) 50%, var(--grad3) 100%);
  background-attachment: fixed;
  color: var(--text);
}

/* ---- Layout ---- */
.page-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  animation: slideUp .5s ease;
}

.card-wide { max-width: 800px; }

@keyframes slideUp {
  from { opacity:0; transform: translateY(30px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ---- Header gradient band ---- */
.card-header {
  background: linear-gradient(135deg, var(--grad1), var(--accent));
  padding: 32px 24px 24px;
  text-align: center;
  position: relative;
}

.card-header h1 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .5px;
}

.card-header p { color: rgba(255,255,255,.8); font-size: .9rem; margin-top: 4px; }

.logo-brand {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 8px;
}

.logo-brand span { color: #ffd700; }

/* ---- Forms ---- */
.card-body { padding: 28px 28px 32px; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: .95rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  background: #fafafa;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--grad1);
  box-shadow: 0 0 0 3px rgba(102,126,234,.15);
  background: #fff;
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: none;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--grad1), var(--accent));
  color: #fff;
  width: 100%;
}

.btn-success {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
  color: #1a2e1a;
}

.btn-danger  { background: linear-gradient(135deg,#f5576c,#f093fb); color:#fff; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--grad1);
  color: var(--grad1);
}

.btn-sm { padding: 8px 14px; font-size: .82rem; border-radius: 8px; }

/* ---- Dashboard: kiçik çip düymələr (GPS, axtarış, xəritə tipi, şablonlar) ---- */
.dash-chip-btn {
  white-space: nowrap; padding: 10px 14px; border: none; border-radius: 10px;
  font-size: .83rem; cursor: pointer; font-weight: 600; color: #fff;
}
.dash-chip-btn.chip-purple { background: #667eea; }
.dash-chip-btn.chip-green  { background: #10b981; }

.dash-pill-btn {
  padding: 6px 12px; border-radius: 8px; font-size: .76rem; font-weight: 700;
  cursor: pointer; border: 1px solid transparent;
}
.dash-pill-btn.pill-violet { background: #f5f3ff; color: #5b21b6; border-color: #ddd6fe; }
.dash-pill-btn.pill-green  { background: #f0fdf4; color: #065f46; border-color: #bbf7d0; }

.dash-maptype-btn {
  padding: 5px 12px; border-radius: 8px; font-size: .77rem; font-weight: 700;
  cursor: pointer; border: 1.5px solid #e5e7eb; background: #fff; color: #6b7280;
}
.dash-maptype-btn.active { border-color: #667eea; background: #ede9fe; color: #5b21b6; }

/* ---- Alert messages ---- */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ---- Public card view ---- */
.profile-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  animation: slideUp .5s ease;
}

.profile-header {
  background: linear-gradient(135deg, var(--grad1) 0%, var(--grad2) 60%, var(--grad3) 100%);
  padding: 40px 24px 60px;
  text-align: center;
  position: relative;
}

.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.8);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.profile-avatar-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: 4px solid rgba(255,255,255,.6);
}

.profile-name  { color:#fff; font-size:1.5rem; font-weight:700; }
.profile-title { color:rgba(255,255,255,.85); font-size:.95rem; margin-top:4px; }
.profile-company{ color:rgba(255,255,255,.7); font-size:.85rem; margin-top:2px; }

.profile-body { padding: 24px 20px 28px; }

.profile-bio {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 22px;
  padding: 0 8px;
}

/* Contact buttons */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  transition: transform .15s, box-shadow .15s;
}

.contact-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.contact-btn .icon { font-size: 1.1rem; flex-shrink:0; }

.cb-phone    { background:#e8f5e9; color:#2e7d32; }
.cb-whatsapp { background:#e8f5f0; color:#1b5e20; }
.cb-email    { background:#e3f2fd; color:#1565c0; }
.cb-website  { background:#f3e5f5; color:#6a1b9a; }

/* Social icons */
.social-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.25rem;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.social-btn:hover { transform: scale(1.15); box-shadow: 0 8px 20px rgba(0,0,0,.18); }

.sb-linkedin  { background: #0077b5; color:#fff; }
.sb-instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color:#fff; }
.sb-telegram  { background: #2ca5e0; color:#fff; }
.sb-youtube   { background: #ff0000; color:#fff; }

/* Action buttons row */
.action-row {
  display: flex;
  gap: 10px;
}

.action-row .btn { flex: 1; font-size: .82rem; padding: 12px 10px; }

/* QR section */
.qr-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.qr-section p { font-size: .78rem; color: var(--muted); margin-top: 8px; }

#qr-canvas { border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.1); }

/* View badge */
.view-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f3f4f6;
  color: var(--muted);
  font-size: .75rem;
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 10px;
}

/* ---- Dashboard ---- */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: linear-gradient(135deg, var(--grad1), var(--grad2));
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  text-align: center;
}

.stat-card.green  { background: linear-gradient(135deg,#43e97b,#38f9d7); color:#1a2e1a; }
.stat-card.orange { background: linear-gradient(135deg,#f093fb,#f5576c); }

.stat-number { font-size: 2rem; font-weight: 800; }
.stat-label  { font-size: .8rem; opacity: .8; margin-top: 4px; }

/* Tab nav */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 4px;
}
.tab-nav:last-of-type {
  margin-bottom: 24px;
}
.tab-nav + .tab-nav {
  margin-top: 0;
}

.tab-btn {
  flex: none;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
  color: var(--muted);
  transition: all .2s;
  white-space: nowrap;
}

.tab-btn.active {
  background: #fff;
  color: var(--grad1);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Avatar preview */
.avatar-preview-wrap { text-align: center; margin-bottom: 20px; }

.avatar-preview {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--grad1);
  box-shadow: 0 4px 14px rgba(102,126,234,.3);
}

.avatar-placeholder-preview {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad1), var(--grad3));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  border: 3px solid rgba(102,126,234,.3);
}

/* Nav bar */
.top-nav {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-nav a { color:#fff; text-decoration:none; font-weight:600; font-size:.9rem; }
.top-nav .nav-right { display:flex; gap:12px; align-items:center; }

/* Admin table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.admin-table th {
  background: linear-gradient(135deg, var(--grad1), var(--grad2));
  color: #fff;
  padding: 10px 12px;
  text-align: left;
}

.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.admin-table tr:hover td { background: #f9f9ff; }

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}

.badge-active   { background:#d1fae5; color:#065f46; }
.badge-inactive { background:#fee2e2; color:#991b1b; }
.badge-admin    { background:#ede9fe; color:#5b21b6; }

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .form-row  { grid-template-columns: 1fr; }
  .card-body { padding: 20px 16px 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .action-row { flex-direction: column; }
  .dash-grid  { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════════
   Mobil responsiv — bütün əsas səhifələr
   ════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Layout */
  .page-wrap { padding: 12px 10px; align-items: flex-start; }
  .card, .card-wide { border-radius: 16px; }
  .card-wide { max-width: 100%; }
  .card-body { padding: 16px 14px 20px; }

  /* Nav */
  .top-nav {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .top-nav .logo-brand { font-size: 1.4rem; }
  .top-nav .nav-right {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
  }
  .top-nav a { font-size: .82rem; }

  /* Buttons */
  .btn { padding: 11px 18px; font-size: .9rem; }
  .btn-sm { padding: 7px 12px; font-size: .78rem; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-group { margin-bottom: 14px; }
  .form-group input,
  .form-group textarea,
  .form-group select { font-size: .9rem; padding: 10px 13px; }

  /* Tab nav — mobil: hər cərgə ayrı sürüşdürülür */
  .tab-nav {
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px;
    scrollbar-width: none;
    flex-wrap: nowrap;
    border-radius: 10px;
    margin-bottom: 4px;
  }
  .tab-nav:last-of-type { margin-bottom: 20px; }
  .tab-nav::-webkit-scrollbar { display: none; }
  .tab-btn {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: .78rem;
    white-space: nowrap;
  }

  /* Dashboard stat grid */
  .dash-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-number { font-size: 1.6rem; }

  /* Profile card (public) */
  .profile-card { border-radius: 16px; }
  .profile-header { padding: 28px 16px 40px; }
  .profile-avatar { width: 90px; height: 90px; }
  .profile-avatar-placeholder { width: 90px; height: 90px; font-size: 2rem; }
  .profile-name  { font-size: 1.3rem; }
  .profile-body  { padding: 18px 14px 22px; }

  /* Contact grid: 1 sütun mobilde */
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .contact-btn  { padding: 10px 10px; font-size: .8rem; }
  .contact-btn .icon { font-size: 1rem; }

  /* Social row */
  .social-btn { width: 42px; height: 42px; font-size: 1.1rem; }

  /* Action row */
  .action-row { flex-direction: column; gap: 8px; }
  .action-row .btn { width: 100%; }

  /* Admin table → scroll */
  .admin-table { font-size: .78rem; }
  .admin-table th, .admin-table td { padding: 8px 8px; }

  /* Upgrade banner */
  .upgrade-banner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* Copy wrap */
  .copy-wrap { flex-direction: column; }
  .copy-wrap input { width: 100%; }

  /* Onboarding overlay */
  #onboarding-overlay > div { padding: 24px 18px !important; }

  /* Cards list in dashboard */
  .card-header { padding: 22px 16px 18px; }
  .card-header h1 { font-size: 1.2rem; }

  /* Theme grid */
  .theme-grid, [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Exhibition top grid */
  .exh-top-grid { grid-template-columns: 1fr; }
  .exh-info-grid { grid-template-columns: 1fr; }
  .exh-hero h1  { font-size: 1.3rem; }
  .stat-bar     { flex-wrap: wrap; }
  .stat-bar-actions { margin-left: 0; width: 100%; }

  /* Stand product grid */
  .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .contact-grid { grid-template-columns: 1fr; }
  .profile-avatar { width: 80px; height: 80px; }
  .profile-name   { font-size: 1.2rem; }
  .dash-grid      { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .btn            { padding: 10px 14px; font-size: .85rem; }
  .tab-btn        { font-size: .72rem; padding: 7px 9px; }
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mb-0  { margin-bottom: 0 !important; }
.small-link { font-size:.85rem; color:var(--muted); text-decoration:none; }
.small-link:hover { color:var(--grad1); }
.divider { border:none; border-top:1px solid #e5e7eb; margin:20px 0; }
.slug-preview { font-size:.82rem; color:var(--muted); margin-top:4px; }
.slug-preview strong { color:var(--grad1); }

/* Copy link */
.copy-wrap { display:flex; gap:8px; align-items:center; }
.copy-wrap input { flex:1; }

/* ============================================
   Exhibition / Sergi səhifəsi
   ============================================ */

/* Page layout */
.page-wrap.page-top { align-items: flex-start; padding-top: 30px; }
.exh-content { max-width: 900px; width: 100%; }

/* Hero banner */
.exh-hero {
  background: linear-gradient(135deg,#667eea 0%,#764ba2 50%,#f5576c 100%);
  border-radius: 20px; padding: 36px 28px; color: #fff;
  margin-bottom: 24px; position: relative; overflow: hidden;
}
.exh-hero::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.exh-hero-tag {
  background: rgba(0,0,0,.3); display: inline-block;
  padding: 4px 14px; border-radius: 20px;
  font-size: .78rem; font-weight: 700; margin-bottom: 12px;
}
.exh-hero h1 { font-size: 1.8rem; font-weight: 900; letter-spacing: -.5px; margin-bottom: 8px; color: #fff; }
/* opacity yox — tam ağ mətn */
.exh-hero-meta { font-size: .88rem; color: #fff; display: flex; flex-direction: column; gap: 6px; }
.exh-hero-meta span { font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,.2); }
.exh-hero-link { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.exh-hero-link:hover { opacity: .85; }

/* Top 2-column grid */
.exh-top-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }

/* Dates card */
.card-dates { border-radius: 16px; overflow: visible; }
.card-dates-head { padding: 16px 18px; border-bottom: 1px solid #f0f0f0; font-size: .9rem; }
.dates-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.dates-table th { background: rgba(102,126,234,.08); padding: 9px 14px; text-align: left; font-size: .8rem; color: #6b7280; }
.dates-table td { padding: 9px 14px; border-bottom: 1px solid #f0f0f0; font-size: .88rem; }

/* Join box */
.join-box {
  background: linear-gradient(135deg,rgba(102,126,234,.07),rgba(245,87,108,.05));
  border: 1px solid rgba(102,126,234,.18); border-radius: 16px;
  padding: 20px; text-align: center;
}
.join-icon { font-size: 1.5rem; margin-bottom: 8px; }
.join-title { font-weight: 700; color: #2d2d44; margin-bottom: 6px; }
.join-title-sm { font-weight: 700; color: #2d2d44; margin-bottom: 4px; }
.join-desc { font-size: .83rem; color: #6b7280; margin-bottom: 14px; }
.join-desc-sm { font-size: .82rem; color: #6b7280; }
.join-desc-mb { font-size: .82rem; color: #6b7280; margin-bottom: 12px; }
.join-switch { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.role-btns { display: flex; gap: 12px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.role-btn { padding: 12px 24px; border-radius: 14px; font-weight: 700; font-size: .9rem; border: 2px solid transparent; cursor: pointer; transition: all .2s; }
.rb-exhibitor { background: linear-gradient(135deg,#667eea,#764ba2); color: #fff; border-color: transparent; }
.rb-exhibitor:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(102,126,234,.4); }
.rb-visitor { background: rgba(102,126,234,.08); color: #667eea; border-color: rgba(102,126,234,.25); }
.rb-visitor:hover { background: rgba(102,126,234,.15); }

/* Stats bar */
.stat-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.stat-pill { border-radius: 12px; padding: 12px 18px; text-align: center; }
.stat-pill--blue  { background: linear-gradient(135deg,rgba(102,126,234,.08),rgba(118,75,162,.06)); border: 1px solid rgba(102,126,234,.12); }
.stat-pill--green { background: linear-gradient(135deg,rgba(67,233,123,.08),rgba(56,249,215,.05)); border: 1px solid rgba(67,233,123,.2); }
.stat-pill--yellow{ background: linear-gradient(135deg,rgba(245,158,11,.08),rgba(239,68,68,.05)); border: 1px solid rgba(245,158,11,.2); }
.stat-pill-num { font-size: 1.6rem; font-weight: 900; }
.stat-pill-num--blue   { color: #667eea; }
.stat-pill-num--green  { color: #059669; }
.stat-pill-num--yellow { color: #d97706; }
.stat-pill-lbl { font-size: .7rem; color: #9ca3af; }
.stat-bar-actions { display: flex; flex-direction: column; gap: 6px; margin-left: auto; }

/* Participant cards */
.p-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  border: 1px solid #f0f0f0; margin-bottom: 8px;
  transition: all .2s; background: #fff;
}
.p-card:hover { border-color: rgba(102,126,234,.25); background: #f9f8ff; }
.p-card-link { display: flex; align-items: center; gap: 12px; flex: 1; text-decoration: none; min-width: 0; }
.p-card-btns { display: flex; gap: 6px; flex-shrink: 0; }
.p-av {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(135deg,#667eea,#764ba2);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700;
}
.p-av img { width: 100%; height: 100%; object-fit: cover; }
.p-info { flex: 1; min-width: 0; }
.p-name { font-weight: 700; font-size: .9rem; color: #2d2d44; }
.p-role { font-size: .75rem; color: #9ca3af; }
.p-stand { background: #fef3c7; color: #92400e; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 8px; display: inline-block; margin-left: 6px; }

/* Catalog search */
.catalog-search-wrap { margin-bottom: 16px; }
.catalog-search { width: 100%; padding: 10px 14px; border: 1.5px solid #e5e7eb; border-radius: 12px; font-size: .88rem; font-family: inherit; }
.catalog-search:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,.12); }

/* Empty state */
.empty-msg { color: #9ca3af; text-align: center; padding: 24px 0; font-size: .88rem; }

/* Info tab */
.exh-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.info-label { font-size: .78rem; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.info-text  { font-size: .88rem; color: #374151; line-height: 1.7; margin-bottom: 12px; }
.info-meta  { font-size: .85rem; color: #6b7280; margin-bottom: 6px; }
.info-link  { color: #667eea; text-decoration: none; }
.info-link:hover { text-decoration: underline; }
.schedule-row  { padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: .85rem; }
.schedule-date { font-weight: 600; }
.schedule-time { color: #9ca3af; margin-left: 8px; }

/* Share box */
.share-box   { margin-top: 20px; padding: 16px; background: #f9f8ff; border-radius: 12px; text-align: center; }
.share-title { font-size: .82rem; color: #6b7280; margin-bottom: 12px; }
.share-btns  { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* Friend button helpers */
.form-inline { display: inline; }
.pending-lbl { font-size: .72rem; color: #9ca3af; }

/* Organizer analytics panel */
.org-panel {
  background: linear-gradient(135deg,rgba(102,126,234,.05),rgba(118,75,162,.03));
  border: 1px solid rgba(102,126,234,.15); border-radius: 16px;
  padding: 20px; margin-bottom: 24px;
}
.org-panel-title { font-size: .78rem; font-weight: 700; color: #667eea; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.org-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.org-stat { background: #fff; border-radius: 12px; padding: 12px 14px; text-align: center; border: 1px solid #e5e7eb; }
.org-stat-num { font-size: 1.5rem; font-weight: 900; color: #667eea; }
.org-stat-lbl { font-size: .72rem; color: #9ca3af; margin-top: 2px; }
.org-link-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Exhibition list filters */
.exh-filter-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.exh-filter-btn { padding: 8px 18px; border-radius: 20px; border: 1.5px solid #e5e7eb; background: #fff; font-size: .85rem; font-weight: 600; color: #6b7280; cursor: pointer; transition: all .2s; }
.exh-filter-btn.active { background: linear-gradient(135deg,#667eea,#764ba2); color: #fff; border-color: transparent; }
.exh-filter-btn:hover:not(.active) { border-color: #667eea; color: #667eea; }

/* Stand page */
.stand-hero { background: linear-gradient(135deg,#667eea,#764ba2); border-radius: 20px; padding: 28px; color: #fff; margin-bottom: 20px; text-align: center; }
.stand-hero h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.stand-hero p { font-size: .85rem; opacity: .8; }
.stand-badge { background: rgba(0,0,0,.2); display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: .75rem; font-weight: 700; margin-bottom: 10px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 12px; }
.product-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px; transition: all .2s; }
.product-card:hover { border-color: rgba(102,126,234,.3); box-shadow: 0 6px 20px rgba(102,126,234,.1); }
.product-name { font-weight: 700; font-size: .9rem; color: #2d2d44; margin-bottom: 4px; }
.product-desc { font-size: .8rem; color: #6b7280; line-height: 1.5; }

/* Responsive */
@media (max-width: 640px) {
  .exh-top-grid   { grid-template-columns: 1fr; }
  .exh-info-grid  { grid-template-columns: 1fr; }
  .exh-hero h1    { font-size: 1.4rem; }
  .stat-bar-actions { margin-left: 0; width: 100%; flex-direction: row; flex-wrap: wrap; }
}

/* ── Dil keçid düymələri ──────────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 3px 5px;
}
.lang-btn {
  font-size: .68rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  padding: 3px 7px;
  border-radius: 14px;
  letter-spacing: .3px;
  transition: all .18s;
  white-space: nowrap;
}
.lang-btn:hover  { color: #fff; background: rgba(255,255,255,.15); }
.lang-btn.lang-active {
  background: rgba(255,255,255,.9);
  color: #667eea;
}
/* Card.php — sahibi dashboard düyməsi (sol üst) */
.card-owner-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg,#667eea,#764ba2);
  color: #fff;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(102,126,234,.35);
}
/* Card.php üçün tünd fon üzərindəki switcher */
.lang-switcher-card {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}
.lang-switcher-card .lang-switcher {
  background: rgba(0,0,0,.18);
}
@media (max-width: 640px) {
  .lang-btn { font-size: .62rem; padding: 2px 5px; }
}

/* ════════════════════════════════════════════════
   AUTH SPLIT-SCREEN — login.php / register.php
   ════════════════════════════════════════════════ */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fff;
}

/* ---- Left: visual / brand panel ---- */
.auth-visual {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--grad1) 0%, var(--grad2) 55%, var(--accent) 130%);
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.auth-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  background: rgba(255,255,255,.10);
  animation: authBlobDrift 16s ease-in-out infinite;
}
.auth-blob.b1 { width: 340px; height: 340px; top: -90px; left: -100px; animation-delay: 0s; }
.auth-blob.b2 { width: 260px; height: 260px; bottom: -80px; right: -60px; background: rgba(255,255,255,.08); animation-delay: -5s; }
.auth-blob.b3 { width: 160px; height: 160px; top: 38%; right: 12%; background: rgba(255,255,255,.07); animation-delay: -10s; }
@keyframes authBlobDrift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(18px,-22px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-blob { animation: none; }
}

.auth-visual-top { position: relative; z-index: 2; }
.auth-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.auth-logo span { color: #ffe28a; }

.auth-visual-mid { position: relative; z-index: 2; margin-top: 44px; max-width: 420px; }
.auth-headline {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.3px;
  margin-bottom: 14px;
  text-shadow: 0 2px 16px rgba(0,0,0,.08);
}
.auth-subline {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,.86);
  margin-bottom: 32px;
}

/* Floating mock digital-card preview (pure CSS, no image) */
.auth-mock {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 20px;
  padding: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  animation: authMockFloat 7s ease-in-out infinite;
}
@keyframes authMockFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-mock { animation: none; }
}
.auth-mock-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.auth-mock-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #ffe28a, #ffd1e8);
  flex-shrink: 0;
}
.auth-mock-lines { flex: 1; min-width: 0; }
.auth-mock-line { height: 9px; border-radius: 5px; background: rgba(255,255,255,.55); margin-bottom: 7px; }
.auth-mock-line.w60 { width: 60%; }
.auth-mock-line.w40 { width: 40%; background: rgba(255,255,255,.35); }
.auth-mock-qr {
  width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
  background:
    linear-gradient(rgba(255,255,255,.9) 0 100%) center/8px 8px no-repeat,
    repeating-linear-gradient(0deg, rgba(255,255,255,.9) 0 4px, transparent 4px 8px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.9) 0 4px, transparent 4px 8px);
  background-color: rgba(255,255,255,.18);
}
.auth-mock-chips { display: flex; gap: 8px; }
.auth-mock-chip {
  flex: 1;
  height: 30px;
  border-radius: 9px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
}

.auth-features { position: relative; z-index: 2; margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }
.auth-feature { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: rgba(255,255,255,.92); }
.auth-feature-ic {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
}
.auth-feature-ic svg { width: 14px; height: 14px; }

.auth-visual-bottom { position: relative; z-index: 2; margin-top: auto; padding-top: 32px; font-size: .8rem; color: rgba(255,255,255,.7); }

/* ---- Right: form panel ---- */
.auth-form-side {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 28px 20px;
}
.auth-form-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-form-topbar .lang-switcher { position: static; }
.auth-form-topbar .lang-switcher .lang-btn { color: var(--muted); background: #f3f4f6; }
.auth-form-topbar .lang-switcher .lang-btn.lang-active,
.auth-form-topbar .lang-switcher .lang-btn:hover { background: var(--grad1); color: #fff; }
.auth-mobile-logo { font-size: 1.35rem; font-weight: 800; color: var(--text); text-decoration: none; }
.auth-mobile-logo span { color: var(--grad1); }

.auth-form-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 0;
  animation: authFadeUp .5s ease;
}
@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-form-box { animation: none; }
}

.auth-title { font-size: 1.55rem; font-weight: 800; color: var(--text); letter-spacing: -.2px; margin-bottom: 6px; }
.auth-sub   { font-size: .9rem; color: var(--muted); margin-bottom: 26px; line-height: 1.5; }

.auth-input-group { position: relative; }
.auth-input-group .auth-ic {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: #9ca3af; pointer-events: none;
}
.auth-input-group input { padding-left: 42px !important; }
.auth-input-group.has-toggle input { padding-right: 44px !important; }
.auth-input-group .pw-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 8px;
  color: #9ca3af; display: flex; align-items: center; justify-content: center;
  min-width: 28px; min-height: 28px;
}
.auth-input-group .pw-toggle:hover { color: var(--grad1); }
.auth-input-group .pw-toggle svg { width: 18px; height: 18px; }

.auth-alert {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  padding: 12px 14px; border-radius: 12px; font-size: .85rem;
  margin-bottom: 18px; line-height: 1.5;
}
.auth-alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.auth-banner-success {
  display: flex; align-items: flex-start; gap: 10px;
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534;
  padding: 12px 14px; border-radius: 12px; font-size: .85rem;
  margin-bottom: 18px; line-height: 1.5;
}
.auth-banner-success svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.auth-footnote { margin-top: 22px; text-align: center; font-size: .87rem; color: var(--muted); }
.auth-footnote a { color: var(--grad1); font-weight: 700; text-decoration: none; }
.auth-footnote a:hover { text-decoration: underline; }

/* Compact gradient banner — mobil-only, marka hissini saxlamaq üçün */
.auth-mobile-banner {
  display: none;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--grad1) 0%, var(--grad2) 60%, var(--accent) 130%);
  color: #fff;
  padding: 22px 20px 26px;
}
.auth-mobile-banner .auth-blob { opacity: .8; }
.auth-mobile-banner .auth-logo { font-size: 1.3rem; position: relative; z-index: 2; }
.auth-mobile-banner .auth-mb-tag {
  position: relative; z-index: 2;
  font-size: .85rem; color: rgba(255,255,255,.88);
  margin-top: 6px; line-height: 1.4; max-width: 320px;
}

@media (min-width: 901px) {
  .auth-mobile-banner { display: none !important; }
}

/* Desktop-only visual panel — mobil-də tam yeni axın */
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; min-height: 100dvh; }
  .auth-visual { display: none; }
  .auth-mobile-banner { display: block; }
  .auth-form-side { min-height: 0; padding: 0 18px 28px; }
  .auth-form-topbar { padding: 14px 0 0; }
  .auth-form-topbar .auth-mobile-logo { display: none; } /* loqo artıq banner-də var */
  .auth-form-box {
    justify-content: flex-start;
    margin: 0; max-width: 100%;
    padding: 22px 0 8px;
  }
  .auth-title { font-size: 1.32rem; }
  .auth-sub { margin-bottom: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .form-group input, .form-group textarea, .form-group select { font-size: 16px; } /* iOS auto-zoom qarşısını alır */
  .auth-input-group .pw-toggle { min-width: 44px; min-height: 44px; }
  .auth-footnote { margin-bottom: 12px; }
}
@media (min-width: 901px) {
  .auth-mobile-logo, .auth-form-topbar > .auth-mobile-logo { display: none; }
}
