@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Modern Ticket Platform Design - Inspired by Viagogo/Reventick */
:root {
  /* Verde oficial Ticket Pro Bot: #22C55E */
  --green: #22C55E;
  --green-dark: #16A34A;
  --green-light: #4ADE80;
  --green-hover: #15803D;
  --text: #111827;
  --text-secondary: #374151;
  --muted: #6B7280;
  --bg: #FFFFFF;
  --bg-secondary: #F9FAFB;
  --card: #FFFFFF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-green: 0 10px 25px -5px rgba(34, 197, 94, 0.3);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --header-h: 80px;
}

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

body {
  margin: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.splash-visible {
  overflow: hidden;
}

/* Header - Clean */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  height: 60px;
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
  .site-header {
    padding: 0 16px;
    height: 70px;
    gap: 16px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand a {
  display: block;
  transition: opacity 0.2s ease;
}

.brand a:hover {
  opacity: 0.9;
}

.logo {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (min-width: 640px) {
  .logo {
    max-height: 60px;
  }
}

.site-header nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.site-header nav a,
.admin-lock {
  color: white;
  background: none;
  text-decoration: none;
  padding: 0;
  border-radius: 0;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  box-shadow: none;
}

@media (min-width: 640px) {
  .site-header nav a,
  .admin-lock {
    padding: 0;
    font-size: 13px;
  }
}

.site-header nav a:hover,
.admin-lock:hover {
  background: none;
  color: #d1fae5;
  transform: scale(1.1);
  box-shadow: none;
  border-color: transparent;
}

.admin-lock svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Splash Screen */
.splash-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  animation: fadeOut 0.9s cubic-bezier(0.4, 0, 0.2, 1) 2.1s forwards;
}

.splash-hidden {
  display: none !important;
}

.splash-content {
  text-align: center;
  animation: contentFadeIn 0.8s ease-out forwards;
}

.splash-logo {
  width: 240px;
  height: 240px;
  object-fit: contain;
  border-radius: 32px;
  box-shadow: 0 20px 40px rgba(34, 197, 94, 0.3), 0 10px 20px rgba(34, 197, 94, 0.2);
  animation: logoBounce 2s ease-in-out infinite;
}

@keyframes logoBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes logoScaleIn {
  from {
    transform: scale(0.3);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

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

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    pointer-events: none;
  }
}

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

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Container - Mobile First */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  width: 100%;
}

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

.container.narrow {
  max-width: 800px;
}

.center {
  text-align: center;
}

/* Search Section */
.search {
  margin-bottom: 16px;
}

.search-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.search-form {
  display: flex;
  gap: 0;
  flex: 1;
  background: #FFFFFF;
  border: none;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 0 16px;
}

.search-form:focus-within {
  /* sin cambios en focus */
}

.search-form input {
  flex: 1;
  padding: 16px 0;
  border: none;
  font-size: 16px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  outline: none;
}

.search-form input:focus {
  outline: none;
}

/* Ocultar botón de cancelación en inputs search */
.search-form input::-webkit-search-cancel-button {
  display: none;
}

.search-form input::-webkit-search-decoration {
  display: none;
}

.search-btn {
  background: transparent;
  border: none;
  color: #9CA3AF;
  cursor: pointer;
  font-size: 18px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.search-btn:hover {
  color: #6B7280;
}

.filter-wrapper {
  position: relative;
}

.filter-btn {
  padding: 14px 24px;
  background: var(--card);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}

.filter-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 16px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1000;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select {
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--card);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--green);
}

/* Events Grid - Minimalist Card Design */
.events {
  margin-top: 40px;
}

.events h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
  }
}

.card {
  background: transparent;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.card-img {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  height: auto;
  border-radius: 12px;
  display: block;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  position: relative;
}


.card-img.sold-out {
  filter: grayscale(100%);
  opacity: 0.6;
}

.card-body {
  padding: 8px 0 0 0;
  background: transparent;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  margin: 0;
  padding-left: 2px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  font-family: inherit;
  text-decoration: none;
}

.card-date {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.placeholder-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(135deg, #E5E7EB 0%, #F3F4F6 50%, #E5E7EB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.empty-state {
  padding: 64px 32px;
  text-align: center;
  background: var(--card);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.empty-state h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(34, 197, 94, 0.2);
  border-top-color: var(--green);
  animation: spin 0.8s linear infinite;
}

.card-reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: cardIn 0.6s ease forwards;
}

.muted {
  color: var(--muted);
}

/* Artist & Events Pages */
.artist-header {
  text-align: center;
  padding: 48px 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 48px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.artist-hero-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: block;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--green);
}

