/* ============================================================
   SPACE BRAIDS — style.css
   ============================================================
   СЕГМЕНТИРАНЕ (T.6):
   За бъдещо разделяне в отделни файлове използвай маркерите:
   ── 1. VARIABLES & RESET        → main.css
   ── 2. STARS BACKGROUND         → animations.css
   ── 3. NAVIGATION               → layout.css
   ── 4. HERO                     → layout.css
   ── 5. SECTION COMMON           → layout.css
   ── 6. GALLERY SECTION          → gallery.css
   ── 7. GALLERY MODAL            → gallery.css
   ── 8. LIGHTBOX                 → gallery.css
   ── 9. SLIDESHOW                → gallery.css
   ── 10. INSTAGRAM FEED          → layout.css
   ── 11. PRICING                 → components.css
   ── 12. CONTACT & SOCIAL        → layout.css
   ── 13. FOOTER                  → layout.css
   ── 14. ADMIN PANEL             → admin.css
   ── 15. UPLOAD PANEL            → admin.css
   ── 16. NO-SELECT / PROTECTION  → main.css
   ── 17. ANIMATIONS              → animations.css
   ── 18. MOBILE                  → layout.css
   ============================================================ */

/* ============================================================
   ШРИФТЪТ StarJedi е в отделен fonts.css файл.
   Виж: fonts.css
   ============================================================ */

/* ============================================================
   2. VARIABLES & RESET
   ============================================================ */
:root {
  --black:        #080808;
  --deep:         #0d0d0d;
  --gold:         #C9A84C;
  --gold-light:   #FFD700;
  --white:        #ffffff;
  --gray:         #aaaaaa;
  --section-pad:  100px 40px;

  /* T.4 — Прозрачност на секции (50%) */
  --section-bg-gallery:   rgba(13,13,13,0.80);
  --section-bg-pricing:   rgba(13,13,13,0.80);
  --section-bg-contact:   rgba(13,13,13,0.50);
  --section-bg-instagram: rgba(0,0,0,0.50);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--black) url('background.jpg') no-repeat center top fixed;
  background-size: cover;
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  overflow-x: hidden;
}

/* ============================================================
   3. NO-SELECT / CONTENT PROTECTION  (T.5)
   ============================================================ */
.no-select,
img,
.gallery-item img,
.gallery-modal-item img,
.slideshow-slide,
.nav-logo,
.footer-logo,
.tab-btn,
.btn-gold,
.btn-outline {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
}

img {
  pointer-events: none;  /* блокира drag & десен клик */
  -webkit-user-drag: none;
}

/* QR кодът е изображение — блокираме */
img[alt="QR код адрес"] { pointer-events: none; }

/* ============================================================
   4. STARS BACKGROUND
   ============================================================ */
.stars { display: none; }
.star  { display: none; }
@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50%       { opacity: var(--op); }
}

