/* =============================================================
   GetTickets — Custom Frontend Styles
   Template Base: Bocor (Style 13) | Colors: #213b52 + #fdc134
   Fonts: Cairo (AR) | Nunito (EN)
   ============================================================= */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Nunito:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --primary:        #213b52;
  --primary-dark:   #182d3e;
  --primary-light:  #2d5070;
  --accent:         #fdc134;
  --accent-dark:    #e6ad28;
  --accent-light:   #fdd067;
  --text-dark:      #1a1a2e;
  --text-muted:     #6c7a8d;
  --bg-light:       #f4f7fb;
  --bg-white:       #ffffff;
  --border-color:   #e2e8f0;
  --shadow-sm:      0 2px 8px rgba(33,59,82,.08);
  --shadow-md:      0 8px 24px rgba(33,59,82,.12);
  --shadow-lg:      0 16px 48px rgba(33,59,82,.16);
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      22px;
  --radius-xl:      32px;
  --transition:     all .3s cubic-bezier(.4,0,.2,1);
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Nunito', sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
}

[lang="en"] body,
body.lang-en {
  font-family: 'Nunito', 'Cairo', sans-serif;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Cairo', 'Nunito', sans-serif;
  font-weight: 700;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; }

/* ── Announcement Bar ─────────────────────────────────────── */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1001;
}

.announcement-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 200px,
    rgba(253,193,52,.06) 200px,
    rgba(253,193,52,.06) 201px
  );
}

.announcement-bar .announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.announcement-bar .announcement-link {
  color: var(--accent);
  font-weight: 700;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.announcement-bar .announcement-link:hover { color: var(--accent-light); }

.announcement-bar .close-bar {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: var(--transition);
}

[dir="rtl"] .announcement-bar .close-bar { left: auto; right: 16px; }

.announcement-bar .close-bar:hover { color: #fff; }

/* ── Header ───────────────────────────────────────────────── */
#header {
  background: var(--primary);
  padding: 0;
  z-index: 997;
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
}

#header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 68px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo .logo-icon i {
  font-size: 20px;
  color: var(--primary);
}

.site-logo .logo-text {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}

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

/* Navbar */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.main-nav > li > a:hover,
.main-nav > li > a.active {
  color: #fff;
  background: rgba(255,255,255,.1);
}

.main-nav > li > a i { font-size: 15px; }

/* Dropdown */
.main-nav .has-dropdown { position: relative; }

.main-nav .has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255,255,255,.7);
  margin-inline-start: 4px;
  transition: var(--transition);
}

.main-nav .has-dropdown:hover > a::after { transform: rotate(180deg); }

.dropdown-menu-custom {
  display: none;
  position: absolute;
  top: 100%;
  padding-top: 8px;
  right: 0;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 999;
  border: 1px solid var(--border-color);
  animation: dropFadeIn .2s ease;
}

[dir="ltr"] .dropdown-menu-custom { right: auto; left: 0; }

@keyframes dropFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.main-nav .has-dropdown:hover .dropdown-menu-custom { display: block; }

.dropdown-menu-custom a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text-dark);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

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

.dropdown-menu-custom .divider {
  height: 1px;
  background: var(--border-color);
  margin: 6px 0;
}

/* Header Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-header-login {
  padding: 7px 18px;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: var(--radius-xl);
  color: rgba(255,255,255,.9);
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition);
  background: transparent;
}

.btn-header-login:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,.1);
}

.btn-header-sell {
  padding: 7px 20px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-xl);
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 700;
  transition: var(--transition);
}

.btn-header-sell:hover {
  background: var(--accent-dark);
  color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(253,193,52,.4);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: var(--radius-xl);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.lang-toggle:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
}

/* Notification Bell */
.notif-btn {
  position: relative;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.85);
  font-size: 18px;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.notif-btn:hover { background: rgba(255,255,255,.2); color: #fff; }

.notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--accent);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ── Category Strip (below header) ───────────────────────── */
.category-strip {
  background: var(--primary-dark);
  border-bottom: 2px solid rgba(253,193,52,.2);
  overflow-x: auto;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar { display: none; }

.category-strip-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  white-space: nowrap;
  min-width: max-content;
}

.cat-strip-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.cat-strip-link:hover,
.cat-strip-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.cat-strip-link i { font-size: 15px; }

/* ── Hero Section ─────────────────────────────────────────── */
#hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 60px 0 80px;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(253,193,52,.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(253,193,52,.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-title .accent { color: var(--accent); }

.hero-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

/* Search Box */
.hero-search {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 6px 6px 6px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  margin-bottom: 36px;
}

[dir="rtl"] .hero-search { padding: 6px 20px 6px 6px; }

.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dark);
  background: transparent;
}

