/* ==========================================================================
   DGR Web v12 "Ember" — Referanslar
   Kart (.rc) · Referanslar sayfası (.rf) · Ayrıntı penceresi (.rdlg)
   Tokenlar theme.css'ten; yalnız transform/opacity animasyonu; satır içi stil yok (CSP).
   ========================================================================== */

/* ---------- Kart ---------- */
.rc {
    --rc-scroll: 120;          /* tam sayfa kapağın kayma mesafesi (ekran genişliğinin %'si); JS görselden hesaplar */
    --rc-dur: 6s;              /* kayma süresi; JS mesafeye göre ayarlar */
    --rc-radius: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    min-width: 0;
    height: 100%;
    padding: clamp(0.9rem, 1.6vw, 1.25rem);
    border: 1px solid var(--line);
    border-radius: var(--rc-radius);
    background: var(--surface);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
    color: var(--text);
    isolation: isolate;
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.4s var(--ease);
}

/* Gradyan kenarlık (turuncu → şeffaf → amber ucu), 1px maske ile; hover'da belirir */
.rc::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 70%, transparent), transparent 42%, transparent 68%, color-mix(in srgb, var(--accent, var(--accent-amber, #ffb347)) 45%, transparent));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.5s var(--ease);
    z-index: 0;
}

/* Çok yumuşak turuncu leke (kartın üst-sol köşesi) */
.rc::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(70% 40% at 12% 0%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s var(--ease);
    z-index: 0;
}

.rc > * {
    position: relative;
    z-index: 1;
}

/* ---------- Sahne: tarayıcı + telefon ---------- */
.rc__stage {
    position: relative;
    min-width: 0;
}

.rc--lg .rc__stage {
    padding: 0 11% 7% 0;
}

.rc__browser {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 14px;
    background: var(--surface-2);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.04), 0 24px 40px -30px rgb(0 0 0 / 0.8);
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.rc__browser:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.rc__bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    height: 34px;
    padding: 0 0.7rem;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}

.rc__dots {
    display: flex;
    gap: 5px;
    flex: none;
}

.rc__dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line-2);
    transition: background-color 0.35s var(--ease);
}

.rc__url {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
    max-width: 62%;
    height: 21px;
    margin: 0 auto;
    padding: 0 0.6rem;
    overflow: hidden;
    border-radius: 6px;
    background: var(--line);
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.01em;
    color: var(--text-2);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rc__lock {
    width: 10px;
    height: 10px;
    flex: none;
    color: var(--text-3);
}

.rc__live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: none;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-600);
}

.rc__live i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent);
    animation: rc-ping 2.6s var(--ease) infinite;
}

@keyframes rc-ping {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); }
    50% { box-shadow: 0 0 0 5px transparent; }
}

.rc__screen {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1600 / 911;
    background: var(--surface-3);
    container-type: inline-size;
}

.rc__desktop,
.rc__blank {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.rc__blank {
    display: grid;
    align-content: start;
    gap: 7%;
    padding: 8% 10%;
}

.rc__blank i {
    display: block;
    height: 4%;
    border-radius: 99px;
    background: var(--line-2);
}

.rc__blank i:first-child { width: 38%; background: var(--brand); }
.rc__blank i:nth-child(2) { width: 100%; height: 9%; }
.rc__blank i:nth-child(3) { width: 72%; }

/* Tam sayfa kapak: üstte, görünmez; hover/odakta belirir ve yukarı kayar */
.rc__full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transform: translateY(0);
    transition: opacity 0.4s var(--ease), transform 0.9s var(--ease);
    will-change: transform;
    pointer-events: none;
}

.rc.is-playing .rc__full,
.rc__browser:focus-visible .rc__full {
    opacity: 1;
    transform: translateY(calc(var(--rc-scroll) * -1cqw));
    transition: opacity 0.45s var(--ease), transform var(--rc-dur) cubic-bezier(0.35, 0, 0.25, 1) 0.3s;
}