/* ============================================================
   5. NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: linear-gradient(to bottom, rgba(8,8,8,0.95), transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}
.nav-logo img {
  height: 56px;
  width: auto;
  display: block;
  margin: 2px 0;
}

.nav-phone {
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 2px;
  font-weight: 600;
  transition: all 0.3s;
}
.nav-phone:hover { opacity: 0.8; }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-family: 'Raleway', sans-serif;
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
  transition: all 0.3s;
}
.nav-links a:hover { color: var(--gold); opacity: 1; }

.lang-switch { display: flex; gap: 10px; }
.lang-btn {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 5px 12px;
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 1px;
  transition: all 0.3s;
}
.lang-btn.active, .lang-btn:hover {
  background: var(--gold);
  color: var(--black);
}

/* ============================================================
   6. HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0;
  overflow: hidden;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.08) 0%, transparent 70%);
}

.hero-content {
  background: rgba(8,8,8,0.55);
  padding: 50px 60px;
  max-width: 100%;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: 'StarJedi', sans-serif;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.88;
  margin-bottom: 25px;
  color: #080808;
  -webkit-text-stroke: 7px #C9A84C;
  paint-order: stroke fill;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 1.2s ease forwards;
  user-select: none;
}

.hero-sub {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  letter-spacing: 4px;
  color: var(--white);
  opacity: 0;
  margin-bottom: 20px;
  animation: fadeUp 1.2s ease 0.3s forwards;
}

.hero-slogan {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255, 141, 30, 0.95);
  letter-spacing: 3px;
  font-style: italic;
  margin-bottom: 60px;
  animation: fadeUp 1.2s ease 0.6s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 1.2s ease 0.9s forwards;
  opacity: 0;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #8B6914);
  color: var(--black);
  padding: 16px 45px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-decoration: none;
  transition: all 0.3s;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  user-select: none;
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(201,168,76,0.4);
}

.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 16px 45px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-decoration: none;
  transition: all 0.3s;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  user-select: none;
}
.btn-outline:hover {
  background: rgba(201,168,76,0.1);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  animation: bounce 2s infinite;
}
.scroll-indicator span { font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; }
.scroll-arrow { font-size: 1.2rem; }

/* ============================================================
   7. SECTION COMMON
   ============================================================ */
section { position: relative; z-index: 1; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 5px;
  color: rgba(255, 141, 30, 0.95);
  text-transform: uppercase;
  margin-bottom: 15px;
  display: block;
}

.section-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--gold);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 20px auto 0;
}

/* ============================================================
   8. GALLERY SECTION  (T.4 — 50% прозрачност)
   ============================================================ */
#gallery {
  padding: var(--section-pad);
  background: var(--section-bg-gallery);
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 50px;
}

.tab-btn {
  background: none;
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--white);
  padding: 10px 24px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}
.tab-btn:hover, .tab-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.05);
}

/* ============================================================
   9. SLIDESHOW — 5 панела (3:4, contain, асинхронни)
   ============================================================ */
.slideshow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.slideshow-panel {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(201,168,76,0.1);
}

.slideshow-panel .slideshow-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}
.slideshow-panel .slideshow-slide.active { opacity: 1; }

.slideshow-panel .slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ============================================================
   10. GALLERY MODAL  (T.2 — blur на фона)
   ============================================================ */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8000;
  /* Blur на сайта отзад */
  background: rgba(4,4,4,0.75);
  overflow-y: auto;
  padding: 40px 20px;
}
.gallery-modal.open { display: flex; align-items: flex-start; justify-content: center; }

/* Когато modal е отворен — блокира scroll на body */
body.modal-open { overflow: hidden; }

.gallery-modal-inner {
  background: rgba(13,13,13,0.97);
  border: 1px solid rgba(201,168,76,0.25);
  width: 100%;
  max-width: 1200px;
  min-height: 80vh;
  padding: 35px;
  position: relative;
}

.gallery-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding-bottom: 20px;
}

.gallery-modal-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 5px;
  color: var(--gold);
  text-transform: uppercase;
}

.gallery-modal-close {
  background: none;
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.gallery-modal-close:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
}

/* Loading dots */
.gallery-modal-loading {
  display: none;
  text-align: center;
  padding: 60px;
}
.loading-dots {
  display: inline-flex;
  gap: 8px;
}
.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: loadPulse 1.2s ease infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes loadPulse {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40%            { opacity: 1;   transform: scale(1.1); }
}

