/* ViralThic — tampilan publik */

.vt-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 26px;
    max-width: 480px;
    margin: 0 auto 20px;
}

.vt-form-title { margin: 0 0 18px; font-size: 20px; font-weight: 700; }

.vt-invited {
    background: #eff6ff;
    color: #1e40af;
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 14px;
    margin: 0 0 18px;
}

.vt-field { margin-bottom: 15px; }
.vt-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #374151; }
.vt-optional { font-weight: 400; color: #9ca3af; }

.vt-input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    font-size: 15px;
    box-sizing: border-box;
    background: #fff;
    color: #111827;
}
.vt-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }

.vt-btn {
    background: #2563eb;
    color: #fff;
    border: 0;
    padding: 12px 22px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}
.vt-btn:hover { background: #1d4ed8; }
.vt-btn:disabled { opacity: .6; cursor: not-allowed; }

.vt-msg { margin-top: 14px; padding: 11px 14px; border-radius: 9px; font-size: 14px; }
.vt-msg-ok { background: #ecfdf5; color: #065f46; }
.vt-msg-error { background: #fef2f2; color: #991b1b; }

.vt-error { color: #991b1b; }
.vt-closed { text-align: center; color: #6b7280; }

/* Dashboard */
.vt-dash { max-width: 620px; margin: 0 auto; }

.vt-alert { padding: 12px 15px; border-radius: 9px; font-size: 14px; margin-bottom: 18px; }
.vt-alert-ok { background: #ecfdf5; color: #065f46; }
.vt-alert-warn { background: #fffbeb; color: #92400e; }

.vt-score {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    margin-bottom: 16px;
}
.vt-score-num { font-size: 46px; font-weight: 800; line-height: 1; }
.vt-score-label { font-size: 14px; opacity: .85; margin-top: 5px; }
.vt-score-pending { font-size: 13px; opacity: .8; margin-top: 10px; }

.vt-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 26px; }
.vt-stat {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}
.vt-stat-num { display: block; font-size: 22px; font-weight: 700; color: #111827; }
.vt-stat-label { display: block; font-size: 12px; color: #6b7280; margin-top: 3px; }

.vt-section { margin-bottom: 28px; }
.vt-section h4 { margin: 0 0 11px; font-size: 15px; font-weight: 700; color: #111827; }

.vt-copy { display: flex; gap: 8px; }
.vt-copy .vt-input { font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.vt-copy-btn { width: auto; white-space: nowrap; }
.vt-copy .vt-btn { width: auto; padding: 11px 18px; }

.vt-hint { font-size: 12.5px; color: #6b7280; margin: 8px 0 0; }

.vt-share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 9px; }
.vt-share {
    display: block;
    text-align: center;
    padding: 11px 8px;
    border-radius: 9px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.vt-share:hover { background: #e5e7eb; }
.vt-share.is-copied { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.vt-share-note { display: block; font-size: 10.5px; font-weight: 400; opacity: .65; margin-top: 2px; }

.vt-share-wa { background: #dcfce7; border-color: #bbf7d0; color: #14532d; }
.vt-share-fb { background: #dbeafe; border-color: #bfdbfe; color: #1e3a8a; }
.vt-share-tg { background: #e0f2fe; border-color: #bae6fd; color: #075985; }

.vt-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.vt-table th, .vt-table td { padding: 9px 11px; text-align: left; border-bottom: 1px solid #f3f4f6; }
.vt-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; font-weight: 600; }

.vt-history { list-style: none; margin: 0; padding: 0; }
.vt-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}
.vt-history-item.is-pending { opacity: .6; }
.vt-history-label em { font-style: normal; color: #9ca3af; font-size: 12.5px; margin-left: 5px; }
.vt-history-pts { font-weight: 700; color: #059669; white-space: nowrap; }
.vt-history-pts small { display: block; font-weight: 400; font-size: 10.5px; color: #9ca3af; }

@media (max-width: 480px) {
    .vt-box { padding: 20px; }
    .vt-score-num { font-size: 38px; }
    .vt-copy { flex-direction: column; }
    .vt-copy .vt-btn { width: 100%; }
}

/* ===== Milestone ===== */
.vt-progress { height: 11px; background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.vt-progress-sm { height: 7px; }
.vt-progress-bar { height: 100%; background: linear-gradient(90deg, #2563eb, #7c3aed); border-radius: 99px; transition: width .4s ease; }
.vt-progress-text { font-size: 13.5px; color: #374151; margin: 9px 0 0; }
.vt-slot { font-size: 12.5px; color: #6b7280; margin: 5px 0 0; }
.vt-slot.is-low { color: #dc2626; font-weight: 600; }

.vt-tiers { list-style: none; margin: 16px 0 0; padding: 0; }
.vt-tier {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 0; border-bottom: 1px solid #f3f4f6; font-size: 13.5px; color: #6b7280;
}
.vt-tier-mark {
    width: 19px; height: 19px; border-radius: 50%; flex: 0 0 19px;
    border: 2px solid #d1d5db; display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: #fff;
}
.vt-tier.is-done { color: #111827; }
.vt-tier.is-done .vt-tier-mark { background: #059669; border-color: #059669; }
.vt-tier-body { flex: 1; }
.vt-tier-body strong { display: block; font-size: 12px; color: #9ca3af; }
.vt-tier.is-done .vt-tier-body strong { color: #059669; }
.vt-tier-slot { font-size: 11.5px; color: #9ca3af; white-space: nowrap; }

/* ===== Peringkat ===== */
.vt-rank-box { display: flex; align-items: center; gap: 16px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 17px; }
.vt-rank-num { font-size: 32px; font-weight: 800; color: #2563eb; line-height: 1; }
.vt-rank-meta { font-size: 13px; color: #6b7280; line-height: 1.55; }
.vt-rank-gap { color: #d97706; }
.vt-rank-proj { color: #059669; font-weight: 600; }

/* ===== Leaderboard ===== */
.vt-lb { max-width: 560px; margin: 0 auto 22px; }
.vt-lb-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 11px; }
.vt-lb-head h4 { margin: 0; font-size: 16px; font-weight: 700; }
.vt-lb-state { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; }

.vt-lb-list { list-style: none; margin: 0; padding: 0; counter-reset: lb; }
.vt-lb-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 13px; border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 7px; background: #fff;
}
.vt-lb-item.is-top { border-color: #fcd34d; background: #fffbeb; }
.vt-lb-item.is-me { border-color: #2563eb; background: #eff6ff; }
.vt-lb-rank { width: 27px; text-align: center; font-weight: 800; color: #6b7280; flex: 0 0 27px; }
.vt-lb-item.is-top .vt-lb-rank { color: #b45309; }
.vt-lb-name { flex: 1; font-size: 14px; color: #111827; }
.vt-lb-name em { font-style: normal; font-size: 11px; background: #2563eb; color: #fff; padding: 1px 7px; border-radius: 9px; margin-left: 6px; }
.vt-lb-name small { display: block; font-size: 11.5px; color: #059669; margin-top: 2px; }
.vt-lb-pts { font-weight: 700; color: #111827; font-size: 15px; }
.vt-lb-you { background: #eff6ff; color: #1e40af; padding: 11px 14px; border-radius: 9px; font-size: 13.5px; margin-top: 9px; }

/* ===== Hadiah ===== */
.vt-claim { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 11px; padding: 15px; margin-bottom: 11px; }
.vt-claim-label { font-weight: 700; color: #065f46; font-size: 14.5px; margin-bottom: 10px; }
.vt-claim-rank { font-weight: 400; font-size: 11.5px; background: #059669; color: #fff; padding: 1px 8px; border-radius: 9px; margin-left: 6px; }
.vt-claim-note { font-size: 13px; color: #047857; margin: 0; }

.vt-btn-link { display: inline-block; width: auto; text-decoration: none; text-align: center; }
.vt-already { text-align: center; }

/* ===== Member area ===== */
.vt-member { margin: 22px 0; }
.vt-member-title { font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.vt-member-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.vt-member-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 10px; }
.vt-member-pts { font-weight: 700; color: #2563eb; white-space: nowrap; }
.vt-member-meta { font-size: 12.5px; color: #6b7280; margin: 7px 0 0; }
.vt-member-claims { margin: 12px 0; }
.vt-member-claim { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; padding: 6px 0; }
.vt-chip {
    background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 7px;
    padding: 4px 11px; font-size: 12px; font-weight: 600; font-family: ui-monospace, Menlo, monospace;
    cursor: pointer; text-decoration: none; color: #374151; white-space: nowrap;
}
.vt-chip.is-ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; font-family: inherit; }
.vt-chip.is-copied { background: #ecfdf5; color: #065f46; }
.vt-member-link { display: inline-block; margin-top: 10px; font-size: 13px; }

/* ===== Shortcode tunggal ===== */
.vt-app { max-width: 620px; margin: 0 auto; }
.vt-app .vt-box { max-width: none; }
.vt-form-desc { font-size: 14px; color: #4b5563; margin-bottom: 16px; }
.vt-tiers-preview { margin: 0 0 20px; border-top: 1px solid #f3f4f6; }
.vt-count { font-size: 11.5px; font-weight: 400; color: #d97706; background: #fffbeb; padding: 2px 9px; border-radius: 9px; margin-left: 7px; }

.vt-details { border: 1px solid #e5e7eb; border-radius: 11px; margin-bottom: 12px; background: #fff; }
.vt-details summary { padding: 13px 16px; cursor: pointer; font-size: 14px; font-weight: 600; color: #374151; list-style: none; }
.vt-details summary::-webkit-details-marker { display: none; }
.vt-details summary::after { content: '+'; float: right; color: #9ca3af; font-weight: 400; }
.vt-details[open] summary::after { content: '−'; }
.vt-details > *:not(summary) { padding: 0 16px 15px; }
.vt-details .vt-history-item:last-child { border-bottom: 0; }

.vt-app .vt-share-grid { margin-top: 13px; }
.vt-app .vt-lb { margin-bottom: 0; }
