.redeem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 40px;
  max-width: 560px;
  box-shadow: var(--shadow-card);
}
.redeem-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  margin-bottom: 8px;
}
.redeem-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 1.6;
}
.key-input-wrap {
  position: relative;
  margin-bottom: 16px;
}
.key-input {
  width: 100%;
  padding: 14px 50px 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 15px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 1px;
  outline: none;
  transition: all 0.2s;
}
.key-input:focus {
  border-color: var(--violet-bright);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.key-input::placeholder {
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0;
}
.key-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-muted);
}
.btn-redeem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--violet-mid), var(--violet-bright));
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.btn-redeem::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-redeem:hover::after {
  opacity: 1;
}
.btn-redeem:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}
.btn-redeem:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.alert {
  padding: 11px 14px;
  border-radius: 11px;
  font-size: 13px;
  margin-top: 16px;
  display: none;
  align-items: center;
  gap: 8px;
}
.alert.show {
  display: flex;
}
.alert-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
}
.alert-success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: #6ee7b7;
}
.alert-info {
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.3);
  color: #c4b5fd;
}
.key-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  transition: all 0.3s;
  animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  box-shadow: var(--shadow-card);
}
.key-card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 16px 40px rgba(109, 59, 158, 0.3), 0 0 0 1px rgba(139,92,246,0.12);
  transform: translateY(-3px);
}
.card-image {
  width: 100%;
  height: 160px;
  background: var(--surface-3);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.key-card:hover .card-image img {
  transform: scale(1.04);
}
.card-image-placeholder {
  width: 64px;
  height: 64px;
  background: var(--surface-4);
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 2px dashed var(--border-bright);
  color: var(--violet-bright);
}
.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 103px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--violet-glow);
}
.card-body {
  padding: 20px;
}
.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.card-key {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.card-key-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-right: auto;
  white-space: nowrap;
}
.card-key-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--violet-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}
.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  padding: 2px;
  transition: color 0.2s;
  flex-shrink: 0;
}
.copy-btn:hover {
  color: var(--violet-glow);
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}
.card-actions {
  display: flex;
  gap: 8px;
}
.btn-replace {
  flex: 1;
  padding: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-replace:hover {
  border-color: var(--border-bright);
  color: var(--violet-glow);
  background: var(--surface-3);
}
.btn-generate {
  flex: 1;
  padding: 9px;
  background: linear-gradient(135deg, var(--violet-dark), var(--violet-mid));
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  color: var(--violet-light);
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-generate:hover {
  box-shadow: 0 0 16px rgba(139,92,246,0.3);
  transform: translateY(-1px);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: rgba(30,30,30,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 32px;
  max-width: 400px;
  width: 100%;
  transform: scale(0.95);
  transition: transform 0.25s;
  box-shadow: var(--shadow-float);
}
.modal-overlay.open .modal {
  transform: scale(1);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-header h3 i {
  color: var(--violet-bright);
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 0 8px;
  transition: color 0.2s;
}
.modal-close:hover {
  color: var(--text-primary);
}
.modal-body {
  padding: 0;
}
.modal-body p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.btn-cancel {
  flex: 1;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-cancel:hover {
  color: var(--text-primary);
  border-color: var(--border-bright);
}
.btn-confirm {
  flex: 1;
  padding: 10px;
  background: linear-gradient(135deg, var(--violet-mid), var(--violet-bright));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-confirm:hover {
  box-shadow: 0 4px 16px rgba(139,92,246,0.4);
}
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  min-width: 240px;
  animation: toastIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast.removing {
  animation: toastOut 0.3s ease forwards;
}
.btn-goto-redeem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: linear-gradient(135deg, var(--violet-mid), var(--violet-bright));
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-goto-redeem:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139,92,246,0.4);
}
.empty-state {
  text-align: center;
  padding: 80px 32px;
  animation: panelIn 0.4s ease;
}
.empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  color: var(--text-muted);
}
.empty-state h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}
.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 300px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.settings-modal {
  max-width: 560px;
  width: 100%;
  background: rgba(30,30,30,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 0;
  overflow: hidden;
  animation: settingsSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--shadow-float);
}
.settings-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px 20px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  position: relative;
}
.settings-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--violet-mid), var(--violet-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(139,92,246,0.3);
}
.settings-header-text {
  flex: 1;
}
.settings-header-text h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}
.settings-header-text p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}
.settings-close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: none;
  background: var(--surface-3);
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.settings-close:hover {
  background: var(--surface-4);
  color: var(--text-primary);
  transform: rotate(90deg);
}
.settings-body {
  padding: 24px 28px;
  max-height: 520px;
  overflow-y: auto;
}
.settings-body::-webkit-scrollbar {
  width: 4px;
}
.settings-body::-webkit-scrollbar-track {
  background: transparent;
}
.settings-body::-webkit-scrollbar-thumb {
  background: var(--border-bright);
  border-radius: 103px;
}
.settings-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 19px;
  margin-bottom: 16px;
  transition: all 0.25s;
}
.settings-card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 4px 20px rgba(109,59,158,0.1);
}
.settings-card-password .settings-card-content {
  flex-direction: column;
  align-items: stretch;
}
.settings-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 15px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--violet-glow);
  flex-shrink: 0;
}
.settings-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.settings-card-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.label-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.label-desc {
  font-size: 12px;
  color: var(--text-muted);
}
.settings-card-input {
  display: flex;
  gap: 8px;
  align-items: center;
}
.settings-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.2s;
}
.settings-input:focus {
  border-color: var(--violet-bright);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.12);
}
.settings-input::placeholder {
  color: var(--text-muted);
}
.settings-password-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.settings-row {
  width: 100%;
}
.settings-row-two {
  display: flex;
  gap: 8px;
}
.settings-row-two .settings-input {
  flex: 1;
}
.settings-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.settings-btn-primary {
  background: linear-gradient(135deg, var(--violet-mid), var(--violet-bright));
  color: #fff;
}
.settings-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(139,92,246,0.35);
}
.settings-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.settings-btn-secondary {
  background: var(--surface-3);
  color: var(--violet-glow);
  border: 1px solid var(--border-bright);
  align-self: flex-start;
}
.settings-btn-secondary:hover {
  background: var(--surface-4);
  box-shadow: 0 4px 16px rgba(139,92,246,0.15);
}
.settings-btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.settings-btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 8px 16px;
}
.settings-btn-ghost:hover {
  color: var(--text-primary);
  background: var(--surface-2);
}
.settings-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px 24px 28px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.settings-footer-text {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-footer-text i {
  color: var(--success);
}
.keys-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px 0;
}
.filter-pill {
  padding: 6px 16px;
  border-radius: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  user-select: none;
}
.filter-pill:hover {
  border-color: var(--border-bright);
  color: var(--text-primary);
  background: var(--surface-3);
}
.filter-pill.active {
  background: linear-gradient(135deg, var(--violet-mid), var(--violet-bright));
  border-color: var(--violet-bright);
  color: #fff;
  box-shadow: 0 4px 16px rgba(139,92,246,0.3);
}
.filter-pill .filter-count {
  background: rgba(255,255,255,0.15);
  border-radius: 103px;
  padding: 0 8px;
  font-size: 11px;
  margin-left: 4px;
  color: inherit;
}
.filter-pill.active .filter-count {
  background: rgba(255,255,255,0.2);
}
.filter-pill-all {
  background: var(--surface-3);
  border-color: var(--border-bright);
  color: var(--violet-glow);
}
.filter-pill-all.active {
  background: var(--violet-bright);
  color: #fff;
  border-color: var(--violet-bright);
}
.credential-display {
  margin-bottom: 16px;
}
.credential-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
.credential-item:last-child {
  margin-bottom: 0;
}
.credential-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.credential-value-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.credential-value {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--text-primary);
  word-break: break-all;
}
.credential-value:empty::before {
  content: '---';
  color: var(--text-muted);
}
.credential-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(139,92,246,0.06);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.credential-note i {
  color: var(--success);
  font-size: 14px;
}
.credential-value-wrapper .copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  padding: 4px 8px;
  transition: color 0.2s;
  flex-shrink: 0;
  border-radius: 6px;
}
.credential-value-wrapper .copy-btn:hover {
  color: var(--violet-glow);
  background: var(--surface-3);
}
.keys-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.keys-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  margin: 0;
}
.keys-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.keys-count {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 103px;
  padding: 4px 14px;
  font-size: 13px;
  color: var(--violet-glow);
  font-weight: 600;
  white-space: nowrap;
}
.search-container {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 103px;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  width: 40px;
  height: 36px;
}
.search-container.expanded {
  width: 220px;
  padding: 0 4px 0 14px;
  border-color: var(--violet-bright);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.12);
}
.search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  padding: 0;
  width: 0;
  opacity: 0;
  transition: all 0.3s ease;
  min-width: 0;
}
.search-container.expanded .search-input {
  width: 100%;
  opacity: 1;
  padding: 6px 0;
}
.search-input::placeholder {
  color: var(--text-muted);
}
.search-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  width: 40px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s;
  border-radius: 103px;
}
.search-toggle:hover {
  color: var(--violet-glow);
  background: var(--surface-3);
}
.search-toggle.active {
  color: var(--violet-bright);
}
.search-container.expanded .search-toggle {
  width: 36px;
}
@media (max-width: 600px) {
  .keys-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .keys-header-right {
    justify-content: space-between;
    width: 100%;
  }
  .search-container.expanded {
    width: 160px;
  }
}
.generate-modal {
  max-width: 480px;
}
.generate-status {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 8px 0;
  min-height: 24px;
  text-align: center;
}
.generate-progress-container {
  width: 100%;
  height: 8px;
  background: var(--surface-2);
  border-radius: 103px;
  overflow: hidden;
  margin: 12px 0 8px 0;
}
.generate-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--violet-mid), var(--violet-bright));
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 103px;
}
.generate-progress-text {
  font-size: 14px;
  color: var(--text-muted);
  text-align: right;
}
.generate-modal .modal-body {
  padding: 0 28px 28px 28px;
}
.generate-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.generate-status {
  font-size: 14px;
  color: var(--text-secondary);
  min-height: 24px;
  text-align: center;
  margin-bottom: 16px;
}
.generate-progress-wrapper {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.generate-progress-wrapper.active {
  display: flex;
}
.generate-progress-circle {
  position: relative;
  width: 100px;
  height: 100px;
}
.generate-progress-circle svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}
.generate-progress-circle .bg {
  fill: none;
  stroke: var(--surface-3);
  stroke-width: 6;
}
.generate-progress-circle .progress {
  fill: none;
  stroke: url(#gradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 0.4s ease;
}
.generate-progress-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--violet-glow);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.generate-result {
  display: none;
  padding: 12px 16px;
  background: rgba(16,185,129,0.1);
  border-radius: 10px;
  color: var(--success);
  font-size: 14px;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.generate-result.show {
  display: flex;
}
.generate-result i {
  font-size: 18px;
}
.generate-btn {
  width: 100%;
  padding: 13px;
  margin-top: 16px;
  background: linear-gradient(135deg, var(--violet-mid), var(--violet-bright));
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.generate-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(139,92,246,0.4);
}
.generate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.generate-btn .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.generate-btn i {
  font-size: 16px;
}
.modal-overlay .modal .modal-header {
  padding: 20px 28px 16px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-overlay .modal .modal-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-overlay .modal .modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
}
.modal-overlay .modal .modal-close:hover {
  color: var(--text-primary);
}
.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.cred-modal-large {
  max-width: 800px;
  width: 100%;
}
.cred-body {
  display: flex;
  gap: 40px;
  padding: 24px 32px 32px 32px;
  background: var(--surface);
  border-radius: 0 0 20px 20px;
}
.cred-product {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-right: 32px;
  border-right: 1px solid var(--border);
}
.cred-product-image {
  width: 100%;
  max-height: 180px;
  background: var(--surface-2);
  border-radius: 19px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.cred-product-image:hover {
  border-color: var(--border-bright);
}
.cred-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cred-product-image .card-image-placeholder {
  width: 80px;
  height: 80px;
  font-size: 48px;
  background: var(--surface-3);
  border-radius: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-bright);
  color: var(--violet-bright);
}
.cred-product-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 4px 0 0 0;
  color: var(--text-primary);
  line-height: 1.2;
}
.cred-product-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}
.cred-product-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cred-product-tag {
  padding: 4px 14px;
  background: var(--surface-3);
  border: 1px solid var(--border-bright);
  border-radius: 103px;
  font-size: 12px;
  font-weight: 600;
  color: var(--violet-glow);
}
.cred-product-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 2px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.cred-credentials {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  min-width: 0;
}
.cred-credentials .credential-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 14px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cred-credentials .credential-item:hover {
  border-color: var(--border-bright);
  box-shadow: 0 4px 16px rgba(109,59,158,0.08);
}
.cred-credentials .credential-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.cred-credentials .credential-label i {
  font-size: 14px;
  color: var(--violet-glow);
}
.cred-credentials .credential-value-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}
.cred-credentials .credential-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  word-break: break-all;
  flex: 1;
}
.cred-credentials .credential-value:empty::before {
  content: '---';
  color: var(--text-muted);
  font-weight: 400;
}
.cred-credentials .copy-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
  flex-shrink: 0;
}
.cred-credentials .copy-btn:hover {
  background: var(--violet-bright);
  color: #fff;
  border-color: var(--violet-bright);
  box-shadow: 0 4px 12px rgba(139,92,246,0.3);
}
.cred-credentials .copy-btn:active {
  transform: scale(0.92);
}
.cred-credentials .credential-note {
  margin-top: 6px;
  padding: 10px 14px;
  background: rgba(139,92,246,0.05);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(139,92,246,0.08);
}
.cred-credentials .credential-note i {
  font-size: 16px;
  color: var(--success);
}
@media (max-width: 700px) {
  .cred-body {
    flex-direction: column;
    gap: 24px;
    padding: 20px;
  }
  .cred-product {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
  }
  .cred-product-image {
    max-height: 140px;
  }
  .cred-product-title {
    font-size: 19px;
  }
  .cred-credentials .credential-value {
    font-size: 14px;
  }
  .cred-modal-large {
    max-width: 95vw;
    margin: 12px;
  }
}
.tutorial-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-radius: 12px;
  border-left: 3px solid var(--violet-bright);
}
.tutorial-step .step-icon {
  font-size: 18px;
  color: var(--violet-glow);
  flex-shrink: 0;
  margin-top: 2px;
  min-width: 24px;
  text-align: center;
}
.tutorial-step .step-text {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
}
.tutorial-warning {
  border-left-color: #f59e0b;
  background: rgba(245,158,11,0.08);
}
.tutorial-warning .step-icon {
  color: #f59e0b;
}
.tutorial-warning .step-text {
  color: #fbbf24;
}
.btn-tutorial,
.btn-video {
  padding: 10px 20px;
  background: var(--surface-3);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  color: var(--violet-glow);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-video:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-muted) !important;
}