.hero-search input::placeholder { color: #b0b8c5; }

.hero-search-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-search-btn:hover {
  background: var(--accent);
  color: var(--primary);
}

/* Hero CTA Buttons */
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.btn-hero-primary {
  padding: 13px 30px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-xl);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-primary:hover {
  background: var(--accent-dark);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(253,193,52,.4);
}

.btn-hero-secondary {
  padding: 13px 30px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: var(--radius-xl);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(253,193,52,.08);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 32px;
}

.hero-stat-item { text-align: center; }

.hero-stat-number {
  font-size: 30px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 12.5px;
  color: rgba(255,255,255,.6);
  font-weight: 500;
  margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-ticket-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 320px;
  width: 100%;
}

.hero-ticket-card .ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.hero-ticket-card .ticket-badge {
  background: var(--accent);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.hero-ticket-card .ticket-title {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero-ticket-card .ticket-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-ticket-card .ticket-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.7);
  font-size: 13px;
}

.hero-ticket-card .ticket-info-row i {
  color: var(--accent);
  font-size: 14px;
  width: 16px;
}

.hero-ticket-card .ticket-divider {
  border: none;
  border-top: 1px dashed rgba(255,255,255,.2);
  margin: 16px 0;
}

.hero-ticket-card .ticket-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-ticket-card .ticket-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
}

.hero-ticket-card .ticket-btn {
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.hero-ticket-card .ticket-btn:hover { background: var(--accent-dark); }

/* Floating badges on hero */
.hero-float-badge {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  animation: floatBadge 3s ease-in-out infinite;
}

.hero-float-badge i { color: var(--accent); font-size: 18px; }

.hero-float-badge.badge-1 { top: 10%; right: -10px; animation-delay: 0s; }
.hero-float-badge.badge-2 { bottom: 15%; left: -10px; animation-delay: 1.5s; }

[dir="ltr"] .hero-float-badge.badge-1 { right: auto; left: -10px; }
[dir="ltr"] .hero-float-badge.badge-2 { left: auto; right: -10px; }

@keyframes floatBadge {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ── Section Title ────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(253,193,52,.12);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.section-label i { color: var(--accent); }

.section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Category Cards ───────────────────────────────────────── */
.categories-section {
  padding: 70px 0 50px;
  background: var(--bg-white);
}

.cat-card {
  background: var(--bg-light);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.cat-card:hover {
  border-color: var(--accent);
  background: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cat-card .cat-icon {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  transition: var(--transition);
}

.cat-card .cat-icon i {
  font-size: 24px;
  color: var(--accent);
}

.cat-card:hover .cat-icon { background: var(--accent); }
.cat-card:hover .cat-icon i { color: var(--primary); }

.cat-card .cat-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.cat-card .cat-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Event Cards ──────────────────────────────────────────── */
.events-section {
  padding: 70px 0;
  background: var(--bg-light);
}

.event-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  height: 100%;
  border: 1px solid var(--border-color);
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.event-card-img {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.event-card:hover .event-card-img img { transform: scale(1.06); }

.event-card-img .event-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 2;
}

[dir="ltr"] .event-card-img .event-badge { right: auto; left: 12px; }

.event-card-img .event-avail {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 2;
}

[dir="ltr"] .event-card-img .event-avail { left: auto; right: 12px; }

.event-avail.available {
  background: rgba(40,167,69,.9);
  color: #fff;
}

.event-avail.soldout {
  background: rgba(220,53,69,.9);
  color: #fff;
}

.event-card-body { padding: 18px; }

.event-card-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.event-meta-item i { color: var(--accent); font-size: 14px; width: 14px; }

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  margin-top: 14px;
}

.event-price-area {}

.event-price-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.event-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--accent);
}

.btn-event-view {
  padding: 9px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-event-view:hover {
  background: var(--accent);
  color: var(--primary);
}

/* View All Button */
.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 36px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-xl);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-view-all:hover {
  background: var(--accent-dark);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(253,193,52,.35);
}

/* ── How It Works ─────────────────────────────────────────── */
.how-section {
  padding: 80px 0;
  background: #fff;
}

.step-card {
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.step-number {
  position: absolute;
  top: -14px;
  right: 16px;
  font-size: 80px;
  font-weight: 900;
  color: var(--bg-light);
  line-height: 1;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

[dir="ltr"] .step-number { right: auto; left: 16px; }

.step-icon-wrap {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 20px rgba(33,59,82,.25);
}

.step-icon-wrap i {
  font-size: 28px;
  color: var(--accent);
}

.step-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 400;
}

/* Connector Arrow */
.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 22px;
  opacity: .5;
}

[dir="rtl"] .step-arrow { transform: scaleX(-1); }

/* ── Why Us ───────────────────────────────────────────────── */
.why-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.why-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px 24px;
  height: 100%;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.why-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.why-icon i { font-size: 24px; color: var(--primary); }

.why-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.why-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 400;
  margin: 0;
}

