/* =====================================================
   SECRET ROOM — I-Gaming Calendar 2026
   Brand Colors:
     Yellow  #F5DA0F  (primary accent)
     Green   #C8E712  (secondary accent)
     Blue    #2E39F7  (tertiary)
     Pink    #F6ADE5  (tertiary)
     Black   #1B1B1B  (background)
     White   #FBF2E8  (warm white)
   ===================================================== */

body { background-color: #1B1B1B; color: #FBF2E8; }

/* Сетка */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  border: 1px solid #333333;
  border-radius: 24px;
  overflow: hidden;
  background-color: #333333;
  gap: 1px;
}
@media (min-width: 768px) { .calendar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .calendar-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .calendar-grid { grid-template-columns: repeat(4, 1fr); } }

.cell {
  background-color: #222222;
  padding: 24px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background-color 0.2s;
}
.cell:hover { background-color: #2A2A2A; }

/* Акцентная клетка */
.cell--highlight { background-color: #2A2510; }
.month-num--accent { color: #F5DA0F; }
.month-name--accent { color: #F5DA0F; }

/* Типографика месяца */
.month-num { font-size: 14px; color: #666666; margin-bottom: 4px; }
.month-name { font-size: 18px; font-weight: 700; color: #FBF2E8; margin-bottom: 20px; }

/* Major card */
.major-card {
  background: linear-gradient(135deg, #2E39F7 0%, #1a1f8a 100%);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
  border: 1px solid rgba(245, 218, 15, 0.15);
}
.major-card:hover { transform: translateY(-2px); }
.major-card.purple { background: linear-gradient(135deg, #2E39F7 0%, #1a1f8a 100%); }
.major-card.blue { background: linear-gradient(135deg, #2E39F7 0%, #1B1B1B 100%); }
.major-card.orange { background: linear-gradient(135deg, #F5DA0F 0%, #8a7a00 100%); }
.major-card.green { background: linear-gradient(135deg, #C8E712 0%, #5a6800 100%); }
.major-card.teal { background: linear-gradient(135deg, #2E39F7 0%, #1a1f8a 100%); }
.major-card.indigo { background: linear-gradient(135deg, #2E39F7 0%, #1a1f8a 100%); }
.major-card.red { background: linear-gradient(135deg, #F5DA0F 0%, #8a7a00 100%); }
.major-card.amber { background: linear-gradient(135deg, #F5DA0F 0%, #C8E712 100%); }

/* Новый стиль — элегантный темный с акцентом */
.major-card.elegant-dark {
  background: linear-gradient(135deg, #2A2A2A 0%, #1B1B1B 100%);
  border: 2px solid #F6ADE5;
  box-shadow: 0 4px 20px rgba(246, 173, 229, 0.15);
}
.major-card.elegant-dark:hover {
  box-shadow: 0 8px 30px rgba(246, 173, 229, 0.25);
  border-color: #F6ADE5;
}

.major-card.elegant-green {
  background: linear-gradient(135deg, #2A2A2A 0%, #1B1B1B 100%);
  border: 2px solid #C8E712;
  box-shadow: 0 4px 20px rgba(200, 231, 18, 0.15);
}
.major-card.elegant-green:hover {
  box-shadow: 0 8px 30px rgba(200, 231, 18, 0.25);
  border-color: #C8E712;
}

/* Картинка */
.event-img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
  opacity: 0.9;
}

/* Теги */
.tag { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.tag-visa { background: rgba(0,0,0,0.4); color: #FBF2E8; border: 1px solid rgba(245, 218, 15, 0.25); }
.tag-no-visa { background: rgba(200, 231, 18, 0.2); color: #C8E712; border: 1px solid rgba(200, 231, 18, 0.3); }

/* Модалка */
.modal-open { overflow: hidden; }

/* Sticky табы */
.modal-tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #222222;
  border-bottom: 1px solid #333333;
  display: flex;
  gap: 0;
  padding: 0;
}

.tab-btn {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: #888888;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-btn.active {
  color: #F5DA0F;
  border-bottom-color: #F5DA0F;
}

.tab-btn:hover:not(.active) {
  color: #FBF2E8;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Uni-tag */
.uni-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.uni-tag-gray {
  background: rgba(251, 242, 232, 0.08);
  color: rgba(251, 242, 232, 0.85);
  border: 1px solid rgba(251, 242, 232, 0.10);
}

.uni-tag-accent {
  background: rgba(245, 218, 15, 0.18);
  color: #F5DA0F;
  border: 1px solid rgba(245, 218, 15, 0.30);
}

.uni-tag-light-transparent {
  background: rgba(251, 242, 232, 0.10);
  color: rgba(251, 242, 232, 0.90);
}

.uni-tag-red {
  background: rgba(239, 68, 68, 0.18);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.30);
}

.uni-tag-outline {
  background: transparent;
  color: rgba(251, 242, 232, 0.85);
  border: 1px solid rgba(251, 242, 232, 0.18);
}

/* Access Modal (Glassmorphism) */
.access-modal-panel {
  animation: accessModalSlideIn 0.4s ease-out;
}

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

/* =====================================================
   CONTROLS PANEL
   ===================================================== */

.controls-panel {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-top: 24px !important;
}

@media (min-width: 769px) {
  .controls-panel {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
  }
}

.controls-row {
  display: flex !important;
  gap: 12px !important;
}

@media (max-width: 768px) {
  .controls-row {
    flex-direction: column !important;
    width: 100% !important;
  }
}

@media (min-width: 769px) {
  .controls-row {
    flex-direction: row !important;
    align-items: flex-end !important;
    flex: 0 0 auto !important;
    width: auto !important;
  }
}

@media (max-width: 768px) {
  .citizenship-wrapper {
    width: 100% !important;
  }
}

@media (min-width: 769px) {
  .citizenship-wrapper {
    flex: 0 0 auto !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    width: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    min-height: 44px !important;
  }
}

.citizenship-select-box {
  background-color: #2A2A2A !important;
  border: 1px solid #444444 !important;
  border-radius: 12px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 4px !important;
  transition: border-color 0.2s !important;
}

@media (max-width: 768px) {
  .citizenship-select-box {
    width: 100% !important;
  }
}

@media (min-width: 769px) {
  .citizenship-select-box {
    width: auto !important;
    min-width: 180px !important;
    max-width: 250px !important;
  }
}

.citizenship-select-box:hover {
  border-color: rgba(245, 218, 15, 0.5);
}

.citizenship-select,
#citizenshipSelect {
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #FBF2E8 !important;
  font-size: 14px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  padding: 0 12px !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F5DA0F' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  padding-right: 32px !important;
}

.filters-group {
  display: flex !important;
  align-items: center !important;
  gap: 1px !important;
  background-color: #2A2A2A !important;
  padding: 4px !important;
  border-radius: 12px !important;
  border: 1px solid #444444 !important;
  height: 44px !important;
}

@media (max-width: 768px) {
  .filters-group {
    width: 100% !important;
    flex: 0 1 auto !important;
  }
}

@media (min-width: 769px) {
  .filters-group {
    width: auto !important;
    min-width: 280px !important;
    max-width: 320px !important;
    flex: 0 0 auto !important;
  }
}

.filter-btn {
  flex: 1 !important;
  height: 36px !important;
  padding: 0 16px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: bold !important;
  color: #FBF2E8 !important;
  background: transparent !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background-color 0.2s !important;
  white-space: nowrap !important;
}

.filter-btn:hover {
  background-color: #333333 !important;
}

.filter-divider {
  width: 1px !important;
  height: 16px !important;
  background-color: #444444 !important;
}

.calendar-action-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

@media (max-width: 768px) {
  .calendar-action-group {
    width: 100% !important;
  }
}

@media (min-width: 769px) {
  .calendar-action-group {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 220px !important;
    max-width: 240px !important;
  }
}

.add-calendar-btn {
  width: 100% !important;
  height: 44px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #999 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border: 1.5px solid #444 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-shadow: none !important;
}

.add-calendar-btn:hover {
  border-color: #F5DA0F !important;
  color: #F5DA0F !important;
  background: rgba(245,218,15,0.05) !important;
}

.add-calendar-btn:active {
  transform: scale(0.97);
}

/* Brand cards */
.brand-card {
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  background: #1B1B1B;
  border: 1px solid #333333;
  border-radius: 10px;
  text-align: center;
  min-height: 130px;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(245, 218, 15, 0.15);
  border-color: #F5DA0F;
}

.brand-initials {
  transition: all 0.3s ease;
}

.brand-card:hover .brand-initials {
  transform: scale(1.1);
}

/* Category-specific initials gradients */
.brand-initials-payments {
  background: linear-gradient(135deg, rgba(200, 231, 18, 0.3), rgba(200, 231, 18, 0.15));
  color: #C8E712;
}

.brand-initials-affiliate {
  background: linear-gradient(135deg, rgba(245, 218, 15, 0.3), rgba(245, 218, 15, 0.15));
  color: #F5DA0F;
}

.brand-initials-operator {
  background: linear-gradient(135deg, rgba(46, 57, 247, 0.3), rgba(46, 57, 247, 0.15));
  color: #7B84FF;
}

.brand-initials-adtech {
  background: linear-gradient(135deg, rgba(246, 173, 229, 0.3), rgba(246, 173, 229, 0.15));
  color: #F6ADE5;
}

.brand-initials-media {
  background: linear-gradient(135deg, rgba(246, 173, 229, 0.3), rgba(246, 173, 229, 0.15));
  color: #F6ADE5;
}

.brand-initials-default {
  background: linear-gradient(135deg, rgba(245, 218, 15, 0.3), rgba(200, 231, 18, 0.15));
  color: #F5DA0F;
}

.brand-category-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.2s;
}

/* Category-specific pills */
.brand-category-payments {
  background: rgba(200, 231, 18, 0.12);
  color: #C8E712;
  border: 1px solid rgba(200, 231, 18, 0.3);
}

.brand-category-affiliate {
  background: rgba(245, 218, 15, 0.12);
  color: #F5DA0F;
  border: 1px solid rgba(245, 218, 15, 0.3);
}

.brand-category-operator {
  background: rgba(46, 57, 247, 0.12);
  color: #7B84FF;
  border: 1px solid rgba(46, 57, 247, 0.3);
}

.brand-category-adtech {
  background: rgba(246, 173, 229, 0.12);
  color: #F6ADE5;
  border: 1px solid rgba(246, 173, 229, 0.3);
}

.brand-category-media {
  background: rgba(246, 173, 229, 0.12);
  color: #F6ADE5;
  border: 1px solid rgba(246, 173, 229, 0.3);
}

.brand-category-default {
  background: rgba(245, 218, 15, 0.12);
  color: #F5DA0F;
  border: 1px solid rgba(245, 218, 15, 0.25);
}

.brand-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(27, 27, 27, 0.97);
  color: #FBF2E8;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
  border: 1px solid rgba(245, 218, 15, 0.25);
  min-width: 140px;
  max-width: 200px;
  white-space: normal;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.brand-card:hover .brand-tooltip {
  opacity: 1;
}

@media (hover: none) {
  .brand-tooltip {
    display: none;
  }
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #FBF2E8;
  padding: 4px;
}

.brand-icon-fallback {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #F5DA0F;
  color: #1B1B1B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}

.brand-name {
  font-size: 12px;
  font-weight: 600;
  color: #FBF2E8;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
  width: 100%;
}

.brand-category {
  font-size: 10px;
  color: #F5DA0F;
  padding: 2px 8px;
  background: rgba(245, 218, 15, 0.1);
  border-radius: 4px;
}

/* Restaurant cards */
.restaurant-card {
  transition: all 0.2s ease;
  position: relative;
  padding-right: 120px;
}

.restaurant-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 218, 15, 0.4) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.restaurant-card .restaurant-description {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: 100%;
}

.vibe-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
  transition: transform 0.2s;
}

.vibe-tag-quiet {
  background: rgba(200, 231, 18, 0.15);
  color: #C8E712;
  border: 1px solid rgba(200, 231, 18, 0.3);
}

.vibe-tag-sit {
  background: rgba(46, 57, 247, 0.15);
  color: #7B84FF;
  border: 1px solid rgba(46, 57, 247, 0.3);
}

.vibe-tag-loud {
  background: rgba(245, 218, 15, 0.15);
  color: #F5DA0F;
  border: 1px solid rgba(245, 218, 15, 0.3);
}

.vibe-tag-dance {
  background: rgba(246, 173, 229, 0.15);
  color: #F6ADE5;
  border: 1px solid rgba(246, 173, 229, 0.3);
}

.restaurant-check-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 218, 15, 0.2), rgba(200, 231, 18, 0.2));
  color: #F5DA0F;
  border: 1px solid rgba(245, 218, 15, 0.35);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245, 218, 15, 0.15);
  backdrop-filter: blur(4px);
}

/* Side Events Cards */
.side-event-card {
  transition: all 0.2s ease;
  cursor: default;
  border: 1px solid rgba(255,255,255,0.06);
}

.side-event-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.side-event-bg-icon {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 100px;
  height: 100px;
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.side-event-card:hover .side-event-bg-icon {
  opacity: 0.12;
}

.side-event-type-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid;
}

/* Modal Redesign */
.modal-hero {
  position: relative;
  height: 200px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  border-radius: 16px 16px 0 0;
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(27, 27, 27, 0.6);
  backdrop-filter: blur(4px);
  border: none;
  color: #FBF2E8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(27, 27, 27, 0.85);
  transform: scale(1.05);
}

.weather-overlay {
  position: absolute;
  top: 20px;
  left: 16px;
  background: rgba(27, 27, 27, 0.75);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 8px;
  color: #FBF2E8;
  font-size: 13px;
  animation: slideInFromTop 0.4s ease-out;
}

.weather-overlay .temp {
  font-weight: 600;
  font-size: 15px;
  color: #F5DA0F;
}

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

.modal-info-section {
  padding: 12px 16px;
  animation: fadeIn 0.3s ease-out 0.1s both;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #FBF2E8;
}

.modal-location,
.modal-dates {
  font-size: 0.875rem;
  color: #888888;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.modal-description {
  font-size: 0.875rem;
  color: #BBBBBB;
  margin-top: 8px;
  line-height: 1.4;
}

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

.modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px 20px 10px;
  animation: fadeIn 0.3s ease-out 0.2s both;
}

.stat-card {
  background: #1B1B1B;
  border: 1px solid #333333;
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 218, 15, 0.3);
}

.stat-value {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.1;
}

.stat-value.attendees {
  color: #F5DA0F;
}

.stat-value.visa-free {
  color: #C8E712;
  font-size: 14px;
}

.stat-value.visa-required {
  color: #F5DA0F;
  font-size: 14px;
}

.stat-value.visa-banned {
  color: #F87171;
  font-size: 14px;
}

.stat-value.promo {
  color: #F6ADE5;
}

.stat-value.no-promo {
  color: #666666;
  font-size: 12px;
}

.stat-label {
  font-size: 9px;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.modal-footer {
  display: flex;
  gap: 10px;
  padding: 12px 20px 16px;
  border-top: 1px solid #333333;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.modal-footer button {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-calendar {
  background: #222222;
  border: 1px solid #333333;
  color: #FBF2E8;
}

.btn-calendar:hover {
  background: rgba(251, 242, 232, 0.06);
}

.btn-promo {
  background: linear-gradient(135deg, #F5DA0F, #C8E712);
  border: none;
  color: #1B1B1B;
  box-shadow: 0 4px 14px rgba(245, 218, 15, 0.3);
}

.btn-promo:hover {
  opacity: 0.9;
  box-shadow: 0 6px 20px rgba(245, 218, 15, 0.4);
}

/* Promo Toast */
.promo-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  background: linear-gradient(135deg, #2A2A2A, #1B1B1B);
  border: 1px solid rgba(245, 218, 15, 0.3);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  min-width: 320px;
  max-width: 400px;
  opacity: 0;
  transition: all 0.3s ease-out;
}

.promo-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.promo-toast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.promo-toast-title {
  font-size: 16px;
  font-weight: 700;
  color: #FBF2E8;
}

.promo-toast-close {
  background: transparent;
  border: none;
  color: #888888;
  cursor: pointer;
  font-size: 20px;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-toast-close:hover {
  color: #FBF2E8;
}

.promo-code-display {
  background: rgba(245, 218, 15, 0.08);
  border: 1px solid rgba(245, 218, 15, 0.25);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  margin-bottom: 12px;
}

.promo-code-value {
  font-size: 24px;
  font-weight: 700;
  color: #F5DA0F;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
}

.promo-copy-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #F5DA0F, #C8E712);
  border: none;
  border-radius: 8px;
  color: #1B1B1B;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.promo-copy-btn:hover {
  opacity: 0.9;
}

.promo-copy-btn.copied {
  background: #C8E712;
}

/* Brands Grid */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px 0;
}

@media (max-width: 640px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =====================================================
   CALENDAR PICKER MODAL
   ===================================================== */

.calendar-picker-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.calendar-picker-modal.show {
  opacity: 1;
  pointer-events: all;
}

.calendar-picker-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.calendar-picker-content {
  position: relative;
  background: #2A2A2A;
  border-radius: 16px;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid #444444;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.calendar-picker-modal.show .calendar-picker-content {
  transform: scale(1);
}

.calendar-picker-header {
  padding: 20px 24px;
  border-bottom: 1px solid #444444;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-picker-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #FBF2E8;
  margin: 0;
}

.calendar-picker-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #888888;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.calendar-picker-close:hover {
  background: #444444;
  color: #FBF2E8;
}

.calendar-picker-body {
  padding: 16px;
  max-height: calc(90vh - 80px);
  overflow-y: auto;
}

.calendar-option {
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1px solid #444444;
  background: #222222;
  color: #FBF2E8;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.calendar-option:hover {
  background: #333333;
  border-color: #F5DA0F;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 218, 15, 0.15);
}

.calendar-option:active {
  transform: translateY(0);
}

.calendar-option:last-child {
  margin-bottom: 0;
}

.calendar-icon {
  width: 24px;
  height: 24px;
  color: #F5DA0F;
  flex-shrink: 0;
}

.calendar-option span {
  flex: 1;
  text-align: left;
}

@media (max-width: 768px) {
  .calendar-picker-content {
    max-width: 95%;
    border-radius: 12px;
  }
  .calendar-picker-header {
    padding: 16px 20px;
  }
  .calendar-picker-header h3 {
    font-size: 18px;
  }
  .calendar-option {
    padding: 14px 16px;
    font-size: 14px;
  }
  .calendar-icon {
    width: 20px;
    height: 20px;
  }
}

/* =====================================================
   MULTI-EVENT CALENDAR MODAL (MOBILE)
   ===================================================== */

#multiEventModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

#multiEventModal.show {
  display: flex !important;
  opacity: 1;
}

#multiEventModal .modal-container {
  width: 100%;
  max-width: 500px;
  background: #222222;
  border-radius: 16px;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

#multiEventModal .modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#multiEventList {
  overflow-y: auto;
  max-height: 60vh;
  padding: 20px;
}

.multi-event-item {
  background: #2A2A2A;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.multi-event-item:active {
  transform: scale(0.98);
}

.multi-event-item.selected {
  border-color: #F5DA0F;
  background: #2A2A1A;
  box-shadow: 0 0 0 1px #F5DA0F33;
}

.multi-event-item .event-checkbox {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #555;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.multi-event-item.selected .event-checkbox {
  background: #F5DA0F;
  border-color: #F5DA0F;
}

.multi-event-item.selected .event-checkbox::after {
  content: '✓';
  color: #1B1B1B;
  font-size: 13px;
  font-weight: 800;
}

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

.multi-event-title {
  font-size: 14px;
  font-weight: 700;
  color: #FBF2E8;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.multi-event-dates {
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}

.multi-event-add-btn {
  display: none;
}

/* =====================================================
   CALENDAR PICKER (Apple / Google) in modal
   ===================================================== */
.calendar-picker {
  padding: 0 20px 20px;
  display: flex;
  gap: 10px;
}

.calendar-picker-btn {
  flex: 1;
  padding: 14px 12px;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.calendar-picker-btn:active {
  transform: scale(0.96);
}

.calendar-picker-btn.btn-apple {
  background: #333;
  color: #FBF2E8;
  border: 1.5px solid #555;
}

.calendar-picker-btn.btn-apple:hover {
  border-color: #999;
}

.calendar-picker-btn.btn-google {
  background: #F5DA0F;
  color: #1B1B1B;
}

.calendar-picker-btn.btn-google:hover {
  background: #f0d500;
}

.calendar-picker-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.calendar-picker-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.calendar-picker-hint {
  text-align: center;
  color: #555;
  font-size: 11px;
  padding: 0 20px 16px;
}

/* =====================================================
   OPEN IN BROWSER LINK (Mini App only)
   ===================================================== */

.open-in-browser-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #FBF2E8;
  opacity: 0.45;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: opacity 0.2s, background 0.2s;
  white-space: nowrap;
}

.open-in-browser-link:hover {
  opacity: 0.75;
  background: rgba(255, 255, 255, 0.06);
}

.open-in-browser-link:active {
  opacity: 1;
}

.open-in-browser-link svg {
  flex-shrink: 0;
}

/* =====================================================
   AUTH OVERLAY & BLUR
   ===================================================== */

body.auth-required header,
body.auth-required main {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.auth-step {
  animation: fadeIn 0.3s ease-out;
}
