:root {
  --bg: #06111f;
  --panel: #0c2039;
  --gold: #efbf51;
  --gold-hover: #ffd21c;
  --text: #f5f7fb;
  --muted: #9fb0c6;
  --line: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 75% 8%, rgba(30, 133, 255, 0.18), transparent 25%),
              linear-gradient(#050e1a, #081a2d 48%, #06111f);
  color: var(--text);
}

.wrap {
  width: min(1120px, calc(100% - 28px));
  margin: auto;
}

header {
  position: sticky;
  top: 0;
  background: rgba(5, 14, 26, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.nav {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 17px;
  background: linear-gradient(135deg, #f3ca67, #d79a22);
  color: #07111d;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.hero {
  padding: 70px 0;
}

.heroGrid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.pill {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  border: 1px solid rgba(239, 191, 81, 0.3);
  padding: 8px 10px;
  border-radius: 999px;
}

h1 {
  font-size: clamp(46px, 7vw, 80px);
  line-height: 0.98;
  letter-spacing: -3px;
  margin: 20px 0;
}

h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero p {
  color: #b5c4d6;
  font-size: 18px;
  line-height: 1.6;
}

.search {
  display: flex;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(12, 32, 57, 0.8);
  padding: 8px;
  border-radius: 17px;
  max-width: 580px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(239, 191, 81, 0.2);
}

.search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 0 12px;
  outline: 0;
}

.hero small {
  display: block;
  color: var(--muted);
  margin-top: 16px;
}

.visual {
  height: 390px;
  border-radius: 28px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(30, 133, 255, 0.19), transparent 45%), #08192c;
}

.visual img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(239, 191, 81, 0.12);
}

section {
  padding: 60px 0;
}

h2 {
  font-size: 36px;
}

.chips {
  display: flex;
  gap: 12px;
  padding: 4px 0 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.chips::-webkit-scrollbar {
  height: 4px;
}
.chips::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.chips button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: #0c2039;
  color: #e5edf7;
  padding: 9px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.chips button:hover {
  transform: translateY(-1px);
  border-color: rgba(239, 191, 81, 0.55);
}

.chips button.active {
  border-color: rgba(239, 191, 81, 0.6);
  color: var(--gold);
}

.chips button img {
  display: block;
  width: 20px;
  height: 13px;
  min-width: 20px;
  max-width: 20px;
  min-height: 13px;
  max-height: 13px;
  object-fit: cover;
  flex: 0 0 20px;
}

#status {
  width: min(1120px, calc(100% - 28px));
  margin: 18px auto;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.65);
}

.grid {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card, .steps article {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #102b4d, #091a2e);
  border-radius: 20px;
  padding: 22px;
}

.data {
  font-size: 36px;
  font-weight: 900;
  margin: 10px 0;
}

.price {
  font-size: 28px;
  color: var(--gold);
  font-weight: 900;
  margin: 18px 0;
}

.meta {
  color: var(--muted);
  font-size: 13px;
}

.card button {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(239, 191, 81, 0.5);
  background: transparent;
  color: var(--gold);
  font-weight: 900;
  cursor: pointer;
}

.alt {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

/* ===== ROAM TRUST PREMIUM ESIM CARDS ===== */

.esim-plan-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 20px;
  border: 1px solid rgba(239, 191, 81, 0.72);
  border-radius: 22px;
  background: radial-gradient(circle at 50% 0%, rgba(30, 133, 255, 0.16), transparent 38%),
              linear-gradient(180deg, #0d2a50 0%, #081a31 58%, #061322 100%);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 440px;
  height: 100%;

  /* Kursor strelica preko cele kartice */
  cursor: default !important;
}

.esim-plan-card * {
  cursor: default;
}

.esim-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38), 0 0 22px rgba(239, 191, 81, 0.08);
}

.plan-destination {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 54px;
  margin-bottom: 8px;
}

.plan-flag {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.plan-country {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #f7f9fc;
}

.plan-divider {
  height: 1px;
  margin: 10px 8px;
  background: linear-gradient(90deg, transparent, rgba(239, 191, 81, 0.8), transparent);
}

.plan-data {
  margin: 4px 0 8px;
  font-size: 36px;
  line-height: 1;
  font-weight: 900;
  color: #fff;
}

.plan-duration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #eef4fb;
  font-size: 14px;
  font-weight: 700;
  margin: 8px auto 10px;
}

.plan-benefits {
  margin: 10px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  text-align: left;
  color: #d9e4f1;
  font-size: 13px;
  line-height: 1.8;
  flex-grow: 1;
}

.plan-benefits div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.plan-benefits div:first-child {
  color: #f3f6fb;
}

.plan-price-label {
  margin-top: 4px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
}

.plan-price {
  margin: 4px 0 10px;
  font-size: 31px;
  color: var(--gold);
  font-weight: 900;
}

/* SAMO dugme za kupovinu ima ruku (prst) */
.esim-plan-card .plan-buy,
.esim-plan-card button.plan-buy {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #f6d16d, #dfa62b);
  color: #07111d;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.2px;
  cursor: pointer !important;
  box-shadow: 0 6px 18px rgba(223, 166, 43, 0.16);
  transition: transform 0.15s ease, filter 0.15s ease;
  margin-top: auto;
}

.esim-plan-card .plan-buy:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* Footer styles */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

footer .wrap > div:first-child {
  order: 3;
  flex: 0 0 100%;
  text-align: center;
  margin-top: 18px;
}

footer .wrap > div:nth-child(2) {
  order: 1;
}

.social-icons {
  order: 2;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icons a {
  color: var(--gold);
  font-size: 22px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icons a:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--gold-hover);
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */

@media (max-width: 820px) {
  .heroGrid, .grid, .steps {
    grid-template-columns: 1fr;
  }
  .visual {
    order: -1;
    height: 260px;
  }
  .visual img {
    width: 155px;
    height: 155px;
  }
  h1 {
    font-size: 52px;
  }
  .esim-plan-card {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    min-height: auto;
  }
  footer .wrap {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  footer .wrap > div:nth-child(2) {
    order: 1;
    text-align: center;
  }
  .social-icons {
    order: 2;
    justify-content: center;
  }
  footer .wrap > div:first-child {
    order: 3;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 30px;
    padding-bottom: 10px;
  }
  #plans {
    padding-top: 20px;
  }
  .search {
    flex-direction: column;
  }
  .search input {
    height: 44px;
  }
  h1 {
    font-size: 43px;
    letter-spacing: -1.7px;
  }
  .hero p {
    font-size: 16px;
  }
  .nav {
    height: 58px;
  }
  .brand {
    gap: 8px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .brand b {
    font-size: 16px;
  }
  .nav .btn {
    padding: 10px 14px;
    font-size: 14px;
  }
  .esim-plan-card {
    padding: 20px 18px;
    min-height: auto;
  }
  .plan-flag {
    width: 44px;
    height: 44px;
  }
  .plan-data {
    font-size: 38px;
  }
  .plan-price {
    font-size: 32px;
  }
}