/* ── İşlem kartı sayfası ─────────────────────────────────── */
.ahs-trade-page h1 { margin: 0; color: #e6edf3; }
.ahs-trade-page a  { color: #58a6ff; }

.ahs-tc { display: flex; gap: 22px; align-items: stretch; flex-wrap: wrap; }

.ahs-tc-info {
    flex: 1;
    min-width: 270px;
    padding: 20px 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    background:
        linear-gradient(#12161d, #0f131a) padding-box,
        linear-gradient(160deg, rgba(139,148,158,.38), rgba(139,148,158,.05) 45%, rgba(88,166,255,.22)) border-box;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 28px rgba(0,0,0,.35);
}

.ahs-tc-ladder {
    position: relative;
    flex: 0 0 15%;
    width: auto;
    min-width: 150px;
    align-self: stretch;
    min-height: 320px;
    margin-left: 56px;          /* canlı fiyat etiketine yer */
    flex-shrink: 0;
    border: 1px solid #1c2128;
    background: #0b0f15;
}

.ahs-lz { position: absolute; left: 0; right: 0; }
.ahs-lz.risk   { background: rgba(239,68,68,.18); }
.ahs-lz.reward { background: rgba(34,197,94,.10); }

.ahs-ll { position: absolute; left: 0; right: 0; border-top: 1px solid; }
.ahs-ll b {
    position: absolute; right: 7px; top: -13px;
    font-size: 10px; font-weight: 700; letter-spacing: .04em;
}
.ahs-ll.stop    { border-color: #f85149; }
.ahs-ll.stop b  { color: #f85149; }
.ahs-ll.entry   { border-color: #e6edf3; }
.ahs-ll.entry b { color: #e6edf3; }
.ahs-ll.tp      { border-color: rgba(139,213,171,.5); }
.ahs-ll.tp b    { color: #8bd5ab; }

.ahs-marker { position: absolute; left: 0; right: 0; border-top: 1px dashed #e6edf3; display: none; transition: top .4s ease; }
.ahs-marker span {
    position: absolute; left: 5px; top: -12px;
    white-space: nowrap; font-size: 10px; font-weight: 800; color: #e6edf3;
}
.ahs-marker span::after { content: ''; }

/* dış kenarda fiyatla birlikte kayan ok */
.ahs-marker::before {
    content: '';
    position: absolute; left: -7px; top: -5px;
    width: 0; height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid currentColor;
}

.ahs-ll.at-top b { top: 3px; }
.ahs-tc-ladder, .ahs-tc-ladder * { border-radius: 0 !important; }
/* ── Sol kolon: kutucuklu düzen ───────────────────────────── */
.ahs-ti-head {
    padding: 11px 14px;
    margin-bottom: 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    background:
        linear-gradient(#171c25, #12161d) padding-box,
        linear-gradient(120deg, rgba(201,209,217,.45), rgba(139,148,158,.08) 55%, rgba(88,166,255,.35)) border-box;
    color: #e6edf3;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .10em;
    text-align: center;
    text-transform: uppercase;
}
.ahs-ti-head i { color: #6e7681; font-style: normal; margin: 0 2px; }

.ahs-ti-status {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.02);
    border: 1px solid #1c2128;
}
.ahs-ti-badge {
    padding: 6px 20px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
    background: color-mix(in srgb, var(--c) 12%, transparent);
    color: var(--c);
    font-size: 15px;
    font-weight: 800;
}
.ahs-ti-dir { font-size: 19px; font-weight: 900; letter-spacing: .04em; }
.ahs-ti-dir.long  { color: #3fb950; text-shadow: 0 0 16px rgba(63,185,80,.35); }
.ahs-ti-dir.short { color: #f85149; text-shadow: 0 0 16px rgba(248,81,73,.35); }

.ahs-ti-live {
    display: none;          /* JS açıyor */
    align-items: baseline; gap: 10px;
    margin-bottom: 14px; padding-left: 4px;
}
.ahs-ti-live #ahs-tp-price { font-size: 25px; font-weight: 800; color: #e6edf3; font-variant-numeric: tabular-nums; }
.ahs-ti-live #ahs-tp-r     { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ahs-ti-live em            { font-size: 10px; color: #6e7681; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }

.ahs-ti-grid { display: grid; gap: 10px; margin-bottom: 12px; }
.ahs-ti-grid.two   { grid-template-columns: 1fr 1fr; }
.ahs-ti-grid.three { grid-template-columns: repeat(3, 1fr); }

.ahs-tile {
    padding: 10px 12px 11px;
    border-radius: 12px;
    border: 1px solid #262c36;
    background: linear-gradient(#141920, #10141b);
    text-align: center;
    transition: transform .15s, box-shadow .15s;
}
.ahs-tile:hover { transform: translateY(-1px); }
.ahs-tile span {
    display: block;
    font-size: 10px; font-weight: 800; letter-spacing: .12em;
    color: #8b949e; text-transform: uppercase; margin-bottom: 5px;
}
.ahs-tile b  { display: block; font-size: 15px; font-weight: 800; color: #e6edf3; font-variant-numeric: tabular-nums; }
.ahs-tile em { display: block; margin-top: 2px; font-size: 11px; font-style: normal; color: #6e7681; }

.ahs-tile.entry { border-color: rgba(201,209,217,.35); box-shadow: inset 0 0 18px rgba(201,209,217,.05); }
.ahs-tile.stop  { border-color: rgba(248,81,73,.45);  background: linear-gradient(#1c1316, #140f12); }
.ahs-tile.stop b { color: #ff8a83; }

.ahs-tile.tp     { border-color: rgba(34,197,94,.28); }
.ahs-tile.tp b   { color: #a9e6c2; }
.ahs-tile.tp.hit {
    border-color: #22c55e;
    background: linear-gradient(#10261a, #0c1a12);
    box-shadow: 0 0 0 1px rgba(34,197,94,.35), 0 0 18px rgba(34,197,94,.35);
    animation: ahs-tp-glow 2.4s ease-in-out infinite;
}
.ahs-tile.tp.hit b, .ahs-tile.tp.hit span { color: #6ee7a0; }

@keyframes ahs-tp-glow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(34,197,94,.30), 0 0 12px rgba(34,197,94,.25); }
    50%      { box-shadow: 0 0 0 1px rgba(34,197,94,.55), 0 0 22px rgba(34,197,94,.45); }
}

.ahs-ti-result {
    margin: 4px 0 12px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #1c2128;
    background: rgba(255,255,255,.02);
    font-size: 13px; color: #8b949e;
    text-align: center;
}
.ahs-ti-result b { font-size: 16px; margin-left: 8px; }
.ahs-ti-result.win  b { color: #3fb950; }
.ahs-ti-result.loss b { color: #f85149; }

.ahs-ti-times {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #1c2128;
    background: rgba(255,255,255,.015);
    font-size: 11px; color: #6e7681; line-height: 1.9;
    text-align: center;
}
.ahs-ti-times b { color: #8b949e; font-weight: 600; margin-left: 6px; }

.ahs-ti-status { justify-content: center; }
.ahs-ti-live   { justify-content: center; }

/* Yanıp sönen canlı göstergesi */
.ahs-ti-live em.ahs-live-dot { display: inline-flex; align-items: center; gap: 6px; color: #8b949e; }
.ahs-ti-live em.ahs-live-dot::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #3fb950;
    box-shadow: 0 0 8px rgba(63,185,80,.9);
    animation: ahs-live-blink 1.4s ease-in-out infinite;
}
@keyframes ahs-live-blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

/* Altın fiyat */
.ahs-ti-live #ahs-tp-price {
    background: linear-gradient(180deg, #fff6d0 0%, #f6d572 38%, #c9931f 62%, #ffeaa0 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 6px rgba(201,147,31,.30));
    letter-spacing: .01em;
}
.ahs-fill {
    position: absolute; left: 0; right: 0;
    height: 0;
    transition: top .4s ease, height .4s ease, background .3s;
    pointer-events: none;
}
#ahs-trade-chart {
    margin-top: 18px;
    height: 420px;
    border: 1px solid #1c2128;
    border-radius: 12px;
    overflow: hidden;
    background: #0d1117;
}
@media (max-width: 640px) { #ahs-trade-chart { height: 300px; } }
/* ── İşlem arşivi ─────────────────────────────────────────── */
.ahs-archive {
    max-width: 1040px;
    margin: 32px auto;
    padding: 22px;
    background: #0d1117;
    border-radius: 14px;
    color: #c9d1d9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ahs-ar-title { margin: 0 0 6px; font-size: 24px; font-weight: 800; color: #e6edf3; letter-spacing: .04em; }
.ahs-ar-sub   { margin: 0 0 20px; font-size: 13px; color: #8b949e; line-height: 1.7; }
.ahs-ar-live  { margin-bottom: 26px; }
.ahs-ar-h2 {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #21262d;
    font-size: 14px; font-weight: 800; letter-spacing: .10em;
    text-transform: uppercase; color: #8b949e;
}
.ahs-ar-empty { padding: 26px; text-align: center; color: #6e7681; font-size: 13px; }

.ahs-ar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 12px; }

.ahs-ar-card {
    display: block;
    padding: 14px;
    border: 1px solid rgb(78, 93, 114);
    border-radius: 12px;
    background: linear-gradient(#12161d, #0f131a);
    text-decoration: none !important;
    color: inherit;
    transition: border-color .2s, transform .15s, box-shadow .2s;
}
.ahs-ar-card:hover {
    border-color: #58a6ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,.4);
}
.ahs-ar-card.open { border-color: rgba(63,185,80,.35); }

.ahs-ar-top { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; flex-wrap: wrap; row-gap: 5px;}
.ahs-ar-sym { font-size: 14px; font-weight: 800; color: #e6edf3; letter-spacing: .02em; }
.ahs-ar-bar,
.ahs-ar-side,
.ahs-ar-pattern {
    padding: 1px 6px;
    border-radius: 5px;
    background: #21262d;
    color: #8b949e;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.ahs-ar-tps { display: flex; gap: 5px; margin-bottom: 12px; }
.ahs-ar-tps span {
    flex: 1;
    padding: 4px 0;
    border: 1px solid rgba(34,197,94,.20);
    border-radius: 6px;
    text-align: center;
    font-size: 9px; font-weight: 800; letter-spacing: .06em;
    color: #4d5761;
}
.ahs-ar-tps span.hit {
    border-color: #22c55e;
    background: rgba(34,197,94,.14);
    color: #6ee7a0;
    box-shadow: 0 0 10px rgba(34,197,94,.22);
}

.ahs-ar-foot { display: flex; align-items: baseline; justify-content: space-between; }
.ahs-ar-r { font-size: 16px; font-weight: 800; color: #6e7681; font-variant-numeric: tabular-nums; }
.ahs-ar-r.win  { color: #3fb950; }
.ahs-ar-r.loss { color: #f85149; }
.ahs-ar-r.open { font-size: 12px; color: #3fb950; }
.ahs-ar-dur { font-size: 10px; color: #6e7681; }

.ahs-ar-nav { margin-top: 20px; }
.ahs-ar-nav a, .ahs-ar-nav .current {
    display: inline-block; padding: 5px 11px; margin-right: 5px;
    border: 1px solid #21262d; border-radius: 7px;
    color: #8b949e; font-size: 12px; text-decoration: none !important;
}
.ahs-ar-nav .current { border-color: #58a6ff; color: #e6edf3; }

@media (max-width: 640px) {
    .ahs-archive { padding: 14px; margin: 16px auto; }
    .ahs-ar-title { font-size: 19px; }
    .ahs-ar-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .ahs-ar-card { padding: 10px; border-radius: 10px; }
    .ahs-ar-sym { font-size: 12px; }
    .ahs-ar-r { font-size: 14px; }
}
.ahs-fill.done.win  { background: rgba(34,197,94,.45); }
.ahs-fill.done.loss { background: rgba(239,68,68,.45); }

@media (max-width: 640px) {
    .ahs-tc { gap: 6px; }
    .ahs-tc-info { min-width: 0; padding: 8px; }
    .ahs-tc-ladder { flex: 0 0 88px; width: 88px; min-width: 0; margin-left: 0; min-height: 240px; }

    .ahs-marker span { right: auto; left: 4px; top: -10px; font-size: 8px; }
    .ahs-marker span::after { content: ''; }
    .ahs-ll b { font-size: 7px; top: -10px; right: 4px; }

    .ahs-ti-head { font-size: 8px; letter-spacing: 0; line-height: 1.3; padding: 4px 5px; margin-bottom: 5px; border-radius: 8px; }
    .ahs-ti-status { flex-wrap: nowrap; gap: 5px; padding: 4px 6px; margin-bottom: 5px; border-radius: 8px; }
    .ahs-ti-badge { font-size: 8px; padding: 1px 7px; }
    .ahs-ti-dir { font-size: 10px; white-space: nowrap; }

    .ahs-ti-live { flex-wrap: nowrap; gap: 4px; padding: 0; margin-bottom: 5px; }
    .ahs-ti-live #ahs-tp-price { font-size: 13px; }
    .ahs-ti-live #ahs-tp-r { font-size: 9px; }
    .ahs-ti-live em.ahs-live-dot { font-size: 7px; gap: 3px; }
    .ahs-ti-live em.ahs-live-dot::before { width: 4px; height: 4px; }

    .ahs-ti-grid { gap: 4px; margin-bottom: 4px; }
    .ahs-tile { padding: 4px 2px; border-radius: 7px; }
    .ahs-tile span { font-size: 6px; letter-spacing: 0; margin-bottom: 0; }
    .ahs-tile b { font-size: 9px; }
    .ahs-tile em { font-size: 6px; margin-top: 0; }

    .ahs-ti-result { padding: 5px 7px; margin: 1px 0 4px; font-size: 9px; }
    .ahs-ti-result b { font-size: 11px; }
    .ahs-ti-times { padding: 4px 7px; font-size: 7px; line-height: 1.6; }

    .ahs-ti-grid.three { grid-template-columns: repeat(3, 1fr); }
    .ahs-ti-grid.three > :last-child { grid-column: auto; }
}
/* ── İşlem sayfalarında koyu zemin ────────────────────────── */
body.single-ahs_trade,
body.post-type-archive-ahs_trade {
    background: #06080c;
    color: #c9d1d9;
}
body.single-ahs_trade .site-main,
body.single-ahs_trade .site-header,
body.single-ahs_trade .site-footer,
body.post-type-archive-ahs_trade .site-main,
body.post-type-archive-ahs_trade .site-header,
body.post-type-archive-ahs_trade .site-footer {
    background: transparent;
}
body.single-ahs_trade .site-header,
body.post-type-archive-ahs_trade .site-header {
    border-bottom: 1px solid #161b22;
}
/* ── Tema başlığını sadeleştir ────────────────────────────── */
body.single-ahs_trade .site-description,
body.post-type-archive-ahs_trade .site-description { display: none; }

body.single-ahs_trade .site-header,
body.post-type-archive-ahs_trade .site-header { padding: 14px 20px; }

body.single-ahs_trade .site-title,
body.post-type-archive-ahs_trade .site-title { margin: 0; font-size: 20px; }

body.single-ahs_trade .site-title a,
body.post-type-archive-ahs_trade .site-title a {
    color: #e6edf3;
    font-weight: 800;
    letter-spacing: .06em;
    text-decoration: none;
}
body.single-ahs_trade .site-title a:hover,
body.post-type-archive-ahs_trade .site-title a:hover { color: #58a6ff; }
/* ── Eklenti başlığı ──────────────────────────────────────── */
.ahs-site-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ahs-sh-logo { flex-shrink: 0; display: inline-flex; }
.ahs-sh-title a {
    color: #e6edf3 !important;
    font-size: 14px; font-weight: 700; letter-spacing: 2px;
    text-decoration: none !important;
}
.ahs-sh-links { display: flex; gap: 12px; margin-top: 2px; font-size: 12px; }
.ahs-sh-links a {
    display: inline-flex; align-items: center; gap: 4px;
    color: #58a6ff !important; text-decoration: none !important;
}
.ahs-sh-links img { width: 14px; height: 14px; border-radius: 3px; }

/* tema başlığını bu sayfalarda gizle */
body.single-ahs_trade .site-header,
body.post-type-archive-ahs_trade .site-header { display: none; }

.ahs-back {
    display: inline-block;
    margin-bottom: 14px;
    color: #8b949e !important;
    font-size: 12px;
    text-decoration: none !important;
    transition: color .15s;
}
.ahs-back:hover { color: #58a6ff !important; }