/* TikTok Get Coins Styles - Updated v2.0 - No coin borders */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  color: #161823;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

/* Header Styles */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  height: 60px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tiktok-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(45deg, #ff0050, #00f2ea);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.tiktok-logo svg {
  width: 20px;
  height: 20px;
  color: white;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #161823;
}

.search-section {
  flex: 1;
  max-width: 400px;
  margin: 0 40px;
}

.search-bar {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 40px;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  background-color: #f8f8f8;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  background-color: #ffffff;
  border-color: #ff0050;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a8a8a;
  font-size: 14px;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.nav-item:hover {
  background-color: #f8f8f8;
}

.nav-item i {
  font-size: 20px;
  color: #161823;
}

.nav-item span {
  font-size: 12px;
  color: #161823;
  font-weight: 500;
}

.profile {
  padding: 4px;
}

.profile-pic {
  width: 32px;
  height: 32px;
  background: linear-gradient(45deg, #ff0050, #00f2ea);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}


/* Main Content */
.main-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 20px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: #161823;
  text-align: center;
  margin-bottom: 20px;
}

.username-section {
  margin-bottom: 12px;
}

.username-input {
  width: 100%;
  height: 40px;
  padding: 0 16px;
  border: 2px solid #e5e5e5;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.username-input:focus {
  border-color: #ff0050;
}

.discount-message {
  color: #ff0050;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
}

/* Coin Packages Grid */
.coin-packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.package-card {
  background-color: #ffffff;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.package-card:hover {
  border-color: #ff0050;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 80, 0.15);
}

.package-card.active {
  border-color: #ff0050;
  background: linear-gradient(135deg, #fff5f8, #ffffff);
  box-shadow: 0 8px 25px rgba(255, 0, 80, 0.2);
}

.coin-icon {
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.coin-amount {
  font-size: 12px;
  font-weight: 600;
  color: #161823;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coin-price {
  font-size: 11px;
  font-weight: 700;
  color: #ff0050;
}

.custom-package .coin-price {
  font-size: 10px;
}

/* Payment Section */
.payment-section {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.payment-methods {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.payment-label {
  font-size: 14px;
  font-weight: 600;
  color: #161823;
}

.payment-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-icon {
  padding: 6px 12px;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #161823;
  min-width: 50px;
  text-align: center;
}

.visa {
  color: #1a1f71;
}

.mastercard {
  color: #eb001b;
}

.discover {
  color: #ff6000;
}

.total-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.total-label {
  font-size: 14px;
  font-weight: 600;
  color: #161823;
}

.total-amount {
  font-size: 14px;
  font-weight: 700;
  color: #ff0050;
}

/* Recharge Button */
.recharge-btn {
  width: 100%;
  height: 44px;
  background: linear-gradient(45deg, #ff0050, #ff1744);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.recharge-btn:hover {
  background: linear-gradient(45deg, #e6004a, #d5003a);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 80, 0.3);
}

.recharge-btn:active {
  transform: translateY(0);
}

/* Page Navigation */
.hidden {
  display: none !important;
}

.page {
  min-height: 100vh;
  background-color: #ffffff;
}

/* Custom Page Styles */
.custom-header,
.order-header,
.loading-header,
.success-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #e5e5e5;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-btn,
.help-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #161823;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.back-btn:hover,
.help-btn:hover {
  background-color: #f8f8f8;
}

.custom-header h2,
.order-header h2,
.loading-header h2,
.success-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #161823;
  margin: 0;
}

.custom-content,
.order-content,
.loading-content,
.success-content {
  padding: 20px;
}

/* Custom Input Section */
.custom-input-section {
  margin-bottom: 30px;
}

.coin-input-display {
  display: flex;
  align-items: center;
  background-color: #f8f8f8;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.coin-icon-small {
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 16px !important;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#custom-amount {
  background: none;
  border: none;
  font-size: 24px;
  font-weight: 600;
  color: #161823;
  outline: none;
  flex: 1;
}

/* Keypad Styles */
.keypad {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.keypad-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.keypad-btn {
  height: 60px;
  background-color: #ffffff;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 600;
  color: #161823;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.keypad-btn:hover {
  border-color: #ff0050;
  background-color: #fff5f8;
}

.keypad-btn:active {
  transform: scale(0.95);
}

.delete-btn {
  background-color: #ff0050;
  color: white;
  border-color: #ff0050;
}

.delete-btn:hover {
  background-color: #e6004a;
  border-color: #e6004a;
}

/* Order Summary Styles */
.secure-payment {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #00c851;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.order-details {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.account-item {
  padding: 16px 0;
}

.account-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(45deg, #ff0050, #00f2ea);
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-item:last-child {
  margin-bottom: 0;
}

.order-label {
  font-size: 14px;
  color: #161823;
  font-weight: 500;
}

.order-value {
  font-size: 14px;
  color: #161823;
  font-weight: 600;
}

.payment-method-section {
  margin-bottom: 20px;
}

.payment-method-label {
  font-size: 14px;
  color: #161823;
  font-weight: 600;
  margin-bottom: 8px;
}

.payment-method-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.payment-method-item:hover {
  background-color: #e5e5e5;
}

.terms-section {
  margin-bottom: 20px;
}

.terms-section p {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 8px;
}

.country-selector {
  color: #ff0050;
  cursor: pointer;
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid #e5e5e5;
  margin-bottom: 20px;
}

.pay-btn {
  width: 100%;
  height: 50px;
  background: linear-gradient(45deg, #ff0050, #ff1744);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pay-btn:hover {
  background: linear-gradient(45deg, #e6004a, #d5003a);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 80, 0.3);
}

/* Loading Page Styles */
.loading-content {
  text-align: center;
  padding-top: 60px;
}

.success-indicator {
  margin-bottom: 40px;
}

.success-text {
  color: #00c851;
  font-size: 16px;
  font-weight: 600;
}

.loading-animation {
  margin-bottom: 40px;
}

.loading-circle {
  width: 80px;
  height: 80px;
  border: 4px solid #e5e5e5;
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
}

.loading-progress {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 80px;
  height: 80px;
  border: 4px solid transparent;
  border-top: 4px solid #00c851;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-text h3 {
  font-size: 20px;
  color: #161823;
  margin-bottom: 8px;
}

.loading-text p {
  font-size: 14px;
  color: #666;
}

/* Success Page Styles */
.success-content {
  text-align: center;
  padding-top: 60px;
}

.success-animation {
  margin-bottom: 40px;
}

.success-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, #00c851, #00a041);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  animation: pulse 1s ease-in-out;
}

.success-circle i {
  font-size: 32px;
  color: white;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-message h3 {
  font-size: 24px;
  color: #161823;
  margin-bottom: 16px;
}

.success-message p {
  font-size: 16px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 40px;
}

.go-live-btn {
  width: 100%;
  height: 50px;
  background: linear-gradient(45deg, #ff0050, #ff1744);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.go-live-btn:hover {
  background: linear-gradient(45deg, #e6004a, #d5003a);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 80, 0.3);
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
  .header-content {
    padding: 8px 12px;
    height: 50px;
  }

  .logo-section {
    gap: 6px;
  }

  .tiktok-logo {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .logo-text {
    font-size: 20px;
  }

  .search-section {
    margin: 0 12px;
    max-width: 200px;
  }

  .search-input {
    height: 36px;
    padding: 0 12px 0 32px;
    font-size: 13px;
  }

  .search-icon {
    left: 10px;
    font-size: 12px;
  }

  .nav-icons {
    gap: 12px;
  }

  .nav-item {
    padding: 6px;
  }

  .nav-item i {
    font-size: 18px;
  }

  .nav-item span {
    display: none;
  }

  .profile-pic {
    width: 28px;
    height: 28px;
  }


  .main-content {
    padding: 12px 12px;
  }

  .page-title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .username-input {
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .discount-message {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .coin-packages {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }

  .package-card {
    padding: 8px 4px;
    border-radius: 6px;
  }

  .coin-icon {
    width: 32px;
    height: 32px;
  }


  .coin-amount {
    font-size: 10px;
    margin-bottom: 3px;
  }

  .coin-price {
    font-size: 9px;
  }

  .payment-section {
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 6px;
  }

  .payment-methods {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
  }

  .payment-label {
    font-size: 12px;
  }

  .payment-icons {
    justify-content: center;
    width: 100%;
    gap: 6px;
  }

  .payment-icon {
    padding: 4px 8px;
    font-size: 9px;
    min-width: 40px;
  }

  .total-section {
    gap: 4px;
  }

  .total-label {
    font-size: 12px;
  }

  .total-amount {
    font-size: 12px;
  }

  .recharge-btn {
    height: 40px;
    font-size: 14px;
    border-radius: 4px;
  }

  /* Custom page mobile styles */
  .custom-content,
  .order-content,
  .loading-content,
  .success-content {
    padding: 20px;
    min-height: calc(100vh - 60px);
  }

  .coin-input-display {
    padding: 16px 20px;
    margin-bottom: 30px;
  }

  .coin-icon-small {
    width: 36px;
    height: 36px;
    margin-right: 16px;
  }


  #custom-amount {
    font-size: 22px;
  }

  .keypad {
    margin-bottom: 40px;
  }

  .keypad-btn {
    height: 55px;
    font-size: 20px;
  }

  .order-details {
    padding: 20px;
    margin-bottom: 25px;
  }

  .payment-method-item {
    padding: 14px 16px;
  }

  .terms-section {
    margin-bottom: 25px;
  }

  .terms-section p {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .pay-btn,
  .go-live-btn {
    height: 48px;
    font-size: 16px;
  }

  .loading-content,
  .success-content {
    padding-top: 80px;
  }

  .loading-circle,
  .success-circle {
    width: 70px;
    height: 70px;
    margin-bottom: 50px;
  }

  .loading-progress {
    width: 70px;
    height: 70px;
  }

  .success-circle i {
    font-size: 28px;
  }

  .success-message h3 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .success-message p {
    font-size: 15px;
    margin-bottom: 50px;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 6px 8px;
    height: 48px;
  }

  .tiktok-logo {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .logo-text {
    font-size: 18px;
  }

  .search-section {
    margin: 0 8px;
    max-width: 150px;
  }

  .search-input {
    height: 32px;
    padding: 0 10px 0 28px;
    font-size: 12px;
  }

  .search-icon {
    left: 8px;
    font-size: 11px;
  }

  .nav-icons {
    gap: 8px;
  }

  .nav-item {
    padding: 4px;
  }

  .nav-item i {
    font-size: 16px;
  }

  .profile-pic {
    width: 24px;
    height: 24px;
  }


  .main-content {
    padding: 8px 8px;
  }

  .page-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .username-input {
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .discount-message {
    font-size: 11px;
    margin-bottom: 12px;
  }

  .coin-packages {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 12px;
  }

  .package-card {
    padding: 6px 3px;
    border-radius: 4px;
  }

  .coin-icon {
    width: 28px;
    height: 28px;
  }


  .coin-amount {
    font-size: 9px;
    margin-bottom: 2px;
  }

  .coin-price {
    font-size: 8px;
  }

  .payment-section {
    padding: 8px;
    margin-bottom: 12px;
    border-radius: 4px;
  }

  .payment-methods {
    gap: 6px;
    margin-bottom: 8px;
  }

  .payment-label {
    font-size: 11px;
  }

  .payment-icons {
    gap: 4px;
  }

  .payment-icon {
    padding: 3px 6px;
    font-size: 8px;
    min-width: 35px;
  }

  .total-label {
    font-size: 11px;
  }

  .total-amount {
    font-size: 11px;
  }

  .recharge-btn {
    height: 36px;
    font-size: 13px;
    border-radius: 3px;
  }

  /* Custom page small mobile styles */
  .custom-content,
  .order-content,
  .loading-content,
  .success-content {
    padding: 16px;
    min-height: calc(100vh - 48px);
  }

  .coin-input-display {
    padding: 14px 16px;
    margin-bottom: 25px;
  }

  .coin-icon-small {
    width: 32px;
    height: 32px;
    margin-right: 14px;
  }


  #custom-amount {
    font-size: 20px;
  }

  .keypad {
    margin-bottom: 35px;
  }

  .keypad-btn {
    height: 50px;
    font-size: 18px;
  }

  .order-details {
    padding: 16px;
    margin-bottom: 20px;
  }

  .payment-method-item {
    padding: 12px 14px;
  }

  .terms-section {
    margin-bottom: 20px;
  }

  .terms-section p {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .pay-btn,
  .go-live-btn {
    height: 44px;
    font-size: 15px;
  }

  .loading-content,
  .success-content {
    padding-top: 70px;
  }

  .loading-circle,
  .success-circle {
    width: 60px;
    height: 60px;
    margin-bottom: 40px;
  }

  .loading-progress {
    width: 60px;
    height: 60px;
  }

  .success-circle i {
    font-size: 24px;
  }

  .success-message h3 {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .success-message p {
    font-size: 14px;
    margin-bottom: 40px;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .package-card {
    min-height: 120px;
  }

  .package-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  .recharge-btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  .nav-item:active {
    background-color: #e5e5e5;
    transition: background-color 0.1s ease;
  }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .main-content {
    padding: 8px 8px;
  }

  .page-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .coin-packages {
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
  }

  .package-card {
    padding: 6px 2px;
  }

  .coin-icon {
    width: 24px;
    height: 24px;
  }


  .coin-amount {
    font-size: 9px;
  }

  .coin-price {
    font-size: 8px;
  }
}