/* ==========================================================================
   SAMA EL HADAR PHOTOGRAPHY - LUXURY STUDIO & CLIENT DELIVERY PLATFORM
   ========================================================================== */

:root {
  /* نظام الألوان الفخم والهادئ (Warm Editorial Studio Palette) */
  --bg-page: #faf8f5;
  --bg-surface: #ffffff;
  --bg-card-hover: #f3f0e8;
  --bg-glass: rgba(250, 248, 245, 0.88);
  
  --text-main: #141416;
  --text-secondary: #57585f;
  --text-muted: #8b8d99;
  
  --accent-gold: #c5a059;
  --accent-gold-hover: #b08a40;
  --accent-dark: #16171b;
  --border-light: #eae5dc;
  --border-subtle: rgba(0, 0, 0, 0.06);

  /* الخطوط */
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* الحواف والظلال */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-pill: 9999px;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 8px 30px rgba(20, 20, 22, 0.06);
  --shadow-hover: 0 16px 40px rgba(20, 20, 22, 0.12);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   DARK MODE PALETTE (الوضع الليلي الفخم)
   ========================================================================== */
[data-theme="dark"] {
  --bg-page: #0a0b0e;
  --bg-surface: #12141c;
  --bg-card-hover: #1a1c26;
  --bg-glass: rgba(10, 11, 14, 0.88);
  
  --text-main: #f5f6fa;
  --text-secondary: #a2a6b5;
  --text-muted: #727685;
  
  --accent-gold: #e2ba6d;
  --accent-gold-hover: #c5a059;
  --accent-dark: #ffffff;
  --border-light: rgba(255, 255, 255, 0.09);
  --border-subtle: rgba(255, 255, 255, 0.04);
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.7);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  direction: rtl;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   1. STICKY TOP NAVBAR (الهيدر الاحترافي العلوي)
   ========================================================================== */
.main-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-gold);
  box-shadow: 0 2px 10px rgba(197, 160, 89, 0.25);
  background: #000;
}

.nav-brand-info {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-main);
  line-height: 1.1;
}

.nav-brand-sub {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: var(--accent-gold);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-ig-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
  box-shadow: var(--shadow-subtle);
}

.nav-ig-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-1px);
}

.nav-admin-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.nav-admin-btn:hover {
  background: var(--bg-surface);
  border-color: var(--border-light);
  color: var(--text-main);
}

/* ==========================================================================
   2. HERO SHOWCASE (البانر السينمائي الفخم)
   ========================================================================== */
.hero-showcase {
  position: relative;
  max-width: 1140px;
  margin: 24px auto 36px;
  padding: 0 24px;
}

.hero-cover-bg {
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  bottom: 0;
  border-radius: var(--radius-md);
  background-image: url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center 35%;
  z-index: 1;
}

.hero-vignette {
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  bottom: 0;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at center, rgba(16, 17, 20, 0.45) 0%, rgba(10, 11, 14, 0.78) 100%);
  z-index: 2;
}

.hero-center-box {
  position: relative;
  z-index: 3;
  padding: 70px 24px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-badge-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 16px;
  background: #000;
  transition: var(--transition);
}

.hero-center-box:hover .hero-badge-wrap {
  transform: scale(1.05);
}

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

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 6px;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 22px;
  letter-spacing: 0.5px;
}

.hero-ig-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.hero-ig-pill:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   3. MAIN CONTENT & SEARCH TOOLBAR
   ========================================================================== */
.main-content-layout {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 80px;
  width: 100%;
}

.search-toolbar {
  margin-bottom: 36px;
  display: flex;
  justify-content: center;
}

.search-field-pill {
  position: relative;
  width: 100%;
  max-width: 580px;
}

.search-field-pill .search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-field-pill input {
  width: 100%;
  padding: 14px 50px 14px 44px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}

.search-field-pill input::placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-field-pill input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.12);
}

