/* Reset default browser styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Overall page */
body {
  font-family: 'Chill Sans', sans-serif;
  background-color: #F5EFE0;
}

/* Pokito illustration */
.pokito-logo {
    width: 250px; /* Increased from 150px */
    max-width: 100%; /* Keeps it from overflowing on small phones */
    margin-bottom: 15px;
}

/* Start button */
.start-btn {
  background-color: #C93345;
  color: #F5EFE0;
  border: none;
  padding: 16px 40px;
  font-size: 20px;
  font-family: 'Chill Sans', sans-serif;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background-color 0.2s ease;
}

/* Button hover effect */
.start-btn:hover {
  background-color: #E8824A;
}

/* Onboarding combined form container */
.onboarding-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 340px;
  align-self: flex-end;
}

.onboarding-form-label {
  font-family: 'Chill Sans', sans-serif;
  font-size: 14px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.onboarding-name-input {
  font-family: 'Chill Sans', sans-serif;
  font-size: 18px;
  border: 2px solid #ccc;
  border-radius: 24px;
  padding: 12px 20px;
  background: white;
  color: #1C1C1C;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.onboarding-name-input:focus {
  border-color: #E8824A;
}

/* Hide chat screen by default */
.chat-screen {
  display: none;
  height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-color: #F5EFE0;
}

/* Chat message bubble from Pokito */
.pokito-message {
  background-color: #C93345;
  color: #F5EFE0;
  padding: 16px 24px;
  border-radius: 20px;
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 500px;
  white-space: pre-wrap;
}

/* Input area at bottom */
.chat-input {
  display: flex;
  gap: 10px;
}

/* Text input field */
.chat-input input {
  padding: 14px 20px;
  font-size: 18px;
  font-family: 'Chill Sans', sans-serif;
  border: 2px solid #1C1C1C;
  border-radius: 30px;
  width: 300px;
  background-color: white;
}

/* Send button */
.send-btn {
  background-color: #1C1C1C;
  color: #F5EFE0;
  border: none;
  padding: 14px 28px;
  font-size: 18px;
  font-family: 'Chill Sans', sans-serif;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* Parent message bubble */
.parent-message {
    align-self: flex-end; /* Right-aligned */
    background-color: #E8824A; /* Brand Orange */
    color: white;
    padding: 12px 18px;
    border-radius: 18px 18px 2px 18px; /* Rounded with a small "tail" on the bottom right */
    font-family: 'Chill Sans', sans-serif;
    font-size: 18px;
    margin: 8px 0;
    max-width: 80%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    word-wrap: break-word;
}

/* Chat messages container */
.chat-messages {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
  margin-bottom: 30px;
}

/* Adventure screen */
.adventure-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 100px;
  background-color: #F5EFE0;
  min-height: 100vh;
}

/* Story introduction box */
.story-box {
  background-color: #C93345;
  color: #F5EFE0;
  padding: 24px;
  border-radius: 20px;
  font-size: 18px;
  line-height: 1.6;
  max-width: 600px;
  width: 100%;
  margin-bottom: 30px;
  text-align: center;
}

/* Individual task card */
.task-card {
  background-color: white;
  border: 2px solid #1C1C1C;
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 16px;
  max-width: 600px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

/* Task card when completed */
.task-card.completed {
  background-color: #4A7C59;
  border-color: #4A7C59;
  color: #F5EFE0;
}

/* Checkbox inside task card */
.task-checkbox {
  width: 28px;
  height: 28px;
  border: 2px solid #1C1C1C;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Task text */
.task-text {
  font-size: 18px;
  line-height: 1.4;
}

/* Labeled rows inside the task text (Was / Wo / Werkzeug) */
.task-label {
  font-weight: 700;
}

.task-row + .task-row {
  margin-top: 6px;
  font-size: 15px;
  color: #6B6B6B;
}

.task-card.completed .task-row + .task-row {
  color: #DCE8DF;
}

/* Points display */
.points-box {
  margin-top: 20px;
  font-size: 28px;
  color: #1C1C1C;
  font-weight: bold;
}

/* Adventure complete screen */
.complete-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #1C1C1C;
  padding: 40px;
  text-align: center;
}

/* Complete screen heading */
.complete-screen h1 {
  color: #F5EFE0;
  font-size: 48px;
  margin-bottom: 16px;
}

/* Complete screen subtitle */
.complete-subtitle {
  color: #E8824A;
  font-size: 22px;
  margin-bottom: 40px;
}

/* Register prompt screen */
.register-prompt-text {
  color: #F5EFE0;
  font-size: 16px;
  margin-bottom: 12px;
}

.register-prompt-login {
  color: #F5EFE0;
  font-size: 14px;
  margin-top: 14px;
}

.register-prompt-login a {
  color: #FFD43B;
  font-weight: 600;
  text-decoration: underline;
}

.register-skip-link {
  color: #999;
  font-size: 14px;
  display: block;
  margin-top: 10px;
  text-decoration: underline;
}

/* Final points box */
.final-points {
  background-color: #FFD43B;
  color: #5C4400;
  padding: 40px 60px;
  border-radius: 30px;
  margin-bottom: 40px;
}

.final-points p {
  font-size: 20px;
}

.final-points h2 {
  font-size: 80px;
  line-height: 1;
  margin: 10px 0;
}

/* Camera button on task card */
.camera-btn {
  margin-left: auto;
  font-size: 24px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Photo thumbnail after upload */
.task-thumbnail {
  width: 100%;
  border-radius: 12px;
  margin-top: 12px;
  object-fit: cover;
  max-height: 200px;
}

.finish-btn {
  margin-top: 20px;
  background-color: #1C1C1C;
  color: #F5EFE0;
  border: none;
  padding: 14px 40px;
  font-size: 18px;
  font-family: 'Chill Sans', sans-serif;
  border-radius: 50px;
  cursor: pointer;
  margin-bottom: 40px;
  transition: background-color 0.2s ease;
}

.finish-btn:hover {
  background-color: #C93345;
}

/* Reserve tasks held back until the user asks for "Weitere Aufgabe" */
.task-card--hidden {
  display: none;
}

/* Secondary action: pull one more task. Green reads as "more/go" against the
   dark "Abenteuer beenden" button. */
.more-task-btn {
  margin-top: 20px;
  align-items: center;
  gap: 8px;
  background-color: #4A7C59;
  color: #F5EFE0;
  border: none;
  padding: 14px 40px;
  font-size: 18px;
  font-family: 'Chill Sans', sans-serif;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.more-task-btn:hover {
  background-color: #3C6649;
}


/* ===================================================================== */
/* SEQUENTIAL PLAY — single-card player                                   */
/* ===================================================================== */
.play-progress {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  font-size: 15px;
  font-weight: 700;
  color: #6B6B6B;
  margin-bottom: 12px;
}

/* The active task card behaves like a normal card but isn't click-to-toggle */
.task-card.play-card {
  cursor: default;
  align-items: flex-start;
}

.play-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 600px;
  margin-top: 16px;
}

.play-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  padding: 14px 8px;
  font-size: 17px;
  font-family: 'Chill Sans', sans-serif;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.play-action-btn:disabled { opacity: 0.4; cursor: default; }

.play-action-btn--later {
  background-color: white;
  color: #1C1C1C;
  border: 2px solid #1C1C1C;
}
.play-action-btn--photo {
  background-color: #E8824A;
  color: #fff;
}
.play-action-btn--done {
  background-color: #4A7C59;
  color: #fff;
}

.play-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
}
.play-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #1C1C1C;
  background-color: white;
  color: #1C1C1C;
  font-size: 20px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.play-nav-label {
  font-size: 15px;
  color: #6B6B6B;
  min-width: 110px;
  text-align: center;
}

.play-alldone {
  font-size: 22px;
  font-weight: 700;
  color: #4A7C59;
  text-align: center;
  padding: 40px 20px;
}

/* "Aufgabe hinzufügen" — reveal another task from the reserve */
.play-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  background-color: white;
  color: #4A7C59;
  border: 2px solid #4A7C59;
  padding: 12px 28px;
  font-size: 16px;
  font-family: 'Chill Sans', sans-serif;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.play-add-btn:hover {
  background-color: #4A7C59;
  color: #fff;
}
.play-add-btn--big {
  font-size: 18px;
  padding: 16px 36px;
}

/* "All current tasks done — add more?" reserve state */
.play-reserve {
  text-align: center;
  padding: 36px 20px 8px;
}
.play-reserve-title {
  font-size: 22px;
  font-weight: 700;
  color: #4A7C59;
  margin-bottom: 8px;
}
.play-reserve-sub {
  font-size: 16px;
  color: #6B6B6B;
}


/* ===== FR-07: STORYBOOK BUTTON ===== */
.storybook-btn {
  background-color: #E8824A;
  color: #F5EFE0;
  border: none;
  padding: 16px 40px;
  font-size: 20px;
  font-family: 'Chill Sans', sans-serif;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 1px;
  margin-bottom: 16px;
  transition: background-color 0.2s ease;
}

.storybook-btn:hover {
  background-color: #C93345;
}

/* ===== FR-07: STORYBOOK SCREEN ===== */
.storybook-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  background-color: #F5EFE0;
  min-height: 100vh;
}

.storybook-cover {
  text-align: center;
  margin-bottom: 32px;
}

.storybook-cover .pokito-logo {
  width: 200px;
  margin-bottom: 16px;
}

.storybook-title {
  font-size: 36px;
  color: #C93345;
  margin-bottom: 8px;
}

.storybook-hero {
  font-size: 28px;
  color: #1C1C1C;
  margin-bottom: 8px;
}

.storybook-intro {
  background-color: #C93345;
  color: #F5EFE0;
  padding: 24px;
  border-radius: 20px;
  font-size: 18px;
  line-height: 1.6;
  max-width: 600px;
  width: 100%;
  margin-bottom: 32px;
  text-align: center;
}

.storybook-chapters {
  width: 100%;
  max-width: 600px;
}

.storybook-footer {
  text-align: center;
  margin-top: 16px;
  margin-bottom: 32px;
}

.storybook-footer p {
  font-size: 18px;
  color: #E8824A;
}

.storybook-footer h2 {
  font-size: 60px;
  line-height: 1;
  margin: 8px 0;
  color: #C93345;
}

/* ===== FR-07: STORYBOOK CHAPTERS ===== */
.storybook-chapter {
  background-color: white;
  border: 2px solid #1C1C1C;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
}

.chapter-number {
  font-size: 14px;
  color: #E8824A;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.chapter-text {
  font-size: 18px;
  color: #1C1C1C;
  line-height: 1.5;
  margin-bottom: 12px;
}

.chapter-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 16px;
}

