/* RenixVLR Steam Guard Web Utility Styles */
:root {
  --bg-dark: #07090e;
  --card-bg: rgba(15, 22, 36, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-glow: rgba(0, 242, 254, 0.25);
  
  --primary: #00f2fe;
  --primary-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --primary-hover: #38ef7d;
  
  --steam-blue: #66c0f4;
  --steam-dark: #1b2838;
  
  --accent-green: #10b981;
  --accent-green-bg: rgba(16, 185, 129, 0.15);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  padding: 20px 15px;
}

/* Background Ambient Orbs */
.app-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: #00f2fe;
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: #66c0f4;
  bottom: -150px;
  right: -100px;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: #7928ca;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Container */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steam-blue);
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(102, 192, 244, 0.2);
  border: 1px solid rgba(102, 192, 244, 0.3);
}

.brand-text h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-green);
  letter-spacing: 0.5px;
}

.badge-live i {
  font-size: 8px;
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.4; transform: scale(0.9); }
}

/* Key Entry Hero Card */
.key-entry-card {
  border: 1px solid var(--card-border-glow);
  box-shadow: 0 10px 40px rgba(0, 242, 254, 0.15);
  text-align: center;
  padding: 32px 24px;
}

.key-entry-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.key-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 4px;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.key-entry-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
}

.key-entry-header p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 320px;
}

.key-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.key-input-wrapper input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(0, 242, 254, 0.3);
  color: var(--primary);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 18px;
  font-family: 'Outfit', monospace;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  outline: none;
  transition: var(--transition);
}

.key-input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.3);
  background: rgba(0, 242, 254, 0.05);
}

.key-input-wrapper input::placeholder {
  color: #475569;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Buttons */
.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.btn-icon:hover {
  color: var(--text-main);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  outline: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #040914;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.5);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
}

.btn-outline {
  width: 100%;
  background: transparent;
  color: var(--primary);
  border: 1.5px dashed rgba(0, 242, 254, 0.4);
}

.btn-outline:hover {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--primary);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-large {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-ghost-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.btn-ghost-icon:hover {
  color: var(--text-main);
}

/* Card Styling */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

/* Account Selector */
.account-selector-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.selector-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.selector-label i {
  color: var(--primary);
}

.account-dropdown {
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.account-dropdown:focus {
  border-color: var(--primary);
}

/* Guard Hero Card */
.guard-card {
  border: 1px solid var(--card-border-glow);
  box-shadow: 0 10px 40px rgba(0, 242, 254, 0.12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.guard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.guard-subtitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}

.timer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

/* Big Steam Guard Code Display */
.guard-code-container {
  position: relative;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(10, 16, 28, 0.7) 100%);
  border: 2px dashed rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-md);
  padding: 24px 10px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.guard-code-container:hover {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.05);
}

.guard-code {
  font-family: 'Outfit', monospace, sans-serif;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 10px;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
  user-select: all;
}

.guard-copied-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 185, 129, 0.95);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  border-radius: var(--radius-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.guard-copied-overlay.active {
  opacity: 1;
}

/* Timer Bar */
.timer-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.timer-bar-fill {
  height: 100%;
  width: 100%;
  background: var(--primary-gradient);
  border-radius: 10px;
  transition: width 1s linear, background-color 0.3s ease;
}

.timer-bar-fill.warning {
  background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
}

.next-code-preview {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.next-code-preview strong {
  color: var(--text-main);
  font-family: 'Outfit', monospace;
  letter-spacing: 2px;
}

/* Credentials Card */
.credentials-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.card-title i {
  color: var(--steam-blue);
  font-size: 20px;
}

.card-title h3 {
  font-size: 16px;
  font-weight: 600;
}

.credential-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cred-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cred-info label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cred-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.password-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* How to Guide Card */
.guide-card {
  background: rgba(12, 17, 27, 0.6);
}

.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.15);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.step-text strong {
  color: var(--text-main);
}

/* Admin Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #0f1624;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header h2 i {
  color: var(--primary);
}

.modal-body {
  padding: 20px 24px;
}

.modal-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-main);
}

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

.tab-content {
  display: none;
}

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

/* Admin Form */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.full-width {
  width: 100%;
}

/* Account List in Modal */
.account-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.account-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.acc-title {
  font-weight: 600;
  font-size: 14px;
}

.acc-sub {
  font-size: 11px;
  color: var(--text-dark);
}

.acc-actions {
  display: flex;
  gap: 6px;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--primary);
  color: var(--text-main);
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast i {
  color: var(--primary);
  font-size: 16px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Sleek & Small Footer */
.app-footer {
  text-align: center;
  padding: 12px 0 6px 0;
  font-size: 12px;
  color: var(--text-dark);
  letter-spacing: 0.3px;
}

.app-footer .store-name {
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 480px) {
  body { padding: 12px 8px; }
  .guard-code { font-size: 36px; letter-spacing: 6px; }
  .card { padding: 18px; }
}
