/* =============================================
   CINELINK – Mintlify Design System
   ============================================= */

/* --- Fonts & Reset --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

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

:root {
  --black: #0d0d0d;
  --white: #ffffff;
  --brand: #18E299;
  --brand-light: #d4fae8;
  --brand-deep: #0fa76e;
  --gray-900: #0d0d0d;
  --gray-700: #333333;
  --gray-500: #666666;
  --gray-400: #888888;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --gray-50: #fafafa;
  --border: rgba(0,0,0,0.05);
  --border-md: rgba(0,0,0,0.08);
  --shadow-card: rgba(0,0,0,0.03) 0px 2px 4px;
  --shadow-btn: rgba(0,0,0,0.06) 0px 1px 2px;
  /* CineLink brand colors */
  --cl-green: #1D9E75;
  --cl-green-light: #E1F5EE;
  --cl-green-dark: #085041;
  --amber-light: #FAEEDA;
  --amber-dark: #854F0B;
  --coral-light: #FAECE7;
  --coral-dark: #993C1D;
  --purple-light: #EEEDFE;
  --purple-dark: #3C3489;
  --blue-light: #E6F1FB;
  --blue-dark: #185FA5;
  --red-light: #FCEBEB;
  --red-dark: #791F1F;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { max-width: 100%; display: block; }

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; }

.btn-primary {
  background: var(--black);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}
.btn-ghost {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--border-md);
  box-shadow: var(--shadow-btn);
}
.btn-ghost:hover { background: var(--gray-50); opacity: 1; }

#btn-login, #btn-register {
  transition: opacity 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
}
#btn-login:hover {
  background: var(--cl-green-light) !important;
  color: var(--cl-green) !important;
  border-color: var(--cl-green) !important;
  opacity: 1 !important;
}
#btn-register:hover {
  background: var(--cl-green) !important;
  color: var(--white) !important;
  border-color: var(--cl-green) !important;
  opacity: 1 !important;
}
.btn-icon {
  display: none;
}

.btn-brand {
  background: var(--brand);
  color: var(--black);
  font-weight: 600;
  box-shadow: var(--shadow-btn);
}
.btn-brand:hover { opacity: 0.9; }

.btn-outline-dark {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--border-md);
}
.btn-outline-dark:hover { background: var(--gray-50); opacity: 1; }

.btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.08); opacity: 1; }

/* =============================================
   BADGES
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  border: 1px solid transparent;
}
.badge-green  { background: var(--cl-green-light); color: var(--cl-green-dark); border-color: #9FE1CB; }
.badge-amber  { background: var(--amber-light); color: var(--amber-dark); border-color: #FAC775; }
.badge-red    { background: var(--red-light); color: var(--red-dark); border-color: #F7C1C1; }
.badge-gray   { background: var(--gray-100); color: var(--gray-500); border-color: var(--gray-200); }
.badge-purple { background: var(--purple-light); color: var(--purple-dark); border-color: #CECBF6; }
.badge-coral  { background: var(--coral-light); color: var(--coral-dark); border-color: #F5C4B3; }
.badge-blue   { background: var(--blue-light); color: var(--blue-dark); border-color: #B5D4F4; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 56px;
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.brand-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}
.brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--black);
  background: var(--gray-100);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: 0.3s;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  text-align: center;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(24,226,153,0.15) 0%, rgba(24,226,153,0.04) 50%, transparent 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: var(--brand-light);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(24,226,153,0.3);
  animation: fadeInDown 0.6s ease both;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-deep);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -1.1px;
  color: var(--black);
  max-width: 560px;
  animation: fadeInUp 0.6s 0.1s ease both;
}
.hero-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-500);
  max-width: 460px;
  animation: fadeInUp 0.6s 0.2s ease both;
}

/* Search Bar */
.search-wrap {
  width: 100%;
  max-width: 560px;
  animation: fadeInUp 0.6s 0.3s ease both;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border-md);
  border-radius: 9999px;
  box-shadow: rgba(0,0,0,0.06) 0px 4px 16px;
  padding: 4px 4px 4px 16px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(24,226,153,0.15), rgba(0,0,0,0.06) 0px 4px 16px;
}
.search-icon { color: var(--gray-400); flex-shrink: 0; display: flex; align-items: center; }
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--black);
  background: transparent;
  padding: 8px 12px;
  min-width: 0;
}
.search-input::placeholder { color: var(--gray-400); }
.search-select {
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  background: transparent;
  padding: 8px 8px 8px 4px;
  cursor: pointer;
  border-left: 1px solid var(--border-md);
  padding-left: 12px;
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 56px;
}
.stat-number {
  font-size: 28px;
  font-weight: 600;
  color: var(--cl-green);
  letter-spacing: -0.5px;
  line-height: 1;
}
.stat-plus { font-size: 20px; font-weight: 500; }
.stat-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-500);
  letter-spacing: 0.2px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-md);
  flex-shrink: 0;
}

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 72px 0; }
#featured-actors { padding-bottom: 36px; }
#jobs-section { padding-top: 36px; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.section-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.65px;
  color: var(--cl-green);
  margin-bottom: 6px;
}
.section-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.link-more {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  transition: color 0.2s;
  white-space: nowrap;
  padding-bottom: 2px;
}
.link-more:hover { color: var(--cl-green); }

