/* Promo specific styles */

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.promo-header {
  text-align: center;
  margin-bottom: 32px;
}

.promo-icon {
  width: 64px;
  height: 64px;
  color: var(--forest-600);
  margin: 0 auto 16px;
  stroke-width: 1.5;
}

/* Promo Input Card */
.promo-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
}

.input-wrapper {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.promo-input {
  flex: 1;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 18px;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  background: var(--surface-bg);
  color: var(--text-primary);
  transition: all 0.15s;
}

.promo-input:focus {
  outline: none;
  border-color: var(--forest-600);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.promo-message {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.promo-message.success {
  background: var(--forest-100);
  color: var(--forest-700);
  border: 1px solid var(--forest-600);
}

.promo-message.error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

/* Codes List */
.codes-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.code-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.code-card:not(.expired):hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--forest-600);
}

.code-card.expired {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.code-name {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.code-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.code-badge.active {
  background: var(--forest-600);
  color: white;
}

.code-badge.limited {
  background: #F59E0B;
  color: white;
}

.code-badge.expired {
  background: #94A3B8;
  color: white;
}

.code-reward {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.reward-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.reward-icon.time {
  color: #6366F1;
}

.reward-icon.point {
  color: #F59E0B;
}

.reward-icon.gems {
  color: #10B981;
}

.code-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

/* History */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.history-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke-width: 2;
}

.history-icon.success {
  color: #10B981;
}

.history-icon.error {
  color: #EF4444;
}

.history-content {
  flex: 1;
}

.history-code {
  font-size: 15px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.history-date {
  font-size: 12px;
  color: var(--text-tertiary);
}

.history-reward {
  font-size: 14px;
  font-weight: 600;
  color: var(--forest-600);
}

.history-reward.error {
  color: #EF4444;
}

/* Responsive */
@media (max-width: 768px) {
  .input-wrapper {
    flex-direction: column;
  }

  .promo-input {
    font-size: 16px;
  }

  .code-name {
    font-size: 16px;
  }

  .code-reward {
    font-size: 16px;
  }
}
