/* =========================================================
   copy-trading.css  — Smart Gold Trade Copy Trading Page
   Light theme only. Mirrors halal-trading.css conventions.
   ========================================================= */

/* ----------------------------------------------------------
   CSS Variables (shared gold palette)
   ---------------------------------------------------------- */
:root {
    --ct-gold-primary: #D97706;
    --ct-gold-light:   #F59E0B;
    --ct-gold-pale:    #FEF3C7;
    --ct-gold-bg:      #FFF8E7;
    --ct-green:        #059669;
    --ct-green-pale:   #ECFDF5;
    --ct-red:          #DC2626;
    --ct-red-pale:     #FEE2E2;
    --ct-dark:         #1E293B;
    --ct-muted:        #64748B;
    --ct-border:       #E2E8F0;
    --ct-surface:      #F8FAFC;
}

/* ----------------------------------------------------------
   Hero Section
   ---------------------------------------------------------- */
.ct-hero {
    background: linear-gradient(160deg, #FFF8E7 0%, #FFFFFF 60%, #F0FDF4 100%);
    padding: 80px 0 60px;
}

.ct-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--ct-dark);
    line-height: 1.2;
}

.ct-hero h1 span {
    color: var(--ct-gold-primary);
}

.ct-hero-subtitle {
    font-size: 1.125rem;
    color: var(--ct-muted);
    max-width: 580px;
    margin: 1rem auto 0;
    line-height: 1.7;
}

/* Trust badges */
.ct-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: 1px solid var(--ct-border);
    border-radius: 9999px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ct-dark);
    margin: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.ct-trust-badge i {
    color: var(--ct-green);
}

/* CTA buttons */
.btn-ct-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 28px;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    transition: opacity .2s, transform .2s;
    box-shadow: 0 4px 14px rgba(217,119,6,.3);
}

.btn-ct-primary:hover {
    opacity: .92;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.btn-ct-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--ct-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 10px;
    border: 2px solid var(--ct-border);
    text-decoration: none;
    transition: border-color .2s, transform .2s;
}

.btn-ct-secondary:hover {
    border-color: var(--ct-gold-primary);
    color: var(--ct-gold-primary);
    transform: translateY(-1px);
    text-decoration: none;
}

/* ----------------------------------------------------------
   Section Shared
   ---------------------------------------------------------- */
.ct-section {
    padding: 70px 0;
}

.ct-section-alt {
    background: var(--ct-surface);
}

.ct-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--ct-dark);
    margin-bottom: .5rem;
}

.ct-section-sub {
    color: var(--ct-muted);
    max-width: 540px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* ----------------------------------------------------------
   What is Copy Trading — dual answer card
   ---------------------------------------------------------- */
.ct-answer-box {
    background: #fff;
    border: 1px solid var(--ct-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.ct-answer-lead {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ct-dark);
    margin-bottom: 1.5rem;
}

/* ----------------------------------------------------------
   Why Halal — 3 pillars
   ---------------------------------------------------------- */
.ct-pillar-card {
    background: #fff;
    border: 1px solid var(--ct-border);
    border-radius: 14px;
    padding: 1.75rem;
    height: 100%;
    transition: box-shadow .2s, transform .2s;
}

.ct-pillar-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
    transform: translateY(-3px);
}

.ct-pillar-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--ct-gold-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--ct-gold-primary);
    margin-bottom: 1rem;
}

.ct-pillar-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ct-dark);
    margin-bottom: .5rem;
}

.ct-pillar-card p {
    font-size: .9rem;
    color: var(--ct-muted);
    line-height: 1.6;
    margin: 0;
}

/* ----------------------------------------------------------
   How It Works — step flow
   ---------------------------------------------------------- */
.ct-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    position: relative;
}

.ct-step {
    text-align: center;
    position: relative;
}

.ct-step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 14px rgba(217,119,6,.3);
}

.ct-step h5 {
    font-weight: 700;
    color: var(--ct-dark);
    margin-bottom: .35rem;
    font-size: 1rem;
}

.ct-step p {
    font-size: .85rem;
    color: var(--ct-muted);
    line-height: 1.55;
    margin: 0;
}

.ct-step-arrow {
    position: absolute;
    right: -16px;
    top: 20px;
    color: var(--ct-gold-light);
    font-size: 1.5rem;
    display: none;
}

@media (min-width: 768px) {
    .ct-step-arrow { display: block; }
}

/* ----------------------------------------------------------
   Fee Transparency table
   ---------------------------------------------------------- */
.ct-fee-table {
    width: 100%;
    border-collapse: collapse;
}

