* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0a;
  color: #e5e5e5;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* Starry Background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 60px 70px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 50px 50px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 90px 10px, #fff, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.main-content {
  flex: 1;
  padding: 80px 64px 64px 64px;
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}

.header-section { margin-bottom: 64px; max-width: 900px; }

.header-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 24px;
}

.main-heading {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.main-heading .highlight { font-style: italic; color: #fff; }

.header-description {
  font-size: 17px;
  line-height: 1.6;
  color: #999;
  max-width: 680px;
  margin-bottom: 32px;
}

.header-actions { display: flex; gap: 16px; margin-bottom: 48px; }

.btn-primary {
  padding: 14px 28px;
  background: #fff;
  border: none;
  border-radius: 8px;
  color: #0a0a0a;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.proposals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1400px;
  margin-top: 48px;
}

.proposal-card {
  display: block; /* important for <a> */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.proposal-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.proposal-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.proposal-card:hover::before { transform: scaleX(1); }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.client-emoji { font-size: 36px; }

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
}
.status-dot.pending { background: #fbbf24; }
.status-dot.draft { background: #94a3b8; }
.status-dot.revision { background: #f87171; }

.client-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.proposal-type { font-size: 14px; color: #666; }

.card-content {
  filter: blur(4px);
  opacity: 0.5;
}

/* overlay for locked cards */
.blur-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.5);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.blur-text {
  color: #999;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* unlocked override */
.proposal-card.unlocked .card-content {
  filter: none;
  opacity: 1;
}

.proposal-card.locked { cursor: not-allowed; }

@media (max-width: 1024px) {
  .main-content { padding: 60px 32px 48px 32px; }
  .main-heading { font-size: 42px; }
  .proposals-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .main-content { padding: 60px 20px 40px 20px; }
  .main-heading { font-size: 36px; }
  .header-actions { flex-direction: column; }
  .btn-primary { width: 100%; justify-content: center; }
}
