/* RateMyAgentNaija — Frontend Styles — Digital Broadsheet Design System */
:root {
  --rman-primary:           #006036;
  --rman-primary-container: #1a7a4a;
  --rman-secondary:         #825500;
  --rman-surface:           #faf9f5;
  --rman-surface-low:       #f5f4f0;
  --rman-surface-container: #efeeea;
  --rman-surface-high:      #e9e8e4;
  --rman-surface-highest:   #e3e2df;
  --rman-surface-white:     #ffffff;
  --rman-on-surface:        #1b1c1a;
  --rman-on-surface-variant:#3f4941;
  --rman-outline:           #6f7a70;
  --rman-outline-variant:   #bec9be;
  --rman-tertiary:          #903608;
  --rman-error:             #ba1a1a;

  --rman-font-display:  'DM Serif Display', serif;
  --rman-font-headline: 'Newsreader', serif;
  --rman-font-body:     'Plus Jakarta Sans', sans-serif;
  --rman-font-quote:    'Lora', serif;

  --rman-shadow-card:      0 4px 24px rgba(27,28,26,0.04);
  --rman-shadow-elevated:  0 16px 32px rgba(27,28,26,0.05);
  --rman-shadow-editorial: 0 16px 24px -12px rgba(27,28,26,0.06);

  /* Legacy aliases */
  --rman-gold:    #825500;
  --rman-gold-dk: #6b4400;
  --rman-dark:    #006036;
  --rman-mid:     #1a7a4a;
  --rman-text:    #1b1c1a;
  --rman-muted:   #3f4941;
  --rman-border:  rgba(190,201,190,0.12);
  --rman-radius:  8px;
}

/* ── Stars ── */
.rmanaija-stars { font-size: 18px; color: var(--rman-secondary); line-height: 1; }
.rmanaija-stars .star.empty { color: var(--rman-outline-variant); }
.rmanaija-stars .star.half  { color: var(--rman-secondary); opacity: 0.5; }

/* ── Agent Card ── */
.rmanaija-agent-card {
  border: 1px solid rgba(190,201,190,0.12);
  border-radius: 8px;
  overflow: hidden;
  background: var(--rman-surface-white);
  box-shadow: var(--rman-shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
}
.rmanaija-agent-card:hover { box-shadow: var(--rman-shadow-elevated); transform: translateY(-4px); }
.rmanaija-card-link { text-decoration: none; color: inherit; display: block; }
.rmanaija-card-photo { position: relative; }
.rmanaija-card-photo img { width: 100%; height: 200px; object-fit: cover; display: block; }
.rmanaija-verified-badge {
  position: absolute; bottom: 8px; left: 8px;
  background: var(--rman-primary); color: #fff;
  font-size: 11px; font-weight: 700;
  font-family: var(--rman-font-body);
  padding: 3px 8px; border-radius: 4px;
}
.rmanaija-card-body { padding: 16px; }
.rmanaija-card-name {
  font-family: var(--rman-font-display);
  font-size: 1.1rem; font-weight: 400; margin: 0 0 4px; color: var(--rman-on-surface);
  line-height: 1.2;
}
.rmanaija-card-agency {
  font-family: var(--rman-font-body);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--rman-on-surface-variant);
  margin: 0 0 2px;
}
.rmanaija-card-location { font-size: 12px; color: var(--rman-outline); margin: 0 0 10px; }
.rmanaija-card-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.rmanaija-rating-num { font-weight: 700; color: var(--rman-on-surface); }
.rmanaija-review-count { color: var(--rman-outline); }
.rmanaija-no-reviews { color: var(--rman-outline); font-style: italic; font-size: 13px; }

/* ── Results Grid ── */
.rmanaija-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

/* ── Search Form ── */
.rmanaija-search-form {
  background: var(--rman-surface-white);
  border: 1px solid rgba(190,201,190,0.12);
  border-radius: 8px;
  box-shadow: var(--rman-shadow-card);
  padding: 20px;
}
.rmanaija-search-row  { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
.rmanaija-input {
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--rman-font-body);
  background: var(--rman-surface-low);
  color: var(--rman-on-surface);
  flex: 1 1 100%;
  transition: box-shadow 0.15s;
}
.rmanaija-select {
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--rman-font-body);
  background: var(--rman-surface-low);
  color: var(--rman-on-surface);
  flex: 1 1 180px;
  transition: box-shadow 0.15s;
}
.rmanaija-input::placeholder { color: var(--rman-outline); }
.rmanaija-input:focus,
.rmanaija-select:focus {
  outline: none;
  box-shadow: 0 0 0 1.5px var(--rman-primary);
}

/* ── Buttons ── */
.rmanaija-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--rman-font-body);
  cursor: pointer;
  transition: opacity 0.15s;
}
.rmanaija-btn:hover { opacity: 0.85; }
.rmanaija-btn-primary {
  background: linear-gradient(180deg, #1a7a4a 0%, #006036 100%);
  color: #fff;
}
.rmanaija-btn-outline {
  background: transparent;
  border: 1px solid var(--rman-outline);
  color: var(--rman-on-surface);
}

/* ── Review Form ── */
.rmanaija-review-form-wrap { max-width: 680px; }
.rmanaija-review-form-wrap h3 {
  font-family: var(--rman-font-headline);
  font-size: 20px; font-weight: 700; margin-bottom: 20px; color: var(--rman-on-surface);
}
.rmanaija-field { margin-bottom: 18px; }
.rmanaija-field label {
  display: block; font-size: 13px; font-weight: 700;
  font-family: var(--rman-font-body);
  margin-bottom: 6px; color: var(--rman-on-surface);
}
.rmanaija-field input,
.rmanaija-field select,
.rmanaija-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--rman-font-body);
  background: var(--rman-surface-low);
  color: var(--rman-on-surface);
  box-sizing: border-box;
  transition: box-shadow 0.15s;
}
.rmanaija-field input:focus,
.rmanaija-field select:focus,
.rmanaija-field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 1.5px var(--rman-primary);
}
.rmanaija-field textarea { resize: vertical; }
.rmanaija-hint { font-size: 12px; color: var(--rman-outline); margin-top: 4px; display: block; }
.rmanaija-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Star Picker ── */
.rmanaija-rating-group { margin-bottom: 16px; }
.rmanaija-rating-group label {
  font-size: 13px; font-weight: 700; margin-bottom: 6px; display: block;
  font-family: var(--rman-font-body);
}
.rmanaija-star-picker { display: flex; gap: 4px; cursor: pointer; }
.rmanaija-star-opt { font-size: 28px; color: var(--rman-outline-variant); transition: color 0.1s; }
.rmanaija-star-opt.active,
.rmanaija-star-opt.hover { color: var(--rman-secondary); }
.rmanaija-rating-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ── Notices ── */
.rmanaija-notice {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin: 16px 0;
  border-left: 3px solid var(--rman-secondary);
  background: var(--rman-surface-low);
  color: var(--rman-on-surface-variant);
}
.rmanaija-notice-info { border-color: var(--rman-primary); background: rgba(0,96,54,0.04); color: var(--rman-on-surface-variant); }
.rmanaija-form-message { margin-top: 12px; font-size: 14px; font-weight: 600; }
.rmanaija-form-message.success { color: var(--rman-primary); }
.rmanaija-form-message.error   { color: var(--rman-error); }

