/* Global Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: #eef1f6;
  color: #1e293b;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

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

/* Color Variables */
:root {
  --primary-red: #e11d48;     /* Crimson Red */
  --primary-red-hover: #be123c;
  --bg-light-red: #fff1f2;
  --bg-border-red: #fecdd3;
  --white: #ffffff;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2ebf0;
  --slate-400: #94a3b8;
  --slate-800: #1e293b;
  --emerald-500: #10b981;
  --emerald-900: #064e3b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.02);
  --shadow-lg: 0 10px 25px -5px rgba(225, 29, 72, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

/* Base Helpers */
.hidden {
  display: none !important;
}
.text-red {
  color: var(--primary-red);
}
.font-black {
  font-weight: 900;
}

/* Tailwind-like Utility Classes used in app.js */
.flex {
  display: flex !important;
}
.flex-col {
  flex-direction: column !important;
}
.items-center {
  align-items: center !important;
}
.justify-center {
  justify-content: center !important;
}
.gap-2 {
  gap: 8px !important;
}
.w-full {
  width: 100% !important;
}
.text-center {
  text-align: center !important;
}
.text-xs {
  font-size: 12px !important;
}
.text-\[10px\] {
  font-size: 10px !important;
}
.text-gray-400 {
  color: var(--slate-400) !important;
}
.text-gray-500 {
  color: #64748b !important;
}
.text-emerald-800 {
  color: var(--emerald-900) !important;
}
.font-bold {
  font-weight: 700 !important;
}
.font-semibold {
  font-weight: 600 !important;
}
.font-black {
  font-weight: 900 !important;
}
.uppercase {
  text-transform: uppercase !important;
}
.tracking-wider {
  letter-spacing: 0.05em !important;
}
.mt-1 {
  margin-top: 4px !important;
}
.mt-2 {
  margin-top: 8px !important;
}
.mt-3 {
  margin-top: 12px !important;
}
.p-4 {
  padding: 16px !important;
}
.mb-3 {
  margin-bottom: 12px !important;
}

/* Header & Navigation Bar */
.main-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(225, 29, 72, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-logo-img {
  width: 52px;
  height: 52px;
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 2px 4px rgba(225, 29, 72, 0.2));
}

.logo:hover .nav-logo-img {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 8px rgba(225, 29, 72, 0.35));
}

.logo-text h2 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1;
  color: var(--primary-red);
}

.logo-text span {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary-red);
  display: block;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.mobile-nav-menu {
  display: none !important;
}

.nav-link {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--slate-400);
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-red);
  background: var(--bg-light-red);
}

/* Auth-Required Nav Links (hidden when user is not logged in) */
.nav-link.auth-required.auth-hidden {
  display: none !important;
}

/* User Badge Header */
.user-badge-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--slate-100);
  padding: 6px 12px 6px 6px;
  border-radius: 20px;
  border: 1px solid var(--slate-200);
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-badge-header:hover {
  border-color: var(--bg-border-red);
  background: var(--bg-light-red);
}

.user-badge-header img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.user-badge-header span {
  font-size: 12px;
  font-weight: 850;
  color: var(--slate-800);
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Form Styling & Touch compliance */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--slate-400);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.label-hint {
  font-size: 8px;
  font-weight: 850;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: var(--bg-light-red);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--bg-border-red);
  display: inline-flex;
}

input::placeholder {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--slate-400) !important;
  opacity: 0.75 !important;
}

.form-group input, .form-group select, .form-group textarea, .form-textarea {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-800);
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 12px 16px;
  width: 100%;
  min-height: 44px;
  outline: none;
  transition: all 0.2s ease;
}

.form-group textarea, .form-textarea {
  min-height: 80px;
  resize: vertical;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus, .form-textarea:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.08);
}

#match-city,
#match-district {
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  min-height: 48px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Registration specific responsive grid */
.register-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.reg-full-width {
  grid-column: 1 / -1;
}

/* Buttons */
.btn-primary {
  background: var(--primary-red);
  color: var(--white);
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 28px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.18);
}

.btn-primary:hover {
  background: var(--primary-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-touch {
  min-height: 44px;
  min-width: 44px;
}

/* Page Layout Wrapper */
.main-content {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
  flex: 1;
}

.screen-section {
  animation: fadeIn 0.35s ease;
}

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

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, var(--primary-red) 0%, #b91c1c 100%);
  border-radius: 24px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.banner-text h1 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
}

.banner-text p {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.9;
  max-width: 440px;
  margin-top: 8px;
}

.banner-logo-img {
  width: 48px;
  height: auto;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
  opacity: 0.2;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease, opacity 0.3s ease;
}

.page-banner:hover .banner-logo-img {
  transform: scale(1.1) rotate(6deg);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
  opacity: 0.4;
}

/* Banner Title Row & Inline Logo */
.banner-title-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.banner-title-container h1,
.banner-title-container h2 {
  font-size: 32px;
  font-weight: 900;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
}

.banner-title-logo {
  display: block; /* Show next to title in slides */
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  flex-shrink: 0;
}

/* Slider Banner styles */
.slider-banner {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 24px;
  border-radius: 28px;
  background: var(--slate-800);
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
}

.banner-slides {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
}

.banner-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Slide 1 - with stats/alerts aligned to top */
.banner-slide:first-child {
  justify-content: flex-start;
  padding: 32px 24px 48px 24px;
}

/* Slide 2 & 3 - centered text */
.banner-slide:not(:first-child) {
  justify-content: center;
  padding: 32px 24px 48px 24px;
}

.slide-content {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  transition-delay: 0.2s;
}

.banner-slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
}

.slide-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.btn-banner-cta {
  padding: 10px 24px;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

/* Banner Dynamic Widgets Styles */
.banner-widget-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 680px;
  margin: 6px 0;
  flex-wrap: wrap;
}

.banner-widget-card {
  flex: 1 1 180px;
  max-width: 210px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-align: left;
}