.chapter-badge.completed {
  background-color: #4A7C59;
  color: #F5EFE0;
}

.chapter-badge.skipped {
  background-color: #ddd;
  color: #888;
}

.chapter-photo {
  width: 100%;
  border-radius: 12px;
  margin-top: 8px;
  max-height: 300px;
  object-fit: cover;
}

/* --- PROFILE PICTURE --- */
.profile-pic-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  background: #e8e3d9;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.profile-pic-placeholder {
  font-size: 48px;
}

.profile-pic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-pic-edit {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 16px;
  background: #1C1C1C;
  color: white;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-tab .nav-icon img {
  width: 24px;
  height: 24px;
  object-fit: cover;
}

/* --- PROFILE SCREEN STYLING --- */
.profile-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #F5EFE0;
  padding: 28px 20px 100px;
  font-family: 'Chill Sans', sans-serif;
  min-height: 100vh;
}

#profile-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-screen h2 {
  font-family: 'Chill Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #6b6b6b;
  margin-top: 0;
  margin-bottom: 15px;
}

.profile-input {
  width: 90%;
  max-width: 380px;
  box-sizing: border-box;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Chill Sans', sans-serif;
  font-size: 16px;
}


.checkbox-group label {
  display: block; /* Forces checkboxes to their own lines */
  margin-bottom: 8px;
  font-size: 18px;
  cursor: pointer;
}

