/* CSS Varijable i Globalni Reset */
:root {
  --bg-hub: #ffffff;
  --bg-portal-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  --text-dark: #1d1d1f;
  --text-muted: #6c757d;
  --accent-green: #4caf50;
  --accent-green-light: #66bb6a;
  --error-color: #d9534f;
  --card-bg: rgba(255, 255, 255, 0.92);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 28px 70px rgba(0, 0, 0, 0.11);
  --border-radius: 28px;
  --transition-fast: 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  --z-index-skip-button: 1001;
  --z-index-modal-overlay: 2000;
}

/* --- HIBRIDNI DARK MODE --- */
html.dark-mode-active {
  filter: invert(1) hue-rotate(180deg);
}
html.dark-mode-active img,
html.dark-mode-active video,
html.dark-mode-active iframe {
  filter: invert(1) hue-rotate(180deg);
}
html.dark-mode-active .modal-header h3 {
  filter: invert(1) hue-rotate(180deg);
  color: #CCCCCC;
}
html.dark-mode-active .modal-header .las {
  filter: invert(1) hue-rotate(180deg);
  color: #4CAF50;
}
html.dark-mode-active .modal-overlay {
  background: rgba(255, 255, 255, 0.85); 
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  font-size: 16px;
}
* {
  -webkit-overflow-scrolling: touch;
}
/* === UNIVERZALNI KOD ZA SAKRIVANJE SVIH SKROL BAROVA === */
*::-webkit-scrollbar {
  display: none;
}
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body {
  font-family: "Mulish", sans-serif;
  background: var(--bg-hub);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
}
body.is-landing .site-hub {
  display: none;
}

/* Interaktivni Landing Kontejner */
.interactive-landing {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100dvh;
  background: var(--bg-portal-gradient);
  transition: opacity 0.8s var(--transition-slow);
  padding: 2rem 1.5rem;
  align-items: center;
}

/* Stilovi Faza (Ekrana) */
#phase-mystery.active {
  display: flex;
  flex-grow: 1;
  justify-content: center;
}
.landing-phase {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: clamp(320px, 90vw, 1200px);
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--transition-slow),
    transform 0.6s var(--transition-slow);
  padding-bottom: 4rem;
}
.landing-phase.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
#phase-reveal {
  transform: scale(0.95);
  transition: opacity 0.8s var(--transition-slow),
    transform 0.8s var(--transition-slow);
}
#phase-reveal.active {
  transform: scale(1);
}

/* Tipografija */
.title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #1d1d1f, #343a40);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.subtitle {
  font-size: clamp(1rem, 3.5vw, 1.1rem);
  color: var(--text-muted);
  max-width: 80%;
  margin: 0 auto 3rem;
  line-height: 1.7;
  font-weight: 500;
}
.no-wrap {
  white-space: nowrap;
}

