/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  gap: 8px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-small {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-primary {
  background: #1a1a1e;
  color: var(--primary-color);
  border: 1px solid rgba(255, 77, 106, 0.25);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  border-color: transparent;
  color: #fff;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width 0.3s ease, left 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover::after {
  width: 80%;
  left: 10%;
}

.btn-secondary:active {
  transform: scale(0.97);
}

/* Cards */
.card {
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.25s ease;
}

.glass-card {
  background: var(--background-card);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 32px;
  box-shadow: var(--card-glow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card-hover-glow:hover {
  border-color: rgba(255, 77, 106, 0.2);
}

/* Inputs */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  background: rgba(20, 20, 23, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 18px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: all var(--transition-normal);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(255, 77, 106, 0.15);
}

/* Custom Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1a1a1e;
  transition: background 0.3s ease;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: #444;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
  border-radius: 2px;
}

.toggle-switch input:checked + .slider {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.toggle-switch input:checked + .slider:before {
  transform: translateX(17px);
  background-color: #ffffff;
}

/* Toast Notifications */
.notification-container {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 400px;
  pointer-events: none;
}

.notification {
  background: #1a1a1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  animation: notificationIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes notificationIn {
  to { opacity: 1; transform: translateY(0); }
}

.notification-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-icon svg {
  width: 15px;
  height: 15px;
}

.notification.success .notification-icon { color: var(--success-color); }
.notification.error .notification-icon { color: var(--error-color); }
.notification.info .notification-icon { color: var(--primary-color); }

.notification-text {
  flex: 1;
}

.notification-close {
  color: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: color 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
  font-size: 18px;
}

.notification-close:hover {
  color: rgba(255, 255, 255, 0.5);
}

.notification-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 0 0 10px 10px;
  background: var(--primary-color);
  animation: notifBarShrink 4s linear forwards;
}

.notification.success .notification-bar { background: var(--success-color); }
.notification.error .notification-bar { background: var(--error-color); }

@keyframes notifBarShrink {
  from { width: 100%; }
  to { width: 0%; }
}

/* FAQ Accordion */
.faq-wrapper {
  min-height: 100vh;
  padding: 120px 24px 80px;
  background: var(--background);
}

.faq-container {
  max-width: 700px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.faq-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.faq-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.6;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--primary-color);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content p {
  padding: 0 20px 18px;
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-content strong {
  color: #fff;
}

/* Download Page */
.download-page {
  min-height: 100vh;
  padding: 120px 24px 80px;
  background: var(--background);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.download-hero {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.download-version {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 77, 106, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(255, 77, 106, 0.2);
  border-radius: 256px;
}

.download-hero h1 {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.download-hero p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.download-btn-wrap {
  margin-top: 8px;
}

.download-btn-wrap .btn {
  padding: 16px 36px;
  font-size: 16px;
}

.download-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 700px;
  width: 100%;
}

.dl-card {
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 28px;
  text-align: left;
  transition: border-color 0.25s ease;
}

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

.dl-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.dl-card-header svg {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.dl-card-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.dl-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dl-card li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.dl-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
}

.dl-card li strong {
  color: #fff;
}

.dl-card code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--primary-color);
}
