/* RESET & BASE STYLES */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --secondary: #10b981;
  --accent: #f59e0b;
  --danger: #ef4444;
  --success: #10b981;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-border: rgba(255, 255, 255, 0.1);
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition);
}

body.light-mode {
  --dark: #f8fafc;
  --dark-light: #e2e8f0;
  --light: #0f172a;
  --gray: #94a3b8;
  --gray-light: #475569;
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(0, 0, 0, 0.1);
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

/* BACKGROUND ANIMATION */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.gradient-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.circle-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -200px;
  right: -100px;
  animation: float 20s infinite alternate;
}

.circle-2 {
  width: 300px;
  height: 300px;
  background: var(--secondary);
  bottom: -150px;
  left: -100px;
  animation: float 25s infinite alternate-reverse;
}

.circle-3 {
  width: 200px;
  height: 200px;
  background: var(--accent);
  top: 50%;
  left: 70%;
  animation: float 15s infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -30px) scale(1.1); }
}

/* NAVBAR */
.navbar {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  font-size: 28px;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo h1 {
  font-size: 24px;
  font-weight: 700;
}

.logo span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  color: var(--gray);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.theme-toggle {
  display: flex;
  align-items: center;
  background: var(--dark-light);
  border: none;
  padding: 5px;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  width: 60px;
  height: 30px;
}

.theme-toggle i {
  font-size: 14px;
  color: var(--light);
  z-index: 2;
  position: relative;
  padding: 0 5px;
}

.theme-toggle .toggle-circle {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  transition: var(--transition);
}

body.light-mode .theme-toggle .toggle-circle {
  left: 33px;
}

/* HEADER SECTION */
.header-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.header-content {
  animation: slideInLeft 0.8s ease;
}

.main-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 15px;
}

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 30px;
  max-width: 500px;
}

.header-stats {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(99, 102, 241, 0.1);
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.stat i {
  color: var(--primary);
  font-size: 18px;
}

.stat span {
  font-size: 14px;
  font-weight: 500;
}

.header-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideInRight 0.8s ease;
}

.qr-animation {
  width: 250px;
  height: 250px;
  background: white;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.qr-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px;
}

.qr-row {
  flex: 1;
  display: flex;
  gap: 2px;
}

.qr-row::before {
  content: '';
  flex: 1;
  background: var(--dark);
  animation: pulse 2s infinite;
}

.qr-row:nth-child(odd)::before {
  animation-delay: 0.1s;
}

.qr-row:nth-child(even)::before {
  animation-delay: 0.2s;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* MAIN WRAPPER */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.panel {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  padding: 30px;
  box-shadow: var(--shadow);
}

.panel-header {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--card-border);
}

.panel-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.panel-header h2 i {
  color: var(--primary);
}

.panel-header p {
  color: var(--gray);
  font-size: 14px;
}

/* CONTENT TYPE SELECTOR */
.content-type-selector {
  margin-bottom: 25px;
}

.type-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.type-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 500;
}

.type-tab:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-color: var(--primary);
}

.type-tab.active {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary);
  border-color: var(--primary);
}

/* INPUT SECTIONS */
.input-section {
  display: none;
  animation: fadeIn 0.5s ease;
}

.input-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.input-header label {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.char-count {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--gray);
}

textarea {
  width: 100%;
  min-height: 150px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  color: var(--light);
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  resize: vertical;
  transition: var(--transition);
  margin-bottom: 15px;
}

textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.input-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.btn-clear {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: var(--transition);
}

.btn-clear:hover {
  background: rgba(239, 68, 68, 0.2);
}

.input-actions {
  display: flex;
  gap: 10px;
}

.btn-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--gray);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: var(--transition);
}

.btn-action:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-color: var(--primary);
}

/* FORM GROUPS */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--light);
  font-size: 14px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

/* CUSTOMIZATION SECTION */
.customization-section {
  margin: 30px 0;
  padding: 25px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
}

.btn-reset {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--gray);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  transition: var(--transition);
}

.btn-reset:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--light);
}

.customization-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.customization-item label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-container {
  position: relative;
}

.slider-container input[type="range"] {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
}

.slider-value {
  position: absolute;
  right: 0;
  top: -25px;
  background: rgba(99, 102, 241, 0.2);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--primary);
}

.customization-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.color-picker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-picker input[type="color"] {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
}

.color-picker input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-picker input[type="color"]::-webkit-color-swatch {
  border: 2px solid var(--card-border);
  border-radius: var(--radius-sm);
}

.color-value {
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 14px;
}

