:root {
  --bg-main: #0B0F19;
  --bg-card: #111827;
  --bg-card-hover: #1F2937;
  --border-color: #374151;
  --text-main: #F9FAFB;
  --text-muted: #9CA3AF;
  --primary: #6366F1;
  --primary-hover: #4F46E5;
  --accent: #10B981;
  --danger: #EF4444;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

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

body.dark-theme {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 90px;
}

.app-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header */
.app-header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.logo span {
  color: var(--primary);
}

.tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Form Styles */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.form-section {
  margin-bottom: 2rem;
}

.form-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.field-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;

}

input[type="text"],
input[type="url"],
textarea {
  width: 100%;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.package-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  position: relative;
}

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--border-color);
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
}

.badge-accent {
  background: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: var(--border-color);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-block {
  width: 100%;
}

.btn-link {
  background: transparent;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Result Card */
.result-card {
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.copy-box {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
  margin: 1.5rem auto 1rem;
}

.hidden {
  display: none !important;
}

/* Proposal Page Specifics */
.proposal-header {
  margin-bottom: 2.5rem;
}

.proposal-header .subtitle {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
}

.proposal-header h1 {
  font-size: 2.2rem;
  margin: 0.2rem 0;
}

.project-title {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.proposal-section {
  margin-bottom: 3rem;
}

.proposal-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

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

@media (min-width: 768px) {
  .videos-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  }
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  border: 1px solid var(--border-color);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

@media (min-width: 640px) {
  .packages-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pkg-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pkg-card:hover {
  border-color: var(--text-muted);
}

.pkg-card.selected {
  border-color: var(--primary);
  background-color: var(--bg-card-hover);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.pkg-card.selected .select-btn {
  background-color: var(--primary);
  color: #fff;
}

.pkg-header {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.pkg-header h4 {
  font-size: 1.2rem;
}

.pkg-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 0.25rem;
}

.pkg-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.pkg-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

.pkg-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Sticky Bottom Bar */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 1rem;
  z-index: 100;
}

.sticky-bar-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sticky-info {
  display: flex;
  flex-direction: column;
}

.selected-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.selected-summary {
  font-size: 1rem;
}

.center-screen {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

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

/* Mobile & Word Wrap Safeguards */
body, h1, h2, h3, h4, p, span, li, a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 480px) {
  .sticky-bar-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .sticky-info {
    margin-bottom: 0.5rem;
  }
  .cta-btn {
    width: 100%;
  }
}