/* ── Reset ──────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Headline ───────────────────────────────────────────────────────────────── */
.s2psms-headline-wrap {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 2rem;
    padding: 2rem 0 0;
}

.s2psms-headline-category {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #666666;
    margin-bottom: 1.2rem;
    font-family: Arial, Helvetica, sans-serif;
}

.s2psms-headline-title {
    font-family: Georgia, serif;
    font-size: 51.2px;
    font-weight: 700;
    color: #666666;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.s2psms-headline-title em {
    font-size: 51.2px;
    font-style: italic;
    font-weight: 700;
    color: #666666;
    display: block;
}

.s2psms-headline-subtitle p {
    font-family: Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 400;
    color: #666666;
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

/* ── Service intro ──────────────────────────────────────────────────────────── */
.s2psms-intro-wrap {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 2rem;
    padding: 0;
}

.s2psms-intro-body {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.92rem;
    color: #666666;
    line-height: 1.75;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.s2psms-intro-body p {
    margin: 0;
}

.s2psms-intro-body ul,
.s2psms-intro-body ol {
    margin: 0;
    padding-left: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.s2psms-intro-body li {
    line-height: 1.7;
    color: #666666;
}

.s2psms-intro-link {
    color: #1E3F7A;
    font-weight: 600;
    text-decoration: underline;
}

.s2psms-intro-link:hover {
    color: #4169A8;
}

.s2psms-intro-howto {
    background: #fff;
    border: 1px solid #B5D4F4;
    border-radius: 8px;
    padding: 1.1rem 1.4rem;
}

.s2psms-intro-howto h3 {
    font-family: Georgia, serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1E3F7A;
    margin: 0 0 0.75rem;
}

.s2psms-intro-howto ol li {
    color: #666666;
}

.s2psms-intro-howto code {
    background: #EBF0F8;
    color: #1E3F7A;
    font-size: 0.88rem;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

@media (max-width: 768px) {
    .s2psms-intro-wrap {
        padding: 0 10px;
    }
    .s2psms-intro-body {
        padding: 1.1rem 1.1rem;
        font-size: 0.88rem;
    }
}

/* ── Disclaimer ─────────────────────────────────────────────────────────────── */
.s2psms-disclaimer {
    max-width: 1200px;
    width: 100%;
    margin: 1rem auto 1.5rem;
    padding: 1.1rem 1.4rem;
    background: #EBF0F8;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    color: #666666;
    line-height: 1.65;
}

.s2psms-disclaimer p {
    margin: 0;
}

@media (max-width: 768px) {
    .s2psms-disclaimer {
        padding: 1rem;
        margin: 1rem 10px 1.5rem;
        width: auto;
    }
}

/* ── Live count ─────────────────────────────────────────────────────────────── */
.s2psms-live-count-wrap {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 0.75rem;
    padding: 0;
}

.s2psms-live-count {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 20px;
    font-size: 13px;
    color: #555;
    margin-bottom: 0.5rem;
    font-family: Arial, Helvetica, sans-serif;
}

.s2psms-count-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
    font-family: Arial, Helvetica, sans-serif;
}

.s2psms-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.s2psms-count-item.s2psms-dot-available .s2psms-pulse-dot {
    background: #1A9C56;
    box-shadow: 0 0 0 2px rgba(26, 156, 86, 0.25);
}

/* ── None available ─────────────────────────────────────────────────────────── */
.s2psms-none-available {
    max-width: 1200px;
    margin: 2rem auto;
    text-align: center;
    font-family: Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
    color: #888;
    padding: 2rem;
    border: 1px dashed #ddd;
    border-radius: 12px;
}

/* ── Loading ────────────────────────────────────────────────────────────────── */
#s2psms-cards-loading {
    text-align: center;
    padding: 1.5rem 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #666;
    font-size: 0.9rem;
}

#s2psms-cards-loading .s2psms-spinner {
    width: 40px;
    height: 40px;
    margin: 10px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0C6B3A;
    border-radius: 50%;
    animation: s2psms-spin 1s linear infinite;
}

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

/* ── Grid ───────────────────────────────────────────────────────────────────── */
.s2psms-reader-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 2rem;
    gap: 20px;
}

.s2psms-reader-grid.s2psms-center-1,
.s2psms-reader-grid.s2psms-center-2,
.s2psms-reader-grid.s2psms-last-row-1,
.s2psms-reader-grid.s2psms-last-row-2,
.s2psms-reader-grid.s2psms-last-row-3 {
    justify-content: center;
}

/* ── Card ───────────────────────────────────────────────────────────────────── */
.s2psms-reader-card {
    width: 220px;
    background: #fff;
    border: 0.5px solid #e0e0e0;
    border-radius: 12px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
}

