
.search-container {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 32px;
  padding: 40px 0;
  align-items: start;
}


.main-info-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0.002) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  padding: 36px 32px;
  border-radius: var(--radius-md);
  height: fit-content;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px; 
}

.phone-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.phone-display {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  margin: 8px 0 20px 0;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}


.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-unknown { 
  background: rgba(255, 255, 255, 0.03); 
  color: var(--muted); 
  border: 1px solid var(--border); 
}
.status-spam { 
  background: rgba(239, 68, 68, 0.06); 
  color: #ff6060; 
  border: 1px solid rgba(239, 68, 68, 0.15); 
}
.status-safe { 
  background: rgba(16, 185, 129, 0.06); 
  color: #10b981; 
  border: 1px solid rgba(16, 185, 129, 0.15); 
}
.status-neutral { 
  background: rgba(245, 158, 11, 0.06); 
  color: #f59e0b; 
  border: 1px solid rgba(245, 158, 11, 0.15); 
}


.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: rgba(0, 0, 0, 0.15);
  padding: 18px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.2s var(--ease);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.01);
  border-color: rgba(133, 102, 255, 0.2);
}

.stat-num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}


.ratings-breakdown h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--muted);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 14px;
  color: var(--muted);
}

.breakdown-row:last-child {
  border-bottom: none;
}

.breakdown-row span:last-child {
  font-weight: 700;
  color: #ffffff;
}


.comments-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.005) 0%, rgba(0, 0, 0, 0) 100%);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.comments-box h3 {
  font-size: 24px;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 28px;
  color: #ffffff;
  letter-spacing: -0.02em;
}


.comment-form label {
  display: block;
  margin: 20px 0 8px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.comment-form label:first-of-type {
  margin-top: 0;
}


.comment-form select, 
.comment-form textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s var(--ease);
}

.comment-form select:focus, 
.comment-form textarea:focus {
  border-color: rgba(133, 102, 255, 0.4);
}

.comment-form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  background: linear-gradient(180deg, #a38fff 0%, var(--accent) 100%);
  color: #ffffff;
  border: 1px solid rgba(133, 102, 255, 0.3);
  padding: 14px 32px;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 24px;
  box-shadow: 0 8px 20px rgba(133, 102, 255, 0.15);
  transition: all 0.2s var(--ease);
}

.btn-submit:hover { 
  filter: brightness(1.1); 
  box-shadow: 0 12px 28px rgba(133, 102, 255, 0.25);
  transform: translateY(-1px);
}


.comment-card {
  background: rgba(0, 0, 0, 0.15);
  padding: 24px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-left: 3px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s var(--ease);
}

.comment-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.005);
}


.comment-card.border-spam { border-left-color: #ef4444; }
.comment-card.border-safe { border-left-color: #10b981; }
.comment-card.border-neutral { border-left-color: #f59e0b; }

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.comment-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-spam { background: rgba(239, 68, 68, 0.06); color: #ff6060; border: 1px solid rgba(239, 68, 68, 0.15); }
.tag-safe { background: rgba(16, 185, 129, 0.06); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.15); }
.tag-neutral { background: rgba(245, 158, 11, 0.06); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.15); }

.comment-date { 
  color: var(--muted); 
  font-size: 13px;
  font-weight: 500;
}

.comment-text { 
  font-size: 15px; 
  color: var(--muted); 
  line-height: 1.65;
}

.no-comments { 
  color: var(--muted); 
  font-style: italic; 
  text-align: center; 
  padding: 48px 0; 
  font-size: 14.5px;
}


@media (max-width: 1024px) {
  .search-container {
    gap: 24px;
  }
  .main-info-box {
    padding: 28px 24px;
  }
  .comments-box {
    padding: 32px 24px;
  }
}

@media (max-width: 850px) {
  .search-container {
    grid-template-columns: 1fr; 
    gap: 32px;
  }
  
  .main-info-box {
    position: static; 
    width: 100%;
  }
}

@media (max-width: 480px) {
  .phone-display {
    font-size: 30px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr; 
    gap: 12px;
  }
  
  .comment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .btn-submit {
    width: 100%;
    text-align: center;
  }
}

.phone-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
}

.btn-flag {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}

.btn-flag:hover {
    color: #b91c1c;
    transform: scale(1.1);
}

/* Cleaned up Header Row Alignment */
.phone-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    min-height: 40px; /* Forces row to be at least the height of the button */
}

/* Ensure the display text aligns perfectly */
.phone-display {
    margin: 0 !important;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Flag Button - Perfectly centered with the text */
.btn-flag {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.btn-flag:hover {
    background: #ef4444;
    color: #ffffff;
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .phone-display { font-size: 24px; }
    .btn-flag { width: 32px; height: 32px; font-size: 14px; }
}

.fi {
    width: 1.5em;
    height: 1.1em;
    display: inline-block;
    background-size: cover;
}

/* Disabled state for the flag */
.btn-disabled {
    background: rgba(107, 114, 128, 0.1) !important;
    border: 1px solid rgba(107, 114, 128, 0.2) !important;
    color: #6b7280 !important;
    cursor: pointer;
    opacity: 0.8;
}

.btn-disabled:hover {
    transform: none !important;
    filter: none !important;
}

/* Ensure the flag icon itself inherits the color correctly */
.btn-flag i {
    pointer-events: none;
}

.toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981; /* Green color for success/thanks */
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: opacity 0.5s ease;
}