/* style.css - New rules for choice menus */

/* THE MENU CONTAINER: Align everything right in the chat stream */
.pokito-choice-container {
    display: flex;
    flex-direction: column;
    gap: 8px; /* space between choice buttons */
    margin: 15px 0;
    max-width: 90%; /* don't hit the left edge */
    
    /* THE MAGIC: Move the entire container to the right */
    align-self: flex-end; 
}

/* THE CHOICE BUTTONS (age, tools, etc) */
.choice-item-btn {
    background-color: white; /* transparent/white default */
    border: 2px solid #ccc; /* light outline */
    color: #1C1C1C; /* dark text */

    /* Sizing and Shape - matching parent bubbles */
    padding: 12px 20px;
    border-radius: 24px;

    font-family: 'Chill Sans', sans-serif;
    font-size: 18px;
    cursor: pointer;
    text-align: left;
    width: fit-content; /* Only as wide as the text! */
    align-self: flex-end; /* right align individual buttons inside container */
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* THE HIGHLIGHT: What happens when selected */
.choice-item-btn.selected {
    /* Fill with Brand Red/Orange */
    background-color: #E8824A; /* Brand Orange */
    border-color: #E8824A;
    color: white; /* White text looks sharp against color */
}

/* THE CONFIRMATION BUTTON (Weiter) */
.confirm-btn {
    background-color: #1C1C1C;
    color: #F5EFE0;
    border: none;

    padding: 14px 28px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 10px; /* space from choice buttons */
    align-self: flex-end;
    transition: background-color 0.2s ease;
}

/* style.css Refinements for total consistency */

/* --- A. UNIVERSAL PARENT TEXT BUBBLES ---
   Used when the parent types text (like the name) */
.parent-message {
    align-self: flex-end; /* right-aligned */
    
    /* Let's make this match the 'Selected' choice button look */
    background-color: #E8824A; /* Brand Orange */
    color: white; /* White text looks best on orange */
    
    padding: 12px 18px;
    border-radius: 20px 20px 0px 20px; /* bubble tail on right bottom */
    
    font-family: 'Chill Sans', sans-serif;
    font-size: 18px;
    max-width: 80%;
}

/* --- B. UNIVERSAL CHOICE CONTAINERS ---
   Used for Interest Buttons (Step 1) AND Path Buttons (Step 2) */
.pokito-choice-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
    max-width: 95%;
    
    /* ALWAYS align choices right */
    align-self: flex-end; 
}

/* --- C. UNIVERSAL CHOICE BUTTONS (age / tools / locations) ---
   We use this class name in JS for Interests AND Paths */
