/* UniBool Inc. — Support System CSS — 707 ✨ */

:root {
  --bg-dark: #0a0a0f;
  --bg-card: rgba(20, 20, 30, 0.8);
  --bg-card-hover: rgba(30, 30, 45, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-input: rgba(15, 15, 25, 0.9);
  --gold-primary: #d4af37;
  --gold-light: #f4e4a6;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f4e4a6 50%, #d4af37 100%);
  --bronze: #cd7f32;
  --silver: #c0c0c0;
  --gold: #ffd700;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  --success: #4ade80;
  --error: #f87171;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.3);
  --shadow-gold: 0 4px 30px rgba(212, 175, 55, 0.2);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 20% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon { font-size: 1.5rem; }
.logo-text { font-weight: 600; font-size: 1.1rem; }
.logo-text span { color: var(--gold-primary); }

.nav { display: flex; gap: 0.5rem; }

.nav-link {
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.nav-link:hover { color: var(--text-primary); background: var(--bg-glass); }
.nav-link.active { color: var(--gold-primary); background: rgba(212, 175, 55, 0.1); }

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 0.85rem;
}

.user-badge.gold { border-color: var(--gold); background: rgba(255, 215, 0, 0.1); }
.user-badge.silver { border-color: var(--silver); background: rgba(192, 192, 192, 0.1); }
.user-badge.bronze { border-color: var(--bronze); background: rgba(205, 127, 50, 0.1); }

/* Main */
.main { position: relative; z-index: 1; padding-top: 100px; min-height: 100vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; }

/* Hero */
.hero { text-align: center; padding: 3rem 0 4rem; }

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* Cards */
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin: 2rem 0; }

.action-card {
  position: relative;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.action-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.action-card:hover::before { transform: scaleX(1); }
.action-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.action-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.action-desc { color: var(--text-secondary); font-size: 0.95rem; }
.action-arrow { position: absolute; bottom: 1.5rem; right: 1.5rem; color: var(--text-muted); font-size: 1.2rem; }
.action-card:hover .action-arrow { color: var(--gold-primary); }

/* Info */
.info-section { margin: 4rem 0; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

.info-card {
  padding: 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.info-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.info-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.info-text { font-size: 0.9rem; color: var(--text-secondary); }

/* Badges */
.badges-section { text-align: center; padding: 3rem 0; }
.badges-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.badges-subtitle { color: var(--text-secondary); margin-bottom: 2rem; }
.badges-grid { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  min-width: 140px;
}

.badge-item.bronze { border-color: var(--bronze); box-shadow: 0 4px 20px rgba(205, 127, 50, 0.3); }
.badge-item.silver { border-color: var(--silver); box-shadow: 0 4px 20px rgba(192, 192, 192, 0.3); }
.badge-item.gold { border-color: var(--gold); box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3); }
.badge-icon { font-size: 2.5rem; }
.badge-name { font-weight: 600; font-size: 1.1rem; }
.badge-desc { font-size: 0.8rem; color: var(--text-muted); text-align: center; }

/* Footer */
.footer { padding: 2rem; text-align: center; border-top: 1px solid var(--border-subtle); margin-top: 4rem; }
.footer-text { color: var(--text-muted); font-size: 0.85rem; }
.footer-text a { color: var(--gold-primary); text-decoration: none; }
.footer-text a:hover { text-decoration: underline; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), var(--shadow-gold);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.modal-close:hover { background: var(--bg-glass); color: var(--text-primary); }
.modal-title { font-size: 1.5rem; font-weight: 600; text-align: center; margin-bottom: 0.5rem; }
.modal-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 2rem; font-size: 0.95rem; }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 0.5rem; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 150px; resize: vertical; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 3rem;
  cursor: pointer;
}

.form-select option { background: var(--bg-dark); color: var(--text-primary); }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }
.form-error { color: var(--error); font-size: 0.85rem; margin-top: 0.5rem; display: none; }
.form-error.visible { display: block; }
.custom-type-group { display: none; }
.custom-type-group.visible { display: block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  width: 100%;
  background: var(--gold-gradient);
  color: var(--bg-dark);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-secondary:hover { border-color: var(--gold-primary); color: var(--gold-primary); }

.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { background: #ef4444; }

.btn-loading { position: relative; color: transparent !important; }
.btn-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: var(--bg-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Screenshots */
.screenshot-upload { margin: 1.5rem 0; }
.screenshot-label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 0.75rem; }
.screenshot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.screenshot-zone {
  position: relative;
  aspect-ratio: 4/3;
  border: 2px dashed var(--border-subtle);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  overflow: hidden;
  background: var(--bg-glass);
}

.screenshot-zone:hover { border-color: var(--gold-primary); background: rgba(212, 175, 55, 0.05); }
.screenshot-zone.has-image { border-style: solid; border-color: var(--success); }
.screenshot-zone.required { border-color: var(--gold-primary); }

.screenshot-zone.required::after {
  content: 'Requis';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: var(--gold-primary);
  color: var(--bg-dark);
  border-radius: 4px;
  font-weight: 600;
}

.screenshot-zone.has-image::after { display: none; }
.screenshot-icon { font-size: 2rem; margin-bottom: 0.5rem; color: var(--text-muted); }
.screenshot-text { font-size: 0.75rem; color: var(--text-muted); text-align: center; }
.screenshot-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.screenshot-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 24px;
  height: 24px;
  background: var(--error);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.screenshot-zone:hover .screenshot-remove { opacity: 1; }
.screenshot-input { display: none; }

/* Account */
.account-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  margin-bottom: 2rem;
}

.account-avatar {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: var(--bg-glass);
  border-radius: 50%;
}

.account-info h2 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.account-info p { color: var(--text-muted); font-size: 0.9rem; }

.account-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 2rem 0; }

.stat-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  text-align: center;
}

.stat-value { font-size: 2rem; font-weight: 700; color: var(--gold-primary); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

.account-section { margin: 2rem 0; }
.account-section-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }

.ticket-list { display: flex; flex-direction: column; gap: 0.75rem; }

.ticket-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.ticket-info { display: flex; align-items: center; gap: 1rem; }
.ticket-icon { font-size: 1.25rem; }
.ticket-title { font-weight: 500; }
.ticket-date { font-size: 0.8rem; color: var(--text-muted); }

.ticket-status {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.ticket-status.resolved { background: rgba(74, 222, 128, 0.2); color: #4ade80; }
.ticket-status.new { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }

/* GDPR */
.gdpr-section {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(248, 113, 113, 0.05);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: 16px;
}

.gdpr-title { color: var(--error); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.gdpr-text { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* Empty */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.5; }

/* Loading */
.loading-spinner { display: flex; align-items: center; justify-content: center; padding: 3rem; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border-subtle); border-top-color: var(--gold-primary); border-radius: 50%; animation: spin 0.8s linear infinite; }

/* Toast */
.toast-container { position: fixed; top: 100px; right: 1rem; z-index: 1001; display: flex; flex-direction: column; gap: 0.5rem; }

.toast {
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.3s ease;
}

.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--error); }

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

.fade-in { animation: fadeIn 0.5s ease forwards; }

/* Responsive */
@media (max-width: 768px) {
  .header { padding: 0.75rem 1rem; }
  .nav { display: none; }
  .container { padding: 1rem; }
  .action-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: 1fr 1fr; }
  .account-header { flex-direction: column; text-align: center; }
}