/* Filter Chips */
.filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.chip {
  padding: 5px 14px;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  background: var(--white);
  border: 1px solid var(--border-md);
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--cl-green); color: var(--cl-green-dark); background: var(--cl-green-light); }
.chip.active {
  background: var(--cl-green-light);
  color: var(--cl-green-dark);
  border-color: #9FE1CB;
  font-weight: 600;
}

/* =============================================
   ACTOR CARDS
   ============================================= */
.actor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.actor-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.actor-card:hover {
  border-color: var(--border-md);
  box-shadow: rgba(0,0,0,0.07) 0px 8px 24px;
  transform: translateY(-2px);
}
.card-avatar-wrap {
  position: relative;
  background: var(--gray-50);
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.card-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.status-badge {
  position: absolute;
  top: 8px; right: 8px;
}
.card-body {
  padding: 14px 14px 10px;
}
.card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.1px;
  margin-bottom: 3px;
}
.card-meta {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 8px;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tag {
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  background: var(--gray-100);
  color: var(--gray-500);
  border: 1px solid var(--border-md);
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
}
.card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--gray-400);
}
.link-profile {
  font-size: 13px;
  font-weight: 500;
  color: var(--cl-green);
  transition: gap 0.2s;
}
.link-profile:hover { opacity: 0.8; }

/* =============================================
   JOB LIST
   ============================================= */
.job-section { background: var(--white); }

.job-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.job-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
}
.job-item:last-child { border-bottom: none; }
.job-item:hover { background: var(--gray-50); }
.job-item.job-item-featured {
  background: #fffdf5 !important;
  border-left: 3px solid #fbbf24;
}
.job-item.job-item-featured:hover {
  background: #fffbeb !important;
}
.job-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--gray-50);
  border: 1px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
}
.job-info { flex: 1; min-width: 0; }
.job-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.job-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.1px;
}
.job-title a { color: inherit; }
.job-title a:hover { color: var(--cl-green); }
.job-type { font-size: 11px; }
.job-meta {
  font-size: 13px;
  color: var(--gray-400);
}
.job-deadline {
  flex-shrink: 0;
  text-align: right;
}
.deadline-label {
  font-size: 11px;
  color: var(--gray-400);
  display: block;
}
.deadline-date {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  padding: 72px 0;
  background: var(--white);
}
.cta-card {
  position: relative;
  overflow: hidden;
  background: var(--black);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-glow {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(24,226,153,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.8px;
  line-height: 1.15;
}
.cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  max-width: 440px;
  line-height: 1.6;
}
.cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-cta-custom {
  background-color: #121212 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 30px !important;
  padding: 10px 24px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.25s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}
.btn-cta-custom:hover {
  background-color: #059669 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3) !important;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-top {
  display: flex;
  gap: 64px;
  margin-bottom: 40px;
}
.footer-brand { flex-shrink: 0; max-width: 50%; }
.footer-tagline {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.6;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--gray-100);
  color: var(--gray-600);
  font-size: 16px;
  transition: all 0.2s ease;
  position: relative;
}
.social-icon-link:hover {
  background-color: var(--cl-green);
  color: #ffffff;
  transform: translateY(-2px);
}
.social-icon-link[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px) scale(0.8);
  background: #0f172a;
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 10;
}
.social-icon-link[data-tooltip]::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0) scale(0.8);
  border-width: 4px 4px 0;
  border-style: solid;
  border-color: #0f172a transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}
