/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --dark: #1e293b;
  --dark-light: #334155;
  --gray: #64748b;
  --light: #f1f5f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

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

/* Login Screen */
.login-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.login-box {
  background: var(--white);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-box h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.login-box h2 {
  color: var(--gray);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

.login-box input {
  width: 100%;
  padding: 0.875rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
}

.login-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.login-box button {
  width: 100%;
  padding: 0.875rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.login-box button:hover {
  background: var(--primary-dark);
}

.error-message {
  color: var(--danger);
  margin-top: 1rem;
  font-size: 0.875rem;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  font-size: 1.5rem;
  color: var(--dark);
}

.logout-btn {
  padding: 0.5rem 1.25rem;
  background: var(--danger);
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.2s;
}

.logout-btn:hover {
  opacity: 0.9;
}

/* Navigation */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-btn {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--gray);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-btn:hover {
  color: var(--primary);
}

.nav-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Main Content */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  color: var(--dark);
}

/* Search Box */
.search-box {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.search-box h3 {
  margin-bottom: 1rem;
  color: var(--dark);
}

.search-form {
  display: flex;
  gap: 1rem;
}

.search-form input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
}

.search-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-form button {
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.search-form button:hover {
  background: var(--primary-dark);
}

/* User Details */
.user-details {
  background: var(--white);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: var(--primary);
  color: var(--white);
}

.user-header h3 {
  font-size: 1.5rem;
}

.close-btn {
  width: 2rem;
  height: 2rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 0.375rem;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.user-info {
  padding: 1.5rem;
}

.info-section {
  margin-bottom: 2rem;
}

.info-section:last-child {
  margin-bottom: 0;
}

.info-section h4 {
  font-size: 1.125rem;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.875rem;
  color: var(--gray);
  font-weight: 500;
}

.info-value {
  font-size: 1rem;
  color: var(--dark);
  font-weight: 600;
}

/* Currency Grid */
.currency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.currency-item {
  background: var(--light);
  padding: 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.currency-icon {
  font-size: 2rem;
}

.currency-label {
  font-size: 0.875rem;
  color: var(--gray);
}

.currency-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

/* Achievements List */
.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.achievement-item {
  background: var(--light);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.achievement-id {
  font-weight: 600;
  color: var(--dark);
}

.achievement-date {
  font-size: 0.875rem;
  color: var(--gray);
}

/* Devices List */
.devices-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.device-item {
  background: var(--light);
  padding: 1rem;
  border-radius: 0.5rem;
}

.device-platform {
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.device-token {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--gray);
  word-break: break-all;
}

.device-date {
  font-size: 0.875rem;
  color: var(--gray);
  margin-top: 0.5rem;
}

/* Token Box */
.token-box {
  background: var(--light);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
}

.token-box code {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  color: var(--dark);
  word-break: break-all;
}

/* Users Table */
.users-list {
  background: var(--white);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--light);
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 1rem;
  border-top: 1px solid var(--border);
}

tr:hover {
  background: var(--light);
}

.no-data {
  text-align: center;
  color: var(--gray);
  padding: 2rem;
}

.table-btn {
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s;
}

.table-btn:hover {
  background: var(--primary-dark);
}

.table-btn-delete {
  padding: 0.5rem 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.375rem;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.table-btn-delete:hover {
  background: #ef4444;
  color: var(--white);
  border-color: #ef4444;
}

/* Notification Forms */
.notification-forms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.notification-box {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

.notification-box h3 {
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-primary {
  width: 100%;
  padding: 0.875rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  padding: 0.875rem 1.5rem;
  background: var(--gray);
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 1rem;
}

.btn-secondary:hover {
  opacity: 0.9;
}

/* Result Message */
.result-message {
  background: var(--white);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.result-message.success {
  border-left: 4px solid var(--success);
  color: var(--success);
}

.result-message.error {
  border-left: 4px solid var(--danger);
  color: var(--danger);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--white);
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.875rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  font-size: 2rem;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 0.2rem;
}

/* Loading Spinner */
.spinner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner-content {
  background: var(--white);
  padding: 2rem 3rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
}

/* Duplicates Section */
.duplicates-section {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.duplicates-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.duplicates-header h3 {
  margin: 0;
  color: var(--dark);
}

.duplicates-content {
  margin-top: 1rem;
}

.duplicates-summary {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.duplicates-summary h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--dark);
  font-size: 1.125rem;
}

.duplicates-list {
  margin-top: 1.5rem;
}

.duplicates-list h4 {
  margin-bottom: 1.5rem;
  color: var(--dark);
  font-size: 1.125rem;
}

.duplicate-group {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  overflow: hidden;
}

.duplicate-group-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.duplicate-group-header strong {
  color: var(--white);
  font-size: 1rem;
}

.duplicate-count {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 0.375rem 0.875rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.duplicate-group .users-list {
  box-shadow: none;
  border-radius: 0;
  margin: 0;
}

.duplicate-group table {
  margin: 0;
}

/* Terminal Section */
.terminal-section {
  background: var(--white);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  margin-top: 2rem;
  overflow: hidden;
}

.terminal-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #0f172a;
}

.terminal-header h3 {
  color: var(--white);
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.terminal-controls {
  display: flex;
  gap: 0.5rem;
}

.btn-terminal {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-terminal:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-stop {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  animation: pulse-stop 2s ease-in-out infinite;
}

.btn-stop:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.5);
}

@keyframes pulse-stop {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
}

.terminal-content {
  background: #0f172a;
  max-height: 600px;
  overflow-y: auto;
  font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
}

.terminal-logs {
  padding: 1rem;
}

.terminal-line {
  padding: 0.375rem 0.5rem;
  border-radius: 0.25rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  transition: background 0.15s;
}

.terminal-line:hover {
  background: rgba(255, 255, 255, 0.05);
}

.terminal-time {
  color: #64748b;
  font-weight: 600;
  flex-shrink: 0;
  user-select: none;
}

.terminal-message {
  flex: 1;
  word-break: break-word;
}

/* Terminal log types */
.terminal-info {
  color: #94a3b8;
}

.terminal-info .terminal-message {
  color: #cbd5e1;
}

.terminal-success {
  color: #10b981;
}

.terminal-success .terminal-message {
  color: #34d399;
  font-weight: 500;
}

.terminal-error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.terminal-error .terminal-message {
  color: #f87171;
  font-weight: 500;
}

.terminal-warning {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.terminal-warning .terminal-message {
  color: #fbbf24;
  font-weight: 500;
}

.terminal-progress {
  color: #3b82f6;
}

.terminal-progress .terminal-message {
  color: #60a5fa;
  font-weight: 500;
}

.terminal-connected {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
  border-left: 3px solid #8b5cf6;
  margin-left: 0.5rem;
}

.terminal-connected .terminal-message {
  color: #a78bfa;
  font-weight: 600;
}

/* Terminal scrollbar styling */
.terminal-content::-webkit-scrollbar {
  width: 10px;
}

.terminal-content::-webkit-scrollbar-track {
  background: #1e293b;
}

.terminal-content::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 5px;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Analytics Sections */
.stats-section {
  background: var(--white);
  padding: 1.25rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.stats-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stats-section h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

/* Live Stats Variant */
.stat-card-live {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.stat-card-purchase {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(52, 211, 153, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Charts Grid Layouts */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.charts-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.chart-container {
  background: var(--light);
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  height: 280px;
  max-height: 280px;
  display: flex;
  flex-direction: column;
}

.chart-container h4 {
  font-size: 0.9rem;
  margin-bottom: 0.375rem;
  color: var(--dark);
  font-weight: 600;
}

.chart-subtitle {
  font-size: 0.75rem;
  color: var(--gray);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.chart-container canvas {
  flex: 1;
  max-height: 220px;
}

/* Economy Analytics */
.economy-stats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.economy-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.economy-card {
  background: linear-gradient(135deg, var(--light) 0%, #e0e7ff 100%);
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.economy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.economy-label {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.economy-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* Top Users Section */
.top-users-section {
  margin-top: 1.25rem;
}

.top-users-section h4 {
  margin-bottom: 0.75rem;
  color: var(--dark);
  font-size: 0.95rem;
}

.top-users-table {
  width: 100%;
  background: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.top-users-table thead {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.top-users-table th {
  color: var(--white);
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
}

.top-users-table td {
  padding: 0.625rem 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

.top-users-table tbody tr:hover {
  background: var(--light);
}

/* Achievement Statistics */
.achievement-lists {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.achievement-lists > div {
  background: var(--light);
  padding: 1rem;
  border-radius: 0.75rem;
}

.achievement-lists h5 {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
  font-weight: 600;
}

.achievement-item-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--white);
  border-radius: 0.5rem;
  margin-bottom: 0.375rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s, box-shadow 0.15s;
}

.achievement-item-stat:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.achievement-item-stat:last-child {
  margin-bottom: 0;
}

.achievement-name {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.8rem;
}

.achievement-percentage {
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.625rem;
  border-radius: 1rem;
}

.achievement-percentage.rare {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: var(--white);
}

.achievement-percentage.common {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
  .header-content,
  .nav,
  .main-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .notification-forms {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .currency-grid {
    grid-template-columns: 1fr;
  }

  .terminal-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .terminal-controls {
    width: 100%;
    flex-wrap: wrap;
  }

  .btn-terminal {
    flex: 1;
    min-width: 100px;
  }

  .terminal-line {
    flex-direction: column;
    gap: 0.25rem;
  }

  .terminal-time {
    font-size: 0.75rem;
  }

  /* Analytics Responsive */
  .charts-grid {
    grid-template-columns: 1fr;
  }

  .charts-grid-2col {
    grid-template-columns: 1fr;
  }

  .chart-container {
    height: 250px;
    max-height: 250px;
  }

  .economy-row {
    grid-template-columns: 1fr;
  }

  .stats-section {
    padding: 1rem;
  }
}
