/* Spend Clock — Cookie Consent Banner & Preferences Modal Styles */

.sc-cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 20px;
  right: 20px;
  max-width: 860px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 22px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(16, 185, 129, 0.2);
  color: #F8FAFC;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  z-index: 99999;
  display: none;
  animation: scSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sc-cookie-banner.sc-visible {
  display: block;
}

@keyframes scSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sc-cookie-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.sc-cookie-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #10B981, #6366F1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.sc-cookie-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}

.sc-cookie-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: #CBD5E1;
  margin-bottom: 18px;
}

.sc-cookie-text a {
  color: #8BD4C4;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

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

.sc-btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  border: none;
  outline: none;
}

.sc-btn-primary {
  background: #10B981;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.sc-btn-primary:hover {
  background: #059669;
  transform: translateY(-1px);
}

.sc-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.sc-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

.sc-btn-tertiary {
  background: transparent;
  color: #94A3B8;
  padding: 10px 14px;
}

.sc-btn-tertiary:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Modal Overlay */
.sc-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 18, 32, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sc-modal-overlay.sc-visible {
  display: flex;
}

.sc-modal {
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 28px;
  max-width: 580px;
  width: 100%;
  color: #F8FAFC;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  max-height: 90vh;
  overflow-y: auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  animation: scModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scModalPop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.sc-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
}

.sc-modal-close {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.sc-modal-close:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.sc-modal-desc {
  font-size: 13.5px;
  color: #94A3B8;
  line-height: 1.5;
  margin-bottom: 20px;
}

.sc-category-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}

.sc-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sc-category-name {
  font-size: 14.5px;
  font-weight: 600;
  color: #F1F5F9;
}

.sc-category-badge {
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
}

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

.sc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.sc-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.18);
  transition: .25s;
  border-radius: 24px;
}

.sc-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .25s;
  border-radius: 50%;
}

input:checked + .sc-slider {
  background-color: #10B981;
}

input:checked + .sc-slider:before {
  transform: translateX(20px);
}

.sc-category-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: #94A3B8;
}

.sc-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

@media (max-width: 600px) {
  .sc-cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 18px;
  }
  .sc-cookie-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .sc-btn {
    text-align: center;
  }
}