/* Telefon çerçevesi (yalnız lg) */
.rc__phone {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 24%;
    aspect-ratio: 9 / 19.2;
    padding: 3.2%;
    border: 1px solid rgb(255 255 255 / 0.16);
    border-radius: 14% / 6.6%;
    background: #0b0c10;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05), 0 30px 50px -28px rgb(0 0 0 / 0.9);
    transition: transform 0.7s var(--ease);
}

.rc__phone-screen {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 11% / 5.2%;
    background: #15171d;
}

.rc__phone-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.rc__phone-island {
    position: absolute;
    top: 5.5%;
    left: 50%;
    width: 30%;
    height: 2.6%;
    border-radius: 99px;
    background: #0b0c10;
    transform: translateX(-50%);
}

/* ---------- Gövde ---------- */
.rc__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.6rem;
    min-width: 0;
}

.rc__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.rc__domain {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 28px;
    padding: 0 0.7rem 0 0.6rem;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    color: var(--text);
    background: color-mix(in srgb, var(--surface-2) 70%, transparent);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.rc__domain .icon {
    width: 0.85rem;
    height: 0.85rem;
    color: var(--brand-600);
}

.rc__domain .rc__ext {
    width: 0.72rem;
    height: 0.72rem;
    color: var(--text-3);
    transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

.rc__domain:hover {
    border-color: var(--brand);
}

.rc__domain:hover .rc__ext {
    color: var(--brand-600);
    transform: translate(1px, -1px);
}

.rc__domain:focus-visible,
.rc__more:focus-visible,
.rc__visit:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.rc__meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: var(--text-3);
    white-space: nowrap;
}

.rc__meta i {
    font-style: normal;
    color: var(--brand);
}

.rc__title {
    font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.55rem);
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
}

.rc--md .rc__title {
    font-size: 1.15rem;
}

.rc__summary {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-2);
    text-wrap: pretty;
}

.rc__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.1rem;
}

.rc__tags li {
    padding: 0.22rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    color: var(--text-2);
    background: var(--surface-2);
}

.rc__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.rc__actions .btn {
    height: 42px;
    padding: 0 1.1rem;
    font-size: 0.9rem;
    font-weight: 650;
}

.rc__more {
    cursor: pointer;
    color: var(--text);
    background: transparent;
    border-color: var(--line-2);
}

.rc__more:hover {
    border-color: var(--text);
    background: transparent;
}

/* ---------- Hover (yalnız ince imleç) ---------- */
@media (hover: hover) and (pointer: fine) {
    .rc:hover {
        transform: translateY(-4px);
        border-color: transparent;
        box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 40px 70px -40px var(--brand-glow, rgb(255 90 31 / 0.35));
    }

    .rc:hover::before,
    .rc:hover::after {
        opacity: 1;
    }

    .rc:hover .rc__dots i:nth-child(1) { background: #ff5f57; }
    .rc:hover .rc__dots i:nth-child(2) { background: #febc2e; }
    .rc:hover .rc__dots i:nth-child(3) { background: #28c840; }

    .rc:hover .rc__full {
        opacity: 1;
        transform: translateY(calc(var(--rc-scroll) * -1cqw));
        transition: opacity 0.45s var(--ease), transform var(--rc-dur) cubic-bezier(0.35, 0, 0.25, 1) 0.3s;
    }

    .rc:hover .rc__phone {
        transform: translateY(-6px);
    }
}

.rc:focus-within::before {
    opacity: 1;
}

/* ---------- Hareket azaltma: her şey statik ve görünür ---------- */
@media (prefers-reduced-motion: reduce) {
    .rc,
    .rc__full,
    .rc__phone,
    .rc__browser {
        transition: none !important;
    }

    .rc__live i {
        animation: none;
    }

    .rc:hover .rc__full,
    .rc.is-playing .rc__full,
    .rc__browser:focus-visible .rc__full {
        opacity: 0;
        transform: none;
    }

    .rc:hover {
        transform: none;
    }
}

html[data-motion="off"] .rc,
html[data-motion="off"] .rc__full,
html[data-motion="off"] .rc__phone,
html[data-motion="off"] .rc__browser {
    transition: none !important;
}

html[data-motion="off"] .rc__live i,
html[data-motion="calm"] .rc__live i {
    animation: none;
}

html[data-motion="off"] .rc:hover .rc__full,
html[data-motion="off"] .rc.is-playing .rc__full,
html[data-motion="off"] .rc__browser:focus-visible .rc__full {
    opacity: 0;
    transform: none;
}

html[data-motion="off"] .rc:hover {
    transform: none;
}

/* ==========================================================================
   Referanslar sayfası
   ========================================================================== */
.rf {
    padding-top: clamp(0.5rem, 2vw, 1.5rem);
}

.rf [hidden] {
    display: none !important;
}

.rf__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
}

.rf__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 1.5rem;
}

.rf__filter {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.45rem 0;
    border: 0;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-2);
    background: transparent;
    cursor: pointer;
    transition: color 0.25s var(--ease);
}