/* ── Agent Profile Page ── */
.rmanaija-profile-header {
  display: flex; gap: 32px; align-items: flex-start;
  background: var(--rman-surface-white);
  border: 1px solid rgba(190,201,190,0.12);
  border-radius: 8px;
  box-shadow: var(--rman-shadow-card);
  padding: 32px; margin-bottom: 32px;
}
.rmanaija-profile-photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rmanaija-profile-info h1 {
  font-family: var(--rman-font-display);
  font-size: 1.8rem; font-weight: 400; margin: 0 0 4px; color: var(--rman-on-surface);
}
.rmanaija-profile-agency  { font-size: 14px; color: var(--rman-on-surface-variant); margin: 0 0 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.rmanaija-profile-meta    { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--rman-outline); margin-bottom: 12px; }
.rmanaija-profile-rating-summary { display: flex; align-items: center; gap: 12px; }
.rmanaija-profile-avg {
  font-family: var(--rman-font-display);
  font-size: 3rem; font-weight: 400; color: var(--rman-on-surface); line-height: 1;
}
.rmanaija-profile-stars { font-size: 22px; color: var(--rman-secondary); }
.rmanaija-profile-count { font-size: 14px; color: var(--rman-outline); }

/* ── Review List ── */
.rmanaija-review {
  border: 1px solid rgba(190,201,190,0.12);
  border-radius: 8px;
  box-shadow: var(--rman-shadow-card);
  padding: 20px; margin-bottom: 16px;
  background: var(--rman-surface-white);
  position: relative;
}
/* Big quotation mark decoration */
.rmanaija-review::before {
  content: '"';
  font-family: var(--rman-font-quote);
  font-size: 80px;
  line-height: 1;
  color: var(--rman-secondary);
  opacity: 0.08;
  position: absolute;
  top: 12px;
  left: 16px;
  pointer-events: none;
}
.rmanaija-review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.rmanaija-reviewer-name { font-weight: 700; font-size: 15px; color: var(--rman-on-surface); }
.rmanaija-review-meta   { font-size: 12px; color: var(--rman-outline); margin-top: 2px; }
.rmanaija-review-body   {
  font-family: var(--rman-font-quote);
  font-style: italic;
  font-size: 15px; line-height: 1.7; color: var(--rman-on-surface-variant);
}
.rmanaija-agent-response {
  background: var(--rman-surface-low);
  border-left: 3px solid var(--rman-primary);
  padding: 12px 16px; margin-top: 12px; border-radius: 0 6px 6px 0;
  font-size: 14px; color: var(--rman-on-surface-variant);
}
.rmanaija-agent-response strong { display: block; margin-bottom: 4px; font-size: 12px; color: var(--rman-outline); }

/* ── Sub-ratings bar ── */
.rmanaija-sub-ratings { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.rmanaija-sub-rating  { font-size: 13px; color: var(--rman-outline); display: flex; align-items: center; gap: 6px; }

/* ── Pagination ── */
.rmanaija-pagination { display: flex; gap: 8px; margin-top: 24px; justify-content: center; flex-wrap: wrap; }
.rmanaija-page-btn {
  padding: 8px 14px;
  border: 1px solid var(--rman-outline-variant);
  border-radius: 8px;
  background: var(--rman-surface-white);
  cursor: pointer; font-size: 14px;
  font-family: var(--rman-font-body);
  color: var(--rman-on-surface);
  transition: background 0.15s;
}
.rmanaija-page-btn:hover { background: var(--rman-surface-low); }
.rmanaija-page-btn.active {
  background: var(--rman-primary);
  border-color: var(--rman-primary);
  color: #fff;
  font-weight: 700;
}

/* ── Dashboard Layout ── */
.rman-dash-page {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 80px);
  max-width: 1200px;
  margin: 0 auto;
  gap: 0;
}
.rman-dash-sidebar {
  background: var(--rman-surface-low);
  color: var(--rman-on-surface);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 600px;
  border-right: 1px solid rgba(190,201,190,0.12);
}
.rman-dash-identity {
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 20px 16px; gap: 0; width: 100%;
}
.rman-dash-id-text { text-align: center; }
.rman-dash-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--rman-surface-container);
  color: var(--rman-primary);
  font-family: var(--rman-font-display);
  font-size: 1.8rem; font-weight: 400;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  flex-shrink: 0;
}
.rman-dash-user-name {
  font-family: var(--rman-font-headline);
  text-align: center; font-size: 15px; font-weight: 700;
  color: var(--rman-on-surface); margin-bottom: 4px;
}
.rman-dash-role-badge {
  text-align: center;
  font-family: var(--rman-font-body);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--rman-secondary);
  margin-bottom: 0;
}
.rman-dash-sidebar-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 20px;
  background: var(--rman-surface-container);
  border-radius: 8px; padding: 12px;
}
.rman-dash-stat { text-align: center; }
.rman-dash-stat strong {
  display: block;
  font-family: var(--rman-font-display);
  font-size: 1.4rem; font-weight: 400; color: var(--rman-primary);
}
.rman-dash-stat span {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--rman-on-surface-variant);
}
.rman-dash-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.rman-dash-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--rman-on-surface-variant);
  text-decoration: none;
  font-family: var(--rman-font-body);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.rman-dash-nav-item:hover { background: var(--rman-surface-container); color: var(--rman-on-surface); }
