/* ============================================
   Kurumsal e-posta sayfası: yalnız bu sayfaya özgü kurallar.
   Ortak bileşenler cloudserver.css, yapılandırıcı izhost-configurator.css, hero hero-stack.css içindedir.
   ============================================ */

.em [hidden] { display: none; }

.em-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px 0; font-size: 14.5px; color: var(--hm-ink-2); }
.em .cfg-profiles { margin-top: 2px; }

/* Bölüm başlığı: daraltılmaz */
.em-sec-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px 6px; }

/* Domain alanı */
.em-field { padding: 8px 0 14px; }
.em-field label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; color: var(--hm-ink); }
.em-field input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #c3d2e0; border-radius: 10px; background: #fff; color: var(--hm-ink); font: 400 15px var(--font-body); }
.em-field input:focus { outline: none; border-color: var(--hm-blue-600); box-shadow: 0 0 0 3px rgb(29 110 168 / .32); }
.em-err { margin-top: 6px; font-size: 14px; font-weight: 600; color: #b42318; }

/* Değer rozeti ve sınır etiketleri */
.em-val { margin-left: auto; font: 700 16px/1.2 var(--hm-display); font-variant-numeric: tabular-nums; color: var(--hm-ink); }
.em-limits { position: absolute; left: 0; right: 0; top: 28px; display: flex; justify-content: space-between; margin-top: 0; opacity: 1; font-size: 14px; line-height: 20px; color: var(--hm-ink-2); font-variant-numeric: tabular-nums; }

/* Alias ve grup sayaçları */
.em-steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; padding-top: 14px; border-top: 1px solid var(--hm-line); }
.em-steppers .cfg-res-head { margin-bottom: 0; }
.em-steppers .cfg-num-input { width: 52px; text-align: center; padding: 0; border-right: 1px solid var(--hm-line); }

