/* MOBILE-FIRST APP DESIGN SYSTEM */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-app: #f6f4ed;
  --bg-surface: #ffffff;
  --bg-card-subtle: #efe9dc;
  --bg-card-accent: #fbf9f4;
  
  --primary-green: #19382b;
  --primary-green-light: #2c5442;
  --accent-gold: #c6993a;
  --accent-terracotta: #b65f37;
  
  --text-primary: #15261f;
  --text-muted: #54635c;
  
  --border-color: #e2dcd0;
  
  --shadow-sm: 0 4px 14px rgba(25, 56, 43, 0.04);
  --shadow-md: 0 10px 30px rgba(25, 56, 43, 0.08);
  --shadow-lg: 0 20px 50px rgba(25, 56, 43, 0.12);
  
  --radius-card: 18px;
  --radius-btn: 30px;
  
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 75px; /* Mobile bottom bar space */
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-back-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-green);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(25, 56, 43, 0.2);
}

.btn-back-app:hover {
  background: var(--primary-green-light);
  transform: translateX(-3px);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-green);
}

.brand-badge-icon {
  width: 34px;
  height: 34px;
  background: var(--primary-green);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.brand-logo-img {
  height: 58px;
  max-height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 600px) {
  .brand-logo-img {
    height: 46px;
    max-height: 50px;
  }
}

/* Main App View Container */
.app-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 16px;
}

/* Featured Hero App Card for index.html */
.hero-app-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .hero-app-card {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
  }
}

.hero-app-card-img {
  position: relative;
  height: 220px;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-app-card-img {
    height: 100%;
    min-height: 280px;
  }
}

.hero-app-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-app-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  margin: 0;
  background: rgba(25, 56, 43, 0.92);
  color: #fff;
  border: none;
}

.hero-app-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .hero-app-card-body {
    padding: 28px;
    gap: 14px;
  }
}

.hero-app-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary-green);
  line-height: 1.25;
}

@media (min-width: 768px) {
  .hero-app-title {
    font-size: 1.85rem;
  }
}

.hero-app-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* App Editorial Header */
.app-hero-header {
  text-align: center;
  margin-bottom: 24px;
}

.app-pill {
  display: inline-block;
  background: rgba(198, 153, 58, 0.15);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.app-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary-green);
  line-height: 1.25;
  margin-bottom: 8px;
}

.app-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Responsive Grid System: 2 Columns on Mobile, 3-4 Columns on Desktop */
.grid-mobile-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .grid-mobile-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 992px) {
  .grid-mobile-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* Touch Card Design */
.mobile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mobile-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-green);
}

.mobile-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--bg-card-subtle);
}

.mobile-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mobile-card:hover .mobile-card-img {
  transform: scale(1.04);
}

.mobile-card-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(25, 56, 43, 0.92);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mobile-card-body {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

@media (min-width: 640px) {
  .mobile-card-body {
    padding: 16px;
  }
}

.mobile-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--primary-green);
  margin-bottom: 2px;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .mobile-card-title {
    font-size: 1.2rem;
  }
}

.mobile-card-sub {
  font-size: 0.8rem;
  color: var(--accent-terracotta);
  font-weight: 700;
  margin-bottom: 6px;
}

.mobile-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Ingredient Chips */
.chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  margin-bottom: 12px;
}

