.panel {
  position: relative;
  z-index: 1;
  width: min(420px, 92vw);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 28px 26px;
  backdrop-filter: blur(16px);
  box-shadow:
    0 30px 80px rgba(20, 60, 110, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  display: grid;
  gap: 16px;
}

.auth-page .panel {
  max-height: calc(100vh - 240px);
  overflow: auto;
}

.dashboard {
  position: relative;
  min-height: 100vh;
  padding: 120px 48px 120px;
  display: grid;
  gap: 24px;
  align-content: start;
}

.menu-toggle {
  position: fixed;
  top: 28px;
  left: 28px;
  z-index: 3;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.95);
  color: #0b1b2e;
  box-shadow: 0 10px 24px rgba(20, 60, 110, 0.2);
}

.side-panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 320px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 12px 0 24px rgba(15, 45, 90, 0.12);
  padding: 24px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 2;
  display: grid;
  gap: 16px;
}

.side-panel.open {
  transform: translateX(0);
}

.side-header {
  font-weight: 700;
  font-size: 1.1rem;
}

.side-link {
  background: none;
  border: none;
  text-align: left;
  font-weight: 600;
  color: #0b1b2e;
  cursor: pointer;
  padding: 8px 0;
}

.profile-panel {
  display: none;
  padding: 12px 0;
  border-top: 1px solid rgba(15, 45, 90, 0.1);
  border-bottom: 1px solid rgba(15, 45, 90, 0.1);
}

.profile-panel.open {
  display: grid;
  gap: 8px;
}

.profile-actions {
  display: grid;
  gap: 8px;
}

.dashboard-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card-btn {
  border: none;
  border-radius: 16px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(20, 60, 110, 0.18);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(20, 60, 110, 0.24);
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(15, 45, 90, 0.08);
  font-size: 0.7rem;
  z-index: 2;
}

.site-footer a {
  color: #0b1b2e;
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}
.welcome {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text);
  text-align: center;
  margin-bottom: 6px;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
  mix-blend-mode: screen;
}

.panel-wide {
  width: min(560px, 92vw);
  text-align: center;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  font-size: 0.85rem;
  color: var(--muted);
}

input {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(74, 139, 255, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.95rem;
}

textarea {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(74, 139, 255, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.95rem;
  resize: vertical;
  min-height: 90px;
}

textarea:focus {
  outline: 2px solid rgba(74, 139, 255, 0.45);
  border-color: transparent;
}

input:focus {
  outline: 2px solid rgba(29, 126, 219, 0.45);
  border-color: transparent;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #4a8bff, #6db6ff);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(74, 139, 255, 0.3);
}

.btn.ghost {
  display: inline-block;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  color: #0b1b2e;
  text-decoration: none;
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(124, 77, 255, 0.4);
}

.sub-actions {
  text-align: center;
}

.link {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.link:hover {
  color: var(--text);
}

.message {
  min-height: 18px;
  font-size: 0.85rem;
  color: rgba(11, 27, 46, 0.75);
}

.back-link {
  align-self: start;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 64px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 20px 50px rgba(15, 45, 90, 0.2);
  display: grid;
  gap: 12px;
}

.cookie-banner h3 {
  font-size: 1rem;
  font-weight: 700;
}

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cookie-actions .btn {
  padding: 10px 16px;
}

.cookie-actions .link {
  font-size: 0.8rem;
}

.cookie-options {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(74, 139, 255, 0.12);
}

.cookie-option p {
  font-size: 0.8rem;
  color: var(--muted);
}

.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(11, 27, 46, 0.15);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.toggle-track::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.toggle input:checked + .toggle-track {
  background: rgba(74, 139, 255, 0.7);
}

.toggle input:checked + .toggle-track::after {
  transform: translateX(20px);
}