.rf__filter::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.45s var(--ease);
}

.rf__filter:hover,
.rf__filter[aria-pressed="true"] {
    color: var(--text);
}

.rf__filter[aria-pressed="true"]::after {
    transform: none;
}

.rf__filter:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.rf__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.rf__grid > li {
    min-width: 0;
}

@media (min-width: 900px) {
    .rf__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.rf__empty {
    padding: 3rem 0;
    text-align: center;
    color: var(--text-2);
}

.rf__note {
    margin-top: 1.1rem;
    font-size: 0.9rem;
    color: var(--text-3);
}

/* ==========================================================================
   Ayrıntı penceresi (dialog)
   ========================================================================== */
html.rdlg-open {
    overflow: hidden;
}

.rdlg {
    width: min(1180px, 94vw);
    max-width: none;
    max-height: 92vh;
    margin: auto;
    padding: 0;
    border: 1px solid var(--line-2);
    border-radius: 22px;
    background: var(--bg-2);
    color: var(--text);
    box-shadow: 0 60px 120px -50px rgb(0 0 0 / 0.9);
    overflow: hidden;
}

.rdlg::backdrop {
    background: rgb(4 4 6 / 0.72);
}

.rdlg[open] {
    animation: rdlg-in 0.4s var(--ease);
}

@keyframes rdlg-in {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to { opacity: 1; transform: none; }
}

.rdlg__inner {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: 92vh;
}

.rdlg__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.1rem 0.9rem 1.4rem;
    border-bottom: 1px solid var(--line);
}

.rdlg__head .eyebrow {
    flex: none;
}

.rdlg__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    color: var(--text);
    background: transparent;
    cursor: pointer;
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.rdlg__close .icon {
    width: 1.1rem;
    height: 1.1rem;
}

.rdlg__close:hover {
    border-color: var(--text);
    transform: rotate(90deg);
}

.rdlg__close:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.rdlg__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    min-height: 0;
    padding: 1.25rem 1.4rem 1.4rem;
    overflow: auto;
}

@media (min-width: 900px) {
    .rdlg__grid {
        grid-template-columns: minmax(0, 1.55fr) minmax(16rem, 0.85fr);
        overflow: hidden;
    }
}

/* Tarayıcı çerçevesi: kaydırılabilir tam sayfa */
.rdlg__browser {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    border: 1px solid var(--line-2);
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface-2);
}

.rdlg__bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    height: 36px;
    padding: 0 0.75rem;
    border-bottom: 1px solid var(--line);
}

.rdlg__bar .rc__url {
    max-width: 70%;
}

.rdlg__progress {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.15s linear;
}

.rdlg__scroll {
    min-height: 0;
    max-height: 70vh;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--line-2) transparent;
    background: var(--surface-3);
}

@media (min-width: 900px) {
    .rdlg__scroll {
        max-height: none;
    }
}

.rdlg__scroll img {
    display: block;
    width: 100%;
    height: auto;
}