.social-icon-link[data-tooltip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px) scale(1);
}
.social-icon-link[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.footer-links-group {
  display: flex;
  gap: 48px;
  flex: 1;
  justify-content: flex-end;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.65px;
  color: var(--black);
  margin-bottom: 4px;
}
.footer-link {
  font-size: 13px;
  color: var(--gray-500);
  transition: color 0.2s;
}
.footer-link:hover { color: var(--cl-green); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 13px;
  color: var(--gray-400);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .actor-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 0 32px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .nav-links { display: none; }
  .nav-actions {
    display: flex !important;
    gap: 8px;
    margin-left: auto;
  }
  .nav-actions .btn-brand {
    display: none !important;
  }
  .hamburger {
    display: flex;
    margin-left: 0;
  }

  #btn-login, #btn-register {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    min-width: 38px;
  }
  #btn-login .btn-text, #btn-register .btn-text {
    display: none !important;
  }
  #btn-login .btn-icon, #btn-register .btn-icon {
    display: inline-flex !important;
    font-size: 18px;
    margin: 0;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    gap: 4px;
    z-index: 99;
  }

  .hero { padding: 56px 0 48px; }
  .hero-title { font-size: 34px; letter-spacing: -0.6px; }
  .hero-sub { font-size: 15px; }
  .search-box { flex-wrap: wrap; border-radius: 16px; padding: 8px 12px; gap: 8px; }
  .search-input { width: 100%; }
  .search-select { border-left: none; padding-left: 0; }
  .btn-brand { width: 100%; justify-content: center; border-radius: 9999px; }

  .stats-grid { flex-wrap: wrap; }
  .stat-item { padding: 12px 24px; }
  .stat-divider { display: none; }

  .section { padding: 48px 0; }
  #featured-actors { padding-bottom: 24px; }
  #jobs-section { padding-top: 24px; }
  .actor-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .job-item { flex-wrap: wrap; gap: 10px; }
  .job-deadline { width: 100%; text-align: left; display: flex; gap: 4px; align-items: center; }

  .cta-card { padding: 40px 24px; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  .footer-top { flex-direction: column; gap: 32px; }
  .footer-brand { max-width: 100%; }
  .footer-links-group { justify-content: flex-start; flex-wrap: wrap; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .actor-grid { grid-template-columns: 1fr 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
}

/* =============================================
   PASSWORD DISPLAY TOGGLE
   ============================================= */
.password-toggle-wrapper {
  position: relative;
  display: block;
  width: 100%;
}

.password-toggle-wrapper .form-input,
.password-toggle-wrapper .form-control {
  padding-right: 42px !important;
}

.password-toggle-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--gray-400, #888888);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  z-index: 10;
}

.password-toggle-btn:hover {
  color: var(--cl-green, #1D9E75);
}

.password-toggle-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}

/* =============================================
   ZEBRA TABLE ROWS (LIGHT GREEN/CYAN)
   ============================================= */
.mod-table tbody tr.mod-row:nth-child(even) {
  background-color: #f0fdf4 !important; /* light green/cyan */
}
.mod-table tbody tr.mod-row:nth-child(odd) {
  background-color: #ffffff !important;
}
.mod-table tbody tr.mod-row:hover {
  background-color: #dcfce7 !important; /* light green hover focus */
}
.mod-table tbody tr.mod-row.inactive-row {
  background-color: #fef2f2 !important; /* lock status background override */
}
.mod-table tbody tr.mod-row.inactive-row:hover {
  background-color: #fee2e2 !important;
}

/* =============================================
   CUSTOM SEARCHABLE DROPDOWN
   ============================================= */
.custom-select-container {
  position: relative;
  width: 100%;
}

.custom-select-container.open {
  z-index: 99999 !important;
}

.custom-select-trigger {
  width: 100%;
  height: 40px !important;
  min-height: 40px !important;
  box-sizing: border-box !important;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--black);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  user-select: none;
}

