:root {
  --bg: #0a0a0b;
  --bg-soft: #151619;
  --bg-panel: #1b1d22;
  --bg-card: #22252c;
  --text: #f4f5f7;
  --muted: #a7acb6;
  --orange: #ff7a00;
  --orange-2: #ff9a1f;
  --gray-line: #343842;
  --success: #00b46e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


.login-button{
        background: var(--orange);
    color: white;
    padding: 10px;
    text-decoration: none;
    border-radius: 10px;
    cursor: pointer;
}

/* Contenedor Principal del Basket */
.checkout-basket {
    background: #1a1c23; /* Fondo oscuro igual al de tu sidebar */
    padding: 20px;
    border-radius: 8px;
    color: #fff;
}

/* Estilo para los nombres de los paquetes */
.checkout-basket a {
    color: #ff8c00; /* Naranja de tu marca */
    font-weight: bold;
    text-decoration: none;
}

/* Limpieza de los botones feos (+, -, Remove) */
.checkout-basket input[type="number"] {
    background: #2d303a;
    border: 1px solid #444;
    color: white;
    padding: 5px;
    border-radius: 4px;
    width: 50px;
    text-align: center;
}

.checkout-basket button, 
.checkout-basket a[href*="remove"] {
    background: #e74c3c !important; /* Rojo para eliminar */
    color: white !important;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-block;
    margin-top: 5px;
}

/* --- Apartado de Cupones --- */
.coupon-section {
    margin-top: 30px;
    padding: 15px;
    background: #242731;
    border-left: 4px solid #ff8c00;
    border-radius: 4px;
}

.coupon-section input[type="text"] {
    background: #111;
    border: 1px solid #ff8c00;
    color: white;
    padding: 10px;
    border-radius: 4px;
    width: 200px;
    margin-right: 10px;
}

.coupon-section button {
    background: #ff8c00 !important; /* Botón naranja */
    color: #000 !important;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.coupon-section button:hover {
    background: #ffa500 !important;
    transform: scale(1.05);
}

/* Botón Finalizar Compra (Proceed to checkout) */
button[type="submit"].btn-success, 
.proceed-to-checkout {
    width: 100%;
    background: linear-gradient(90deg, #ff8c00, #ff5e00) !important;
    color: white !important;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    margin-top: 20px;
    cursor: pointer;
}

.coupon-section {
    background: #242731;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 4px solid #ff8c00;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
}

.coupon-section input {
    background: #111 !important;
    border: 1px solid #444 !important;
    color: white !important;
    flex-grow: 1;
    padding: 8px;
}

.btn-coupon {
    background: #ff8c00 !important;
    color: black !important;
    font-weight: bold;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

.btn-remove {
    background: #c0392b;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 11px;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, #1f222a, var(--bg) 46%);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

body::before {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -140px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.16) 0%, rgba(255, 122, 0, 0) 68%);
}

body::after {
  width: 560px;
  height: 560px;
  bottom: -220px;
  left: -200px;
  background: radial-gradient(circle, rgba(30, 158, 255, 0.14) 0%, rgba(30, 158, 255, 0) 70%);
}

.container {
  width: min(1260px, 94%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: rgba(10, 10, 11, 0.92);
  border-bottom: 1px solid var(--gray-line);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.topbar-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.topbar-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  border: 1px solid #555b66;
  background: #20242d;
  color: #fff;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.3px;
  font-size:19px;
}

.user-chip img{
    width:35px;
    margin-right:10px;
}

.user-menu-wrap {
  position: relative;
}

.user-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 130px;
  background: #171b24;
  border: 1px solid #4c5565;
  border-radius: 10px;
  padding: 0.3rem;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  display: none;
  z-index: 60;
}

.user-menu.open {
  display: block;
}

.user-menu-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  border-radius: 8px;
  padding: 0.42rem 0.5rem;
  cursor: pointer;
  text-align: left;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
}

.user-menu-item:hover {
  background: #272d39;
}

.logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  line-height: 1;
}

