/* ════════════════════════════════════════════════
   BOI TINH YEU — Frontend CSS
   Font: Nunito (Google Fonts)
════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Playfair+Display:wght@700;800&display=swap');

/* ── VARIABLES ─────────────────────────────── */
:root {
    --bty-purple:     #7c3aed;
    --bty-purple-2:   #6d28d9;
    --bty-pink:       #ec4899;
    --bty-rose:       #f43f5e;
    --bty-blue:       #3b82f6;
    --bty-green:      #10b981;
    --bty-orange:     #f59e0b;
    --bty-red:        #ef4444;
    --bty-gray-50:    #f9fafb;
    --bty-gray-100:   #f3f4f6;
    --bty-gray-200:   #e5e7eb;
    --bty-gray-400:   #9ca3af;
    --bty-gray-600:   #4b5563;
    --bty-gray-800:   #1f2937;
    --bty-white:      #ffffff;
    --bty-radius:     16px;
    --bty-radius-sm:  10px;
    --bty-shadow:     0 4px 24px rgba(0,0,0,.08);
    --bty-shadow-md:  0 8px 32px rgba(0,0,0,.12);
    --bty-grad:       linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    --bty-font:       'Nunito', sans-serif;
}

/* ── WRAP ──────────────────────────────────── */
.bty-wrap {
    font-family: var(--bty-font);
    max-width: 900px;
    margin: 0 auto;
    color: var(--bty-gray-800);
    line-height: 1.6;
}
.bty-wrap *, .bty-wrap *::before, .bty-wrap *::after {
    box-sizing: border-box;
}

/* ── FORM SECTION ──────────────────────────── */
.bty-form-section {
    background: var(--bty-white);
    border-radius: 24px;
    padding: 40px 36px 32px;
    box-shadow: var(--bty-shadow-md);
    border: 1px solid var(--bty-gray-100);
}

/* Header */
.bty-form-header {
    text-align: center;
    margin-bottom: 32px;
}
.bty-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem !important;
    font-weight: 800 !important;
    background: var(--bty-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 16px !important;
    line-height: 1.2 !important;
}
.bty-title-emoji {
    -webkit-text-fill-color: initial;
    margin-right: 6px;
}
.bty-stats-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.bty-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .9rem;
    color: var(--bty-gray-600);
    background: var(--bty-gray-50);
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid var(--bty-gray-200);
}
.bty-stat svg { width: 16px; height: 16px; flex-shrink: 0; }
.bty-stat strong { color: var(--bty-gray-800); }
.bty-stars { color: #f59e0b; letter-spacing: 1px; }

/* Persons grid */
.bty-persons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 640px) {
    .bty-persons-grid { grid-template-columns: 1fr; }
    .bty-form-section { padding: 24px 20px; }
    .bty-main-title { font-size: 1.5rem !important; }
}

/* Person card */
.bty-person-card {
    background: var(--bty-gray-50);
    border: 1.5px solid var(--bty-gray-200);
    border-radius: var(--bty-radius);
    padding: 20px;
}
.bty-person-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.bty-person-emoji { font-size: 1.3rem; }
.bty-person-header h3 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--bty-purple) !important;
    margin: 0 !important;
}

/* Fields */
.bty-field { margin-bottom: 14px; }
.bty-field:last-child { margin-bottom: 0; }
.bty-field label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--bty-gray-600);
    margin-bottom: 6px;
}
.bty-label-icon { font-size: 1rem; }
.bty-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--bty-gray-200);
    border-radius: var(--bty-radius-sm);
    font-family: var(--bty-font);
    font-size: .95rem;
    color: var(--bty-gray-800);
    background: var(--bty-white);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.bty-input:focus {
    border-color: var(--bty-purple);
    box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
.bty-input-date { cursor: pointer; }

/* Submit button */
.bty-submit-wrap { margin-bottom: 20px; }
.bty-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--bty-grad);
    color: var(--bty-white);
    border: none;
    border-radius: var(--bty-radius);
    font-family: var(--bty-font);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(124,58,237,.35);
    letter-spacing: .3px;
}
.bty-submit-btn:hover {
    opacity: .92;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(124,58,237,.45);
}
.bty-submit-btn:active { transform: translateY(0); }
.bty-submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* Disclaimer */
.bty-disclaimer {
    font-size: .8rem !important;
    color: var(--bty-gray-400) !important;
    line-height: 1.6 !important;
    border-top: 1px dashed var(--bty-gray-200);
    padding-top: 16px;
    margin: 0 !important;
}
.bty-disclaimer strong { color: var(--bty-gray-600); }

