/* ===================================================================
   TARNIM GALLERY - LUXURY PORTAL & SOCIAL HUB
   Palette:
     - Emerald Dark: #0c2b2a
     - Emerald Base: #12403E
     - Emerald Light: #1b5754
     - Gold Light: #e6d3ba
     - Gold Base: #c1a782
     - Gold Dark: #967d5b
     - Ivory / Pearl: #faf7f0
   =================================================================== */

/* ===================================================================
   FONTS DEFINITIONS (FARHANG & ANJOMAN VARIABLE)
   =================================================================== */

/* فرهنگ (Farhang Variable) - مخصوص عناوین و هدرها */
@font-face {
  font-family: 'Farhang';
  src: url('../fonts/FarhangVariable.woff') format('woff-variations'),
    url('../fonts/FarhangVariable.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Farhang VF';
  src: url('../fonts/FarhangVariable.woff') format('woff-variations'),
    url('../fonts/FarhangVariable.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* انجمن (Anjoman Variable) - مخصوص متون و بدنه سایت */
@font-face {
  font-family: 'Anjoman';
  src: url('../fonts/AnjomanMaxVF.woff2') format('woff2-variations'),
    url('../fonts/AnjomanMaxVF.woff2') format('woff2'),
    url('../fonts/AnjomanMaxVF.woff') format('woff');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Anjoman VF';
  src: url('../fonts/AnjomanMaxVF.woff2') format('woff2-variations'),
    url('../fonts/AnjomanMaxVF.woff2') format('woff2'),
    url('../fonts/AnjomanMaxVF.woff') format('woff');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-emerald-deep: #081d1c;
  --color-emerald-dark: #0e302f;
  --color-emerald: #12403e;
  --color-emerald-light: #1c5c59;
  --color-emerald-bright: #277874;

  --color-gold-light: #ebd8bf;
  --color-gold: #c1a782;
  --color-gold-rich: #d6bc96;
  --color-gold-dark: #8c7352;
  --color-gold-glow: rgba(193, 167, 130, 0.35);

  --color-ivory: #faf7f0;
  --color-ivory-dim: rgba(250, 247, 240, 0.75);
  --color-ivory-subtle: rgba(250, 247, 240, 0.45);

  --gradient-gold: linear-gradient(135deg, #f3e5d0 0%, #c1a782 50%, #987e5b 100%);
  --gradient-gold-hover: linear-gradient(135deg, #ffffff 0%, #ebd8bf 35%, #c1a782 70%, #8a6f4e 100%);
  --gradient-emerald-card: linear-gradient(160deg, rgba(18, 64, 62, 0.75) 0%, rgba(10, 37, 36, 0.88) 100%);
  --gradient-emerald-card-hover: linear-gradient(160deg, rgba(28, 92, 89, 0.85) 0%, rgba(14, 48, 47, 0.95) 100%);

  --shadow-gold-sm: 0 4px 15px -3px rgba(193, 167, 130, 0.25);
  --shadow-gold-md: 0 10px 30px -5px rgba(193, 167, 130, 0.3);
  --shadow-gold-lg: 0 20px 45px -10px rgba(193, 167, 130, 0.45);
  --shadow-card: 0 12px 35px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(193, 167, 130, 0.2);

  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  /* Font Families */
  --font-body: 'Anjoman', Tahoma, sans-serif;
  --font-body-vf: 'Anjoman VF', Tahoma, sans-serif;
  --font-heading: 'Farhang', Tahoma, sans-serif;
  --font-heading-vf: 'Farhang VF', Tahoma, sans-serif;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Persian Numbers Feature Settings (ss05) */
.ss05,
html,
body,
input,
button,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6 {
  -moz-font-feature-settings: "ss05";
  -webkit-font-feature-settings: "ss05";
  font-feature-settings: "ss05";
}

/* Variable Font Weight Utilities */
.vf-wght-100 {
  font-variation-settings: "wght" 100;
  font-weight: 100;
}

.vf-wght-200 {
  font-variation-settings: "wght" 200;
  font-weight: 200;
}

.vf-wght-300 {
  font-variation-settings: "wght" 300;
  font-weight: 300;
}

.vf-wght-400,
.vf-wght {
  font-variation-settings: "wght" 400;
  font-weight: 400;
}

.vf-wght-500 {
  font-variation-settings: "wght" 500;
  font-weight: 500;
}

.vf-wght-600 {
  font-variation-settings: "wght" 600;
  font-weight: 600;
}

.vf-wght-700 {
  font-variation-settings: "wght" 700;
  font-weight: 700;
}

.vf-wght-800 {
  font-variation-settings: "wght" 800;
  font-weight: 800;
}

.vf-wght-900 {
  font-variation-settings: "wght" 900;
  font-weight: 900;
}

/* Base & Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font-body);
  direction: rtl;
  scroll-behavior: smooth;
  background-color: var(--color-emerald-deep);
  color: var(--color-ivory);
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: var(--font-body);
  position: relative;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 15%, #18524f 0%, #12403e 35%, #0a2625 70%, #051413 100%);
  overflow-x: hidden;
  color: var(--color-ivory);
}

@supports (font-variation-settings: normal) {

  html,
  body {
    font-family: var(--font-body-vf);
  }
}

/* Headings and Titles use Farhang */
h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.section-title,
.branch-name,
.social-title,
.vip-title,
.modal-title,
.empty-title {
  font-family: var(--font-heading);
}

@supports (font-variation-settings: normal) {

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  .hero-title,
  .section-title,
  .branch-name,
  .social-title,
  .vip-title,
  .modal-title,
  .empty-title {
    font-family: var(--font-heading-vf);
  }

  .hero-title {
    font-variation-settings: "wght" 800;
  }

  .section-title,
  .branch-name,
  .social-title,
  .modal-title {
    font-variation-settings: "wght" 700;
  }
}

/* Background Canvas & Ambient Lights */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.ambient-light {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.ambient-light-1 {
  top: -10%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(193, 167, 130, 0.18) 0%, transparent 70%);
}

.ambient-light-2 {
  top: 40%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(18, 64, 62, 0.6) 0%, transparent 75%);
}

.ambient-light-3 {
  bottom: 0%;
  right: -5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(193, 167, 130, 0.12) 0%, transparent 70%);
}

/* Background Luxury Noise Texture */
.luxury-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Main Container */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

@media (min-width: 768px) {
  .app-container {
    padding: 3.5rem 2rem 5rem;
    gap: 2.75rem;
  }
}

/* ===================================================================
   TOP BAR / HEADER CONTROLS
   =================================================================== */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(18, 64, 62, 0.6);
  border: 1px solid rgba(193, 167, 130, 0.3);
  backdrop-filter: blur(12px);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-gold-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.brand-badge .sparkle-icon {
  color: var(--color-gold);
  animation: pulse-sparkle 2.5s infinite ease-in-out;
}

@keyframes pulse-sparkle {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.25) rotate(15deg);
    opacity: 1;
    filter: drop-shadow(0 0 6px var(--color-gold));
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(18, 64, 62, 0.65);
  border: 1px solid rgba(193, 167, 130, 0.3);
  color: var(--color-gold-light);
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.icon-btn:hover {
  background: rgba(193, 167, 130, 0.2);
  border-color: var(--color-gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-sm);
}

.icon-btn:active {
  transform: scale(0.95);
}

/* ===================================================================
   HERO SECTION - 3D INTERACTIVE CARD WITH FLIP
   =================================================================== */
.hero-card-wrapper {
  perspective: 1400px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-3d-card {
  position: relative;
  width: 100%;
  max-width: 620px;
  min-height: 380px;
  border-radius: var(--radius-lg);
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  cursor: pointer;
}

.hero-3d-card.is-flipped {
  transform: rotateY(180deg);
}

/* Card Faces */
.card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(23, 76, 74, 0.82) 0%, rgba(12, 42, 41, 0.95) 100%);
  border: 1.5px solid rgba(193, 167, 130, 0.4);
  backdrop-filter: blur(25px);
  padding: 2.2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(193, 167, 130, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

/* Card Metallic Glare Overlay */
.card-face::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.22) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.65;
  transition: opacity 0.3s;
}

/* Subtle Animated Shimmer Line */
.card-face::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(193, 167, 130, 0.15), rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-25deg);
  animation: shine-card 6s infinite;
  pointer-events: none;
}

@keyframes shine-card {
  0% {
    left: -150%;
  }

  35%,
  100% {
    left: 150%;
  }
}

.card-face-back {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, rgba(16, 56, 54, 0.9) 0%, rgba(7, 26, 25, 0.98) 100%);
  border-color: rgba(193, 167, 130, 0.5);
}