/* Özet: masaüstünde yapışkan, dar ekranda akışta */
.em-aside { position: sticky; top: 92px; }
.em-aside .cfg-sum { max-height: none; }
.em-save { margin: 4px 0 6px; font-size: 14px; font-weight: 600; color: #84e3bd; }
.em .cfg-btn.is-added { background: #0b7a5a; }
.em .cfg-period { padding: 6px 2px; }

.em-first { padding-top: 0; }

@media (max-width: 991.98px) {
    .em-aside { position: static; }
    .em-first { padding-top: 12px; }
}
@media (max-width: 520px) {
    .em-steppers { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================
   Hero görseli (pages/emailservice/hero-viz): 3D zarf, platform, bilgi kartları ve veri akışı.
   Hero düzeni, zemini ve görsel kutusu ortak ürün hero standardından gelir (.hs-cloud, hero-stack.css); burada yalnız görselin içi tanımlanır.
   Sahne 1600 × 960 birimdir (5:3); katman konumları bu ölçünün yüzdesi, parçacık yolları cqw cinsindendir (1 birim = 1/16 cqw).
   Sürekli hareketler (süzülme, veri akışı, kalkan ışığı) ile tek seferlik giriş ve hover hareketleri ayrı öğelerdedir; hepsi yalnız transform ve opacity kullanır.
   ============================================ */
.em-viz { overflow: visible; }
.em-stage { position: relative; aspect-ratio: 5 / 3; container-type: inline-size; }
.em-stage > * { position: absolute; pointer-events: none; }
.em-plat { left: 15%; top: 60%; width: 70.0625%; height: auto; }
.em-lines { inset: 0; width: 100%; height: 100%; overflow: visible; }
.em-stage > .em-wire { inset: 0; }
.em-wire > * { position: absolute; }
.em-env { left: 28.375%; top: 5.8333%; width: 43.3125%; }
.em-float { position: relative; }
.em-float img { position: relative; display: block; width: 100%; height: auto; }
.em-float .em-edge, .em-float .em-shield, .em-float .em-shield-h { position: absolute; inset: 0; opacity: 0; }
.em-float .em-halo { position: absolute; inset: -16% -12% -20%; border-radius: 50%; background: radial-gradient(closest-side, rgb(72 172 255 / .5), rgb(72 172 255 / .18) 58%, rgb(72 172 255 / 0)); opacity: 0; }
/* Onay işaretinin ışığı (hover): kalkanın merkezinde yumuşak, ekran karışımlı parlama */
.em-float .em-check { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; will-change: opacity; }
.em-check path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.em-check-g { stroke: #9fe2ff; stroke-width: 34; }
.em-check-l { stroke: #f4fcff; stroke-width: 9; }
.em-stage > .em-hit { left: 30.5%; top: 9%; width: 39%; height: 48%; pointer-events: auto; }

/* Veri hatları: karttan çıkar, zarfın üstündeki katmanda ilerler ve zarfın sol / sağ siluetindeki bağlantı noktasında biter */
.em-ln { fill: none; stroke: #3d7099; stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.em-ln-s { fill: none; stroke: #d2f3ff; stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 16 100; stroke-dashoffset: 116; opacity: 0; }
.em-bend { fill: #8fdcff; opacity: .65; }
.em-port-g { fill: rgb(79 192 255 / .28); opacity: .55; transition: opacity .45s ease; }
.em-port-p { fill: none; stroke: #bfeaff; stroke-width: 2; opacity: 0; }
.em-port-r { fill: #0a2f4f; stroke: #8fdcff; stroke-width: 2; }
.em-port-c { fill: #e4f7ff; }
.em-sweep { opacity: 0; }

/* Veri parçacıkları: tek tek, sırayla bağlantı noktasına ulaşır (14 sn döngü, 3,5 sn arayla; yolculuk 2,6 sn); varışta bağlantı noktası kısa parlar */
.em-p { left: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: radial-gradient(circle, #fff 0 28%, #8fdcff 55%, rgb(143 220 255 / 0) 72%); box-shadow: 0 0 8px 2px rgb(79 192 255 / .5); opacity: 0; animation: 14s linear infinite forwards; }
.em-ps-a { left: 18.1250%; top: 26.6667%; animation-name: em-ps-a; animation-delay: 2.4s; }
.em-pm-a { left: 29.1250%; top: 25.6250%; animation-name: em-pm-a; animation-delay: 2.4s; }
.em-ps-b { left: 80.5625%; top: 29.7917%; animation-name: em-ps-b; animation-delay: 5.9s; }
.em-pm-b { left: 71.7500%; top: 28.7500%; animation-name: em-pm-b; animation-delay: 5.9s; }
.em-ps-c { left: 27.1250%; top: 65.4167%; animation-name: em-ps-c; animation-delay: 9.4s; }
.em-pm-c { left: 29.1250%; top: 64.3750%; animation-name: em-pm-c; animation-delay: 9.4s; }
.em-ps-d { left: 82.8750%; top: 61.4583%; animation-name: em-ps-d; animation-delay: 12.9s; }
.em-pm-d { left: 72.3750%; top: 60.4167%; animation-name: em-pm-d; animation-delay: 12.9s; }
@keyframes em-ps-a { 0% { opacity: 1; transform: translate(0cqw, 0cqw); } 13.624% { opacity: 1; transform: translate(10.375cqw, 0cqw); } 14.784% { opacity: 1; transform: translate(11cqw, -0.625cqw); } 14.785%, 100% { opacity: 0; transform: translate(11cqw, -0.625cqw); } }
@keyframes em-pm-a { 0%, 14.783% { opacity: 0; transform: translate(0, 0); } 14.784% { opacity: 1; transform: translate(0cqw, 0cqw); } 16.754% { opacity: 1; transform: translate(0cqw, -1.5cqw); } 17.915% { opacity: 1; transform: translate(0.625cqw, -2.125cqw); } 18.571% { opacity: 1; transform: translate(1.125cqw, -2.125cqw); } 18.572%, 100% { opacity: 0; transform: translate(1.125cqw, -2.125cqw); } }
@keyframes em-ps-b { 0% { opacity: 1; transform: translate(0cqw, 0cqw); } 12.458% { opacity: 1; transform: translate(-8.188cqw, 0cqw); } 13.803% { opacity: 1; transform: translate(-8.812cqw, -0.625cqw); } 13.804%, 100% { opacity: 0; transform: translate(-8.812cqw, -0.625cqw); } }
@keyframes em-pm-b { 0%, 13.802% { opacity: 0; transform: translate(0, 0); } 13.803% { opacity: 1; transform: translate(0cqw, 0cqw); } 16.085% { opacity: 1; transform: translate(0cqw, -1.5cqw); } 17.43% { opacity: 1; transform: translate(-0.625cqw, -2.125cqw); } 18.571% { opacity: 1; transform: translate(-1.375cqw, -2.125cqw); } 18.572%, 100% { opacity: 0; transform: translate(-1.375cqw, -2.125cqw); } }
@keyframes em-ps-c { 0% { opacity: 1; transform: translate(0cqw, 0cqw); } 2.02% { opacity: 1; transform: translate(1.375cqw, 0cqw); } 3.318% { opacity: 1; transform: translate(2cqw, -0.625cqw); } 3.319%, 100% { opacity: 0; transform: translate(2cqw, -0.625cqw); } }
@keyframes em-pm-c { 0%, 3.317% { opacity: 0; transform: translate(0, 0); } 3.318% { opacity: 1; transform: translate(0cqw, 0cqw); } 16.539% { opacity: 1; transform: translate(0cqw, -9cqw); } 17.837% { opacity: 1; transform: translate(0.625cqw, -9.625cqw); } 18.571% { opacity: 1; transform: translate(1.125cqw, -9.625cqw); } 18.572%, 100% { opacity: 0; transform: translate(1.125cqw, -9.625cqw); } }
@keyframes em-ps-d { 0% { opacity: 1; transform: translate(0cqw, 0cqw); } 9.681% { opacity: 1; transform: translate(-9.875cqw, 0cqw); } 10.547% { opacity: 1; transform: translate(-10.5cqw, -0.625cqw); } 10.548%, 100% { opacity: 0; transform: translate(-10.5cqw, -0.625cqw); } }
@keyframes em-pm-d { 0%, 10.546% { opacity: 0; transform: translate(0, 0); } 10.547% { opacity: 1; transform: translate(0cqw, 0cqw); } 16.306% { opacity: 1; transform: translate(0cqw, -5.875cqw); } 17.346% { opacity: 1; transform: translate(-0.75cqw, -6.625cqw); } 18.571% { opacity: 1; transform: translate(-2cqw, -6.625cqw); } 18.572%, 100% { opacity: 0; transform: translate(-2cqw, -6.625cqw); } }
.em-port-p { animation: em-port 14s ease-out infinite both; }
.em-port-a .em-port-p { animation-delay: 5s; }
.em-port-b .em-port-p { animation-delay: 8.5s; }
.em-port-c .em-port-p { animation-delay: 12s; }
.em-port-d .em-port-p { animation-delay: 15.5s; }
@keyframes em-port { 0% { opacity: 0; } 1% { opacity: .9; } 7%, 100% { opacity: 0; } }

/* Zarf süzülmesi: 5 sn döngü, en çok 8 px (600 px sahnede; sahneyle orantılı); zarf ayrıca 6,8 sn döngüyle ±0,45° yalpalar, iki hareket hiç aynı anda durmaz; ölçek ve perspektif değişmez, platform sabit */
.em-float, .em-wire { animation: em-float 2.5s cubic-bezier(.37, 0, .63, 1) infinite alternate; will-change: transform; backface-visibility: hidden; }
@keyframes em-float { from { transform: translate3d(0, 0, 0) rotate(.01deg); } to { transform: translate3d(0, -1.3333cqw, 0) rotate(.01deg); } }
/* Güvenlik doğrulaması: her parçacık zarfa vardığında kalkan kısa ve yumuşak parlar (ilk varış 5 sn, sonra 3,5 sn arayla) */
.em-float .em-shield { animation: em-flash 3.5s ease-out 5s infinite both; }
@keyframes em-flash { 0% { opacity: 0; } 7% { opacity: 1; } 34%, 100% { opacity: 0; } }

/* Giriş (tek seferlik): zarf, platform ışığı, kartlar sırayla, en son veri yolları */
.em-env { animation: em-in .9s var(--hm-ease) .1s both, em-tilt 3.4s cubic-bezier(.37, 0, .63, 1) -1.7s infinite alternate; }
@keyframes em-tilt { from { transform: rotate(-.45deg); } to { transform: rotate(.45deg); } }
.em-plat { animation: em-in .8s ease .45s both; }
.em-chip { animation: em-in .5s ease 1s both; }
.em-c2 { animation-delay: 1.15s; }
.em-c3 { animation-delay: 1.3s; }
.em-c4 { animation-delay: 1.45s; }
.em-lines { animation: em-in .6s ease 1.9s both; }
@keyframes em-in { from { opacity: 0; } to { opacity: 1; } }

/* Hover: zarfın çevresinde yumuşak ışıma, kenar ışığı ve kalkan belirginleşir, bağlantı noktaları parlar; platformda ve veri hatlarında
   bir kez ışık geçer (public/js/email-hero.js .is-sweep). Yalnız opacity değişir: konum, ölçü ve kart yerleri sabit. */
.em-float .em-halo, .em-float .em-edge, .em-float .em-shield-h, .em-float .em-check { transition: opacity .45s ease; }
.em-viz:has(.em-hit:hover) .em-check, .em-viz.is-hover .em-check { opacity: 1; animation: em-check 1.8s ease-in-out .45s infinite alternate; }
@keyframes em-check { from { opacity: 1; } to { opacity: .7; } }
.em-viz:has(.em-hit:hover) .em-halo, .em-viz.is-hover .em-halo { opacity: 1; }
.em-viz:has(.em-hit:hover) .em-edge, .em-viz.is-hover .em-edge { opacity: 1; }
.em-viz:has(.em-hit:hover) .em-shield-h, .em-viz.is-hover .em-shield-h { opacity: .7; }
.em-viz:has(.em-hit:hover) .em-port-g, .em-viz.is-hover .em-port-g { opacity: 1; }
.em-viz.is-sweep .em-sweep { animation: em-sweep 1.1s var(--hm-ease) both; }
.em-viz.is-sweep .em-ln-s { animation: em-ls .7s ease-in .1s both; }
.em-viz.is-sweep .em-ln-m { animation: em-ls .6s ease-out .75s both; }
@keyframes em-sweep { 0% { transform: translateX(0); opacity: 0; } 15%, 80% { opacity: 1; } 100% { transform: translateX(1000px); opacity: 0; } }
@keyframes em-ls { from { stroke-dashoffset: 116; opacity: 1; } to { stroke-dashoffset: -16; opacity: 1; } }
.em-viz.is-off, .em-viz.is-off * { animation-play-state: paused; }

/* Bilgi kartları: Bulut Sunucu hero kartlarıyla aynı yüzey (yarı saydam mavi, ince kenar, kontrollü ışık); konumları sabit */
.em-chip { display: flex; align-items: center; gap: .6em; padding: .6em .9em .6em .7em; border: 1px solid rgb(120 205 255 / .5); border-radius: 8px; background: linear-gradient(rgb(24 92 150 / .5), rgb(24 92 150 / .5)), #0b2138; box-shadow: 0 0 22px rgb(45 164 255 / .16), inset 0 1px 0 rgb(190 235 255 / .12); font: 500 clamp(11px, 2.15cqw, 13.5px)/1.25 var(--font-body); color: #eaf7ff; white-space: nowrap; }
.em-chip .cs-i { font-size: 1.75em; color: #6cc7ff; stroke-width: 1.6; }
.em-chip-t span { display: block; }
.em-chip-t span + span { color: #cfe6f7; }
.em-c1 { left: 0; top: 17.5%; transform: skewY(3deg); }
.em-c2 { right: 0; top: 21%; transform: skewY(-3deg); }
.em-c3 { left: 0; top: 59%; transform: skewY(3deg); }
.em-c4 { right: 0; top: 55%; transform: skewY(-3deg); }

/* Görsel kutusu ve zemin ortak ürün hero standardından gelir (hero-stack.css, .hs-cloud). Standarda bildirilen oranlar:
   bilgi kartlarıyla birlikte çizilen alan sahnenin tamamı genişliğinde, %52,7'si yüksekliğindedir */
.hs-cloud .em-viz { --hs-fw: 1; --hs-fh: .5267; --hs-dx: 0; --hs-dy: -2.4; }
@media (max-width: 1100px) {
    .em-p { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
}
/* Mobil: metin önce, görsel sonra; zarf büyütülüp ortalanır, kenarlardaki kartlar gizlenir, yatay kaydırma oluşmaz */
@media (max-width: 720px) {
    .em-viz { overflow: hidden; }
    .em-stage { width: 130%; margin-left: -15%; }
    .em-chip, .em-wire, .em-lines-s, .em-p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .em-env, .em-plat, .em-lines, .em-chip, .em-float, .em-wire, .em-float .em-shield { animation: none; }
    .em-float .em-check { animation: none !important; }
    .em-p, .em-sweep-g, .em-ln-s, .em-port-p { display: none; }
    .em-float .em-halo, .em-float .em-edge, .em-float .em-shield-h, .em-port-g { transition: none; }
}