.banner-widget-card:hover {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(225, 29, 72, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.banner-widget-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.banner-widget-img.circle {
  border-radius: 50%;
}

.banner-widget-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex-grow: 1;
}

.banner-widget-title {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.banner-widget-meta {
  font-size: 9px;
  font-weight: 500;
  color: var(--slate-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner-widget-badge {
  font-size: 8px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(225, 29, 72, 0.15);
  color: var(--primary-red);
  align-self: flex-start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

@media (max-width: 640px) {
  .banner-widget-container {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin: 4px auto;
    width: 100%;
    max-width: 290px;
    padding: 0;
  }
  .banner-widget-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 10px;
    gap: 8px;
  }
  .banner-widget-img {
    width: 28px;
    height: 28px;
  }
  .banner-widget-title {
    font-size: 10px;
  }
  .banner-widget-meta {
    font-size: 8px;
  }
  .banner-widget-badge {
    font-size: 7.5px;
    padding: 0.5px 3px;
  }
}

.slider-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dots .dot.active {
  background: var(--primary-red);
  width: 24px;
  border-radius: 4px;
}

.slide-content .banner-stats-container {
  position: relative;
  z-index: 5;
  width: 100%;
  margin-top: 16px;
}

.slide-content .banner-auth-alert {
  position: relative;
  z-index: 5;
  margin-top: 12px;
  margin-bottom: 20px; /* Safe gap from dots at the bottom */
  width: 100%;
}

/* Home Page Banner Statistics Cards */
.banner-stats-container {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.banner-stat-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 calc(25% - 12px);
  min-width: 135px;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s ease, box-shadow 0.3s ease;
}

.banner-stat-item:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.banner-stat-item .stat-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--white);
  flex-shrink: 0;
}

.banner-stat-item .stat-info-wrapper {
  display: flex;
  flex-direction: column;
}

.banner-stat-item .stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.banner-stat-item .stat-lbl {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
  color: rgba(255, 255, 255, 0.9);
}

/* Visitor Banner Auth Alert Box */
.banner-auth-alert {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 12px 16px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 500px;
  line-height: 1.45;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.banner-auth-alert i {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.banner-auth-alert a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.banner-auth-alert a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.banner-auth-alert.hidden {
  display: none !important;
}

/* Mobile responsive adjustments for stats */
@media (max-width: 768px) {
  .banner-title-logo {
    display: block; /* Show inline on mobile */
  }
  .banner-img {
    display: none; /* Hide right logo on mobile */
  }
  .banner-stats-container {
    gap: 8px;
    margin-top: 12px;
  }
  .banner-stat-item {
    padding: 6px 10px;
    gap: 6px;
    min-width: 90px;
    border-radius: 12px;
    flex: 1 1 calc(33.333% - 6px);
  }
  .banner-stat-item .stat-icon-wrapper {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .banner-stat-item .stat-num {
    font-size: 14px;
  }
  .banner-stat-item .stat-lbl {
    font-size: 8px;
  }
  .banner-auth-alert {
    margin-top: 12px;
    padding: 8px 12px;
    font-size: 11px;
    border-radius: 12px;
    gap: 8px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .banner-stat-item {
    flex: 1 1 calc(50% - 4px);
  }
}

/* Auth Cards */
.auth-card {
  max-width: 660px;
  margin: 40px auto;
  background: var(--white);
  border-radius: 28px;
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--slate-200);
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--slate-400);
  padding-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.active {
  color: var(--primary-red);
  border-bottom: 2px solid var(--primary-red);
}

.alert-msg {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
  background: #fef2f2;
  border: 1px solid #fecdd3;
  color: #991b1b;
}

/* File Upload Custom Badge */
.file-upload-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

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

.file-upload-btn {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--slate-800);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-upload-btn:hover {
  background: var(--bg-light-red);
  border-color: var(--bg-border-red);
  color: var(--primary-red);
}

.hidden-preview {
  display: none;
}

.show-preview {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-red);
}

/* Filters Panel Container Card */
.filters-panel {
  background: var(--white);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-sm);
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filters-header {
  margin-bottom: 2px;
}

.filters-header span {
  font-weight: 600;
  color: var(--slate-800);
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filters-header span i {
  color: var(--primary-red);
}

.filters-header p {
  font-size: 12.5px;
  color: var(--slate-500);
  margin: 4px 0 0 0;
  line-height: 1.4;
}

/* Internal Grid for Select Dropdowns */
.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.search-box {
  position: relative;
}

.search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
  font-size: 13px;
}

.search-box input {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 12px 12px 38px;
  border-radius: 14px;
  border: 1px solid var(--slate-200);
  width: 100%;
  min-height: 44px;
  outline: none;
  background: var(--slate-50);
}

.search-box input:focus {
  border-color: var(--primary-red);
  background: var(--white);
}

.select-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.select-box select {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 12px 20px 12px 38px;
  border-radius: 14px;
  border: 1px solid var(--slate-200);
  width: 100%;
  min-height: 48px;
  outline: none;
  background: var(--slate-50);
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--slate-800);
  appearance: none; /* remove default browser arrow if we want, or keep it */
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Custom indicator arrow for clean design */
.select-box::after {
  content: '\f078'; /* FontAwesome angle-down */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 16px;
  color: var(--slate-400);
  font-size: 11px;
  pointer-events: none;
}

.select-box select:focus {
  border-color: var(--primary-red);
  background: var(--white);
}

.select-box .select-icon {
  position: absolute;
  left: 14px;
  color: var(--slate-400);
  font-size: 13px;
  pointer-events: none;
  transition: color 0.2s ease;
}

.select-box select:focus ~ .select-icon {
  color: var(--primary-red);
}

/* Matches List Helper Banner */
.matches-list-info {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 4px 0;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--slate-500);
  font-weight: 500;
}

.matches-list-info i {
  color: var(--primary-red);
  font-size: 13px;
  flex-shrink: 0;
}

/* Matches Grid */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.match-card {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--slate-200);
  border-top: 4px solid var(--primary-red); /* Premium red top strip */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
  padding: 22px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.match-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-red);
  box-shadow: 0 20px 25px -5px rgba(225, 29, 72, 0.08), 0 10px 10px -5px rgba(225, 29, 72, 0.03);
}

.card-image-wrapper {
  position: relative;
  height: 140px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 14px;
  background-color: var(--slate-100);
}

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

.match-card:hover .card-image-wrapper img {
  transform: scale(1.06);
}

.card-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

.card-image-overlay .location-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(239, 246, 255, 0.95) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.card-image-overlay .missing-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(254, 242, 242, 0.9) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(225, 29, 72, 0.15);
}

.location-tag {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.15);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.missing-badge {
  background: #fef2f2;
  color: var(--primary-red);
  border: 1px solid var(--bg-border-red);
  font-size: 12px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.match-card-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.match-card-mobile-right {
  display: none !important;
}

.match-card h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--slate-800);
  line-height: 1.3;
  margin-bottom: 10px;
}

.match-meta-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid var(--slate-100);
  padding-top: 14px;
  font-size: 13.5px;
  color: var(--slate-800);
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.meta-row i {
  color: var(--slate-400);
  width: 14px;
}

/* Creator Profile Footer in Card */
.card-creator-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  border-top: 1px dashed var(--slate-200);
  padding-top: 14px;
}

.card-creator-footer img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.creator-name-box h5 {
  font-size: 13px;
  font-weight: 800;
  color: var(--slate-800);
  line-height: 1;
}

.creator-name-box span {
  font-size: 9px;
  font-weight: 700;
  color: var(--slate-400);
}

/* Match Details Screen */
.details-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.details-header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.details-main-header {
  text-align: center;
  margin-bottom: 24px;
}

.details-main-header h1 {
  font-size: 32px;
  font-weight: 900;
  color: var(--slate-900);
  line-height: 1.2;
  margin-bottom: 8px;
}

.details-subtitle {
  font-size: 15px;
  color: var(--slate-500);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.details-layout-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  align-items: start;
  gap: 24px;
}

