.explorer-loading-container {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 24, 44, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.explorer-loading-container .loading-spinner {
    width: 50px;
    height: 50px;
    border-width: 5px;
    margin-bottom: 15px;
}

.explorer-loading-container p {
    font-size: 17px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.5px;
    margin: 0;
}

/* Global App Loading Overlay */
.global-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 24, 44, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.global-loading-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.global-loading-overlay .loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.global-loading-overlay .loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.global-loading-overlay .loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.detail-box {
  background: #2e2e3e;
  border: 0 solid var(--glass-border);
  border-radius: 8px;
  padding: 2.5rem;
}

.order-box {
  margin-bottom: 2rem;
}

.order-box>h2 {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.order-box>h2>span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 1em;
  padding: 0.4rem 0.8rem;
}

.main-header {
  margin-bottom: 0;
  margin-top: 2rem;
  text-align: center;
}

.main-header h1,
.sticky-header h1 {
  align-items: center;
  display: flex;
  font-size: 2.5rem;
  font-weight: 700;
  gap: 0.75rem;
  justify-content: center;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.brand-text {
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(310deg,
      rgba(225, 254, 19, 1) 0%,
      rgba(243, 255, 150, 1) 50%,
      rgba(234, 255, 100, 1) 100%);
  background-clip: text;
  display: inline-block;
  font-family: "Saira", sans-serif;
  font-size: 4rem;
  font-weight: 900;
  font-variation-settings: "wdth" 900;
  letter-spacing: -1px;
  margin: 0 auto;
  padding: 0;
  position: relative;
  text-transform: uppercase;
}

.logo-container-integrated {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  margin-left: 25px;
  position: relative;
}

.pizza-logo-img {
  transform: rotate(-10deg);
  top: 23px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  height: auto;
  left: -35px;
  pointer-events: none;
  position: absolute;
  width: 65px;
  z-index: 10;
}

.logged-in .pizza-logo-img {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  height: auto;
  left: -28px;
  pointer-events: none;
  position: absolute;
  top: 11px;
  transform: rotate(-10deg);
  width: 44px;
  z-index: 10;
}

header h1 span:first-child {
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.sticky-header .back-link {
  color: var(--text-secondary);
  display: inline-block;
  font-size: 1.1rem;
  text-decoration: none;
}

.main-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.date-time-row .date-col {
  flex: 2;
}

.date-time-row .time-col {
  flex: 1;
}

.landing-grid {
  margin-top: 2rem;
}

.faq-cta {
  margin-top: 0rem !important;
}

.hero-text {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 1fr;
}

.hero-text .auth-section {
  grid-column: 2;
  grid-row: 1 / span 10;
}

.hero-text .faq-cta {
  grid-column: 1;
  grid-row: 4;
}

.hero-text h2 {
  color: var(--primary);
  font-size: 2.5rem;
  grid-column: 1;
  grid-row: 1;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-text p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  grid-column: 1;
  grid-row: 2;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-text ul {
  grid-column: 1;
  grid-row: 3;
  list-style: none;
  margin-bottom: 2rem;
}

.hero-text li {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  padding-left: 2rem;
  position: relative;
}

.hero-text li::before {
  color: var(--accent);
  content: "✓";
  font-size: 1.2rem;
  font-weight: bold;
  left: 0;
  position: absolute;
  top: 0;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
  overflow-x: clip;
  width: 100%;
}

label {
  color: var(--text-secondary);
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"] {
  -webkit-appearance: none;
  appearance: none;
  background: #191923 !important;
  border: var(--thinLine);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  color: var(--text-primary);
  color-scheme: dark;
  display: block;
  font-family: var(--font-main);
  font-size: 19px;
  max-width: 100% !important;
  min-height: 48px;
  min-width: 0 !important;
  padding: 0.875rem 1rem;
  transition: var(--transition);
  width: 100% !important;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(1) brightness(100) !important;
}

input:focus {
  background: #1e293b !important;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}

.flyout-empty {
  display: none;
}

.forgot-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.checkbox-group {
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.checkbox-container {
  display: flex !important;
  align-items: center !important;
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  font-size: 0.9rem;
  user-select: none;
  min-height: 25px !important;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 22px;
  width: 22px;
  background-color: #14141d;
  border: 1px solid #334155;
  border-radius: 6px;
  transition: var(--transition);
}

.checkbox-container:hover input~.checkmark {
  border-color: var(--accent);
  background-color: rgba(225, 254, 19, 0.05);
}

.checkbox-container input:checked~.checkmark {
  background-color: var(--accent);
  border-color: var(--accent);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6.5px;
  top: 1.5px;
  width: 6px;
  height: 11px;
  border: solid #000;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked~.checkmark:after {
  display: block;
}

.label-text {
  color: #fff !important;
  font-weight: 500 !important;
  line-height: 1.4;
}

.btn {
  font-family: var(--font-main);
  font-weight: 500;
  align-items: center;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  font-size: 19px;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn svg,
.btn-secondary svg,
.btn-danger svg,
.btn-reset-order svg,
.btn-remove-participant svg {
  pointer-events: none;
}

.remove-item-btn {
  align-items: center !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
  border-radius: 8px !important;
  color: #ff3b30 !important;
  cursor: pointer !important;
  display: flex !important;
  flex-shrink: 0 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  height: 48px !important;
  width: 48px !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

.remove-item-btn:hover {
  background: #ff3b30 !important;
  color: #fff !important;
}

.remove-item-btn:active {
  opacity: 0.5 !important;
  transform: scale(0.95);
}

.btn-secondary {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  background: rgba(239, 68, 68, 0.05);
}

.btn-danger:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  aspect-ratio: 1/1;
  border-radius: 50%;
  padding: 0.6rem;
}

.error-msg {
  color: var(--danger);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  min-height: 20px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.success-msg {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent);
  margin-bottom: 1rem;
  padding: 1rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.switch-auth {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 1.5rem;
  text-align: center;
}

.switch-auth a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.switch-auth a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

section#create-section {
  margin-top: 3em;
}

.spinner {
  animation: spin 1s ease-in-out infinite;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  display: inline-block;
  height: 1.2rem;
  margin-left: 0.5rem;
  width: 1.2rem;
}

.btn-primary-new .spinner {
  border-color: rgba(0, 0, 0, 0.1);
  border-top-color: var(--bg-dark);
}

.google-btn .spinner,
.apple-btn .spinner {
  border-color: rgba(255, 255, 255, 0.1);
  border-top-color: #fff;
}

.google-btn {
  display: none !important;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.ipr-container {
  background-color: #0f172a !important;
  border-bottom: 0 solid rgb(236, 237, 237) !important;
  border-top: 0 solid rgb(236, 237, 237) !important;
  color: #9d9d9d !important;
}

/* Footer styles moved to footer.css */

.section-header,
.sticky-header .container {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 2rem;
  margin-top: 0;
}

.sticky-header {
  margin-bottom: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.header-left {
  align-items: center;
  display: flex;
  gap: 1.5rem;
}

.header-welcome {
  font-size: 1.25rem;
  margin: 0;
}





.ad-container {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.03);
  border: 1px dashed rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8rem;
  justify-content: center;
  margin: 2rem auto;
  max-width: 728px;
  min-height: 90px;
  padding: 1rem;
  text-align: center;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.store-badge img {
  height: 48px;
  transition: var(--transition);
  width: auto;
}

.store-badge:hover img {
  filter: brightness(1.1);
  transform: translateY(-2px);
}



.row {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
}

.event-details-card .icon {
  display: inline-block;
  opacity: 0.8;
  width: 24px;
}

.event-details-card .event-date-row {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.event-details-card .event-desc {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.event-details-card .event-domains {
  color: var(--secondary);
  font-size: 0.9rem;
  font-style: italic;
}

.event-action-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
  margin-top: 1.5rem;
}

#gdpr-cookie-message {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  bottom: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  color: var(--text-primary);
  font-family: var(--font-main);
  left: 30px;
  max-width: 380px;
  padding: 1.5rem;
  position: fixed;
  z-index: 9999;
}

#gdpr-cookie-message h4 {
  color: var(--secondary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

#gdpr-cookie-message p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

#gdpr-cookie-message p a {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
}

#gdpr-cookie-message p a:hover {
  text-decoration: underline;
}

#gdpr-cookie-message button {
  background: var(--primary) !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  color: white !important;
  cursor: pointer !important;
  display: block !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  margin-top: 0.5rem !important;
  padding: 0.8rem 1.2rem !important;
  transition: var(--transition) !important;
  width: 100% !important;
}

#gdpr-cookie-message button:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-1px) !important;
}

#gdpr-cookie-message button#gdpr-cookie-advanced {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-secondary) !important;
}

#gdpr-cookie-message button#gdpr-cookie-advanced:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--text-primary) !important;
}

.modal-overlay.active {
  display: flex !important;
}

.modal-overlay {
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.6);
  display: flex !important;
  height: 100%;
  justify-content: center;
  left: 0;
  padding: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay.bottom-sheet {
  align-items: flex-end;
}

.modal-overlay.bottom-sheet .modal-content {
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 30px 30px 0 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem 1.5rem calc(env(safe-area-inset-bottom, 20px) + 20px) 1.5rem;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  background: #14182c;
}

.modal-overlay.bottom-sheet.active .modal-content {
  transform: translateY(0);
}

#legal-modal {
  z-index: 11000 !important;
}

.modal-content {
  margin: auto;
  box-sizing: border-box;
  background: #191923 !important;
  border: none;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  color: var(--text-primary) !important;
  max-height: 95vh;
  max-width: 600px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  width: calc(100% - 2rem);
}

.modal-content.wide {
  max-width: 900px;
}

.modal-content.max-w-450 {
  max-width: 450px;
}

.modal-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  margin-top: -1em !important;
  padding: 1em 0;
  padding: 0 1em !important;
  padding-top: 2em !important;
  position: relative;
  width: 100% !important;
}

#info-overlay .modal-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
  padding: 0;
  position: relative;
}

.modal-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  font-size: 32px;
  height: 44px;
  justify-content: center;
  transition: var(--transition);
  width: 44px;
  line-height: 1;
  padding-bottom: 4px;
  z-index: 100;
}