.choice-item-btn {
    background-color: white; /* unselected */
    border: 2px solid #ccc;
    color: #1C1C1C;

    padding: 12px 20px;
    border-radius: 24px;

    font-family: 'Chill Sans', sans-serif;
    font-size: 18px;
    cursor: pointer;
    text-align: left;
    width: fit-content;

    /* individual buttons stack to the right inside container */
    align-self: flex-end;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* --- D. UNIVERSAL SELECTION HIGHLIGHT --- */
.choice-item-btn.selected {
    background-color: #E8824A; /* Brand Orange */
    border-color: #E8824A;
    color: white;
}

.choice-item-btn:active {
    transform: scale(0.98);
    filter: brightness(0.9);
}

/* --- DASHBOARD STYLES --- */

.dashboard-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px 100px;
    min-height: 100vh;
}

/* Dashboard header: logo left */
.dashboard-header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 380px;
    margin-bottom: 10px;
}

.dashboard-logo {
    width: 100%;
    margin-bottom: 12px;
}

.dashboard-slogan {
    font-family: 'Chill Sans', sans-serif;
    font-size: 20px;
    color: #C93345;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.onboarding-tagline {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
    margin: 0 auto 12px auto;
    max-width: 300px;
    text-align: center;
    white-space: pre-line;
}

/* Points card */
.points-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    width: 90%;
    max-width: 380px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    box-sizing: border-box;
}

.points-card-left {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.points-card-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #888;
}

.points-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1C1C1C;
    line-height: 1.1;
}

.points-card-badge {
    font-size: 2.5rem;
}

/* Level display inside points card */
.level-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4A7C59;
    margin-top: 6px;
}

.level-bar {
    width: 100%;
    height: 6px;
    background: #E8E8E8;
    border-radius: 3px;
    margin-top: 4px;
    overflow: hidden;
}

.level-bar-fill {
    height: 100%;
    background: #4A7C59;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.level-label {
    font-size: 0.7rem;
    color: #999;
    margin-top: 2px;
}

/* KPI stats row */
.stats-row {
    display: flex;
    gap: 10px;
    width: 90%;
    max-width: 380px;
    margin-bottom: 20px;
}

.stat-card {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1C1C1C;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #888;
    margin-top: 2px;
}

/* Start button on dashboard */
.dashboard-start-btn {
    width: 90%;
    max-width: 380px;
    margin-bottom: 8px;
}


/* --- Dashboard History Section --- */
.dashboard-history {
    width: 90%;
    max-width: 380px;
    margin-top: 8px;
    margin-bottom: 10px;
    text-align: left;
}

.dashboard-history h3 {
    font-family: 'Chill Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #6b6b6b;
    margin-bottom: 12px;
    text-align: center;
}

/* Adventure history cards */
.adventure-card {
    background: #fff;
    border-left: 4px solid #C93345;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.1s;
    display: grid;
    grid-template-columns: 60px 1fr auto;
    grid-template-rows: auto auto;
    gap: 0 12px;
}

.adventure-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.adventure-card-thumb {
    grid-row: 1 / 2;
    grid-column: 1;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #f0ebe0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.adventure-card-thumb img {
    width: 40px;
    height: auto;
}

.adventure-card-info {
    grid-row: 1 / 2;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.adventure-card-path {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1C1C1C;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adventure-card-date {
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
}

.adventure-card-meta {
    grid-row: 1 / 2;
    grid-column: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
}

.adventure-card-points {
    font-size: 0.9rem;
    font-weight: 700;
    color: #d35400;
}

/* Empty state */
.adventure-card-empty {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

/* --- BOTTOM NAVIGATION BAR --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1C1C1C;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 20px;
    z-index: 1000;
    border-radius: 20px 20px 0 0;
}

.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    color: #999;
    font-family: 'Chill Sans', sans-serif;
    font-size: 0.7rem;
    cursor: pointer;
    padding: 4px 12px;
}

.nav-icon {
    font-size: 1.4rem;
}

.nav-label {
    font-size: 0.7rem;
}

.nav-tab.active {
    color: #E8824A;
}

/* --- HISTORY SCREEN --- */
.history-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 28px 20px 100px;
    background-color: #F5EFE0;
    overflow-y: auto;
}

/* ============================================
   OP ECONOMY — ADVENTURE TIMER
   ============================================ */
.adventure-timer-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: flex-end;
  background: rgba(0,0,0,0.15);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  font-family: 'Chill Sans', sans-serif;
  font-size: 14px;
  color: #F5EFE0;
}

.adventure-timer-label {
  opacity: 0.75;
}

/* ============================================
   OP ECONOMY — PARENT VERIFICATION SCREEN
   ============================================ */
.verify-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 32px 24px;
  background: #F5EFE0;
  gap: 16px;
  text-align: center;
}

.verify-title {
  font-family: 'Chill Sans', sans-serif;
  font-size: 28px;
  color: #1C1C1C;
  margin: 0;
}