/* Modal grid */
.gallery-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.gallery-modal-item {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
  background: #1a1a1a;
  user-select: none;
}
.gallery-modal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.gallery-modal-item:hover img { transform: scale(1.06); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-item-overlay span {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
}
.gallery-modal-item:hover .gallery-item-overlay { opacity: 1; }

/* Watermark CSS overlay — В1 (долу вдясно) */
.gallery-modal-item::after {
  content: 'SPACE BRAiDS · SOFIA';
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(201,168,76,0.65);
  background: rgba(0,0,0,0.5);
  padding: 3px 7px;
  border: 0.5px solid rgba(201,168,76,0.3);
  pointer-events: none;
  user-select: none;
  z-index: 3;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
  letter-spacing: 2px;
  padding: 60px 0;
}

/* ============================================================
   11. LIGHTBOX  (T.2 — next/prev бутони)
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 36px;
  font-size: 2rem;
  color: var(--gold);
  cursor: pointer;
  background: none;
  border: 1px solid rgba(201,168,76,0.3);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10001;
}
.lightbox-close:hover { background: rgba(201,168,76,0.1); border-color: var(--gold); }

#lightbox-img {
  max-width: 88vw;
  max-height: 85vh;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
  position: relative;
  z-index: 10000;
}

/* Next / Prev бутони */
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold);
  width: 52px;
  height: 52px;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-nav:hover { background: rgba(201,168,76,0.15); border-color: var(--gold); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

/* Брояч 1/8 */
.lb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 3px;
  color: rgba(201,168,76,0.6);
  z-index: 10001;
}

/* ============================================================
   12. INSTAGRAM FEED  (T.4 — 50% прозрачност)
   ============================================================ */
#instagram-feed {
  padding: var(--section-pad);
  background: var(--section-bg-instagram);
}

.insta-preview {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.insta-item {
  aspect-ratio: 1;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(201,168,76,0.2);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.insta-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201,168,76,0.1);
  transition: border-color 0.3s;
}
.insta-item:hover::after { border-color: var(--gold); }

.insta-connect {
  text-align: center;
  padding: 40px;
  border: 1px dashed rgba(201,168,76,0.2);
  max-width: 600px;
  margin: 0 auto;
}
.insta-connect p {
  color: var(--gray);
  margin-bottom: 20px;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* ============================================================
   13. PRICING  (T.4 — 50% прозрачност)
   ============================================================ */
#pricing {
  padding: var(--section-pad);
  background: var(--section-bg-pricing);
}

.pricing-note {
  max-width: 700px;
  margin: 0 auto 50px;
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.8;
  font-style: italic;
  border-left: 2px solid var(--gold);
  padding-left: 20px;
}

.pricing-table {
  max-width: 800px;
  margin: 0 auto;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s;
}
.pricing-row:hover { padding-left: 10px; }

.pricing-service {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
}
.pricing-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(201,168,76,0.2);
  margin: 0 20px;
}
.pricing-price {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 1.1rem;
  white-space: nowrap;
}

/* ============================================================
   14. CONTACT  (T.4 — 50% прозрачност)
   ============================================================ */
#contact {
  padding: var(--section-pad);
  background: var(--section-bg-contact);
}

.social-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
}
.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--white);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s;
}
.social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

/* ============================================================
   15. FOOTER
   ============================================================ */
footer {
  padding: 40px;
  text-align: center;
  border-top: 1px solid rgba(201,168,76,0.1);
  position: relative;
  z-index: 1;
  background: linear-gradient(to top, rgba(8,8,8,0.95), transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.footer-logo-img {
  height: 80px;
  width: auto;
  display: block;
  margin: 0 auto 15px;
}
footer p {
  font-family: 'Raleway', sans-serif;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  letter-spacing: 2px;
}

/* ============================================================
   16. ADMIN PANEL
   ============================================================ */
#admin-panel {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 20px;
}
#admin-panel.open { display: flex; }

.admin-box {
  background: var(--deep);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 40px;
  width: 100%;
  max-width: 750px;
}
.admin-box h2 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 4px;
  margin-bottom: 30px;
  font-size: 1rem;
}

/* Admin tabs */
.admin-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.admin-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--gray);
  padding: 10px 22px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -1px;
}
.admin-tab-btn.active, .admin-tab-btn:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.admin-tab-content { display: none; }
.admin-tab-content:first-of-type,
#admin-tab-pricing { display: block; }

