.lightning-screen {
  background:
    radial-gradient(900px 440px at 50% -120px, rgba(229, 190, 105, 0.18), transparent 62%),
    var(--bg);
  min-height: 100%;
  color: var(--text);
  padding-bottom: 120px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.lightning-header {
  margin-bottom: 14px;
}

.lightning-title {
  margin: 2px 0 6px;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 800;
  color: var(--accent-strong);
}

.lightning-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.lightning-section {
  margin: 18px 0 22px;
}

.lightning-section-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-strong);
}

.lightning-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.lightning-create-btn {
  min-height: 38px;
  padding: 9px 14px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
}

.lightning-cards {
  display: grid;
  gap: 10px;
}

.lightning-card {
  background: var(--card);
  border: 1px solid var(--border-gold-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(250, 226, 164, 0.08);
  padding: 14px;
}

.request-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.request-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff3d6;
  border: 1px solid rgba(241, 207, 138, 0.55);
  background: linear-gradient(145deg, #6f5b3e, #3a2f31);
  flex-shrink: 0;
}

.request-name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-strong);
}

.request-title {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.request-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.request-chip {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--accent-strong);
  background: rgba(200, 169, 81, 0.08);
  border: 1px solid rgba(200, 169, 81, 0.32);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.status-prinyato {
  color: var(--success-text);
  background: rgba(74, 181, 110, 0.14);
  border-color: rgba(74, 181, 110, 0.3);
}

.status-ozhidaet {
  color: var(--accent-strong);
  background: rgba(200, 169, 81, 0.16);
  border-color: rgba(200, 169, 81, 0.34);
}

.status-otkloneno {
  color: #f49c9c;
  background: rgba(188, 76, 76, 0.18);
  border-color: rgba(188, 76, 76, 0.36);
}

.status-perenos {
  color: #8fd3ff;
  background: rgba(57, 129, 201, 0.18);
  border-color: rgba(57, 129, 201, 0.4);
}

.request-note {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.incoming-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.incoming-actions-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: 8px;
}

.incoming-actions .btn-primary,
.incoming-actions .btn-outline {
  min-height: 42px;
}

.btn-text {
  align-self: flex-start;
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color 140ms ease, opacity 140ms ease;
}

.btn-text:hover {
  color: var(--accent-strong);
}

.btn-text:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary,
.btn-secondary,
.btn-outline {
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.btn-primary {
  border: 1px solid rgba(214, 181, 106, 0.45);
  color: #2b2114;
  background: var(--accent);
}

.btn-secondary {
  border: 1px solid rgba(200, 169, 81, 0.42);
  color: var(--accent-strong);
  background: rgba(200, 169, 81, 0.12);
}

.btn-outline {
  border: 1px solid rgba(200, 169, 81, 0.32);
  color: var(--text-secondary);
  background: transparent;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover {
  transform: translateY(-1px);
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-outline:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.meetup-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-strong);
}

.meetup-desc {
  margin: 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.meetup-desc a,
.lightning-card a.lightning-link {
  color: #eecb82;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.meetup-capacity {
  margin: 2px 0 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.event-cta {
  margin-top: 6px;
  min-height: 42px;
}

.lightning-empty-state {
  display: grid;
  gap: 10px;
  padding: 16px 14px;
  border: 1px solid var(--border-gold-soft);
  border-radius: var(--radius-lg);
  background: rgba(20, 16, 19, 0.78);
}

.lightning-empty-text {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.lightning-retry-btn {
  justify-self: flex-start;
}

.reschedule-sheet.hidden,
.lightning-toast.hidden {
  display: none;
}

.reschedule-sheet {
  position: fixed;
  inset: 0;
  z-index: 13000;
}

.reschedule-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 6, 0.72);
}

.reschedule-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--card);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border-top: 1px solid var(--border-gold-soft);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.4);
}

.reschedule-panel h3 {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 18px;
}

.reschedule-dialog-panel {
  width: min(420px, calc(100vw - 28px));
  max-height: min(86vh, 720px);
  overflow-y: auto;
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold-soft);
  padding: 18px 18px 16px;
}

.reschedule-subtitle {
  margin: -4px 0 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

.reschedule-label {
  display: block;
  margin: 8px 0 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.reschedule-suggestions-wrap {
  display: grid;
  gap: 8px;
}

.reschedule-suggestions {
  display: grid;
  gap: 8px;
}

.reschedule-slot {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid rgba(200, 169, 81, 0.28);
  background: rgba(30, 24, 27, 0.94);
  color: var(--text);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.reschedule-slot:hover {
  transform: translateY(-1px);
  border-color: rgba(231, 194, 110, 0.52);
}

.reschedule-slot.is-active {
  background: rgba(200, 169, 81, 0.16);
  border-color: rgba(231, 194, 110, 0.6);
}

.reschedule-slot-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-strong);
}

.reschedule-slot-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

.reschedule-divider {
  position: relative;
  margin: 14px 0 2px;
  text-align: center;
}

.reschedule-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(200, 169, 81, 0.18);
}

.reschedule-divider span {
  position: relative;
  display: inline-block;
  padding: 0 10px;
  background: var(--card);
  font-size: 12px;
  color: var(--text-secondary);
}

.reschedule-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.reschedule-field {
  min-width: 0;
}

.reschedule-input {
  width: 100%;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(200, 169, 81, 0.35);
  padding: 10px 12px;
  background: rgba(37, 30, 29, 0.96);
  color: var(--text);
}

.reschedule-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.event-category-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.event-category-chip {
  cursor: pointer;
}

.event-category-chip.is-active {
  background: rgba(200, 169, 81, 0.3);
  border-color: rgba(221, 186, 110, 0.65);
  color: #2b2114;
}

.reschedule-panel.create-event-panel {
  width: min(560px, 92vw);
  max-width: 560px;
  margin: 0 auto;
  box-sizing: border-box;
  flex: 0 1 auto;
  max-height: min(86vh, 860px);
  overflow-y: auto;
  left: 50%;
  right: auto;
  bottom: 4vh;
  transform: translateX(-50%);
  border-radius: 16px;
  border: 1px solid rgba(200, 169, 81, 0.35);
  padding: 24px 28px;
}

.create-event-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.create-event-form .hidden {
  display: none !important;
}

.create-event-field {
  min-width: 0;
}

.create-event-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.create-event-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: -2px;
}

.create-event-actions {
  justify-content: space-between;
}

@media (max-width: 760px) {
  .reschedule-panel.create-event-panel {
    width: min(560px, 92vw);
    max-width: 560px;
    max-height: 92vh;
    left: 50%;
    right: auto;
    bottom: 2vh;
    transform: translateX(-50%);
    border-radius: 16px;
    border-left: 1px solid rgba(200, 169, 81, 0.35);
    border-right: 1px solid rgba(200, 169, 81, 0.35);
  }

  .create-event-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .incoming-actions-main,
  .reschedule-row {
    grid-template-columns: 1fr;
  }

  .reschedule-panel.create-event-panel {
    width: 94vw;
    max-width: 94vw;
    padding: 18px 18px;
    bottom: 1vh;
  }

  .reschedule-dialog-panel {
    width: 94vw;
    max-height: 88vh;
    padding: 16px;
  }
}

.lightning-toast {
  position: fixed;
  left: 50%;
  bottom: calc(90px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(20, 18, 16, 0.95);
  color: var(--accent-strong);
  border: 1px solid rgba(200, 169, 81, 0.45);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  z-index: 13010;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  max-width: calc(100vw - 24px);
}
