/* ==========================================================================
   Gemini Share Hub — Smart Binary Luxury Dark & Gold Design Theme
   Colors & Styles adapted from Smart Binary (Eli):
   #0A1122 (Navy), #14203A (Navy Light), #0F1A30 (Navy Card),
   #B0C4DE (Silver), #E2E8F0 (Silver Light), #D4AF37 (Gold), #F5BE47 (Gold Glow)
   ========================================================================== */

:root {
  --brand-navy: #0A1122;
  --brand-navy-light: #14203A;
  --brand-navy-card: #0F1A30;
  --brand-silver: #B0C4DE;
  --brand-silver-light: #E2E8F0;
  --brand-gold: #D4AF37;
  --brand-gold-glow: #F5BE47;
  
  --bg-page: #0A1122;
  --text-main: #E2E8F0;
  --text-muted: #B0C4DE;
  --text-dim: rgba(176, 196, 222, 0.65);
  
  --border-subtle: rgba(176, 196, 222, 0.12);
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-gold-bright: rgba(245, 190, 71, 0.5);

  --gold-gradient: linear-gradient(135deg, #F7D070 0%, #D4AF37 50%, #AA820A 100%);
  --gold-btn-gradient: linear-gradient(135deg, #F5BE47 0%, #D4AF37 100%);
  --silver-gradient: linear-gradient(180deg, #FFFFFF 0%, #A3B8D4 100%);

  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  --shadow-gold-glow: 0 0 25px rgba(212, 175, 55, 0.35);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);

  --font-heading: 'Rubik', sans-serif;
  --font-body: 'Heebo', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

button {
  font-family: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

body {
  font-family: var(--font-body);
  background-color: var(--brand-navy);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-wrap: break-word;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(20, 32, 58, 0.8) 0%, transparent 75%),
    radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

@media (hover: none), (max-width: 767px) {
  body { background-attachment: scroll; }
}

::selection {
  background-color: var(--brand-gold);
  color: var(--brand-navy);
}

:focus-visible {
  outline: 2px solid var(--brand-gold-glow);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Background Grid Removed ("להוריד את המשבצות") */
.grid-bg {
  background-image: none !important;
}

/* Typography Helpers */
.font-heading { font-family: var(--font-heading); }
.font-mono { font-family: var(--font-mono); }

.text-gradient-silver {
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glass Panels & Cards */
.glass-panel {
  background: rgba(15, 26, 48, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: var(--shadow-glass);
}

.glass-card {
  background: rgba(20, 32, 58, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

/* BiDi & LTR Text Isolation for emails, phone numbers, and codes inside Hebrew RTL layouts */
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}

@media (hover: hover) {
  .glass-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  }
}

.gold-border-glow {
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.2);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.09);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--brand-gold-glow);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-discount-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(245, 190, 71, 0.10) 100%);
  border: 1px solid rgba(245, 190, 71, 0.6);
  color: #FEE79A;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  width: fit-content;
}

/* ==========================================================================
   Header & Floating Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.85rem 1.25rem;
  transition: var(--transition);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-xl);
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.logo-group:hover .logo-icon-box {
  border-color: var(--brand-gold-glow);
  transform: scale(1.05);
  box-shadow: var(--shadow-gold-glow);
}

.logo-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(20, 32, 58, 0.9);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gold);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.logo-icon-box svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-brand-name {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.logo-text span.sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-btn-gradient);
  color: #0A1122;
  font-weight: 700;
  border: 1px solid rgba(245, 190, 71, 0.6);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.55);
  background: linear-gradient(135deg, #FED766 0%, #E5BD3B 100%);
}

.btn-gold-outline {
  background: rgba(212, 175, 55, 0.08);
  color: var(--brand-gold-glow);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.btn-gold-outline:hover {
  background: var(--brand-gold);
  color: #0A1122;
  box-shadow: var(--shadow-gold-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(20, 32, 58, 0.8);
  color: var(--brand-silver-light);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(26, 42, 75, 0.9);
  color: #FFFFFF;
  border-color: rgba(176, 196, 222, 0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--brand-silver);
  border: 1px solid rgba(176, 196, 222, 0.2);
}

.btn-outline:hover {
  color: #FFFFFF;
  border-color: var(--brand-silver);
  background: rgba(176, 196, 222, 0.06);
}

.btn-whatsapp {
  background: #25D366;
  color: #0A1122;
  font-weight: 700;
  border: 1px solid rgba(37, 211, 102, 0.4);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: #2ee26f;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.45);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
  background: #EF4444;
  color: #FFFFFF;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 3.5rem 1.5rem 2.25rem;
  text-align: center;
  overflow: hidden;
}

.hero-aura {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.13) 0%, rgba(20, 32, 58, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events-none;
  z-index: -1;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.7;
}

/* Stats Pill Bar */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.stat-number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand-gold-glow);
}

/* ==========================================================================
   Main Content & Section Switcher
   ========================================================================== */
.main-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
  flex-grow: 1;
  width: 100%;
}