.admin-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.admin-row input {
  flex: 1;
  background: #1a1a1a;
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--white);
  padding: 10px 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
}
.admin-row input:focus { outline: none; border-color: var(--gold); }
.admin-row button {
  background: none;
  border: 1px solid rgba(255,50,50,0.3);
  color: rgba(255,100,100,0.7);
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.admin-row button:hover { background: rgba(255,50,50,0.1); color: #ff6464; }

.admin-note {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--white);
  padding: 12px 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 25px;
}
.admin-note:focus { outline: none; border-color: var(--gold); }

.btn-admin-add {
  background: none;
  border: 1px dashed rgba(201,168,76,0.3);
  color: var(--gold);
  padding: 10px 20px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  cursor: pointer;
  margin: 15px 0 25px;
  transition: all 0.2s;
}
.btn-admin-add:hover { border-color: var(--gold); background: rgba(201,168,76,0.05); }

.admin-btn-row { display: flex; gap: 15px; margin-top: 10px; }

.btn-admin-save {
  background: linear-gradient(135deg, var(--gold), #8B6914);
  border: none;
  color: var(--black);
  padding: 12px 30px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  cursor: pointer;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: opacity 0.2s;
}
.btn-admin-save:hover { opacity: 0.85; }

.btn-admin-close {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--gray);
  padding: 12px 30px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  cursor: pointer;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: all 0.2s;
}
.btn-admin-close:hover { border-color: var(--gray); color: var(--white); }

.admin-trigger {
  position: fixed;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
  font-size: 0.5rem;
  color: rgba(201,168,76,0.15);
  z-index: 5000;
  letter-spacing: 3px;
  transition: color 0.3s;
  user-select: none;
}
.admin-trigger:hover { color: rgba(201,168,76,0.5); }

/* Admin select */
.admin-select {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--white);
  padding: 10px 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  appearance: none;
  cursor: pointer;
  margin-bottom: 5px;
}
.admin-select:focus { outline: none; border-color: var(--gold); }

/* ============================================================
   17. UPLOAD PANEL  (T.8)
   ============================================================ */
.upload-section { padding-top: 10px; }

.upload-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.upload-drop-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100px;
  border: 2px dashed rgba(201,168,76,0.3);
  background: #111;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  padding: 20px;
  margin-top: 6px;
}
.upload-drop-zone:hover, .upload-drop-zone.drag-over {
  border-color: var(--gold);
  background: rgba(201,168,76,0.04);
}
#upload-drop-text {
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--gray);
}

.upload-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin-top: 16px;
  max-height: 240px;
  overflow-y: auto;
}
.upload-preview-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.2);
}
.upload-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.upload-preview-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.75);
  font-size: 8px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.7);
  padding: 3px 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-progress {
  width: 100%;
  height: 4px;
  background: #1a1a1a;
  margin-top: 16px;
  overflow: hidden;
}
.upload-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #8B6914);
  width: 0%;
  transition: width 0.3s ease;
}