.badge>span {
  margin-right: 7px;
}

.badge-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

.page-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.share-box {
  background: rgba(139, 92, 246, 0.1);
  border: 1px dashed var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 1.5rem;
}

.share-link {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  color: var(--secondary);
  flex-grow: 1;
  font-family: monospace;
  padding: 0.5rem;
  word-break: break-all;
}


.table-responsive {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
}

td {
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem;
}

th {
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 1rem;
  text-transform: uppercase;
}

tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.modal-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 2rem;
}

.event-header {
  margin-bottom: 3rem;
  text-align: center;
}

.event-header h1 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.item-row {
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
}

.item-row:last-child {
  border-bottom: none;
}

.item-name {
  font-size: 1.1rem;
  font-weight: 500;
}

.qty-controls {
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  display: flex;
  overflow: hidden;
}

.qty-btn {
  background: rgba(0, 0, 0, 0.03);
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.2rem;
  height: 40px;
  transition: background 0.2s;
  width: 40px;
}

.qty-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--primary);
}

.qty-input {
  -moz-appearance: textfield;
  appearance: textfield;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  width: 50px;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input:focus {
  outline: none;
}

.success-box {
  padding: 3rem 1rem;
  text-align: center;
}

.success-icon {
  animation: bounce 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: var(--accent);
  font-size: 4rem;
  margin-bottom: 1rem;
}

.hidden-expired,
.hidden-active {
  display: none !important;
}

.legal-container {
  margin-top: 4rem;
  max-width: 800px;
}

.legal-content h2,
.legal-content h3 {
  color: var(--primary);
  margin-top: 2rem;
}

.legal-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-content ul {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.legal-content a,
.legal-content a:visited,
#legal-modal-content a,
#legal-modal-content a:visited {
  color: var(--accent) !important;
  text-decoration: none;
  transition: var(--transition);
}

.legal-content a:hover,
#legal-modal-content a:hover {
  filter: brightness(1.2) !important;
  text-decoration: underline !important;
}