.custom-select-trigger:focus, .custom-select-container.open .custom-select-trigger {
  border-color: var(--cl-green, #1D9E75);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.12);
}

.custom-select-trigger::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--gray-500);
  border-bottom: 2px solid var(--gray-500);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: 8px;
  flex-shrink: 0;
}

.custom-select-container.open .custom-select-trigger::after {
  transform: rotate(-135deg);
}

.custom-select-container.open-upwards .custom-select-dropdown {
  top: auto !important;
  bottom: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 4px !important;
  box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.15), 0 -8px 10px -6px rgba(0, 0, 0, 0.1) !important;
  animation: fadeInDropdownUp 0.15s ease-out !important;
}

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

.custom-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--border-md, #d1d5db);
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 999999 !important;
  display: none;
  overflow: hidden;
}

.custom-select-container.open .custom-select-dropdown {
  display: block;
  animation: fadeInDropdown 0.15s ease-out;
}

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

.custom-select-search-wrapper {
  position: relative;
  padding: 8px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  background: #fff;
}

.custom-select-search-wrapper .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  font-size: 13px;
  display: flex;
  align-items: center;
}

.custom-select-search {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  background: #fdfdfd;
  box-sizing: border-box;
}

.custom-select-search:focus {
  border-color: #2563eb;
  background: #fff;
}

.custom-select-options {
  max-height: 220px;
  overflow-y: auto;
  padding: 4px 0;
}

.custom-select-options::-webkit-scrollbar {
  width: 6px;
}
.custom-select-options::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
.custom-select-options::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.custom-select-option {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--gray-700, #374151);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  user-select: none;
}

