/* Style sheet for Royal Poker Club / ТРОЯ */

/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
  --bg-primary: #060608;       /* Deep slate black */
  --bg-secondary: #0d0d11;     /* Charcoal card background */
  --bg-tertiary: #16161f;      /* Active state/sidebar panels */
  --gold-primary: #d4af37;     /* Bright gold */
  --gold-secondary: #aa8412;   /* Muted gold / shadow */
  --crimson-primary: #800020;  /* Velvet burgundy */
  --crimson-hover: #9b111e;    /* Bright velvet */
  --text-main: #f0f0f5;        /* Premium off-white */
  --text-muted: #8e8e9e;       /* Gray subtitle text */
  --border-color: #23232d;     /* Dark gray premium thin borders */
  
  --gold-gradient: linear-gradient(135deg, #f5e298 0%, #d4af37 50%, #a37f0f 100%);
  --crimson-gradient: linear-gradient(135deg, #8c0c27 0%, #600018 50%, #30000a 100%);
  --dark-gradient: linear-gradient(180deg, rgba(13, 13, 17, 0.95) 0%, rgba(6, 6, 8, 0.98) 100%);
  
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.15);
  --shadow-crimson: 0 4px 20px rgba(128, 0, 32, 0.3);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   2. LAYOUT & CONTAINERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  padding: 0 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.text-center { text-align: center; }
.text-gold { color: var(--gold-primary) !important; }
.text-crimson { color: var(--crimson-primary) !important; }
.text-muted { color: var(--text-muted) !important; }

.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold-gradient);
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ==========================================================================
   3. BUTTONS & UI ELEMENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #000;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35);
  color: #000;
}

.btn-crimson {
  background: var(--crimson-gradient);
  color: #fff;
  box-shadow: var(--shadow-crimson);
}

.btn-crimson:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(128, 0, 32, 0.5);
  background: var(--crimson-hover);
}

.btn-border {
  background: transparent;
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
}

.btn-border:hover {
  background: var(--gold-primary);
  color: #000;
}

.btn-block {
  display: flex;
  width: 100%;
}

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

/* ==========================================================================
   4. STICKY HEADER & MOBILE MENU
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(6, 6, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

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

.logo .brand-text {
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.logo .club-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.desktop-nav a {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  padding: 8px 0;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: var(--transition-smooth);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

.desktop-nav a.active {
  color: var(--gold-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mobile-toggle {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: none;
  padding: 5px;
}

/* Drawer Menu */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  z-index: 200;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav a {
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 500;
  display: block;
}

.mobile-nav a.active {
  color: var(--gold-primary);
}

.drawer-cta {
  margin-top: 20px;
}

