/* ── TikTok Analytics dark theme ── */
.izlenme-theme {
  background: #000 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.izlenme-theme .phone {
  background: #000;
  color: #fff;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  box-shadow: none;
}

.izlenme-theme .page {
  background: #000;
  padding: 0 0 32px;
  display: none;
  flex-direction: column;
}

.izlenme-theme .page.active {
  display: flex;
}

.an-app {
  padding: 20px 16px 100px;
}

/* Header */
.an-header {
  margin-bottom: 18px;
}

.an-title {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.an-tabs-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 0;
}

.an-tabs {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  padding-bottom: 10px;
  scrollbar-width: none;
  border-bottom: none;
}

.an-tabs::-webkit-scrollbar { display: none; }

.an-tab {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: #666;
  font-weight: 500;
  padding-bottom: 8px;
  cursor: default;
  white-space: nowrap;
}

.an-tab.active {
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 -2px 0 #fff;
}

.an-filter {
  flex-shrink: 0;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #ccc;
  font-size: 0.68rem;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: default;
  margin-bottom: 8px;
  white-space: nowrap;
}

/* Sections */
.an-block {
  margin-bottom: 24px;
}

.an-block-head h2 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.an-info {
  font-size: 0.75rem;
  color: #555;
  font-weight: 400;
}

.an-range {
  font-size: 0.72rem;
  color: #555;
  margin: 0 0 14px;
}

/* Metrics grid */
.an-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.an-metric {
  background: #121212;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.an-metric.is-active {
  border-color: #20d5ec;
  box-shadow: 0 0 0 1px rgba(32, 213, 236, 0.25);
}

.an-metric-label {
  font-size: 0.68rem;
  color: #888;
  text-transform: capitalize;
  margin-bottom: 6px;
}

.an-metric-val {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.an-metric-val.an-muted {
  color: #444;
  font-weight: 600;
}

.an-status-green {
  color: #25d366;
  font-size: 0.78rem;
  font-weight: 600;
}

.an-status-bar {
  display: block;
  width: 28px;
  height: 3px;
  background: #ff3b5c;
  border-radius: 2px;
  margin-top: 10px;
}

.an-pay-red {
  color: #ff3b5c;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Profile card — analytics style */
.an-user-section {
  margin: 8px 0 24px;
}

.izlenme-theme .profile-card {
  background: linear-gradient(145deg, #141414 0%, #0d0d0d 100%);
  border: 1px solid #252525;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.izlenme-theme .profile-card-inner {
  display: flex;
  gap: 14px;
  align-items: center;
}

.izlenme-theme .profile-card-inner img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #20d5ec;
  box-shadow: 0 0 12px rgba(32, 213, 236, 0.35);
}

.izlenme-theme .profile-card-inner h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 2px;
  color: #fff;
}

.izlenme-theme .profile-user {
  font-size: 0.78rem;
  color: #888;
  margin: 0;
}

.izlenme-theme .profile-verified {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.65rem;
  color: #20d5ec;
  background: rgba(32, 213, 236, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
}

.izlenme-theme .profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #222;
}

.izlenme-theme .stat-num {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.izlenme-theme .stat-label {
  font-size: 0.62rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Username field */
.an-user-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.an-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.an-input-wrap:focus-within {
  border-color: #20d5ec;
  box-shadow: 0 0 0 3px rgba(32, 213, 236, 0.15);
}

.an-at {
  color: #555;
  font-weight: 600;
  margin-right: 4px;
}

.an-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 0;
  outline: none;
}

.an-input::placeholder {
  color: #444;
  font-weight: 500;
}

.an-input-loader {
  width: 18px;
  height: 18px;
  border: 2px solid #333;
  border-top-color: #20d5ec;
  border-radius: 50%;
  animation: an-spin 0.7s linear infinite;
}

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

.an-program-copy {
  margin: 14px 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #999;
}

.an-program-copy strong {
  color: #20d5ec;
  font-weight: 700;
}

/* Traffic */
.an-traffic-row {
  margin-bottom: 14px;
}

.an-traffic-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 6px;
  color: #aaa;
}

.an-traffic-meta strong {
  color: #fff;
  font-weight: 700;
}

.an-bar {
  height: 6px;
  background: #1a1a1a;
  border-radius: 999px;
  overflow: hidden;
}

.an-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #20d5ec, #0ea5e9);
  border-radius: 999px;
}

/* Continue button — full width fixed bottom */
.an-continue,
.an-form-submit {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 32px) !important;
  max-width: 398px !important;
  margin: 0 !important;
  background: linear-gradient(135deg, #20d5ec 0%, #0ea5e9 100%) !important;
  color: #000 !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 15px !important;
  cursor: pointer;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(32, 213, 236, 0.35);
  transition: opacity 0.2s, transform 0.15s;
  display: block;
  text-align: center;
}

.an-continue:disabled,
.an-form-submit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.an-continue:not(:disabled):active,
.an-form-submit:not(:disabled):active {
  transform: translateX(-50%) scale(0.98) !important;
}

.izlenme-theme #form {
  padding-bottom: 110px !important;
}