/* ── Sell CTA Banner ──────────────────────────────────────── */
.sell-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.sell-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.sell-cta-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}

.sell-cta-title span { color: var(--accent); }

.sell-cta-desc {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 480px;
}

.sell-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.sell-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 500;
}

.sell-step-item .step-dot {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}

.btn-sell-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-xl);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-sell-cta:hover {
  background: var(--accent-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(253,193,52,.4);
}

.sell-cta-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sell-mini-stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(8px);
}

.sell-mini-stat .stat-icon {
  width: 46px;
  height: 46px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sell-mini-stat .stat-icon i { font-size: 20px; color: var(--primary); }

.sell-mini-stat .stat-value {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.sell-mini-stat .stat-label {
  font-size: 12.5px;
  color: rgba(255,255,255,.6);
  font-weight: 500;
  margin-top: 3px;
}

/* ── Footer ───────────────────────────────────────────────── */
#footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
}

.footer-main {
  padding: 60px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-brand .footer-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand .footer-logo .logo-icon i {
  font-size: 18px;
  color: var(--primary);
}

.footer-brand .footer-logo .logo-text {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}

.footer-brand .footer-logo .logo-text span { color: var(--accent); }

.footer-tagline {
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 280px;
}

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

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 16px;
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
}

.footer-section-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

[dir="ltr"] .footer-section-title::after { right: auto; left: 0; }

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,.65);
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover { color: var(--accent); padding-inline-start: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-contact-item .contact-icon {
  width: 32px;
  height: 32px;
  background: rgba(253,193,52,.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-contact-item .contact-icon i { font-size: 15px; color: var(--accent); }

.footer-contact-item .contact-text {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.65);
}

.footer-contact-item .contact-text a {
  color: rgba(255,255,255,.65);
  font-weight: 600;
}

.footer-contact-item .contact-text a:hover { color: var(--accent); }

.footer-bottom {
  padding: 20px 0;
  font-size: 12.5px;
  color: rgba(255,255,255,.4);
}

.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: var(--accent); }

.footer-legal {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal-sep { opacity: .4; }

/* ── Back to Top ──────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--accent);
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

[dir="rtl"] .back-to-top { left: auto; right: 24px; }

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}

/* ── Flash Alert ──────────────────────────────────────────── */
.flash-wrapper { padding: 12px 0 0; }

/* ── Payment Badge ────────────────────────────────────────── */
.payment-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.payment-badge:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.25);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991.98px) {
  #hero { padding: 40px 0 60px; min-height: auto; }
  .hero-visual { margin-top: 40px; }
  .hero-stats { gap: 20px; }
  .hero-btns { flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
  .hero-search { max-width: 100%; }
}

@media (max-width: 767.98px) {
  .main-nav, .header-actions .btn-header-sell, .lang-toggle { display: none; }
  .mobile-nav-toggle { display: block; }
  .hero-float-badge { display: none; }
  .footer-main .row > div { margin-bottom: 32px; }
  .hero-stats { justify-content: center; }
  .hero-title { text-align: center; }
  .hero-subtitle { text-align: center; max-width: 100%; }
  .hero-search { margin-left: auto; margin-right: auto; }
  .hero-btns { align-items: center; }
}

/* ── Mobile Menu (overlay) ────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9998;
}

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

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: var(--primary);
  z-index: 9999;
  overflow-y: auto;
  padding: 0;
  transform: translateX(100%);
  transition: transform .3s ease;
}

[dir="ltr"] .mobile-menu-panel { right: auto; left: 0; transform: translateX(-100%); }

.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.mobile-nav-links {
  padding: 16px;
  list-style: none;
  margin: 0;
}

.mobile-nav-links li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  color: rgba(255,255,255,.85);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}

.mobile-nav-links li a:hover {
  background: rgba(255,255,255,.1);
  color: var(--accent);
}

.mobile-nav-links .divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 8px 0;
}

.mobile-sell-btn {
  margin: 16px;
}

.mobile-sell-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}


/* =============================================================
   forms like : login, register, profile pages
   ============================================================= */
/* ── Auth Page Layout ─────────────────────────────────────── */
.form-page {
  min-height: calc(100vh - 140px);
  position: relative;
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, var(--bg-light) 0%, #eef2f7 100%);
  overflow: hidden;
}

.page-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
}

.page-bg-shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(33,59,82,.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.page-bg-shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(253,193,52,.15) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
}