/* Forma i Polja za Unos */
#phase-secret .form-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: clamp(320px, 90vw, 1200px);
  margin-top: 2rem;
}
.label {
  font-weight: 700;
  color: #495057;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  display: block;
  text-align: left;
}
input[type="number"],
select {
  font-family: inherit;
  font-size: 1.15rem;
  width: 100%;
  padding: 1.2rem 1.5rem;
  border: 2px solid #ced4da;
  border-radius: 16px;
  background: white;
  text-align: center;
  transition: all var(--transition-fast);
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
}
input[type="number"]:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 6px rgba(76, 175, 80, 0.15);
  transform: scale(1.01);
}
.gender-selector {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
.gender-selector legend {
  font-weight: 700;
  color: #495057;
  margin-bottom: 1rem;
  font-size: 1rem;
  width: 100%;
  text-align: left;
  padding: 0;
}
.gender-option-label {
  position: relative;
  flex: 1;
  cursor: pointer;
  max-width: 150px;
}
.gender-option-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.gender-visual {
  border: 2px solid #ced4da;
  border-radius: 16px;
  padding: 1.8rem;
  transition: all var(--transition-fast);
  background: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;
}
.gender-option-label:hover .gender-visual {
  transform: translateY(-4px);
  border-color: #aab5c0;
}
.gender-option-label input[type="radio"]:checked + .gender-visual {
  border-color: var(--accent-green);
  transform: scale(1.03);
  box-shadow: 0 0 0 6px rgba(76, 175, 80, 0.15);
}
.gender-option-label input[type="radio"]:focus-visible + .gender-visual {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 6px rgba(76, 175, 80, 0.15);
}
.gender-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.select-wrapper {
  position: relative;
  width: 100%;
}
.select-wrapper::after {
  content: "\f078";
  font-family: "Line Awesome Free";
  font-weight: 900;
  font-size: 1rem;
  color: #ced4da;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
select {
  cursor: pointer;
}
.error-message {
  color: var(--error-color);
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  height: 0;
  opacity: 0;
  transition: height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
  text-align: center;
}
.error-message.active {
  height: auto;
  min-height: 20px;
  opacity: 1;
  margin-top: 0.5rem;
}
.metrics-grid-mobile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.5rem;
}
.metrics-grid-mobile .input-group:nth-child(3) {
  grid-column: 1 / -1;
}

/* Kartica sa Rezultatima */
.results-card {
  background: white;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-strong);
  width: 100%;
  max-width: clamp(320px, 90vw, 1200px);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.results-card__title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1d1d1f;
}
.results-card__subtitle {
  color: #6c757d;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
.results-card__footnote {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}
.results-main-metrics,
.results-actions {
  width: 100%;
}
.results-display {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}
.result-item,
.macro-item {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: transform, opacity;
}
.main-metrics-card.results-visible .result-item:nth-child(1) { transition-delay: 0.3s; }
.main-metrics-card.results-visible .result-item:nth-child(2) { transition-delay: 0.45s; }
.main-metrics-card.results-visible .result-item:nth-child(3) { transition-delay: 0.6s; }
.macro-card.results-visible .macro-item:nth-child(1) { transition-delay: 0.75s; }
.macro-card.results-visible .macro-item:nth-child(2) { transition-delay: 0.9s; }
.macro-card.results-visible .macro-item:nth-child(3) { transition-delay: 1.05s; }

.main-metrics-card.results-visible .result-item,
.macro-card.results-visible .macro-item {
  opacity: 1;
  transform: translateY(0);
}
.result-label {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  font-weight: 500;
}
.result-value {
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 900;
  background: linear-gradient(
    135deg,
    var(--accent-green),
    var(--accent-green-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  animation: pulse 2s 1.5s 1 cubic-bezier(0.25, 0.8, 0.25, 1);
}
.result-value::after {
  content: " kcal";
  font-size: clamp(1rem, 3vw, 1.8rem);
  color: #aab5c0;
  font-weight: 600;
  display: block;
  margin-top: 0.25rem;
}
#water-result::after {
  content: " L";
}

/* Kartica sa Makronutrijentima */
.macro-card {
  background: rgba(76, 175, 80, 0.05);
  padding: 2rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(76, 175, 80, 0.15);
  text-align: center;
  margin-top: 2rem;
  width: 100%;
}
.macro-card__title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #1d1d1f;
}
.macro-grid {
  display: flex;
  justify-content: space-around;
  gap: 0.5rem;
  margin-top: 1rem;
}
.macro-item {
  padding: 0.5rem 0.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.macro-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.75rem;
  height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.macro-value {
  font-size: clamp(2.2rem, 7vw, 2.6rem);
  font-weight: 900;
  color: var(--accent-green);
}
.macro-value::after {
  content: "g";
  font-size: 1rem;
  color: #aab5c0;
  margin-left: 0.25rem;
}
.disclaimer {
  font-size: 0.875rem;
  color: #adb5bd;
  margin-top: 1.5rem;
  line-height: 1.55;
  font-style: italic;
}

/* Dugmad */
.btn-primary,
.btn-secondary {
  border: none;
  padding: 1.2rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 2rem;
  font-family: inherit;
  width: 100%;
  max-width: clamp(200px, 50vw, 320px);
}
.btn-primary {
  background: var(--accent-green);
  color: white;
  box-shadow: 0 8px 28px rgba(76, 175, 80, 0.32);
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(76, 175, 80, 0.42);
}
.btn-secondary {
  background: none;
  border: 2px solid #ced4da;
  color: var(--text-muted);
  padding: 0.8rem 2rem;
  font-size: 0.95rem;
  margin-top: 1rem;
}
.btn-secondary:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  transform: translateY(-2px);
}
.button-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: clamp(200px, 50vw, 320px);
}
.button-group .btn-primary,
.button-group .btn-secondary {
  margin: 0;
  width: 100%;
}
.skip-button {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  z-index: var(--z-index-skip-button);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.skip-button.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.skip-button:hover {
  transform: translateY(-3px);
  background: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
}

/* Media Queries za Responsivnost */
@media (min-width: 768px) {
  .results-card {
    padding: 4rem;
  }
  .macro-card {
    padding: 2.5rem;
    margin-top: 3rem;
  }
  .macro-grid {
    gap: 1rem;
  }
  .macro-label {
    font-size: 0.95rem;
  }
  .landing-phase {
    max-width: clamp(600px, 80vw, 900px);
    padding-bottom: 0;
  }
  #phase-secret .form-container {
    flex-direction: row;
    gap: 2.5rem;
    align-items: stretch;
    max-width: clamp(600px, 80vw, 900px);
  }
  .form-step-card {
    flex: 1 1 0%;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .metrics-grid-mobile {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }
  .form-step-card .input-group:not(:last-child) {
    margin-bottom: 2.5rem;
  }
  .results-display {
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
  }
  .result-item {
    flex: 1;
  }
  .macro-grid {
    flex-wrap: nowrap;
  }
  .btn-primary,
  .btn-secondary {
    width: auto;
    max-width: none;
    white-space: nowrap;
  }
  .gender-option-label {
    max-width: 200px;
  }
  .button-group {
    flex-direction: row;
    justify-content: flex-start;
    max-width: none;
  }
}

@media (min-width: 992px) {
  .landing-phase,
  #phase-secret .form-container,
  .results-card {
    max-width: clamp(800px, 80vw, 1200px);
  }
  .results-grid-desktop {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem 2rem;
    width: 100%;
    align-items: stretch;
  }
  .results-main-metrics {
    grid-area: 1 / 1 / 2 / 2;
    display: flex;
  }
  .results-actions {
    grid-area: 1 / 2 / 2 / 3;
    display: flex;
    flex-direction: column;
  }
  .results-card__footnote {
    grid-area: 2 / 1 / 3 / 2;
    margin: 0;
    align-self: center;
    text-align: center;
  }
  .results-actions-footer {
    grid-area: 2 / 2 / 3 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .results-actions-footer .disclaimer {
    display: block;
    margin-top: 0;
    text-align: center;
  }
  .results-actions-footer .button-group {
    justify-content: center;
  }
  .main-metrics-card,
  .macro-card {
    height: 100%;
  }
  .main-metrics-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .results-display {
    margin-bottom: 0;
  }
  .result-item {
    text-align: center;
  }
  .macro-card {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
  }
}
@media (min-width: 1200px) {
  .interactive-landing {
    padding: 5rem;
  }
  .landing-phase,
  #phase-secret .form-container,
  .results-card {
    max-width: 1200px;
  }
  .results-grid-desktop {
    gap: 2rem 3rem;
  }
}

/* Stilovi za Glavni Sajt (Hub) */
body:not(.is-landing) .site-hub {
  opacity: 1;
}
.site-hub {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
}
.hub-header {
  padding: 3rem 2rem 1.5rem;
  text-align: center;
}
.hub-logo {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-dark);
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.hub-subtitle {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}
.hub-logo img {
  height: 1.2em;
  width: auto;
}
.hub-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
  width: 100%;
}
.hub-message-card {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
  max-width: 800px;
  width: calc(100% - 4rem);
  margin: 0 2rem 3rem;
}
.hub-message-card h2 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.hub-message-card p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.highlight {
  color: var(--accent-green);
  font-weight: 700;
}
.navigation-instructions {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 500px;
}
.navigation-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.navigation-wrapper {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.navigation-wrapper::-webkit-scrollbar {
  display: none;
}
.nav-card {
  flex: 0 0 clamp(280px, 80vw, 360px);
  scroll-snap-align: center;
  background: white;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-medium);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nav-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}
.nav-card-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: #00ff63;
}
.nav-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.nav-card-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.hub-footer {
  padding: 3rem 2rem;
  text-align: center;
  flex-shrink: 0;
}
.footer-message {
  font-style: italic;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 500;
  line-height: 1.7;
}