.details-main-card {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-md);
  padding: 24px;
  text-align: center;
}

.details-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 12px 0 24px 0;
}

.stat-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: 16px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  transition: all 0.2s ease;
}

.stat-box:hover {
  border-color: var(--bg-border-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  font-size: 20px;
  margin: 0;
  width: auto;
  text-align: center;
}

.stat-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-label {
  font-size: 9.5px;
  font-weight: 900;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--slate-800);
}

.details-section-block {
  border-top: 1px solid var(--slate-100);
  padding-top: 20px;
  margin-top: 20px;
  text-align: center;
}

.details-section-block h3 {
  font-size: 14.5px;
  font-weight: 900;
  color: var(--slate-800);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.details-section-block p {
  font-size: 15.5px;
  color: var(--slate-700);
  line-height: 1.6;
  text-align: center;
  white-space: pre-wrap;
  margin: 0;
}

.details-sidebar {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.details-sidebar-card {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.sidebar-owner-title {
  font-size: 14.5px;
  font-weight: 900;
  color: var(--slate-800);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-profile-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  border-bottom: 1px solid var(--slate-100);
  padding-bottom: 20px;
}

.profile-meta-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.profile-meta-left img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--slate-100);
  box-shadow: var(--shadow-sm);
}

.profile-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-text h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--slate-800);
  line-height: 1.2;
}

.profile-actions-right {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-icon-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.whatsapp-icon-btn {
  background: #25D366;
  color: var(--white);
}

.whatsapp-icon-btn:hover {
  background: #20ba5a;
  transform: scale(1.05);
}

.instagram-icon-btn {
  background: #f00778;
  color: var(--white);
}

.instagram-icon-btn:hover {
  background: #d00560;
  transform: scale(1.05);
}

/* Action buttons area */
.sidebar-action-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.sidebar-action-area button,
.sidebar-action-area a,
.sidebar-action-area .flex {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.sidebar-share-area {
  border-top: 1px solid var(--slate-100);
  padding-top: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Dashboard styles */
.dashboard-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.dashboard-box {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--slate-100);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  max-height: 500px;
  overflow-y: auto;
}

.dashboard-box.requests-box {
  background: var(--bg-light-red);
  border: 1px solid var(--bg-border-red);
  box-shadow: 0 4px 15px -3px rgba(225, 29, 72, 0.04);
}

.section-title {
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--slate-800);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-item {
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
}

.item-header h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--slate-800);
}

.item-header p {
  font-size: 11px;
  color: var(--slate-400);
  font-weight: 600;
}

.request-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.request-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.request-card-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.request-card-info img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.request-card-info h5 {
  font-size: 11px;
  font-weight: 800;
  color: var(--slate-800);
}

.request-actions {
  display: flex;
  gap: 6px;
}

.btn-icon {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  min-height: 44px;
  min-width: 44px;
}

.btn-icon.approve {
  color: var(--emerald-500);
  background: #ecfdf5;
}

.btn-icon.approve:hover {
  background: #d1fae5;
}

.btn-icon.reject {
  color: var(--primary-red);
  background: #fef2f2;
}

.btn-icon.reject:hover {
  background: #fee2e2;
}

/* Secondary Button */
.btn-secondary {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--slate-800);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
}

.btn-secondary:hover {
  background: var(--slate-200);
}

.badge-status {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}

.badge-status.pending {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.badge-status.approved {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.badge-status.rejected {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecdd3;
}

/* Profile page style */
.profile-card {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--slate-100);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  margin: 20px auto;
  transition: max-width 0.3s ease;
}

.profile-card.wide {
  max-width: 960px !important;
}

/* Profile Tabs Styling */
.profile-tabs {
  display: flex;
  width: 100%;
  border-bottom: 1px solid var(--slate-100);
  margin: 20px 0;
  gap: 8px;
}

.profile-tab {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--slate-400);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.profile-tab.active {
  color: var(--primary-red);
  border-bottom-color: var(--primary-red);
}

.profile-tab:hover {
  color: var(--slate-800);
}

.profile-tab.active:hover {
  color: var(--primary-red);
}

.profile-header-details {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--slate-100);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.profile-avatar-container {
  position: relative;
  width: 72px;
  height: 72px;
}

.profile-avatar-container img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-border-red);
}

.avatar-edit-badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  background: var(--primary-red);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.profile-info-text h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--slate-800);
}

.badge-role {
  font-size: 10px;
  font-weight: 850;
  background: var(--bg-light-red);
  color: var(--primary-red);
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 4px;
  text-transform: uppercase;
}

/* ============================================
   PREMIUM SITE FOOTER
   ============================================ */
.site-footer {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: rgba(255, 255, 255, 0.7);
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

/* Subtle decorative gradient orb */
.site-footer::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

/* --- Column: Brand --- */
.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 8px rgba(225, 29, 72, 0.35));
  transition: transform 0.3s ease;
}

.footer-logo-img:hover {
  transform: scale(1.1) rotate(5deg);
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 1px;
  line-height: 1;
}

.footer-brand-tagline {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-red);
  display: block;
  margin-top: 3px;
}

.footer-about-text {
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  max-width: 320px;
}

/* Social Icons */
.footer-social-icons {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.social-icon-link {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--white);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.social-icon-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.si-instagram:hover {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
}

.si-x:hover {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.2);
}

.si-tiktok:hover {
  background: #010101;
  border-color: #69c9d0;
  box-shadow: 0 0 12px rgba(105, 201, 208, 0.3);
}

.si-youtube:hover {
  background: #ff0000;
  border-color: transparent;
}

/* --- Column Titles & Links --- */
.footer-col-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2.5px;
  background: var(--primary-red);
  border-radius: 2px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list li a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links-list li a i {
  font-size: 11px;
  width: 14px;
  text-align: center;
  color: rgba(225, 29, 72, 0.6);
  transition: color 0.2s ease;
}

.footer-links-list li a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-links-list li a:hover i {
  color: var(--primary-red);
}

/* --- Column: Contact Form --- */
.footer-contact-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
  line-height: 1.5;
}

.footer-contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-form input,
.footer-contact-form textarea {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}

.footer-contact-form input::placeholder,
.footer-contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.3) !important;
  font-weight: 400 !important;
  font-size: 12px !important;
}

.footer-contact-form input:focus,
.footer-contact-form textarea:focus {
  border-color: rgba(225, 29, 72, 0.5);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.08);
}

.footer-contact-form textarea {
  resize: vertical;
  min-height: 70px;
}

.btn-footer-send {
  background: var(--primary-red);
  color: var(--white);
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
  min-height: 44px;
}

.btn-footer-send:hover {
  background: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.3);
}

.btn-footer-send:active {
  transform: translateY(0);
}

.btn-footer-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.footer-contact-status {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  margin-top: 6px;
  text-align: center;
}

