* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f0f2f5;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.screen {
  display: none;
  width: 100%;
  height: 100vh;
}

.screen.active {
  display: block !important;
}

/* Login */
#login-screen {
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#login-screen.active {
  display: flex !important;
}

.login-box {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  text-align: center;
  min-width: 450px;
  max-width: 500px;
}

.login-box h1 {
  margin-bottom: 10px;
  color: #333;
}

.login-box p {
  color: #666;
  margin-bottom: 30px;
}



#login-btn {
  width: 100%;
  padding: 15px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

#login-btn:hover {
  background: #5568d3;
}

#login-error {
  color: #e74c3c;
  margin-top: 15px;
  font-size: 14px;
}

#qr-code-container {
  margin: 20px auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  display: inline-block;
}

#qr-code-container canvas {
  display: block;
  margin: 0 auto;
}

.info-text {
  color: #666;
  font-size: 14px;
  margin: 15px 0;
}

#setup-section {
  margin-bottom: 20px;
}

#setup-section input,
#login-section input {
  margin-bottom: 15px;
}

#authy-code-setup,
#authy-code {
  width: 100%;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 18px;
  text-align: center;
  letter-spacing: 5px;
  font-weight: bold;
}

#verify-setup-btn {
  width: 100%;
  padding: 15px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

#verify-setup-btn:hover {
  background: #5568d3;
}

/* Navbar */
.navbar {
  background: #667eea;
  color: white;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-actions {
  display: flex;
  gap: 15px;
}

#logout-btn, .btn-contact-nav {
  background: white;
  color: #667eea;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

#logout-btn:hover, .btn-contact-nav:hover {
  background: #f0f0f0;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
}

.header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.header-section h2 {
  color: #333;
  font-size: 28px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
}

.stat-card h3 {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.stat-card p {
  color: #667eea;
  font-size: 36px;
  font-weight: bold;
}

/* Tokens List */
.tokens-list {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #f8f9fa;
}

th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e9ecef;
}

td {
  padding: 15px;
  border-bottom: 1px solid #e9ecef;
}

.token-code {
  font-family: monospace;
  background: #f8f9fa;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 11px;
  word-break: break-all;
  display: block;
  max-width: 300px;
}

.badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.badge-monthly {
  background: #e3f2fd;
  color: #1976d2;
}

.badge-forever {
  background: #f3e5f5;
  color: #7b1fa2;
}

.badge-active {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-expired {
  background: #ffebee;
  color: #c62828;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-danger, .btn-warning {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  margin: 0 5px;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5568d3;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-danger {
  background: #e74c3c;
  color: white;
}

.btn-warning {
  background: #f39c12;
  color: white;
}

.btn-copy {
  background: #25D366;
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 10px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 15px;
  min-width: 500px;
  max-width: 600px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-content h2 {
  margin-bottom: 25px;
  color: #333;
}

.modal-content label {
  display: block;
  margin-bottom: 20px;
  color: #555;
  font-weight: 500;
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 8px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 30px;
}

.token-display {
  text-align: center;
}

.token-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.token-box code {
  font-size: 18px;
  color: #667eea;
  font-weight: bold;
  word-break: break-all;
}

.warning {
  color: #f39c12;
  font-weight: bold;
  margin-top: 15px;
}

/* Contact Info */
.contact-info {
  margin: 30px 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 15px;
}

.contact-icon {
  font-size: 32px;
}

.contact-item strong {
  display: block;
  color: #667eea;
  margin-bottom: 5px;
  font-size: 16px;
}

.contact-item p {
  color: #666;
  margin-bottom: 10px;
  font-size: 14px;
}

.contact-item a {
  text-decoration: none;
  display: inline-block;
}