/* Stilovi za Modal i PDF */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29, 29, 31, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: var(--z-index-modal-overlay);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--transition-slow), visibility 0s 0.5s;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--transition-slow);
}
.modal-content {
  background: white;
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(100vh);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-overflow-scrolling: touch;
  padding: 2rem 1.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.modal-content::-webkit-scrollbar {
  display: none;
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f1f1;
  border: none;
  font-size: 1.5rem;
  font-weight: 400;
  color: #888;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  z-index: 2050;
}
.modal-header,
.modal-footer {
  padding: 2rem 0;
  text-align: center;
}
.modal-header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e9ecef;
  position: relative;
}
.modal-header .las {
  font-size: 3.5rem;
  color: var(--accent-green);
  margin-bottom: 0.75rem;
}
.modal-header h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
}
.modal-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}
.meal-plan-dynamic {
  padding: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
#meal-plan-content > p:last-of-type {
  margin-bottom: 2rem;
}
.meal-plan-summary {
  page-break-inside: avoid;
  text-align: center;
  font-weight: 700;
  margin-top: 1.5rem;
  font-size: 1.1rem;
}
.meal-card {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: left;
  border: 1px solid #e9ecef;
  transition: transform var(--transition-fast);
  page-break-inside: avoid;
}
.meal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.meal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.meal-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
}
.meal-card-calories {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-green);
}
.meal-card-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.water-tip-section {
  display: flex;
  align-items: center;
  background: #eef7ff;
  border: 1px solid #d1e7ff;
  border-radius: 16px;
  padding: 1.5rem;
  margin: 0;
  text-align: center;
  page-break-inside: avoid;
  flex-direction: column;
}
.water-tip-section .tip-card-icon .las {
  font-size: 2.5rem;
  color: #007bff;
  margin: 0 0 1rem 0;
}
.water-tip-section .tip-card-content h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: var(--text-dark);
}
.water-tip-section .tip-card-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}
.water-tip-section .tip-card-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.95rem;
}
.water-tip-section .tip-card-links a {
  color: var(--accent-green);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}