.rdlg__hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-3);
}

.rdlg__hint .icon {
    width: 0.9rem;
    height: 0.9rem;
    color: var(--brand-600);
}

/* Sağ sütun */
.rdlg__side {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line-2) transparent;
}

.rdlg__phone-wrap {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0 0.25rem;
}

.rdlg__phone-wrap .rc__phone {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(46%, 11rem);
}

.rdlg__title {
    font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.rdlg__domain {
    align-self: flex-start;
}

.rdlg__summary {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-2);
}

.rdlg__kv {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--line);
}

.rdlg__kv > div {
    display: grid;
    gap: 0.15rem;
    padding: 0.7rem 0.8rem;
    background: var(--surface);
}

.rdlg__kv dt {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}

.rdlg__kv dd {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    overflow-wrap: anywhere;
}

.rdlg__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.rdlg__actions .btn {
    height: 44px;
    font-size: 0.92rem;
}

@media (prefers-reduced-motion: reduce) {
    .rdlg[open] {
        animation: none;
    }

    .rdlg__close,
    .rdlg__progress {
        transition: none;
    }
}

html[data-motion="off"] .rdlg[open] {
    animation: none;
}

@media (max-width: 600px) {
    .rdlg {
        width: 100vw;
        max-height: 100dvh;
        border-radius: 0;
        border: 0;
    }

    .rdlg__inner {
        max-height: 100dvh;
    }

    .rdlg__grid {
        padding: 1rem;
    }

    .rdlg__kv {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rc--lg .rc__stage {
        padding-right: 9%;
    }
}

/* v13 — sağdan sola (Arapça): süzgeç alt çizgisi sağdan çizilir */
[dir="rtl"] .rf__filter::after {
    transform-origin: 100% 50%;
}

/* ==========================================================================
   v14 — Referanslar imza sahnesi: "alan adı ağı" (.rfx-*). Ortak taban (.sig-*) services.css'te.
   Alan adına / referans kartına gelince düğüm yanar, kablo boyunca ışık ortadaki pencereye akar,
   pencerede o sitenin adresi ve küçük kapak önizlemesi belirir. Sayı yok.
   ========================================================================== */
.rfx-list {
    display: grid;
    gap: 0.55rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 480px) {
    .rfx-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.rfx-list__item { min-width: 0; }

.rfx-dom {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 0.7rem;
    height: 100%;
    padding: 0.62rem 0.8rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), transform 0.35s var(--ease);
}

.rfx-dom::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: var(--grad-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease);
}

[dir="rtl"] .rfx-dom::after { transform-origin: right; }

.rfx-dom:hover,
.rfx-dom:focus-visible,
.rfx-dom.is-hot {
    border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
    background: color-mix(in srgb, var(--brand) 5%, var(--surface));
}

.rfx-dom:hover::after,
.rfx-dom:focus-visible::after,
.rfx-dom.is-hot::after { transform: scaleX(1); }

.rfx-dom:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (hover: hover) and (pointer: fine) {
    .rfx-dom:hover { transform: translateY(-2px); }
}