.rman-dash-nav-item.active {
  background: var(--rman-surface-container);
  color: var(--rman-on-surface);
}
/* Gold dot for active nav */
.rman-dash-nav-item.active::after {
  content: '';
  display: block;
  width: 4px; height: 4px;
  background: var(--rman-secondary);
  border-radius: 50%;
  margin-left: auto;
}
.rman-nav-icon { font-size: 16px; width: 20px; text-align: center; }
.rman-nav-badge {
  margin-left: auto;
  background: var(--rman-primary);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: 4px;
}
.rman-dash-nav-item.active .rman-nav-badge { background: var(--rman-secondary); color: #fff; }
.rman-dash-sidebar-footer {
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid rgba(190,201,190,0.12);
}
.rman-dash-logout {
  display: block; text-align: center;
  color: var(--rman-outline); font-size: 12px;
  font-family: var(--rman-font-body);
  text-decoration: none;
  transition: color 0.15s;
}
.rman-dash-logout:hover { color: var(--rman-on-surface); }

.rman-dash-main { background: var(--rman-surface); padding: 40px 36px; }
.rman-dash-tab       { display: none; }
.rman-dash-tab.active { display: block; }
.rman-tab-panel       { display: none; }
.rman-tab-panel.active { display: block; }
.rman-dash-section-header { margin-bottom: 28px; }
.rman-dash-section-header h2 {
  font-family: var(--rman-font-headline);
  font-size: 22px; font-weight: 700; color: var(--rman-on-surface); margin: 0 0 6px;
}
.rman-dash-section-header p  { font-size: 14px; color: var(--rman-on-surface-variant); margin: 0; }

/* ── Dashboard Form Card ── */
.rman-form-card {
  background: var(--rman-surface-white);
  border: 1px solid rgba(190,201,190,0.12);
  border-radius: 8px;
  box-shadow: var(--rman-shadow-card);
  padding: 28px;
}
.rman-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rman-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.rman-form-group label {
  font-size: 12px; font-weight: 700;
  font-family: var(--rman-font-body);
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--rman-on-surface-variant);
}
.rman-form-group input,
.rman-form-group select,
.rman-form-group textarea {
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-size: 14px; font-family: var(--rman-font-body);
  background: var(--rman-surface-low);
  color: var(--rman-on-surface);
  transition: box-shadow 0.15s;
}
.rman-form-group input:focus,
.rman-form-group select:focus,
.rman-form-group textarea:focus { outline: none; box-shadow: 0 0 0 1.5px var(--rman-primary); }
.rman-input-disabled { background: var(--rman-surface-container) !important; cursor: not-allowed; }
.rman-optional { font-weight: 400; color: var(--rman-outline); }
.rman-field-note { font-size: 12px; color: var(--rman-outline); }
.rman-form-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.rman-save-status { font-size: 13px; font-weight: 600; }
.rman-btn-primary {
  background: linear-gradient(180deg, #1a7a4a 0%, #006036 100%);
  color: #fff;
  border: none; border-radius: 8px;
  padding: 10px 24px; font-size: 14px; font-weight: 700;
  font-family: var(--rman-font-body);
  cursor: pointer; transition: opacity 0.15s;
}
.rman-btn-primary:hover { opacity: .85; }
.rman-btn-sm {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--rman-outline-variant);
  border-radius: 6px;
  color: var(--rman-on-surface); font-size: 12px; font-weight: 700;
  font-family: var(--rman-font-body); text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none; background: transparent;
  cursor: pointer; transition: background .15s;
}
.rman-btn-sm:hover { background: var(--rman-surface-low); }
.rman-btn-full { display: block; text-align: center; margin-top: 12px; }
.rman-btn-gold {
  background: linear-gradient(180deg, #1a7a4a 0%, #006036 100%);
  color: #fff;
  border: none; border-radius: 8px;
  padding: 10px 20px; font-size: 14px; font-weight: 700;
  font-family: var(--rman-font-body);
  cursor: pointer; transition: opacity 0.15s; text-decoration: none; display: inline-block;
}
.rman-btn-gold:hover { opacity: .85; }

/* ── Reviews Summary Bar ── */
.rman-reviews-summary-bar {
  display: flex; gap: 16px; margin-bottom: 24px;
}
.rman-summary-stat {
  background: var(--rman-surface-white);
  border: 1px solid rgba(190,201,190,0.12);
  border-radius: 8px;
  box-shadow: var(--rman-shadow-card);
  padding: 14px 20px;
  text-align: center; min-width: 80px;
}
.rman-summary-stat strong {
  display: block;
  font-family: var(--rman-font-display);
  font-size: 1.5rem; font-weight: 400; color: var(--rman-on-surface);
}
.rman-summary-stat span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--rman-outline); }
.rman-stat-green strong { color: var(--rman-primary); }
.rman-stat-yellow strong { color: var(--rman-secondary); }

/* ── Review Card (dashboard) ── */
.rman-review-list { display: flex; flex-direction: column; gap: 16px; }
.rman-review-card {
  background: var(--rman-surface-white);
  border: 1px solid rgba(190,201,190,0.12);
  border-radius: 8px;
  box-shadow: var(--rman-shadow-card);
  overflow: hidden;
}
.rman-review-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 20px 24px 14px;
  border-bottom: 1px solid rgba(190,201,190,0.12);
}
.rman-review-agent-name {
  font-family: var(--rman-font-headline);
  font-size: 16px; font-weight: 700;
}
.rman-review-agent-name a { color: var(--rman-on-surface); text-decoration: none; }
.rman-review-agent-name a:hover { color: var(--rman-primary); }
.rman-review-stars { font-size: 18px; color: var(--rman-secondary); margin-top: 4px; }
.rman-review-meta { text-align: right; }
.rman-review-status {
  display: inline-block;
  font-family: var(--rman-font-body);
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  padding: 3px 9px; border-radius: 4px; letter-spacing: 0.08em;
}
.rman-status-green { background: rgba(0,96,54,0.08); color: var(--rman-primary); }
.rman-status-yellow { background: rgba(130,85,0,0.08); color: var(--rman-secondary); }
.rman-review-date { display: block; font-size: 12px; color: var(--rman-outline); margin-top: 4px; }
.rman-review-body {
  padding: 16px 24px;
  font-family: var(--rman-font-quote);
  font-style: italic;
  font-size: 14px; line-height: 1.7; color: var(--rman-on-surface-variant);
}
.rman-review-card-footer {
  padding: 12px 24px;
  background: var(--rman-surface-low);
  border-top: 1px solid rgba(190,201,190,0.12);
}

/* Response form in dashboard */
.rman-response-form-wrap { margin-top: 12px; }
.rman-response-form-wrap label {
  font-size: 12px; font-weight: 700;
  font-family: var(--rman-font-body);
  text-transform: uppercase; letter-spacing: 0.08em;
  display: block; margin-bottom: 6px;
  color: var(--rman-on-surface-variant);
}
.rman-response-form-wrap textarea {
  width: 100%; padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 14px; font-family: var(--rman-font-body);
  background: var(--rman-surface-low);
  color: var(--rman-on-surface);
  box-sizing: border-box; resize: vertical;
}
.rman-response-form-wrap textarea:focus { outline: none; box-shadow: 0 0 0 1.5px var(--rman-primary); }
.rman-response-message { font-size: 13px; font-weight: 600; margin-top: 6px; }

/* ── Badge Display ── */
.rman-badge-display {
  display: flex; align-items: center; gap: 16px;
  background: var(--rman-surface-white);
  border: 1px solid rgba(190,201,190,0.12);
  border-radius: 8px;
  box-shadow: var(--rman-shadow-card);
  padding: 20px 24px; margin-bottom: 20px;
}
.rman-badge-icon { font-size: 36px; }
.rman-badge-name {
  font-family: var(--rman-font-headline);
  font-size: 18px; font-weight: 700; color: var(--rman-on-surface);
}
.rman-badge-meta { font-size: 13px; color: var(--rman-outline); margin-top: 2px; }
.rman-badge-premium { border-color: rgba(130,85,0,0.2); background: rgba(130,85,0,0.03); }
.rman-badge-gold    { border-color: rgba(130,85,0,0.2); background: rgba(130,85,0,0.03); }
.rman-badge-silver  { border-color: var(--rman-outline-variant); background: var(--rman-surface-low); }
.rman-badge-bronze  { border-color: rgba(144,54,8,0.15); background: rgba(144,54,8,0.03); }
.rman-badge-none    { background: var(--rman-surface-low); }