/* Top Section Switcher (Tabs) */
.section-switcher-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.section-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.35rem;
  border-radius: var(--radius-full);
  gap: 0.35rem;
  background: rgba(15, 26, 48, 0.8);
  border: 1px solid var(--border-subtle);
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: var(--shadow-glass);
}

.switch-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid transparent;
  color: var(--brand-silver);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  white-space: nowrap;
}

.switch-tab-btn:hover {
  color: #FFFFFF;
}

.switch-tab-btn.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--brand-gold-glow);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.switch-badge {
  display: inline-flex;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(245, 190, 71, 0.2);
  color: var(--brand-gold-glow);
}

/* ==========================================================================
   Filter & Search Toolbar
   ========================================================================== */
.filter-card {
  background: rgba(15, 26, 48, 0.75);
  border: 1px solid rgba(176, 196, 222, 0.15);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.search-box {
  flex: 1 1 360px;
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 26, 48, 0.7);
  border: 1px solid rgba(176, 196, 222, 0.2);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.25rem;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--brand-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
  background: rgba(20, 32, 58, 0.9);
}

.search-box .search-icon {
  font-size: 1.1rem;
  color: var(--brand-gold-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  line-height: 1;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--brand-silver-light);
  font-family: var(--font-body);
  font-size: 0.92rem;
  width: 100%;
}

.search-box input::placeholder {
  color: var(--text-dim);
}

.cost-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cost-filter-group .filter-label {
  color: var(--brand-silver);
  font-size: 0.88rem;
  font-weight: 500;
  margin-left: 0.35rem;
  user-select: none;
}

.cost-chip,
.filter-chip {
  background: rgba(20, 32, 58, 0.85);
  color: var(--brand-silver);
  border: 1px solid rgba(176, 196, 222, 0.2);
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
  text-decoration: none;
}

.cost-chip:hover,
.filter-chip:hover {
  border-color: var(--brand-gold);
  color: #FFFFFF;
  background: rgba(26, 42, 75, 0.95);
  transform: translateY(-1px);
}

.cost-chip.active,
.filter-chip.active {
  background: var(--gold-btn-gradient);
  color: #0A1122;
  font-weight: 700;
  border-color: var(--brand-gold);
  box-shadow: var(--shadow-gold-glow);
  transform: none;
}

@media (max-width: 768px) {
  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    width: 100%;
  }
  .cost-filter-group {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Groups Grid & Group Cards
   ========================================================================== */
.groups-grid, .posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.35rem;
}

@media (max-width: 640px) {
  .groups-grid, .posts-grid {
    grid-template-columns: 1fr;
  }
}

.group-card {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  position: relative;
  overflow: hidden;
}

.group-card.has-discount-border {
  border-top: 2px solid var(--brand-gold);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.12);
}

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

.group-title-area {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.group-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
}

.discount-badge-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(245, 190, 71, 0.1) 100%);
  border: 1px solid rgba(245, 190, 71, 0.6);
  color: #FEE488;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
  width: fit-content;
}

.group-status-pill {
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.group-status-pill.open {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
}

.group-status-pill.full {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #FBBF24;
}

.group-status-pill.closed {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #94A3B8;
}

/* Manager & Cost Row */
.group-manager-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  background: rgba(15, 26, 48, 0.7);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.manager-profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.manager-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(20, 32, 58, 0.9) 100%);
  border: 1.5px solid var(--brand-gold);
  color: var(--brand-gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.manager-meta h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-silver-light);
}

.manager-meta span {
  font-size: 0.72rem;
  color: var(--brand-gold-glow);
}

.cost-tag {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.cost-tag .cost-label {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.cost-tag .cost-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--brand-gold-glow);
}

/* Slots Tracker Visualizer */
.slots-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: rgba(10, 17, 34, 0.5);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.slots-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.slots-label {
  color: var(--brand-silver);
  font-weight: 500;
}

.slots-count-highlight {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--brand-gold-glow);
}

.slots-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(15, 26, 48, 0.9);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.slots-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #D4AF37 0%, #F5BE47 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* Slot Circles List */
.slots-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.slot-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  background: rgba(20, 32, 58, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--brand-silver);
}

.slot-chip.manager {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--brand-gold-glow);
  font-weight: 600;
}

.slot-chip.taken {
  background: rgba(30, 48, 85, 0.7);
  border-color: rgba(176, 196, 222, 0.25);
  color: var(--brand-silver-light);
}

.slot-chip.free {
  background: rgba(15, 26, 48, 0.4);
  border: 1px dashed rgba(176, 196, 222, 0.2);
  color: var(--text-dim);
}