.rfx-dom__ico {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
    border-radius: var(--r-sm);
    background: var(--brand-soft);
    color: var(--brand-600);
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.rfx-dom__ico .icon { width: 16px; height: 16px; }

.rfx-dom:hover .rfx-dom__ico,
.rfx-dom:focus-visible .rfx-dom__ico,
.rfx-dom.is-hot .rfx-dom__ico { background: var(--brand-fill); color: var(--brand-ink); }

.rfx-dom__body { display: grid; gap: 0.1rem; min-width: 0; }

.rfx-dom__name {
    overflow: hidden;
    font: 600 0.92rem/1.25 var(--font);
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
    unicode-bidi: isolate;
}

[dir="rtl"] .rfx-dom__name { text-align: end; }

.rfx-dom__sector {
    overflow: hidden;
    font-size: 0.76rem;
    color: var(--text-3);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rfx-dom__go { color: var(--text-3); transition: color 0.3s var(--ease), transform 0.3s var(--ease); }
.rfx-dom__go .icon { width: 15px; height: 15px; }
.rfx-dom:hover .rfx-dom__go,
.rfx-dom:focus-visible .rfx-dom__go { color: var(--brand-600); transform: translateY(2px); }

/* sahne: kablolar */
.rfx__aura { fill: color-mix(in srgb, var(--brand) 4%, transparent); stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 6; }

.rfx__link { transition: opacity 0.3s var(--ease); }

.rfx__cable {
    fill: none;
    stroke: color-mix(in srgb, var(--text-3) 60%, transparent);
    stroke-width: 1.2;
    stroke-dasharray: 3 5;
    transition: stroke 0.3s var(--ease);
}

.rfx__flow,
.rfx__beam {
    fill: none;
    stroke: var(--brand);
    stroke-linecap: round;
    stroke-dashoffset: 100;
}

.rfx__flow {
    stroke-width: 1.6;
    stroke-dasharray: 5 95;
    opacity: 0.4;
    animation: rfx-run 4.4s linear infinite;
}

.rfx__link:nth-child(2n) .rfx__flow { animation-delay: -1.6s; }
.rfx__link:nth-child(3n) .rfx__flow { animation-delay: -2.9s; }

.rfx__beam {
    stroke-width: 2.4;
    stroke-dasharray: 22 78;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

@keyframes rfx-run { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.rfx__port { fill: var(--surface-3); stroke: color-mix(in srgb, var(--text-3) 60%, transparent); stroke-width: 1; transition: fill 0.3s var(--ease); }

.sig-stage[data-hot] .rfx__link:not(.is-hot) { opacity: 0.4; }
.rfx__link.is-hot .rfx__cable { stroke: color-mix(in srgb, var(--brand) 60%, transparent); }
.rfx__link.is-hot .rfx__flow { opacity: 0; }
.rfx__link.is-hot .rfx__beam { opacity: 1; animation: rfx-run 1.05s linear infinite; filter: drop-shadow(0 0 5px var(--brand-glow)); }
.rfx__link.is-hot .rfx__port { fill: var(--brand); stroke: var(--brand); filter: drop-shadow(0 0 5px var(--brand)); }

.rfx__letter {
    fill: var(--text-2);
    font: 700 17px var(--mono);
    pointer-events: none;
    transition: fill 0.3s var(--ease);
}

.sig-node.is-hot .rfx__letter,
.sig-node.is-on .rfx__letter { fill: var(--brand-600); }
.rfx__label { font-size: 12.5px; }

/* sahne: ortadaki tarayıcı penceresi */
.rfx-win {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 50%;
    border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line-2));
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--bg-2) 70%, transparent), 0 18px 40px -18px rgb(0 0 0 / 0.6), 0 0 40px -10px var(--brand-glow);
    transform: translate(-50%, -50%);
    transition: box-shadow 0.4s var(--ease);
}

.sig-stage[data-hot] .rfx-win { box-shadow: 0 0 0 5px color-mix(in srgb, var(--bg-2) 70%, transparent), 0 18px 40px -18px rgb(0 0 0 / 0.6), 0 0 56px -6px var(--brand-glow); }

.rfx-win .sig-core__pulse { border-radius: 10px; }

.rfx-win__bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    padding: 0.32rem 0.45rem;
    border-bottom: 1px solid var(--line);
}

.rfx-win__dots { display: inline-flex; flex: none; gap: 3px; }
.rfx-win__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }

.rfx-win__url {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    height: 15px;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-3);
}

.rfx-win__url .icon { flex: none; width: 8px; height: 8px; }

.rfx-win__urls { display: grid; flex: 1; min-width: 0; }

.rfx-win__u {
    grid-area: 1 / 1;
    overflow: hidden;
    font: 500 0.56rem/15px var(--mono);
    color: var(--text-2);
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s var(--ease), transform 0.35s var(--ease-out);
}

.rfx-win__u.is-hot { opacity: 1; transform: none; }