/* Badge progress */
.rman-badge-progress {
  background: var(--rman-surface-white);
  border: 1px solid rgba(190,201,190,0.12);
  border-radius: 8px;
  box-shadow: var(--rman-shadow-card);
  padding: 20px 24px; margin-bottom: 20px;
}
.rman-progress-label { font-size: 14px; margin-bottom: 14px; color: var(--rman-on-surface-variant); }
.rman-progress-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 13px; }
.rman-progress-row > span:first-child { width: 90px; color: var(--rman-outline); }
.rman-progress-row > span:last-child  { width: 48px; text-align: right; color: var(--rman-outline); }
.rman-progress-bar { flex: 1; height: 6px; background: var(--rman-surface-container); border-radius: 8px; overflow: hidden; }
.rman-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a7a4a 0%, #006036 100%);
  border-radius: 8px; transition: width .4s;
}

/* Badge SVG preview */
.rman-badge-svg-preview { margin: 20px 0; }
.rman-badge-svg-preview svg { max-width: 100%; border-radius: 8px; box-shadow: var(--rman-shadow-editorial); }

/* Badge tier table */
.rman-badge-tier-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  background: var(--rman-surface-white);
  border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(190,201,190,0.12);
}
.rman-badge-tier-table th {
  background: var(--rman-primary); color: #fff; padding: 10px 14px; text-align: left;
  font-family: var(--rman-font-body);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
}
.rman-badge-tier-table td { padding: 10px 14px; border-top: 1px solid rgba(190,201,190,0.12); }
.rman-badge-tier-table tr.current-tier td { background: rgba(0,96,54,0.04); font-weight: 700; }