.artist-name {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--text);
  letter-spacing: -1px;
}

.artist-description {
  font-size: 18px;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.event-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}

.event-date {
  flex: 0 0 80px;
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.event-date .day {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.event-date .month {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.event-info {
  flex: 1;
  min-width: 0;
}

.event-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.event-details {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.event-details .separator {
  color: var(--border);
}

.event-arrow {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 24px;
  transition: all 0.2s ease;
}

.event-item:hover .event-arrow {
  color: var(--green);
  transform: translateX(4px);
}

/* Event Detail Page */
.event-header {
  padding: 32px 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 40px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.breadcrumb .separator {
  color: var(--muted);
  opacity: 0.5;
}

.event-title {
  font-size: 48px;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1.2;
}

.event-artist {
  font-size: 22px;
  color: var(--muted);
  margin: 0 0 24px;
  font-weight: 500;
}

.event-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
}

.meta-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--green);
}

.event-description {
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.event-description p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 16px;
}

.sectors-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 32px;
  color: var(--text);
  letter-spacing: -0.5px;
}

/* Sectors Display */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.sector-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 28px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.sector-card:hover {
  border-color: var(--green);
  border-left-color: var(--green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.sector-card.out-of-stock {
  opacity: 0.6;
  cursor: not-allowed;
  border-color: var(--border);
}

.sector-card.out-of-stock:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.sector-name {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
}

.sector-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--green);
  margin: 0 0 8px;
  letter-spacing: -1px;
}

.sector-currency {
  font-size: 20px;
  font-weight: 500;
  color: var(--muted);
}

.sector-stock {
  font-size: 15px;
  color: var(--muted);
  margin: 16px 0 0;
  font-weight: 500;
}

.sector-stock.low {
  color: #F59E0B;
  font-weight: 600;
}

.sector-stock.out {
  color: #EF4444;
  font-weight: 700;
}

.stats-card {
  text-align: center;
}

.stats-amount {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  color: var(--green);
  word-break: break-word;
  letter-spacing: -1px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.stats-grid .card {
  height: 100%;
}

.stats-grid .card-body.stats-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  gap: 8px;
}

.stats-revenue {
  display: block;
}

/* Buttons - Modern Design */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.5;
}

.btn:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn.small {
  padding: 8px 16px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

.btn.danger {
  background: #EF4444;
  box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.2);
}

.btn.danger:hover {
  background: #DC2626;
}

.btn.ghost {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  box-shadow: none;
}

.btn.ghost:hover {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn.outline {
  background: var(--card);
  color: var(--green);
  border: 2px solid var(--green);
  box-shadow: none;
}

.btn.outline:hover {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow);
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table th,
.table td {
  border-bottom: 1px solid var(--border);
  padding: 12px;
  text-align: left;
}

.table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table tr:hover {
  background: var(--bg-secondary);
}

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

/* Forms */
.event-form input,
.event-form textarea,
.auth-form input,
.purchase-form input,
.purchase-form select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 15px;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
  transition: all 0.2s ease;
}

.event-form input:focus,
.event-form textarea:focus,
.auth-form input:focus,
.purchase-form input:focus,
.purchase-form select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.purchase-form input[type="file"] {
  padding: 16px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.purchase-form input[type="file"]:hover {
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.05);
}

.purchase-form input[type="file"]:focus {
  border-color: var(--green);
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.event-form select {
  cursor: pointer;
}

.event-form textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
}

.purchase-form label {
  display: block;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 14px;
}

.purchase-form .form-row label {
  margin-top: 16px;
}

/* Footer - Compact */
.site-footer {
  border-top: 1px solid var(--green-dark);
  margin-top: auto;
  padding: 16px;
  background: var(--green);
  color: #fff;
}

.site-footer h4 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 12px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  padding: 1px 0;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
  font-size: 11px;
}

.site-footer a:hover {
  opacity: 0.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "brand brand"
    "social contact";
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  grid-area: brand;
}

.footer-social {
  grid-area: social;
}

.footer-contact {
  grid-area: contact;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas: none;
    gap: 16px;
    padding: 0 16px;
  }
  .footer-brand,
  .footer-social,
  .footer-contact {
    grid-area: auto;
  }
}