.faq-item {
  margin-bottom: 2.5rem;
}

.faq-item h3 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.nothingToSee {
  background: #202c33 !important;
  border: 0 !important;
  border-radius: 15px !important;
  color: #fff !important;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 8px 20px 9px 20px !important;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease;
}

.event-card-body {
  width: 100%;
}

.emoji-circle {
  align-items: center;
  border-radius: 50%;
  bottom: 25px;
  display: flex;
  flex-shrink: 0;
  font-size: 1.8em;
  height: 60px;
  justify-content: center;
  position: absolute;
  right: 25px;
  width: 60px;
}

.manual-emoji-input-wrapper {
  flex: 1;
  position: relative;
}

.manual-emoji-input-modern {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  padding: 10px 14px;
  transition: all 0.2s;
  width: 100%;
}

.manual-emoji-input-modern:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  border-style: solid;
  outline: none;
}

.archive-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.archive-container .toggle-archive-btn {
  margin: 0;
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  height: auto;
  min-width: 110px;
  border-radius: 8px;
  display: inline-block;
  flex: none;
}

@media (max-width: 480px) {
  .emoji-grid-content {
    grid-template-columns: repeat(5, 1fr);
    max-height: 200px;
  }

  .emoji-option {
    font-size: 1.4rem;
    height: 42px;
  }

}