/* ── LOADING ───────────────────────────────── */
.bty-loading {
    background: var(--bty-white);
    border-radius: 24px;
    padding: 60px 36px;
    box-shadow: var(--bty-shadow-md);
    text-align: center;
}
.bty-heart-pulse {
    font-size: 3.5rem;
    animation: btyHeartbeat 1.2s ease-in-out infinite;
    display: block;
    margin-bottom: 20px;
}
@keyframes btyHeartbeat {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.25); }
}
.bty-loading-title {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--bty-purple) !important;
    margin: 0 0 8px !important;
}
.bty-loading-sub {
    font-size: .9rem !important;
    color: var(--bty-gray-400) !important;
    margin: 0 0 24px !important;
}
.bty-loading-bar {
    background: var(--bty-gray-100);
    border-radius: 50px;
    height: 6px;
    overflow: hidden;
    max-width: 320px;
    margin: 0 auto;
}
.bty-loading-fill {
    height: 100%;
    background: var(--bty-grad);
    border-radius: 50px;
    animation: btyLoadingBar 2s ease-in-out infinite;
}
@keyframes btyLoadingBar {
    0%   { width: 0%; margin-left: 0; }
    50%  { width: 70%; margin-left: 0; }
    100% { width: 0%; margin-left: 100%; }
}

/* ── ERROR ─────────────────────────────────── */
.bty-error-box {
    background: #fff5f5;
    border: 1.5px solid #fecaca;
    border-radius: var(--bty-radius);
    padding: 28px 24px;
    text-align: center;
}
.bty-error-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.bty-error-box p { color: var(--bty-red) !important; font-weight: 600 !important; margin: 0 0 16px !important; }
.bty-retry-btn {
    background: var(--bty-red);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--bty-radius-sm);
    font-family: var(--bty-font);
    font-weight: 700;
    cursor: pointer;
    font-size: .95rem;
}

/* ── RESULT ────────────────────────────────── */
.bty-result {
    background: var(--bty-white);
    border-radius: 24px;
    box-shadow: var(--bty-shadow-md);
    overflow: hidden;
}

/* Result Header */
.bty-result-header {
    background: var(--bty-grad);
    padding: 40px 36px 48px;
    text-align: center;
    color: white;
    position: relative;
}
.bty-result-names {
    font-size: 2rem;
    opacity: .95;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: .3px;
    color: #fff;
}