.page-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(33,59,82,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── Auth Card ────────────────────────────────────────────── */
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: 0 20px 60px rgba(33,59,82,.12);
  border: 1px solid rgba(33,59,82,.06);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

/* ── Auth Card Header ─────────────────────────────────────── */
.form-card-header {
  text-align: center;
  margin-bottom: 32px;
}

.form-page-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  text-decoration: none;
}

.form-page-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-page-logo-icon i {
  font-size: 20px;
  color: var(--accent);
}

.form-page-logo-text {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  font-family: 'Cairo', 'Nunito', sans-serif;
}

.form-page-logo-text span { color: var(--accent); }

.form-page-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  margin: 0;
}

/* ── Auth Alerts ──────────────────────────────────────────── */
.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.5;
}

.form-alert i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

.form-alert-danger {
  background: rgba(220,53,69,.08);
  border: 1px solid rgba(220,53,69,.2);
  color: #b02a37;
}

.form-alert-warning {
  background: rgba(255,193,7,.1);
  border: 1px solid rgba(255,193,7,.3);
  color: #856404;
}

.form-alert-success {
  background: rgba(25,135,84,.08);
  border: 1px solid rgba(25,135,84,.2);
  color: #0f6848;
}

/* ── Auth Field ───────────────────────────────────────────── */
.form-field {
  margin-bottom: 20px;
  flex: 1;
}

.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form-row .form-field {
  flex: 1;
  min-width: 180px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-label i { color: var(--accent); font-size: 14px; }

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.form-label-row .form-label { margin-bottom: 0; }

.form-forgot-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
}

.form-forgot-link:hover { color: var(--accent-dark); }

.form-required { color: #dc3545; font-size: 12px; }

.form-input {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(33,59,82,.08);
}

.form-input.is-invalid {
  border-color: #dc3545;
  background: rgba(220,53,69,.03);
}

.form-input::placeholder { color: #b0b8c5; }

.form-error {
  font-size: 12px;
  font-weight: 600;
  color: #dc3545;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Input Group (password with toggle) */
.form-field { position: relative; }

.form-input.has-toggle { padding-inline-end: 46px; }

.form-input-btn {
  position: absolute;
  top: 36px;
  left: 10px;
  width: 36px;
  height: 44px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 17px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: var(--transition);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

[dir="ltr"] .form-input-btn { left: auto; right: 10px; }
[dir="rtl"] .form-input-btn { left: 10px; right: auto; }

.form-input-btn:hover { color: var(--primary); }

/* ── Gender Group ─────────────────────────────────────────── */
.form-gender-group {
  display: flex;
  gap: 10px;
}

.form-gender-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  user-select: none;
}

.form-gender-option input[type="radio"] { display: none; }

.form-gender-option:hover,
.form-gender-option.selected {
  border-color: var(--primary);
  background: rgba(33,59,82,.06);
  color: var(--primary);
}

.form-gender-group.is-invalid .form-gender-option {
  border-color: rgba(220,53,69,.3);
}

/* ── Check / Terms ────────────────────────────────────────── */
.form-check {
  margin-bottom: 20px;
}

.form-check-label {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.5;
}

.form-check-input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-terms {
  margin-bottom: 20px;
  padding: 14px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.form-terms a {
  color: var(--accent);
  font-weight: 700;
}

.form-terms.is-invalid { border-color: rgba(220,53,69,.4); }

/* ── Submit Button ────────────────────────────────────────── */
.form-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(33,59,82,.25);
}

.form-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(33,59,82,.3);
}

.form-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* ── Footer Link ──────────────────────────────────────────── */
.form-footer-link {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.form-footer-link a {
  color: var(--primary);
  font-weight: 700;
  margin-inline-start: 4px;
}

.form-footer-link a:hover { color: var(--accent); }

/* ── Responsive Auth ──────────────────────────────────────── */
@media (max-width: 576px) {
  .form-card { padding: 28px 20px; }
  .form-row { flex-direction: column; gap: 0; }
  .form-gender-group { flex-direction: row; }
}

/* =============================================================
   Profile Page
   ============================================================= */

.inner-page {
  background: var(--bg-light);
  min-height: calc(100vh - 140px);
}

/* ── Sidebar ──────────────────────────────────────────────── */
.side-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  position: sticky;
  top: 20px;
  text-align: center;
}

/* Avatar */
.avatar-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 14px;
  border: 3px solid var(--accent);
  padding: 3px;
  overflow: hidden;
  background: var(--bg-light);
}

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

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-placeholder i {
  font-size: 40px;
  color: rgba(255,255,255,.7);
}

.side-panel-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.side-panel-email {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 16px;
  word-break: break-all;
}

/* Meta Info */
.side-panel-meta {
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 20px;
  text-align: start;
}

.side-panel-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.side-panel-meta-item:last-child { margin-bottom: 0; }

.side-panel-meta-item i { color: var(--accent); font-size: 13px; width: 14px; }

.side-panel-meta-item strong {
  color: var(--primary);
  font-weight: 700;
  margin-inline-start: auto;
}

/* Sidebar Nav */
.side-panel-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-panel-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  text-align: start;
}