.verify-subtitle {
  font-size: 16px;
  color: #555;
  max-width: 340px;
  margin: 0;
  line-height: 1.5;
}

.verify-time-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}

.verify-time-input {
  width: 90px;
  font-size: 36px;
  font-family: 'Chill Sans', sans-serif;
  text-align: center;
  border: 3px solid #1C1C1C;
  border-radius: 8px;
  padding: 8px;
  background: white;
  color: #1C1C1C;
}

.verify-time-unit {
  font-family: 'Chill Sans', sans-serif;
  font-size: 22px;
  color: #1C1C1C;
}

.verify-task-count {
  font-size: 16px;
  color: #4A7C59;
  font-weight: bold;
  margin: 0;
}

.op-earn-btn {
  background-color: #4A7C59;
  color: #F5EFE0;
  font-family: 'Chill Sans', sans-serif;
  font-size: 22px;
  padding: 16px 48px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 8px;
  width: 100%;
  max-width: 420px;
  transition: background-color 0.2s ease;
}

.op-earn-btn:hover {
  background-color: #3a6347;
}

/* ============================================
   PRINT BUTTON (shown on screen)
   ============================================ */
.print-btn {
  background-color: #E8824A;
  color: #F5EFE0;
  font-family: 'Chill Sans', sans-serif;
  font-size: 18px;
  padding: 14px 40px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  margin: 12px 0 16px;
  width: 100%;
  max-width: 420px;
  transition: background-color 0.2s ease;
}

.print-btn:hover {
  background-color: #d0703c;
}

/* ============================================
   PRINT LAYOUT (@media print)
   The #print-area div is hidden on screen and
   only shows up when the user prints.
   ============================================ */

/* Hide the print area on screen */
#print-area {
  display: none;
}

@media print {

  /* Step 1: Hide everything on the page */
  body * {
    display: none !important;
    visibility: hidden !important;
  }

  /* Step 2: Show only the print area */
  #print-area {
    display: block !important;
    visibility: visible !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-family: Georgia, serif;
    color: #1C1C1C;
    background: white;
    padding: 32px 40px;
    box-sizing: border-box;
  }

  #print-area * {
    display: block !important;
    visibility: visible !important;
  }

  /* Header */
  .print-header {
    text-align: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 16px;
    margin-bottom: 24px;
  }

  .print-logo {
    display: inline-block !important;
    width: 180px;
    margin: 0 auto 8px auto;
  }

  .print-slogan {
    font-family: 'Chill Sans', sans-serif;
    font-size: 10pt;
    color: #C93345;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 10px 0;
  }

  .print-header p {
    font-size: 11pt;
    color: #777;
    margin: 0;
  }

  /* Story box */
  .print-story {
    border: 1px solid #e0d6c8;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 24px;
    font-size: 11.5pt;
    line-height: 1.7;
    background: #fdfaf6;
  }

  /* Treasure map */
  .print-map {
    display: block !important;
    margin: 0 auto 28px auto;
    width: 320px;
    height: 230px;
  }

  /* Tasks section */
  .print-tasks h2 {
    font-family: 'Chill Sans', sans-serif;
    font-size: 14pt;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e0d6c8;
    padding-bottom: 8px;
    color: #1C1C1C;
  }

  .print-task {
    display: flex !important;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    page-break-inside: avoid;
  }

  /* The empty tickbox for pen-and-paper use */
  .print-checkbox {
    display: inline-block !important;
    width: 20px;
    min-width: 20px;
    height: 20px;
    border: 1.5px solid #aaa;
    border-radius: 4px;
    margin-top: 2px;
    flex-shrink: 0;
  }

  .print-task p {
    font-size: 11.5pt;
    line-height: 1.5;
    margin: 0;
  }

  /* Footer */
  .print-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 12px;
    border-top: 1px solid #e0d6c8;
    font-size: 9pt;
    color: #aaa;
    letter-spacing: 0.5px;
  }

} /* end @media print */

/* ============================================
   EXPLORE SCREEN
   ============================================ */

/* ── Outer container ── */
.explore-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  padding: 28px 20px 100px;
  background-color: #F5EFE0;
  overflow: hidden;
}

/* ── VIEW 1: Browse list ── */
.explore-browse-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  max-width: 380px;
  overflow-y: auto;
  padding-bottom: 80px;
}

.explore-header {
  width: 100%;
  z-index: 10;
  background: #F5EFE0;
  padding: 0 0 12px;
}

.explore-header h2 {
  font-family: 'Chill Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #6b6b6b;
  margin-bottom: 12px;
}