.footer-contact-status.success {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.footer-contact-status.error {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- Bottom Bar --- */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.footer-bottom strong {
  color: var(--primary-red);
  font-weight: 800;
}

/* --- Footer Responsive --- */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 20px 24px;
  }

  .footer-about-text {
    max-width: 100%;
  }

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

.form-card {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--slate-100);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  margin: 20px auto;
}

.create-match-card {
  max-width: 780px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--slate-100);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.header-icon {
  font-size: 24px;
  color: var(--primary-red);
}

.card-header h3 {
  font-size: 15px;
  font-weight: 900;
  color: var(--slate-800);
  text-transform: uppercase;
}

.card-header p {
  font-size: 11px;
  color: var(--slate-400);
  font-weight: 600;
  margin-top: 2px;
}

.max-w-lg {
  max-width: 520px;
}

.max-w-md {
  max-width: 440px;
}

/* No matches display style */
.no-matches-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  background: var(--white);
  border-radius: 24px;
  border: 1px dashed var(--slate-200);
  color: var(--slate-400);
  font-size: 13px;
  font-weight: 700;
}

/* ==========================================================================
   MEDIA QUERIES (FULL RESPONSIVE SYSTEM)
   ========================================================================== */

/* Tablet & Mobile Layout Shifts */
@media (max-width: 768px) {
  .view-toggle-bar {
    justify-content: center !important;
    margin-bottom: 12px;
  }

  body {
    padding-bottom: 0;
  }

  .site-footer {
    padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
  }

  .main-header {
    padding: 12px 16px;
  }
  
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }

  .desktop-nav-menu {
    display: none !important;
  }

  /* Oval Floating Bottom Navigation Bar */
  .mobile-nav-menu {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(225, 29, 72, 0.1);
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    margin: 0;
    border-radius: 24px;
    box-shadow:
      0 4px 24px rgba(0, 0, 0, 0.08),
      0 1px 4px rgba(225, 29, 72, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
    gap: 2px;
  }

  .nav-link {
    flex: 1;
    flex-direction: column;
    font-size: 9px;
    font-weight: 700;
    padding: 6px 2px;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    min-height: 44px;
    gap: 3px;
    background: transparent;
    border: none;
    color: var(--slate-400);
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.25s ease;
    position: relative;
    white-space: nowrap;
  }

  .desktop-only {
    display: none !important;
  }

  .nav-link i {
    font-size: 17px;
    transition: transform 0.25s ease;
  }

  .nav-link:hover, .nav-link.active {
    background: rgba(225, 29, 72, 0.08);
    color: var(--primary-red);
  }

  .nav-link.active i {
    transform: scale(1.15);
  }

  .slider-banner {
    min-height: 440px !important;
    padding: 16px !important;
    border-radius: 20px !important;
    margin-bottom: 16px !important;
  }

  .banner-slide:first-child {
    padding: 24px 12px 36px 12px !important;
    justify-content: flex-start !important;
  }

  .banner-slide:not(:first-child) {
    padding: 24px 12px 36px 12px !important;
    justify-content: center !important;
  }

  .slide-content h1,
  .slide-content h2 {
    font-size: 22px !important;
  }

  .slide-desc {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
  }

  .btn-banner-cta {
    padding: 8px 16px !important;
    font-size: 12.5px !important;
  }

  .slider-dots {
    bottom: 16px !important;
  }

  /* Compact Horizontal Rectangular Matches Layout on Mobile */
  .matches-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Force single-column on mobile to prevent overflow on narrow screens */
  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Compact grid layout for players on mobile to fit multiple cards */
  .players-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)) !important;
    gap: 12px !important;
  }

  .match-card {
    position: relative !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 12px 105px 12px 12px !important;
    border-radius: 16px !important;
    gap: 12px !important;
    min-height: auto !important;
    border-top: 1px solid var(--slate-200) !important;
    border-left: 4px solid var(--primary-red) !important;
    border-top-width: 1px !important;
    box-shadow: var(--shadow-sm) !important;
  }

  .match-card .card-image-wrapper {
    width: 75px !important;
    height: 75px !important;
    border-radius: 10px !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
  }

  .match-card .card-image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .match-card .card-image-overlay {
    display: none !important;
  }

  .match-card-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    flex-grow: 1 !important;
    min-width: 0 !important;
  }

  .match-card h3 {
    font-size: 14px !important;
    margin-bottom: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
  }

  .match-card .match-card-desc {
    display: none !important;
  }

  .match-card .match-meta-info {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    font-size: 11px !important;
    color: var(--slate-500) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
  }

  .match-card .meta-row {
    font-weight: 500 !important;
    gap: 5px !important;
  }

  .match-card .meta-row i {
    font-size: 11px !important;
    width: 12px !important;
  }

  .match-card .card-creator-footer {
    display: none !important;
  }

  .match-card-mobile-right {
    position: absolute !important;
    top: 12px !important;
    bottom: 12px !important;
    right: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    margin: 0 !important;
    pointer-events: none !important;
    z-index: 2;
  }

  .match-card-mobile-right .location-tag {
    font-size: 9px !important;
    padding: 3px 6px !important;
    border-radius: 6px !important;
    max-width: 140px !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid rgba(59, 130, 246, 0.15) !important;
  }

  .match-card-mobile-right .missing-badge {
    font-size: 9.5px !important;
    padding: 3px 6px !important;
    border-radius: 6px !important;
    font-weight: 800 !important;
    background: #fef2f2 !important;
    color: var(--primary-red) !important;
    border: 1px solid var(--bg-border-red) !important;
  }

  .pitch-icon-large {
    font-size: 60px;
  }

  .filters-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
    gap: 8px !important;
  }

  .dashboard-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Prevent automatic mobile zoom by setting font-size to min 16px */
  .form-group input,
  .form-group select,
  .form-group textarea,
  .form-textarea,
  .search-box input,
  .select-box select,
  .footer-contact-form input,
  .footer-contact-form textarea {
    font-size: 16px !important;
  }

  /* Specific city/district filter selects font size and weight overrides on mobile (with icons) */
  #filter-city,
  #filter-district,
  #opponent-filter-city,
  #opponent-filter-district {
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 10px 20px 10px 38px !important; /* space for icon on mobile */
    min-height: 42px !important;
    border-radius: 12px !important;
  }

  /* Player filter dropdowns (3 columns on mobile needs to be more compact to fit text) */
  #player-filter-city,
  #player-filter-district,
  #player-filter-position {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    padding: 10px 12px 10px 26px !important; /* compact padding */
    min-height: 42px !important;
    border-radius: 12px !important;
  }

  /* Reposition select-icons inside player filter dropdowns on mobile */
  #player-filter-city ~ .select-icon,
  #player-filter-district ~ .select-icon,
  #player-filter-position ~ .select-icon {
    left: 8px !important;
    font-size: 11px !important;
  }

  /* Form dropdowns without icons inside */
  #match-city,
  #match-district {
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 10px 20px 10px 12px !important;
    min-height: 42px !important;
    border-radius: 12px !important;
  }

  /* Details responsive grid */
  .details-layout-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch !important;
  }

  .details-left-column {
    width: 100% !important;
    display: flex;
    flex-direction: column;
    gap: 16px !important;
  }

  .details-main-card {
    padding: 16px !important;
    border-radius: 20px !important;
    width: 100% !important;
  }

  .details-comments-card,
  .details-sidebar-card {
    padding: 16px !important;
    border-radius: 20px !important;
    border: 1px solid var(--slate-100) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .details-comments-card {
    background: var(--slate-50) !important;
    border: 1px solid var(--slate-200) !important;
  }
  
  .details-stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin: 12px 0 !important;
  }

  .stat-box {
    padding: 8px 6px !important;
    gap: 6px !important;
    flex-direction: column !important;
    text-align: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
  }

  .stat-box i {
    font-size: 14px !important;
    margin: 0 !important;
    width: auto !important;
  }

  .stat-text {
    align-items: center !important;
    gap: 1px !important;
  }

  .stat-label {
    font-size: 7.5px !important;
  }

  .stat-value {
    font-size: 10px !important;
  }

  .details-section-block {
    padding-top: 12px !important;
    margin-top: 12px !important;
  }

  .details-section-block h3 {
    font-size: 10px !important;
    margin-bottom: 4px !important;
  }

  .details-section-block p {
    font-size: 11.5px !important;
    line-height: 1.4 !important;
  }

  #details-map {
    height: 180px !important;
    border-radius: 12px !important;
    margin-top: 8px !important;
  }

  #matches-map {
    height: 320px !important;
  }
}