.side-panel-nav-item i { font-size: 16px; }

.side-panel-nav-item:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.side-panel-nav-item.active {
  background: rgba(33,59,82,.08);
  color: var(--primary);
  font-weight: 700;
}

/* ── Profile Card ─────────────────────────────────────────── */
.content-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.content-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-light);
}

.content-card-header i {
  font-size: 20px;
  color: var(--accent);
}

.content-card-header h5 {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.content-card-body { padding: 28px 24px; }

/* ── Tab Content ──────────────────────────────────────────── */
.tab-content-panel { display: none; }
.tab-content-panel.active { display: block; }

/* ── Profile Image Upload ─────────────────────────────────── */
.image-upload-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--border-color);
  margin-bottom: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.image-upload-row:hover { border-color: var(--accent); }

.image-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--accent);
}

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

.image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder i {
  font-size: 28px;
  color: rgba(255,255,255,.5);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(33,59,82,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  cursor: pointer;
  border-radius: 50%;
}

.image-overlay i { font-size: 20px; color: #fff; }

.image-preview:hover .image-overlay { opacity: 1; }

.image-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.image-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* ── Profile Form Footer ──────────────────────────────────── */
.form-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 20px;
}

.form-footer .form-btn {
  width: auto;
  padding: 11px 32px;
  margin-bottom: 0;
}

/* ── Danger Card ──────────────────────────────────────────── */
.danger-card {
  border-color: rgba(220,53,69,.2);
}

.danger-card .content-card-header {
  background: rgba(220,53,69,.04);
  border-bottom-color: rgba(220,53,69,.15);
}

.btn-deactivate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  color: #dc3545;
  border: 1.5px solid rgba(220,53,69,.4);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-deactivate:hover {
  background: rgba(220,53,69,.08);
  border-color: #dc3545;
}

/* ── Responsive Profile ───────────────────────────────────── */
@media (max-width: 991.98px) {
  .side-panel { position: static; margin-bottom: 20px; }
  .side-panel-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .side-panel-nav-item { flex: 1; min-width: 140px; justify-content: center; }
  .side-panel-meta { text-align: center; }
  .side-panel-meta-item { justify-content: center; }
  .side-panel-meta-item strong { margin-inline-start: 4px; }
}

@media (max-width: 576px) {
  .content-card-body { padding: 20px 16px; }
  .image-upload-row { flex-direction: column; text-align: center; }
  .form-footer .form-btn { width: 100%; }
}


/* ── Page Header Bar ──────────────────────────────────────── */
/* تُستخدم في: داشبورد، إشعارات، تذاكر، طلبات، شكاوى، وغيرها */
.page-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px 28px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.page-header-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-header-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 400;
  margin: 0;
}

/* ── Stat Cards ───────────────────────────────────────────── */
/* تُستخدم في: داشبورد، وأي صفحة تحتاج إحصائيات */
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 22px;
}

.stat-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.4;
}

/* ── Card Header Link ─────────────────────────────────────── */
/* تُستخدم في: رأس أي card يحتاج رابط "عرض المزيد" */
.card-header-link {
  margin-inline-start: auto;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
}

.card-header-link:hover { color: var(--primary); }

/* ── Data Table ───────────────────────────────────────────── */
/* تُستخدم في: داشبورد، تذاكر، طلبات، شكاوى، إشعارات */
.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table thead th {
  background: var(--bg-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 12.5px;
  padding: 11px 16px;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
  text-align: center;
}

.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  text-align: center;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(33,59,82,.03); }

/* Row highlight — للصفوف غير المقروءة أو المميزة */
.data-table tbody tr.row-highlight { background: rgba(253,193,52,.06); }

.table-cell-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 13.5px;
  margin-bottom: 2px;
}

.table-cell-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.price-cell {
  font-weight: 700;
  color: var(--accent-dark);
  white-space: nowrap;
}

/* ── Empty State ──────────────────────────────────────────── */
/* تُستخدم في: أي صفحة فيها قائمة فارغة */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
  text-align: center;
}

.empty-state i {
  font-size: 56px;
  color: #d0d7e2;
  margin-bottom: 16px;
  display: block;
}

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

