/* =====================================================
   DESTINY MATRIX PROFESSIONAL — style.css v5.0
   English Only | Clean & Fast | Social Share | Email | Compatibility
   ===================================================== */

/* ── Reset & Base ─────────────────────────────────── */
.dm-wrapper *,
.dm-compat-wrapper * { box-sizing: border-box; }

.dm-wrapper,
.dm-compat-wrapper {
    font-family: 'Segoe UI', Tahoma, Georgia, sans-serif;
    margin: 0 auto;
    padding: 16px 20px 24px;
    color: #1e293b;
}
.dm-wrapper { max-width: 760px; }
.dm-compat-wrapper { max-width: 620px; }

/* ── Title & Subtitle ─────────────────────────────── */
.dm-title {
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    margin: 0 0 10px;
    line-height: 1.3;
}
.dm-title-home { font-size: clamp(18px, 3.5vw, 26px); }

.dm-subtitle {
    text-align: center;
    font-size: 15px;
    color: #475569;
    margin: 0 0 10px;
    line-height: 1.7;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Form ─────────────────────────────────────────── */
.dm-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.dm-input {
    padding: 10px 15px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    width: 210px;
    background: #fff;
    color: #1e293b;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    font-family: inherit;
}
.dm-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.13);
}

.dm-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: transform .15s, box-shadow .15s, opacity .15s;
    box-shadow: 0 4px 14px rgba(99,102,241,.35);
    white-space: nowrap;
}
.dm-btn:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99,102,241,.45); }
.dm-btn:active { transform: translateY(0); opacity: .92; }

/* ── Loading ──────────────────────────────────────── */
.dm-loading {
    text-align: center;
    padding: 52px 20px;
    color: #64748b;
    font-size: 15px;
}
.dm-spinner {
    width: 44px; height: 44px;
    border: 4px solid #e0e7ff;
    border-top-color: #6366f1;
    border-radius: 50%;
    margin: 0 auto 18px;
    animation: dm-spin .75s linear infinite;
}
@keyframes dm-spin { to { transform: rotate(360deg); } }

/* ── Numbers Row ──────────────────────────────────── */
.dm-numbers-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.dm-num-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 14px;
    min-width: 110px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    flex: 1 1 100px;
    max-width: 140px;
    transition: transform .2s, box-shadow .2s;
}
.dm-num-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
}