/* Login page styles moved to login.css */

.truncate-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apple-btn {
  height: 40px;
  max-width: 300px;
  width: 100%;
}

.apple-btn.loading-active {
  cursor: wait;
  opacity: 0.7;
}

.btn-social img,
.btn-social svg {
  width: 20px;
}

#info-overlay.info-overlay-title .modal-header {
  padding-left: 0 !important;
}

#info-overlay.info-overlay-title .modal-header h2 {
  margin-right: auto;
}

.info-overlay-trigger {
  align-items: center;
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  top: 0;
  position: relative;
  padding: 10px;
}

.info-overlay-trigger .btn-secondary-outline {
  max-width: 50%;
}

.btn-secondary-outline {
  background: transparent;
  border: var(--thinLine);
  border-radius: 8px;
  color: #f4ff4f;
  cursor: pointer;
  font-size: 0.85rem;
  height: 40px;
  max-width: 300px;
  padding: 10px 20px;
  width: 100%;
}

.btn-secondary-outline:hover {
  border-color: #f4ff4f;
  color: #ffffff;
}

.modal-overlay .modal-content {
  background: #1e1e2d !important;
  border: 1px solid #334155 !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
  color: #ffffff !important;
  padding: 2rem !important;
  overflow: hidden;
  position: relative; /* Anchor for sub-views */
}

/* Explorer Stacking Animations */
#explorer-view-order:not(.hidden), 
#explorer-view-edit:not(.hidden) {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background: #1e1e2d;
    display: flex;
    flex-direction: column;
    animation: slideUpExplorer 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUpExplorer {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header h2 {
  color: #fff !important;
  display: block !important;
  font-size: 28px;
  font-weight: 700 !important;
  margin: 0;
  max-width: 500px;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  transform: rotate(90deg) !important;
}

.modal-overlay .form-group label {
  color: #94a3b8 !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem !important;
}

.modal-overlay .form-group input {
  background: #282b3e !important;
  border: 1px solid #334155 !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  padding: 12px 16px !important;
  transition: var(--transition) !important;
}

.modal-overlay .form-group input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(225, 254, 19, 0.1) !important;
}

.info-modal {
  max-width: 600px !important;
  text-align: left;
}

.hero-text-overlay {
  padding: 0;
}

@media (max-width: 480px) {
  .modal-overlay .modal-content {
    border-radius: 16px !important;
    padding: 1.25rem !important;
  }

  .hero-text-overlay h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

}

.hero-text-overlay h2 {
  color: var(--accent);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.hero-text-overlay p {
  color: #94a3b8;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.hero-text-overlay ul {
  list-style: none;
  margin-bottom: 2rem;
}

.hero-text-overlay li {
  color: #e2e8f0;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.hero-text-overlay li::before {
  color: var(--accent);
  content: "✓";
  font-weight: 800;
  left: 0;
  position: absolute;
}

.faq-cta-overlay {
  background: #2d2d3f;
  border-radius: 12px;
  margin-top: 2rem;
  padding: 1.5rem;
}

.faq-cta-overlay h3 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.faq-cta-overlay p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.switch-auth-new {
  margin-top: 1.5rem;
  text-align: center;
}

.switch-auth-new a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}