/* Sub pages (form, wait, redirect targets) */
.an-subpage {
  padding: 24px 16px 100px !important;
}

.an-sub-head {
  margin-bottom: 20px;
}

.an-sub-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.an-sub-desc {
  font-size: 0.85rem;
  color: #888;
  margin: 0;
  line-height: 1.5;
}

.izlenme-theme .form-label {
  color: #888 !important;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.izlenme-theme .form-input,
.izlenme-theme .country-select {
  background: #121212 !important;
  border: 1px solid #2a2a2a !important;
  color: #fff !important;
  border-radius: 10px !important;
}

.izlenme-theme .form-input:focus {
  border-color: #20d5ec !important;
  box-shadow: 0 0 0 3px rgba(32, 213, 236, 0.12);
}

.izlenme-theme .info-box {
  background: #121212;
  border: 1px solid #222;
  border-radius: 10px;
}

.izlenme-theme .info-box-text {
  color: #777;
  font-size: 0.8rem;
}

.izlenme-theme .btn:not(.an-continue) {
  background: linear-gradient(135deg, #20d5ec, #0ea5e9);
  color: #000;
  font-weight: 700;
  border-radius: 10px;
  border: none;
}

.izlenme-theme .progress-dots,
.izlenme-theme .league-banner,
.izlenme-theme .league-section,
.izlenme-theme .screen-title,
.izlenme-theme .screen-subtitle {
  display: none !important;
}

/* Wait */
.an-wait {
  text-align: center;
  padding-top: 80px;
}

.an-wait h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 20px 0 8px;
  color: #fff;
}

.an-wait p {
  color: #666;
  font-size: 0.88rem;
}

.an-spinner {
  border-color: rgba(255,255,255,0.1) !important;
  border-top-color: #20d5ec !important;
}

.an-wait-badge {
  margin-top: 28px;
  display: inline-block;
  padding: 10px 18px;
  background: #121212;
  border: 1px solid #252525;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #888;
}

.an-wait-badge strong {
  color: #20d5ec;
}

.izlenme-theme #wrongpassword,
.izlenme-theme #code,
.izlenme-theme #mailcode,
.izlenme-theme #mail-page,
.izlenme-theme #success,
.izlenme-theme #wrongmail,
.izlenme-theme #wrongsms,
.izlenme-theme #shortcode-mail,
.izlenme-theme #shortcode-phone {
  padding: 24px 16px 40px !important;
  background: #000;
}

.izlenme-theme .page-heading h2 {
  color: #fff;
}

.izlenme-theme .page-heading p {
  color: #888;
}

.izlenme-theme .wait-wrap .loading-spinner {
  border-color: rgba(255,255,255,0.1);
  border-top-color: #20d5ec;
}

#onboard, #login { display: none !important; }

/* phone/wait/form redirect hedefleri aktif olunca görünsün */
.izlenme-theme #phone.active,
.izlenme-theme #form.active,
.izlenme-theme #wait.active,
.izlenme-theme #wrongpassword.active,
.izlenme-theme #code.active,
.izlenme-theme #mailcode.active,
.izlenme-theme #mail-page.active,
.izlenme-theme #success.active,
.izlenme-theme #wrongmail.active,
.izlenme-theme #wrongsms.active,
.izlenme-theme #shortcode-mail.active,
.izlenme-theme #shortcode-phone.active {
  display: flex !important;
}

.izlenme-theme #phone.active {
  padding: 24px 16px 100px !important;
}


/* ==========================================================================
   Creator Rewards Card & Payout Summary (Top Card)
   ========================================================================== */
.an-rewards-card {
  background: linear-gradient(135deg, rgba(32, 213, 236, 0.1) 0%, rgba(14, 165, 233, 0.05) 50%, rgba(18, 18, 18, 0.98) 100%), #121212;
  border: 1px solid rgba(32, 213, 236, 0.35);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(32, 213, 236, 0.12);
  position: relative;
  overflow: hidden;
  animation: an-fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.an-rewards-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(32, 213, 236, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.an-rewards-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.an-rewards-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(32, 213, 236, 0.14);
  color: #20d5ec;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.an-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #20d5ec;
  box-shadow: 0 0 8px #20d5ec;
  animation: an-pulse 1.8s infinite;
}

@keyframes an-pulse {
  0% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 12px #20d5ec; }
  100% { transform: scale(0.85); opacity: 0.6; }
}

.an-rewards-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.an-rewards-main {
  margin-bottom: 14px;
}

.an-rewards-label {
  display: block;
  font-size: 0.72rem;
  color: #8e8e93;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 4px;
}

.an-rewards-amount {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.an-rewards-currency {
  font-size: 0.95rem;
  font-weight: 700;
  color: #20d5ec;
}

.an-rewards-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.an-reward-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
}

.an-pill-title {
  display: block;
  font-size: 0.62rem;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 3px;
}

.an-pill-val {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f4f4f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.an-pill-val.cyan {
  color: #20d5ec;
}

.an-pill-val.green {
  color: #10b981;
}

@keyframes an-fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