.logo span {
  color: var(--orange);
}

.nav-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-menu a {
  text-decoration: none;
  color: #d4d8e0;
  border: 1px solid transparent;
  padding: 0.4rem 0.7rem;
  border-radius: 9px;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.3px;
}

.nav-menu a.active,
.nav-menu a:hover {
  color: #fff;
  border-color: #555b66;
  background: #20232a;
}

.store-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.sidebar,
.panel,
.hero-panel,
.product-strip,
.sidebar-card {
  background: var(--bg-panel);
  border: 1px solid var(--gray-line);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.sidebar {
  padding: 1rem;
  align-self: start;
  position: sticky;
  top: 84px;
}

.sidebar-title {
  margin: 0 0 0.9rem;
  color: var(--orange);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
}

.channel-btn {
  display: block;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.6rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  transition: transform 0.16s ease, filter 0.16s ease;
  background: #2f3a49;
}

.channel-btn:hover {
  transform: translateX(3px);
  filter: brightness(1.08);
  background: var(--orange);
}

.sidebar #copyIpBtn {
  width: 100%;
  margin-bottom: 0.6rem;
}

/* .channel-home { background: #2f3a49; }
.channel-offers { background: #58b52f; }
.channel-coins { background: #ca2eca; }
.channel-rank { background: #ff7a00; }
.channel-crates { background: #1e9eff; }
.channel-survival { background: #27a574; }
.channel-skyblock { background: #4a7eff; }
.channel-others { background: #8b95a8; color: #111; } */

  margin-top: 1rem;
  padding: 0.9rem;
  background: #232733;
}

.sidebar-card h3 {
  margin: 0 0 0.4rem;
  color: var(--orange);
  font-family: 'Rajdhani', sans-serif;
}

.sidebar-card p {
  margin: 0.2rem 0;
  color: #d8dde8;
}

.main-content {
  display: grid;
  gap: 1rem;
}

.banner-panel {
  position: relative;
  min-height: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-line);
  background-image:
    linear-gradient(135deg, rgba(8, 10, 14, 0.72), rgba(8, 10, 14, 0.34)),
    url("https://i.imgur.com/4pUsDFg.png"),
    linear-gradient(120deg, #578a42 0%, #8ec56f 26%, #6fb9f7 58%, #c8e8ff 100%);
  background-size: cover, cover, cover;
  background-position: center, 72% center, center;
}

.banner-overlay {
  position: relative;
  z-index: 1;
  padding: 1.4rem;
  max-width: 600px;
}

.banner-tag {
  margin: 0;
  color: #ffd39b;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
}

.banner-overlay h2 {
  margin: 0.25rem 0 0.4rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  animation: floatTitle 3.6s ease-in-out infinite;
}

.banner-overlay p {
  margin: 0;
  color: #f3f6fa;
}

.hero-panel {
  padding: 1.2rem;
}

