/* v98store Home Page Styles - Matching Documentation Theme */
:root {
  --primary-color: #1a1f36;
  --secondary-color: #2d3748;
  --accent-color: #4299e1;
  --accent-hover: #3182ce;
  --text-color: #2d3748;
  --text-light: #718096;
  --bg-color: #f7fafc;
  --card-bg-color: #ffffff;
  --border-color: #e2e8f0;
  --nav-bg: #1a202c;
  --nav-text: #a0aec0;
  --success-color: #48bb78;
  --warning-color: #ed8936;
  --error-color: #f56565;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  display: flex;
  min-height: 100vh;
}

/* Navigation Sidebar - Matching docs style */
nav {
  width: 280px;
  background: linear-gradient(180deg, var(--nav-bg) 0%, #0f1419 100%);
  color: #fff;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

nav::-webkit-scrollbar {
  width: 8px;
}

nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.nav-header {
  padding: 25px 20px 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(66, 153, 225, 0.15) 0%, rgba(49, 130, 206, 0.08) 100%);
}

.nav-header h1 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 6px 0;
  background: linear-gradient(135deg, #fff 0%, #cbd5e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-subtitle {
  font-size: 12px;
  color: #a0aec0;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.nav-content {
  padding: 10px 0;
}

.nav-section {
  margin-bottom: 5px;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  padding: 12px 20px;
  margin: 0;
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--accent-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 12px 20px 12px 30px;
  color: var(--nav-text);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.nav-list a:hover,
.nav-list a.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-left-color: var(--accent-color);
  padding-left: 33px;
}

/* Highlight recharge guide link */
.nav-list a[href="/recharge-guide"] {
  background: linear-gradient(135deg, rgba(237, 137, 54, 0.2) 0%, rgba(237, 137, 54, 0.1) 100%);
  border-left: 3px solid #ed8936;
  color: #fff;
  font-weight: 600;
  position: relative;
}

.nav-list a[href="/recharge-guide"]::after {
  content: '🔥';
  position: absolute;
  right: 15px;
  font-size: 16px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.nav-list a[href="/recharge-guide"]:hover {
  background: linear-gradient(135deg, rgba(237, 137, 54, 0.3) 0%, rgba(237, 137, 54, 0.15) 100%);
  border-left-color: #ed8936;
  padding-left: 33px;
}

/* Main Content */
main {
  margin-left: 280px;
  flex: 1;
  background-color: var(--bg-color);
  min-height: 100vh;
}

.welcome-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.welcome-header h1 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.intro-text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 50px;
}

/* Content Sections */
.content-section {
  margin-bottom: 60px;
}

.section-header {
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-light);
  margin: 0;
}

/* API Checker Card */
.api-checker-card {
  background: var(--card-bg-color);
  border-radius: 12px;
  padding: 35px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  margin-bottom: 25px;
}

.input-group {
  margin-bottom: 25px;
}

.input-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
}

.api-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-color);
  color: var(--text-color);
  transition: all 0.3s ease;
  font-family: 'SFMono-Regular', Consolas, monospace;
}

.api-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
  background: white;
}

.button-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-icon {
  font-size: 18px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(45, 55, 72, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 55, 72, 0.4);
}

.btn-notion {
  background: linear-gradient(135deg, #8e44ad 0%, #732d91 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
}

.btn-notion:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(142, 68, 173, 0.4);
}

