/* BreakCheck Shared Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-dark: #0a0b0d;
  --bg-card: #12141a;
  --bg-card-hover: #1a1d26;
  --accent: #ff4d4d;
  --accent-glow: rgba(255, 77, 77, 0.15);
  --green: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.15);
  --yellow: #eab308;
  --yellow-glow: rgba(234, 179, 8, 0.12);
  --text-primary: #f0f0f0;
  --text-secondary: #8a8f9e;
  --text-dim: #555a6b;
  --border: #1e2130;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAV */
nav {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 4px;
  display: block;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: #e63e3e;
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 77, 77, 0.2);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* CARDS */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 77, 77, 0.15);
}
.card a { color: inherit; text-decoration: none; }

/* SELLER CARDS */
.seller-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.seller-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.seller-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 77, 77, 0.2);
  transform: translateY(-2px);
  text-decoration: none;
}
.seller-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.seller-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  font-family: 'Space Grotesk', sans-serif;
  color: white;
  flex-shrink: 0;
}
.seller-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.seller-info .rating-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.seller-platforms {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* STARS */
.stars {
  color: var(--yellow);
  font-size: 1rem;
  letter-spacing: 1px;
}
.stars-lg {
  font-size: 1.4rem;
  letter-spacing: 2px;
}
.star-empty {
  color: var(--text-dim);
}

/* PLATFORM BADGES */
.platform-tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* RATING PILLS */
.rating-pill {
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  padding: 6px 14px;
  border-radius: 8px;
}
.rating-pill strong {
  color: var(--text-primary);
}

/* FORMS */
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.form-group .form-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 4px;
}
input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}
textarea {
  resize: vertical;
  min-height: 120px;
}
select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a8f9e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* STAR RATING INPUT */
.star-input {
  display: flex;
  gap: 4px;
}
.star-input .star-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-dim);
  transition: color 0.15s, transform 0.15s;
  padding: 0;
  line-height: 1;
}
.star-input .star-btn:hover {
  transform: scale(1.15);
}
.star-input .star-btn.active {
  color: var(--yellow);
}
.star-input-sm .star-btn {
  font-size: 1.4rem;
}

/* CATEGORY RATINGS ROW */
.category-ratings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.category-rating {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.category-rating label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* REVIEW CARDS */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}
.review-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.review-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Space Grotesk', sans-serif;
  color: white;
  flex-shrink: 0;
}
.review-card-meta {
  flex: 1;
}
.review-card-meta h4 {
  font-size: 0.95rem;
  font-weight: 600;
}
.review-card-meta span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.review-card-ratings {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.review-card-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}
.review-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

/* SELLER PROFILE HEADER */
.profile-header {
  padding: 48px 0 32px;
}
.profile-top {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 28px;
  font-family: 'Space Grotesk', sans-serif;
  color: white;
  flex-shrink: 0;
}
.profile-info h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.profile-info .profile-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.profile-info .profile-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-info .profile-rating .rating-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}
.profile-info .review-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.profile-bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 600px;
}

/* CATEGORY AVERAGES */
.category-averages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.cat-avg {
  text-align: center;
}
.cat-avg .cat-score {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.cat-avg .cat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* SEARCH */
.search-bar {
  display: flex;
  gap: 12px;
  max-width: 600px;
}
.search-bar input {
  flex: 1;
}
.search-bar .btn {
  flex-shrink: 0;
}

/* PAGE HEADER */
.page-header {
  padding: 48px 0 32px;
}
.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* SECTION */
.section {
  padding: 32px 0;
}
.section-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  margin-top: 80px;
}
footer p {
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* LOADING */
.loading {
  text-align: center;
  padding: 60px 0;
  color: var(--text-secondary);
}
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-secondary);
}
.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.empty-state h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.empty-state p {
  margin-bottom: 24px;
}

/* ALERT */
.alert {
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.alert-success {
  background: var(--green-glow);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--green);
}
.alert-error {
  background: var(--accent-glow);
  border: 1px solid rgba(255, 77, 77, 0.2);
  color: var(--accent);
}

/* PLATFORM ENTRY (add seller form) */
.platform-entries {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.platform-entry {
  display: flex;
  gap: 10px;
  align-items: center;
}
.platform-entry select {
  width: 160px;
  flex-shrink: 0;
}
.platform-entry input {
  flex: 1;
}
.platform-entry .remove-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: color 0.2s;
}
.platform-entry .remove-btn:hover {
  color: var(--accent);
}

/* VERIFIED PURCHASE BADGE */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--green-glow);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.verified-shield {
  font-size: 0.8rem;
  line-height: 1;
}
.review-card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.review-card-verified {
  border-color: rgba(34, 197, 94, 0.15);
}

/* PROOF OF PURCHASE IMAGE IN REVIEW */
.review-proof-image {
  margin: 12px 0;
  border-radius: 10px;
  overflow: hidden;
  max-width: 280px;
}
.review-proof-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.2s;
}
.review-proof-image img:hover {
  opacity: 0.85;
}

/* PROOF UPLOAD AREA */
.proof-upload-area {
  border: 2px dashed var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.proof-upload-area.drag-over {
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.05);
}
.proof-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}
.proof-placeholder:hover {
  background: rgba(255, 255, 255, 0.02);
}
.proof-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}
.proof-placeholder p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.proof-placeholder span {
  color: var(--text-dim);
  font-size: 0.78rem;
}
.proof-preview {
  position: relative;
  padding: 16px;
}
.proof-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.proof-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.proof-remove:hover {
  background: var(--accent);
}
.proof-verified-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 500;
}
.verified-icon {
  font-size: 1rem;
}

/* PROOF IMAGE LIGHTBOX MODAL */
.proof-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proof-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}
.proof-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1001;
}
.proof-modal-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}
.proof-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.proof-modal-close:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .category-averages {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-ratings {
    grid-template-columns: 1fr;
  }
  .seller-grid {
    grid-template-columns: 1fr;
  }
  .profile-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .profile-info .profile-meta {
    justify-content: center;
  }
  .nav-links {
    gap: 16px;
  }
  .search-bar {
    flex-direction: column;
  }
  .platform-entry {
    flex-wrap: wrap;
  }
  .platform-entry select {
    width: 100%;
  }
}

/* NAV AUTH */
.nav-auth-user {
  display: none;
  align-items: center;
  gap: 10px;
}
.nav-username {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-auth-login {
  display: inline-flex;
  margin-left: 4px;
}
.nav-my-reviews {
  display: none;
}

/* FOOTER LINKS */
.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--text-secondary);
  text-decoration: none;
}

/* AUTH PAGES */
.auth-container {
  max-width: 420px;
  margin: 80px auto;
  padding: 0 24px;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
}
.auth-card h1 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.auth-card .auth-sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.auth-tab {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s;
}
.auth-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}
.auth-tab:hover { color: var(--text-primary); }

/* INFO PAGES */
.info-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.info-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.info-page h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 32px 0 10px;
  color: var(--text-primary);
}
.info-page p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}
.info-page ul {
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 20px;
  margin-bottom: 16px;
}
.info-page a { color: var(--accent); }
.mission-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0;
}
.mission-block p {
  font-size: 1.15rem;
  font-weight: 500;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.6;
}

/* FLAG BUTTON */
.btn-flag {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 8px;
  margin-left: 8px;
  transition: all 0.2s;
}
.btn-flag:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 77, 77, 0.08);
}

/* REVIEW CARD ACTIONS */
.review-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

/* RESPONSIVE additions */
@media (max-width: 768px) {
  .nav-links { flex-wrap: wrap; gap: 12px; }
  .auth-card { padding: 28px 24px; }
}
