/* ALMAZ STORE - Premium Dark Crimson */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  user-select: none;
}

:root {
  --bg-deep: #050508;
  --bg-surface: #0a0a10;
  --bg-card: rgba(255, 255, 255, 0.02);
  --crimson: #dc2626;
  --crimson-dark: #991b1b;
  --crimson-glow: rgba(220, 38, 38, 0.35);
  --crimson-subtle: rgba(220, 38, 38, 0.08);
  --text-primary: #f8f8f8;
  --text-muted: #6b7280;
  --text-dim: #3a3a4a;
  --border-subtle: rgba(255, 255, 255, 0.04);
}

body {
  background-color: transparent;
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
}

.app-container {
  background: var(--bg-deep);
  border: 1px solid rgba(220, 38, 38, 0.12);
  border-radius: 20px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.app-container::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(140, 20, 20, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.app-container::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 40%;
  background: radial-gradient(ellipse, rgba(120, 15, 15, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Title Bar */
.title-bar {
  height: 42px;
  background: rgba(10, 10, 16, 0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  -webkit-app-region: drag;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 10;
}

.title-text {
  font-size: 11px;
  font-weight: 600;
  color: #52525b;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.window-controls {
  display: flex;
  gap: 8px;
  -webkit-app-region: no-drag;
}

.control-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
}
.control-btn:hover { opacity: 1; transform: scale(1.15); }

.minimize-btn { background-color: #ca8a04; }
.close-btn { background-color: #dc2626; }

/* Content */
.content {
  padding: 36px 32px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  text-align: center;
  position: relative;
  z-index: 5;
}

/* Logo */
.wolf-logo-container {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 20, 20, 0.12) 0%, transparent 70%);
  border: 1.5px solid rgba(220, 38, 38, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  animation: breathe 4s infinite ease-in-out;
}

.wolf-logo-container::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(220, 38, 38, 0.3) 25%, transparent 50%, rgba(180, 20, 20, 0.2) 75%, transparent 100%);
  animation: rotateBorder 6s linear infinite;
  z-index: -1;
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
}

.logo-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(200, 30, 30, 0.4));
}

@keyframes breathe {
  0%, 100% {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.05), 0 0 60px rgba(220, 38, 38, 0.03);
    border-color: rgba(220, 38, 38, 0.12);
  }
  50% {
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.15), 0 0 80px rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.3);
  }
}

@keyframes rotateBorder {
  to { transform: rotate(360deg); }
}

/* Typography */
.launcher-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 6px;
  color: #fff;
  margin-bottom: 4px;
  background: linear-gradient(180deg, #ffffff 30%, #a8a8a8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.launcher-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  font-weight: 400;
}

/* Form */
.form-container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

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

#key-input {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 3px;
  outline: none;
  transition: all 0.35s ease;
}

#key-input::placeholder {
  font-family: 'Inter', sans-serif;
  letter-spacing: 1px;
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 400;
}

#key-input:focus {
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08), 0 0 20px rgba(220, 38, 38, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

/* Checkbox */
.remember-container {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  letter-spacing: 0.3px;
}

.checkbox-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  display: inline-block;
  position: relative;
  transition: all 0.25s ease;
}

.checkbox-label:hover input ~ .checkmark {
  border-color: rgba(220, 38, 38, 0.5);
}

.checkbox-label input:checked ~ .checkmark {
  background: var(--crimson);
  border-color: var(--crimson);
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.3);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
  display: block;
}

/* Button */
.btn-activate {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #c62222 0%, #8b1a1a 100%);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-activate::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: left 0.5s ease;
}

.btn-activate:hover::before {
  left: 100%;
}

.btn-activate:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.25), 0 0 0 1px rgba(220, 38, 38, 0.4);
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.btn-activate:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

/* Status */
.status-message {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  min-height: 18px;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.register-link-container {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.register-link-container a {
  color: #ef4444;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.register-link-container a:hover {
  color: #f87171;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.status-success {
  color: #34d399;
  animation: fadeIn 0.3s ease;
}

.status-error {
  color: #f87171;
  animation: shake 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Offers */
.offers-section {
  width: 100%;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 14px;
}

.offers-title {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 10px;
  text-align: center;
  font-weight: 600;
}

.offers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.offer-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 14px 12px;
  text-decoration: none;
  display: block;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.offer-card.blue::before { background: linear-gradient(90deg, transparent, #3b82f6, transparent); }
.offer-card.gold::before { background: linear-gradient(90deg, transparent, #f59e0b, transparent); }

.offer-card:hover::before { opacity: 1; }

.offer-card.blue { border-color: rgba(59, 130, 246, 0.12); }
.offer-card.blue:hover {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.04);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.08);
}

.offer-card.gold { border-color: rgba(245, 158, 11, 0.12); }
.offer-card.gold:hover {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.04);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.08);
}

.offer-icon { font-size: 18px; margin-bottom: 6px; }
.offer-name {
  font-size: 9px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.offer-desc {
  font-size: 9px;
  color: var(--text-muted);
  line-height: 1.5;
}
.offer-price {
  font-size: 13px;
  font-weight: 900;
  color: #fbbf24;
  margin-top: 6px;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.2);
}

/* Footer */
.footer-info {
  margin-top: auto;
  font-size: 9px;
  color: var(--text-dim);
  width: 100%;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.5px;
  padding-top: 8px;
}

/* Loading */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 1000;
}

.loading-overlay p {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  font-weight: 500;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(220, 38, 38, 0.08);
  border-left-color: var(--crimson);
  border-radius: 50%;
  animation: spin 0.8s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Input shake */
.shake-input {
  animation: shake 0.4s ease;
}