/* Small Mobile Devices */
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0px;
  }
  
  .contact-buttons-row {
    grid-template-columns: 1fr;
  }

  .auth-card, .form-card, .profile-card {
    padding: 16px;
    border-radius: 20px;
  }

  .modal-backdrop {
    align-items: flex-start;
    padding: calc(32px + env(safe-area-inset-top)) 12px 24px 12px;
  }

  .modal-content {
    padding: 16px;
    border-radius: 20px;
    margin: 0 auto;
    max-height: none;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  .modal-header {
    padding-right: 32px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .modal-header h3 {
    font-size: 16px;
  }

  .features-checkbox-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .logo-text h2 {
    font-size: 16px;
  }
}

/* Super Small screens (iPhone SE mini series) */
@media (max-width: 380px) {
  .logo-text span {
    display: none; /* Hide subtitle for extra room */
  }
}

/* Custom Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--white);
  color: var(--slate-800);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 12px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 90vw;
  font-size: 13px;
  font-weight: 700;
  pointer-events: auto;
  animation: toastSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), toastFadeOut 0.3s ease forwards;
  animation-delay: 0s, 3.2s;
}

@keyframes toastSlideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

.toast.success {
  border-left: 4px solid var(--emerald-500);
}
.toast.success i {
  color: var(--emerald-500);
  font-size: 16px;
}

.toast.error {
  border-left: 4px solid var(--primary-red);
}
.toast.error i {
  color: var(--primary-red);
  font-size: 16px;
}

.toast.info {
  border-left: 4px solid var(--slate-400);
}
.toast.info i {
  color: var(--slate-400);
  font-size: 16px;
}

/* Matches Screen View Toggle Bar */
.view-toggle-bar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 6px;
}

.toggle-btn {
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-800);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
}

.toggle-btn:hover {
  background: var(--slate-50);
}

.toggle-btn.active {
  background: var(--bg-light-red);
  color: var(--primary-red);
  border-color: var(--bg-border-red);
}

/* Map Container Layout */
#matches-map-container {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: 24px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

#matches-map {
  height: 480px;
  border-radius: 18px;
  z-index: 1; /* Under header dropdowns/modals */
}

/* Leaflet UI Customizations matching Outfit & Red Palette */
.leaflet-container {
  font-family: 'Outfit', sans-serif !important;
}

.leaflet-popup-content-wrapper {
  border-radius: 16px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
  padding: 4px !important;
  border: 1px solid var(--slate-100);
}

.leaflet-popup-content {
  margin: 12px 14px !important;
  line-height: 1.4 !important;
}

.leaflet-popup-tip {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

/* Interactive Match Location Picker Map */
#picker-map-group {
  margin-top: 16px;
}

#picker-map {
  height: 220px;
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  margin-top: 6px;
  z-index: 1; /* Keep map layers below dropdowns/overlays */
}

/* --- Oyuncu Transfer Pazarı (Free Agent Player Market) --- */

/* Responsive Grid for Players */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 40px;
}

/* Player FUT Container */
.player-fut-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.18);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background-image: url('images/cover_stadium_aerial.webp');
  background-size: cover;
  background-position: center;
  padding: 0;
}

/* Dark overlay over the full card background */
.player-fut-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,0.52) 0%,
    rgba(0,0,0,0.68) 100%
  );
  z-index: 0;
  border-radius: 20px;
}

.player-fut-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

/* FUT card and notes sit above the overlay */
.player-fut-container .fut-card,
.player-fut-container .player-notes-box {
  position: relative;
  z-index: 1;
}

.player-fut-container .fut-card {
  margin-top: 12px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.45));
}

/* Notes section below the card */
.player-fut-container .player-notes-box {
  width: 100%;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
  gap: 6px;
}

.player-fut-container .player-notes-box .player-location {
  color: rgba(255,255,255,0.95) !important;
}

.player-fut-container .player-notes-box .player-notes {
  color: rgba(255,255,255,0.85) !important;
}

.player-fut-container .player-notes-box .update-time {
  color: rgba(255,255,255,0.65) !important;
}

/* Image wrapper styles (kept for other potential uses) */
.player-card-image-wrapper {
  display: none;
}


/* FIFA FUT Card Shield styling */
.fut-card {
  position: relative;
  width: 145px;
  height: 210px;
  border-radius: 10px;
  color: #1e293b;
  font-family: 'Outfit', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px 8px 8px;
  box-sizing: border-box;
  clip-path: polygon(50% 0%, 100% 12%, 100% 75%, 50% 100%, 0% 75%, 0% 12%);
  user-select: none;
  transition: transform 0.2s ease;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  overflow: hidden;
}