/* Badge pill (in agent cards) */
.rman-badge-pill {
  display: inline-block;
  font-family: var(--rman-font-body);
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 2px 8px; border-radius: 4px;
}
.rman-badge-pill.rman-badge-premium { background: var(--rman-primary); color: #fff; }
.rman-badge-pill.rman-badge-gold    { background: var(--rman-secondary); color: #fff; }
.rman-badge-pill.rman-badge-silver  { background: var(--rman-outline); color: #fff; }
.rman-badge-pill.rman-badge-bronze  { background: var(--rman-tertiary); color: #fff; }

/* ── Share/Link box ── */
.rman-link-box {
  display: flex; gap: 10px; align-items: center;
  background: var(--rman-surface-low);
  border: 1px solid rgba(190,201,190,0.2);
  border-radius: 8px; padding: 12px 16px; margin-bottom: 16px;
}
.rman-link-box input { flex: 1; border: none; background: transparent; font-size: 13px; color: var(--rman-on-surface); font-family: monospace; }
.rman-link-box input:focus { outline: none; }

.rman-share-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.rman-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600; font-family: var(--rman-font-body);
  text-decoration: none; cursor: pointer; border: none;
  transition: opacity 0.15s;
}
.rman-share-btn:hover { opacity: .85; }
.rman-share-whatsapp { background: #25d366; color: #fff; }
.rman-share-email    { background: #2563eb; color: #fff; }
.rman-share-sms      { background: #7c3aed; color: #fff; }
.rman-share-copy     { background: var(--rman-surface-container); color: var(--rman-on-surface); }

.rman-review-link-tips {
  margin-top: 24px;
  background: var(--rman-surface-white);
  border: 1px solid rgba(190,201,190,0.12);
  border-radius: 8px;
  box-shadow: var(--rman-shadow-card);
  padding: 20px 24px;
}
.rman-review-link-tips h4 {
  font-family: var(--rman-font-headline);
  font-size: 15px; margin: 0 0 12px; color: var(--rman-on-surface);
}
.rman-review-link-tips ul { margin: 0; padding-left: 20px; }
.rman-review-link-tips li { font-size: 14px; color: var(--rman-on-surface-variant); margin-bottom: 6px; line-height: 1.5; }

/* ── Embed Code ── */
.rman-embed-box {
  background: #1e1e1e; border-radius: 8px; padding: 16px;
  margin-top: 16px;
}
.rman-embed-box textarea {
  width: 100%; background: transparent; border: none;
  color: #a3e635; font-size: 12px; font-family: monospace;
  resize: none; box-sizing: border-box;
}
.rman-embed-box textarea:focus { outline: none; }

/* ── Agent card in bookmarks ── */
.rman-agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.rman-agent-card {
  background: var(--rman-surface-white);
  border: 1px solid rgba(190,201,190,0.12);
  border-radius: 8px;
  box-shadow: var(--rman-shadow-card);
  padding: 20px;
  transition: box-shadow .2s, transform .2s;
}
.rman-agent-card:hover { box-shadow: var(--rman-shadow-elevated); transform: translateY(-4px); }
.rman-agent-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rman-agent-avatar-sm {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--rman-surface-container); color: var(--rman-primary);
  font-family: var(--rman-font-display);
  font-size: 1.2rem; font-weight: 400;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rman-agent-card-name {
  font-family: var(--rman-font-headline);
  font-size: 15px; font-weight: 700; color: var(--rman-on-surface);
}
.rman-agent-card-agency { font-size: 11px; color: var(--rman-outline); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.06em; }
.rman-agent-card-loc { font-size: 13px; color: var(--rman-outline); margin-bottom: 10px; }
.rman-agent-card-stats { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--rman-outline); margin-bottom: 12px; flex-wrap: wrap; }

/* ── Bookmark Button ── */
.rman-bookmark-btn {
  margin-left: auto;
  background: none;
  border: 1px solid var(--rman-outline-variant);
  border-radius: 6px; padding: 5px 8px;
  cursor: pointer; font-size: 14px;
  transition: border-color .15s, background .15s;
  text-decoration: none; color: var(--rman-on-surface-variant);
}
.rman-bookmark-btn:hover { border-color: var(--rman-outline); background: var(--rman-surface-low); }
.rman-bookmark-btn.bookmarked { border-color: var(--rman-secondary); background: rgba(130,85,0,0.05); }
.rman-bookmark-btn.mini { padding: 3px 6px; font-size: 12px; }

/* ── Empty State ── */
.rman-empty-state {
  text-align: center; padding: 60px 20px;
  background: var(--rman-surface-white);
  border: 1px solid rgba(190,201,190,0.12);
  border-radius: 8px;
  box-shadow: var(--rman-shadow-card);
}
.rman-empty-icon { font-size: 48px; margin-bottom: 16px; }
.rman-empty-state h3 {
  font-family: var(--rman-font-headline);
  font-size: 18px; margin: 0 0 8px; color: var(--rman-on-surface);
}
.rman-empty-state p  { font-size: 14px; color: var(--rman-on-surface-variant); margin: 0 0 20px; }

/* ── Find Agent Layout ── */
.rman-find-search-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px 24px; }
.rman-not-here-strip {
    display: flex; align-items: center; gap: 16px;
    background: rgba(130,85,0,0.05);
    border: 1px solid rgba(130,85,0,0.15);
    border-radius: 8px; padding: 12px 20px; margin-top: 12px;
    font-size: 14px; color: var(--rman-on-surface-variant);
}
.rman-not-here-strip span { color: var(--rman-outline); }
.rman-not-here-btn {
    background: none;
    border: 1px solid var(--rman-secondary);
    border-radius: 6px; padding: 7px 16px;
    font-size: 12px; font-weight: 700;
    font-family: var(--rman-font-body);
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--rman-secondary);
    cursor: pointer; transition: background .15s;
}
.rman-not-here-btn:hover { background: rgba(130,85,0,0.08); }

.rman-find-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
    align-items: start;
}
.rman-find-section { margin-bottom: 48px; }
.rman-find-section-title {
  font-family: var(--rman-font-headline);
  font-size: 20px; font-weight: 700; color: var(--rman-on-surface); margin: 0 0 4px;
}
.rman-find-section-sub   { font-size: 13px; color: var(--rman-outline); margin: 0 0 20px; }
.rman-section-title-row  { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.rman-find-unclaimed     {
  background: rgba(130,85,0,0.04);
  border-radius: 8px; padding: 24px;
  border: 1px solid rgba(130,85,0,0.12);
}
.rman-find-unclaimed .rman-section-title-row { margin-bottom: 0; }
.rman-find-unclaimed .rmanaija-results-grid  { margin-top: 20px; }

/* ── Rankings Sidebar ── */
.rman-find-sidebar { position: sticky; top: 100px; }
.rman-rankings-sidebar {
    background: var(--rman-surface-white);
    border: 1px solid rgba(190,201,190,0.12);
    border-radius: 8px;
    box-shadow: var(--rman-shadow-card);
    overflow: hidden;
    color: var(--rman-on-surface);
}
.rman-rankings-header {
    display: flex; align-items: center; gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(190,201,190,0.12);
    background: var(--rman-surface-low);
}
.rman-rankings-crown { font-size: 28px; }
.rman-rankings-header h3 {
  font-family: var(--rman-font-headline);
  font-size: 15px; font-weight: 700; color: var(--rman-on-surface); margin: 0 0 2px;
}
.rman-rankings-header p  { font-size: 11px; color: var(--rman-outline); margin: 0; }
.rman-rankings-empty { padding: 20px; font-size: 13px; color: var(--rman-outline); }
.rman-rankings-list { list-style: none; margin: 0; padding: 0; }
.rman-ranking-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(190,201,190,0.08);
    transition: background .15s;
}
.rman-ranking-item:hover { background: var(--rman-surface-low); }
.rman-rank-gold   { background: rgba(130,85,0,0.03);  }
.rman-rank-silver { background: rgba(111,122,112,0.03); }
.rman-rank-bronze { background: rgba(144,54,8,0.03);  }
.rman-ranking-pos { font-size: 20px; min-width: 28px; line-height: 1.2; }
.rman-ranking-info { flex: 1; min-width: 0; }
.rman-ranking-name {
    display: block; font-size: 13px; font-weight: 700; color: var(--rman-on-surface);
    text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 2px;
}
.rman-ranking-name:hover { color: var(--rman-primary); }
.rman-ranking-loc   { font-size: 11px; color: var(--rman-outline); margin-bottom: 4px; }
.rman-ranking-stats { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11px; }
.rman-ranking-stats span { color: var(--rman-on-surface-variant); }
.rman-ranking-new   { color: var(--rman-primary) !important; font-weight: 600; }
.rman-unclaimed-pill {
    background: rgba(186,26,26,0.1); color: var(--rman-error);
    padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 700;
}
.rman-rankings-my-rank {
    padding: 14px 20px;
    background: rgba(0,96,54,0.04);
    border-top: 1px solid rgba(0,96,54,0.1);
    border-bottom: 1px solid rgba(0,96,54,0.1);
}
.rman-my-rank-badge { font-size: 13px; font-weight: 700; color: var(--rman-primary); margin-bottom: 10px; }
.rman-rankings-footer { padding: 14px 20px; }

/* ── Unclaimed Card ── */
.rman-unclaimed-card { border-color: rgba(130,85,0,0.2) !important; }
.rman-unclaimed-photo {
    background: var(--rman-surface-low);
    min-height: 160px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    flex-direction: column;
}
.rman-unclaimed-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--rman-surface-container); color: var(--rman-outline);
    font-family: var(--rman-font-display);
    font-size: 1.8rem; font-weight: 400;
    display: flex; align-items: center; justify-content: center;
}
.rman-unclaimed-badge {
    position: absolute; bottom: 8px; left: 8px;
    background: rgba(130,85,0,0.1); color: var(--rman-secondary);
    font-size: 10px; font-weight: 700;
    font-family: var(--rman-font-body); text-transform: uppercase; letter-spacing: 0.08em;
    padding: 3px 8px; border-radius: 4px;
}
.rman-unclaimed-claim-cta {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-top: 24px; font-size: 14px; color: var(--rman-on-surface-variant);
}

/* ── Homepage featured section variants ── */
.rman-featured-week { background: var(--rman-surface-low); }
.rman-featured-unclaimed { background: var(--rman-surface); }

/* ── Modal ── */
.rman-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(27,28,26,.55);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.rman-modal {
    background: var(--rman-surface-white);
    border-radius: 8px;
    box-shadow: var(--rman-shadow-elevated);
    padding: 36px 32px;
    width: 100%; max-width: 560px;
    max-height: 90vh; overflow-y: auto;
    position: relative;
}
.rman-modal-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none;
    font-size: 18px; cursor: pointer; color: var(--rman-outline);
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.rman-modal-close:hover { background: var(--rman-surface-low); }
.rman-modal-header { text-align: center; margin-bottom: 24px; }
.rman-modal-icon { font-size: 40px; margin-bottom: 12px; }
.rman-modal-header h2 {
  font-family: var(--rman-font-headline);
  font-size: 20px; font-weight: 700; color: var(--rman-on-surface); margin: 0 0 8px;
}
.rman-modal-header p  { font-size: 14px; color: var(--rman-on-surface-variant); margin: 0; }