/* Score circle */
.bty-score-circle-wrap { display: flex; flex-direction: column; align-items: center; margin-bottom: 16px; }
.bty-score-circle {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 12px;
}
.bty-circle-svg {
    width: 140px;
    height: 140px;
    transform: rotate(-90deg);
}
.bty-circle-bg {
    fill: none;
    stroke: rgba(255,255,255,.2);
    stroke-width: 8;
}
.bty-circle-fill {
    fill: none;
    stroke: white;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 327;
    stroke-dashoffset: 327;
    transition: stroke-dashoffset 1.5s cubic-bezier(.4,0,.2,1);
}
.bty-score-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 2px;
}
.bty-score-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}
.bty-score-pct { font-size: 1.2rem; color: rgba(255,255,255,.8); font-weight: 700; align-self: flex-end; margin-bottom: 4px; }
.bty-score-label {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 !important;
    letter-spacing: .3px;
    text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.bty-result-summary {
    font-size: 1.05rem;
    color: #ffffff;
    max-width: 540px;
    margin: 16px auto 0 !important;
    line-height: 1.7;
    opacity: .95;
}

/* Sections */
.bty-section {
    padding: 32px 36px;
    border-bottom: 1px solid var(--bty-gray-100);
}
.bty-section:last-child { border-bottom: none; }
.bty-section-title {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: var(--bty-gray-800) !important;
    margin: 0 0 20px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Numerology grid */
.bty-numerology-section { background: var(--bty-gray-50); }
.bty-numerology-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.bty-num-card {
    background: white;
    border-radius: var(--bty-radius-sm);
    padding: 16px 18px;
    border: 1px solid var(--bty-gray-200);
}
.bty-num-card-title {
    font-size: .8rem;
    font-weight: 700;
    color: var(--bty-purple);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
}
.bty-num-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid var(--bty-gray-100);
    font-size: .88rem;
}
.bty-num-row:last-child { border-bottom: none; }
.bty-num-label { color: var(--bty-gray-600); }
.bty-num-value {
    font-weight: 800;
    font-size: 1rem;
    color: var(--bty-purple);
    background: rgba(124,58,237,.08);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Aspects list */
.bty-aspect-item {
    background: var(--bty-gray-50);
    border-radius: var(--bty-radius-sm);
    padding: 18px 20px;
    margin-bottom: 12px;
    border-left: 4px solid var(--bty-gray-200);
    transition: transform .2s;
}
.bty-aspect-item:last-child { margin-bottom: 0; }
.bty-aspect-item.color-green  { border-left-color: var(--bty-green); }
.bty-aspect-item.color-blue   { border-left-color: var(--bty-blue); }
.bty-aspect-item.color-orange { border-left-color: var(--bty-orange); }
.bty-aspect-item.color-red    { border-left-color: var(--bty-red); }
.bty-aspect-item:hover { transform: translateX(3px); }

.bty-aspect-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.bty-aspect-emoji { font-size: 1.3rem; flex-shrink: 0; }
.bty-aspect-title {
    font-weight: 700;
    font-size: .95rem;
    color: var(--bty-gray-800);
    flex: 1;
}
.bty-aspect-badge {
    font-size: .75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
}
.color-green  .bty-aspect-badge { background: #d1fae5; color: #065f46; }
.color-blue   .bty-aspect-badge { background: #dbeafe; color: #1e40af; }
.color-orange .bty-aspect-badge { background: #fef3c7; color: #92400e; }
.color-red    .bty-aspect-badge { background: #fee2e2; color: #991b1b; }

.bty-aspect-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.bty-aspect-bar {
    flex: 1;
    height: 7px;
    background: var(--bty-gray-200);
    border-radius: 50px;
    overflow: hidden;
}
.bty-aspect-bar-fill {
    height: 100%;
    border-radius: 50px;
    width: 0%;
    transition: width 1s cubic-bezier(.4,0,.2,1);
}
.color-green  .bty-aspect-bar-fill { background: var(--bty-green); }
.color-blue   .bty-aspect-bar-fill { background: var(--bty-blue); }
.color-orange .bty-aspect-bar-fill { background: var(--bty-orange); }
.color-red    .bty-aspect-bar-fill { background: var(--bty-red); }
.bty-aspect-score {
    font-size: .85rem;
    font-weight: 700;
    color: var(--bty-gray-600);
    min-width: 36px;
    text-align: right;
}

.bty-aspect-desc {
    font-size: .88rem !important;
    color: var(--bty-gray-600) !important;
    line-height: 1.65 !important;
    margin: 0 !important;
}

/* Two col */
.bty-two-col-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 640px) {
    .bty-two-col-section { grid-template-columns: 1fr; }
    .bty-numerology-grid { grid-template-columns: 1fr; }
    .bty-section { padding: 24px 20px; }
    .bty-result-header { padding: 32px 20px 40px; }
}

/* Lists */
.bty-list { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.bty-list li {
    padding: 9px 12px 9px 34px;
    border-radius: 8px;
    font-size: .88rem;
    line-height: 1.5;
    margin-bottom: 6px;
    position: relative;
}
.bty-list-strengths li {
    background: #f0fdf4;
    color: #166534;
}
.bty-list-strengths li::before {
    content: '✓';
    position: absolute;
    left: 12px;
    font-weight: 800;
    color: var(--bty-green);
}
.bty-list-challenges li {
    background: #fff7ed;
    color: #92400e;
}
.bty-list-challenges li::before {
    content: '!';
    position: absolute;
    left: 12px;
    font-weight: 800;
    color: var(--bty-orange);
}

/* Advice */
.bty-advice-section { background: linear-gradient(135deg, #fdf4ff 0%, #ede9fe 100%); }
.bty-advice-text {
    font-size: .95rem !important;
    line-height: 1.75 !important;
    color: var(--bty-gray-700, #374151) !important;
    background: white;
    padding: 20px 22px;
    border-radius: var(--bty-radius-sm);
    border-left: 4px solid var(--bty-purple);
    margin: 0 !important;
}

/* Lucky */
.bty-lucky-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 480px) { .bty-lucky-grid { grid-template-columns: 1fr; } }
.bty-lucky-card {
    background: var(--bty-gray-50);
    border: 1px solid var(--bty-gray-200);
    border-radius: var(--bty-radius-sm);
    padding: 16px;
    text-align: center;
}
.bty-lucky-card-icon { font-size: 1.6rem; margin-bottom: 6px; }
.bty-lucky-card-label {
    font-size: .75rem;
    font-weight: 700;
    color: var(--bty-gray-400);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}
.bty-lucky-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}
.bty-lucky-tag {
    background: var(--bty-purple);
    color: white;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 700;
}

/* Conclusion */
.bty-conclusion-section { background: var(--bty-gray-50); }
.bty-conclusion-text {
    font-size: .95rem !important;
    line-height: 1.8 !important;
    color: var(--bty-gray-600) !important;
    margin: 0 !important;
}

/* Reanalyze button */
.bty-reanalyze-wrap { text-align: center; border-bottom: none !important; }
.bty-reanalyze-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    border: 2px solid var(--bty-purple);
    border-radius: var(--bty-radius-sm);
    color: var(--bty-purple);
    font-family: var(--bty-font);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.bty-reanalyze-btn:hover {
    background: var(--bty-purple);
    color: white;
}

/* ════════════════════════════════════════════════
   LOCK OVERLAY — blur result + lock box
════════════════════════════════════════════════ */

/* Khi result bị khóa → blur nội dung bên trong */
.bty-result.is-locked > *:not(.bty-lock-overlay) {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

/* Overlay nằm trên toàn bộ result, cách top 70px */
.bty-lock-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    top: 70px;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 40px;
    border-radius: 0 0 24px 24px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.6) 8%);
}

/* Loading box bên trong overlay */
.bty-lock-box-loading {
    background: #1e2235;
}
.bty-lock-loading-anim {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 14px;
    animation: btyBeat .8s ease-in-out infinite;
}
@keyframes btyBeat {
    0%,100% { transform: scale(1); }
    50%      { transform: scale(1.15); }
}
.bty-lock-loading-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
}
.bty-lock-loading-sub {
    font-size: .875rem;
    color: rgba(255,255,255,.7);
    margin: 0 0 18px;
}
.bty-lock-bar {
    width: 200px;
    height: 5px;
    background: rgba(255,255,255,.2);
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
}
.bty-lock-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #ec4899);
    border-radius: 3px;
    animation: btyBarAnim 1.8s ease-in-out infinite;
}
@keyframes btyBarAnim {
    0%   { width: 0;   margin-left: 0; }
    50%  { width: 70%; margin-left: 0; }
    100% { width: 0;   margin-left: 100%; }
}

/* Hộp khóa trung tâm — dark card như hình 1 */
.bty-lock-box {
    background: #1e2235;
    border-radius: 18px;
    padding: 36px 52px;
    text-align: center;
    max-width: 560px;
    width: 94%;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.bty-lock-icon {
    font-size: 3rem;
    margin-bottom: 14px;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
}
.bty-lock-msg {
    font-size: 1rem !important;
    color: #e2e8f0 !important;
    line-height: 1.5 !important;
    margin: 0 0 22px !important;
    white-space: nowrap;
}
.bty-unlock-btn {
    display: inline-block;
    padding: 13px 36px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--bty-font);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: opacity .2s, transform .2s;
    box-shadow: 0 4px 18px rgba(99,102,241,.45);
    letter-spacing: .3px;
}
.bty-unlock-btn:hover {
    opacity: .9;
    transform: translateY(-2px);
}

/* Cần relative để overlay absolute định vị đúng */
.bty-result {
    position: relative;
}

/* ════════════════════════════════════════════════
   POPUP MỞ KHÓA
════════════════════════════════════════════════ */
.bty-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: btyFadeIn .25s ease;
}
@keyframes btyFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.bty-popup {
    background: white;
    border-radius: 18px;
    width: 100%;
    max-width: 700px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,.3);
    animation: btySlideUp .3s cubic-bezier(.34,1.56,.64,1);
    padding: 32px 36px;
}
@keyframes btySlideUp {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Loading state */
.bty-popup-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--bty-gray-600);
    font-weight: 600;
}
.bty-popup-loading p { margin: 12px 0 0 !important; }