.chip {
  background: var(--bg-card-subtle);
  color: var(--primary-green);
  border: 1px solid rgba(25, 56, 43, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Step Box Mobile */
.step-box-mobile {
  background: var(--bg-card-accent);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.step-box-title {
  font-family: var(--font-heading);
  color: var(--primary-green);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

/* Warning & Tip Callouts */
.callout-warn-mobile {
  background: rgba(239, 68, 68, 0.08);
  border-left: 4px solid #ef4444;
  padding: 10px 14px;
  border-radius: 8px;
  color: #991b1b;
  font-size: 0.85rem;
  margin-top: 12px;
}

.callout-tip-mobile {
  background: rgba(25, 56, 43, 0.08);
  border-left: 4px solid var(--primary-green);
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--primary-green);
  font-size: 0.85rem;
  margin-top: 12px;
}

/* Floating Bottom Mobile Nav Bar */
.bottom-app-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  z-index: 200;
  padding: 8px 12px;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.bottom-app-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  gap: 4px;
}

.bottom-app-tab.active {
  color: var(--primary-green);
  font-weight: 700;
}

.bottom-tab-icon {
  width: 22px;
  height: 22px;
  background-color: var(--text-muted);
  display: inline-block;
  transition: background-color 0.2s ease, transform 0.2s ease;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.bottom-app-tab.active .bottom-tab-icon {
  background-color: var(--primary-green);
  transform: translateY(-1px);
}

/* HD Vector Icon Masks */
.icon-home {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/></svg>");
}

.icon-plants {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 3c-4.97 0-9 4.03-9 9 0 2.12.74 4.07 1.97 5.61L4.35 19.3c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0l1.9-1.9C9.2 19.53 10.56 20 12 20c4.97 0 9-4.03 9-9 0-4.97-4.03-9-9-9zm1 14.93V15c0-.55-.45-1-1-1s-1 .45-1 1v2.93C8.07 17.44 5 14.17 5 10c0-3.86 3.14-7 7-7s7 3.14 7 7c0 4.17-3.07 7.44-7 7.93z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 3c-4.97 0-9 4.03-9 9 0 2.12.74 4.07 1.97 5.61L4.35 19.3c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0l1.9-1.9C9.2 19.53 10.56 20 12 20c4.97 0 9-4.03 9-9 0-4.97-4.03-9-9-9zm1 14.93V15c0-.55-.45-1-1-1s-1 .45-1 1v2.93C8.07 17.44 5 14.17 5 10c0-3.86 3.14-7 7-7s7 3.14 7 7c0 4.17-3.07 7.44-7 7.93z'/></svg>");
}

.icon-infusions {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M20 3H4v2h16V3zm-2 5h-3V7h-2v1H9V7H7v1H4v5c0 3.87 3.13 7 7 7s7-3.13 7-7V8zm-2 5c0 2.76-2.24 5-5 5s-5-2.24-5-5v-3h10v3z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M20 3H4v2h16V3zm-2 5h-3V7h-2v1H9V7H7v1H4v5c0 3.87 3.13 7 7 7s7-3.13 7-7V8zm-2 5c0 2.76-2.24 5-5 5s-5-2.24-5-5v-3h10v3z'/></svg>");
}

.icon-beverages {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M18.5 3H6c-1.1 0-2 .9-2 2v13c0 1.66 1.34 3 3 3h10c1.66 0 3-1.34 3-3V5c0-1.1-.9-2-2.5-2zm-1 13h-11V5h11v11zM10 8h4v2h-4V8zm0 4h4v2h-4v-2z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M18.5 3H6c-1.1 0-2 .9-2 2v13c0 1.66 1.34 3 3 3h10c1.66 0 3-1.34 3-3V5c0-1.1-.9-2-2.5-2zm-1 13h-11V5h11v11zM10 8h4v2h-4V8zm0 4h4v2h-4v-2z'/></svg>");
}

.icon-challenge {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12.3 2a10 10 0 0 0-1.9 20 10 10 0 0 0 9.8-7.9 1 1 0 0 0-1.1-1.2 8 8 0 1 1-8-8 1 1 0 0 0-1.2-1.1z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12.3 2a10 10 0 0 0-1.9 20 10 10 0 0 0 9.8-7.9 1 1 0 0 0-1.1-1.2 8 8 0 1 1-8-8 1 1 0 0 0-1.2-1.1z'/></svg>");
}

/* Buttons */
.btn-app-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent-gold), #a57c28);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

/* Filter Bar & Category Buttons */
.filter-bar-mobile {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-input-mobile {
  width: 100%;
  padding: 12px 18px;
  border-radius: 25px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-mobile:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(25, 56, 43, 0.12);
}

.categories-scroll-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.categories-scroll-row::-webkit-scrollbar {
  display: none;
}

.cat-btn-mobile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.cat-btn-mobile:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
  background: rgba(25, 56, 43, 0.04);
}

.cat-btn-mobile.active {
  background: var(--primary-green);
  color: #ffffff;
  border-color: var(--primary-green);
  box-shadow: 0 4px 12px rgba(25, 56, 43, 0.2);
}

@media (max-width: 600px) {
  .app-title { font-size: 1.65rem; }
  .app-main { padding: 16px 12px; }
  .mobile-card-body { padding: 16px; }
  .app-header .btn-app-gold { display: none !important; }
}

/* PC / Desktop Master Single-Screen Puzzle Layout */
@media (min-width: 900px) {
  .bottom-app-bar {
    display: none !important;
  }
  body {
    padding-bottom: 0 !important;
  }

  .header-container,
  .app-main {
    max-width: 1280px;
  }

  .app-header {
    padding: 4px 16px;
  }

  .brand-logo-img {
    height: 44px;
    max-height: 48px;
  }

  .app-main {
    padding: 10px 16px;
  }

  /* Puzzle 2-Column Split Dashboard */
  .dashboard-puzzle-wrap {
    display: grid;
    grid-template-columns: 0.85fr 1.45fr;
    gap: 16px;
    align-items: start;
  }

  /* Left Panel: Featured Main Product */
  .puzzle-left-hero {
    display: flex;
    flex-direction: column;
  }

  .puzzle-left-hero .hero-app-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }

  .puzzle-left-hero .hero-app-card-img {
    height: 160px;
    width: 100%;
  }

  .puzzle-left-hero .hero-app-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
  }

  .puzzle-left-hero .hero-app-title {
    font-size: 1.22rem;
    line-height: 1.25;
    margin-bottom: 4px;
  }

  .puzzle-left-hero .hero-app-desc {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--text-muted);
  }

  .puzzle-left-hero .btn-app-gold {
    padding: 7px 10px;
    font-size: 0.78rem;
    border-radius: 8px;
  }

  /* Right Panel: 7 Bonuses Puzzle Grid */
  .puzzle-right-bonos {
    display: flex;
    flex-direction: column;
  }

  .puzzle-bonos-header {
    margin-bottom: 8px;
  }

  .puzzle-bonos-header h2 {
    font-size: 1.15rem !important;
    margin-top: 2px !important;
    margin-bottom: 4px !important;
  }

  .puzzle-right-bonos .grid-mobile-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .puzzle-right-bonos .mobile-card {
    border-radius: 10px;
    overflow: hidden;
  }

  .puzzle-right-bonos .mobile-card-img-wrap {
    height: 110px;
    aspect-ratio: auto;
    background: #f2f4f2;
    overflow: hidden;
    position: relative;
  }

  .puzzle-right-bonos .mobile-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #eef2ee;
  }

  .puzzle-right-bonos .mobile-card-tag {
    font-size: 0.62rem;
    padding: 2px 5px;
  }

  .puzzle-right-bonos .mobile-card-body {
    padding: 6px 8px;
    gap: 3px;
  }

  .puzzle-right-bonos .mobile-card-title {
    font-size: 0.76rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .puzzle-right-bonos .mobile-card-desc {
    font-size: 0.68rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    color: var(--text-muted);
  }

  .puzzle-right-bonos .btn-app-gold {
    padding: 4px 6px;
    font-size: 0.7rem;
    border-radius: 6px;
    width: 100%;
    text-align: center;
  }
}
