:root {
  --color-primary: #3f51b5;
  --color-primary-dark: #303f9f;
  --color-accent: #ff4081;
  --color-bg: #000000;
  --color-surface: #121212;
  --color-surface-alt: #181818;
  --color-text: #ffffff;
  --color-text-muted: #b0b3c1;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
  --transition-fast: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at top, #1a1a2e, #000000 65%);
  min-height: 100vh;
}

/* Layout */

body {
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.page-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

/* Header */

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(90deg, var(--color-primary-dark), #1b1f3b);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-header__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

/* Small logo in header */
.app-logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: 0 0 16px rgba(255, 64, 129, 0.7);
  overflow: hidden;
}

.app-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.app-subtitle {
  margin: 0;
  margin-top: 0.1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.app-header__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.language-picker {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.3rem 1.5rem 0.3rem 0.6rem;
  border-radius: 999px;
  color: var(--color-text);
  font-size: 0.8rem;
  outline: none;
  position: relative;
  cursor: pointer;
}

/* Hero logo component */

.hero-logo-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-logo {
  max-width: 320px;
  width: 65%;
  height: auto;
  margin-bottom: 0.25rem;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.85));
}

/* Card */

.card {
  max-width: 720px;
  width: 100%;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--color-surface), var(--color-surface-alt));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(16px); /* Safari supported gloss card design */
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
}

.card--scrollable {
  max-height: 70vh;
}

.card-content-scroll {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.card-content-scroll::-webkit-scrollbar {
  width: 6px;
}
.card-content-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}
.card-content-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}

.card--center {
  text-align: center;
}

.card-title {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.card-text {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.card-note {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Sections */

.section-title {
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.section-subtitle {
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Lists */

.list {
  margin: 0.4rem 0 1rem;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.list li + li {
  margin-top: 0.25rem;
}

/* Buttons & links */

.card-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.card-actions--justify {
  justify-content: space-between;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.btn span {
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 25px rgba(63, 81, 181, 0.8);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(63, 81, 181, 1);
}

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.9);
  color: #ffffff;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Links */

.link {
  color: var(--color-accent);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* Footer */

.app-footer {
  padding: 0.75rem 1.5rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #02030a;
}

/* Responsive */

@media (max-width: 600px) {
  .card {
    padding: 1.4rem 1.2rem;
    border-radius: var(--radius-lg);
  }

  .card--scrollable {
    max-height: 75vh;
  }

  .card-actions--justify {
    flex-direction: column;
    align-items: stretch;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .hero-logo {
    max-width: 200px;
    width: 75%;
  }

}