.site-footer-meta {
  text-align: center;
  padding: 8px 16px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  background: var(--green-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: inherit;
}

/* Social icons */
.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
  transition: all 0.2s ease;
}

.social:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
}

.social span {
  position: relative;
  padding-left: 28px;
}

.social span:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  background: #fff;
}

.social.instagram span:before {
  mask-image: url('data:image/svg+xml,%3Csvg width="18" height="18" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M7 3h10a4 4 0 0 1 4 4v10a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V7a4 4 0 0 1 4-4Zm0 2a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H7Zm5 3.5A4.5 4.5 0 1 1 7.5 13 4.5 4.5 0 0 1 12 8.5Zm0 2A2.5 2.5 0 1 0 14.5 13 2.5 2.5 0 0 0 12 10.5Zm4.75-4.75a1 1 0 1 1-1.5 1.3 1 1 0 0 1 1.5-1.3Z" fill="%23fff"/%3E%3C/svg%3E');
}

.social.tiktok span:before {
  mask-image: url('data:image/svg+xml,%3Csvg width="18" height="18" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M15 4.5c.54 1.5 1.76 2.75 3.23 3.26.25.09.52.16.77.19v2.22c-.98-.05-1.95-.32-2.83-.78-.44-.22-.86-.48-1.25-.77v5.76c0 2.83-2.42 5.28-5.44 5.28C6.45 19.66 4 17.2 4 14.38c0-2.83 2.42-5.28 5.48-5.28.24 0 .47.01.7.04v2.34a3.16 3.16 0 0 0-.7-.08c-1.37 0-2.48 1.09-2.48 2.42 0 1.34 1.11 2.42 2.48 2.42 1.37 0 2.48-1.08 2.48-2.42V4.5H15Z" fill="%23fff"/%3E%3C/svg%3E');
}

.social.whatsapp span:before {
  mask-image: url('data:image/svg+xml,%3Csvg width="18" height="18" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M12.04 2a9.95 9.95 0 0 0-8.58 14.9L2 22l5.23-1.37A9.97 9.97 0 1 0 12.04 2Zm0 1.99a7.98 7.98 0 0 1 0 15.96 7.9 7.9 0 0 1-4.04-1.1l-.29-.17-3.1.81.83-3.02-.2-.31A7.98 7.98 0 0 1 12.04 3.99Zm-2.1 3.64c-.13-.29-.27-.3-.4-.31h-.34c-.11 0-.3.04-.46.22-.16.17-.61.59-.61 1.44 0 .85.63 1.68.72 1.8.09.12 1.21 1.92 2.98 2.62.42.18.74.29 1 .37.42.13.8.11 1.1.07.34-.05 1.05-.43 1.2-.85.15-.42.15-.78.1-.85-.05-.07-.16-.11-.34-.2l-.02-.01c-.2-.1-1.17-.58-1.35-.65-.18-.07-.31-.1-.44.1-.13.2-.51.65-.62.78-.11.13-.23.15-.42.05-.19-.1-.79-.29-1.5-.92-.56-.5-.93-1.12-1.04-1.31-.1-.2-.01-.29.08-.39.08-.09.2-.23.3-.35.1-.12.13-.2.2-.34.07-.13.04-.25-.02-.35-.06-.1-.44-1.06-.61-1.45Z" fill="%23fff"/%3E%3C/svg%3E');
}

.social.linktree span:before {
  mask-image: url('data:image/svg+xml,%3Csvg width="18" height="18" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M9.4 2 7 4.4 9.6 7l-4 4 2.2 2.2 4-4 4 4 2.2-2.2-4-4L17 4.4 14.6 2 12 4.6 9.4 2Zm2.6 12.8a1.8 1.8 0 0 0-1.8 1.8V22h3.6v-5.4a1.8 1.8 0 0 0-1.8-1.8Z" fill="%23fff"/%3E%3C/svg%3E');
}

.error {
  color: #EF4444;
  font-weight: 500;
}

.bank {
  list-style: none;
  padding: 0;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border);
}

.bank li {
  padding: 12px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
}

.bank li:last-child {
  border-bottom: none;
}

.bank li strong {
  color: var(--text-secondary);
  font-weight: 600;
  display: inline-block;
  min-width: 120px;
}

/* Auth page styling */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #FFFFFF;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(34, 197, 94, 0.25), 0 4px 16px rgba(34, 197, 94, 0.15);
  overflow: hidden;
}

