/* Page-specific styles for Temp Number (/temp-number) */

.tn-spinner-lg {
  width: 1.75rem;
  height: 1.75rem;
  border-width: 2px;
}

.tn-toast-wrap {
  z-index: 9999;
}

.tn-copy-fallback-input {
  position: fixed;
  left: -999999px;
  top: -999999px;
}

/* Step-by-step guide for the logged-out state (①②③④): one line per step, easier to scan than a paragraph */
.tn-login-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tn-login-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tn-login-step-num {
  flex-shrink: 0;
  color: #00a76a;
  font-weight: 700;
}

[data-bs-theme="dark"] .tn-login-step-num {
  color: #4ce0a8;
}

/* The "help" icon next to the points balance: a plain informational entry
   point, not an action button, so it skips .btn-action-tool's filled-
   background style. Uses the brand green as an eye-catching color, matching
   the points card's own green tone, so users notice it opens the rules. */
.tn-help-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  background: transparent;
  color: #00a76a;
  transition: transform 0.15s ease-in-out;
}

.tn-help-icon-btn:hover {
  transform: scale(1.15);
}

[data-bs-theme="dark"] .tn-help-icon-btn {
  color: #4ce0a8;
}

/* Count badge in the top-right corner of the history button */
#btnTnHistoryOpen {
  position: relative;
}

.tn-history-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #d63939;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

/* Points balance display: a light green-tinted card that turns the points value from plain text into weighty "data" */
.tn-points-display {
  background: rgba(0, 209, 132, 0.07);
  border: 1px solid rgba(0, 209, 132, 0.16);
  border-radius: 14px;
  padding: 14px 16px;
}

[data-bs-theme="dark"] .tn-points-display {
  background: rgba(0, 209, 132, 0.1);
  border-color: rgba(0, 209, 132, 0.22);
}

.tn-points-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: #00a76a;
  letter-spacing: -0.02em;
}

[data-bs-theme="dark"] .tn-points-value {
  color: #4ce0a8;
}

/* Primary CTA button: switched to a brand-green gradient + shadow, set apart from Bootstrap's default blue to emphasize this is the page's key action */
.tn-claim-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #00d184, #00a76a);
  border: none;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 209, 132, 0.35);
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.tn-claim-btn:hover,
.tn-claim-btn:focus {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 209, 132, 0.45);
}

.tn-claim-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 209, 132, 0.35);
}

.tn-hero {
  background: linear-gradient(180deg, rgba(0, 209, 132, 0.06) 0%, rgba(0, 209, 132, 0) 100%);
}

.tn-hero-badge {
  background: rgba(0, 209, 132, 0.12);
  color: #00a76a;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 999px;
}

[data-bs-theme="dark"] .tn-hero-badge {
  background: rgba(0, 209, 132, 0.18);
  color: #4ce0a8;
}

.tn-hero-subtitle {
  max-width: 640px;
}

.tn-panel {
  background: var(--tblr-bg-surface, #ffffff);
  border: 1px solid var(--tblr-border-color, #e6e8ec);
  border-radius: 16px;
  padding: 20px;
}

.tn-panel-header {
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8ec);
}

/* Fixed minimum height to hold the page open (paginated at up to 10 rows, no inner scroll needed), so it lines up with the sidebar ad slot */
.tn-message-list {
  min-height: 620px;
}

.tn-message-row {
  padding: 8px 0;
}

.tn-message-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--tblr-secondary-color, #6c757d);
  margin-bottom: 4px;
}

.tn-message-from,
.tn-message-to {
  color: var(--tblr-primary, #0d6efd);
  font-weight: 600;
}

.tn-message-bubble {
  background: var(--tblr-bg-surface-secondary, rgba(98, 105, 118, 0.08));
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--tblr-body-color);
  word-break: break-word;
}

.tn-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-top: 14px;
  margin-top: 8px;
  border-top: 1px solid var(--tblr-border-color, #e6e8ec);
}

.tn-page-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--tblr-border-color, #e6e8ec);
  background: var(--tblr-bg-surface, #ffffff);
  color: var(--tblr-body-color);
  font-size: 0.8rem;
}