/* ── Ranking Badge Section (agent dashboard) ── */
.rman-ranking-badge-section {
    display: flex; align-items: center; gap: 16px;
    background: var(--rman-primary);
    border-radius: 8px; padding: 20px 24px; margin-bottom: 24px; flex-wrap: wrap;
}
.rman-rank-trophy { font-size: 40px; }
.rman-ranking-badge-section h4 {
  font-family: var(--rman-font-headline);
  font-size: 16px; color: #fff; margin: 0 0 4px;
}
.rman-ranking-badge-section h4 strong { color: rgba(255,255,255,0.85); }
.rman-ranking-badge-section p  { font-size: 13px; color: rgba(255,255,255,.7); margin: 0; }
.rman-ranking-badge-section .rman-btn-gold {
  margin-left: auto; flex-shrink: 0;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
}
.rman-rank-info-muted {
  background: var(--rman-surface-white);
  border: 1px solid rgba(190,201,190,0.12);
  border-radius: 8px;
  box-shadow: var(--rman-shadow-card);
  padding: 20px; margin-bottom: 24px;
}
.rman-rank-info-muted p { font-size: 14px; color: var(--rman-on-surface-variant); margin: 0; }

/* Unclaimed profile banner on agent page */
.rman-unclaimed-profile-banner {
    background: rgba(130,85,0,0.05);
    border: 1px solid rgba(130,85,0,0.15);
    border-radius: 8px; padding: 20px 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.rman-unclaimed-profile-banner h3 {
  font-family: var(--rman-font-headline);
  font-size: 16px; color: var(--rman-secondary); margin: 0 0 4px;
}
.rman-unclaimed-profile-banner p  { font-size: 13px; color: var(--rman-on-surface-variant); margin: 0; }

/* ── Legacy ── */
.rmanaija-dashboard-wrap { max-width: 900px; }
.rmanaija-dashboard-section { margin-bottom: 40px; }
.rmanaija-dashboard-section h2 {
  font-family: var(--rman-font-headline);
  font-size: 20px; font-weight: 700;
  border-bottom: 1px solid rgba(190,201,190,0.12);
  padding-bottom: 10px; margin-bottom: 20px;
  color: var(--rman-on-surface);
}

@media (max-width: 900px) {
  .rman-dash-page { grid-template-columns: 1fr; }
  .rman-dash-sidebar { flex-direction: row; flex-wrap: wrap; min-height: auto; padding: 16px; gap: 6px; border-right: none; border-bottom: 1px solid rgba(190,201,190,0.12); }
  .rman-dash-avatar { width: 48px; height: 48px; font-size: 1.2rem; margin: 0; }
  .rman-dash-user-name, .rman-dash-role-badge { text-align: left; }
  .rman-dash-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .rman-dash-nav-item { padding: 6px 12px; font-size: 11px; }
  .rman-dash-sidebar-footer { width: 100%; }
  .rman-dash-main { padding: 24px 16px; }
  .rman-form-row { grid-template-columns: 1fr; }
}
/* ── Search form: nuclear mobile fix — block layout beats any flex override ── */
@media (max-width: 960px) {
  #rmanaija-agent-search,
  #rmanaija-agent-search .rmanaija-search-row {
    display: block !important;
    text-align: left !important;
    direction: ltr !important;
  }
  #rmanaija-agent-search .rmanaija-input,
  #rmanaija-agent-search .rmanaija-select,
  #rmanaija-agent-search button[type="submit"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 10px !important;
  }
  #rmanaija-agent-search button[type="submit"] {
    text-align: center !important;
    margin-bottom: 0 !important;
  }
}

@media (max-width: 640px) {
  .rmanaija-search-row     { flex-direction: column; align-items: flex-start; }
  .rmanaija-input,
  .rmanaija-select         { flex: 1 1 100%; width: 100%; max-width: 100%; }
  .rmanaija-field-row      { grid-template-columns: 1fr; }
  .rmanaija-rating-row     { grid-template-columns: 1fr; }
  .rmanaija-profile-header { flex-direction: column; }
  .rmanaija-profile-photo  { width: 100px; height: 100px; }
  .rmanaija-results-grid   { grid-template-columns: 1fr; }
  .rman-agent-grid         { grid-template-columns: 1fr; }
  .rman-reviews-summary-bar { flex-wrap: wrap; }
  .rman-share-buttons      { flex-direction: column; }
}

/* ── Card Initial Avatar (no photo fallback) ── */
.rman-card-avatar-init {
  width: 100%; height: 200px;
  background: var(--rman-surface-low);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--rman-font-display);
  font-size: 4rem; font-weight: 400; color: var(--rman-primary);
}
.rman-profile-avatar-init {
  display: flex; align-items: center; justify-content: center;
  background: var(--rman-surface-container);
  color: var(--rman-primary);
  font-family: var(--rman-font-display);
  font-size: 3rem; font-weight: 400;
}

/* ── Dashboard nav link active state ── */
.rman-dash-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--rman-on-surface-variant);
  text-decoration: none;
  font-family: var(--rman-font-body);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.rman-dash-link:hover { background: var(--rman-surface-container); color: var(--rman-on-surface); }
.rman-dash-link.active {
  background: var(--rman-surface-container);
  color: var(--rman-on-surface);
}
.rman-dash-link.active::after {
  content: '';
  display: block;
  width: 4px; height: 4px;
  background: var(--rman-secondary);
  border-radius: 50%;
  margin-left: auto;
}

/* ── Dashboard profile form grid ── */
.rman-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) { .rman-form-grid { grid-template-columns: 1fr; } }