.ct-fee-table th {
    background: var(--ct-gold-pale);
    color: var(--ct-dark);
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--ct-gold-primary);
}

.ct-fee-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--ct-border);
    color: var(--ct-dark);
    font-size: .93rem;
}

.ct-fee-table tr:last-child td {
    border-bottom: none;
}

.ct-fee-table tr:hover td {
    background: #FFFDF7;
}

/* HWM explanation box */
.ct-hwm-box {
    background: var(--ct-gold-pale);
    border: 1px solid #FDE68A;
    border-left: 4px solid var(--ct-gold-primary);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
}

.ct-hwm-box strong {
    color: var(--ct-gold-primary);
}

/* ----------------------------------------------------------
   Master Criteria cards
   ---------------------------------------------------------- */
.ct-criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.ct-criteria-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--ct-border);
    border-radius: 12px;
    padding: 1.25rem;
}

.ct-criteria-item .ct-ci-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--ct-green-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ct-green);
    font-size: 1rem;
}

.ct-criteria-item h6 {
    font-weight: 700;
    color: var(--ct-dark);
    margin-bottom: .2rem;
    font-size: .9rem;
}

.ct-criteria-item p {
    font-size: .82rem;
    color: var(--ct-muted);
    margin: 0;
    line-height: 1.5;
}

/* Apply CTA box */
.ct-apply-box {
    background: linear-gradient(135deg, #FFF8E7, #FFFFFF);
    border: 2px solid var(--ct-gold-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-top: 2.5rem;
}

/* ----------------------------------------------------------
   Live Trader Preview cards (mini)
   ---------------------------------------------------------- */
.ct-trader-card {
    background: #fff;
    border: 1px solid var(--ct-border);
    border-radius: 14px;
    padding: 1.5rem;
    transition: box-shadow .2s, transform .2s;
    height: 100%;
}

.ct-trader-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
    transform: translateY(-3px);
}

.ct-trader-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ct-stat-chip {
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
}

.ct-stat-chip .label {
    display: block;
    font-size: .72rem;
    color: var(--ct-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 2px;
}

.ct-stat-chip .value {
    font-weight: 700;
    font-size: .95rem;
    color: var(--ct-dark);
}

.ct-stat-chip .value.positive { color: var(--ct-green); }

/* ----------------------------------------------------------
   Risk Disclosure
   ---------------------------------------------------------- */
.ct-risk-box {
    background: var(--ct-red-pale);
    border: 1px solid #FECACA;
    border-left: 4px solid var(--ct-red);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
}

.ct-risk-box h4 {
    color: var(--ct-red);
    font-weight: 700;
    margin-bottom: 1rem;
}

.ct-risk-box ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #7F1D1D;
}

.ct-risk-box li {
    margin-bottom: .5rem;
    line-height: 1.55;
    font-size: .93rem;
}

/* ----------------------------------------------------------
   FAQ accordion
   ---------------------------------------------------------- */
.ct-faq-item {
    border: 1px solid var(--ct-border);
    border-radius: 12px;
    margin-bottom: .75rem;
    overflow: hidden;
    transition: box-shadow .2s;
}

.ct-faq-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.ct-faq-question {
    width: 100%;
    background: #fff;
    border: none;
    text-align: left;
    padding: 1.1rem 1.5rem;
    font-weight: 600;
    font-size: .95rem;
    color: var(--ct-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background .15s;
}

.ct-faq-question:hover {
    background: #FFFDF7;
}

.ct-faq-question i {
    flex-shrink: 0;
    color: var(--ct-gold-primary);
    transition: transform .25s;
}

.ct-faq-item.open .ct-faq-question i {
    transform: rotate(180deg);
}

.ct-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    background: #FFFDF7;
}

.ct-faq-item.open .ct-faq-answer {
    max-height: 300px;
}

.ct-faq-answer-inner {
    padding: 0 1.5rem 1.1rem;
    color: var(--ct-muted);
    font-size: .92rem;
    line-height: 1.7;
}

/* ----------------------------------------------------------
   Bottom CTA band
   ---------------------------------------------------------- */
.ct-cta-band {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    padding: 70px 0;
    color: #fff;
}

.ct-cta-band h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: .5rem;
}

.ct-cta-band p {
    color: #94A3B8;
    margin-bottom: 0;
}

/* ----------------------------------------------------------
   Animations
   ---------------------------------------------------------- */
@keyframes ct-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ct-animate {
    opacity: 0;
    animation: ct-fade-up .5s ease forwards;
}