.auth-brand {
  padding: 40px 24px;
  text-align: center;
  background: #FFFFFF;
}

.auth-logo {
  height: 120px;
  width: auto;
  display: inline-block;
}

.auth-title {
  color: var(--green-dark);
  margin-top: 16px;
  font-weight: 700;
  font-size: 24px;
}

.auth-body {
  padding: 32px;
}

.auth-form input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 15px;
  font-family: inherit;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.auth-actions .btn {
  padding: 14px 24px;
  flex: 1;
}

.auth-note {
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
  text-align: center;
}

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

.password-wrapper input {
  width: 100%;
  padding: 14px 50px 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0;
  font-size: 15px;
  font-family: inherit;
}

.password-toggle {
  position: absolute;
  right: 18px;
  top: 14px;
  transform: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  color: var(--muted);
}

.password-toggle:hover {
  opacity: 1;
}

/* Admin polish */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}

.admin-grid {
  gap: 24px;
}

.admin-event-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-soft,
.badge.soft {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.badge-success {
  background: #D1FAE5;
  color: #065F46;
}

.status-pending {
  background: #FEF3C7;
  color: #92400E;
}

.status-approved {
  background: #D1FAE5;
  color: #065F46;
}

.status-rejected {
  background: #FEE2E2;
  color: #991B1B;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.admin-table td {
  vertical-align: top;
}

.row-highlight {
  background: #FFFBEB;
}

.small-text {
  font-size: 13px;
}

.panel-block {
  margin-top: 32px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

/* Form helpers */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.form-grid .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.form-row > div {
  flex: 1 1 280px;
}

/* Purchase page specific styles */
.price {
  font-size: 28px;
  font-weight: 800;
  color: var(--green);
  margin: 16px 0;
  letter-spacing: -0.5px;
}

.stock-chip {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
}

.stock-chip.low {
  background: #FEF3C7;
  color: #92400E;
}

.stock-chip.medium {
  background: #DBEAFE;
  color: #1E40AF;
}

.stock-chip.good {
  background: #D1FAE5;
  color: #065F46;
}

/* Mobile refinements */
@media (max-width: 900px) {
  :root {
    --header-h: 70px;
  }

  .site-header {
    padding: 0 20px;
    gap: 12px;
    height: var(--header-h);
  }

  .logo {
    max-height: 50px;
  }

  .site-header nav {
    gap: 8px;
  }

  .site-header nav a,
  .admin-lock {
    padding: 8px 14px;
    font-size: 13px;
  }

  .container {
    padding: 24px 16px;
  }

  .search-wrapper {
    flex-direction: column;
    gap: 12px;
  }

  .search-form {
    width: 100%;
  }

  .filter-btn {
    width: 100%;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }

  .events h2 {
    font-size: 28px;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .table-wrapper {
    margin: 0 -16px;
    padding: 0 16px;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 0 16px;
    height: 65px;
  }

  .logo {
    max-height: 45px;
  }

  .site-header nav a,
  .admin-lock {
    padding: 6px 12px;
    font-size: 12px;
  }

  .admin-lock svg {
    width: 16px;
    height: 16px;
  }

  .container {
    padding: 20px 12px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .btn.small {
    padding: 8px 16px;
    font-size: 13px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
  }

  .events h2 {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .card-body {
    padding: 16px;
  }

  .card-title {
    font-size: 16px;
  }

  .event-title {
    font-size: 32px;
  }

  .sectors-grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    margin-top: 20px;
  }

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

  .form-row {
    flex-direction: column;
  }

  .form-row > div {
    flex: 1 1 100%;
  }

  /* Admin panel mobile improvements */
  .admin-header {
    gap: 8px;
  }

  .admin-header h2 {
    font-size: 20px;
  }

  .badge.soft {
    font-size: 11px;
    padding: 6px 10px;
  }

  .admin-toolbar {
    justify-content: center !important;
  }

  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table {
    font-size: 13px;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px 5px;
    white-space: nowrap;
    font-size: 12px;
  }

  .btn.small {
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .search-form {
    flex-direction: row !important;
    flex: 1;
  }

  .search-form input {
    flex: 1;
    min-width: 0;
  }

  .filter-wrapper {
    position: relative;
  }

  /* Stats cards on mobile */
  .stats-card {
    padding: 14px;
  }

  .stats-amount {
    font-size: 24px;
  }

  /* Form fields on mobile */
  .field input,
  .field textarea,
  .field select {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}