/* Theme gradients (Altın, Gümüş, Bronz) with premium effects */
.fut-gold {
  background: linear-gradient(135deg, #ffe082 0%, #ffca28 35%, #ffb300 70%, #ff8f00 100%);
  border: 1.5px solid #ffca28;
  color: #3e2723;
  box-shadow: 0 0 12px rgba(255, 202, 40, 0.4);
}

.fut-silver {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 40%, #bdbdbd 75%, #9e9e9e 100%);
  border: 1.5px solid #e0e0e0;
  color: #212121;
  box-shadow: 0 0 12px rgba(224, 224, 224, 0.3);
}

.fut-bronze {
  background: linear-gradient(135deg, #d7ccc8 0%, #bcaaa4 40%, #8d6e63 75%, #5d4037 100%);
  border: 1.5px solid #bcaaa4;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(141, 110, 99, 0.2);
}

/* FUT Card Header Details */
.fut-card-top {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 3px;
  gap: 8px;
}

.fut-rating-position {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.fut-rating {
  font-size: 22px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -1px;
}

.fut-position {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.fut-avatar-wrapper {
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fut-avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Name section */
.fut-card-name {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  margin-top: 6px;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.self-agent-badge {
  background: var(--bg-light-red);
  color: var(--primary-red);
  font-size: 8px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  border: 1px solid var(--bg-border-red);
  letter-spacing: 0.5px;
}

.fut-card-name .self-agent-badge {
  font-size: 8px;
  vertical-align: middle;
  margin-left: 2px;
}

.fut-card-divider {
  width: 80%;
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
  margin: 6px 0;
}

.fut-bronze .fut-card-divider {
  background: rgba(255, 255, 255, 0.2);
}

/* FUT Stats Grid styling */
.fut-card-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 8px;
  row-gap: 2px;
  width: 90%;
  margin-top: 1px;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.fut-stat {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 3px;
}

.fut-stat span {
  font-weight: 900;
  font-size: 10px;
  width: 14px;
  display: inline-block;
  text-align: right;
}

/* BIO Notes Box underneath the shield */
.player-notes-box {
  width: 100%;
  border-top: 1px solid var(--slate-100);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.player-notes-box .player-location {
  font-size: 10px;
  font-weight: 700;
  color: var(--slate-400);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.player-notes-box .player-notes {
  font-size: 11px;
  color: var(--slate-700);
  line-height: 1.4;
  font-weight: 600;
  min-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.player-notes-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.player-notes-footer .update-time {
  font-size: 9px;
  color: var(--slate-400);
  font-weight: 700;
}

.player-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.player-fut-container .btn-icon-contact {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

/* Profile Form FUT Edit Inputs Styles */
.fut-stats-inputs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  padding: 16px;
  border-radius: 16px;
  margin-top: 10px;
}

.fut-stats-inputs-grid .form-group {
  margin-bottom: 0;
}

.fut-stats-inputs-grid label {
  font-size: 10px;
  font-weight: 800;
  color: var(--slate-500);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.fut-stats-inputs-grid input {
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.fut-stats-section h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--slate-800);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fut-stats-section .section-desc {
  font-size: 11px;
  color: var(--slate-400);
  margin-bottom: 12px;
  font-weight: 500;
}

/* Switch Toggle & Profile settings styles */
.profile-section-divider {
  height: 1px;
  background-color: var(--slate-100);
  margin: 24px 0;
}

.free-agent-card {
  background-color: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
}

.free-agent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.fa-title-group h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--slate-800);
  margin-bottom: 4px;
}

.fa-title-group p {
  font-size: 11px;
  color: var(--slate-400);
  font-weight: 500;
  line-height: 1.4;
}

/* iOS Toggle Switch Styles */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 34px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.switch-toggle input:checked + .switch-slider {
  background-color: var(--emerald-500);
}

.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(22px);
}

/* Profile Screen - Live FUT Card Preview */
.profile-fut-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 0 16px;
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
  margin-bottom: 4px;
}

.profile-fut-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-500);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
  align-self: flex-start;
}

#profile-fut-card-wrapper {
  display: flex;
  justify-content: center;
  transition: all 0.3s ease;
}

#profile-fut-card-wrapper .fut-card {
  transform: scale(1.2);
  margin: 25px 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

#profile-fut-card-wrapper .fut-card::before {
  opacity: 0.28;
}



/* Custom Modal System */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
  overflow-y: auto;
}

.modal-content {
  background: var(--white);
  border-radius: 24px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--slate-200);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--slate-100);
  position: relative;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--slate-800);
}

.modal-header p {
  font-size: 12px;
  color: var(--slate-400);
  margin-top: 2px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--slate-400);
  cursor: pointer;
  position: absolute;
  top: 0px;
  right: 0px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--primary-red);
  background: var(--bg-light-red);
}



@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* --- SEO BLOG MODULÜ STİLLERİ --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 40px;
}

.blog-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-100);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  animation: slideUp 0.4s ease forwards;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--bg-border-red);
}

.blog-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.blog-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary-red);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px rgba(225, 29, 72, 0.2);
}

.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--slate-400);
  margin-bottom: 12px;
}

.blog-card-meta i,
.blog-details-meta i {
  color: var(--primary-red);
  margin-right: 6px;
}

.blog-card-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--slate-800);
  margin-bottom: 12px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
  color: var(--primary-red);
}

.blog-card-excerpt {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.blog-card-link {
  color: var(--primary-red);
  font-weight: 700;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* Blog Details Okuma Sayfası */
.blog-details-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px;
  animation: fadeIn 0.4s ease forwards;
}

.blog-details-header {
  margin-top: 16px;
  margin-bottom: 28px;
}

.blog-details-title {
  font-size: 34px;
  font-weight: 900;
  color: var(--slate-800);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.blog-details-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--slate-400);
  background: var(--slate-50);
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--slate-100);
  width: fit-content;
}

.blog-details-img {
  width: 100%;
  height: 400px;
  border-radius: 24px;
  object-fit: cover;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-100);
}

.blog-details-body {
  font-size: 16.5px;
  color: #334155;
  line-height: 1.85;
}

.blog-details-body p {
  margin-bottom: 24px;
}

.blog-details-body h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--slate-800);
  margin-top: 40px;
  margin-bottom: 16px;
  border-left: 4px solid var(--primary-red);
  padding-left: 12px;
}

.blog-details-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-800);
  margin-top: 32px;
  margin-bottom: 12px;
}

.blog-details-body ul, .blog-details-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.blog-details-body li {
  margin-bottom: 10px;
}

.blog-details-cta {
  background: var(--bg-light-red);
  border: 1px solid var(--bg-border-red);
  padding: 32px 24px;
  border-radius: 24px;
  margin-top: 48px;
  margin-bottom: 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.blog-details-cta h4 {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary-red);
  margin-bottom: 8px;
}

.blog-details-cta p {
  font-size: 14.5px;
  color: #64748b;
  margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-details-title {
    font-size: 28px;
  }
  .blog-details-img {
    height: 250px;
    border-radius: 16px;
  }
  .blog-details-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }
}

/* ==========================================
   ADMIN PANEL STYLING
   ========================================== */



/* Admin Link Hide Rule */
.nav-link.admin-required.admin-hidden {
  display: none !important;
}

.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.admin-header-title {
  margin-bottom: 30px;
}

.admin-header-title h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-header-title h2 i {
  color: var(--primary-red);
}

.admin-header-title p {
  color: var(--slate-500);
  margin-top: 4px;
}