.eyebrow {
  margin: 0;
  color: var(--orange-2);
  text-transform: uppercase;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

h1,
h2,
h3 {
  font-family: 'Rajdhani', sans-serif;
  margin-top: 0.3rem;
}

.hero-panel h1 {
  margin: 0.2rem 0 0.5rem;
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.hero-panel p {
  color: #d3d8e2;
  margin: 0.5rem 0;
}

.hero-stats {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.stat-box {
  background: #101216;
  border: 1px solid var(--gray-line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  min-width: 190px;
}

.stat-box span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.stat-box strong {
  color: var(--orange);
  font-size: 1.4rem;
}

.product-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 0.8rem;
  padding: 0.8rem;
}

.mini-card {
  background: var(--bg-card);
  border: 1px solid var(--gray-line);
  border-radius: 10px;
  padding: 0.8rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.mini-card:hover {
  transform: translateY(-2px);
  border-color: #5b6372;
}

.old-price {
  color: #ff6a6a;
  text-decoration: line-through;
  margin: 0;
}

.new-price {
  color: #7dffd5;
  font-weight: 700;
  margin: 0.2rem 0 0.7rem;
}

.panel {
  padding: 1rem;
}

.panel > p {
  color: #cfd5e0;
  margin-top: 0;
}

.no-products {
  background: var(--bg-panel);
  border: 1px solid var(--gray-line);
  border-radius: 10px;
  padding: 1rem;
  color: #d4d9e3;
}

.category-header h2 {
  margin-top: 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.8rem;
}

.store-card {
  background: var(--bg-card);
  border: 1px solid var(--gray-line);
  border-radius: 10px;
  padding: 0.9rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.store-card:hover {
  transform: translateY(-2px);
  border-color: #5b6372;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.rank-image {
  width: min(170px, 100%);
  height: 130px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.4rem;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}

.price {
  color: var(--orange-2);
  font-weight: 700;
}

.rank-duration {
  margin: 0.2rem 0 0.7rem;
  display: inline-block;
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
  background: #2a2e37;
  color: #ffd8ae;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.rank-duration-picker {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  margin: 0.2rem 0 0.5rem;
}

.rank-duration-picker label {
  font-size: 0.82rem;
  color: #d7dde8;
  font-weight: 700;
}

.rank-days-select {
  width: 100%;
  max-width: 170px;
  background: #141821;
  border: 1px solid #4f5868;
  border-radius: 8px;
  color: #fff;
  padding: 0.45rem 0.55rem;
}

.rank-recommended {
  border-color: #f1b64a;
  box-shadow: 0 0 0 1px rgba(241, 182, 74, 0.35);
}

.rank-badge {
  margin: 0 0 0.2rem;
  color: #f1b64a;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 0.82rem;
}

.coins-list {
  margin: 0.3rem 0 0.7rem;
  color: #d9deea;
  padding-left: 1rem;
}

.coins-actions {
  display: grid;
  gap: 0.45rem;
}

.support-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  margin: 0.7rem 0;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.payment-card {
  background: #242833;
  border: 1px solid #4d5463;
  border-radius: 10px;
  padding: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.payment-card:hover {
  border-color: #f7b868;
  transform: translateY(-2px);
}

.payment-card.selected {
  border-color: var(--orange-2);
  box-shadow: 0 0 0 1px rgba(255, 154, 31, 0.5);
}

.payment-card h3 {
  margin: 0 0 0.2rem;
  color: #ffe6c8;
}

.payment-card p {
  margin: 0;
  color: #d1d7e2;
}

.payment-note {
  margin: 0.9rem 0 0;
  color: #9fe5c8;
  font-weight: 600;
}

.support-box {
  background: #263244;
  border: 1px solid #406187;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 1rem;
  font-weight: 700;
}

.support-form {
  display: grid;
  gap: 0.65rem;
}

input,
textarea {
  width: 100%;
  background: #12141a;
  border: 1px solid var(--gray-line);
  border-radius: 10px;
  color: #fff;
  padding: 0.72rem 0.8rem;
  font-family: inherit;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 0.68rem 1rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
}

.btn-secondary {
  background: #20242d;
  border: 1px solid #555b66;
  color: #fff;
}

.footer {
  text-align: center;
  color: var(--muted);
  padding: 1.5rem 0 2.2rem;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 110;
}

.checkout-modal.open {
  display: flex;
}

.checkout-box {
  width: min(1100px, 100%);
  background: #0f1116;
  border: 1px solid var(--gray-line);
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.checkout-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.checkout-head h3,
.checkout-note,
.checkout-fallback {
  margin: 0;
}

.checkout-note,
.checkout-fallback {
  color: var(--muted);
}

.checkout-actions {
  display: flex;
  justify-content: flex-end;
}

.tebex-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #1f2430;
  border: 1px solid #4f586b;
}

.tebex-top strong {
  color: #fff;
}

.tebex-top span {
  color: #c7d1df;
  font-size: 0.9rem;
}

.tebex-component-wrap {
  margin-top: 0.5rem;
  padding: 0.75rem;
  border: 1px solid #4f586b;
  border-radius: 10px;
  background: #171b24;
}

.tebex-component-wrap h4 {
  margin: 0 0 0.6rem;
  color: #ffdcb5;
}

.checkout-methods-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.7rem;
  margin-top: 0.3rem;
}

.checkout-method-option {
  border: 1px solid #4f586a;
  background: linear-gradient(165deg, #1e2430 0%, #181d28 100%);
  color: #fff;
  border-radius: 12px;
  padding: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  display: grid;
  gap: 0.2rem;
  min-height: 74px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.checkout-method-option:hover {
  border-color: #f5ba6f;
  transform: translateY(-1px);
}

.checkout-method-option.selected {
  border-color: var(--orange-2);
  box-shadow: 0 0 0 1px rgba(255, 154, 31, 0.45), 0 8px 18px rgba(0, 0, 0, 0.26);
}

.method-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.04rem;
  line-height: 1.1;
}

.method-sub {
  font-size: 0.78rem;
  color: #b9c3d5;
  font-weight: 600;
}

.checkout-form-modern .checkout-fallback {
  margin-top: 0.15rem;
  color: #d6deeb;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100vh;
  background: #0f1116;
  border-left: 1px solid var(--gray-line);
  padding: 1rem;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.8rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 120;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.cart-head h3,
.cart-hint {
  margin: 0;
}

.cart-hint {
  color: var(--muted);
}

.cart-items {
  overflow-y: auto;
  display: grid;
  gap: 0.6rem;
}

.cart-item {
  background: linear-gradient(160deg, #1d2230 0%, #181c27 100%);
  border: 1px solid #3f4656;
  border-radius: 12px;
  padding: 0.75rem;
  display: grid;
  gap: 0.55rem;
}

.cart-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.cart-item-title {
  margin: 0;
  font-weight: 700;
  color: #f2f5fb;
}

.cart-item-price {
  margin: 0;
  font-weight: 700;
  color: #ffd09c;
}

.cart-item-sub {
  margin: 0;
  color: #c5cddd;
  font-size: 0.9rem;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.cart-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #4d5565;
  border-radius: 999px;
  background: #0f131b;
  overflow: hidden;
}

.cart-qty-btn {
  border: 0;
  background: transparent;
  color: #fff;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 1.2rem;
}

.cart-qty-btn:hover {
  background: #242a37;
}

.cart-qty-value {
  min-width: 30px;
  text-align: center;
  font-weight: 700;
  color: #fff;
}

.cart-item-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.cart-item-actions .btn {
  padding: 0.5rem 0.75rem;
}

.cart-remove-btn {
  background: #242933;
  border: 1px solid #5a6170;
}

.cart-checkout-btn {
  min-width: 122px;
}

.cart-footer {
  display: grid;
  gap: 0.6rem;
  border-top: 1px solid #3d4351;
  padding-top: 0.7rem;
}

.cart-footer p {
  margin: 0;
}

.cart-empty {
  margin: 0;
  color: #b8bfcc;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.login-main {
  width: min(460px, 92%);
  transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
}

.login-card {
  background: #10131a;
  border: 1px solid #404755;
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}

.login-card h1,
.login-card p,
.login-status {
  margin: 0;
}

.login-card p,
.login-status {
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 0.65rem;
}

.login-main.redirecting {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  filter: blur(2px);
}

.login-main.redirecting .login-card {
  animation: pulseGlow 0.45s ease;
}

.hidden {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@keyframes floatTitle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3); }
  50% { box-shadow: 0 0 0 2px rgba(255, 154, 31, 0.5), 0 18px 36px rgba(0, 0, 0, 0.3); }
  100% { box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3); }
}

@media (max-width: 1060px) {
  .store-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    grid-template-columns: 1fr;
    padding: 0.7rem 0;
    place-items: center;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .product-strip {
    grid-template-columns: 1fr;
  }

  .checkout-box {
    height: 94vh;
  }

  .checkout-head {
    flex-direction: column;
    align-items: stretch;
  }
}