.drawer-footer {
  margin-top: auto;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.disclaimer-18 {
  display: inline-block;
  border: 1px solid var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   5. PUBLIC LANDING PAGE (HERO, DISCLAIMERS, CARDS)
   ========================================================================== */
.page-content {
  padding-top: 80px; /* Offset for sticky header */
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(13,13,17,0.4) 0%, rgba(6,6,8,0.92) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(128, 0, 32, 0.35);
  border: 1px solid var(--crimson-primary);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

.hero-section h1 {
  font-size: 3.8rem;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #d4af37;
  margin-bottom: 35px;
  max-width: 600px;
}

.hero-meta-list {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  list-style: none;
  font-size: 1.05rem;
  color: var(--text-main);
  flex-wrap: wrap;
}

.hero-meta-list i {
  color: var(--gold-primary);
  margin-right: 8px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Conditions & Bonuses Sections */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 35px;
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.card-icon {
  font-size: 2.2rem;
  color: var(--gold-primary);
  margin-bottom: 25px;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-family: 'Outfit', sans-serif;
}

.card-list {
  list-style: none;
  margin-top: 20px;
}

.card-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.card-list i {
  color: var(--gold-primary);
  margin-right: 12px;
  margin-top: 5px;
}

/* Schedule Table Preview */
.schedule-preview {
  margin-top: 30px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-row:hover {
  background: rgba(212, 175, 55, 0.03);
}

.schedule-day {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 15px;
}

.schedule-day i {
  color: var(--gold-primary);
}

.schedule-time {
  background: var(--crimson-gradient);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Map placeholder */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-top: 30px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) invert(0.9) contrast(1.2);
}

/* ==========================================================================
   6. PUBLIC PAGE STYLES (SCHEDULE, RATINGS, GALLERY, CONTACTS)
   ========================================================================== */
.page-header {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Filtering System */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #000;
}

/* Tournament Card Grid */
.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.tournament-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.tournament-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
}

.t-header {
  padding: 25px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.t-header.cash-header {
  background: linear-gradient(135deg, rgba(128, 0, 32, 0.15) 0%, transparent 100%);
}

.t-header.tournament-header {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
}

.t-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-open {
  background: rgba(46, 117, 89, 0.2);
  color: #3ebd93;
  border: 1px solid #3ebd93;
}

.status-closed {
  background: rgba(181, 102, 29, 0.2);
  color: #e28743;
  border: 1px solid #e28743;
}

.status-finished {
  background: rgba(108, 117, 125, 0.2);
  color: #adb5bd;
  border: 1px solid #adb5bd;
}

.t-date-time {
  font-size: 0.85rem;
  color: var(--gold-primary);
  margin-bottom: 8px;
  display: flex;
  gap: 15px;
}

.t-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-family: 'Outfit', sans-serif;
}

.t-body {
  padding: 25px;
  flex-grow: 1;
}

.t-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.t-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 25px;
  font-size: 0.9rem;
}

.t-detail-item {
  display: flex;
  flex-direction: column;
}

.t-detail-item span:first-child {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.t-detail-item span:last-child {
  font-weight: 600;
  color: #fff;
}

.t-footer {
  padding: 0 25px 25px;
}

/* Tabbed Content (Ratings) */
.tabs-navigation {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
}

.tab-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 500;
  padding: 15px 30px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.tab-link:hover {
  color: #fff;
}

.tab-link.active {
  color: var(--gold-primary);
  font-weight: 600;
}

.tab-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-primary);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* Beautiful Leaderboard Table */
.rating-table-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow-x: auto;
  box-shadow: var(--shadow-card);
  margin-bottom: 40px;
}

.rating-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.rating-table th,
.rating-table td {
  padding: 18px 24px;
}

.rating-table th {
  background: rgba(13, 13, 17, 0.6);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.rating-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.rating-table tbody tr:last-child {
  border-bottom: none;
}

.rating-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.02);
}

/* Highlight top 18 row gold */
.top-18-row {
  position: relative;
}