.dm-num-badge {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700;
    color: #fff;
    margin: 0 auto 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
}
.dm-num-badge.center   { background: linear-gradient(135deg,#6366f1,#4f46e5); }
.dm-num-badge.life     { background: linear-gradient(135deg,#10b981,#059669); }
.dm-num-badge.relation { background: linear-gradient(135deg,#ef4444,#dc2626); }
.dm-num-badge.money    { background: linear-gradient(135deg,#f59e0b,#d97706); }
.dm-num-badge.spirit   { background: linear-gradient(135deg,#8b5cf6,#7c3aed); }

.dm-num-label {
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
    font-weight: 600;
}
.dm-num-label small {
    display: block;
    font-weight: 400;
    color: #94a3b8;
    font-size: 11px;
    margin-top: 2px;
}

/* ── Chart Section ────────────────────────────────── */
.dm-chart-section {
    text-align: center;
    margin-bottom: 28px;
}
.dm-chart-section h2 {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
}

/* ── Share Panel ──────────────────────────────────── */
.dm-share-panel {
    background: linear-gradient(135deg,#f0fdf4,#eff6ff);
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 22px;
    text-align: center;
}
.dm-share-title {
    font-size: 15px; font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 14px;
}
.dm-share-btns {
    display: flex; flex-wrap: wrap;
    gap: 10px; justify-content: center;
}
.dm-share-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 20px;
    border-radius: 9px;
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-family: inherit;
    transition: transform .15s, box-shadow .15s;
}
.dm-share-btn:hover { transform: translateY(-2px); }
.dm-wa   { background: #25d366; color: #fff; box-shadow: 0 3px 10px rgba(37,211,102,.3); }
.dm-fb   { background: #1877f2; color: #fff; box-shadow: 0 3px 10px rgba(24,119,242,.3); }
.dm-copy { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }

/* ── Email Collection Box ─────────────────────────── */
.dm-email-box {
    background: linear-gradient(135deg,#fdf4ff,#eff6ff);
    border: 1.5px solid #e0e7ff;
    border-radius: 16px;
    padding: 26px 22px;
    margin-bottom: 24px;
    text-align: center;
}
.dm-email-title {
    font-size: 17px; font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 6px;
}
.dm-email-subtitle {
    font-size: 13px; color: #64748b;
    margin-bottom: 18px; line-height: 1.6;
}
.dm-email-row {
    display: flex; gap: 10px;
    justify-content: center; flex-wrap: wrap;
    margin-bottom: 10px;
}
.dm-email-input { width: 250px; }
.dm-email-btn   { padding: 13px 22px; font-size: 14px; }
.dm-email-skip {
    background: none; border: none;
    color: #94a3b8; font-size: 12px;
    cursor: pointer; text-decoration: underline;
    font-family: inherit; margin-top: 4px;
}
.dm-email-msg {
    margin-top: 12px; font-size: 14px;
    font-weight: 600; color: #059669;
}

/* ── Interpretation ───────────────────────────────── */
.dm-interpretation {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px 26px;
    margin-bottom: 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,.05);
}
.dm-interpretation h2 {
    font-size: 20px; font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 20px; text-align: center;
}
.dm-person-info {
    text-align: center;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}
.dm-person-name {
    font-size: 21px; font-weight: 700;
    color: #4f46e5; margin-bottom: 4px;
}
.dm-person-dob { font-size: 13px; color: #94a3b8; }

.dm-interp-text {
    font-size: 15px;
    line-height: 1.85;
    color: #334155;
}
.dm-interp-text p { margin-bottom: 16px; }
.dm-interp-text p:last-child { margin-bottom: 0; }
.dm-interp-text strong { color: #4f46e5; }

/* ── Home Full Link ───────────────────────────────── */
.dm-home-full-link { text-align: center; margin-top: 16px; }

/* ── COMPATIBILITY ────────────────────────────────── */
.dm-compat-intro {
    text-align: center;
    margin-bottom: 30px;
}
.dm-compat-badge {
    display: inline-block;
    background: linear-gradient(135deg,#fdf4ff,#eff6ff);
    color: #7c3aed;
    border: 1.5px solid #e0e7ff;
    border-radius: 20px;
    font-size: 12px; font-weight: 600;
    padding: 5px 16px;
    margin-bottom: 14px;
}
.dm-compat-title {
    font-size: clamp(20px,4vw,30px);
    font-weight: 700; color: #1e1b4b;
    margin-bottom: 10px; line-height: 1.35;
}
.dm-compat-subtitle {
    font-size: 14px; color: #64748b;
    line-height: 1.7; max-width: 560px;
    margin: 0 auto;
}

/* two-person form */
.dm-compat-persons {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
}
@media (max-width: 560px) {
    .dm-compat-persons { grid-template-columns: 1fr; }
    .dm-vs-divider     { display: none; }
}

.dm-person-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.dm-person-card.p1 { border-top: 4px solid #6366f1; }
.dm-person-card.p2 { border-top: 4px solid #ec4899; }

.dm-person-card-title {
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 6px;
}
.dm-person-card.p1 .dm-person-card-title { color: #4f46e5; }
.dm-person-card.p2 .dm-person-card-title { color: #db2777; }

.dm-person-card .dm-input {
    width: 100%;
    display: block;
    margin-bottom: 10px;
}
.dm-person-card .dm-input:last-child { margin-bottom: 0; }

.dm-vs-divider {
    display: flex; align-items: center; justify-content: center;
}
.dm-vs-circle {
    width: 42px; height: 42px;
    background: linear-gradient(135deg,#6366f1,#ec4899);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 12px; font-weight: 700;
    box-shadow: 0 3px 12px rgba(99,102,241,.3);
    flex-shrink: 0;
}

.dm-compat-calc-btn {
    display: block;
    width: 100%; max-width: 320px;
    margin: 0 auto 10px;
    padding: 15px;
    font-size: 16px;
}

/* score card */
.dm-score-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}
.dm-score-names {
    font-size: 17px; font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 22px;
    display: flex; align-items: center;
    justify-content: center; gap: 12px;
    flex-wrap: wrap;
}
.dm-sname1 { color: #4f46e5; }
.dm-sname2 { color: #db2777; }
.dm-heart  { font-size: 22px; animation: dm-pulse 1.4s ease-in-out infinite; }
@keyframes dm-pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.25)} }

.dm-score-circle-wrap {
    position: relative;
    width: 160px; height: 160px;
    margin: 0 auto 20px;
}
.dm-score-num {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    font-size: 42px; font-weight: 800;
    color: #1e1b4b; line-height: 1;
    text-align: center;
}
.dm-score-pct { font-size: 16px; color: #64748b; margin-top: -2px; }

.dm-score-label {
    display: inline-block;
    padding: 7px 22px;
    border-radius: 20px;
    font-size: 14px; font-weight: 700;
    margin-bottom: 14px;
}
.dm-score-desc {
    font-size: 14px; color: #475569;
    line-height: 1.7;
    max-width: 480px; margin: 0 auto;
}

/* dimension bars */
.dm-compat-dims {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px 20px;
    margin-bottom: 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.dm-dims-title {
    font-size: 14px; font-weight: 700;
    color: #1e1b4b; margin-bottom: 18px;
}
.dm-dim-row { margin-bottom: 14px; }
.dm-dim-row:last-child { margin-bottom: 0; }
.dm-dim-label {
    display: flex; justify-content: space-between;
    font-size: 12px; font-weight: 600;
    color: #475569; margin-bottom: 6px;
}
.dm-dim-bar-bg {
    background: #f1f5f9;
    border-radius: 6px; height: 9px; overflow: hidden;
}
.dm-dim-bar-fill {
    height: 100%; border-radius: 6px;
    transition: width .9s cubic-bezier(.4,0,.2,1);
}

/* side-by-side mini charts */
.dm-compat-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 22px;
}
@media (max-width: 520px) {
    .dm-compat-charts { grid-template-columns: 1fr; }
}

.dm-mini-chart-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.dm-mini-chart-card h3 {
    font-size: 13px; font-weight: 700;
    margin-bottom: 10px; line-height: 1.4;
}
.dm-mini-chart-card.p1 h3 { color: #4f46e5; }
.dm-mini-chart-card.p2 h3 { color: #db2777; }
.dm-mini-chart-card h3 small {
    font-weight: 400; color: #94a3b8; font-size: 11px;
}

/* compatibility reading */
.dm-compat-reading {
    background: linear-gradient(135deg,#fdf4ff,#eff6ff);
    border: 1.5px solid #e0e7ff;
    border-radius: 16px;
    padding: 26px 22px;
    margin-bottom: 22px;
}
.dm-compat-reading h3 {
    font-size: 16px; font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 16px; text-align: center;
}
.dm-compat-reading p {
    font-size: 15px; line-height: 1.85;
    color: #334155; margin-bottom: 14px;
}
.dm-compat-reading p:last-of-type { margin-bottom: 14px; }

/* tip chips */
.dm-compat-tips {
    display: flex; flex-wrap: wrap;
    gap: 10px; justify-content: center;
    margin-top: 16px;
}
.dm-tip-chip {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 12px; font-weight: 600;
    color: #475569;
    display: flex; align-items: center; gap: 5px;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 600px) {
    .dm-wrapper,
    .dm-compat-wrapper { padding: 20px 14px 40px; }

    .dm-form             { flex-direction: column; align-items: stretch; }
    .dm-input            { width: 100%; }
    .dm-btn              { width: 100%; text-align: center; }
    .dm-compat-calc-btn  { max-width: 100%; }

    .dm-share-btns       { flex-direction: column; }
    .dm-share-btn        { justify-content: center; }

    .dm-email-row        { flex-direction: column; }
    .dm-email-input      { width: 100%; }
    .dm-email-btn        { width: 100%; }

    .dm-num-card         { max-width: none; flex: 1 1 80px; }

    .dm-score-circle-wrap { width: 130px; height: 130px; }
    .dm-score-num         { font-size: 34px; }
}

/* Hide badge in compat */
.dm-compat-badge { display: none !important; }

/* DOB text input */
.dm-dob-input { letter-spacing: 1px; }

/* Download Button */

.dm-download-wrap { text-align: center; margin: 18px 0 8px; }
.dm-dl-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: #554fe8; color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; box-shadow: 0 4px 14px rgba(85,79,232,0.35); transition: transform .15s, box-shadow .15s; }
.dm-dl-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(85,79,232,0.45); }
.dm-dl-btn:active { transform: translateY(0); }

/* ══════════════════════════════════════════════════
   ACCORDION — v7.0
══════════════════════════════════════════════════ */

.dm-personal-info-section,
.dm-compat-accordion-section {
    margin: 32px 0 24px;
}

.dm-section-heading {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 700;
    color: #1e1b4b;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4f46e5;
    display: inline-block;
}

.dm-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dm-acc-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow .2s;
}

.dm-acc-item:hover {
    box-shadow: 0 2px 12px rgba(79,70,229,0.08);
}

.dm-acc-item.dm-acc-open {
    border-color: #c7d2fe;
    box-shadow: 0 2px 16px rgba(79,70,229,0.1);
}

.dm-acc-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    gap: 12px;
}

.dm-acc-header:hover {
    background: #fafafa;
}

.dm-acc-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dm-acc-score {
    font-size: 13px;
    font-weight: 700;
    color: #4f46e5;
    background: #eef2ff;
    padding: 2px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.dm-acc-icon {
    color: #4f46e5;
    flex-shrink: 0;
    transition: transform .25s ease;
}

.dm-acc-body {
    padding: 0 20px 18px;
    animation: dmAccFade .2s ease;
}

.dm-acc-text {
    font-size: 15px;
    line-height: 1.75;
    color: #374151;
    margin: 0;
}

@keyframes dmAccFade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Compatibility heading + subtitle white ── */
.dm-compat-title,
.dm-compat-subtitle {
    color: #ffffff !important;
}

/* Download Button */
.dm-download-wrap { text-align: center; margin: 18px 0 8px; }
.dm-dl-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: #554fe8; color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; box-shadow: 0 4px 14px rgba(85,79,232,0.35); transition: transform .15s, box-shadow .15s; }
.dm-dl-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(85,79,232,0.45); }
.dm-dl-btn:active { transform: translateY(0); }

@media (max-width: 480px) {
    .dm-acc-header { padding: 14px 16px; }
    .dm-acc-body   { padding: 0 16px 14px; }
    .dm-acc-title  { font-size: 14px; }
    .dm-acc-text   { font-size: 14px; }
}

/* Compatibility Details heading — centered, no box */
.dm-compat-main-heading {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 0 0 20px;
    padding: 0;
    border: none;
    display: block;
    width: 100%;
}

/* Your Personal Destiny Matrix Information — centered, white */
.dm-personal-info-heading {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    display: block;
    width: 100%;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4f46e5;
}
