/* RT Influencer System — Frontend CSS v6 — Deep Space */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.rtia-page {
  background: #09090F;
  color: #F0F2FF;
  min-height: 60vh;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.rtia-container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.rtia-dash-container { max-width: 960px; }

/* Sections */
.rtia-section { padding: 4rem 0; }
.rtia-section-sm { padding: 2.5rem 0; }

/* Hero */
.rtia-hero {
  background: #09090F; padding: 5rem 0 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.07); position: relative; overflow: hidden;
}
.rtia-hero::before {
  content: ''; position: absolute; top: -100px; right: -60px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(rgba(124,58,237,0.08), transparent 65%); pointer-events: none;
}
.rtia-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 80%);
}
.rtia-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #B48EFF; background: rgba(124,58,237,0.08); border: 1px solid rgba(124,58,237,0.2);
  padding: 0.3rem 0.875rem; border-radius: 4px; margin-bottom: 1.25rem; position: relative; z-index: 1;
}
.rtia-hero h1 {
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(2.2rem,5vw,3.75rem); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 1.25rem;
  position: relative; z-index: 1;
}
.rtia-hero h1 span {
  background: linear-gradient(135deg,#6D28D9,#9D5FFF);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.rtia-hero-sub {
  font-size: 1rem; color: #8B90B8; line-height: 1.75;
  max-width: 500px; margin-bottom: 2rem; position: relative; z-index: 1;
}

/* Earn grid */
.rtia-earn-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 1px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; overflow: hidden;
}
.rtia-earn-item { background: #0F1021; padding: 1.375rem; }
.rtia-earn-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #B48EFF; font-size: 1rem; margin-bottom: 0.875rem;
}
.rtia-earn-item h3 { font-size: 0.95rem; font-weight: 800; margin-bottom: 0.2rem; letter-spacing: -0.02em; }
.rtia-earn-item p { font-size: 0.78rem; color: #555A80; margin: 0; line-height: 1.55; }
.rtia-earn-amount {
  font-family: 'JetBrains Mono', monospace; font-size: 1.1rem; font-weight: 700;
  background: linear-gradient(135deg,#6D28D9,#9D5FFF);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 0.25rem; display: block;
}

/* Buttons */
.rtia-btn {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.65rem 1.375rem; border-radius: 10px; font-size: 0.875rem; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer; font-family: inherit;
  transition: all 0.18s; letter-spacing: 0.01em;
}
.rtia-btn-primary {
  background: linear-gradient(135deg,#6D28D9,#9D5FFF); color: #fff;
  box-shadow: 0 2px 16px rgba(124,58,237,0.3);
}
.rtia-btn-primary:hover {
  transform: translateY(-1px); box-shadow: 0 4px 24px rgba(124,58,237,0.45); color: #fff;
}
.rtia-btn-ghost {
  background: rgba(255,255,255,0.05); color: #F0F2FF;
  border: 1px solid rgba(255,255,255,0.1);
}
.rtia-btn-ghost:hover { background: rgba(255,255,255,0.09); }
.rtia-btn-lg { padding: 0.875rem 1.75rem; font-size: 0.95rem; border-radius: 12px; }
.rtia-btn-sm { padding: 0.4rem 0.875rem; font-size: 0.78rem; border-radius: 8px; }

/* Cards */
.rtia-card {
  background: #0F1021; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 1.5rem; margin-bottom: 1.125rem;
  transition: border-color 0.2s;
}
.rtia-card:hover { border-color: rgba(255,255,255,0.12); }

/* Forms */
.rtia-input {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9px; color: #F0F2FF; font-size: 0.875rem;
  padding: 0.65rem 0.9rem; outline: none; font-family: inherit; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.rtia-input:focus {
  border-color: rgba(124,58,237,0.6); box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.rtia-input::placeholder { color: #2E3255; }
.rtia-label {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.09em; color: #555A80; display: block; margin-bottom: 0.35rem;
}

/* Back link */
.rtia-back {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.82rem; color: #555A80; text-decoration: none; margin-bottom: 1.5rem;
  transition: color 0.15s;
}
.rtia-back:hover { color: #F0F2FF; }

/* Alerts */
.rtia-alert {
  border-radius: 10px; padding: 0.875rem 1rem; font-size: 0.82rem; margin-bottom: 1rem;
}
.rtia-alert-success { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.22); color: #B48EFF; }
.rtia-alert-error   { background: rgba(184,122,122,0.1); border: 1px solid rgba(184,122,122,0.22); color: #C49090; }

/* FAQ */
.rtia-faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.07); padding: 1.25rem 0;
}
.rtia-faq-q { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.rtia-faq-a { font-size: 0.85rem; color: #8B90B8; line-height: 1.7; }

/* Progress bar */
.rtia-progress-bar { height: 5px; background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden; }
.rtia-progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg,#6D28D9,#9D5FFF); }

/* Stats */
.rtia-stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr));
  gap: 1px; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; overflow: hidden;
  margin-bottom: 1.25rem;
}
.rtia-stat-box { background: #0F1021; padding: 1.125rem; text-align: center; }
.rtia-stat-box-icon { font-size: 1.1rem; color: #555A80; margin-bottom: 0.35rem; }
.rtia-stat-box-num {
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em;
  background: linear-gradient(135deg,#6D28D9,#9D5FFF);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.rtia-stat-box-lbl { font-size: 0.6rem; color: #2E3255; margin-top: 0.2rem; text-transform: uppercase; letter-spacing: 0.09em; font-weight: 700; }

/* Ref box */
.rtia-ref-box { display: flex; gap: 0.5rem; }

/* Reward cards */
.rtia-reward-card {
  background: #0F1021; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 1.25rem; text-align: center; display: flex;
  flex-direction: column; align-items: center;
}
.rtia-reward-card.rtia-reward-unlocked { border-color: rgba(124,58,237,0.3); background: rgba(124,58,237,0.05); }
.rtia-reward-icon { font-size: 1.75rem; color: #555A80; margin-bottom: 0.5rem; }
.rtia-reward-unlocked .rtia-reward-icon { color: #B48EFF; }
.rtia-reward-name { font-weight: 800; font-size: 0.9rem; margin-bottom: 0.25rem; letter-spacing: -0.01em; }
.rtia-reward-req { font-size: 0.75rem; color: #555A80; margin-bottom: 0.5rem; }

/* Posts table */
.rtia-posts-table-wrap { overflow-x: auto; }
.rtia-posts-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.rtia-posts-table th {
  background: rgba(255,255,255,0.03); padding: 0.6rem 0.875rem;
  text-align: left; font-size: 0.6rem; text-transform: uppercase;
  letter-spacing: 0.09em; color: #2E3255; border-bottom: 1px solid rgba(255,255,255,0.07);
  font-weight: 700;
}
.rtia-posts-table td { padding: 0.75rem 0.875rem; border-bottom: 1px solid rgba(255,255,255,0.05); color: #8B90B8; }
.rtia-posts-table tr:last-child td { border-bottom: none; }
.rtia-posts-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Responsive */
@media (max-width: 768px) {
  .rtia-hero { padding: 3rem 0 2.5rem; }
  .rtia-earn-grid { grid-template-columns: 1fr; }
  .rtia-stats-grid { grid-template-columns: 1fr 1fr; }
}