.explore-sort-toggle {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.explore-sort-btn {
  flex: 1;
  padding: 7px 14px;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  background: white;
  font-family: 'Chill Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.explore-sort-btn.active {
  background: #FDF0E8;
  border-color: #E8824A;
  color: #E8824A;
}

.explore-sort-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.explore-filter {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 16px;
  border: 2px solid #ddd;
  border-radius: 50px;
  font-family: 'Chill Sans', sans-serif;
  font-size: 1rem;
  background: white;
  color: #1C1C1C;
  outline: none;
  transition: border-color 0.2s;
}

.explore-filter:focus {
  border-color: #E8824A;
}

.explore-list {
  width: 100%;
  padding: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Browse location cards */
.explore-location-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 0.15s;
}

.explore-location-card:active {
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  opacity: 0.95;
}

.explore-card-main {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 12px;
}

.explore-card-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.explore-location-name {
  font-family: 'Chill Sans', sans-serif;
  font-size: 1.15rem;
  color: #1C1C1C;
  margin-bottom: 2px;
}

.explore-location-region {
  font-size: 0.78rem;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.explore-path-badge {
  background: #f0ece3;
  color: #666;
  font-size: 0.72rem;
  font-family: 'Chill Sans', sans-serif;
  padding: 3px 8px;
  border-radius: 50px;
  white-space: nowrap;
}

.explore-type-badge {
  font-size: 0.65rem;
  font-family: 'Chill Sans', sans-serif;
  padding: 2px 7px;
  border-radius: 50px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.explore-type-hike {
  background: #e8f0e3;
  color: #5a7a4a;
}
.explore-type-park {
  background: #e3ecf0;
  color: #4a6a7a;
}

.explore-dist-text {
  font-size: 0.72rem;
  color: #aaa;
}

.explore-browse-chevron {
  font-size: 1.2rem;
  color: #ccc;
  line-height: 1;
}

.explore-empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 1rem;
}

/* ── VIEWS 2 & 3: Detail views (shared) ── */
.explore-detail-view {
  min-height: 100vh;
  overflow-y: auto;
  padding-bottom: 80px;
  background: #F5EFE0;
}

.explore-detail-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #F5EFE0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #ede8de;
}

.explore-back-btn {
  background: none;
  border: none;
  font-family: 'Chill Sans', sans-serif;
  font-size: 1rem;
  color: #C93345;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.explore-detail-title {
  font-family: 'Chill Sans', sans-serif;
  font-size: 1.1rem;
  color: #1C1C1C;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── VIEW 2: Location detail ── */
.explore-location-info-block {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px 8px;
}

.explore-info-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #555;
  background: white;
  border-radius: 50px;
  padding: 6px 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  font-family: 'Chill Sans', sans-serif;
}

.explore-info-icon {
  font-size: 0.95rem;
}

.explore-location-description {
  padding: 8px 16px 16px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.55;
  margin: 0;
}

.explore-section-label {
  font-family: 'Chill Sans', sans-serif;
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 8px 16px 6px;
}

/* Path cards inside location detail */
.explore-path-card {
  background: white;
  border-radius: 14px;
  margin: 0 12px 14px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.explore-path-card-name {
  font-family: 'Chill Sans', sans-serif;
  font-size: 1rem;
  color: #1C1C1C;
  margin-bottom: 10px;
  line-height: 1.3;
}

.explore-path-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
}

.explore-diff-badge {
  font-size: 0.72rem;
  font-family: 'Chill Sans', sans-serif;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: capitalize;
  color: white;
  font-weight: 700;
}

.explore-diff-leicht { background: #4A7C59; }
.explore-diff-mittel { background: #E8824A; }
.explore-diff-schwer { background: #C93345; }

.explore-stat-chip {
  font-size: 0.78rem;
  color: #555;
  background: #f5f0e8;
  padding: 4px 10px;
  border-radius: 50px;
  font-family: 'Chill Sans', sans-serif;
}

.explore-path-card-desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin: 0 0 14px;
}

.explore-path-card-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.explore-btn-secondary {
  background: white;
  border: 2px solid #ddd;
  color: #555;
  font-family: 'Chill Sans', sans-serif;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.explore-btn-secondary:active {
  background: #f5f0e8;
}

.explore-btn-primary {
  background: #E8824A;
  border: none;
  color: white;
  font-family: 'Chill Sans', sans-serif;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 50px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.explore-btn-primary:active {
  filter: brightness(0.9);
}

/* ── Mode selection cards ── */
.mode-selection-label {
  font-family: 'Chill Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1C1C1C;
  margin-bottom: 4px;
}

.mode-cards-row {
  display: flex;
  gap: 10px;
}

.mode-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 10px 14px;
  background: white;
  border: 2px solid #ddd;
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}

.mode-card:active {
  background: #faf6ef;
}

.mode-card.selected {
  border-color: #E8824A;
  background: #fdf5ee;
  box-shadow: 0 0 0 1px #E8824A;
}

.mode-card-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.mode-card-title {
  font-family: 'Chill Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1C1C1C;
}

.mode-card-desc {
  font-family: 'Chill Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: #888;
  line-height: 1.3;
}

/* ── VIEW 3: Path detail / timeline ── */
.explore-path-stats-top {
  padding: 12px 16px;
  border-bottom: 1px solid #ede8de;
  margin-bottom: 0;
}

.explore-timeline {
  padding: 20px 16px 0;
}

.explore-timeline-entry {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.explore-timeline-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 32px;
}

.explore-timeline-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #C93345;
  color: white;
  font-family: 'Chill Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.explore-timeline-line {
  width: 2px;
  flex: 1;
  min-height: 32px;
  background: #ddd;
  margin-top: 4px;
}

.explore-timeline-content {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-bottom: 24px;
  flex: 1;
}

.explore-timeline-last .explore-timeline-content {
  padding-bottom: 4px;
}

.explore-timeline-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-top: 4px;
  flex-shrink: 0;
}

.explore-timeline-text {
  flex: 1;
  min-width: 0;
}

.explore-timeline-name {
  font-family: 'Chill Sans', sans-serif;
  font-size: 1rem;
  color: #1C1C1C;
  margin-bottom: 4px;
}

.explore-timeline-desc {
  font-size: 0.83rem;
  color: #666;
  line-height: 1.5;
}

.explore-starten-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 20px 16px 0;
  padding: 14px;
  background: #E8824A;
  border: none;
  border-radius: 50px;
  color: white;
  font-family: 'Chill Sans', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.explore-starten-btn:active {
  filter: brightness(0.9);
}

/* ============================================================
   PROFILE MANAGEMENT SCREEN
   ============================================================ */

.profile-manage-wrapper {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 16px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Account Overview Card */
.profile-account-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 20px 16px;
}

.profile-avatar-circle {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: #E8824A;
  color: #fff;
  font-family: 'Chill Sans', sans-serif;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.profile-overview-info {
  flex: 1;
  min-width: 0;
}

.profile-account-name {
  font-family: 'Chill Sans', sans-serif;
  font-size: 1.25rem;
  color: #2a2a2a;
  margin: 0 0 2px;
}

.profile-account-email {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 2px;
  word-break: break-all;
}

.profile-member-since {
  font-size: 0.78rem;
  color: #999;
  margin: 0;
}

/* Section Card */
.profile-section-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.profile-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Chill Sans', sans-serif;
  font-size: 1rem;
  color: #2a2a2a;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.profile-section-icon {
  display: flex;
  align-items: center;
  color: #E8824A;
}

.profile-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Field Display */
.profile-field-group {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
}

.profile-field-label {
  font-size: 0.72rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.profile-field-value {
  font-size: 0.95rem;
  color: #2a2a2a;
}

.profile-field-readonly {
  color: #999;
  font-style: italic;
}

/* Edit Button */
.profile-edit-btn {
  background: none;
  border: 1px solid #E8824A;
  color: #E8824A;
  font-family: 'Chill Sans', sans-serif;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
  -webkit-tap-highlight-color: transparent;
}

.profile-edit-btn:active {
  background: #E8824A;
  color: #fff;
}

/* Edit Mode */
.profile-edit-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.profile-inline-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fafafa;
  box-sizing: border-box;
}

.profile-inline-input:focus {
  outline: none;
  border-color: #E8824A;
  background: #fff;
}

.profile-edit-btns {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.profile-save-btn {
  flex: 1;
  padding: 10px;
  background: #E8824A;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Chill Sans', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.profile-save-btn:disabled {
  opacity: 0.6;
}

.profile-cancel-btn {
  flex: 1;
  padding: 10px;
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Chill Sans', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Children Cards */
.profile-child-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1.5px solid #eee;
  border-radius: 10px;
  margin-bottom: 6px;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s;
}

.profile-child-card.active {
  border-color: #E8824A;
  background: #FFF8F3;
}

.profile-child-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.profile-child-name {
  font-family: 'Chill Sans', sans-serif;
  font-size: 1rem;
  color: #2a2a2a;
}

.profile-child-age {
  font-size: 0.8rem;
  color: #999;
}

.profile-child-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.profile-child-action-btn {
  background: none;
  border: 1px solid #ccc;
  font-family: 'Chill Sans', sans-serif;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, color 0.15s;
}

.profile-child-edit-btn {
  border-color: #E8824A;
  color: #E8824A;
}

.profile-child-edit-btn:active {
  background: #E8824A;
  color: #fff;
}

.profile-child-delete-btn {
  border-color: #C93345;
  color: #C93345;
}

.profile-child-delete-btn:active {
  background: #C93345;
  color: #fff;
}

.profile-active-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.7rem;
  background: #E8824A;
  color: #fff;
  padding: 2px 8px;
  border-radius: 8px;
  font-family: 'Chill Sans', sans-serif;
}

/* Newsletter Toggle */
.profile-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.profile-toggle-label {
  font-size: 0.95rem;
  color: #2a2a2a;
}

.profile-toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc;
  border-radius: 26px;
  transition: 0.2s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
}

.profile-toggle-switch input:checked + .toggle-slider {
  background: #E8824A;
}

.profile-toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

/* Action Buttons */
.profile-actions-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.profile-action-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-family: 'Chill Sans', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border: none;
}