.logo-upload {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.btn-upload {
  flex: 1;
  background: rgba(99, 102, 241, 0.1);
  border: 2px dashed var(--primary);
  color: var(--primary);
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-upload:hover {
  background: rgba(99, 102, 241, 0.2);
}

.btn-remove {
  width: 40px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-remove:hover {
  background: rgba(239, 68, 68, 0.2);
}

.logo-preview {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: none;
}

.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.help-text {
  font-size: 12px;
  color: var(--gray);
  margin-top: 5px;
}

/* BUTTONS */
.btn-generate {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 18px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

.btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-generate::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40px;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(30deg);
  transition: left 0.5s;
}

.btn-generate:hover::after {
  left: 120%;
}

.btn-badge {
  background: white;
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-left: 10px;
}

/* QR PREVIEW */
.qr-preview-container {
  position: relative;
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 350px;
  border: 2px solid var(--card-border);
}

.qr-frame {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.qr-placeholder {
  text-align: center;
  color: #666;
  animation: pulsePlaceholder 2s infinite;
}

.qr-placeholder i {
  font-size: 60px;
  margin-bottom: 15px;
  color: #ddd;
}

.qr-placeholder p {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #888;
}

.qr-placeholder span {
  font-size: 14px;
  color: #aaa;
}

.qr-box {
  display: none;
  max-width: 100%;
}

@keyframes pulsePlaceholder {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.logo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  display: none;
  z-index: 2;
}

.logo-overlay img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scan-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius);
  z-index: 3;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: scan 2s infinite linear;
}

.scan-text {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  animation: fadeInOut 2s infinite;
}

@keyframes scan {
  0% { top: 0; }
  50% { top: 100%; }
  100% { top: 0; }
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* QR INFO */
.qr-info {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 25px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item i {
  color: var(--primary);
  font-size: 20px;
  margin-top: 2px;
}

.info-item h4 {
  font-size: 14px;
  margin-bottom: 5px;
}

.info-item p {
  font-size: 13px;
  color: var(--gray);
}

/* DOWNLOAD SECTION */
.download-section {
  margin-bottom: 25px;
}

.download-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.format-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.format-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 10px;
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
}

.format-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

.format-btn.active {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary);
  border-color: var(--primary);
}

.download-options {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.option-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-group label {
  font-size: 14px;
  color: var(--gray);
}

.option-group select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--light);
  font-size: 14px;
  min-width: 120px;
}

.btn-download {
  width: 100%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: white;
  border: none;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.btn-download:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.download-size {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  margin-left: 10px;
}

.share-options {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
}

.share-options p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 10px;
}

.share-buttons {
  display: flex;
  gap: 10px;
}

.share-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 10px;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-btn:nth-child(1):hover {
  background: #1877f2;
  color: white;
  border-color: #1877f2;
}

.share-btn:nth-child(2):hover {
  background: #1da1f2;
  color: white;
  border-color: #1da1f2;
}

.share-btn:nth-child(3):hover {
  background: #25d366;
  color: white;
  border-color: #25d366;
}

.share-btn:nth-child(4):hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* RECENT CODES */
.recent-codes h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.recent-list {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recent-empty {
  text-align: center;
  color: var(--gray);
  padding: 20px;
}

.recent-empty i {
  font-size: 40px;
  margin-bottom: 10px;
  opacity: 0.5;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.recent-item:hover {
  background: rgba(99, 102, 241, 0.1);
}

.recent-qr {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recent-content {
  flex: 1;
  overflow: hidden;
}

.recent-content p {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}

.recent-content span {
  font-size: 12px;
  color: var(--gray);
}

.recent-actions {
  display: flex;
  gap: 5px;
}

.recent-actions button {
  background: transparent;
  border: none;
  color: var(--gray);
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: var(--transition);
}

.recent-actions button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--light);
}

/* FEATURES SECTION */
.features-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.features-section h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.features-section > p {
  color: var(--gray);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--gray);
  font-size: 14px;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--success);
  color: white;
  padding: 15px 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  background: var(--danger);
}

.toast.info {
  background: var(--primary);
}

/* FOOTER */
.footer {
  background: var(--dark-light);
  border-top: 1px solid var(--card-border);
  padding: 30px 0;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-logo i {
  font-size: 24px;
  color: var(--primary);
}

.footer-logo h3 {
  font-size: 20px;
  font-weight: 700;
}

.footer-logo span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer > p {
  color: var(--gray);
  margin-bottom: 15px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .main-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .header-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  .header-stats {
    justify-content: center;
  }
  
  .main-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .nav-links a span {
    display: none;
  }
  
  .main-title {
    font-size: 2.2rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .type-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .customization-row {
    grid-template-columns: 1fr;
  }
  
  .format-selector {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .download-options {
    flex-direction: column;
  }
  
  .option-group {
    width: 100%;
  }
  
  .option-group select {
    flex: 1;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .panel {
    padding: 20px;
  }
  
  .main-title {
    font-size: 1.8rem;
  }
  
  .type-tabs {
    grid-template-columns: 1fr;
  }
  
  .header-stats {
    flex-direction: column;
  }
  
  .stat {
    width: 100%;
    justify-content: center;
  }
}