/* =========================================================
   AxisVPN Mini App - Master Design System Entrypoint
   Modularized Architecture with Isolated Element Files
   ========================================================= */

@import "tokens.css";
@import "typography.css";
@import "animations.css";
@import "buttons.css";
@import "cards.css";
@import "hero.css";
@import "navbar.css";
@import "analytics.css";
@import "profile.css";
@import "referral.css";
@import "service-detail.css";
@import "support.css";
@import "modals.css";

/* Base Resets & Layout Core */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

*::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
  width: 0;
  height: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  background: var(--body-bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(86, 40, 238, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(35, 196, 248, 0.05) 0px, transparent 50%);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
  background-image: 
    radial-gradient(at 0% 0%, rgba(112, 38, 238, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(30, 136, 229, 0.08) 0px, transparent 50%);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

#app {
  min-height: 100vh;
  width: 100%;
  padding-bottom: calc(95px + var(--tg-safe-bottom, 0px)); /* Clears floating navbar safely */
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}

#screen-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.container {
  padding: 16px 20px;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

/* Secondary Balance Card (Inner Screens) */
.balance-card {
  margin: 16px 20px;
  padding: 18px 20px;
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.balance-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.balance-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.balance-amount {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.balance-currency {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Generic Utility Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-eco {
  background: var(--eco-tier-bg);
  color: var(--eco-tier);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-vip {
  background: var(--vip-tier-bg);
  color: var(--vip-tier);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-purple {
  background: var(--surface-frost-purple);
  color: var(--brand-purple);
  border: 1px solid var(--border-brand);
}
