/* Glassmorphism Mobile-First Design for Store */
.store-body {
    background-color: #0a0a0a;
    color: #fff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.wallet-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(249, 169, 0, 0.15);
    border: 1px solid rgba(249, 169, 0, 0.3);
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #F9A900;
    backdrop-filter: blur(5px);
}

.store-main {
    padding: 125px 20px 40px;
    max-width: 500px;
    margin: 0 auto;
}


#header-subtitle-store {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 1.35rem;
    color: #ffffff;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 1px;
    line-height: 1;
    display: block;
}

.store-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 5px;
    margin-bottom: 0;
    padding: 12px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.store-content {
    margin-top: 25px;
}

.store-tabs::-webkit-scrollbar {
    display: none;
}

.store-tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 0;
    cursor: pointer;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    transform: translateY(-2.5px);
}

.store-tab:hover {
    color: #F9A900;
}

.store-tab.active {
    color: #F9A900;
    font-weight: 500;
    text-shadow: 0 0 12px rgba(249, 169, 0, 0.4);
}

.store-tab:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

/* PRO Benefits Banner */
.pro-benefits {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(10px);
}

.benefit-item {
    font-size: 0.9rem;
    color: #ddd;
    display: flex;
    align-items: center;
    font-weight: 300;
}

/* Sleek Package Rows */
.vip-cards-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.package-row {
    background: rgba(25, 25, 25, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.package-row:active {
    transform: scale(0.98);
}

.pkg-info {
    display: flex;
    flex-direction: column;
}

.pkg-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.2;
}

.btn-buy {
    background: rgba(249, 169, 0, 0.9);
    color: #000;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-buy.btn-showcase {
    background: rgba(249, 169, 0, 0.9);
    min-width: 85px;
    text-align: center;
    padding: 12px 10px;
    font-size: 1.3rem;
}

/* Popular Row */
.popular-row {
    border-color: rgba(249, 169, 0, 0.4);
    background: linear-gradient(90deg, rgba(25,25,25,0.6) 0%, rgba(249, 169, 0, 0.1) 100%);
    margin-top: 10px; /* space for badge */
}

.popular-row .btn-buy {
    background: #F9A900;
    box-shadow: 0 4px 15px rgba(249, 169, 0, 0.3);
}

.popular-badge {
    position: absolute;
    top: -11px;
    left: 20px;
    background: #F9A900;
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px rgba(249, 169, 0, 0.5);
    z-index: 2;
    opacity: 0.9;
}

.active-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(249, 169, 0, 0.25));
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #FFD700;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
    margin-bottom: 8px;
    width: fit-content;
}

.inactive-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    width: fit-content;
}

/* Legendary Row */
.legendary-row {
    border-color: rgba(232, 23, 43, 0.3);
}

.legendary-row .btn-buy {
    background: #E8172B;
    color: #fff;
}

/* Custom Dialog Styles - Ported from app */
.custom-dialog-card {
  background: #1C1C1E !important;
  border: 1px solid #3A3A3C !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  max-width: 320px !important;
  padding: 24px !important;
  text-align: center !important;
  color: #fff;
}

.custom-dialog-card h3 {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 1.65rem !important;
  letter-spacing: 1px !important;
  color: #ffffff !important;
  margin: 0 0 12px 0 !important;
}

.custom-dialog-card p {
  font-size: 0.94rem !important;
  color: #a0a0a0 !important;
  line-height: 1.5 !important;
  margin: 0 0 24px 0 !important;
}

.custom-dialog-card .dialog-actions {
  display: flex;
  gap: 12px !important;
  justify-content: center !important;
}

.custom-dialog-card .dialog-actions button {
  flex: 1 !important;
}

.custom-dialog-card .dialog-actions .nav-cta {
  flex: 0 0 auto !important;
}

.custom-dialog-card .btn {
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  padding: 12px !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
  border: none;
}

.custom-dialog-card .btn-primary {
  background: linear-gradient(135deg, #F35C33 0%, #F9A900 100%) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.custom-dialog-card .btn-primary:hover {
  opacity: 0.9 !important;
  transform: translateY(-1px) !important;
}

.custom-dialog-card .btn-danger {
  background: #2e3038 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: none !important;
}

.custom-dialog-card .btn-danger:hover {
  background: #383a44 !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.custom-dialog-card .btn-warning {
  background: #36342e !important;
  color: #ffca28 !important;
  border: 1px solid rgba(255, 202, 40, 0.35) !important;
  box-shadow: none !important;
}

.custom-dialog-card .btn-warning:hover {
  background: #423f36 !important;
  border-color: rgba(255, 202, 40, 0.5) !important;
}

.custom-dialog-card .btn-outline {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #a0a0a0 !important;
}

.custom-dialog-card .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Modals global overrides if missing */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); z-index: 20005; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.glass-modal {
  background: rgba(20, 20, 20, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 24px; padding: 24px; width: 90%; max-width: 400px; max-height: 96vh; overflow-y: auto; transform: scale(0.96); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); position: relative;
}
.modal-overlay.active .glass-modal { transform: scale(1); }

.btn-dialog-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.btn-dialog-close:hover { background: rgba(255,255,255,0.15); transform: rotate(90deg); }

.dialog-icon-container { display: flex; justify-content: center; align-items: center; width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 16px auto; }
.dialog-icon-container.info { background: rgba(52, 152, 219, 0.15); color: #3498db; }
.dialog-icon-container.warning { background: rgba(243, 156, 18, 0.15); color: #f39c12; }
.dialog-icon-container.danger { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }
.dialog-icon-container.success { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }

/* --- CSS State Architecture for Tabs --- */
.tab-pane {
    display: none;
    animation: fadeInTab 0.3s ease;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.store-main.is-active-tab-vip #tab-vip { display: block; }
.store-main.is-active-tab-items #tab-items { display: block; }
.store-main.is-active-tab-coins #tab-coins { display: block; }

/* Active tab button states (migrated to .active above) */

/* Remove hover effect from disabled/coming soon tabs */
.store-tab[disabled] {
    cursor: not-allowed;
    opacity: 0.5;
}

/* --- Glassmorphism & Hover Glow Effects --- */
.glass-card {
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
}

.hover-glow:hover {
    border-color: rgba(249, 169, 0, 0.4);
    box-shadow: 0 0 15px rgba(249, 169, 0, 0.15), 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.hover-glow:active {
    transform: scale(0.98);
}

.glow-badge {
    box-shadow: 0 0 10px rgba(249, 169, 0, 0.2);
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(249, 169, 0, 0.1); }
    100% { box-shadow: 0 0 15px rgba(249, 169, 0, 0.4); }
}

.coming-soon-wrapper {
    text-align: center;
    padding: 40px 20px;
    border-radius: 16px;
    margin-top: 10px;
}

.coming-soon-wrapper h3 {
    color: #F9A900;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.coming-soon-wrapper p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}
