@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined', sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'liga';
}

:root {
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --accent-color: #10b981;
  --accent-hover: #059669;
  --bg-color: #0f172a;
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
  --sidebar-width: 270px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Outfit', sans-serif;
}

/* TOP NAVBAR */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
}

.nav-brand img {
  height: 42px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}


.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-search {
  flex: 1;
  max-width: 320px;
  position: relative;
}

.nav-search input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border-radius: 20px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.nav-search input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.nav-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

/* SUPERADMIN IMPERSONATE SELECTOR */
.impersonator-container {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.impersonator-select {
  background: #1e293b;
  color: #fff;
  border: 1px solid var(--card-border);
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

/* BUTTONS */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: #fff;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--card-border);
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: #fff;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* APP SHELL WITH LEFT VERTICAL SIDEBAR MENU */
.app-shell {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 65px);
}

/* LEFT SIDEBAR MENU WHEN LOGGED IN */
.left-vertical-sidebar {
  width: var(--sidebar-width);
  background: rgba(15, 23, 42, 0.95);
  border-right: 1px solid var(--card-border);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-shrink: 0;
  backdrop-filter: blur(12px);
}

.left-sidebar-profile {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--card-border);
  padding: 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.left-sidebar-profile img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
}

.sidebar-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 0.5rem;
  margin-bottom: 0.5rem;
}

.sidebar-menu-divider {
  border: 0;
  border-top: 1px solid var(--card-border);
  margin: 1.1rem 0.5rem 0.85rem 0.5rem;
  opacity: 0.8;
}

.sidebar-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  list-style: none;
}

.sidebar-menu-item {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.sidebar-menu-item:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #fff;
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateX(4px);
}

.sidebar-menu-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(16, 185, 129, 0.25));
  border-color: var(--primary-color);
  color: #fff;
  font-weight: 700;
}

.sidebar-menu-item .material-symbols-outlined {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.sidebar-menu-item:hover .material-symbols-outlined {
  color: var(--accent-color);
}

/* MAIN CONTENT AREA */
.main-layout {
  flex: 1;
  max-width: 1350px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.section-row {
  margin-bottom: 3.5rem;
}

.section-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title .badge-icon {
  color: var(--primary-color);
}

/* CAROUSEL ROW 1 */
.carousel-wrapper {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.carousel-slide {
  position: relative;
  height: 480px;
  min-height: 440px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-end;
  padding: 3rem 3.5rem;
  overflow: hidden;
}

.carousel-blur-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  filter: blur(30px) brightness(0.3);
  transform: scale(1.15);
  z-index: 0;
  pointer-events: none;
}

.carousel-banner-img {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center center;
  z-index: 1;
  pointer-events: none;
  transition: all 0.4s ease;
}

.carousel-banner-img.fit-contain {
  background-size: contain;
}

.carousel-banner-img.fit-cover {
  background-size: cover;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn.prev { left: 20px; }
.carousel-nav-btn.next { right: 20px; }

.carousel-indicators {
  position: absolute;
  bottom: 24px;
  right: 35px;
  z-index: 10;
  display: flex;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.65);
  padding: 8px 14px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--accent-color);
  width: 28px;
  border-radius: 12px;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.25) 45%, transparent 75%),
              linear-gradient(to right, rgba(15, 23, 42, 0.7) 0%, transparent 55%);
  border-radius: var(--radius-lg);
  z-index: 2;
  pointer-events: none;
}

.carousel-content {
  position: relative;
  z-index: 3;
  max-width: 750px;
}

.carousel-tag {
  background: var(--primary-color);
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.carousel-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.carousel-meta {
  color: rgba(241, 245, 249, 0.95);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

/* HOME SPLIT 2-COLUMN LAYOUT */
.home-split-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}

.home-main-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home-sidebar-col {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-glow);
  position: sticky;
  top: 90px;
}

.sidebar-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-cards-grid .event-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sidebar-cards-grid .event-banner {
  height: 140px;
}

@media (max-width: 1100px) {
  .home-split-layout {
    grid-template-columns: 1fr 300px;
    gap: 1.25rem;
  }
}

@media (max-width: 860px) {
  .home-split-layout {
    grid-template-columns: 1fr;
  }
  .home-sidebar-col {
    position: static;
  }
}

/* CARDS GRID FOR ROWS 2, 3, 4 */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}

.event-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.event-banner {
  position: relative;
  height: 170px;
  background-size: cover;
  background-position: center;
}

.sales-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.event-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-main);
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.event-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-category {
  color: var(--accent-color);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.event-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.event-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--card-border);
}

.event-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

/* MAINTAINERS TABLES & MODALS */
.maintainer-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.maintainer-table th {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--card-border);
}

.maintainer-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.9rem;
}

.maintainer-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* DIALOG / MODAL ANIMATION BEST PRACTICES (@starting-style) */
dialog {
  border: 1px solid var(--card-border);
  background: #1e293b;
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 650px;
  width: 90vw;
  margin: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);

  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out, display 0.3s allow-discrete, overlay 0.3s allow-discrete;
}

dialog[open] {
  opacity: 1;
  transform: scale(1);

  @starting-style {
    opacity: 0;
    transform: scale(0.95);
  }
}

dialog::backdrop {
  background-color: rgba(15, 23, 42, 0);
  backdrop-filter: blur(0px);
  transition: background-color 0.3s ease-out, backdrop-filter 0.3s ease-out, display 0.3s allow-discrete, overlay 0.3s allow-discrete;
}