/* ── Dashboard status notices ── */
.rman-dash-notice {
  padding: 14px 18px; border-radius: 8px; font-size: 14px; line-height: 1.6;
  border-left: 3px solid var(--rman-secondary);
  background: rgba(130,85,0,0.04);
  color: var(--rman-on-surface-variant);
  margin-bottom: 20px;
}
.rman-dash-notice-warn { border-color: var(--rman-tertiary); }
.rman-dash-view-profile {
  display: block; text-align: center; margin-top: 12px;
  background: var(--rman-surface-container);
  color: var(--rman-on-surface); border-radius: 6px;
  padding: 8px 12px; font-size: 12px; font-weight: 700;
  font-family: var(--rman-font-body);
  text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none;
  transition: background .15s;
}
.rman-dash-view-profile:hover { background: var(--rman-surface-high); }
.rman-dash-stat-val {
  display: block;
  font-family: var(--rman-font-display);
  font-size: 1.3rem; font-weight: 400; color: var(--rman-primary);
}
.rman-review-summary { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.rman-rev-sum-item {
  background: var(--rman-surface-white);
  border: 1px solid rgba(190,201,190,0.12);
  border-radius: 8px;
  box-shadow: var(--rman-shadow-card);
  padding: 12px 20px; text-align: center; min-width: 70px; font-size: 14px; color: var(--rman-outline);
}
.rman-rev-sum-item strong {
  display: block;
  font-family: var(--rman-font-display);
  font-size: 1.4rem; font-weight: 400; color: var(--rman-on-surface); margin-bottom: 2px;
}
.rman-review-link-box { margin-bottom: 24px; }
.rman-review-link-display {
  display: flex; gap: 10px; align-items: center;
  background: var(--rman-surface-low);
  border: 1px solid rgba(190,201,190,0.2);
  border-radius: 8px; padding: 10px 14px;
}
.rman-review-link-display input { flex: 1; border: none; background: transparent; font-size: 13px; color: var(--rman-on-surface); font-family: monospace; }
.rman-review-link-display input:focus { outline: none; }
.rman-share-options h3 {
  font-family: var(--rman-font-headline);
  font-size: 15px; font-weight: 700; color: var(--rman-on-surface); margin: 20px 0 12px;
}
.rman-share-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.rman-agent-response-display {
  background: var(--rman-surface-low);
  border-left: 3px solid var(--rman-primary);
  padding: 12px 16px; border-radius: 0 6px 6px 0; font-size: 14px; color: var(--rman-on-surface-variant); margin-top: 12px;
}
.rman-agent-response-display strong { display: block; font-size: 11px; color: var(--rman-outline); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.08em; }
.rman-review-card-body {
  padding: 0 0 12px;
  font-family: var(--rman-font-quote);
  font-style: italic;
  font-size: 14px; line-height: 1.7; color: var(--rman-on-surface-variant);
}
.rman-badge-section { display: flex; flex-direction: column; gap: 20px; }
.rman-badge-current {}
.rman-badge-tiers h3, .rman-badge-download-section h3 {
  font-family: var(--rman-font-headline);
  font-size: 16px; font-weight: 700; color: var(--rman-on-surface); margin: 0 0 12px;
}
.rman-badge-download-section p { font-size: 14px; color: var(--rman-on-surface-variant); margin: 0 0 16px; }
.rman-badge-tier-row {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border: 1px solid rgba(190,201,190,0.12);
  border-radius: 8px; margin-bottom: 8px;
  background: var(--rman-surface-white);
  box-shadow: var(--rman-shadow-card);
}
.rman-badge-tier-row.active { border-color: rgba(0,96,54,0.2); background: rgba(0,96,54,0.03); }
.rman-badge-tier-icon { font-size: 24px; width: 32px; text-align: center; }
.rman-badge-tier-info { flex: 1; }
.rman-badge-tier-info strong { display: block; font-size: 14px; font-weight: 700; color: var(--rman-on-surface); }
.rman-badge-tier-info span { font-size: 12px; color: var(--rman-outline); }
.rman-badge-current-tag {
  font-size: 10px; font-weight: 700;
  font-family: var(--rman-font-body); text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--rman-primary); color: #fff;
  padding: 2px 8px; border-radius: 4px;
}
.rman-badge-preview { margin-bottom: 16px; }
.rman-badge-download-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.rman-btn-outline-dark {
  background: none;
  border: 1px solid var(--rman-outline);
  color: var(--rman-on-surface);
  border-radius: 8px; padding: 10px 20px; font-size: 14px; font-weight: 700;
  font-family: var(--rman-font-body);
  cursor: pointer; transition: background .15s; text-decoration: none; display: inline-flex; align-items: center;
}
.rman-btn-outline-dark:hover { background: var(--rman-surface-low); }

/* ── Review Photo Upload ── */
.rman-photo-upload-wrap { margin-top: 8px; }
.rman-photo-upload-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--rman-surface-low);
  border: 2px dashed var(--rman-outline-variant);
  border-radius: 8px; padding: 10px 20px;
  font-size: 14px; font-weight: 600; color: var(--rman-on-surface);
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
  font-family: var(--rman-font-body);
}
.rman-photo-upload-btn:hover { border-color: var(--rman-primary); background: var(--rman-surface-container); }
.rman-photo-previews {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px;
}
.rman-photo-thumb {
  width: 80px; height: 80px; border-radius: 6px; overflow: hidden;
  border: 1px solid rgba(190,201,190,0.2);
}
.rman-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Review photos on profile page ── */
.rmanaija-review-photos {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px;
}
.rmanaija-review-photos a {
  display: block; width: 90px; height: 90px; border-radius: 6px;
  overflow: hidden; border: 1px solid rgba(190,201,190,0.2);
  transition: opacity 0.2s;
}
.rmanaija-review-photos a:hover { opacity: 0.85; }
.rmanaija-review-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Avatar Upload ── */
.rman-avatar-wrap { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.rman-avatar-preview {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--rman-surface-container);
  flex-shrink: 0;
}
.rman-avatar-upload-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--rman-surface-low);
  border: 2px dashed var(--rman-outline-variant);
  border-radius: 8px; padding: 8px 16px;
  font-size: 13px; font-weight: 600; color: var(--rman-on-surface);
  cursor: pointer; transition: border-color 0.2s;
  font-family: var(--rman-font-body);
}
.rman-avatar-upload-btn:hover { border-color: var(--rman-primary); }

/* ════════════════════════════════════════
   3-STEP REVIEW WIZARD
════════════════════════════════════════ */
.rman-wizard-wrap {
  background: var(--rman-surface-white);
  border: 1px solid rgba(190,201,190,0.18);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--rman-shadow-elevated);
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--rman-font-body);
}

/* Stepper header */
.rman-wizard-stepper {
  display: flex;
  align-items: center;
  background: var(--rman-on-surface);
  padding: 0 32px;
}
.rman-wizard-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  flex: 1;
  position: relative;
  cursor: default;
}
.rman-wizard-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.rman-wizard-step-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.rman-wizard-step.active .rman-wizard-step-num {
  background: #fff;
  color: var(--rman-primary);
}
.rman-wizard-step.active .rman-wizard-step-label { color: #fff; }
.rman-wizard-step.done .rman-wizard-step-num {
  background: var(--rman-primary);
  color: #fff;
}
.rman-wizard-step.done .rman-wizard-step-label { color: rgba(255,255,255,0.7); }

.rman-wizard-connector {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* Panels */
.rman-wizard-panel { display: none; padding: 36px 40px 32px; }
.rman-wizard-panel.active { display: block; }

.rman-wizard-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--rman-primary);
  margin-bottom: 6px;
}
.rman-wizard-title {
  font-family: var(--rman-font-display);
  font-size: 1.5rem;
  color: var(--rman-on-surface);
  margin: 0 0 6px;
}
.rman-wizard-sub {
  font-size: 14px;
  color: var(--rman-on-surface-variant);
  margin: 0 0 28px;
  line-height: 1.5;
}