[for="remember-me"].checkbox-container .label-text {
  padding-left: 0 !important;
}


.adds {
  visibility: hidden;
}




.modal-tabs {
  display: flex;
  gap: 0.5rem;
  margin-left: 1.5rem;
}

.modal-tab {
  background: transparent;
  border: none;
  border-radius: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 16px;
  transition: var(--transition);
}

.modal-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.modal-tab.active {
  background: var(--accent);
  color: var(--bg-dark);
}

.explorer-tab-content.hidden {
  display: none;
}

.btn-emoji {
  align-items: center;
  background: transparent;
  border: none;
  color: #8696a0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  padding: 0;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  transition: var(--transition);
}

.btn-emoji:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.emoji-picker-flyout {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background: rgba(35, 49, 56, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  bottom: 80px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  left: 15px;
  max-height: 320px;
  overflow: hidden;
  position: absolute;
  width: 320px;
  z-index: 1000;
}

.emoji-picker-flyout .emoji-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(7, 1fr);
  overflow-y: auto;
  padding: 12px;
}

.emoji-picker-flyout .emoji-option {
  align-items: center;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  font-size: 1.6rem;
  height: 40px;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.emoji-picker-flyout .emoji-option:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.2);
}

.btn-send:hover {
  background: #f4ff4f;
  transform: scale(1.05);
}

.btn-card {
  align-items: center;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex: 1;
  font-size: 0.85rem;
  font-weight: 700;
  justify-content: center;
  padding: 10px 5px;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-card-primary {
  background: var(--accent);
  color: #1a1a24 !important;
}

.btn-card-primary:hover {
  background: #f4ff4f;
  transform: translateY(-2px);
}

.btn-card-secondary {
  background: transparent;
  border: 1px solid #334155;
  color: #ffffff !important;
}

.btn-card-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #475569;
}

.switch-container {
  display: inline-block;
  height: 36px;
  margin-bottom: 0;
  position: relative;
  width: 44px;
}

.switch-container input {
  height: 0;
  opacity: 0;
  width: 0;
}

.switch-sliderround {
  background-color: #94a3b8;
  border-radius: 34px;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.4s;
}

.switch-sliderround:before {
  background-color: #191923;
  border-radius: 50%;
  bottom: 3px;
  content: "";
  height: 22px;
  left: 3px;
  position: absolute;
  transition: 0.4s;
  width: 22px;
}

input:checked~.switch-sliderround {
  background-color: var(--accent);
}

input:checked~.switch-sliderround:before {
  transform: translateX(16px);
}

.hidden-expired {
  display: none !important;
}

.cursor-pointer {
  cursor: pointer;
}

.explorer-scroll-area {
  max-height: 75vh;
  overflow-y: auto;
  padding-right: 5px;
}

.explorer-scroll-area::-webkit-scrollbar {
  width: 4px;
}

.explorer-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}


.btn-back {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  height: 38px;
  justify-content: center;
  transition: var(--transition);
  width: 38px;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-2px);
}



#order-items-modal-container .item-row {
  align-items: center !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  display: flex !important;
  justify-content: space-between !important;
  margin-bottom: 1rem !important;
  padding: 1rem 1.25rem !important;
  transition: var(--transition) !important;
}

#order-items-modal-container .checkmark {
  left: 0;
}

#order-items-modal-container .item-row:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: var(--accent) !important;
}

#order-items-modal-container .item-name {
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
}

#order-items-modal-container .qty-controls {
  align-items: center !important;
  background: #14141d !important;
  border: 1px solid #334155 !important;
  border-radius: 12px !important;
  display: flex !important;
  overflow: hidden !important;
}

#order-items-modal-container .qty-btn {
  align-items: center !important;
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  cursor: pointer !important;
  display: flex !important;
  font-size: 1.2rem !important;
  height: 42px !important;
  justify-content: center !important;
  transition: var(--transition) !important;
  width: 42px !important;
}

#order-items-modal-container .qty-btn:hover {
  background: rgba(255, 254, 19, 0.1) !important;
  color: var(--accent) !important;
}