.custom-select-option:hover {
  background: var(--gray-50, #f9fafb);
  color: var(--black, #111827);
}

.custom-select-option.selected {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.custom-select-option.custom-bg-option {
  background-color: transparent;
  color: var(--bg-color);
  font-weight: 600;
  margin: 2px 8px;
  border-radius: 6px;
}

.custom-select-option.custom-bg-option:hover {
  background-color: #f8fafc;
  color: var(--bg-color);
  filter: none;
}

.custom-select-option.custom-bg-option.selected {
  background-color: var(--bg-color);
  color: #fff;
}

.custom-select-option.multi-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
}
.custom-select-option.multi-option input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #2563eb;
  cursor: pointer;
  margin: 0;
}

.custom-select-multiactions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
}
.custom-select-multiactions button {
  background: none;
  border: none;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.custom-select-multiactions .btn-select-all {
  color: #2563eb;
}
.custom-select-multiactions .btn-select-all:hover {
  background: #eff6ff;
}
.custom-select-multiactions .btn-deselect-all {
  color: #64748b;
}
.custom-select-multiactions .btn-deselect-all:hover {
  background: #f1f5f9;
}

.custom-select-footer {
  padding: 8px 12px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  background: #fafafa;
}
.custom-select-footer .btn-close-dropdown {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.custom-select-footer .btn-close-dropdown:hover {
  background: #1d4ed8;
}

.custom-select-no-results {
  padding: 12px 16px;
  color: var(--gray-400, #9ca3af);
  text-align: center;
  font-size: 13px;
  display: none;
}

/* Force standard height and border-radius for form-input */
.form-input {
  border-radius: 8px !important;
  box-sizing: border-box !important;
}

.form-input:not(textarea) {
  height: 40px !important;
  min-height: 40px !important;
  padding: 8px 12px !important;
  font-size: 13.5px !important;
}

/* Modal Close Button */
.modal-box {
  position: relative !important;
}
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  transition: all 0.2s;
}
.modal-close-btn:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

/* Account Name style adjustment for consistency across all pages */
.nav-avatar .desktop-only {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--gray-700) !important;
  line-height: 1.5 !important;
}

/* ==========================================================================
   GLOBAL RESPONSIVE SEARCH & FILTER LAYOUT (All Admin Views)
   ========================================================================== */
/* Global rules for collapsed filter panels across all screen sizes */
.filter-panel-wrapper.is-collapsed,
.search-panel.is-collapsed {
  overflow: hidden !important;
}

.filter-panel-wrapper.is-collapsed > .filter-content,
.filter-panel-wrapper.is-collapsed .filter-content,
.search-panel.is-collapsed > .filter-content,
.search-panel.is-collapsed .filter-content,
.filter-content.is-collapsed,
.filter-content[style*="max-height: 0px"],
.filter-content[style*="max-height: 0;"],
.filter-content[style*="max-height:0px"],
.filter-content[style*="max-height:0;"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

@media (max-width: 768px) {
  /* Ensure filter panel content container fits screen nicely */
  .filter-panel-wrapper,
  .search-panel {
    margin: 12px 0 !important;
  }
  .filter-panel-wrapper:not(.is-collapsed) > .filter-content:not(.is-collapsed),
  .search-panel:not(.is-collapsed) > .filter-content:not(.is-collapsed) {
    padding: 16px;
  }

  /* Form & Main Input Container */
  .filter-panel-wrapper form,
  .search-panel form {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Force top inputs container to single column stack */
  .filter-panel-wrapper form > div:first-child,
  .filter-content form > div:first-child,
  .filter-grid,
  .filter-grid > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
    margin-bottom: 14px !important;
  }

  /* Force every field block in filter to take full 100% width */
  .filter-panel-wrapper form > div:first-child > div,
  .filter-content form > div:first-child > div,
  .filter-field-group,
  .filter-col,
  .filter-field,
  .filter-item {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  /* Ensure inputs and custom selects span full width */
  .filter-panel-wrapper form input,
  .filter-panel-wrapper form select,
  .filter-panel-wrapper form .custom-select-container,
  .search-panel form input,
  .search-panel form select,
  .search-panel form .custom-select-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Bottom Actions / Sort Row */
  .filter-panel-wrapper form > div:last-child:not(:first-child),
  .filter-content form > div:last-child:not(:first-child),
  .filter-actions-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
    padding-top: 14px !important;
    margin-top: 0 !important;
    border-top: 1px solid #f1f5f9 !important;
  }

  /* Sort dropdown container inside bottom row */
  .filter-sort-col,
  .filter-sort-group,
  .filter-sort-group > div,
  .filter-panel-wrapper form > div:last-child:not(:first-child) > div:first-child:not(.filter-actions-btns):not(.search-buttons-group),
  .filter-content form > div:last-child:not(:first-child) > div:first-child:not(.filter-actions-btns):not(.search-buttons-group),
  .filter-actions-row > div:first-child:not(.filter-actions-btns):not(.search-buttons-group) {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  .filter-sort-col .custom-select-container,
  .filter-sort-col .custom-select-trigger,
  .filter-actions-row .custom-select-container,
  .filter-actions-row .custom-select-trigger {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Buttons container in bottom row -> strictly 1 row with 2 equal buttons */
  .filter-panel-wrapper form > div:last-child:not(:first-child) > div:last-child,
  .filter-content form > div:last-child:not(:first-child) > div:last-child,
  .filter-actions-btns,
  .search-buttons-group,
  .filter-actions-group,
  .filter-actions-row .filter-actions-btns {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* The 2 buttons (Search & Reset) -> 50% width each */
  .filter-panel-wrapper form > div:last-child:not(:first-child) > div:last-child > button,
  .filter-panel-wrapper form > div:last-child:not(:first-child) > div:last-child > a,
  .filter-content form > div:last-child:not(:first-child) > div:last-child > button,
  .filter-content form > div:last-child:not(:first-child) > div:last-child > a,
  .filter-actions-btns > button,
  .filter-actions-btns > a,
  .search-buttons-group > button,
  .search-buttons-group > a,
  .filter-actions-row > button,
  .filter-actions-row > a,
  .filter-actions-group > button,
  .filter-actions-group > a {
    flex: 1 1 0 !important;
    width: 50% !important;
    min-width: 0 !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    white-space: nowrap !important;
    height: 42px !important;
  }
}

/* ==========================================================================
   GLOBAL MOBILE CARDS VIEW (CineShop Orders, Products, Coupons, etc.)
   ========================================================================== */
@media (max-width: 992px) {
  .desktop-table-view {
    display: none !important;
  }
  .mobile-cards-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 16px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .mobile-card-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .queue-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
}