.btn-telegram {
  background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.btn-telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.btn-docs {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.btn-docs:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
}

/* Result Container */
.result-container {
  margin-top: 25px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.result-container.show {
  opacity: 1;
  transform: translateY(0);
}

.result-loading,
.result-error {
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  font-size: 15px;
}

.result-loading {
  background: rgba(66, 153, 225, 0.1);
  color: var(--accent-color);
  border: 2px solid rgba(66, 153, 225, 0.2);
}

.result-error {
  background: rgba(245, 101, 101, 0.1);
  color: var(--error-color);
  border: 2px solid rgba(245, 101, 101, 0.2);
}

.result-success {
  background: rgba(72, 187, 120, 0.05);
  border: 2px solid rgba(72, 187, 120, 0.2);
  border-radius: 8px;
  padding: 25px;
}

.result-success h3 {
  font-size: 18px;
  color: var(--success-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.balance-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.balance-label {
  font-size: 13px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-weight: 600;
}

.balance-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--success-color);
  font-family: 'SFMono-Regular', Consolas, monospace;
}

.balance-value.used {
  color: var(--warning-color);
}

/* Info Card */
.info-card {
  background: rgba(66, 153, 225, 0.05);
  border: 2px solid rgba(66, 153, 225, 0.2);
  border-radius: 12px;
  padding: 25px;
}

.info-card h3 {
  font-size: 16px;
  color: var(--accent-color);
  margin-bottom: 12px;
  font-weight: 700;
}

.info-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 15px;
}

/* Code Block */
.code-block {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  border-radius: 8px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.code-block.highlight {
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 20px rgba(66, 153, 225, 0.2);
}

.code-block code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  color: #e2e8f0;
  flex: 1;
  word-break: break-all;
}

.copy-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: white;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Config Card */
.config-card {
  background: var(--card-bg-color);
  border-radius: 12px;
  padding: 35px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.info-box {
  background: linear-gradient(135deg, rgba(66, 153, 225, 0.08) 0%, rgba(66, 153, 225, 0.03) 100%);
  border: 2px solid rgba(66, 153, 225, 0.2);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
}

.info-box h3 {
  font-size: 18px;
  color: var(--accent-color);
  margin-bottom: 12px;
  font-weight: 700;
}

.info-box p {
  font-size: 15px;
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 15px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
}

.feature-list li {
  font-size: 14px;
  color: var(--text-color);
  padding: 8px 0;
  line-height: 1.6;
}

.hint {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
  font-style: italic;
}

.hint code {
  font-size: 12px;
  padding: 2px 6px;
}

.config-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 16px;
  color: var(--text-color);
  margin-bottom: 12px;
  font-weight: 600;
}

.arrow-down {
  text-align: center;
  font-size: 32px;
  margin: 10px 0;
  color: var(--accent-color);
}

/* Guide Card */
.guide-card {
  background: var(--card-bg-color);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  text-align: center;
}

.guide-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.guide-card h3 {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.guide-card p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 25px;
  line-height: 1.7;
}

/* Support Card */
.support-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.support-item {
  background: var(--card-bg-color);
  border-radius: 12px;
  padding: 35px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.support-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.support-content h3 {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 12px;
  font-weight: 700;
}

.support-content p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  nav {
    width: 250px;
  }
  
  main {
    margin-left: 250px;
  }
  
  .content-wrapper {
    padding: 30px 40px;
  }
}

@media (max-width: 768px) {
  nav {
    width: 100%;
    position: relative;
    height: auto;
  }
  
  main {
    margin-left: 0;
  }
  
  .welcome-header {
    padding: 40px 25px;
  }
  
  .welcome-header h1 {
    font-size: 28px;
  }
  
  .content-wrapper {
    padding: 25px 20px;
  }
  
  .api-checker-card,
  .config-card,
  .guide-card {
    padding: 25px;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .balance-grid {
    grid-template-columns: 1fr;
  }
  
  .support-card {
    grid-template-columns: 1fr;
  }
  
  .code-block {
    flex-direction: column;
    align-items: stretch;
  }
  
  .copy-btn {
    width: 100%;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background: var(--accent-color);
  color: white;
}

::-moz-selection {
  background: var(--accent-color);
  color: white;
}

/* Status Card */
.status-card {
  background: var(--card-bg-color);
  border-radius: 12px;
  padding: 35px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.status-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.status-search-container {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.status-search-input {
  width: 100%;
  padding: 12px 18px;
  font-size: 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-color);
  color: var(--text-color);
  transition: all 0.3s ease;
  font-family: inherit;
}

.status-search-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
  background: white;
}

.status-search-input::placeholder {
  color: var(--text-light);
}

.status-sort-select {
  padding: 12px 18px;
  font-size: 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-color);
  color: var(--text-color);
  transition: all 0.3s ease;
  font-family: inherit;
  cursor: pointer;
  min-width: 150px;
}

.status-sort-select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
  background: white;
}

.status-sort-select:hover {
  border-color: var(--accent-color);
}

.status-info {
  font-size: 14px;
  color: var(--text-light);
}

.status-container {
  min-height: 200px;
}

.status-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
  font-size: 15px;
}

.status-error {
  background: rgba(245, 101, 101, 0.1);
  border: 2px solid rgba(245, 101, 101, 0.2);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  color: var(--error-color);
  font-size: 15px;
}

/* Status Categories */
.status-categories {
  display: grid;
  gap: 20px;
}

.status-category {
  background: var(--bg-color);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid var(--border-color);
}

.status-category-header {
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.status-category-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
}

/* Status Monitors */
.status-monitors {
  display: grid;
  gap: 12px;
}

.status-monitor {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  cursor: pointer;
}

.status-monitor:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateX(3px);
  border-color: var(--accent-color);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.up {
  background-color: #48bb78;
}

.status-dot.warning {
  background-color: #ed8936;
}

.status-dot.down {
  background-color: #f56565;
}

.status-dot.maintenance {
  background-color: #4299e1;
}

.status-monitor-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
  min-width: 200px;
  flex-shrink: 0;
}

.status-availability {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.status-label {
  font-size: 13px;
  color: var(--text-light);
  min-width: 80px;
}

.status-progress-bar {
  flex: 1;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  min-width: 100px;
}

.status-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.status-progress-fill.up {
  background-color: #48bb78;
}

.status-progress-fill.warning {
  background-color: #ed8936;
}

.status-progress-fill.down {
  background-color: #f56565;
}

.status-progress-fill.maintenance {
  background-color: #4299e1;
}

.status-percentage {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  font-family: 'SFMono-Regular', Consolas, monospace;
  min-width: 60px;
  text-align: right;
}

.status-legend {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
}

/* Copy Notification */
.copy-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--success-color) 0%, #38b2ac 100%);
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
  font-size: 14px;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  max-width: 400px;
  word-break: break-word;
}

.copy-notification.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .status-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .status-monitor {
    flex-wrap: wrap;
  }

  .status-monitor-name {
    min-width: 100%;
    width: 100%;
  }

  .status-availability {
    width: 100%;
    flex-wrap: wrap;
  }

  .status-progress-bar {
    min-width: 150px;
  }
}