/* Golden Corner Ornaments */
.corner-ornament {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--color-gold);
  pointer-events: none;
  opacity: 0.7;
}

.corner-tl {
  top: 14px;
  left: 14px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.corner-tr {
  top: 14px;
  right: 14px;
  border-top: 2px solid;
  border-right: 2px solid;
}

.corner-bl {
  bottom: 14px;
  left: 14px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.corner-br {
  bottom: 14px;
  right: 14px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

/* Logo Container inside Hero */
.hero-logo-box {
  width: 100%;
  max-width: 320px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 0.5rem;
  filter: drop-shadow(0 8px 20px rgba(193, 167, 130, 0.35));
  transition: transform 0.5s ease;
}

.hero-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(193, 167, 130, 0.3));
}

.hero-signature-box {
  width: 100%;
  max-width: 340px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 0.5rem;
  filter: drop-shadow(0 8px 25px rgba(193, 167, 130, 0.45));
}

.hero-signature-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Card Titles */
.hero-text-content {
  margin-top: 0.75rem;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.3rem;
  text-shadow: 0 4px 20px rgba(193, 167, 130, 0.3);
}

.hero-tagline {
  font-size: 0.95rem;
  color: var(--color-ivory-dim);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.hero-latin-subtitle {
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--color-gold-light);
  text-transform: uppercase;
  margin-top: 0.4rem;
  font-weight: 500;
  opacity: 0.85;
}

/* Flip Hint / Interaction button */
.flip-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(18, 64, 62, 0.7);
  border: 1px solid rgba(193, 167, 130, 0.35);
  font-size: 0.8rem;
  color: var(--color-gold-light);
  transition: var(--transition-fast);
  margin-top: 1rem;
}