.rfx-win__u--idle { display: flex; align-items: center; gap: 4px; opacity: 1; transform: none; }
.rfx-win__u--idle b { height: 4px; border-radius: 2px; background: var(--line-2); }
.rfx-win__u--idle b:first-child { width: 42%; }
.rfx-win__u--idle b:last-child { width: 22%; }
.sig-stage[data-hot] .rfx-win__u--idle { opacity: 0; }

.rfx-win__live {
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-3);
    transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.sig-stage[data-hot] .rfx-win__live { background: var(--ok); box-shadow: 0 0 6px var(--ok); }

.rfx-win__screen {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0 0 9px 9px;
    background:
        radial-gradient(60% 70% at 50% 50%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 70%),
        radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 1.5px) 0 0 / 12px 12px,
        var(--bg-2);
}

.rfx-win__logo { display: grid; place-items: center; width: 36%; color: var(--text); transition: opacity 0.3s var(--ease), transform 0.45s var(--ease); }
.rfx-win__logo .logo__svg { width: 100%; height: auto; }
.sig-stage[data-hot] .rfx-win__logo { opacity: 0; transform: scale(0.85); }

.rfx-win__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    opacity: 0;
    transform: scale(1.12) translateY(4%);
    transition: opacity 0.45s var(--ease), transform 0.8s var(--ease-out);
}

.rfx-win__cover.is-hot {
    opacity: 1;
    transform: scale(1.12) translateY(5%);
    animation: rfx-pan 7s var(--ease-io) 0.4s infinite alternate;
}

@keyframes rfx-pan {
    from { transform: scale(1.12) translateY(5%); }
    to { transform: scale(1.12) translateY(-5%); }
}

.rfx-win__scan {
    position: absolute;
    inset: 0 0 auto;
    height: 30%;
    background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--brand) 16%, transparent), transparent);
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.sig-stage[data-hot] .rfx-win__scan { animation: rfx-scan 2.8s var(--ease-io) infinite; }

@keyframes rfx-scan {
    0% { opacity: 0; transform: translateY(-100%); }
    10% { opacity: 1; }
    45% { opacity: 1; transform: translateY(340%); }
    46%, 100% { opacity: 0; transform: translateY(340%); }
}

@media (max-width: 559.98px) {
    .rfx__label { font-size: 16px; }
    .rfx-win__bar { padding: 0.22rem 0.35rem; }
    .rfx-win__url { height: 12px; }
    .rfx-win__u { font-size: 0.5rem; line-height: 12px; }
}

/* hareket seviyeleri */
html[data-motion="calm"] .sig-stage:not([data-hot]) .rfx__flow { animation: none; opacity: 0; }
html[data-motion="calm"] .rfx-win__cover.is-hot { animation: none; }

@media (prefers-reduced-motion: reduce) {
    .rfx__flow { display: none; }
    .rfx__beam { stroke-dasharray: none; }
    .rfx-win__scan { display: none; }
    .rfx-win__cover { transform: none !important; }
    .rfx-dom { transition: none; }
}

html[data-motion="off"] .rfx__flow { display: none; }
html[data-motion="off"] .rfx__beam { stroke-dasharray: none; }
html[data-motion="off"] .rfx-win__scan { display: none; }
html[data-motion="off"] .rfx-win__cover { transform: none !important; }

/* dar ekran: alan adları iki sütunda, simgesiz */
.rfx-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 479.98px) {
    .rfx-dom { grid-template-columns: minmax(0, 1fr) 14px; gap: 0.4rem; padding: 0.6rem 0.7rem; }
    .rfx-dom__ico { display: none; }
    .rfx-dom__name { font-size: 0.84rem; }
    .rfx-dom__sector { font-size: 0.72rem; }
}

@media (max-width: 559.98px) {
    /* dar sahnede düğüm adları pencereyle çakışır: adres pencerenin çubuğunda ve üstteki listede görünür */
    .rfx__label { display: none; }
}