.upload-log {
  margin-top: 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--gray);
  line-height: 1.8;
  max-height: 140px;
  overflow-y: auto;
}
.upload-log .log-ok  { color: #7ecf7e; }
.upload-log .log-err { color: #cf7e7e; }

/* ============================================================
   18. ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   19. MOBILE
   ============================================================ */
/* ── Burger button (hidden on desktop) ── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s ease;
  transform-origin: center;
}
/* X state */
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  nav { padding: 15px 20px; }

  /* Скрий телефона в навбара на мобилен */
  .nav-phone { display: none !important; }

  /* Покажи бургер бутона */
  .burger { display: flex; }

  /* Скрий lang switch на мобилен — вътре в менюто */
  .lang-switch { display: none; }

  /* Nav links — скрити по подразбиране, падат като drawer */
  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(8,8,8,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201,168,76,0.2);
    padding: 80px 40px 40px;
    gap: 0;
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 999;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-links li a {
    display: block;
    padding: 18px 0;
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
  }
  .nav-links li a:hover { color: var(--gold); }

  /* Slideshow — само 1 панел на мобилен */
  .slideshow-grid { grid-template-columns: 1fr; }
  .slideshow-panel:not(:first-child) { display: none; }
  .slideshow-panel:first-child { aspect-ratio: 3 / 4; max-width: 320px; margin: 0 auto; }

  .gallery-slideshow { height: 280px; }
  .gallery-modal-grid { grid-template-columns: repeat(2, 1fr) !important; }

  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-nav  { width: 40px; height: 40px; font-size: 1.8rem; }

  .insta-preview { grid-template-columns: repeat(3, 1fr); }
  .insta-preview .insta-item:nth-child(4),
  .insta-preview .insta-item:nth-child(5) { display: none; }

  .social-bar { flex-direction: column; align-items: center; }
  .social-btn { width: 100%; max-width: 300px; justify-content: center; }
  .btn-outline { padding: 14px 24px; letter-spacing: 1px; max-width: 90%; text-align: center; word-break: break-all; }
  .contact-grid { grid-template-columns: 1fr !important; gap: 30px !important; padding: 0 20px !important; }

  .gallery-modal-inner { padding: 20px; }
  .hero-title { font-size: clamp(2rem, 12vw, 3.5rem); -webkit-text-stroke: 4px #C9A84C; }
  .hero-content { padding: 30px 20px; }
  .hero-slogan { font-size: 0.9rem; margin-bottom: 30px; }
  .hero-sub { font-size: 0.8rem; letter-spacing: 2px; }
}

/* ============================================================
   НОВИ СТИЛОВЕ — Промоции popup + Nav бутон
   ============================================================ */

/* FIX #2 — slideshow cover */
.slideshow-panel .slideshow-slide img { object-fit: cover; object-position: center top; }
.slideshow-panel { cursor: pointer; }
.slideshow-wm {
  position:absolute; bottom:8px; right:8px; z-index:10; pointer-events:none;
  font-family:'Raleway',sans-serif; font-weight:700; font-size:8px; letter-spacing:2px;
  color:rgba(201,168,76,0.70); background:rgba(0,0,0,0.55); padding:3px 7px;
  border:0.5px solid rgba(201,168,76,0.3); white-space:nowrap;
}
.slideshow-wm::before { content:'SPACE BRAiDS · SOFIA'; }
.slideshow-hint {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  background:rgba(0,0,0,0.75); border:1px solid rgba(201,168,76,0.4); color:var(--gold);
  font-family:'Raleway',sans-serif; font-size:0.7rem; letter-spacing:2px; padding:8px 16px;
  pointer-events:none; opacity:0; transition:opacity 0.3s; z-index:11; white-space:nowrap; text-transform:uppercase;
}
.slideshow-panel:hover .slideshow-hint { opacity:1; }

/* FIX #4 — lightbox watermark */
#lb-watermark {
  position:absolute; bottom:60px; right:24px;
  font-family:'Raleway',sans-serif; font-weight:700; font-size:11px; letter-spacing:2px;
  color:rgba(201,168,76,0.70); background:rgba(0,0,0,0.55); padding:4px 10px;
  border:0.5px solid rgba(201,168,76,0.3); pointer-events:none; user-select:none; z-index:10002;
}


/* NAV — бутон Промоции (без специален стил вече — стандартна връзка) */

/* ============================================================
   NEW — Gallery modal loading percentage
   ============================================================ */
.gallery-modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 0;
}
.loading-pct {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 4px;
  color: var(--gold);
  font-weight: 600;
  opacity: 0.85;
  min-width: 50px;
  text-align: center;
  transition: opacity 0.3s;
}

/* ============================================================
   NEW — PROMOTIONS SECTION (newspaper style)
   ============================================================ */
#promotions {
  padding: var(--section-pad);
  background: rgba(13,13,13,0.55);
  position: relative;
  z-index: 1;
}

.promo-article-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

/* Newspaper block */
.promo-newspaper {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding: 0 40px;
}