.clear-search {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
}

/* Section Header */
.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.galleries-counter {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   4. GALLERIES GRID (شبكة الألبومات الاحترافية)
   ========================================================================== */
.sessions-grid-pro {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px 24px;
}

.pro-album-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-align: right;
  transition: var(--transition);
}

.pro-thumb-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: #eeeae2;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}

.pro-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-album-card:hover .pro-thumb-img {
  transform: scale(1.05);
}

/* Hover Overlay شيك جداً */
.pro-thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(16, 17, 20, 0.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px;
}

.pro-album-card:hover .pro-thumb-overlay {
  opacity: 1;
}

.overlay-cta-text {
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.overlay-share-btn {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.overlay-share-btn:hover {
  background: var(--accent-gold);
  color: #000;
  transform: scale(1.1);
}

.pro-album-meta {
  padding: 0 4px;
}

.pro-album-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.pro-album-card:hover .pro-album-title {
  color: var(--accent-gold);
}

.pro-album-subline {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot-separator {
  color: var(--border-light);
}

.no-results-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.no-results-state svg {
  color: var(--accent-gold);
  margin-bottom: 12px;
}

/* ==========================================================================
   5. SINGLE GALLERY VIEW (معرض العميل بدقة سينمائية)
   ========================================================================== */
.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

.gallery-top-nav {
  position: sticky;
  top: 73px;
  z-index: 90;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
}

.back-pill-btn, .share-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-subtle);
}

.back-pill-btn:hover, .share-pill-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.single-album-hero {
  padding: 50px 24px 35px;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(197, 160, 89, 0.08) 0%, transparent 70%);
}

.album-hero-container {
  max-width: 780px;
  margin: 0 auto;
}

.album-headline {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.album-subdate {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
}

.download-cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pro-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-dark);
  color: #ffffff;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.pro-download-btn:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.download-notice {
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 500;
}

/* Photos Grid */
.album-photos-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 30px 24px 90px;
}

.photos-masonry-pro {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.pro-photo-card {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: #eeeae2;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
}

.pro-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.pro-photo-card:hover img {
  transform: scale(1.04);
}

/* ==========================================================================
   6. FULLSCREEN LIGHTBOX
   ========================================================================== */
.lightbox-pro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 13, 16, 0.96);
  z-index: 2000;
  display: none;
  flex-direction: column;
  justify-content: space-between;
}

.lightbox-pro.active {
  display: flex;
}

.lightbox-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  color: #fff;
  z-index: 10;
}

.lightbox-indexer {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #ddd;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lightbox-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-action-btn:hover {
  background: #fff;
  color: #000;
}

.lightbox-action-btn.close-btn {
  padding: 8px 12px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.lightbox-viewport img {
  max-width: 94vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 2px;
  user-select: none;
}

.lightbox-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-arrow-btn:hover {
  background: #fff;
  color: #000;
}

.lightbox-arrow-btn.left { left: 24px; }
.lightbox-arrow-btn.right { right: 24px; }

/* ==========================================================================
   7. ADMIN MODAL & CONTROLS
   ========================================================================== */
.modal-pro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 15, 18, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-pro-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 34px 28px;
  width: 100%;
  max-width: 520px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-pro-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
}

.admin-login-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.modal-pro-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 6px;
}

.modal-pro-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
}

.input-field-wrap input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  text-align: center;
  font-family: var(--font-sans);
  outline: none;
  margin-bottom: 12px;
  transition: var(--transition);
}

.input-field-wrap input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.input-error-msg {
  color: #e53935;
  font-size: 0.85rem;
  margin-bottom: 14px;
  text-align: center;
}

.modal-pro-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.btn-pro-primary {
  width: 100%;
  background: var(--accent-dark);
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-pro-primary:hover {
  background: #000;
}

.btn-pro-ghost {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  cursor: pointer;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
  width: auto;
}

/* Dashboard List */
.dashboard-header-pro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.dashboard-list-pro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  max-height: 340px;
  overflow-y: auto;
}

