:root {
  --bg-color: #F4F4F4;
  --primary-green: #16a34a;
  --primary-green-dark: #15803d;
  --border-gray: #E5E7EB;
  --text-main: #111827;
  --text-muted: #4B5563;
  --white: #FFFFFF;
  
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

/* Material Symbols styling */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 100% 48px;
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-main);
}

.logo svg {
  width: 24px;
  height: 24px;
  fill: #FFD700;
}

.user-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-google {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--text-main);
  border: 2px solid #000;
  box-shadow: 0 4px 0 #000;
  transition: transform 0.1s, box-shadow 0.1s;
  cursor: pointer;
  white-space: nowrap;
}

.btn-google:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #000;
}

.btn-google:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #000;
}

.btn-google svg {
  width: 18px;
  height: 18px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-credits {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #f59e0b;
  box-shadow: 0 4px 0 #d97706;
  transition: transform 0.1s, box-shadow 0.1s;
  cursor: pointer;
}

.btn-credits:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #d97706;
}

.btn-credits:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #d97706;
}

.btn-credits .material-symbols-outlined {
  font-size: 18px;
  color: #f59e0b;
}

.credits-count {
  font-weight: 900;
  font-size: 16px;
}

.user-avatar-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-gray);
  object-fit: cover;
}

.user-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-gray);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-logout:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

.btn-logout .material-symbols-outlined {
  font-size: 18px;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px 64px 24px;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s var(--ease-out);
}

.step.active .step-indicator {
  background: var(--primary-green);
  border-color: var(--primary-green-dark);
  color: var(--white);
  box-shadow: 0 4px 0 var(--primary-green-dark);
  transform: translateY(-2px);
}

.step.completed .step-indicator {
  background: var(--white);
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.step-number { display: block; }
.step-check { display: none; font-size: 18px; }
.step.completed .step-number { display: none; }
.step.completed .step-check { display: block; }

.step-label {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-muted);
}

.step.active .step-label {
  color: var(--text-main);
}

.step-line {
  width: 48px;
  height: 2px;
  background: var(--border-gray);
  border-radius: 1px;
}

.panel {
  display: none;
  flex: 1;
  animation: fadeIn 0.4s var(--ease-out);
}

.panel.active {
  display: flex;
  flex-direction: column;
}

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

.panel-header {
  text-align: center;
  margin-bottom: 40px;
}

.panel-header h1 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 48px;
  letter-spacing: -2px;
  color: var(--text-main);
  margin-bottom: 12px;
}

.panel-header p {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 500;
}

.upload-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.upload-card {
  width: 100%;
  max-width: 560px;
}

.upload-zone {
  position: relative;
  background: var(--white);
  border: 3px solid #000;
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  box-shadow: 8px 8px 0 #000;
}

.upload-zone:hover,
.upload-zone.dragover {
  background: #f0fdf4;
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 #000;
}

.upload-zone:active {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 #000;
}

.pdf-illustration {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  position: relative;
}

.pdf-illustration svg {
  filter: drop-shadow(4px 4px 0 rgba(0,0,0,0.1));
}

.pdf-label {
  position: absolute;
  bottom: 0;
  right: calc(50% - 35px);
  background: #ef4444;
  color: white;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 12px;
  padding: 2px 8px;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  transform: rotate(-5deg);
}

.upload-icon {
  font-size: 32px;
  color: #000;
  margin-bottom: 8px;
  opacity: 0.5;
}

.upload-zone h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}

.upload-zone p {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
}

.upload-benefits {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 900px;
}

.benefit-item {
  background: var(--white);
  border: 3px solid #000;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: 6px 6px 0 #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  transition: transform 0.2s;
}

.benefit-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #000;
}

.benefit-icon-wrapper {
  width: 56px;
  height: 56px;
  background: #FFD700;
  border: 3px solid #000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0 #000;
}

.benefit-icon {
  font-size: 32px !important;
  color: #000;
}

.benefit-item h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.benefit-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 500;
}

.upload-progress {
  margin-top: 24px;
  padding: 24px;
  background: var(--white);
  border: 3px solid #000;
  border-radius: var(--radius-md);
  box-shadow: 6px 6px 0 #000;
  text-align: center;
}

.progress-bar {
  height: 12px;
  background: #eee;
  border: 2px solid #000;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: #FFD700;
  animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
  0% { width: 0%; margin-left: 0; }
  50% { width: 60%; margin-left: 20%; }
  100% { width: 0%; margin-left: 100%; }
}

.progress-text {
  font-weight: 600;
  color: var(--text-main);
}

.btn {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 16px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.1s, box-shadow 0.1s;
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--primary-green);
  color: white;
  border: 1px solid var(--primary-green-dark);
  box-shadow: 0 6px 0 var(--primary-green-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--primary-green-dark);
}

.btn-primary:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--primary-green-dark);
}

.btn-secondary {
  background-color: white;
  color: var(--text-main);
  border: 1px solid #D1D5DB;
  box-shadow: 0 6px 0 #D1D5DB;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #D1D5DB;
}

.btn-secondary:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #D1D5DB;
}

.btn-text {
  background: transparent;
  color: var(--text-muted);
  box-shadow: none;
}