.tn-page-btn.active {
  background: #00d184;
  border-color: #00d184;
  color: #ffffff;
}

/* The sticky unit is the whole right-hand column (status card + ad), not just
   the status card alone — otherwise the ad, as normal-flow content below the
   card, would keep scrolling up past the sticky card and cover it. */
.tn-sticky-column {
  position: sticky;
  top: 90px;
}

.tn-active-flag {
  width: 32px;
  height: 24px;
  flex-shrink: 0;
}

.tn-countdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--tblr-bg-surface-secondary, rgba(98, 105, 118, 0.06));
  border-radius: 10px;
  padding: 10px 14px;
}

.tn-countdown #tnCountdown {
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
}

/* The tool buttons next to the number (copy/refresh/switch/end) need a filled
   background by default, not only on hover. .btn-action-tool/.btn-tool-* are
   shared classes from common.css (also used on the temp-mail page), so these
   overrides are scoped to specific button IDs rather than the shared classes
   themselves, to avoid affecting other pages. */
#btnTnCopy.btn-tool-secondary {
  background: rgba(98, 105, 118, 0.1);
  border-color: rgba(98, 105, 118, 0.25);
}

#btnTnRefresh.btn-tool-success {
  background: rgba(47, 179, 68, 0.12);
  border-color: rgba(47, 179, 68, 0.25);
}

#btnTnSwitch.btn-tool-warning {
  background: rgba(245, 159, 0, 0.12);
  border-color: rgba(245, 159, 0, 0.25);
}

#btnTnRelease.btn-tool-danger {
  background: rgba(214, 57, 57, 0.12);
  border-color: rgba(214, 57, 57, 0.25);
}

.tn-history-card {
  transition: border-color 0.15s ease-in-out;
}

.tn-history-card:hover {
  border-color: rgba(0, 209, 132, 0.35) !important;
}

.tn-history-flag {
  width: 24px;
  height: 18px;
}

.tn-history-phone {
  font-size: 0.85rem;
}

.tn-history-time {
  font-size: 0.72rem;
  flex-shrink: 0;
}

/* Fixed height for the history modal, so a long list can't stretch the whole modal taller than the viewport */
#tnHistoryListContainer {
  max-height: 380px;
  overflow-y: auto;
}

#btnTnCheckin:disabled {
  opacity: 0.6;
}

/* Upgrade banner: private-number starting-price teaser */
.tn-upgrade-banner {
  background: linear-gradient(135deg, rgba(245, 159, 0, 0.08), rgba(245, 159, 0, 0.02));
  border: 1px solid rgba(245, 159, 0, 0.2);
}

.tn-upgrade-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #a15c00;
}

[data-bs-theme="dark"] .tn-upgrade-price {
  color: #f5b74a;
}

/* "How it works" 3-step cards */
.tn-howto-card {
  background: var(--tblr-bg-surface, #ffffff);
  border: 1px solid var(--tblr-border-color, #e6e8ec);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
}

.tn-howto-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 209, 132, 0.1);
  color: #00a76a;
  margin-bottom: 14px;
}

[data-bs-theme="dark"] .tn-howto-icon {
  color: #4ce0a8;
}

/* Compatible-platforms icon wall */
.tn-platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 767.98px) {
  .tn-platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tn-platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--tblr-bg-surface, #ffffff);
  border: 1px solid var(--tblr-border-color, #e6e8ec);
  border-radius: 14px;
  padding: 20px 12px;
}

.tn-platform-icon {
  width: 32px;
  height: 32px;
  font-size: 32px;
  color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tn-platform-name {
  font-size: 0.8rem;
  color: var(--tblr-secondary-color, #6c757d);
  font-weight: 500;
}

/* Feature highlight cards */
.tn-feature-card {
  background: var(--tblr-bg-surface, #ffffff);
  border: 1px solid var(--tblr-border-color, #e6e8ec);
  border-radius: 16px;
  padding: 20px;
}

.tn-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 209, 132, 0.1);
  color: #00a76a;
  margin-bottom: 12px;
}

[data-bs-theme="dark"] .tn-feature-icon {
  color: #4ce0a8;
}