.flip-hint:hover {
  background: rgba(193, 167, 130, 0.25);
  color: #fff;
  border-color: var(--color-gold);
}

.flip-icon {
  transition: transform 0.6s ease;
}

.hero-3d-card:hover .flip-icon {
  transform: rotate(180deg);
}

/* ===================================================================
   SEARCH & FILTER TABS
   =================================================================== */
.filter-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.9rem 3rem 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(14, 46, 45, 0.6);
  border: 1px solid rgba(193, 167, 130, 0.25);
  color: var(--color-ivory);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  backdrop-filter: blur(15px);
  transition: var(--transition-smooth);
}

.search-input::placeholder {
  color: var(--color-ivory-subtle);
  font-size: 0.9rem;
}

.search-input:focus {
  border-color: var(--color-gold);
  background: rgba(18, 64, 62, 0.85);
  box-shadow: 0 0 0 3px rgba(193, 167, 130, 0.15), var(--shadow-gold-sm);
}

.search-icon {
  position: absolute;
  top: 50%;
  right: 1.1rem;
  transform: translateY(-50%);
  color: var(--color-gold);
  opacity: 0.75;
  pointer-events: none;
}

.clear-search {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-ivory-subtle);
  cursor: pointer;
  display: none;
}

.clear-search.visible {
  display: block;
}

/* Category Tabs */
.tabs-scroll-wrapper {
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: max-content;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  background: rgba(14, 46, 45, 0.6);
  border: 1px solid rgba(193, 167, 130, 0.2);
  color: var(--color-ivory-dim);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.tab-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-ivory);
  background: rgba(193, 167, 130, 0.15);
}

.tab-btn.active {
  background: var(--gradient-gold);
  color: var(--color-emerald-deep);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(193, 167, 130, 0.4);
}

.tab-btn .tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.75rem;
  font-weight: 600;
}

.tab-btn.active .tab-count {
  background: rgba(18, 64, 62, 0.25);
  color: var(--color-emerald-deep);
}

/* ===================================================================
   SECTION HEADERS
   =================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-ivory);
}

.section-title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(193, 167, 130, 0.15);
  border: 1px solid rgba(193, 167, 130, 0.3);
  color: var(--color-gold);
}

.section-badge {
  font-size: 0.78rem;
  color: var(--color-gold-light);
  background: rgba(18, 64, 62, 0.6);
  border: 1px solid rgba(193, 167, 130, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

/* ===================================================================
   BRANCHES SECTION (شعب مختلف) - 3D TILT CARDS
   =================================================================== */
.branches-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 680px) {
  .branches-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.branch-card {
  position: relative;
  background: var(--gradient-emerald-card);
  border: 1.5px solid rgba(193, 167, 130, 0.25);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}

.branch-card:hover {
  border-color: rgba(193, 167, 130, 0.65);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.6), var(--shadow-gold-md);
  transform: translateY(-4px) scale(1.01);
}