.dashboard-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}

.dash-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  margin-left: 12px;
}

.dash-meta h5 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.dash-meta p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.btn-dash-tiny {
  background: #f4efe6;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  cursor: pointer;
}

.btn-dash-tiny:hover {
  background: var(--accent-gold);
  color: #000;
}

.form-group-pro {
  margin-bottom: 16px;
  text-align: right;
}

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

.form-group-pro input,
.form-group-pro textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: var(--font-sans);
  outline: none;
}

.form-group-pro input:focus,
.form-group-pro textarea:focus {
  border-color: var(--accent-gold);
}

.file-picker-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.field-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--accent-gold);
  margin-top: 4px;
}

.dashboard-footer-pro {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.link-btn-text {
  background: none;
  border: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.text-danger {
  color: #e53935 !important;
}

/* ==========================================================================
   8. FOOTER & TOAST
   ========================================================================== */
.pro-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface);
  padding: 40px 24px;
}

.pro-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.pro-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pro-footer-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-gold);
  background: #000;
  margin-bottom: 4px;
}

.pro-footer-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
}

.pro-footer-rights {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--text-main);
  transition: var(--transition);
}

.footer-social-link:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--accent-dark);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 3000;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .sessions-grid-pro {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }

  .photos-masonry-pro {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .pro-album-title {
    font-size: 1.15rem;
  }

  .album-headline {
    font-size: 2.1rem;
  }

  .pro-footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .lightbox-arrow-btn.left { left: 10px; }
  .lightbox-arrow-btn.right { right: 10px; }
}
/* ==========================================================================
   PHOTO MANAGER & MOBILE EDITING SYSTEM
   ========================================================================== */

/* زر التعديل الهادئ في صفحة الجاليري */
.discreet-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.35);
  color: var(--accent-gold);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.discreet-edit-btn:hover {
  background: var(--accent-gold);
  color: #000;
  transform: translateY(-1px);
}

/* بطاقة مدير الصور */
.editor-card-pro {
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

.photo-counter-badge {
  background: rgba(197, 160, 89, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(197, 160, 89, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

/* قسم إضافة الصور للموبايل والكمبيوتر */
.editor-add-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
  background: #fdfcf9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.mobile-file-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-surface);
  border: 2px dashed var(--accent-gold);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: var(--transition);
}

.mobile-file-upload-btn:hover, .mobile-file-upload-btn:active {
  background: rgba(197, 160, 89, 0.08);
  border-color: var(--accent-gold-hover);
}

.mobile-file-upload-btn input[type="file"] {
  display: none;
}

.url-add-row {
  display: flex;
  gap: 8px;
}

.url-add-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font-sans);
  outline: none;
}

.url-add-row input:focus {
  border-color: var(--accent-gold);
}

/* شبكة الصور الحالية وزر الحذف ✕ */
.editor-photos-wrapper {
  margin-bottom: 22px;
}

.field-label-small {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-align: right;
}

.pm-photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #faf8f5;
  -webkit-overflow-scrolling: touch;
}

.pm-photo-thumb-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  background: #eeeae2;
}

.pm-photo-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* زر الحذف ✕ الأحمر السهل للمس على الموبايل */
.pm-delete-btn {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e53935;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 5;
}

.pm-delete-btn:active {
  transform: scale(0.85);
}

/* تفاصيل التعديل الإضافية المنسدلة */
.advanced-edit-details {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  background: #ffffff;
}

.advanced-edit-details summary {
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  outline: none;
  user-select: none;
}

.advanced-edit-details .details-body {
  padding: 14px 16px 8px;
  border-top: 1px solid var(--border-light);
  background: #faf8f5;
}

@media (max-width: 600px) {
  .pm-photos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .editor-card-pro {
    padding: 24px 16px;
  }
}

