#realPreviewSection {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

#realPreviewSection img {
  width: 100%;
  height: auto;
  display: block;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f8f9fa;
  min-height: 100vh;
  color: #1a1a1a;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 1.25rem 2.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar-user span {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Login */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.login-card {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(0,0,0,0.05);
}

.login-card h1 {
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  font-weight: 400;
}

/* Forms */
.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 500;
  color: #374151;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: #fafafa;
}

.form-group textarea {
  resize: vertical;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #1a1a1a;
  background: white;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.05);
}

.help-text {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
  line-height: 1.4;
}

/* Buttons */
.btn {
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  width: 100%;
  box-shadow: 0 2px 8px rgba(26,26,26,0.15);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,26,26,0.2);
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.btn-small {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 8px;
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(220,38,38,0.15);
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220,38,38,0.2);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.dashboard-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a1a1a 0%, #6b7280 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.dashboard-card:hover::before {
  transform: scaleX(1);
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.1);
}

.dashboard-card h2 {
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dashboard-card p {
  color: #6b7280;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Page Header */
.page-header {
  background: white;
  padding: 2rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border: 1px solid rgba(0,0,0,0.05);
}

.page-header h1 {
  color: #1a1a1a;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Data List */
.data-list {
  display: grid;
  gap: 1.25rem;
}

.data-card {
  background: white;
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.data-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.data-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f3f4f6;
}

.data-card-header h3 {
  color: #1a1a1a;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.data-card-actions {
  display: flex;
  gap: 0.75rem;
}

.data-card-body p {
  margin-bottom: 0.85rem;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.6;
}

.data-card-body p strong {
  color: #1a1a1a;
  font-weight: 600;
}

.data-card-body p:last-child {
  margin-bottom: 0;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
  padding: 1rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  width: 90%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid rgba(0,0,0,0.05);
  animation: slideUp 0.3s ease;
  margin: auto;
  position: relative;
}

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

.modal-content h2 {
  color: #1a1a1a;
  margin-bottom: 2rem;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.close {
  float: right;
  font-size: 1.5rem;
  font-weight: 300;
  cursor: pointer;
  color: #9ca3af;
  transition: color 0.2s ease;
  line-height: 1;
}

.close:hover {
  color: #1a1a1a;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.form-actions .btn {
  flex: 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Poster Editor */
.modal-large {
  max-width: 900px;
}

.poster-editor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.poster-preview-container {
  position: relative;
  background: #f9fafb;
  border-radius: 12px;
  padding: 0;
  border: 2px dashed #e5e7eb;
  display: block;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

#posterCanvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  position: relative;
}

.name-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.trim-overlay {
  position: absolute;
  left: 0;
  width: 100%;
  border: 2px dashed rgba(59, 130, 246, 0.6);
  background: rgba(59, 130, 246, 0.08);
  pointer-events: none;
  border-radius: 8px;
  box-sizing: border-box;
  z-index: 5;
}

#nameText {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  line-height: 1;
}

.poster-controls {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.control-group {
  margin-bottom: 1.5rem;
}

.control-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.control-group input[type="range"] {
  width: calc(100% - 50px);
  height: 6px;
  background: #e5e7eb;
  border-radius: 10px;
  outline: none;
  margin-right: 10px;
  vertical-align: middle;
}

.control-group input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  background: #1a1a1a;
  border-radius: 50%;
  cursor: pointer;
}

.control-group input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #1a1a1a;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.control-group span {
  display: inline-block;
  min-width: 35px;
  text-align: right;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  vertical-align: middle;
}

.control-group input[type="color"] {
  width: 100%;
  height: 45px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  background: white;
}

.control-group input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  background: white;
}

.control-group input[type="text"]:focus {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.05);
}

/* Bulk Send Card */
.bulk-send-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  margin-top: 2rem;
  border: 1px solid rgba(0,0,0,0.05);
}

/* CSV Preview */
.csv-preview {
  background: #f9fafb;
  padding: 1.25rem;
  border-radius: 10px;
  margin: 1.25rem 0;
  max-height: 220px;
  overflow-y: auto;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Courier New', monospace;
  font-size: 0.85rem;
  border: 1px solid #e5e7eb;
}

.csv-row {
  padding: 0.4rem 0;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
}

.csv-row:last-child {
  border-bottom: none;
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin: 1.25rem 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a1a1a 0%, #4b5563 100%);
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(26,26,26,0.3);
}

/* Utility Classes */
.loading {
  text-align: center;
  color: #6b7280;
  padding: 3rem;
  font-size: 0.95rem;
}

.empty-state {
  text-align: center;
  color: #9ca3af;
  padding: 4rem 2rem;
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.05);
  font-size: 0.95rem;
}

.error-message {
  background: #fef2f2;
  color: #991b1b;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  border: 1px solid #fecaca;
  font-size: 0.9rem;
}

.text-muted {
  color: #9ca3af;
  font-size: 0.875rem;
}

.text-center {
  text-align: center;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-user {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
  }
  
  .page-header h1 {
    font-size: 1.5rem;
  }
  
  .data-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .form-actions {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .poster-editor {
    grid-template-columns: 1fr;
  }

  .modal-large {
    max-width: 95%;
  }
  
  .login-card {
    padding: 2rem;
  }
  
  .dashboard-card {
    padding: 2rem;
  }
  
  .modal-content {
    padding: 2rem;
    width: 95%;
  }
}