/* Grid for transaction fields */
.rman-wizard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.rman-wizard-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rman-wizard-field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--rman-on-surface-variant);
}
.rman-wizard-field input,
.rman-wizard-field select,
.rman-wizard-field textarea {
  font-family: var(--rman-font-body);
  font-size: 14px;
  color: var(--rman-on-surface);
  background: var(--rman-surface-low);
  border: 1.5px solid var(--rman-surface-high);
  border-radius: 8px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.rman-wizard-field input:focus,
.rman-wizard-field select:focus,
.rman-wizard-field textarea:focus {
  border-color: var(--rman-primary);
  background: var(--rman-surface-white);
}
.rman-wizard-field input.rman-field-error,
.rman-wizard-field select.rman-field-error {
  border-color: var(--rman-error);
}
.rman-wizard-field textarea { resize: vertical; min-height: 110px; }

/* Rating criteria rows */
.rman-criteria-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.rman-criterion {
  background: var(--rman-surface-low);
  border: 1.5px solid var(--rman-surface-high);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.15s;
}
.rman-criterion:hover { border-color: var(--rman-outline-variant); }
.rman-criterion-info { flex: 1; min-width: 0; }
.rman-criterion-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--rman-on-surface);
  margin-bottom: 2px;
}
.rman-criterion-desc {
  font-size: 12px;
  color: var(--rman-on-surface-variant);
}
.rman-criterion-overall {
  background: rgba(0,96,54,0.04);
  border: 2px solid var(--rman-primary);
}
.rman-criterion-overall .rman-criterion-label { color: var(--rman-primary); }
.rman-criterion-overall.rman-field-error-block {
  border-color: var(--rman-error);
  animation: rman-shake 0.35s ease;
}
@keyframes rman-shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-4px); }
  75%       { transform: translateX(4px); }
}

/* Star picker in criteria */
.rmanaija-star-picker {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.rmanaija-star-opt {
  font-size: 26px;
  color: var(--rman-outline-variant);
  cursor: pointer;
  transition: color 0.1s, transform 0.1s;
  user-select: none;
  line-height: 1;
}
.rmanaija-star-opt.active { color: var(--rman-secondary); }
.rmanaija-star-opt.hover  { color: var(--rman-secondary); opacity: 0.7; transform: scale(1.15); }
.rmanaija-star-input { display: none; }

/* Integrity notice */
.rman-wizard-integrity {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: var(--rman-surface-container);
  border-radius: 8px;
  font-size: 12px;
  color: var(--rman-on-surface-variant);
  line-height: 1.5;
  margin-bottom: 24px;
}
.rman-wizard-integrity-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* Photo upload */
.rman-photo-upload-area {
  border: 2px dashed var(--rman-outline-variant);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 10px;
}
.rman-photo-upload-area:hover { border-color: var(--rman-primary); background: rgba(0,96,54,0.02); }
.rman-photo-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.rman-photo-upload-icon { font-size: 28px; }
.rman-photo-upload-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--rman-on-surface);
}
.rman-photo-upload-sub {
  font-size: 11px;
  color: var(--rman-on-surface-variant);
}
#rman-photo-previews { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* Wizard footer */
.rman-wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px 32px;
  border-top: 1px solid var(--rman-surface-container);
  gap: 12px;
}
.rman-wizard-footer-left { flex: 1; }
.rman-wizard-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--rman-font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.rman-wizard-btn-next {
  background: var(--rman-primary);
  color: #fff;
}
.rman-wizard-btn-next:hover { background: var(--rman-primary-container); }
.rman-wizard-btn-back {
  background: var(--rman-surface-low);
  color: var(--rman-on-surface-variant);
  border: 1.5px solid var(--rman-surface-high);
}
.rman-wizard-btn-back:hover { background: var(--rman-surface-high); color: var(--rman-on-surface); }
.rman-wizard-btn-submit {
  background: var(--rman-primary);
  color: #fff;
}
.rman-wizard-btn-submit:hover:not(:disabled) { background: var(--rman-primary-container); }
.rman-wizard-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Review message */
#rmanaija-review-message {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 6px;
  display: none;
  margin-top: 8px;
}
#rmanaija-review-message.error   { background: rgba(186,26,26,0.08); color: var(--rman-error); display: block; }
#rmanaija-review-message.success { background: rgba(22,163,74,0.08); color: #16a34a; display: block; }

/* Review gate (not logged in) */
.rman-review-gate {
  background: var(--rman-surface-low);
  border: 1px solid rgba(190,201,190,0.18);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.rman-review-gate-icon { font-size: 40px; margin-bottom: 12px; }
.rman-review-gate h3 {
  font-family: var(--rman-font-display);
  font-size: 1.4rem;
  margin: 0 0 8px;
}
.rman-review-gate p {
  font-size: 14px;
  color: var(--rman-on-surface-variant);
  margin: 0 0 20px;
}

/* Success state */
.rman-review-success {
  padding: 60px 40px;
  text-align: center;
}
.rman-review-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(22,163,74,0.1);
  color: #16a34a;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.rman-review-success h3 {
  font-family: var(--rman-font-display);
  font-size: 1.6rem;
  margin: 0 0 8px;
}
.rman-review-success p { color: var(--rman-on-surface-variant); }

/* Wizard responsive */
@media (max-width: 640px) {
  .rman-wizard-stepper { padding: 0 16px; }
  .rman-wizard-step-label { display: none; }
  .rman-wizard-panel { padding: 24px 20px 20px; }
  .rman-wizard-footer { padding: 16px 20px 24px; }
  .rman-wizard-grid { grid-template-columns: 1fr; }
  .rman-criterion { flex-direction: column; align-items: flex-start; gap: 10px; }
  .rmanaija-star-opt { font-size: 30px; }
}

/* ── Ask For Review Tab — Mobile ── */
.rman-asklink-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:20px; }
.rman-asklink-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
.rman-asklink-actions { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.rman-asklink-share-row { display:flex; gap:10px; flex-wrap:wrap; margin-top:8px; }
.rman-asklink-share-row .rman-share-btn { flex:1 1 120px; justify-content:center; }
.rman-asklink-limit-badge { font-size:12px; padding:4px 10px; border-radius:20px; white-space:nowrap; font-weight:600; }
.rman-asklink-limit-badge--ok { color:var(--rman-outline); background:#f3f4f6; }
.rman-asklink-limit-badge--full { color:#b91c1c; background:#fee2e2; }
.rman-btn-disabled { opacity:.5; cursor:not-allowed; }
.rman-asklink-req-item { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 14px; background:var(--rman-surface-low); border-radius:8px; font-size:13px; flex-wrap:wrap; }
.rman-asklink-req-name { font-weight:700; color:var(--rman-on-surface); }
.rman-asklink-req-email { color:var(--rman-outline); margin-left:8px; }
.rman-asklink-req-time { color:var(--rman-outline); font-size:12px; white-space:nowrap; }
@media (max-width:640px) {
  .rman-asklink-form-grid { grid-template-columns:1fr; }
  .rman-asklink-header { flex-direction:column; }
  .rman-review-link-display { flex-direction:column; align-items:stretch; }
  .rman-review-link-display input { width:100%; }
  .rman-review-link-display .rman-btn-gold { width:100%; justify-content:center; }
  .rman-asklink-share-row .rman-share-btn { flex:1 1 100%; }
  .rman-asklink-actions { flex-direction:column; align-items:stretch; }
  .rman-asklink-actions .rman-btn-primary { width:100%; justify-content:center; }
}