.ct-animate:nth-child(1) { animation-delay: .05s; }
.ct-animate:nth-child(2) { animation-delay: .15s; }
.ct-animate:nth-child(3) { animation-delay: .25s; }
.ct-animate:nth-child(4) { animation-delay: .35s; }

/* Badge for human verification */
.badge-verified-human {
    background: var(--ct-green-pale);
    color: var(--ct-green);
    border: 1px solid #A7F3D0;
    font-size: .72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 9999px;
}

/* ═══ Hero closer to Halal Trading ═══ */
.ct-hero {
    padding: 100px 0 72px;
    position: relative;
    overflow: hidden;
}
.ct-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(251,191,36,.18), transparent 70%);
    pointer-events: none;
}
.ct-arabic {
    font-family: 'Amiri', 'Scheherazade New', serif;
    font-size: 24px;
    line-height: 1.8;
    color: #0F172A;
    direction: rtl;
    text-align: right;
    border-right: 3px solid #FBBF24;
    padding: 16px 22px 16px 16px;
    background: linear-gradient(135deg, rgba(251,191,36,.08) 0%, transparent 100%);
    border-radius: 8px;
    margin: 22px auto 8px;
    max-width: 560px;
}
.ct-arabic-tr { font-style: italic; color: #64748B; font-size: 15px; }
.ct-arabic-ref { font-size: 13px; color: #94A3B8; font-weight: 600; }

/* SVG animation classes (namespaced like halal-trading .htx-*) */
.ct-svg-t { font-family: Inter, sans-serif; font-size: 13px; font-weight: 700; fill: #1E293B; }
.ct-svg-s { font-family: Inter, sans-serif; font-size: 11px; fill: #64748B; }
.ct-svg-core { font-family: Inter, sans-serif; font-size: 13px; font-weight: 800; fill: #fff; }
.ctx-core { animation: ctx-pulse 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ctx-node { animation: ctx-in .7s ease both; }
.ctx-n2 { animation-delay: .2s; } .ctx-n3 { animation-delay: .4s; } .ctx-n4 { animation-delay: .6s; }
.ctx-ray { stroke-dasharray: 6 7; animation: ctx-dash 2.6s linear infinite; }
.ctx-flow { animation: ctx-slide 3.4s ease-in-out infinite; }
.ctx-grow { animation: ctx-wide 1s cubic-bezier(.2,.8,.3,1) both; transform-box: fill-box; transform-origin: left center; }
.ctx-g2 { animation-delay: .3s; }
@keyframes ctx-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes ctx-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ctx-dash { to { stroke-dashoffset: -26; } }
@keyframes ctx-slide { 0%, 100% { opacity: .55; transform: translateX(-6px); } 50% { opacity: 1; transform: translateX(6px); } }
@keyframes ctx-wide { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
    .ctx-core, .ctx-node, .ctx-ray, .ctx-flow, .ctx-grow { animation: none !important; opacity: 1; transform: none; }
    .ct-animate { animation: none !important; opacity: 1; }
}

/* ═══ Binance-style marketplace ═══ */
.bn-market { padding: 48px 0 64px; background: #F8FAFC; }
.bn-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 22px;
    overflow-x: auto;
}
.bn-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 14px;
    color: #64748B;
    cursor: pointer;
    white-space: nowrap;
}
.bn-tab.active { color: #D97706; border-bottom-color: #D97706; }
.bn-tab:hover { color: #1E293B; }
.bn-pane { display: none; }
.bn-pane.active { display: block; }
.bn-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 1199px) { .bn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .bn-grid { grid-template-columns: 1fr; } }

.bn-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.bn-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    border-color: #FDE68A;
}
.bn-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.bn-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff; font-weight: 800; font-size: 16px;
    display: grid; place-items: center; flex-shrink: 0;
}
.bn-name { font-weight: 700; font-size: 14px; color: #1E293B; line-height: 1.2; }
.bn-copiers { font-size: 11px; color: #64748B; margin-top: 2px; }
.bn-pnl-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-bottom: 12px; }
.bn-label { font-size: 11px; color: #94A3B8; margin-bottom: 2px; }
.bn-pnl { font-size: 22px; font-weight: 800; letter-spacing: -.4px; line-height: 1.15; }
.bn-pnl.pos { color: #0ECB81; }
.bn-pnl.neg { color: #F6465D; }
.bn-roi { font-size: 12px; font-weight: 600; margin-top: 2px; }
.bn-roi.pos { color: #0ECB81; }
.bn-roi.neg { color: #F6465D; }
.bn-spark { width: 110px; height: 42px; flex-shrink: 0; }
.bn-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    font-size: 12px;
    color: #64748B;
    margin-bottom: 14px;
}
.bn-meta b { color: #1E293B; font-weight: 700; display: block; }
.bn-actions { display: flex; gap: 8px; margin-top: auto; }
.bn-btn-ghost, .bn-btn-gold {
    flex: 1; text-align: center; font-weight: 700; font-size: 13px;
    padding: 8px 10px; border-radius: 8px; text-decoration: none;
}
.bn-btn-ghost { background: #F1F5F9; color: #334155; border: 1px solid #E2E8F0; }
.bn-btn-ghost:hover { background: #E2E8F0; color: #0F172A; }
.bn-btn-gold {
    background: linear-gradient(135deg, #F0B90B, #D97706);
    color: #111; border: none;
}
.bn-btn-gold:hover { color: #111; opacity: .92; }
.bn-empty { text-align: center; padding: 48px 16px; color: #64748B; }
.bn-section-kicker { font-size: 13px; font-weight: 700; color: #1E293B; margin: 4px 0 14px; }

/* ═══ Lead-details (Binance public master page) ═══ */
.ld-wrap { background: #F8FAFC; padding-bottom: 56px; }
.ld-top { background: #fff; border-bottom: 1px solid #E2E8F0; padding: 28px 0 20px; }
.ld-crumb { font-size: 13px; color: #94A3B8; margin-bottom: 16px; }
.ld-crumb a { color: #D97706; text-decoration: none; }
.ld-id { display: flex; align-items: flex-start; gap: 16px; }
.ld-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff; font-size: 28px; font-weight: 800;
    display: grid; place-items: center; flex-shrink: 0;
    border: 3px solid #fff; box-shadow: 0 4px 14px rgba(217,119,6,.28);
}
.ld-name { font-size: 26px; font-weight: 800; color: #1E293B; margin: 0 0 6px; }
.ld-range {
    display: inline-flex; background: #F1F5F9; border-radius: 8px; padding: 3px; gap: 2px;
}
.ld-range a {
    padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 700;
    color: #64748B; text-decoration: none;
}
.ld-range a.active { background: #fff; color: #D97706; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ld-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 8px;
}
@media (max-width: 991px) { .ld-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .ld-kpis { grid-template-columns: repeat(2, 1fr); } }
.ld-kpi { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px; padding: 12px 14px; }
.ld-kpi .k { font-size: 11px; color: #94A3B8; text-transform: uppercase; letter-spacing: .04em; }
.ld-kpi .v { font-size: 20px; font-weight: 800; color: #1E293B; margin-top: 2px; }
.ld-kpi .v.pos { color: #0ECB81; }
.ld-kpi .v.neg { color: #F6465D; }
.ld-chart {
    background: #fff; border: 1px solid #E2E8F0; border-radius: 14px;
    padding: 16px 16px 8px; margin: 16px 0 24px;
}
.ld-chart svg { width: 100%; height: auto; display: block; }
.ld-tabs { display: flex; gap: 4px; border-bottom: 1px solid #E2E8F0; margin-bottom: 18px; overflow-x: auto; }
.ld-tab {
    background: none; border: none; border-bottom: 2px solid transparent;
    padding: 10px 14px; font-weight: 700; font-size: 14px; color: #64748B; cursor: pointer;
}
.ld-tab.active { color: #D97706; border-bottom-color: #D97706; }
.ld-pane { display: none; }
.ld-pane.active { display: block; }
.ld-copy {
    background: #fff; border: 1px solid #E2E8F0; border-radius: 16px;
    padding: 20px; position: sticky; top: 92px;
}
.ld-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ld-table th {
    text-align: left; font-size: 11px; text-transform: uppercase; color: #64748B;
    padding: 10px 12px; background: #FFF8E7; border-bottom: 1px solid #FDE68A;
}
.ld-table td { padding: 10px 12px; border-bottom: 1px solid #F1F5F9; color: #334155; }
.ld-side-buy { background: #ECFDF5; color: #059669; font-weight: 700; padding: 2px 8px; border-radius: 6px; font-size: 11px; }
.ld-side-sell { background: #FEE2E2; color: #DC2626; font-weight: 700; padding: 2px 8px; border-radius: 6px; font-size: 11px; }

.ct-income-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 767px) { .ct-income-grid { grid-template-columns: 1fr; } }
.ct-income-card {
    background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 18px;
}
.ct-income-card .amt { font-size: 22px; font-weight: 800; }