/* ==========================================================================
   Occupancy Slots Visualizer
   ========================================================================== */
.occupancy-container {
  background: rgba(15, 26, 48, 0.65);
  border: 1px solid rgba(176, 196, 222, 0.15);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin: 0.85rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.occupancy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--brand-silver);
}

.slots-visual {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0;
  direction: rtl;
}

.slot-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  background: rgba(20, 32, 58, 0.9);
  border: 1px solid rgba(176, 196, 222, 0.25);
  color: var(--brand-silver);
  transition: all 0.2s ease;
  user-select: none;
  flex-shrink: 0;
  line-height: 1;
}

.slot-dot.filled {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--brand-gold);
  color: var(--brand-gold-glow);
  font-weight: bold;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.slot-dot.manager {
  background: rgba(212, 175, 55, 0.3);
  border-color: var(--brand-gold);
  font-size: 0.95rem;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.slot-dot.empty {
  border: 1px dashed rgba(176, 196, 222, 0.3);
  color: rgba(176, 196, 222, 0.3);
  background: rgba(15, 26, 48, 0.5);
}

.occupancy-sub {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.group-title-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.group-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
}

.manager-name {
  font-size: 0.84rem;
  color: var(--brand-silver);
}

.group-details-box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding: 0.45rem 0.75rem;
  background: rgba(15, 26, 48, 0.5);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(176, 196, 222, 0.08);
}

.detail-label {
  color: var(--brand-silver);
}

.detail-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--brand-gold-glow);
}

.group-card-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.75rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(176, 196, 222, 0.1);
  margin-top: auto;
  font-size: 0.78rem;
}

.btn-delete-link {
  background: transparent;
  border: none;
  color: rgba(248, 113, 113, 0.75);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-family: inherit;
  transition: var(--transition);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.btn-delete-link:hover {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.12);
}

.notes-box {
  background: rgba(15, 26, 48, 0.6);
  border: 1px solid rgba(176, 196, 222, 0.12);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--brand-silver-light);
  word-break: break-word;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-top: auto;
}


/* Group Notes */
.group-notes {
  font-size: 0.85rem;
  color: var(--brand-silver);
  line-height: 1.55;
  background: rgba(15, 26, 48, 0.5);
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(176, 196, 222, 0.08);
}

/* Card Actions */
.group-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
}

.group-actions-primary-row {
  display: flex;
  gap: 0.5rem;
}

.group-actions-secondary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  padding-top: 0.25rem;
}

.btn-manage-link {
  background: transparent;
  border: none;
  color: var(--brand-silver);
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
  font-family: inherit;
}

.btn-manage-link:hover {
  color: var(--brand-gold-glow);
}

/* ==========================================================================
   Post Cards (Individual Posts)
   ========================================================================== */
.post-card {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.post-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  letter-spacing: 0.01em;
  user-select: none;
  white-space: nowrap;
}

.badge-offer {
  background: rgba(212, 175, 55, 0.18);
  color: var(--brand-gold-glow);
  border: none !important;
}

.badge-request {
  background: rgba(99, 102, 241, 0.2);
  color: #C7D2FE;
  border: none !important;
}

.badge-free {
  background: rgba(16, 185, 129, 0.18);
  color: #6EE7B7;
  border: none !important;
}

.badge-paid {
  background: rgba(245, 158, 11, 0.18);
  color: #FCD34D;
  border: none !important;
}

.badge-forum {
  background: rgba(14, 165, 233, 0.18);
  color: #7DD3FC;
  border: none !important;
}

.badge-open {
  background: rgba(16, 185, 129, 0.18);
  color: #6EE7B7;
  border: none !important;
}

.badge-full {
  background: rgba(245, 158, 11, 0.18);
  color: #FCD34D;
  border: none !important;
}

.badge-closed {
  background: rgba(148, 163, 184, 0.18);
  color: #CBD5E1;
  border: none !important;
}

.badge-approval {
  background: rgba(245, 190, 71, 0.18);
  color: var(--brand-gold-glow);
  border: none !important;
}

.badge-private {
  background: rgba(148, 163, 184, 0.18);
  color: #94A3B8;
  border: none !important;
}

.badge-prepay {
  background: rgba(212, 175, 55, 0.2);
  color: #FDE047;
  border: none !important;
}

.badge-discount-gold {
  background: rgba(212, 175, 55, 0.22);
  color: var(--brand-gold-glow);
  border: none !important;
}

.post-date {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 26, 48, 0.9);
  border: 1px solid var(--border-gold);
  color: var(--brand-gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.user-details h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-silver-light);
}