dialog[open]::backdrop {
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);

  @starting-style {
    background-color: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0px);
  }
}

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

.modal-body {
  padding: 1.5rem;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* TIMER COUNTDOWN BADGE IN CHECKOUT */
.lock-timer-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--warning-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.payment-card-option {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  padding: 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.payment-card-option:hover, .payment-card-option.selected {
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
}

/* STREAMING ROOM & WATERMARK */
.stream-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stream-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.stream-watermark {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  pointer-events: none;
  font-family: monospace;
}

/* DISCONNECT WARNING MODAL */
.disconnect-modal {
  text-align: center;
  padding: 2rem;
}

.disconnect-icon {
  font-size: 3.5rem;
  color: var(--danger-color);
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .app-shell {
    flex-direction: column;
  }
  .left-vertical-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--card-border);
  }
  .top-navbar {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
  }
  .nav-search {
    max-width: 100%;
    order: 3;
    width: 100%;
  }
  .carousel-slide {
    height: 300px;
    padding: 1.5rem;
  }
  .carousel-title {
    font-size: 1.5rem;
  }
}

/* MAINTAINER TABBED FORM & DRAG-AND-DROP UPLOAD STYLES */
.maintainer-tabs-container {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.maintainer-tab-bar {
  display: flex;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid var(--card-border);
  overflow-x: auto;
  gap: 0.25rem;
  padding: 0.5rem 0.5rem 0 0.5rem;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  border-radius: 8px 8px 0 0;
}

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

.tab-btn.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  background: rgba(99, 102, 241, 0.12);
}

.tab-btn:disabled,
.tab-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  background: transparent !important;
  color: var(--text-muted) !important;
  border-bottom-color: transparent !important;
}

.tab-panel {
  display: none;
  padding: 1.75rem;
  animation: fadeInTab 0.25s ease-in-out forwards;
}

.tab-panel.active {
  display: block;
}

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

/* DRAG AND DROP UPLOAD ZONE */
.upload-dropzone {
  border: 2px dashed rgba(99, 102, 241, 0.4);
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--accent-color);
  background: rgba(99, 102, 241, 0.15);
}

.upload-dropzone .dropzone-icon {
  font-size: 2.2rem;
  color: var(--accent-color);
}

.dimension-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.dimension-badge.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.dimension-badge.warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
}

.dimension-badge.danger {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #ef4444;
}

.preset-date-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-date-btn:hover {
  background: var(--primary-color);
  color: #fff;
}

/* FIELD VALIDATION & ERROR SIGNALS */
.input-invalid {
  border: 2px solid #ef4444 !important;
  background: rgba(239, 68, 68, 0.12) !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4) !important;
  animation: shakeError 0.3s ease-in-out;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.field-error-msg {
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.tab-btn.has-error {
  border-bottom: 3px solid #ef4444 !important;
  color: #ef4444 !important;
}

.tab-btn.has-error .material-symbols-outlined {
  color: #ef4444 !important;
}

.validation-alert-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  color: #fca5a5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: fadeIn 0.3s ease;
}

/* ========================================================
   AUTH MODAL & GOOGLE SIGN-IN STYLES
   ======================================================== */
.auth-dialog {
  max-width: 440px;
  width: 92vw;
  border-radius: 20px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(99, 102, 241, 0.2);
}

.auth-tabs-nav {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-tab-btn {
  flex: 1;
  padding: 0.65rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.auth-tab-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  padding: 0 0.75rem;
}

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-google:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.password-toggle-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-toggle-wrapper input {
  width: 100%;
  padding-right: 2.75rem !important;
}

.password-toggle-btn {
  position: absolute;
  right: 0.6rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border-radius: 6px;
  transition: color 0.2s;
}

.password-toggle-btn:hover {
  color: #ffffff;
}

/* ========================================================
   PAGO MOVIL & PROOF UPLOAD STYLES
   ======================================================== */
.pago-movil-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.pago-movil-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 600px) {
  .pago-movil-grid {
    grid-template-columns: 1fr;
  }
}

.proof-dropzone {
  border: 2px dashed rgba(99, 102, 241, 0.5);
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.proof-dropzone:hover,
.proof-dropzone.dragover {
  border-color: var(--accent-color);
  background: rgba(16, 185, 129, 0.1);
}

.proof-preview-card {
  position: relative;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.proof-thumb-preview {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.receipt-modal-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

/* ========================================================
   SKELETON LOADERS & SHIMMER EFFECT FOR SMOOTH LOADING
   ======================================================== */
@keyframes shimmerPulse {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.02) 75%);
  background-size: 200% 100%;
  animation: shimmerPulse 1.8s infinite ease-in-out;
  border-radius: 8px;
}

.skeleton-carousel {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.skeleton-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.skeleton-banner {
  height: 170px;
  width: 100%;
  border-bottom: 1px solid var(--card-border);
}

.sidebar-cards-grid .skeleton-banner {
  height: 140px;
}

.skeleton-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.skeleton-line {
  height: 16px;
  width: 100%;
}

.skeleton-line.short {
  width: 55%;
}

.skeleton-line.mini {
  height: 12px;
  width: 35%;
}

.skeleton-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--card-border);
}

.home-loading-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  color: #a5b4fc;
  font-size: 0.9rem;
  font-weight: 500;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

.spin-loader {
  animation: spinLoader 1s linear infinite;
}