.top-18-row td {
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.top-18-row:hover td {
  background: rgba(212, 175, 55, 0.05);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
}

.top-18-row .rank-badge {
  background: var(--gold-gradient);
  color: #000;
  border: none;
  box-shadow: var(--shadow-gold);
}

.top-18-badge {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.gallery-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(6, 6, 8, 0.9) 0%, rgba(6, 6, 8, 0.2) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.gallery-cat {
  color: var(--gold-primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.show {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: transparent;
  border: none;
}

.lightbox-caption {
  color: var(--text-muted);
  text-align: center;
  margin-top: 15px;
  font-size: 1.1rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  padding: 10px;
}

.lightbox-nav:hover {
  color: var(--gold-primary);
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

/* Contact Info Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 60px;
}

.contact-info-list {
  list-style: none;
  margin-top: 30px;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.contact-info-list i {
  font-size: 1.4rem;
  color: var(--gold-primary);
  margin-right: 20px;
  margin-top: 4px;
}

.contact-info-list h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

/* Forms & Booking UI */
.form-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 12px 16px;
  color: #fff;
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.15);
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 4px;
  accent-color: var(--gold-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.checkbox-group a {
  color: var(--gold-primary);
}

/* Alerts System */
.alert {
  padding: 15px 20px;
  border-radius: 4px;
  font-size: 0.95rem;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.alert-success {
  background: rgba(46, 117, 89, 0.15);
  color: #3ebd93;
  border: 1px solid #3ebd93;
}

.alert-danger {
  background: rgba(128, 0, 32, 0.15);
  color: #e25c80;
  border: 1px solid var(--crimson-primary);
}

.alert-warning {
  background: rgba(181, 102, 29, 0.15);
  color: #e28743;
  border: 1px solid #e28743;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

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

/* ==========================================================================
   7. ADMIN CRM WRAPPER (LOGIN, BACKEND SIDEBAR, TABLES, FORMS)
   ========================================================================== */
.admin-body {
  background-color: #08080a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Admin Login Screen */
.login-wrapper {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  padding: 40px;
}

.login-logo {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo i {
  font-size: 3rem;
  color: var(--gold-primary);
  margin-bottom: 15px;
}

/* Admin Dashboard layout */
.admin-topbar {
  height: 70px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.topbar-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 25px;
}

.btn-logout {
  color: var(--text-muted);
  font-weight: 500;
}

.btn-logout:hover {
  color: #e25c80;
}

.admin-layout {
  display: flex;
  margin-top: 70px;
  min-height: calc(100vh - 70px);
}

.admin-sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  position: fixed;
  left: 0;
  top: 70px;
  height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  z-index: 90;
}

.sidebar-nav {
  padding: 25px 0;
  flex-grow: 1;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 25px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  border-left: 3px solid transparent;
}

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

.sidebar-nav li.active a {
  border-left-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.03);
}

.sidebar-footer {
  padding: 20px 25px;
  border-top: 1px solid var(--border-color);
}

.badge-new-count {
  background: var(--crimson-primary);
  color: #fff;
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-left: auto;
}

/* Admin Main Workspace */
.admin-main-content {
  flex-grow: 1;
  margin-left: 260px;
  padding: 30px;
  background: var(--bg-primary);
  overflow-y: auto;
}

/* CRM Metrics Row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.metric-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 25px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-info h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
  font-family: 'Outfit', sans-serif;
}

.metric-val {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.metric-icon {
  font-size: 2.2rem;
  color: var(--gold-primary);
  opacity: 0.7;
}

/* Admin Dashboard Table Panels */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  margin-bottom: 40px;
}

.admin-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 25px;
  margin-bottom: 30px;
}

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

.panel-title {
  font-size: 1.25rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

/* Admin Table Layouts */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.1);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

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

.btn-action {
  padding: 6px 10px;
  font-size: 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-edit { background: rgba(212, 175, 55, 0.1); color: var(--gold-primary); }
.btn-edit:hover { background: var(--gold-primary); color: #000; }

.btn-delete { background: rgba(128, 0, 32, 0.1); color: #e25c80; }
.btn-delete:hover { background: var(--crimson-primary); color: #fff; }

.btn-view { background: rgba(255, 255, 255, 0.05); color: #fff; }
.btn-view:hover { background: rgba(255, 255, 255, 0.15); }

/* Search & Filters in admin */
.admin-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.admin-search-form {
  display: flex;
  gap: 10px;
  flex-grow: 1;
  max-width: 500px;
}

.admin-filters {
  display: flex;
  gap: 10px;
}

/* Image manager grid */
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.admin-gallery-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.admin-gallery-preview {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

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

.admin-gallery-details {
  padding: 15px;
}

.admin-gallery-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-gallery-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

/* ==========================================================================
   8. FOOTER STYLING
   ========================================================================== */
.main-footer-area {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold-primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  color: var(--text-muted);
}

.footer-col ul a:hover {
  color: var(--gold-primary);
  padding-left: 5px;
}

.footer-col p {
  color: var(--text-muted);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.footer-col i {
  color: var(--gold-primary);
  margin-right: 10px;
}

.legal-badge-container {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.badge-18 {
  border: 1px solid var(--crimson-primary);
  background: rgba(128, 0, 32, 0.15);
  color: #fff;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-offline {
  border: 1px solid var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
  color: var(--gold-primary);
  font-size: 0.85rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.warning-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

/* ==========================================================================
   9. RESPONSIVE DESIGN MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 900px) {
  .admin-sidebar {
    width: 70px;
  }
  
  .admin-sidebar .sidebar-nav span,
  .admin-sidebar .sidebar-nav li a::after,
  .admin-sidebar .sidebar-footer {
    display: none;
  }
  
  .admin-sidebar .sidebar-nav li a {
    justify-content: center;
    padding: 15px 0;
  }
  
  .admin-sidebar .sidebar-nav li a i {
    font-size: 1.3rem;
  }
  
  .admin-main-content {
    margin-left: 70px;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .desktop-nav,
  .btn-header {
    display: none;
  }
  
  .hero-section h1 {
    font-size: 2.6rem;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .filter-container {
    flex-wrap: wrap;
  }
  
  .tab-link {
    font-size: 1rem;
    padding: 12px 18px;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .form-card {
    padding: 25px;
  }
}