/* ==========================================================================
   MOBILE & DESKTOP RESPONSIVE PERFECTION (iPhone, Android & Computers)
   ========================================================================== */

/* دعم الـ Safe Area للآيفون (Notch & Dynamic Island) */
body {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* حل مشكلة الزووم التلقائي في متصفح سفاري على الآيفون عند الضغط على الحقول */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="password"],
  input[type="url"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* شاشات الموبايل (iPhone & Android: 320px إلى 540px) */
@media screen and (max-width: 540px) {
  .nav-container {
    padding: 0 16px;
  }

  .nav-brand-title {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }

  .nav-ig-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .hero-showcase {
    margin: 14px auto 24px;
    padding: 0 14px;
  }

  .hero-cover-bg, .hero-vignette {
    left: 14px;
    right: 14px;
    border-radius: 10px;
  }

  .hero-center-box {
    padding: 45px 14px;
  }

  .hero-badge-wrap {
    width: 62px;
    height: 62px;
    margin-bottom: 12px;
  }

  .hero-title {
    font-size: 1.95rem;
    letter-spacing: 0.8px;
  }

  .hero-tagline {
    font-size: 0.92rem;
    margin-bottom: 16px;
  }

  .main-content-layout {
    padding: 0 14px 60px;
  }

  .search-toolbar {
    margin-bottom: 24px;
  }

  .search-field-pill input {
    padding: 12px 42px 12px 38px;
    font-size: 0.88rem;
  }

  .section-heading {
    font-size: 1.25rem;
  }

  /* شبكة عمودين متناسقة للموبايل */
  .sessions-grid-pro {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px 10px !important;
  }

  .pro-thumb-container {
    border-radius: 6px;
    margin-bottom: 8px;
  }

  .pro-album-title {
    font-size: 1.05rem;
    line-height: 1.25;
  }

  .pro-album-subline {
    font-size: 0.75rem;
    flex-wrap: wrap;
    gap: 4px;
  }

  .album-headline {
    font-size: 2rem;
    line-height: 1.2;
  }

  .album-subdate {
    font-size: 0.95rem;
    margin-bottom: 18px;
  }

  .pro-download-btn {
    padding: 11px 20px;
    font-size: 0.82rem;
    width: 100%;
    justify-content: center;
  }

  .download-notice {
    font-size: 0.75rem;
    text-align: center;
  }

  .photos-masonry-pro {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .pro-photo-card {
    border-radius: 4px;
  }

  .modal-pro-card {
    padding: 24px 16px;
    border-radius: 12px;
    max-width: 95vw;
  }

  .lightbox-hud {
    padding: 12px 16px;
  }

  .lightbox-action-btn span {
    display: none;
  }

  .lightbox-arrow-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .lightbox-arrow-btn.left { left: 8px; }
  .lightbox-arrow-btn.right { right: 8px; }
}

/* أجهزة التابلت والشاشات المتوسطة (541px إلى 860px) */
@media screen and (min-width: 541px) and (max-width: 860px) {
  .sessions-grid-pro {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 18px;
  }

  .photos-masonry-pro {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

/* الشاشات الكبيرة والكمبيوترات واللاب توب (861px فأعلى) */
@media screen and (min-width: 861px) {
  .sessions-grid-pro {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 32px 24px;
  }

  .photos-masonry-pro {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .nav-container, .hero-showcase, .main-content-layout, .album-photos-container, .pro-footer-inner {
    max-width: 1140px;
  }
}

/* ==========================================================================
   THEME TOGGLE BUTTON & DARK MODE OVERRIDES
   ========================================================================== */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-subtle);
}

.theme-toggle-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: rotate(15deg) scale(1.05);
}

/* Empty State Card لما الموقع يكون فاضي */
.empty-state-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  margin: 10px 0 30px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}

.empty-state-card .empty-camera-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.8rem;
}

.empty-state-card h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 8px;
}