/* Notice bar */
.bty-popup-notice {
    background: #fef9c3;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px 14px 10px 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    font-size: .85rem;
    color: #78350f;
    line-height: 1.5;
}
.bty-popup-notice span { flex: 1; }
.bty-popup-notice-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #92400e;
    font-size: .9rem;
    padding: 0;
    flex-shrink: 0;
    margin-top: 1px;
    opacity: .7;
}
.bty-popup-notice-close:hover { opacity: 1; }

/* Title */
.bty-popup-title {
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    background: var(--bty-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 12px !important;
    text-align: center;
    line-height: 1.3 !important;
}

/* Users count */
.bty-popup-users {
    text-align: center;
    font-size: .88rem !important;
    color: var(--bty-gray-600) !important;
    margin: 0 0 18px !important;
}
.bty-popup-users strong { color: var(--bty-purple); }

/* Benefits */
.bty-popup-benefits {
    background: var(--bty-gray-50);
    border-left: 3px solid var(--bty-purple);
    border-radius: 0 10px 10px 0;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.bty-benefit-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: .88rem;
    color: var(--bty-gray-700, #374151);
    margin-bottom: 8px;
    line-height: 1.5;
}
.bty-benefit-item:last-child { margin-bottom: 0; }
.bty-benefit-icon { flex-shrink: 0; font-size: 1rem; margin-top: 1px; }

/* Instruction */
.bty-popup-instruction {
    text-align: center;
    font-size: .88rem !important;
    font-style: italic;
    color: var(--bty-gray-600) !important;
    margin: 0 0 14px !important;
}

/* Step */
.bty-popup-step {
    background: var(--bty-gray-50);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.bty-step-label {
    font-size: .85rem !important;
    color: var(--bty-gray-700, #374151) !important;
    margin: 0 0 10px !important;
    line-height: 1.5 !important;
}
.bty-step-label a { color: var(--bty-blue); font-weight: 700; }
.bty-keyword-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.bty-keyword {
    font-weight: 800;
    color: #dc2626;
    font-size: .9rem;
}
.bty-copy-btn {
    background: white;
    border: 1.5px solid var(--bty-gray-200);
    padding: 3px 12px;
    border-radius: 6px;
    font-family: var(--bty-font);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--bty-gray-600);
    transition: background .2s, border-color .2s;
}
.bty-copy-btn:hover,
.bty-copy-btn.copied {
    background: var(--bty-green);
    color: white;
    border-color: var(--bty-green);
}

/* Google mock */
.bty-google-mock {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--bty-gray-200);
    padding: 12px 16px;
}
.bty-google-logo {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 8px;
    font-family: 'Product Sans', var(--bty-font);
}
.bty-google-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--bty-gray-200);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: .85rem;
    color: var(--bty-gray-600);
}
.bty-google-search-box svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Input + unlock */
.bty-popup-unlock-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}
.bty-code-input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid var(--bty-gray-200);
    border-radius: 10px;
    font-family: var(--bty-font);
    font-size: .9rem;
    outline: none;
    transition: border-color .2s;
    color: var(--bty-gray-800);
}
.bty-code-input:focus {
    border-color: var(--bty-purple);
    box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}