#order-items-modal-container .qty-input {
  background: transparent !important;
  border: none !important;
  color: var(--accent) !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  width: 45px !important;
}

#order-items-modal-container .qty-input::-webkit-inner-spin-button,
#order-items-modal-container .qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}




#create-access-optional .checkmark {
  left: 0;
}



.nav-create-inner {
  align-items: center;
  background: #e1fe13;
  border-radius: 50%;
  box-shadow: 0 4px 15px var(--primary-glow);
  color: white;
  display: flex;
  height: 48px;
  justify-content: center;
  transform: translateY(-5px);
  transition: var(--transition);
  width: 48px;
}

#nav-create-btn {
  position: relative;
  top: -10px;
  z-index: 2;
}

#nav-create-btn:after {
  background: #121212;
  border-radius: 100%;
  bottom: -19px;
  content: "";
  height: 93px;
  position: absolute;
  width: 93px;
  z-index: -1;
}

.nav-create-inner svg {
  height: 26px;
  margin-bottom: 0;
  opacity: 1;
  stroke-width: 2.5;
  width: 26px;
}

.nav-create-inner svg line {
  stroke: #121212;
}

.nav-item:active .nav-create-inner {
  transform: translateY(-3px) scale(0.92);
}

.nav-item.active {
  color: var(--accent);
}

.nav-item.active svg {
  opacity: 1;
  stroke: var(--accent);
}

.attendance-options {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.attendance-option {
  cursor: pointer;
  display: block;
  flex: 1;
}

.attendance-option input[type="radio"] {
  display: none;
}

.attendance-option .opt-card {
  align-items: center;
  background: #14141d;
  border: 1px solid #334155;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
  padding: 0.75rem;
  text-align: center;
  transition: var(--transition);
}

.attendance-option:hover .opt-card {
  background: rgba(225, 254, 19, 0.02);
  border-color: rgba(225, 254, 19, 0.4);
}

.attendance-option input:checked+.opt-card {
  background: rgba(225, 254, 19, 0.1);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(225, 254, 19, 0.2);
}

.attendance-option .opt-emoji {
  font-size: 1.5rem;
}

.attendance-option .opt-label {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
}

.attendance-option input:checked+.opt-card .opt-label {
  color: var(--accent);
}

.attendance-summary-bar {
  margin-top: 0;
  padding-top: 0;
}

.badge {
  border-radius: 8px;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  padding: 0.35rem 0.6rem;
  vertical-align: middle;
}

.badge-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.badge-warning {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.2);
  color: #facc15;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.letter-spacing-1 {
  letter-spacing: 1px;
}

.btn-remove-participant {
  align-items: center;
  background: rgba(239, 68, 68, 0.1);
  border: none;
  border-radius: 6px;
  color: #ef4444;
  cursor: pointer;
  display: flex;
  height: 28px;
  justify-content: center;
  transition: var(--transition);
  width: 28px;
}

.btn-remove-participant:hover {
  background: #ef4444;
  color: #ffffff;
}

.btn-reset-order {
  align-items: center;
  background: rgba(43, 108, 176, 0.1);
  border: none;
  border-radius: 6px;
  color: #2b6cb0;
  cursor: pointer;
  display: flex;
  height: 28px;
  justify-content: center;
  transition: var(--transition);
  width: 28px;
}

.btn-reset-order:hover {
  background: #2b6cb0;
  color: #ffffff;
}

#load-more-container {
  padding: 15px 0;
}

#load-more-btn {
  background: #202c33 !important;
  border: 0 !important;
  border-radius: 15px !important;
  color: #fff !important;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 11px 20px 9px 20px !important;
  text-transform: uppercase;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

#load-more-btn:hover {
  background: #2a3942 !important;
  transform: translateY(-1px);
}

#load-more-btn:active {
  transform: translateY(0);
}

.ptr-element {
  align-items: center;
  display: flex;
  height: 60px;
  justify-content: center;
  left: 0;
  pointer-events: none;
  position: fixed;
  top: -60px;
  transition: transform 0.15s cubic-bezier(0.2, 0, 0.2, 1);
  width: 100%;
  z-index: 10001;
}