.empty-state-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.empty-state-card .btn-start-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--accent-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.empty-state-card .btn-start-add:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Dark Mode Overrides */
[data-theme="dark"] .empty-state-card .btn-start-add {
  background: var(--accent-gold);
  color: #000;
}

[data-theme="dark"] .modal-pro-card,
[data-theme="dark"] .editor-card-pro {
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

[data-theme="dark"] .dashboard-item-card {
  background: #1a1e2d;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .editor-add-section {
  background: #10121a;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .mobile-file-upload-btn {
  background: #181b28;
  color: #fff;
}

[data-theme="dark"] .advanced-edit-details {
  background: #161925;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .advanced-edit-details .details-body {
  background: #12141f;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .form-group-pro input,
[data-theme="dark"] .form-group-pro textarea,
[data-theme="dark"] .input-field-wrap input,
[data-theme="dark"] .url-add-row input {
  background: #12141f;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .btn-pro-primary {
  background: var(--accent-gold);
  color: #000;
}

[data-theme="dark"] .btn-pro-ghost {
  border-color: rgba(255, 255, 255, 0.15);
  color: #ccc;
}

[data-theme="dark"] .btn-dash-tiny {
  background: #252a3d;
  color: #fff;
}

[data-theme="dark"] .search-field-pill input {
  background: #13151f;
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

[data-theme="dark"] .pro-footer {
  background: #0d0e13;
}

/* بادج خصوصية السيشن */
.session-lock-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(14, 15, 18, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(197, 160, 89, 0.45);
  color: var(--accent-gold);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

@keyframes inputShakeAnim {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.input-shake {
  animation: inputShakeAnim 0.4s ease-in-out;
  border-color: #e53935 !important;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.2) !important;
}

/* ==========================================
   SIMPLIFIED QUICK UPLOAD & DROPZONE
   ========================================== */
.quick-dropzone-box {
  border: 2px dashed rgba(197, 160, 89, 0.4);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  background: rgba(197, 160, 89, 0.04);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 6px;
}

.quick-dropzone-box:hover,
.quick-dropzone-box:active {
  border-color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.08);
  transform: translateY(-2px);
}

.quick-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.quick-dropzone-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.quick-dropzone-text strong {
  display: block;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.quick-dropzone-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* معاينة الصور المختارة */
.quick-upload-preview {
  margin-top: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.quick-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.82rem;
}

.quick-cover-tag {
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.78rem;
}

.quick-thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
  padding: 4px 2px;
}

.quick-thumb-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #000;
}

.quick-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.quick-thumb-item.is-cover {
  border: 2px solid var(--accent-gold);
  box-shadow: 0 0 8px rgba(197, 160, 89, 0.4);
}

.cover-badge-mini {
  position: absolute;
  bottom: 2px;
  left: 2px;
  right: 2px;
  background: var(--accent-gold);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  border-radius: 3px;
  padding: 1px 0;
  line-height: 1.1;
}

.quick-thumb-delete {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: none;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
}

.quick-thumb-delete:hover {
  background: #e53935;
  transform: scale(1.1);
}

/* خيارات الباسورد المدمجة */
.quick-compact-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(197, 160, 89, 0.05);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 14px;
}

.compact-option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  width: 100%;
  justify-content: space-between;
}

.compact-option-item label {
  color: var(--text-main);
  margin: 0;
  font-size: 0.86rem;
}

/* شريط تقدم معالجة الدفعات الكبيرة من الصور */
.quick-progress-container {
  margin-top: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.quick-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.quick-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(197, 160, 89, 0.15);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.quick-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), #e8c785);
  border-radius: var(--radius-pill);
  transition: width 0.15s ease-out;
}

/* ==========================================
   SECURITY & ANTI-SCRAPING SHIELD
   ========================================== */
img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none; /* حماية في سفاري على الآيفون من الضغط المطول لحفظ الصورة */
}