.btn-tutorial:hover,
.btn-video:hover {
  background: var(--surface-4);
  box-shadow: 0 4px 16px rgba(139,92,246,0.15);
  transform: translateY(-1px);
}
.btn-tutorial:hover {
  background: var(--surface-4);
  box-shadow: 0 4px 16px rgba(139,92,246,0.15);
  transform: translateY(-1px);
}
.btn-generate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  background: var(--surface-3);
  color: var(--text-muted);
  border-color: var(--border);
}
.cred-modal .modal-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  width: 100% !important;
}
.cred-modal .modal-actions .btn-tutorial,
.cred-modal .modal-actions .btn-confirm {
  width: 100% !important;
  justify-content: center !important;
  display: flex !important;
  align-items: center !important;
  padding: 10px 20px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}
.cred-modal .modal-actions .btn-tutorial {
  background: var(--surface-3) !important;
  border: 1px solid var(--border-bright) !important;
  color: var(--violet-glow) !important;
}
.cred-modal .modal-actions .btn-tutorial:hover {
  background: var(--surface-4) !important;
  box-shadow: 0 4px 16px rgba(139,92,246,0.15) !important;
}
.cred-modal .modal-actions .btn-confirm {
  background: linear-gradient(135deg, var(--violet-mid), var(--violet-bright)) !important;
  color: #fff !important;
}
.cred-modal .modal-actions .btn-confirm:hover {
  box-shadow: 0 4px 16px rgba(139,92,246,0.4) !important;
}
#cred-modal .modal-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  width: 100% !important;
  justify-content: stretch !important;
}
#cred-modal .modal-actions .btn-tutorial,
#cred-modal .modal-actions .btn-confirm {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 12px !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}
#cred-modal .modal-actions .btn-tutorial {
  background: var(--surface-3);
  border: 1px solid var(--border-bright);
  color: var(--violet-glow);
}
#cred-modal .modal-actions .btn-tutorial:hover {
  background: var(--surface-4);
  box-shadow: 0 4px 16px rgba(139,92,246,0.15);
}
#cred-modal .modal-actions .btn-confirm {
  background: linear-gradient(135deg, var(--violet-mid), var(--violet-bright));
  color: #fff;
}
#cred-modal .modal-actions .btn-confirm:hover {
  box-shadow: 0 4px 16px rgba(139,92,246,0.4);
}
#tos-section {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 15px;
  padding: 16px 18px;
  margin-top: 0 !important;
  transition: border-color 0.3s, background 0.3s;
}
#tos-section:hover {
  border-color: rgba(245,158,11,0.4);
  background: rgba(245,158,11,0.09);
}
.cred-netflix-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  padding: 12px 16px !important;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 4px;
}
.cred-netflix-btn .credential-label {
  display: block !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: var(--text-muted) !important;
}
.cred-netflix-btn .credential-label i {
  font-size: 14px;
  color: var(--violet-glow);
  margin-right: 6px;
}
.cred-netflix-btn .credential-value-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
}
.cred-netflix-btn .credential-value {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}
.cred-netflix-btn .copy-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
  flex-shrink: 0;
}
.cred-netflix-btn .copy-btn:hover {
  background: var(--violet-bright);
  color: #fff;
  border-color: var(--violet-bright);
  box-shadow: 0 4px 12px rgba(139,92,246,0.3);
}