/* Stats Cards */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.admin-stat-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-100);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.admin-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.admin-stat-card .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.card-users .stat-icon { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.card-matches .stat-icon { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.card-blogs .stat-icon { background: rgba(225, 29, 72, 0.1); color: var(--primary-red); }

.admin-stat-card .stat-info h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0;
  line-height: 1.1;
}

.admin-stat-card .stat-info span {
  font-size: 13px;
  color: var(--slate-400);
  font-weight: 500;
}

/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid var(--slate-100);
  padding-bottom: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.admin-tab {
  background: transparent;
  border: none;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.admin-tab:hover {
  color: var(--primary-red);
  background: rgba(225, 29, 72, 0.05);
}

.admin-tab.active {
  color: white;
  background: var(--primary-red);
}

.panel-header-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.panel-header-action h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0;
}

.btn-small {
  width: auto;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.15);
  margin-left: 12px;
}

/* Admin Tables */
.admin-table-wrapper {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-100);
  overflow-x: auto;
}

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

.admin-table th {
  background: var(--slate-50);
  padding: 14px 20px;
  font-weight: 600;
  font-size: 14px;
  color: var(--slate-600);
  border-bottom: 1px solid var(--slate-100);
}

.admin-table td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--slate-700);
  border-bottom: 1px solid var(--slate-100);
  vertical-align: middle;
}

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

.admin-table tr:hover td {
  background: rgba(241, 245, 249, 0.3);
}

/* Table elements */
.admin-img-thumbnail {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--slate-100);
}

.admin-user-avatar {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--slate-200);
}

.admin-badge-role {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
}

.badge-admin {
  background: rgba(225, 29, 72, 0.1);
  color: var(--primary-red);
}

.badge-user {
  background: var(--slate-100);
  color: var(--slate-600);
}

/* Action Buttons */
.admin-actions {
  display: flex;
  gap: 8px;
}

.btn-action {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.btn-action-edit {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.btn-action-edit:hover {
  background: #3b82f6;
  color: white;
}

.btn-action-delete {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.btn-action-delete:hover {
  background: #ef4444;
  color: white;
}

/* Modal Overlay */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.admin-modal-overlay.hidden {
  display: none !important;
}

/* Modal Card */
.admin-modal-card {
  background: white;
  width: 90%;
  max-width: 650px;
  max-height: 90vh;
  border-radius: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--slate-100);
}

@keyframes modalScaleUp {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--slate-400);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--slate-800);
}

.blog-form-grid {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
  border-top: 1px solid var(--slate-100);
  padding-top: 20px;
}

/* Responsive Grid in Modal */
@media (max-width: 576px) {
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Premium Pagination Styling */
.pagination-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 32px 0 16px 0;
  padding: 0 16px;
  width: 100%;
}

.pagination-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-800);
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.pagination-btn:hover:not(:disabled):not(.active) {
  border-color: var(--primary-red);
  color: var(--primary-red);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.08);
}

.pagination-btn.active {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
  cursor: default;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background-color: var(--slate-100);
  border-color: var(--slate-200);
  box-shadow: none;
}

.pagination-info {
  font-size: 12.5px;
  color: var(--slate-400);
  font-weight: 500;
}

/* Password Input Wrapper & Toggle Button */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrapper input {
  padding-right: 40px !important;
  width: 100%;
}

.btn-toggle-password {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--slate-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  font-size: 14px;
  transition: color 0.2s ease;
}

.btn-toggle-password:hover {
  color: var(--primary-red);
}

/* Header Auth & Notification Bell */
.header-auth {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-bell-container {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-800);
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-bell-container:hover {
  background: var(--bg-light-red);
  border-color: var(--bg-border-red);
  color: var(--primary-red);
  transform: translateY(-1px);
}

.notification-bell-container i {
  font-size: 16px;
}

.bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary-red);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  border-radius: 10px;
  padding: 2px 6px;
  border: 2px solid var(--white);
  min-width: 18px;
  text-align: center;
}

/* Premium Empty State Designs */
.empty-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-sm);
  max-width: 500px;
  margin: 32px auto;
  grid-column: 1 / -1;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-light-red);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  animation: pulse-slow 3s infinite ease-in-out;
}

.empty-state-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--slate-800);
  margin-bottom: 8px;
}

.empty-state-card p {
  font-size: 13.5px;
  color: var(--slate-400);
  margin-bottom: 24px;
  line-height: 1.5;
}

.empty-state-card .btn-primary {
  padding: 10px 20px;
  font-size: 13.5px;
}

@keyframes pulse-slow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(225, 29, 72, 0);
  }
}

.quick-templates-wrapper {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-template-badge {
  background: #fef2f2;
  color: var(--primary-red);
  border: 1px solid var(--bg-border-red);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.quick-template-badge:hover {
  background: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
  transform: translateY(-1px);
}

/* Urgency Badges */
.urgency-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  animation: pulse-slow 2s infinite;
  color: var(--white);
  z-index: 2;
}

.urgency-badge.today-badge {
  background: var(--primary-red);
}

.urgency-badge.tomorrow-badge {
  background: #f59e0b; /* Amber */
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .match-card-mobile-right .urgency-badge {
    position: static;
    display: inline-flex;
    margin-top: 4px;
    box-shadow: none;
    padding: 2px 6px;
    font-size: 8.5px;
    border-radius: 6px;
  }
}

/* Desktop Font Scaling (min-width: 769px) */
@media (min-width: 769px) {
  /* Navigation */
  .logo-text h2 {
    font-size: 26px;
  }
  .logo-text span {
    font-size: 10px;
  }
  .nav-link {
    font-size: 13.5px;
  }

  /* Page Banner */
  .page-banner h1 {
    font-size: 34px;
  }
  .page-banner p {
    font-size: 15px;
  }
  .banner-stat-item .stat-num {
    font-size: 24px;
  }
  .banner-stat-item .stat-lbl {
    font-size: 12px;
  }

  /* Filters */
  .filters-header span {
    font-size: 16.5px;
  }
  .select-box select {
    font-size: 14.5px;
  }
  .search-box input {
    font-size: 15px;
  }

  /* Buttons & Badges */
  .btn-primary, .btn-secondary, .toggle-btn {
    font-size: 15px;
  }
  .location-tag {
    font-size: 12.5px;
  }

  /* Match, Opponent & Player Cards */
  .match-card h3, .opponent-card h3, .player-card-name {
    font-size: 20px;
  }
  .card-meta, .card-details, .player-card-role {
    font-size: 14.5px;
  }
  .card-desc {
    font-size: 14.5px;
  }

  /* Forms */
  .form-group label {
    font-size: 14.5px;
  }
  .form-group input, .form-group select, .form-group textarea {
    font-size: 15px;
  }

  /* Blog */
  .blog-card h3 {
    font-size: 21px;
  }
  .blog-card p {
    font-size: 15px;
  }
  .blog-details h1 {
    font-size: 36px;
  }
  .blog-details-content p, .blog-details-content li {
    font-size: 17.5px;
  }
}

/* =========================================================================
   LANDING PAGE STYLES (HOME /)
   ========================================================================= */
#home-landing-wrapper {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 36px;
  width: 100%;
}

