/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  background-color: #0D0D0D;
  display: flex;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #ffffff;
}

/* ── Screen ── */
.screen {
  position: relative;
  width: 100%;
  max-width: 400px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
  background: #0D0D0D;
}

/* ── Topbar ── */
.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 400px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #2A2A2A;
  z-index: 100;
}

.topbar-btn {
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  color: #888888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
  transition: color 0.2s ease;
}

.topbar-btn:active {
  color: #ffffff;
}

.topbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.page-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

/* ── Sidebar Overlay ── */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 300;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 75%;
  max-width: 300px;
  height: 100%;
  background: #1A1A1A;
  border-right: 1px solid rgba(245, 166, 35, 0.25);
  display: flex;
  flex-direction: column;
  z-index: 301;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #2A2A2A;
}

.sidebar-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.sidebar-close {
  width: 32px;
  height: 32px;
  background: #2a2a2a;
  border: none;
  border-radius: 50%;
  color: #888888;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-close:hover {
  background: #3a3a3a;
  color: #ffffff;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #888888;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  color: #F5A623;
  background: rgba(245, 166, 35, 0.06);
}

.sidebar-link--active {
  color: #F5A623;
  border-left-color: #F5A623;
  background: rgba(245, 166, 35, 0.08);
}

.sidebar-link svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.sidebar-link--active svg,
.sidebar-link:hover svg {
  opacity: 1;
}

/* ── Section Label ── */
.section-label {
  font-size: 12px;
  font-weight: 600;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 20px 20px 12px;
}

/* ── Conditions List ── */
.conditions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 32px;
}

/* ── Condition Item ── */
.condition-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  border-radius: 20px;
  padding: 18px 16px;
  transition: border-color 0.2s ease;
}

.condition-item:active {
  border-color: rgba(245, 166, 35, 0.25);
}

.condition-icon {
  width: 44px;
  height: 44px;
  background: rgba(245, 166, 35, 0.10);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.condition-text {
  flex: 1;
  padding-top: 2px;
}

.condition-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 5px;
  line-height: 1.2;
}

.condition-desc {
  font-size: 13px;
  color: #888888;
  line-height: 1.55;
}

@media (max-width: 380px) {
  .condition-item {
    padding: 16px 14px;
  }
  .condition-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .condition-title {
    font-size: 14px;
  }
  .condition-desc {
    font-size: 12px;
  }
}
