:root {
    --bg: #0e1a2b;
    --pink: #f4b6cb;
    --pink-100: #ffe3ee;
    --blue: #a7cff5;
    --blue-100: #e5f0ff;
    --text: #0b1220;
    --muted: #5a6a86;
    --primary: #6c5ce7;
    --primary-700: #4c3bd1;
    --surface: #ffffff14
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background: #eef3ff;
    color: #111
}

header.container {
    padding: 24px 16px;
    text-align: center;
    background: #1f3a93;
    color: #fff
}

h1 {
    margin: 0;
    font-size: 28px
}

.subtitle {
    margin: 6px 0 14px;
    color: #d7e2ff
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 16px
}

.primary {
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer
}

.primary:hover {
    background: var(--primary-700)
}

.secondary {
    background: #e7ecf9;
    color: #10204c;
    border: 0;
    border-radius: 10px;
    padding: 10px 16px
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px
}

.card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(17, 52, 97, .18);
    background: #fff;
    border: 1px solid #e6edff;
    width: 75%;
    justify-self: center
}

.card .top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px
}

.card.f .top {
    background: var(--pink-100)
}

.card.m .top {
    background: var(--blue-100)
}

.card .top .left {
    display: flex;
    align-items: center;
    gap: 10px
}

.card .top .center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1
}

.gender {
    font-size: 18px
}

.card .meta {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #37486b;
    font-size: 14px
}

.card .meta .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6b7fb1;
    display: inline-block
}

.card .content {
    background: #fff;
    padding: 14px 16px;
    color: #0d1325
}

.card .stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #38507e;
    padding: 10px 14px;
    background: #fff;
    border-top: 1px solid #e6edff
}

.stats .actions {
    display: flex;
    gap: 14px;
    align-items: center
}

.icon-btn {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #536791;
    font-size: 18px
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #00000012;
    color: #0d1325;
    font-weight: 600
}

.badge .pill {
    font-weight: 700
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px
}

.rating button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 18px
}

.rating .value {
    min-width: 30px;
    text-align: center;
    font-weight: 700
}

.dialogo {
    border: 0;
    border-radius: 16px;
    max-width: 720px;
    width: 92vw;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .25)
}

.dialogo::backdrop {
    background: rgba(10, 22, 49, .45)
}

.dialogo form {
    padding: 16px
}

.dialogo h2 {
    margin: 0 0 12px
}

.dialogo .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px
}

@media (max-width:640px) {
    .dialogo .row {
        grid-template-columns: 1fr
    }
}

@media (max-width:640px) {
    .card {
        width: 100%
    }
}

label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #253b6a;
    font-weight: 600
}

input,
select,
textarea {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #c8d6ff;
    background: #fff;
    outline: none
}

textarea {
    resize: vertical
}

.acciones {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 12px
}

.comment-box {
    display: flex;
    gap: 8px;
    margin-top: 8px
}

.comment-box input {
    flex: 1
}

.comments {
    padding: 10px 16px;
    border-top: 1px dashed #dbe4ff;
    background: #fbfdff
}

.comment {
    padding: 6px 0;
    color: #1a2b4d
}

.muted {
    color: #6b7fb1
}

.country {
    font-weight: 700
}

.confession-text {
    white-space: pre-wrap
}

/* Comments modal */
.cm-container {
    padding: 0
}

.cm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #e6edff
}

.cm-body {
    padding: 12px 14px
}

.cm-comments {
    padding: 10px 14px;
    border-top: 1px dashed #dbe4ff;
    max-height: 40vh;
    overflow: auto
}

.cm-form {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid #e6edff
}

.cm-form input {
  flex: 1
}

/* Loading indicator styles */
.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  color: #6b7fb1;
  font-style: italic;
  animation: pulse 1.5s ease-in-out infinite;
}

.loading-indicator::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid #e6edff;
  border-top: 2px solid #6c5ce7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* End of content indicator */
.end-indicator {
  text-align: center;
  padding: 20px;
  color: #9ca3af;
  font-size: 14px;
  font-style: italic;
}