* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

.no-scroll {
  overflow: hidden;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #fff;
  background-color: #222;
  background-image: url("background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ---------- Logo bar ---------- */

.logo-bar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  padding: 0.6rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.25), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.logo {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-decoration: none;
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ---------- Back button (now highlighted, easier to see) ---------- */

.back-button {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 4px 20px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.45), 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* ---------- Homepage content ---------- */

.content {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.glass-card {
  max-width: 620px;
  padding: 2rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.headline {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-stroke: 0.4px rgba(255, 255, 255, 0.8);
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.5),
    0 0 16px rgba(255, 255, 255, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.6);
}

.subtext {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.button-row {
  display: flex;
  gap: 1rem;
}

.community-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: fit-content;
  padding: 0.5rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.community-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.community-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.community-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ---------- Products page ---------- */

.products-page {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.search-bar {
  width: 100%;
  max-width: 400px;
  padding: 0.7rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  outline: none;
  transition: background 0.2s ease;
}

.search-bar::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-bar:focus {
  background: rgba(255, 255, 255, 0.14);
}

.dropdown-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.dropdown {
  position: relative;
}

.dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.caret {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.dropdown.open .caret {
  transform: rotate(180deg);
}

.dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.dropdown.open .dropdown-panel {
  display: block;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: background 0.2s ease, transform 0.15s ease;
}

.product-card:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 96px;
  object-fit: cover;
  border-radius: 8px;
}

.product-card .product-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.product-type-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.type-link {
  background: rgba(120, 170, 255, 0.2);
  color: #A9C7FF;
  border: 1px solid rgba(169, 199, 255, 0.4);
}

.type-file {
  background: rgba(124, 252, 166, 0.2);
  color: #7CFCA6;
  border: 1px solid rgba(124, 252, 166, 0.4);
}

.empty-state {
  opacity: 0.65;
  font-size: 0.9rem;
  text-align: center;
}

.no-results {
  color: #ffffff;
  opacity: 0.8;
  font-size: 1.1rem;
}

/* ---------- Account page ---------- */

.account-page {
  min-height: 100vh;
  padding: 6rem 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
}

.auth-tab {
  flex: 1;
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.auth-tab.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-input {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  outline: none;
  width: 100%;
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.auth-input:focus {
  background: rgba(255, 255, 255, 0.14);
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0px 1000px rgba(40, 40, 40, 0.4) inset;
  transition: background-color 9999s ease-in-out 0s;
}

.password-field {
  position: relative;
  display: flex;
}

.password-field .auth-input {
  flex: 1;
  padding-right: 2.75rem;
}

.toggle-password {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.toggle-password:hover {
  color: #ffffff;
}

.auth-submit {
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.auth-submit:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.auth-message {
  font-size: 0.85rem;
  color: #ffffff;
  opacity: 0.85;
  text-align: center;
  min-height: 1.2em;
}

/* ---------- Dashboard (single centered card) ---------- */

.dashboard {
  width: 100%;
  max-width: 640px;
  padding: 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dashboard-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-welcome p {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.logout-btn {
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.dashboard-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.dashboard-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.dashboard-section .section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.dashboard-grid::-webkit-scrollbar {
  width: 6px;
}

.dashboard-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
}

.dashboard-grid::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, transform 0.15s ease;
}

.dashboard-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.dashboard-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.2rem;
}

.dashboard-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.dashboard-card-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.95rem;
}

.dashboard-card-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dashboard-card-meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

.status-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-active {
  background: rgba(80, 220, 130, 0.2);
  color: #7CFCA6;
  border: 1px solid rgba(124, 252, 166, 0.4);
}

.status-cancelled {
  background: rgba(255, 90, 90, 0.15);
  color: #FF8A8A;
  border: 1px solid rgba(255, 138, 138, 0.4);
}

/* ---------- Dashboard tabs ---------- */

.dashboard-tabs {
  display: flex;
  gap: 0.5rem;
}

.dashboard-tab {
  flex: 1;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.dashboard-tab.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* ---------- Danger zone / delete account ---------- */

.danger-zone {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 90, 90, 0.4);
  border-radius: 12px;
  background: rgba(255, 90, 90, 0.06);
}

.danger-zone-title {
  font-size: 1rem;
  font-weight: 700;
  color: #FF8A8A;
}

.danger-zone-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.danger-btn {
  align-self: flex-start;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255, 138, 138, 0.6);
  border-radius: 10px;
  background: rgba(255, 90, 90, 0.15);
  color: #FF8A8A;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.danger-btn:hover {
  background: rgba(255, 90, 90, 0.28);
  transform: translateY(-2px);
}

/* ---------- Modals (delete confirm / privacy policy) ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.55);
  z-index: 200;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  background: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  text-align: left;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.modal-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
}

.modal-btn {
  flex: 1;
  padding: 0.65rem;
  border-radius: 10px;
  border: none;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.modal-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.modal-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.modal-btn-danger {
  border: 1px solid rgba(255, 90, 90, 0.6);
  background: rgba(255, 90, 90, 0.25);
  color: #ffffff;
}

.modal-btn-danger:hover {
  background: rgba(255, 90, 90, 0.4);
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #ffffff;
}

.privacy-modal-card {
  max-width: 640px;
  max-height: 80vh;
}

.privacy-policy-content {
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.privacy-policy-content h1,
.privacy-policy-content h2,
.privacy-policy-content h3 {
  margin: 1.1rem 0 0.5rem;
  line-height: 1.35;
}

.privacy-policy-content ul {
  margin: 0.4rem 0 0.9rem 1.4rem;
}

.privacy-policy-content li {
  margin-bottom: 0.35rem;
}

.privacy-policy-content [data-custom-class='title'],
.privacy-policy-content [data-custom-class='title'] * {
  color: #ffffff !important;
}

.privacy-policy-content [data-custom-class='subtitle'],
.privacy-policy-content [data-custom-class='subtitle'] * {
  color: rgba(255, 255, 255, 0.6) !important;
}

.privacy-policy-content [data-custom-class='heading_1'],
.privacy-policy-content [data-custom-class='heading_1'] *,
.privacy-policy-content [data-custom-class='heading_2'],
.privacy-policy-content [data-custom-class='heading_2'] * {
  color: #ffffff !important;
}

.privacy-policy-content [data-custom-class='body_text'],
.privacy-policy-content [data-custom-class='body_text'] * {
  color: rgba(255, 255, 255, 0.8) !important;
}

.privacy-policy-content [data-custom-class='link'],
.privacy-policy-content [data-custom-class='link'] * {
  color: #A9C7FF !important;
}

/* ---------- Site footer / privacy policy link ---------- */

.site-footer {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  z-index: 5;
}

.footer-dot {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
}

.footer-link {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
}

/* ---------- Cookie consent banner ---------- */

.cookie-consent-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2.5rem);
  max-width: 720px;
  padding: 1.1rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 300;
}

.cookie-consent-text {
  flex: 1 1 260px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-consent-text a {
  color: #A9C7FF;
}

.cookie-consent-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.6rem;
}

.cookie-consent-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.cookie-consent-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.cookie-consent-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.cookie-consent-btn-primary {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.cookie-consent-btn-primary:hover {
  background: rgba(255, 255, 255, 0.32);
}