.profile-logout-btn {
  background: #3a3a3a;
  color: #fff;
}

.profile-reset-btn {
  background: transparent;
  color: #C93345;
  border: 1px solid #C93345 !important;
}

/* Anonymous profile cards */
.profile-card-body .profile-input {
  width: 100%;
  max-width: none;
}

.profile-card-cta {
  margin-top: 8px;
}

.profile-card-hint {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 10px;
}

.profile-login-row {
  font-size: 0.85rem;
  color: #666;
  margin: 10px 0 0;
}

.profile-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: #E8824A;
  font-family: inherit;
  font-size: inherit;
  text-decoration: underline;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Inline Messages */
.profile-inline-msg {
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 8px;
  text-align: center;
}

.profile-success-msg {
  background: #e8f5e9;
  color: #2e7d32;
}

.profile-error-msg {
  background: #fce4ec;
  color: #c62828;
}

/* Password Form */
.profile-password-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ============================================================
   PARENT REGISTRATION & AUTH COMPONENTS
   ============================================================ */

.parent-reg-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: #F5EFE0;
  border-radius: 16px;
  margin: 8px 0;
  width: 100%;
  box-sizing: border-box;
}

.parent-reg-container h3 {
  font-family: 'Chill Sans', sans-serif;
  font-size: 1.2rem;
  color: #1C1C1C;
  margin: 0;
}