.branch-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.branch-info-top {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.branch-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.branch-city-tag {
  font-size: 0.8rem;
  color: var(--color-ivory-dim);
  font-weight: 400;
}

.branch-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(39, 120, 116, 0.4);
  border: 1px solid rgba(193, 167, 130, 0.3);
  font-size: 0.72rem;
  color: var(--color-gold-light);
  font-weight: 500;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

.branch-address-box {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(10, 34, 33, 0.6);
  border: 1px dashed rgba(193, 167, 130, 0.25);
  font-size: 0.88rem;
  color: var(--color-ivory-dim);
  line-height: 1.6;
}

.branch-address-box svg {
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.branch-details-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--color-ivory-subtle);
}

.branch-detail-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.branch-detail-item svg {
  color: var(--color-gold);
}

/* Branch Quick Actions */
.branch-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.btn-luxury {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-gold {
  background: var(--gradient-gold);
  color: var(--color-emerald-deep);
  border: none;
  box-shadow: 0 4px 15px rgba(193, 167, 130, 0.3);
}

.btn-gold:hover {
  background: var(--gradient-gold-hover);
  box-shadow: 0 6px 20px rgba(193, 167, 130, 0.45);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: rgba(18, 64, 62, 0.5);
  border: 1px solid rgba(193, 167, 130, 0.35);
  color: var(--color-gold-light);
}

.btn-outline-gold:hover {
  background: rgba(193, 167, 130, 0.2);
  border-color: var(--color-gold);
  color: #fff;
  transform: translateY(-2px);
}

.btn-icon-copy {
  grid-column: span 2;
  background: rgba(10, 34, 33, 0.7);
  border: 1px solid rgba(193, 167, 130, 0.2);
  color: var(--color-ivory-dim);
  font-size: 0.82rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-icon-copy:hover {
  background: rgba(193, 167, 130, 0.15);
  color: var(--color-gold-light);
  border-color: var(--color-gold);
}

/* ===================================================================
   SOCIAL MEDIA CARDS (شبکه‌های اجتماعی)
   =================================================================== */
.socials-grid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.social-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  background: var(--gradient-emerald-card);
  border: 1.5px solid rgba(193, 167, 130, 0.25);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-ivory);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
  overflow: hidden;
}

.social-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: var(--color-gold);
  background: var(--gradient-emerald-card-hover);
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.5), var(--shadow-gold-sm);
}

.social-card:hover::before {
  opacity: 1;
}

.social-main {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.social-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(14, 46, 45, 0.8);
  border: 1px solid rgba(193, 167, 130, 0.3);
  color: var(--color-gold-light);
  flex-shrink: 0;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-card:hover .social-icon-wrapper {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: var(--shadow-gold-sm);
  border-color: var(--color-gold);
}

.social-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

/* Specific Social Brand Color Glances */
.social-card.instagram .social-icon-wrapper {
  color: #f59e0b;
}

.social-card.telegram .social-icon-wrapper {
  color: #38bdf8;
}

.social-card.bale .social-icon-wrapper {
  color: #34d399;
}

.social-card.youtube .social-icon-wrapper {
  color: #f87171;
}

.social-card.whatsapp .social-icon-wrapper {
  color: #22c55e;
}

.social-card.catalog .social-icon-wrapper {
  color: var(--color-gold);
}

.social-card.website .social-icon-wrapper {
  color: var(--color-gold);
  border-color: rgba(193, 167, 130, 0.5);
  background: rgba(193, 167, 130, 0.15);
  box-shadow: 0 0 16px rgba(193, 167, 130, 0.25);
}

.social-texts {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.social-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.social-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-ivory);
}

.social-badge {
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(193, 167, 130, 0.15);
  color: var(--color-gold-light);
  border: 1px solid rgba(193, 167, 130, 0.25);
  font-weight: 500;
}

.social-desc {
  font-size: 0.82rem;
  color: var(--color-ivory-dim);
}

.social-handle {
  font-size: 0.76rem;
  color: var(--color-gold);
  direction: ltr;
  text-align: right;
  font-weight: 500;
  opacity: 0.85;
}

.social-arrow-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(193, 167, 130, 0.12);
  color: var(--color-gold-light);
  transition: transform 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
}

.social-card:hover .social-arrow-action {
  background: var(--color-gold);
  color: var(--color-emerald-deep);
  transform: translateX(-4px);
}

/* ===================================================================
   VIP SERVICES & QUICK ASSISTANCE
   =================================================================== */