/* Left — image */
.promo-newspaper-img {
  position: relative;
  overflow: hidden;
}
.promo-newspaper-img img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(15%);
  transition: filter 0.5s ease;
}
.promo-newspaper-img:hover img { filter: grayscale(0%); }
.promo-newspaper-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201,168,76,0.25);
  pointer-events: none;
}

/* Right — article */
.promo-newspaper-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 8px;
}

.promo-newspaper-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #8B6914);
  color: var(--black);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 4px 12px;
  margin-bottom: 20px;
}

.promo-newspaper-edition {
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: rgba(201,168,76,0.5);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.promo-newspaper-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--white);
  line-height: 1.25;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.promo-newspaper-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.promo-newspaper-rule::before,
.promo-newspaper-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(201,168,76,0.35);
}
.promo-newspaper-rule span {
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: rgba(201,168,76,0.6);
  text-transform: uppercase;
  white-space: nowrap;
}

.promo-newspaper-text {
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.3px;
  text-align: justify;
  margin-bottom: 36px;
  hyphens: auto;
}

.promo-newspaper-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
}

/* No promos state */
.promo-no-content {
  text-align: center;
  padding: 60px 20px;
  max-width: 500px;
  margin: 0 auto;
}
.promo-no-content p {
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.8;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* ============================================================
   NEW — PROMO ADMIN PANEL
   ============================================================ */
.promo-admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9600;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  overflow-y: auto;
}
.promo-admin-overlay.open { display: flex; }

.promo-admin-box {
  background: var(--deep);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 40px;
  width: 100%;
  max-width: 680px;
  position: relative;
  animation: fadeUp 0.3s ease;
}

.promo-admin-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  width: 38px; height: 38px;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.promo-admin-close:hover { background: rgba(201,168,76,0.1); border-color: var(--gold); }

.promo-admin-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 30px;
  padding-right: 50px;
}

.promo-admin-section { margin-bottom: 22px; }

.promo-admin-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.promo-admin-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
}
.promo-admin-input:focus { border-color: var(--gold); }

.promo-admin-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 12px 14px;
  outline: none;
  resize: vertical;
  min-height: 140px;
  transition: border-color 0.2s;
}
.promo-admin-textarea:focus { border-color: var(--gold); }

.promo-admin-drop-zone {
  border: 1px dashed rgba(201,168,76,0.3);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 12px;
}
.promo-admin-drop-zone:hover,
.promo-admin-drop-zone.drag-over { border-color: var(--gold); background: rgba(201,168,76,0.05); }
.promo-admin-drop-inner { color: var(--gray); font-size: 0.8rem; letter-spacing: 2px; }

.promo-admin-img-preview {
  margin-top: 10px;
}
.promo-admin-img-preview img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border: 1px solid rgba(201,168,76,0.2);
  display: block;
}

.promo-admin-upload-progress {
  width: 100%;
  height: 3px;
  background: #1a1a1a;
  margin-top: 8px;
  overflow: hidden;
}
.promo-admin-upload-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #8B6914);
  width: 0%;
  transition: width 0.3s ease;
}

.promo-admin-btn {
  background: linear-gradient(135deg, var(--gold), #8B6914);
  color: var(--black);
  border: none;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 30px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}
.promo-admin-btn:hover { opacity: 0.85; }

.promo-admin-save-btn {
  width: 100%;
  margin-top: 22px;
  padding: 16px;
  font-size: 0.82rem;
  letter-spacing: 4px;
}

.promo-admin-log {
  margin-top: 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 1px;
  color: var(--gray);
  line-height: 1.8;
  min-height: 24px;
}
.promo-admin-log .pa-ok  { color: #7ecf7e; }
.promo-admin-log .pa-err { color: #cf7e7e; }

/* ── Mobile promotions ── */
@media (max-width: 768px) {
  .promo-newspaper {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
  }
  .promo-newspaper-img img { aspect-ratio: 16 / 9; }
  .promo-admin-box { padding: 24px 20px; }
}