.btn-text:hover {
  color: var(--text-main);
  background: rgba(0,0,0,0.05);
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border-gray);
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.btn-icon:hover {
  background: var(--bg-color);
  color: var(--text-main);
  transform: scale(1.1);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.template-card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  text-align: center;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.template-card:hover {
  transform: scale(1.02) translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  border-color: var(--primary-green);
}

.template-card.selected {
  border-color: var(--primary-green);
  border-width: 2px;
  background: #f0fdf4;
}

.template-card.selected::after {
  content: '✓';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  background: var(--primary-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.template-card.dark-mode {
  background: #1f2937;
  border-color: #374151;
}

.template-card.dark-mode h3 {
  color: white;
}

.template-card.dark-mode p {
  color: #9ca3af;
}

.template-preview {
  height: 120px;
  background: var(--bg-color);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}

.template-card.dark-mode .template-preview {
  background: #111827;
}

.template-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.template-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

.template-mode {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 20px;
  background: var(--bg-color);
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: 0.5px;
}

.template-card.dark-mode .template-mode {
  background: #374151;
  color: #d1d5db;
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 24px;
}

.preview-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gray);
  overflow: hidden;
  height: calc(100vh - 200px);
  min-height: 600px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-gray);
  background: #f9fafb;
}

.preview-title {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.share-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-color);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-sm);
  padding: 4px 6px 4px 12px;
  max-width: 280px;
}

.share-inline input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--text-muted);
  outline: none;
  padding: 4px 0;
}

.btn-share-copy {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border-gray);
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-share-copy:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
}

.btn-share-copy.copied {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
}

.btn-share-copy .material-symbols-outlined {
  font-size: 18px;
}

.preview-frame-container {
  flex: 1;
  position: relative;
  background: #eee;
}

#preview-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}

.generation-status {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #ecfdf5;
  border: 1px solid #10b981;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #065f46;
  font-weight: 700;
  font-size: 15px;
}

.status-indicator .spinning {
  animation: spin 1s linear infinite;
}

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

.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  display: flex;
  flex-direction: column;
}

.fullscreen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--text-main);
  color: white;
}

.fullscreen-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
}

.fullscreen-header .btn-icon {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
}

.fullscreen-header .btn-icon:hover {
  background: rgba(255,255,255,0.2);
}

#fullscreen-frame {
  flex: 1;
  width: 100%;
  border: none;
}

.snackbar {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2001;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: slideUp 0.3s var(--ease-out);
}

@keyframes slideUp {
  from { transform: translateX(-50%) translateY(100%); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.snackbar-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  transition: color 0.2s;
}

.snackbar-close:hover {
  color: white;
}

.hidden {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s var(--ease-out);
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-gray);
}

.modal-header h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -1px;
}

.modal-close {
  background: transparent;
  border: none;
}

.modal-body {
  padding: 32px;
}

.modal-description {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
  font-size: 16px;
}

.credits-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.credits-preset {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  background: var(--bg-color);
  border: 2px solid var(--border-gray);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.credits-preset:hover {
  border-color: var(--primary-green);
  transform: translateY(-2px);
}

.credits-preset.selected {
  background: #f0fdf4;
  border-color: var(--primary-green);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

.credits-amount {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: var(--text-main);
  line-height: 1;
}

.credits-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.credits-price {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--primary-green);
}

.credits-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

.credits-custom {
  margin-bottom: 28px;
}

.credits-custom label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.custom-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-color);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
}

.input-prefix {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-muted);
}

.custom-input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 600;
  outline: none;
  min-width: 80px;
}

.input-suffix {
  font-size: 15px;
  color: var(--text-muted);
}

.input-suffix span {
  font-weight: 700;
  color: var(--primary-green);
}

.credits-summary {
  background: var(--bg-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-muted);
}

.summary-row span:last-child {
  font-weight: 700;
  color: var(--text-main);
}

.summary-row.total {
  border-top: 1px solid var(--border-gray);
  margin-top: 8px;
  padding-top: 16px;
  font-size: 18px;
}

.summary-row.total span:last-child {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: var(--primary-green);
}

.modal-body .upload-benefits {
  margin-top: 32px;
  gap: 16px;
}

.modal-body .benefit-item {
  border: 1px solid var(--border-gray);
  box-shadow: none;
  padding: 20px;
  gap: 12px;
}

.modal-body .benefit-item:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-green);
}

.modal-body .benefit-icon-wrapper {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-gray);
  box-shadow: none;
}

.modal-body .benefit-icon {
  font-size: 26px !important;
}

.modal-body .benefit-item h4 {
  font-size: 16px;
}

.modal-body .benefit-item p {
  font-size: 13px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 20px 32px;
  border-top: 1px solid var(--border-gray);
  background: #f9fafb;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

@media (max-width: 768px) {
  .modal {
    max-width: 100%;
    margin: 0 16px;
  }
  
  .modal-body {
    padding: 24px;
  }
  
  .modal-body .upload-benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .credits-selector {
    grid-template-columns: 1fr;
  }
  
  .credits-preset {
    flex-direction: row;
    justify-content: space-between;
    padding: 14px 18px;
  }
  
  .credits-amount {
    font-size: 26px;
  }
  
  .credits-label {
    margin-bottom: 0;
    margin-left: 4px;
  }
  
  .modal-footer {
    flex-direction: column;
    padding: 16px 24px;
  }
  
  .modal-footer .btn {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header {
    padding: 24px 16px;
  }
  
  .user-name {
    display: none;
  }
  
  .btn-google {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .btn-google svg {
    width: 16px;
    height: 16px;
  }
  
  .btn-credits {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .panel-header h1 {
    font-size: 32px;
    letter-spacing: -1px;
  }
  
  .stepper {
    gap: 8px;
  }
  
  .step-label {
    display: none;
  }
  
  .step-line {
    width: 24px;
  }
  
  .preview-section {
    height: calc(100vh - 250px);
    min-height: 450px;
  }
  
  .upload-benefits {
    grid-template-columns: 1fr;
    margin-top: 48px;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .template-grid {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-large {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .share-inline {
    max-width: 180px;
  }
  
  .share-inline input {
    font-size: 11px;
  }
}
