*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: #d4a8d4; color: #4a1a4a; }

body {
  font-family: 'Red Hat Text', sans-serif;
  background: linear-gradient(135deg, #f7f7f8 0%, #e8e8ea 100%);
  color: #212121;
  min-height: 100vh;
}

/* ── NAV ── */
.nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e4e4e7;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-brand:hover { color: #ee0000; }
.nav-title {
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #212121;
}

/* ── LAYOUT ── */
.page { max-width: 1200px; margin: 0 auto; padding: 40px 28px 80px; }

/* ── HEADER & STATS ── */
.header-section {
  margin-bottom: 48px;
  animation: fadeInUp 0.6s ease-out;
}
.header-content { margin-bottom: 32px; }
.page-title {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #212121 0%, #666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-subtitle {
  color: #666;
  font-size: 1.05rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.stat-card {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: height 0.3s;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.stat-card:hover::before { height: 6px; }

.stat-card--total::before { background: linear-gradient(90deg, #9b4d9b, #b570b5); }
.stat-card--submitted::before { background: linear-gradient(90deg, #1a5fb4, #3584e4); }
.stat-card--accepted::before { background: linear-gradient(90deg, #26a269, #33d17a); }
.stat-card--pending::before { background: linear-gradient(90deg, #e5a50a, #f6d32d); }

.stat-value {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  color: #888;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── ACTION BAR ── */
.action-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

/* ── BUTTONS ── */
.btn {
  font-family: 'Red Hat Text', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  text-decoration: none;
}
.btn--primary {
  background: linear-gradient(135deg, #ee0000, #cc0000);
  color: #fff;
  box-shadow: 0 4px 12px rgba(238, 0, 0, 0.2);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(238, 0, 0, 0.3);
}
.btn--secondary {
  background: #fff;
  color: #212121;
  border: 1px solid #e4e4e7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.btn--secondary:hover {
  background: #f7f7f8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ── CFP CARDS GRID ── */
.cfp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.cfp-card {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: scaleIn 0.4s ease-out both;
}
.cfp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  transition: height 0.3s;
}
.cfp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.cfp-card:hover::before { height: 8px; }

/* Status-specific colors */
.cfp-card--not-started::before { background: linear-gradient(90deg, #666, #888); }
.cfp-card--in-progress::before { background: linear-gradient(90deg, #e5a50a, #f6d32d); }
.cfp-card--submitted::before { background: linear-gradient(90deg, #1a5fb4, #3584e4); }
.cfp-card--accepted::before { background: linear-gradient(90deg, #26a269, #33d17a); }
.cfp-card--rejected::before { background: linear-gradient(90deg, #c01c28, #e01b24); }
.cfp-card--waitlisted::before { background: linear-gradient(90deg, #9b4d9b, #b570b5); }

.cfp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.cfp-card-title {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}
.cfp-card-date {
  color: #666;
  font-size: 0.9rem;
  font-weight: 600;
}
.cfp-card-status {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.status--not-started { background: #f0f0f0; color: #666; }
.status--in-progress { background: #fff4e6; color: #c77700; }
.status--submitted { background: #e6f2ff; color: #0066cc; }
.status--accepted { background: #e6f9f0; color: #00994d; }
.status--rejected { background: #ffe6e6; color: #cc0000; }
.status--waitlisted { background: #f3e8f3; color: #9b4d9b; }

.cfp-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.cfp-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666;
  font-size: 0.9rem;
}
.cfp-meta-icon {
  width: 18px;
  height: 18px;
  opacity: 0.6;
}

.cfp-card-talk {
  margin-bottom: 16px;
}
.cfp-card-talk-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #212121;
}
.cfp-card-talk-abstract {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cfp-card-footer {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.btn-icon {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-icon svg {
  width: 16px;
  height: 16px;
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}
.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}
.empty-state h3 {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.empty-state p {
  color: #666;
  margin-bottom: 24px;
}

/* ── MODAL ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.active { display: flex; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s;
}
.modal-content {
  position: relative;
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-content--ai { max-width: 800px; max-height: 80vh; }

.modal-header {
  padding: 28px 32px;
  border-bottom: 1px solid #e4e4e7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h2 {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
}
.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #888;
  transition: color 0.2s;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { color: #212121; }

.modal-body {
  padding: 32px;
  overflow-y: auto;
  max-height: calc(90vh - 180px);
}

/* ── FORM ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #212121;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Red Hat Text', sans-serif;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ee0000;
  box-shadow: 0 0 0 3px rgba(238, 0, 0, 0.1);
}
.form-group textarea {
  resize: vertical;
  font-family: 'Red Hat Text', sans-serif;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

/* ── AI CHAT ── */
.ai-chat {
  height: 400px;
  overflow-y: auto;
  padding: 20px;
  background: #f7f7f8;
  border-radius: 16px;
  margin-bottom: 20px;
}
.ai-message {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  animation: slideInLeft 0.3s ease-out;
}
.ai-message--user {
  flex-direction: row-reverse;
  animation: slideInRight 0.3s ease-out;
}
.ai-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ee0000, #cc0000);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.ai-message--user .ai-avatar {
  background: linear-gradient(135deg, #9b4d9b, #b570b5);
}
.ai-content {
  background: #fff;
  padding: 16px 20px;
  border-radius: 16px;
  max-width: 85%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ai-message--user .ai-content {
  background: linear-gradient(135deg, #f3e8f3, #e8d4e8);
}
.ai-content p {
  margin-bottom: 12px;
}
.ai-content p:last-child {
  margin-bottom: 0;
}
.ai-content ul {
  margin-left: 20px;
}
.ai-content li {
  margin-bottom: 6px;
}

.ai-input-form {
  display: flex;
  gap: 12px;
}
.ai-input-form input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: 'Red Hat Text', sans-serif;
}
.ai-input-form input:focus {
  outline: none;
  border-color: #ee0000;
  box-shadow: 0 0 0 3px rgba(238, 0, 0, 0.1);
}

/* ── ANIMATIONS ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cfp-grid {
    grid-template-columns: 1fr;
  }
  .action-bar {
    flex-direction: column;
  }
}