.vip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.vip-card {
  padding: 1.3rem;
  border-radius: var(--radius-md);
  background: var(--gradient-emerald-card);
  border: 1px solid rgba(193, 167, 130, 0.25);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: var(--transition-smooth);
  text-decoration: none;
  color: inherit;
}

.vip-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold-sm);
}

.vip-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(193, 167, 130, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
}

.vip-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gold-light);
}

.vip-desc {
  font-size: 0.82rem;
  color: var(--color-ivory-dim);
  line-height: 1.5;
}

/* ===================================================================
   SIGNATURE / MOTHER BRAND FOOTER SHOWCASE
   =================================================================== */
.signature-showcase-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(14, 48, 47, 0.9) 0%, rgba(6, 22, 21, 0.98) 100%);
  border: 1.5px solid rgba(193, 167, 130, 0.35);
  backdrop-filter: blur(25px);
  padding: 2.5rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.signature-showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
}

.mother-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(193, 167, 130, 0.15);
  border: 1px solid rgba(193, 167, 130, 0.3);
  font-size: 0.78rem;
  color: var(--color-gold-light);
  letter-spacing: 0.5px;
}

.signature-art-wrapper {
  width: 100%;
  max-width: 280px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 15px rgba(193, 167, 130, 0.3));
  transition: transform 0.4s ease;
}

.signature-art-wrapper:hover {
  transform: scale(1.05);
}

.signature-art-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.signature-quote {
  font-size: 0.95rem;
  color: var(--color-ivory-dim);
  max-width: 500px;
  line-height: 1.8;
  font-weight: 300;
  position: relative;
}

.signature-quote::before,
.signature-quote::after {
  content: '"';
  color: var(--color-gold);
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-copy {
  margin-top: 1rem;
  font-size: 0.76rem;
  color: var(--color-ivory-subtle);
  border-top: 1px solid rgba(193, 167, 130, 0.15);
  padding-top: 1rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}

.footer-copy-en {
  letter-spacing: 1.5px;
  direction: ltr;
  font-size: 0.72rem;
  color: var(--color-gold);
  opacity: 0.75;
}

/* ===================================================================
   MODALS (MODAL DIALOGS) - QR CODE & ROUTING APPS
   =================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(5, 18, 17, 0.85);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(150deg, #164a47 0%, #0c2b29 100%);
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), var(--shadow-gold-md);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(18, 64, 62, 0.6);
  border: 1px solid rgba(193, 167, 130, 0.3);
  color: var(--color-ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--color-gold);
  color: var(--color-emerald-deep);
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-gold-light);
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--color-ivory-dim);
  margin-top: -0.5rem;
}

.qr-code-box {
  width: 220px;
  height: 220px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-box svg {
  width: 100%;
  height: 100%;
}

.modal-share-actions {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

/* Map Routing Modal */
.routing-apps-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  width: 100%;
}

.routing-app-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: rgba(18, 64, 62, 0.6);
  border: 1px solid rgba(193, 167, 130, 0.25);
  border-radius: var(--radius-sm);
  color: var(--color-ivory);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.routing-app-link:hover {
  background: rgba(193, 167, 130, 0.2);
  border-color: var(--color-gold);
  color: var(--color-gold-light);
  transform: translateY(-2px);
}

.routing-app-link svg {
  width: 22px;
  height: 22px;
}

/* ===================================================================
   TOAST NOTIFICATION
   =================================================================== */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.6rem;
  background: rgba(10, 35, 34, 0.95);
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-full);
  color: var(--color-ivory);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), var(--shadow-gold-md);
  backdrop-filter: blur(15px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

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

.toast-icon {
  color: var(--color-gold);
}

/* ===================================================================
   EMPTY SEARCH STATE
   =================================================================== */
.empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(18, 64, 62, 0.4);
  border: 1px dashed rgba(193, 167, 130, 0.25);
  border-radius: var(--radius-md);
  gap: 0.75rem;
}

.empty-state.visible {
  display: flex;
}

.empty-icon {
  width: 48px;
  height: 48px;
  color: var(--color-gold);
  opacity: 0.6;
}

.empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-gold-light);
}

.empty-desc {
  font-size: 0.85rem;
  color: var(--color-ivory-dim);
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .hero-3d-card {
    min-height: 350px;
  }

  .card-face {
    padding: 1.75rem 1.25rem;
  }

  .hero-title {
    font-size: 1.45rem;
  }

  .branch-actions {
    grid-template-columns: 1fr;
  }

  .btn-icon-copy {
    grid-column: span 1;
  }

  .routing-apps-list {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}