.user-details span {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.email-box {
  background: rgba(15, 26, 48, 0.85);
  border: 1px solid rgba(176, 196, 222, 0.2);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  direction: rtl;
}

.email-box .email-address {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--brand-silver-light);
  direction: ltr;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-box .btn-icon,
.email-box .btn-copy,
.email-box .btn-icon-copy,
.btn-icon-copy {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--brand-gold-glow);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}

.email-box .btn-icon:hover,
.email-box .btn-copy:hover,
.email-box .btn-icon-copy:hover,
.btn-icon-copy:hover {
  background: rgba(212, 175, 55, 0.28);
  border-color: var(--brand-gold);
  color: #FFFFFF;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.empty-icon {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #FFFFFF;
}

.empty-state p {
  color: var(--text-muted);
  max-width: 420px;
  font-size: 0.92rem;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-box {
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  padding: 1.85rem;
  transform: scale(0.95) translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #FFFFFF;
}

.close-btn {
  background: rgba(20, 32, 58, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--brand-silver);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: var(--transition);
}

.close-btn:hover {
  color: #FFFFFF;
  border-color: var(--brand-gold);
  background: var(--brand-navy-light);
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand-silver-light);
}

.form-label .req {
  color: #F87171;
}

.form-control {
  background: rgba(10, 17, 34, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.95rem;
  color: #FFFFFF;
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  width: 100%;
}

.form-control:focus {
  border-color: var(--brand-gold-glow);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
  outline: none;
}

textarea.form-control {
  min-height: 85px;
  resize: vertical;
}

.form-help {
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* Discount Checkbox Card in Modal */
.discount-toggle-card {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.discount-toggle-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
}

.discount-toggle-header input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-gold);
  cursor: pointer;
}

.discount-toggle-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-gold-glow);
}

.discount-subfields {
  display: none;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(212, 175, 55, 0.25);
  flex-direction: column;
  gap: 0.6rem;
}

.discount-subfields.active {
  display: flex;
}

/* Radio Cards */
.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.radio-card {
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-md);
  background: rgba(10, 17, 34, 0.75);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-silver);
}

.radio-card input {
  display: none;
}

.radio-card:hover {
  border-color: rgba(176, 196, 222, 0.3);
  color: #FFFFFF;
}

.radio-card.selected {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--border-gold);
  color: var(--brand-gold-glow);
  font-weight: 600;
}

/* FAQ Cards */
.faq-card {
  background: rgba(15, 26, 48, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 0.85rem;
}

.faq-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-gold-glow);
  margin-bottom: 0.45rem;
}

.faq-card p {
  font-size: 0.86rem;
  color: var(--brand-silver);
  line-height: 1.6;
}

/* Members Manager List in Modal */
.manager-members-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1rem 0;
  max-height: 240px;
  overflow-y: auto;
}

.manager-member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: rgba(10, 17, 34, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.84rem;
}

.manager-member-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.manager-member-info strong {
  color: #FFFFFF;
}

.manager-member-info span {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding: 2.25rem 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
  background: rgba(10, 17, 34, 0.95);
}

.site-footer a {
  color: var(--brand-gold-glow);
  text-decoration: none;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(15, 26, 48, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  color: #FFFFFF;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

@media (max-width: 600px) {
  .hidden-xs {
    display: none !important;
  }
}

/* ==========================================================================
   Forum, Prepay, Approval Badges & Admin Dashboard
   ========================================================================== */


.checkbox-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: rgba(20, 32, 58, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.92rem;
  color: var(--text-main);
}

.checkbox-card:hover {
  border-color: var(--brand-gold);
  background: rgba(20, 32, 58, 0.9);
}

.checkbox-card input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--brand-gold);
  cursor: pointer;
}

.requirements-box {
  background: rgba(15, 26, 48, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #CBD5E1;
}

.requirements-box strong {
  color: var(--brand-gold);
  display: block;
  margin-bottom: 0.25rem;
}

.admin-members-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 280px;
  overflow-y: auto;
  padding-left: 0.25rem;
}

.admin-member-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(15, 26, 48, 0.85);
  border: 1px solid var(--border-subtle);
  gap: 0.75rem;
}

.admin-member-card .member-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow: hidden;
}

.admin-member-card .member-meta strong {
  font-size: 0.95rem;
  color: var(--text-main);
}

.admin-member-card .member-meta span {
  color: var(--text-muted);
}

/* 5-Slot Occupancy Visualizer & Chips (Milestone 1) */
.slots-chips-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.slot-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.slot-chip.taken {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(245, 190, 71, 0.15));
  border: 1px solid var(--brand-gold);
  color: var(--brand-gold-glow);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.slot-chip.free {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
}

/* Radiant Gold Hero Discount Badge */
.badge-discount-hero {
  background: linear-gradient(135deg, #D4AF37 0%, #F5BE47 100%);
  color: #0A1122 !important;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}