.bty-popup-unlock-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: var(--bty-font);
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s, transform .2s;
    box-shadow: 0 4px 14px rgba(99,102,241,.35);
}
.bty-popup-unlock-btn:hover { opacity: .9; transform: translateY(-1px); }
.bty-popup-unlock-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

@media (max-width: 480px) {
    .bty-popup-unlock-wrap { flex-direction: column; }
    .bty-popup { padding: 20px 16px; }
}

/* Error */
.bty-code-error {
    font-size: .82rem !important;
    color: var(--bty-red) !important;
    font-weight: 600 !important;
    text-align: center;
    margin: 0 !important;
}

/* Shake animation khi sai mã */
@keyframes btyShake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-8px); }
    40%      { transform: translateX(8px); }
    60%      { transform: translateX(-5px); }
    80%      { transform: translateX(5px); }
}
.bty-shake { animation: btyShake .4s ease; }

/* ── Ảnh kết quả Google trong popup ─────────────────── */
.bty-google-result-img {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--bty-gray-200);
    max-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bty-gray-50);
}
.bty-google-result-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Mobile: lock box không wrap chữ trên màn nhỏ */
@media (max-width: 600px) {
    .bty-lock-msg { white-space: normal !important; font-size: .9rem !important; }
    .bty-lock-box { padding: 28px 24px; max-width: 95%; }
}

/* ── Analyzing overlay (sau khi unlock, đang gọi API) ────── */
.bty-analyzing-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: 16px;
    gap: 12px;
}
.bty-analyzing-overlay .bty-heart-pulse {
    font-size: 2.5rem;
    animation: btyBeat .8s infinite;
}
.bty-analyzing-overlay p {
    font-size: .95rem;
    font-weight: 600;
    color: #7c3aed;
    margin: 0;
}
.bty-result { position: relative; }
