:root {
  --bg-color: #09090b;
  --card-bg: rgba(20, 20, 25, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
  --primary-color: #a855f7;
  --primary-glow: rgba(168, 85, 247, 0.4);
  --accent-color: #ec4899;
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --font-family: 'Outfit', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  justify-content: center;
}

.background-glow {
  position: fixed;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 60vh;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(236, 72, 153, 0.05) 50%, rgba(9, 9, 11, 0) 100%);
  z-index: -1;
  pointer-events: none;
}

.store-container {
  width: 100%;
  max-width: 580px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.profile-avatar-container {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 8px;
}

.profile-avatar-gradient {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  animation: rotateGlow 6s linear infinite;
  z-index: 1;
}

.profile-avatar {
  position: absolute;
  top: 0;
  left: 0;
  width: 96px;
  height: 96px;
  background-color: #18181b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
  border: 3px solid var(--bg-color);
}

.profile-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.profile-username {
  font-size: 14px;
  color: var(--primary-color);
  font-weight: 500;
  margin-top: -6px;
}

.profile-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 90%;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-item {
  width: 42px;
  height: 42px;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.social-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  box-shadow: 0 0 12px var(--primary-glow);
  color: var(--primary-color);
}

.transaction-checker-btn-container {
  margin-top: 5px;
}

.btn-check-status {
  background: transparent;
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-check-status:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--primary-color);
  transform: scale(1.03);
}

.links-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-card {
  display: block;
  text-decoration: none;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px 20px;
  color: var(--text-main);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(30, 30, 38, 0.8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.link-card-title {
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  display: block;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.featured-product-container {
  margin-bottom: 20px;
}

.featured-card {
  background: linear-gradient(135deg, rgba(20, 20, 25, 0.9), rgba(10, 10, 12, 0.9));
  border: 1px solid var(--primary-color);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.1);
}

.featured-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-title {
  font-size: 20px;
  font-weight: 700;
}

.featured-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.featured-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-active {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
}

.price-original {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.categories-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.categories-filter::-webkit-scrollbar {
  display: none;
}

.category-tab {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.category-tab.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.product-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.product-card-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card-header {
  height: 80px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e1e24, #121216);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: rgba(255,255,255,0.08);
  font-weight: 800;
  user-select: none;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  height: 30px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price-box {
  display: flex;
  flex-direction: column;
}

.product-price-active {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.product-price-original {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-stock-tag {
  font-size: 10px;
  font-weight: 500;
  margin-top: 4px;
}

.stock-available {
  color: var(--success-color);
}

.stock-empty {
  color: var(--danger-color);
}

.btn-buy {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-buy:hover:not(:disabled) {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-buy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.single-product-container {
  margin-top: 20px;
}

.single-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
}

.single-card-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.single-title {
  font-size: 14px;
  font-weight: 600;
}

.single-price {
  font-size: 13px;
  color: var(--text-muted);
}

.btn-buy-sm {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 16px;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-buy-sm:hover:not(:disabled) {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-buy-sm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tiktok-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tiktok-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px 20px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tiktok-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.15);
}

.store-footer {
  text-align: center;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-bottom: 20px;
}

.footer-contacts {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-policies {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-policies a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s ease;
}

.footer-policies a:hover {
  color: var(--primary-color);
}

.copyright {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: #141417;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  padding: 24px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.checkout-price-info {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input {
  background-color: #1f1f23;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 14px;
  outline: none;
}

.form-group input:focus {
  border-color: var(--primary-color);
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.payment-method-card {
  background-color: #1f1f23;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.payment-method-card:hover {
  border-color: rgba(255,255,255,0.2);
}

.payment-method-card.active {
  border-color: var(--primary-color);
  background-color: rgba(168, 85, 247, 0.05);
}

.payment-logo {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.payment-name {
  font-size: 10px;
  color: var(--text-muted);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-primary:hover {
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
  transform: translateY(-1px);
}

.text-center {
  text-align: center;
}

.invoice-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pay-amount-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.pay-amount-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.qr-code-img {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 15px;
}

.va-display-box {
  background: #1f1f23;
  padding: 14px;
  border-radius: 10px;
  display: inline-block;
  margin: 0 auto 15px auto;
  border: 1px solid var(--card-border);
}

.va-number {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.va-bank {
  font-size: 12px;
  color: var(--text-muted);
}

.payment-instructions-list {
  text-align: left;
  background: #18181b;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.payment-instructions-list ol {
  padding-left: 15px;
}

.payment-polling-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}

.status-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease infinite;
}

.success-content {
  max-width: 440px;
}

.success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 16px auto;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.success-message {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.stock-delivery-card {
  background: #18181b;
  border: 1px dashed rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  margin-bottom: 15px;
}

.stock-label {
  font-size: 11px;
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stock-value-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stock-code-display {
  width: 100%;
  height: 80px;
  background: #09090b;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px;
  color: #fff;
  font-family: monospace;
  font-size: 12px;
  resize: none;
  outline: none;
}

.btn-copy {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-end;
}

.btn-copy:hover {
  background-color: #9333ea;
}

.success-notice {
  font-size: 11px;
  color: var(--text-muted);
}

.modal-divider {
  border: none;
  border-top: 1px solid var(--card-border);
  margin: 16px 0;
}

.result-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}

.result-label {
  color: var(--text-muted);
}

.result-val {
  font-weight: 500;
}

.status-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.status-badge.pending {
  background-color: rgba(234, 179, 8, 0.1);
  color: #eab308;
}

.status-badge.completed {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.margin-top-lg {
  margin-top: 16px;
}

.policy-content {
  max-width: 520px;
}

.policy-text-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 8px;
}

.policy-text-body::-webkit-scrollbar {
  width: 4px;
}

.policy-text-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

@keyframes rotateGlow {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .store-container {
    padding: 20px 14px;
  }
}
