/* ╔══════════════════════════════════════════════════════════════════╗
   ║  ODM Rx PLATFORM SHARE ENGINE (bts-)                             ║
   ╚══════════════════════════════════════════════════════════════════╝ */
:root {
    --bts-orange: #FF6B00;
    --bts-orange-lt: #FF9500;
    --bts-dark: #09090B;
    --bts-white: #FFFFFF;
    --bts-slate-50: #F8FAFC;
    --bts-slate-100: #F1F5F9;
    --bts-slate-200: #E2E8F0;
    --bts-slate-300: #CBD5E1;
    --bts-slate-500: #64748B;
    --bts-slate-600: #475569;
    --bts-slate-800: #1E293B;
    --bts-font: 'Jost', system-ui, sans-serif;
    
    /* Brand Colors */
    --bts-c-wa: #25D366;
    --bts-c-fb: #1877F2;
    --bts-c-tg: #0088cc;
    --bts-c-in: #0A66C2;
    --bts-c-tw: #000000;
    --bts-c-sn: #FFFC00;
    --bts-c-em: #EA4335;
    --bts-c-os: #8B5CF6;
    --bts-c-yt: #FF0000;
}

.bts-wrapper {
    font-family: var(--bts-font);
    margin-top: 1.5rem;
    contain: layout style;
}

/* ── CARD SHELL ── */
.bts-card {
    background: var(--bts-white);
    border: 1px solid var(--bts-slate-200);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}
.bts-card:hover {
    border-color: var(--bts-slate-300);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

/* ── INTELLIGENT KARMA SLIDER (Crossfade Anti-Crop) ── */
.bts-karma-box {
    display: flex; gap: 1rem; align-items: center;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.05) 0%, rgba(255, 149, 0, 0.05) 100%);
    border-left: 3px solid var(--bts-orange);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.bts-karma-icon {
    font-size: 1.5rem; line-height: 1; flex-shrink: 0;
    animation: btsPop 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes btsPop { 0% { transform: scale(0); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

.bts-karma-txt { flex: 1; min-width: 0; }
.bts-karma-txt h4 { font-size: 1.05rem; font-weight: 800; color: var(--bts-dark); margin: 0 0 2px; letter-spacing: 0.5px; }

/* Responsive Wrap-Safe Crossfade */
.bts-slider { position: relative; min-height: 2.8rem; display: flex; align-items: center; }
.bts-slider-item { 
    position: absolute; left: 0; right: 0;
    font-size: 0.85rem; font-weight: 500; color: var(--bts-slate-600); 
    line-height: 1.4; opacity: 0; 
    animation: btsFadeCycle 16s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
.bts-slider-item strong { color: var(--bts-orange); margin-left: 4px; }
.bts-slider-item:nth-child(1) { animation-delay: 0s; }
.bts-slider-item:nth-child(2) { animation-delay: 4s; }
.bts-slider-item:nth-child(3) { animation-delay: 8s; }
.bts-slider-item:nth-child(4) { animation-delay: 12s; }

@keyframes btsFadeCycle {
    0%, 2% { opacity: 0; transform: translateY(5px); }
    5%, 20% { opacity: 1; transform: translateY(0); }
    23%, 100% { opacity: 0; transform: translateY(-5px); }
}

/* ── COPY LINK (NAKED URL) ── */
.bts-copy-wrap {
    position: relative; display: flex; align-items: center; margin-bottom: 1.5rem;
}
.bts-input {
    flex: 1; width: 100%; background: var(--bts-slate-50);
    border: 1px solid var(--bts-slate-200); border-radius: 12px;
    padding: 0.8rem 3.5rem 0.8rem 1rem;
    font-family: var(--bts-font); font-size: 0.9rem; font-weight: 500;
    color: var(--bts-slate-600); transition: 0.2s; outline: none;
}
.bts-input:focus { border-color: var(--bts-orange); background: var(--bts-white); box-shadow: 0 0 0 3px rgba(255,107,0,0.1); }

.bts-copy-btn {
    position: absolute; right: 6px;
    background: var(--bts-dark); color: var(--bts-white);
    border: none; border-radius: 8px;
    width: 38px; height: 38px;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; transition: all 0.2s ease;
}
.bts-copy-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.bts-copy-btn:hover { background: var(--bts-orange); transform: scale(1.05); }
.bts-copy-btn.copied { background: var(--bts-c-wa); }

/* ── PRIMARY SOCIALS (High Conversion) ── */
.bts-primary-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 1rem;
}
.bts-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0.75rem 0.5rem; border-radius: 12px;
    font-size: 0.85rem; font-weight: 700; color: var(--bts-white);
    text-decoration: none; transition: 0.2s; border: none; outline: none; cursor: pointer;
}
.bts-btn:hover { transform: translateY(-2px); filter: brightness(1.1); color: var(--bts-white); text-decoration: none; }
.bts-btn svg { width: 18px; height: 18px; fill: currentColor; }

.bts-wa { background: var(--bts-c-wa); box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2); }
.bts-tg { background: var(--bts-c-tg); box-shadow: 0 4px 12px rgba(0, 136, 204, 0.2); }
.bts-os { background: var(--bts-c-os); box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2); }
.bts-os svg { stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── EXPANDABLE SECONDARY SOCIALS (ZERO-JS) ── */
.bts-details { width: 100%; border-top: 1px solid var(--bts-slate-100); padding-top: 1rem; }
.bts-summary {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 0.8rem; font-weight: 700; color: var(--bts-slate-500); text-transform: uppercase; letter-spacing: 0.5px;
    cursor: pointer; user-select: none; list-style: none; transition: color 0.2s;
}
.bts-summary::-webkit-details-marker { display: none; }
.bts-summary:hover { color: var(--bts-orange); }
.bts-summary svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: transform 0.3s ease; }
details[open] .bts-summary svg { transform: rotate(180deg); }

.bts-secondary-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1rem;
    animation: btsFadeDown 0.3s ease forwards;
}
@keyframes btsFadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.bts-btn-sec {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--bts-slate-100); color: var(--bts-slate-600); cursor: pointer;
    transition: all 0.2s ease; text-decoration: none; border: none; outline: none;
}
.bts-btn-sec svg { width: 20px; height: 20px; fill: currentColor; }
.bts-btn-sec:hover { transform: translateY(-3px); color: var(--bts-white); }
.bts-btn-sec.in:hover { background: var(--bts-c-in); box-shadow: 0 4px 10px rgba(10,102,194,0.2); }
.bts-btn-sec.fb:hover { background: var(--bts-c-fb); box-shadow: 0 4px 10px rgba(24,119,242,0.2); }
.bts-btn-sec.tw:hover { background: var(--bts-c-tw); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.bts-btn-sec.sn:hover { background: var(--bts-c-sn); color: #000; box-shadow: 0 4px 10px rgba(255,252,0,0.3); }
.bts-btn-sec.em:hover { background: var(--bts-c-em); box-shadow: 0 4px 10px rgba(234,67,53,0.2); }
.bts-btn-sec.yt:hover { background: var(--bts-c-yt); box-shadow: 0 4px 10px rgba(255,0,0,0.2); }

/* Mobile Optimization */
@media (max-width: 575px) {
    .bts-card { padding: 1.25rem; }
    .bts-slider { min-height: 3.5rem; } /* Gives more wrap room on tiny screens */
    .bts-primary-grid { gap: 0.4rem; }
    .bts-btn { font-size: 0.75rem; padding: 0.6rem 0.2rem; }
    .bts-btn svg { width: 16px; height: 16px; }
}