.s2psms-reader-card:hover {
    border-color: #5AC88A;
}

/* ── Card header ────────────────────────────────────────────────────────────── */
.s2psms-card-header {
    position: relative;
    height: 170px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #77dd77, #004225);
    display: flex;
    justify-content: center;
    align-items: center;
}

.s2psms-card-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("https://soul2path.com/wp-content/uploads/headers/agenthead.webp");
    background-repeat: repeat-x;
    background-position: center;
    opacity: 0.5;
}

.s2psms-card-header a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.s2psms-card-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    border: 4px solid #004225;
    display: block;
    flex-shrink: 0;
}

/* ── Status pill ────────────────────────────────────────────────────────────── */
.s2psms-status-pill {
    position: absolute;
    top: 156px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 18px;
    border-radius: 100px;
    white-space: nowrap;
    z-index: 20;
    letter-spacing: 0.3px;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    pointer-events: none;
    background: #0C6B3A;
    color: #ffffff;
}

/* ── New reader ribbon ──────────────────────────────────────────────────────── */
.s2psms-ribbon-wrap {
    position: absolute;
    overflow: hidden;
    width: 120px;
    height: 120px;
    top: 0;
    left: 0;
    z-index: 3;
    pointer-events: none;
}

.s2psms-ribbon {
    position: absolute;
    text-align: center;
    transform: rotate(-45deg);
    width: 200px;
    top: 22px;
    left: -70px;
    background: #0C6B3A;
    color: #fff;
    padding: 2px 0;
    font-size: 8px;
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    font-family: Arial, Helvetica, sans-serif;
}

/* ── Featured badge ─────────────────────────────────────────────────────────── */
.s2psms-featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #004225;
    color: #fff;
    padding: 3px 10px;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 5;
    white-space: nowrap;
    font-family: Arial, Helvetica, sans-serif;
    pointer-events: none;
}

/* ── Card body ──────────────────────────────────────────────────────────────── */
.s2psms-card-body {
    padding: 22px 14px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.s2psms-reader-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* ── Stars ──────────────────────────────────────────────────────────────────── */
.s2psms-stars {
    display: flex;
    justify-content: center;
    gap: 2px;
}

.s2psms-star {
    width: 10px;
    height: 10px;
    clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
}

.s2psms-star-on   { background: #F5A623; }
.s2psms-star-half {
    background: linear-gradient(to right, #F5A623 50%, #E0E0E0 50%);
}
.s2psms-star-off  { background: #E0E0E0; }

/* ── Reader code ─────────────────────────────────────────────────────────────── */
.s2psms-phone-code {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
}

.s2psms-phone-code span {
    color: #0C6B3A;
    font-weight: 600;
}

/* ── Action buttons ─────────────────────────────────────────────────────────── */
.s2psms-card-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.s2psms-btn-sms {
    background: #0C6B3A;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 9px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: filter 0.15s;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none !important;
}

.s2psms-btn-sms svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    flex-shrink: 0;
}

.s2psms-btn-sms:hover   { filter: brightness(0.85); }
.s2psms-btn-sms:visited { color: #fff !important; }

.s2psms-btn-profile {
    background: transparent;
    color: #0C6B3A !important;
    border: 0.5px solid #9ED8BA;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 0;
    cursor: pointer;
    display: block;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none !important;
    transition: background 0.15s, border-color 0.15s;
}

.s2psms-btn-profile:hover   { background: #EBF8F1; border-color: #0C6B3A; }
.s2psms-btn-profile:visited { color: #0C6B3A !important; }

/* ── Refresh message ────────────────────────────────────────────────────────── */
.s2psms-refresh-msg {
    width: 100%;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #999;
    margin-top: 1rem;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .s2psms-headline-wrap {
        width: 100%;
        padding: 1.5rem 10px 0;
    }
    .s2psms-live-count-wrap {
        padding: 0 10px;
    }
    .s2psms-headline-title {
        font-size: 2.4rem;
    }
    .s2psms-headline-title em {
        font-size: 32px;
    }
    .s2psms-headline-subtitle p {
        font-size: 1rem;
    }
    .s2psms-reader-grid {
        padding: 0 10px 1rem;
        gap: 16px;
    }
    .s2psms-reader-card {
        width: calc(50% - 8px);
    }
    .s2psms-card-body {
        padding: 22px 10px 12px;
        gap: 6px;
    }
    .s2psms-reader-name {
        font-size: 0.9rem;
    }
    .s2psms-phone-code {
        font-size: 0.72rem;
    }
    .s2psms-btn-sms,
    .s2psms-btn-profile {
        font-size: 0.75rem;
        padding: 8px 0;
    }
}

@media (max-width: 420px) {
    .s2psms-reader-card {
        width: calc(100% - 20px);
    }
}
