:root {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: #101828;
  background: #f5f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #eef2f8;
}

#app {
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}

.browser-shell {
  width: min(1100px, 100%);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(16, 24, 40, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 700px;
}

.browser-top {
  background: #f1f4f9;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e1e6ef;
}

.browser-buttons {
  display: flex;
  gap: 6px;
}

.browser-buttons button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #d3d9e3;
  background: #fff;
  cursor: pointer;
}

.browser-buttons button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.address-bar {
  flex: 1;
  background: #fff;
  border: 1px solid #d3d9e3;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  color: #475467;
}

.bookmarks {
  display: flex;
  gap: 8px;
}

.bookmarks button {
  border: 1px solid #d3d9e3;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.bookmarks button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.browser-top .icon-button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

.browser-content {
  position: relative;
  flex: 1;
  background: #ffffff;
}

.page {
  padding: 24px 32px 40px;
}

.page h1 {
  margin-top: 0;
}

.page h2 {
  margin-top: 0;
}

.hero {
  background: #0b2b56;
  color: #fff;
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 24px;
}

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

.flight-card {
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
}

.flight-card strong {
  font-size: 18px;
}

.flight-meta {
  display: flex;
  justify-content: space-between;
  color: #667085;
  font-size: 12px;
}

.flight-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.heart {
  border: 1px solid #d3d9e3;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}

.heart.active {
  background: #ffeff4;
  border-color: #f97066;
  color: #f04438;
}

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

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

.news-card {
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-card span {
  font-size: 12px;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ad-card {
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  padding: 16px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ad-image {
  width: 100%;
  border-radius: 12px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ad-image.personalised {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.ad-image.contextual {
  background: linear-gradient(135deg, #0f172a, #334155);
}

.article-view {
  max-width: 700px;
}

.article-view button {
  margin-bottom: 16px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(320px, 40%) 1fr;
  gap: 24px;
  align-items: start;
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-image {
    max-width: 100%;
  }
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  z-index: 10;
}

.cookie-banner {
  width: min(900px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cookie-actions button {
  border: 1px solid #cfd4dc;
  background: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.cookie-actions .primary {
  background: #175cd3;
  color: #fff;
  border-color: #175cd3;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal {
  width: min(640px, 92%);
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-height: 85vh;
  overflow: auto;
}

.modal h3 {
  margin-top: 0;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f5;
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle-row input {
  width: 18px;
  height: 18px;
}

.notice {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0b4a6f;
  padding: 12px 14px;
  border-radius: 12px;
  margin: 16px 0;
}

.aura-screen {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aura-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.aura-options button {
  border: 1px solid #cfd4dc;
  background: #fff;
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
}

.completed-banner {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #027a48;
  padding: 16px;
  border-radius: 12px;
  margin-top: 16px;
  margin-bottom: 16px
}

.loading-blink {
  animation: blink 0.4s ease;
}

@keyframes blink {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.error-banner {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
  padding: 12px;
  border-radius: 12px;
}

.inline-link {
  color: #175cd3;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.footer-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-actions button {
  border: 1px solid #cfd4dc;
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.footer-actions .primary {
  background: #175cd3;
  color: #fff;
  border-color: #175cd3;
}