.ptr-icon {
  align-items: center;
  background: var(--bg-dark);
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  color: var(--accent);
  display: flex;
  height: 38px;
  justify-content: center;
  transform: scale(0);
  transition:
    transform 0.2s ease,
    border-color 0.2s;
  width: 38px;
}

.ptr-icon::after {
  content: "↓";
  font-size: 20px;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.ptr-element.ptr-visible .ptr-icon {
  transform: scale(1);
}

.ptr-element.ptr-ready .ptr-icon {
  background: var(--accent);
  color: var(--bg-dark);
}

.ptr-element.ptr-ready .ptr-icon::after {
  transform: rotate(180deg);
}

.ptr-element.ptr-loading .ptr-icon::after {
  animation: ptr-spin 0.6s linear infinite;
  border: 2px solid transparent;
  border-radius: 50%;
  border-right-color: currentColor;
  border-top-color: currentColor;
  content: "";
  height: 18px;
  width: 18px;
}

.section-toggle-btn {
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.75rem;
  text-align: center;
  transition: var(--transition);
  width: 100%;
}

.section-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.optional-section {
  animation: fadeInSection 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  padding: 1rem;
}

.optional-section input[type="text"],
.optional-section input[type="date"],
.optional-section input[type="time"],
.optional-section input[type="email"],
.optional-section select {
  width: 100% !important;
}

input[type="date"],
input[type="time"] {
  color-scheme: dark !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="15" viewBox="0 0 24 24"><path fill="white" d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z"/></svg>');
  background-size: contain;
  cursor: pointer;
  opacity: 1 !important;
}

input[type="time"]::-webkit-calendar-picker-indicator {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24"><path fill="white" d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10s10-4.5 10-10S17.5 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-13c-.55 0-1 .45-1 1v5.29l3.15 3.15c.39.39 1.02.39 1.41 0a.996.996 0 0 0 0-1.41L13 11.59V8c0-.55-.45-1-1-1z"/></svg>');
  background-size: contain;
  cursor: pointer;
  opacity: 1 !important;
}

.item-input-group {
  flex: 1;
  width: 100%;
}

.item-input-group input {
  min-width: 0 !important;
  background: #14141d !important;
  border: 1px solid #334155 !important;
  color: #fff !important;
  flex: 1 !important;
  min-height: 48px !important;
  padding: 0.8rem 1rem !important;
  width: auto !important;
}

.item-input-group.row {
  align-items: center !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0.5rem !important;
  margin-bottom: 0.5rem;
  width: 100% !important;
}

.btn-primary {
  background: var(--accent);
  box-shadow: 0 4px 14px 0 rgba(225, 254, 19, 0.2);
  color: var(--bg-dark);
  font-weight: 700;
}

.btn-primary:hover {
  background: #f4ff4f;
  box-shadow: 0 6px 20px 0 rgba(225, 254, 19, 0.3);
  transform: translateY(-2px);
}

.opacity-05 {
  opacity: 0.5;
}

.pointer-events-none {
  pointer-events: none;
}

.hr-divider {
  border: 0;
  border-top: 1px solid var(--primary-glow);
  margin: 1.25rem 0;
  opacity: 0.5;
}



@media (max-width: 768px) {
  * {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  *::-webkit-scrollbar {
    display: none;
  }

}

.archive-header {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.event-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.event-badge-admin {
  background: rgba(229, 255, 0, 0.15);
  color: #e5ff00;
  border: 1px solid rgba(229, 255, 0, 0.2);
}

.event-badge-co-admin {
  background: rgba(167, 139, 250, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.btn-success-flash {
  animation: button-success-pulse 0.4s ease;
  background: var(--accent);
  color: var(--bg-dark);
}

.poll-option-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.poll-vote-radio {
  opacity: 0.4;
  transform: scale(0.9);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
}

.poll-vote-radio.selected {
  opacity: 1 !important;
  transform: scale(1.1) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.poll-vote-radio:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.event-card {
  cursor: pointer !important;
  position: relative !important;
  transform: translateZ(0);
}

.badge-status {
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.event-card-meta-row .badge-error,
.event-card-meta-row .badge-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.event-card-meta-row .badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  color: #ef4444;
  margin-bottom: 2rem;
  padding: 1rem;
  text-align: center;
}

.info-box {
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 1rem;
}

.info-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.input-with-action {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.input-with-action input {
  flex: 1 !important;
  width: auto !important;
  min-width: 0 !important;
}

.btn-input-action {
  background: #191923;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  border-radius: 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-input-action:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(225, 254, 19, 0.1);
}

.map-modal {
  max-width: 600px;
  width: 95% !important;
  z-index: 3001;
}

#map-picker-modal {
  z-index: 999999 !important;
}

#map-picker-modal.active {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transition: none !important;
}

.map-search-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.map-search-bar input {
  flex: 1;
}

.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #191923;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  z-index: 1001;
  max-height: 250px;
  overflow-y: auto;
  margin-top: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  text-align: left;
}

.search-result-item:hover {
  background: rgba(225, 254, 19, 0.05);
  color: var(--accent);
}

.search-result-item:not(:last-child) {
  border-bottom: 1px solid var(--glass-border);
}

.map-footer {
  padding-top: 0.5rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 0.5rem;
}

#picker-selected-address {
  max-width: 60%;
}

.leaflet-container .leaflet-control-attribution {
  background: transparent !important;
  color: var(--text-secondary) !important;
  font-size: 0.6rem !important;
}

.leaflet-bar a {
  background: #191923 !important;
  color: var(--text-secondary) !important;
  border-color: var(--glass-border) !important;
}

.btn-action-ios {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  width: 44px;
  height: 44px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action-ios:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.1);
}

.btn-action-ios.color-danger {
  color: #ff3b30;
}

.ios-nav-item:active {
  transform: scale(0.95);
}

#create-event-modal,
#event-explorer-modal,
#legal-modal,
#settings-modal,
#info-overlay,
#calendar-modal,
#messenger-modal,
#confirm-modal {
  display: flex !important;
  visibility: hidden !important;
  opacity: 0;
  pointer-events: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100dvh !important;
  z-index: 10000 !important;
  align-items: flex-end !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  transition: opacity 0.4s ease, visibility 0.4s ease !important;
}

#create-event-modal.active,
#event-explorer-modal.active,
#legal-modal.active,
#settings-modal.active,
#info-overlay.active,
#calendar-modal.active,
#messenger-modal.active,
#confirm-modal.active {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#create-event-modal .modal-content,
#event-explorer-modal .modal-content,
#legal-modal .modal-content,
#settings-modal .modal-content,
#info-overlay .modal-content,
#calendar-modal .modal-content,
#messenger-modal .modal-content,
#confirm-modal .modal-content {
  width: 100% !important;
  max-width: 100% !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: #14182c !important;
  padding: 0 !important;
  transform: translateY(100%) !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: none !important;
  border: 0 !important;
}

