/* ==========================================================================
   GLAZED SMP STORE - Dark Purple Theme
   ========================================================================== */

:root {
  --bg-dark: #07040d;
  --bg-card: #130a24;
  --bg-card-border: #291847;
  
  --purple-main: #9333ea;
  --purple-light: #c084fc;
  --purple-glow: rgba(147, 51, 234, 0.3);
  
  --yellow-main: #facc15;
  --yellow-glow: rgba(250, 204, 21, 0.25);
  
  --orange-main: #fb923c;
  --orange-glow: rgba(251, 146, 60, 0.25);
  
  --pink-main: #f43f5e;
  --pink-glow: rgba(244, 63, 94, 0.25);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(147, 51, 234, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(88, 28, 135, 0.12) 0%, transparent 45%);
}

/* --- Navigacija --- */
.navbar-header {
  background: rgba(11, 6, 20, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.85rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.4));
}

.brand-title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.btn-discord {
  background-color: #5865f2;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
  background-color: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(88, 101, 242, 0.4);
}

/* Preklopnik jezika */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lang-btn:hover, .lang-btn.active {
  color: var(--purple-light);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
}

/* --- Hero Sekcija --- */
.hero-section {
  padding: 4rem 1.5rem 2.5rem;
  text-align: center;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-title {
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
}

.server-ip-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 0.7rem 1.3rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.server-ip-box:hover {
  border-color: var(--purple-main);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--purple-glow);
}

.ip-label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

.ip-text {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--purple-light);
  font-size: 0.95rem;
}

.copy-icon-wrapper {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.copied-tooltip {
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--purple-main);
  color: #fff;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.copied-tooltip.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Prodavnica i Kartice --- */
.store-section {
  padding: 1.5rem 1.5rem 5rem;
  flex: 1;
}

.store-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.rank-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.rank-card:hover {
  transform: translateY(-5px);
}

.card-vip:hover {
  border-color: rgba(250, 204, 21, 0.45);
  box-shadow: 0 14px 35px var(--yellow-glow);
}

.card-mvp:hover {
  border-color: rgba(251, 146, 60, 0.45);
  box-shadow: 0 14px 35px var(--orange-glow);
}

.card-glazed {
  background: linear-gradient(180deg, #180b2e 0%, #130a24 100%);
}

.card-glazed:hover {
  border-color: rgba(147, 51, 234, 0.55);
  box-shadow: 0 14px 35px var(--purple-glow);
}

.card-glazed-plus {
  background: linear-gradient(180deg, #250a22 0%, #130a24 100%);
}

.card-glazed-plus:hover {
  border-color: rgba(244, 63, 94, 0.55);
  box-shadow: 0 14px 35px var(--pink-glow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.badge-vip {
  background: rgba(250, 204, 21, 0.12);
  color: var(--yellow-main);
  border: 1px solid rgba(250, 204, 21, 0.3);
}

.badge-mvp {
  background: rgba(251, 146, 60, 0.12);
  color: var(--orange-main);
  border: 1px solid rgba(251, 146, 60, 0.3);
}

.badge-glazed {
  background: rgba(147, 51, 234, 0.15);
  color: var(--purple-light);
  border: 1px solid rgba(147, 51, 234, 0.35);
}

.badge-glazed-plus {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.rank-icon {
  font-size: 1.3rem;
}

.icon-vip { color: var(--yellow-main); }
.icon-mvp { color: var(--orange-main); }
.icon-glazed { color: var(--purple-light); }
.icon-glazed-plus { color: #fb7185; }

.rank-name {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.price-tag {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.35rem;
}

.price-tag .currency {
  font-size: 1.3rem;
  margin-right: 2px;
}

.price-tag .unit {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.perks-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin-bottom: 1.35rem;
}

.perks-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2rem;
  flex: 1;
}

.perks-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.perk-item strong {
  color: var(--text-primary);
}

.perk-icon {
  color: var(--text-muted);
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
}

.cmd-tag {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.buy-btn {
  width: 100%;
  padding: 0.9rem;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.buy-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.btn-vip {
  background-color: var(--yellow-main);
  color: #181102;
  box-shadow: 0 4px 15px var(--yellow-glow);
}

.btn-mvp {
  background-color: var(--orange-main);
  color: #1a0f03;
  box-shadow: 0 4px 15px var(--orange-glow);
}

.btn-glazed {
  background-color: var(--purple-main);
  color: #fff;
  box-shadow: 0 4px 15px var(--purple-glow);
}

.btn-glazed-plus {
  background-color: var(--pink-main);
  color: #fff;
  box-shadow: 0 4px 15px var(--pink-glow);
}

/* --- Informaciona kartica o plaćanju --- */
.payment-info-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.payment-info-icon {
  font-size: 2.5rem;
  color: var(--purple-light);
  background: rgba(147, 51, 234, 0.12);
  width: 65px;
  height: 65px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-info-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.payment-info-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.btn-ticket {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-ticket:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --- Modalni prozor (Checkout GUI) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 2, 8, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #110822;
  border: 1px solid rgba(147, 51, 234, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(147, 51, 234, 0.25);
  border-radius: 22px;
  width: 100%;
  max-width: 460px;
  padding: 2.25rem;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.modal-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.modal-icon {
  font-size: 2.25rem;
  color: var(--purple-light);
  margin-bottom: 0.75rem;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.highlight-rank {
  color: var(--purple-light);
  font-weight: 700;
}

.highlight-price {
  color: #fff;
  font-weight: 700;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.input-group label i {
  color: var(--purple-light);
  margin-right: 0.25rem;
}

.input-group input {
  width: 100%;
  background: #090414;
  border: 1px solid var(--bg-card-border);
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus {
  border-color: var(--purple-main);
  box-shadow: 0 0 15px var(--purple-glow);
}

.modal-submit-btn {
  width: 100%;
  background-color: var(--purple-main);
  color: #fff;
  border: none;
  padding: 0.95rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 18px var(--purple-glow);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.modal-submit-btn:hover {
  background-color: #7e22ce;
  transform: translateY(-1px);
}

.success-icon-wrapper {
  font-size: 2.75rem;
  color: #22c55e;
  margin-bottom: 0.5rem;
}

.claim-info-box {
  background: rgba(88, 101, 242, 0.09);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 14px;
  padding: 1.35rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.discord-box-icon {
  font-size: 2.2rem;
  color: #5865f2;
  margin-bottom: 0.5rem;
}

.claim-info-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #fff;
}

.claim-info-box p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.btn-modal-discord {
  background-color: #5865f2;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
}

.btn-modal-discord:hover {
  background-color: #4752c4;
}

.btn-modal-ok {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-modal-ok:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* --- Podnožje --- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.25rem 1.5rem;
  background: #050209;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  width: 32px;
  height: 32px;
}

.footer-donut-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.8;
}

.copyright-text {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.legal-tag a {
  color: var(--text-secondary);
  text-decoration: none;
}

.legal-tag a:hover {
  text-decoration: underline;
}

/* Prilagođavanje za manje uređaje */
@media (max-width: 768px) {
  .nav-links .nav-link {
    display: none;
  }
  
  .payment-info-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .btn-ticket {
    width: 100%;
    justify-content: center;
  }
}