.water-tip-section .tip-card-links a:hover {
  color: #367c39;
}
.water-tip-section .tip-card-links a i {
  vertical-align: middle;
}
.modal-footer {
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}
.modal-footer .btn-secondary,
.modal-footer .modal-cta {
  width: 100%;
  max-width: 400px;
  margin: 0;
  padding: 1.2rem;
  text-decoration: none;
}
.modal-disclaimer {
  font-size: 0.9rem;
  color: #adb5bd;
  margin-bottom: 1rem;
  font-style: italic;
  line-height: 1.6;
  text-align: center;
  max-width: 80%;
}
@media (min-width: 768px) {
  .modal-content {
    width: 100%;
    max-width: 720px;
    max-height: 85dvh;
    border-radius: 24px;
    padding: 2.5rem;
    margin-top: auto;
    margin-bottom: auto;
  }
  .modal-header,
  .modal-footer {
    padding: 0;
  }
  .modal-header {
    padding-bottom: 1.5rem;
  }
  .meal-plan-dynamic {
    padding-top: 2.5rem;
  }
  .modal-footer {
    padding-top: 2rem;
  }
  .water-tip-section {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }
  .water-tip-section .tip-card-icon .las {
    margin: 0 1.5rem 0 0;
  }
  #meal-plan-content > p:last-of-type {
    margin-bottom: 2.5rem;
  }
  .modal-footer {
    flex-direction: column;
    gap: 2rem;
  }
  .modal-footer .btn-secondary,
  .modal-footer .modal-cta {
    width: 100%;
    max-width: 400px;
  }
}

/* Animacije i Stilovi za Štampu */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
@media print {
  body {
    background: white;
    margin: 0;
    padding: 0;
  }
  .modal-overlay,
  .modal-content {
    position: static;
    width: 100%;
    height: auto;
  }
  .modal-close,
  .modal-footer,
  .water-tip-section {
    display: none !important;
  }
  .modal-content {
    box-shadow: none;
    border-radius: 0;
    padding: 2rem;
  }
  .meal-card {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 1.5rem;
  }
}

/* Media Queries za Mobilne Uređaje (Specifične Ispravke) */
@media (max-width: 767px) {
  .hub-subtitle {
    font-size: 1.2rem;
  }
  .results-card {
    padding: 2rem 1rem;
  }
  .results-grid-desktop {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    grid-area: unset !important;
  }
  .results-main-metrics,
  .results-actions,
  .results-card__footnote,
  .results-actions-footer {
    grid-area: unset !important;
    width: 100%;
  }
  .results-main-metrics { order: 1; }
  .results-actions { order: 2; }
  .results-card__footnote { order: 3; }
  .results-actions-footer { order: 4; }

  .main-metrics-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 1.5rem 1rem;
    border-radius: 20px;
    width: 100%;
  }
  .results-display {
    flex-direction: row;
    gap: 0.5rem;
  }
  .result-item {
    flex: 1 1 0;
    text-align: center;
    min-width: 0;
  }
  .result-value {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }
  .result-value::after {
    font-size: clamp(0.8rem, 2.5vw, 1.2rem);
  }
  .macro-card {
    margin-top: 0;
  }
  .results-card__footnote,
  .results-actions-footer {
    text-align: center;
  }
  .button-group {
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 400px) {
  .meal-plan-summary {
    font-size: 0.9rem !important;
    white-space: nowrap;
  }
}