.landing-section {
  width: 100%;
  padding: 16px 0;
}
.landing-section.dark-bg {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 24px;
  padding: 36px 24px;
  border: 1px solid var(--slate-200);
}

#latest-blogs-section {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2ebf0 100%);
  border-radius: 24px;
  padding: 36px 24px;
  border: 1px solid var(--slate-200);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.landing-section-header {
  text-align: center;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.landing-section-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--slate-800);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.landing-section-header p {
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.5;
}

/* Steps Grid */
.landing-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.landing-step-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--slate-200);
  border-top: 3px solid var(--primary-red);
  border-radius: 20px;
  padding: 28px 20px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.landing-step-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-red);
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.1);
}

.landing-step-card .step-num {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 28px;
  font-weight: 900;
  color: rgba(225, 29, 72, 0.12);
}

.landing-step-card .step-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-red) 0%, #ff4b72 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.2);
}

.landing-step-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 10px;
}

.landing-step-card p {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

/* Features Grid */
.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.landing-feature-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--slate-200);
  border-left: 3px solid transparent;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.landing-feature-card:hover {
  background: var(--white);
  border-color: var(--slate-200);
  border-left-color: var(--primary-red);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.06);
}

.landing-feature-card .feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(225, 29, 72, 0.05);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  border: 1px solid rgba(225, 29, 72, 0.1);
}

.landing-feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary-red) 0%, #ff4b72 100%);
  color: var(--white);
}

.landing-feature-card .feature-info {
  flex-grow: 1;
  min-width: 0;
}

.landing-feature-card .feature-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 4px;
}
.landing-feature-card .feature-info p {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
}

.landing-feature-card .feature-arrow {
  color: var(--slate-400);
  font-size: 14px;
  transition: transform 0.3s ease;
}

.landing-feature-card:hover .feature-arrow {
  color: var(--primary-red);
  transform: translateX(3px);
}

/* Landing Latest Blogs Slider */
.landing-blogs-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  gap: 16px;
}

.landing-blogs-slider {
  position: relative;
  width: 100%;
  min-height: 380px;
  overflow: visible;
}

.landing-blogs-slider .blog-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  transition: opacity 0.4s ease-in-out, transform 0.4s ease, visibility 0.4s;
  pointer-events: none;
}

.landing-blogs-slider .blog-card.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.slider-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.04);
  flex-shrink: 0;
  z-index: 10;
}

.slider-arrow:hover {
  background: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
  transform: scale(1.08);
}

.landing-blogs-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

.landing-blogs-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--slate-300);
  cursor: pointer;
  transition: all 0.3s ease;
}

.landing-blogs-dots .dot.active {
  background: var(--primary-red);
  width: 16px;
  border-radius: 3px;
}

/* CTA Banner */
.landing-cta-banner {
  width: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
}

.landing-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
}

.landing-cta-banner h2 {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.landing-cta-banner p {
  font-size: 15px;
  color: #cbd5e1 !important; /* Brighter slate-300 with high contrast */
  margin-bottom: 24px;
  line-height: 1.5;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 10px 20px;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.cta-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* Mobile Responsive Override */
@media (max-width: 768px) {
  #home-landing-wrapper {
    gap: 36px;
    margin-top: 24px;
  }
  .landing-steps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .landing-features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .landing-blogs-slider-wrapper {
    gap: 8px;
  }
  .slider-arrow {
    width: 36px;
    height: 36px;
  }
  .landing-section.dark-bg, #latest-blogs-section {
    padding: 24px 16px;
  }
  .landing-section-header {
    margin-bottom: 24px;
  }
  .landing-section-header h2 {
    font-size: 20px;
  }
  .landing-cta-banner {
    padding: 30px 16px;
  }
  .landing-cta-banner h2 {
    font-size: 22px;
  }
  .cta-actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 10px;
  }
  .cta-actions button {
    width: 100%;
  }
}

/* ==========================================================================
   DIRECT MESSAGING & COMMENTS SYSTEM RESPONSIVE & LAYOUT STYLES
   ========================================================================== */

/* Left column wrapper for stack */
.details-left-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Separate comments card */
.details-comments-card {
  background: var(--slate-50);
  border-radius: 24px;
  border: 1.5px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  text-align: left;
}

.details-comments-card h3 {
  font-size: 14.5px;
  font-weight: 900;
  color: var(--slate-800);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* Premium Chat Inbox Styles */
.chat-inbox-container {
  display: flex;
  height: 550px;
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid var(--slate-200);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.chat-conversations-list {
  width: 320px;
  border-right: 1.5px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #f8fafc;
  flex-shrink: 0;
}

.chat-thread-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  min-width: 0;
}

.chat-conv-item:hover {
  background: #f1f5f9;
}

.chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

/* Prevent auto-zooming on focus in iOS Safari by raising font-size to 16px */
@media (max-width: 768px) {
  input, select, textarea, .chat-input-form input, .comment-input-form input {
    font-size: 16px !important;
  }
  
  /* Mobile responsive styles for Chat */
  .chat-inbox-container {
    height: 550px;
    position: relative;
    flex-direction: row;
  }
  
  /* Hide back button on desktop, show only on mobile when conversation is active */
  #chat-back-to-list {
    display: none !important;
  }

  /* When no conversation is active */
  .chat-inbox-container:not(.active-chat) .chat-conversations-list {
    width: 100% !important;
    display: flex !important;
  }
  .chat-inbox-container:not(.active-chat) .chat-thread-container {
    display: none !important;
  }
  
  /* When a conversation is active */
  .chat-inbox-container.active-chat .chat-conversations-list {
    display: none !important;
  }
  .chat-inbox-container.active-chat .chat-thread-container {
    width: 100% !important;
    display: flex !important;
    height: 100% !important;
  }
  .chat-inbox-container.active-chat #chat-back-to-list {
    display: inline-flex !important;
  }
}

/* Mobile responsive styles for Profile Tabs */
@media (max-width: 576px) {
  .profile-tabs {
    gap: 4px !important;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .profile-tab {
    padding: 10px 8px !important;
    font-size: 12px !important;
    flex-shrink: 0;
    flex: 1 0 auto;
  }
}

/* Extra responsive fixes for small mobile viewports (iPhone SE, small Samsung models) */
@media (max-width: 400px) {
  .details-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .stat-box {
    padding: 10px 12px !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 10px !important;
  }
  .stat-text {
    align-items: flex-start !important;
  }
}

@media (max-width: 360px) {
  .details-container {
    padding: 12px 8px 40px !important;
  }
  .details-main-card,
  .details-comments-card,
  .details-sidebar-card,
  .profile-card,
  .dashboard-instructions,
  .dashboard-section {
    padding: 12px !important;
    border-radius: 16px !important;
  }
  .profile-tabs {
    margin: 12px 0 !important;
  }
  .profile-tab {
    padding: 8px 6px !important;
    font-size: 11.5px !important;
  }
}