/* ── Status Badge ─────────────────────────────────────────── */
/* تُستخدم في: أي صفحة تحتاج عرض حالة */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge-success   { background: rgba(25,135,84,.12);   color: #0f6848; }
.status-badge-warning   { background: rgba(255,193,7,.15);   color: #856404; }
.status-badge-danger    { background: rgba(220,53,69,.12);   color: #b02a37; }
.status-badge-info      { background: rgba(13,202,240,.12);  color: #087990; }
.status-badge-secondary { background: rgba(108,117,125,.12); color: #495057; }

/* ── Back Link ────────────────────────────────────────────── */
/* تُستخدم في: صفحات التفاصيل للرجوع للقائمة */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  text-decoration: none;
  transition: var(--transition);
}

.back-link:hover { color: var(--accent-dark); }

/* ── Detail Page ──────────────────────────────────────────── */
/* تُستخدم في: صفحات عرض تفاصيل (إشعار، طلب، شكوى، تذكرة) */
.detail-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
}

.detail-meta-item i  { color: var(--accent); font-size: 14px; }
.detail-meta-item strong { color: var(--primary); font-weight: 700; }

.detail-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 18px;
  line-height: 1.4;
}

.detail-body {
  font-size: 14.5px;
  color: var(--text-dark);
  line-height: 1.8;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 20px;
  border: 1px solid var(--border-color);
  min-height: 80px;
}

.detail-footer-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
}

.detail-footer-note i { color: var(--accent); }

/* ── DataTables RTL Overrides ─────────────────────────────── */
/* تُستخدم في: أي صفحة تستخدم DataTables */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter { margin-bottom: 12px; }

[dir="rtl"] .dataTables_wrapper .dataTables_filter  { text-align: right; }
[dir="rtl"] .dataTables_wrapper .dataTables_length  { text-align: left;  }
[dir="rtl"] .dataTables_wrapper .dataTables_info    { text-align: right; }
[dir="rtl"] .dataTables_wrapper .dataTables_paginate{ text-align: left;  }

.dataTables_wrapper .dataTables_filter input {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
  margin-inline-start: 8px;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(33,59,82,.08);
}

.dataTables_wrapper .dataTables_length select {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 5px 25px;
  font-family: inherit;
  font-size: 13px;
  margin-inline: 6px;
}

.dataTables_wrapper table.dataTable thead th {
  background: var(--bg-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  border-bottom: 2px solid var(--border-color) !important;
  text-align: center;
}

.dataTables_wrapper table.dataTable tbody tr:hover {
  background: rgba(33,59,82,.03);
}

/* =============================================================
   Utility Classes — ألوان وأزرار وروابط
   تُستخدم في كل الصفحات بدل inline style
   ============================================================= */

/* ── Icon Colors ──────────────────────────────────────────── */
.icon-accent    { color: var(--accent) !important; }
.icon-primary   { color: var(--primary) !important; }
.icon-success   { color: #198754 !important; }
.icon-warning   { color: #ffc107 !important; }
.icon-danger    { color: #dc3545 !important; }
.icon-info      { color: #0dcaf0 !important; }
.icon-muted     { color: var(--text-muted) !important; }

/* ── Background Tints ─────────────────────────────────────── */
.bg-tint-primary { background: rgba(33,59,82,.08) !important; }
.bg-tint-success { background: rgba(25,135,84,.1)  !important; }
.bg-tint-warning { background: rgba(255,193,7,.1)  !important; }
.bg-tint-danger  { background: rgba(220,53,69,.1)  !important; }
.bg-tint-info    { background: rgba(13,202,240,.1) !important; }
.bg-tint-accent  { background: rgba(253,193,52,.15)!important; }

/* ── Text Colors ──────────────────────────────────────────── */
.text-primary-brand { color: var(--primary)   !important; }
.text-accent        { color: var(--accent)    !important; }
.text-accent-dark   { color: var(--accent-dark) !important; }
.text-body-muted    { color: var(--text-muted)  !important; }

/* ── Buttons ──────────────────────────────────────────────── */
/* زر رئيسي كحلي */
.btn-primary-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary-brand:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(33,59,82,.25);
}

/* زر ذهبي */
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(253,193,52,.35);
}

/* زر outline كحلي */
.btn-outline-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-outline-brand:hover {
  background: var(--primary);
  color: #fff;
}

/* زر outline ذهبي — بديل btn-hero-secondary على خلفيات فاتحة */
.btn-outline-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  color: var(--accent-dark);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-outline-accent:hover {
  background: var(--accent);
  color: var(--primary);
}

/* زر خطر */
.btn-danger-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  color: #dc3545;
  border: 1.5px solid rgba(220,53,69,.4);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-danger-outline:hover {
  background: rgba(220,53,69,.08);
  border-color: #dc3545;
}

/* أحجام الأزرار */
.btn-sm { padding: 7px 16px !important; font-size: 12.5px !important; }
.btn-lg { padding: 13px 32px !important; font-size: 16px   !important; }

/* ── إصلاح btn-hero-secondary على الخلفيات الفاتحة ────────── */
/* استخدم btn-outline-brand أو btn-outline-accent بدله */
/* على الخلفية الداكنة (hero) يظل btn-hero-secondary كما هو */
.page-header-bar .btn-hero-secondary,
.inner-page    .btn-hero-secondary {
  color: var(--primary);
  border-color: var(--primary);
  background: transparent;
}
.page-header-bar .btn-hero-secondary:hover,
.inner-page    .btn-hero-secondary:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Stat Icon Background Shortcuts ───────────────────────── */
/* بدل style="background:rgba(...)" مباشرة */
.stat-icon-primary { background: rgba(33,59,82,.1); }
.stat-icon-success { background: rgba(25,135,84,.1); }
.stat-icon-warning { background: rgba(255,193,7,.1); }
.stat-icon-danger  { background: rgba(220,53,69,.1); }
.stat-icon-info    { background: rgba(13,202,240,.1); }
.stat-icon-accent  { background: rgba(253,193,52,.15); }

/* ── Links ────────────────────────────────────────────────── */
.link-accent {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.link-accent:hover { color: var(--primary); }

.link-primary {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.link-primary:hover { color: var(--accent-dark); }

/* Section divider top — فاصل علوي مع padding */
.section-divider-top {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: 24px;
}

/* =============================================================
   Events Pages — أضف في آخر custom.css
   ============================================================= */

/* ── Events Filter Card ───────────────────────────────────── */
.sticky-filter-card { position: sticky; top: 16px; }

.filter-section {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
}
.filter-section:last-child { border-bottom: none; }

.filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}

/* Search Box inside filter */
.filter-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  transition: var(--transition);
}
.filter-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(33,59,82,.08);
}
.filter-search-box .form-input {
  border: none;
  background: transparent;
  padding: 10px 0;
  box-shadow: none;
  flex: 1;
}
.filter-search-box .form-input:focus { box-shadow: none; border: none; }

/* Category list */
.events-filter-cats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.events-filter-cat-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.events-filter-cat-item i { font-size: 14px; width: 16px; }
.events-filter-cat-item span:first-of-type { flex: 1; }
.events-filter-cat-item:hover  { background: var(--bg-light); color: var(--primary); }
.events-filter-cat-item.active {
  background: rgba(33,59,82,.08);
  color: var(--primary);
  font-weight: 700;
}

.events-filter-cat-count {
  background: var(--bg-light);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.events-filter-cat-item.active .events-filter-cat-count {
  background: var(--accent);
  color: var(--primary);
}

/* ── Sort Bar ─────────────────────────────────────────────── */
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sort-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.sort-select,
.tickets-sort-select {
  padding: 8px 14px;
  font-size: 13px;
  min-width: 160px;
  cursor: pointer;
}

/* ── Event Card Image Placeholder ─────────────────────────── */
.event-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-img-placeholder i { font-size: 52px; color: rgba(253,193,52,.3); }

/* ── Pagination ───────────────────────────────────────────── */
.list-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  background: #fff;
  border: 1.5px solid var(--border-color);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}
.pagination-btn:hover { border-color: var(--primary); background: var(--bg-light); color: var(--primary); }
.pagination-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pagination-btn.disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  font-size: 14px;
  color: var(--text-muted);
}

.pagination-info {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}

/* ── Event Detail Page ────────────────────────────────────── */
.event-detail-img {
  width: 100%;
  max-height: 380px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.event-detail-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.detail-page-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 18px;
  line-height: 1.3;
}

.detail-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-description {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.8;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--border-color);
}

/* Summary Box */
.detail-summary-box {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-summary-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.detail-summary-row strong { margin-inline-start: auto; color: var(--primary); font-weight: 700; }

/* ── Tickets Filter Bar ───────────────────────────────────── */
.list-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.tickets-filter-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tickets-filter-btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1.5px solid var(--border-color);
  background: #fff;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}
.tickets-filter-btn:hover  { border-color: var(--primary); color: var(--primary); }
.tickets-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Ticket Item Card ─────────────────────────────────────── */
.item-card {
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.item-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
[dir="ltr"] .item-card::before {
  right: auto;
  left: 0;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.item-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.item-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.item-card-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.item-card-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.item-card-row strong { color: var(--primary); font-weight: 700; }

.item-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

.item-price {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.item-price span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .sticky-filter-card { position: static; margin-bottom: 0; }
  .event-detail-img   { max-height: 220px; }
  .event-detail-img img { height: 220px; }
}

@media (max-width: 576px) {
  .sort-wrap    { width: 100%; justify-content: space-between; }
  .list-filter-bar  { flex-direction: column; align-items: flex-start; }
  .tickets-sort-select { width: 100%; }
}

/* =============================================================
   Buy + My Orders — أضف في آخر custom.css
   ============================================================= */

/* ── Buy Page — Price Breakdown ───────────────────────────── */
.price-breakdown {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}

.price-row:last-child { border-bottom: none; }
.price-row.text-muted-soft { color: var(--text-muted); font-size: 13px; }

.price-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-light);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.price-total-value {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent-dark);
}

.buy-security-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: rgba(25,135,84,.06);
  border: 1px solid rgba(25,135,84,.15);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

/* Buy: Card Icons in Header */
.payment-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}

.payment-icons span {
  display: flex;
  align-items: center;
  border-radius: 4px;
  overflow: hidden;
}

/* ── Filter Tabs ──────────────────────────────────────────── */
/* تُستخدم في: my_orders, my_tickets, my_complaints */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: #fff;
  border: 1.5px solid var(--border-color);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

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

.filter-tab-count {
  background: rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 11.5px;
  font-weight: 700;
}

.filter-tab.active .filter-tab-count { background: rgba(255,255,255,.25); }
.filter-tab:not(.active) .filter-tab-count {
  background: var(--bg-light);
  color: var(--text-muted);
}

/* ── Order Card ───────────────────────────────────────────── */
.list-container { display: flex; flex-direction: column; gap: 16px; }

.list-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.list-card:hover { box-shadow: var(--shadow-md); }

.list-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.list-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.order-id, .order-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.list-card-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.list-card-body {
  /* display: flex;
  align-items: flex-start;
  gap: 16px; */
  padding: 20px;
}

.list-card-img {
  /* width: 90px; */
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.list-card-img img { width: 100%; height: 100%; object-fit: cover; }

.list-card-details { flex: 1; min-width: 0; }

.event-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  margin-top: 10px;
  text-align: center;
  line-height: 1.3;
}

.detail-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.list-card-price {
  text-align: center;
  flex-shrink: 0;
  min-width: 90px;
}

.price-value {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent-dark);
  line-height: 1;
  margin-bottom: 4px;
}
.price-value span { font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* ── Order Progress Bar ───────────────────────────────────── */
.progress-steps {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-light);
  gap: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.progress-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}