#create-event-modal.active .modal-content,
#event-explorer-modal.active .modal-content,
#legal-modal.active .modal-content,
#settings-modal.active .modal-content,
#info-overlay.active .modal-content,
#calendar-modal.active .modal-content,
#messenger-modal.active .modal-content,
#confirm-modal.active .modal-content {
  transform: translateY(0) !important;
}

#create-event-modal .modal-header,
#event-explorer-modal .modal-header,
#legal-modal .modal-header,
#settings-modal .modal-header,
#info-overlay .modal-header,
#messenger-modal .modal-header {
  margin-bottom: 0;
  padding: 1.5rem 1.2rem 1rem 1.2rem !important;
  background: #14182c;
  z-index: 10;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
}

#details-event-desc {
  font-size: 19px !important;
  color: #9c9fad !important;
  font-weight: 500;
}

#details-event-date-row {
  font-size: 17px !important;
  color: var(--accent) !important;
  font-weight: 500;
}

/* --- Modal Saving Loading State --- */
.modal-loading-overlay {
    position: absolute;
    top: 52px; /* Estimate for header height, adjusted via absolute mapping if needed */
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 24, 44, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.modal-loading-overlay .loading-spinner {
    width: 50px;
    height: 50px;
    border-width: 5px;
    margin-bottom: 15px;
}

.modal-loading-text {
    font-size: 17px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.5px;
}