.reg-label {
  font-family: 'Chill Sans', sans-serif;
  font-size: 0.85rem;
  color: #555;
  margin: 4px 0 2px;
}

.reg-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Chill Sans', sans-serif;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s;
}

.reg-input:focus {
  outline: none;
  border-color: #E8824A;
}

.reg-error {
  font-family: 'Chill Sans', sans-serif;
  font-size: 0.78rem;
  color: #C93345;
  min-height: 16px;
  display: block;
}

.reg-checkbox-label {
  font-family: 'Chill Sans', sans-serif;
  font-size: 0.9rem;
  color: #1C1C1C;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  cursor: pointer;
}

.reg-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #E8824A;
}

/* Step indicator dots */
.reg-step-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.reg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  transition: background 0.2s;
}

.reg-dot.active {
  background: #E8824A;
  transform: scale(1.2);
}

.reg-dot.done {
  background: #2a6041;
}

/* Password field */
.reg-password-wrap {
  position: relative;
  width: 100%;
}

.reg-password-wrap .reg-input {
  padding-right: 70px;
}

.reg-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-family: 'Chill Sans', sans-serif;
  font-size: 0.8rem;
  color: #E8824A;
  cursor: pointer;
  padding: 4px 8px;
}

.reg-strength-text {
  font-family: 'Chill Sans', sans-serif;
  font-size: 0.78rem;
  min-height: 16px;
  display: block;
}

/* Button row (back + next) */
.reg-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.reg-btn-row .confirm-btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.95rem;
}

/* Skip / back link */
.reg-skip-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-family: 'Chill Sans', sans-serif;
  font-size: 0.85rem;
  color: #888;
  text-decoration: underline;
  cursor: pointer;
}

.reg-skip-link:hover {
  color: #555;
}

/* OTP digit inputs */
.otp-input-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.otp-digit {
  width: 52px;
  height: 60px;
  text-align: center;
  font-family: 'Chill Sans', sans-serif;
  font-size: 1.8rem;
  border: 2px solid #ccc;
  border-radius: 10px;
  background: #fff;
  color: #1C1C1C;
  transition: border-color 0.2s;
}

.otp-digit:focus {
  outline: none;
  border-color: #E8824A;
}

.verification-badge {
  display: inline-block;
  background: #2a6041;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---- UGC Landmark Submission Overlay ---- */

.ugc-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.ugc-modal {
  background: #1C1C1C;
  border-radius: 16px;
  padding: 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.ugc-modal h3 {
  color: #F5EFE0;
  font-family: 'Chill Sans', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.ugc-modal p {
  color: #F5EFE0;
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.4;
}

.ugc-modal input,
.ugc-modal textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #333;
  border-radius: 8px;
  background: #2A2A2A;
  color: #F5EFE0;
  font-size: 0.95rem;
  margin-bottom: 12px;
  outline: none;
}

.ugc-modal input:focus,
.ugc-modal textarea:focus {
  border-color: #E8824A;
}

.ugc-modal .primary-btn {
  width: 100%;
  padding: 12px;
  background: #E8824A;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
}

.ugc-modal .secondary-btn {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: #888;
  border: 1px solid #444;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Star rating */
.star-rating {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.star-rating .star {
  font-size: 2rem;
  color: #444;
  cursor: pointer;
  transition: color 0.15s;
}

.star-rating .star.active {
  color: #E8824A;
}

.star-rating .star:hover {
  color: #E8824A;
}