.progress-step.done .progress-step-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.progress-step.active .progress-step-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}

.progress-step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  text-align: center;
}

.progress-step.done .progress-step-label,
.progress-step.active .progress-step-label {
  color: var(--primary);
}

.progress-step-line {
  flex: 1;
  height: 2px;
  background: var(--border-color);
  margin-bottom: 18px;
  transition: var(--transition);
}
.progress-step-line.done { background: var(--primary); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .list-card-body    { flex-wrap: wrap; }
  .list-card-img     { width: 100%; height: 140px; }
  .list-card-price   { text-align: start; }
  .progress-step-label   { font-size: 10px; }
  .filter-tabs        { gap: 6px; }
  .filter-tab         { font-size: 12.5px; padding: 7px 14px; }
}

/* ── Complaint Reply Box ──────────────────────────────────── */
/* مستخدمة فقط لعرض رد الأدمن داخل الشكوى */
.complaint-reply-box {
  background: rgba(25,135,84,.06);
  border: 1px solid rgba(25,135,84,.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 14px;
}
 
.complaint-reply-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0f6848;
}
 
.complaint-reply-header .table-cell-sub {
  margin-inline-start: auto;
  font-weight: 400;
}

/* ── List Card Footer ─────────────────────────────────────── */
.list-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-light);
  flex-wrap: wrap;
}

/* ── Sell Price Preview ───────────────────────────────────── */
.sell-price-preview {
  background: var(--bg-light);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 24px;
}
.sell-price-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}
.sell-price-preview-row.text-muted-soft { color: var(--text-muted); }
.sell-price-preview-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(33,59,82,.05);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}
.sell-price-preview-total strong { color: var(--accent-dark); font-size: 18px; }

/* نص خطأ لون أحمر فاتح */
.text-danger-soft { color: #dc3545; font-size: 13px; }

/* detail-meta-row بدون border ولا padding */
.detail-meta-row-plain {
  border: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

/* نص صغير عادي */
.text-body-sm {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* form-btn بعرض auto */
.form-btn-inline {
  width: auto;
  margin: 0;
}

/* استايلات بسيطة خاصة بصفحة 404 فقط */
.error-404-section {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    /* background: var(--bg-light); */
}

.error-404-card {
    max-width: 550px;
    width: 100%;
    text-align: center;
}

.error-404-code {
    font-size: 120px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}

.error-404-code span {
    color: var(--accent);
}

.error-404-icon {
    font-size: 60px;
    color: var(--accent);
    margin-bottom: 20px;
}

.error-404-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.error-404-text {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.7;
}

.error-404-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}