/* Masi Masa — Karambol Position Studio styles
 * Isolated namespace (.masa-*) — does NOT affect rest of site.
 */
.masa-wrap {
    min-height: calc(100vh - 80px);
    background: linear-gradient(180deg, #0a0f1c 0%, #0f172a 100%);
    color: #f1f5f9;
    padding: 32px 16px 64px;
}
.masa-container {
    max-width: 1100px;
    margin: 0 auto;
}
.masa-header {
    text-align: center;
    margin-bottom: 24px;
    padding-top: 16px;
}
.masa-title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 8px;
}
.masa-subtitle {
    font-size: clamp(14px, 2vw, 17px);
    color: #cbd5e1;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.masa-intro {
    font-size: 14px;
    color: #94a3b8;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Canvas stage */
.masa-stage {
    position: relative;
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    margin-bottom: 20px;
    user-select: none;
    -webkit-user-select: none;
}
.masa-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.masa-stage canvas {
    display: block;
    max-width: 100%;
    height: auto;
    /* 2-parmak pinch tarayıcıya, tek parmak hareket JS'e (mobile zoom destekli) */
    touch-action: pinch-zoom;
    margin: 0 auto;
}
.masa-water-text {
    display: none; /* Watermark drawn directly on canvas */
}

/* Toolbar */
/* Sade mini header — başlık ortada, ikonlar sağda */
.masa-header-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 4px 14px;
    margin-bottom: 8px;
    position: relative;
}
.masa-title-mini {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #22d3ee !important;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(34,211,238,0.45), 0 2px 4px rgba(0,0,0,0.4);
    display: inline-block;
    visibility: visible;
    opacity: 1;
    white-space: nowrap;
    line-height: 1.2;
    z-index: 2;
    position: relative;
}
/* Light tema için kontrast */
:root[data-theme="light"] .masa-title-mini {
    color: #0e7490 !important;
    text-shadow: 0 0 10px rgba(14,116,144,0.25);
}
.masa-header-actions {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 6px;
}
.masa-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    font-family: inherit;
}
.masa-icon-btn:hover {
    background: rgba(6,182,212,0.18);
    color: #67e8f9;
    border-color: rgba(103,232,249,0.35);
}
.masa-icon-btn.is-active {
    background: rgba(6,182,212,0.22);
    color: #67e8f9;
    border-color: rgba(103,232,249,0.5);
}

/* Help panel — açılır kapanır */
.masa-help-panel {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 10px;
    padding: 14px 18px;
    margin: 0 4px 16px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    line-height: 1.55;
    animation: masaFadeIn 0.25s ease;
}
.masa-help-panel[hidden] { display: none !important; }
.masa-help-intro {
    margin: 0 0 10px;
    color: #f1f5f9;
}
.masa-help-list {
    margin: 0;
    padding-left: 20px;
}
.masa-help-list li {
    margin: 4px 0;
    color: rgba(255,255,255,0.75);
}
@keyframes masaFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Note row — açılır kapanır */
.masa-note-row[hidden] { display: none !important; }

.masa-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
    align-items: center;
    position: relative;  /* share menu absolute için */
}

/* Sade ikon buton (newline, sil, sıfırla) */
.masa-btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
}
.masa-btn-icon-glyph {
    font-size: 18px;
    line-height: 1;
}

/* Paylaş dropdown */
.masa-share-wrap {
    position: relative;
}
.masa-share-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 220px;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 10px 32px rgba(0,0,0,0.55);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 2px;
    animation: masaFadeIn 0.15s ease;
}
.masa-share-menu[hidden] { display: none !important; }
.masa-share-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    color: #e2e8f0;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    text-align: left;
    font-family: inherit;
    transition: all 0.12s;
}
.masa-share-item:hover {
    background: rgba(103,232,249,0.10);
    color: #67e8f9;
}
.masa-share-wa svg { color: #25d366; }
.masa-divider {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.15);
    margin: 0 4px;
}
.masa-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    color: inherit;
    font-family: inherit;
}
.masa-btn-primary {
    background: #06b6d4;
    color: #ffffff;
}
.masa-btn-primary:hover {
    background: #0891b2;
    transform: translateY(-1px);
}
.masa-btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #f1f5f9;
    border-color: rgba(255,255,255,0.15);
}
.masa-btn-secondary:hover {
    background: rgba(255,255,255,0.14);
}
.masa-btn-secondary.is-active {
    background: rgba(6,182,212,0.25);
    border-color: rgba(6,182,212,0.6);
    color: #67e8f9;
}
.masa-btn-ghost {
    background: transparent;
    color: #cbd5e1;
    border-color: rgba(255,255,255,0.12);
}
.masa-btn-ghost:hover {
    background: rgba(255,255,255,0.05);
    color: #f1f5f9;
}
.masa-btn-wa {
    background: #25d366;
    color: #ffffff;
}
.masa-btn-wa:hover {
    background: #1eb854;
    transform: translateY(-1px);
}

/* Note input */
.masa-note-row {
    margin-bottom: 12px;
}
.masa-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #f1f5f9;
    font-size: 14px;
    font-family: inherit;
}
.masa-input:focus {
    outline: none;
    border-color: #06b6d4;
    background: rgba(255,255,255,0.1);
}
.masa-input::placeholder {
    color: #64748b;
}

/* Hints */
.masa-hints {
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    font-size: 14px;
}
.masa-hints summary {
    cursor: pointer;
    color: #cbd5e1;
    font-weight: 600;
    list-style: none;
}
.masa-hints summary::-webkit-details-marker { display: none; }
.masa-hints[open] summary {
    margin-bottom: 8px;
}
.masa-hints ul {
    margin: 0;
    padding-left: 20px;
    color: #94a3b8;
    line-height: 1.7;
}

/* Toast */
.masa-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: #0f172a;
    color: #f1f5f9;
    padding: 12px 24px;
    border-radius: 10px;
    border: 1px solid rgba(6,182,212,0.4);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    opacity: 0;
    transition: all 0.25s;
    pointer-events: none;
    z-index: 9999;
    font-weight: 600;
    font-size: 14px;
}
.masa-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Prevent print + ctrl-a select */
.masa-wrap, .masa-wrap * {
    -webkit-user-drag: none;
}
@media print {
    .masa-wrap { display: none; }
    body::after { content: "Masi Masa Bu pozisyon stüdyosu yazdırılamaz. Lütfen 'Görüntü İndir' kullanın."; }
}

/* Mobile */
@media (max-width: 640px) {
    .masa-toolbar {
        gap: 6px;
    }
    .masa-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    .masa-btn-icon {
        width: 38px;
        height: 38px;
    }
    .masa-btn-icon-glyph {
        font-size: 17px;
    }
    .masa-divider {
        display: none;
    }
    .masa-header-mini {
        padding: 8px 76px 12px 8px; /* sağda ikonlar için yer */
        margin-bottom: 4px;
    }
    .masa-title-mini {
        font-size: 18px !important;
        letter-spacing: 0.08em !important;
    }
    .masa-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .masa-help-panel {
        font-size: 13px;
        padding: 12px 14px;
    }
    .masa-share-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        min-width: 240px;
    }
}

/* Landscape (yatay) mobil — kompakt mod, masa ekrana sığsın */
@media (orientation: landscape) and (max-height: 540px) {
    /* Site nav/header/footer/banner gizle — sadece masa görünsün */
    body > header, body > footer, body > nav,
    .site-header, .site-footer, .main-header, .main-nav, .header-bar,
    .footer, .masa-wrap ~ section, .top-nav, .navbar { display: none !important; }
    /* Mobile bottom bar (dil seçici + WhatsApp) + standalone WhatsApp button */
    .mobile-bottom-bar, .custom-translate-switcher,
    #whatsappButton, .whatsapp-float, [class*="whatsapp"] { display: none !important; }
    /* <main> elementinin nav için bıraktığı padding-top'u kaldır */
    body > main, main { padding-top: 0 !important; padding-bottom: 0 !important; margin: 0 !important; }

    /* Sayfayı tam ekran kaplasın, scroll yok */
    html, body { overflow: hidden; height: 100vh; margin: 0; padding: 0; }
    .masa-wrap {
        padding: 0;
        min-height: 100vh; height: 100vh; height: 100dvh;
        margin: 0;
    }
    .masa-container {
        padding: 0;
        max-width: 100%;
        display: grid;
        grid-template-columns: 1fr 56px;
        grid-template-rows: 1fr;
        grid-template-areas: "stage toolbar";
        gap: 4px;
        align-items: stretch;
        height: 100vh; max-height: 100vh;
    }
    /* Header — overlay olarak sol-üst köşede minimal */
    .masa-header-mini {
        position: fixed;
        top: 4px; left: 6px;
        padding: 2px 6px;
        margin: 0;
        background: rgba(15,23,42,0.65);
        backdrop-filter: blur(4px);
        border-radius: 6px;
        z-index: 30;
        gap: 4px;
    }
    .masa-stage {
        grid-area: stage;
        margin: 0; padding: 0;
        height: 100%;
        min-height: 0;          /* grid cell shrinkable */
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .masa-stage canvas { max-width: 100%; max-height: 100%; }
    /* Toolbar — sağda dikey */
    .masa-toolbar {
        grid-area: toolbar;
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 0;
        gap: 4px;
        max-height: 100%;
        overflow-y: auto;
        width: 60px;
        padding: 2px;
    }
    .masa-toolbar .masa-btn {
        padding: 6px 4px;
        font-size: 11px;
        width: 100%;
        min-height: 36px;
        white-space: normal;
        line-height: 1.1;
        text-align: center;
    }
    .masa-btn-icon { width: 100%; height: 36px; }
    .masa-btn-icon-glyph { font-size: 17px; }
    /* Paylaş dropdown — sağdan açılsın */
    .masa-share-wrap { width: 100%; position: relative; }
    .masa-share-menu {
        position: absolute;
        right: calc(100% + 6px);
        top: 0;
        min-width: 180px;
        z-index: 50;
    }
    /* Note ve diğerleri */
    .masa-note-row { grid-column: 1 / -1; margin-bottom: 0; }
    .masa-help-panel { grid-column: 1 / -1; padding: 6px 10px; font-size: 11px; margin-bottom: 0; }
    .masa-help-list { padding-left: 14px; }
    .masa-title-mini { font-size: 14px; letter-spacing: 0.03em; }
    .masa-icon-btn { width: 26px; height: 26px; font-size: 12px; }
    .masa-input { padding: 6px 10px; font-size: 12px; }
    /* Spin panel ve archive panel — dikey alana sığsın */
    .masa-spin-panel, .masa-archive-panel { grid-column: 1 / -1; }
}

/* Header masa link highlight */
.nav-masa-link {
    color: #06b6d4 !important;
    position: relative;
}
.nav-masa-link::after {
    content: '🆕';
    font-size: 10px;
    margin-left: 4px;
}

/* Anasayfa banner */
.masa-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #0e7490 60%, #06b6d4 100%);
    padding: 14px 18px;
    border-radius: 12px;
    margin: 16px auto;
    max-width: 600px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(6,182,212,0.15);
}
.masa-banner-text {
    flex: 1;
    min-width: 220px;
}
.masa-banner h2 {
    color: #fff;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 700;
    margin: 0 0 3px;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.masa-banner p {
    color: rgba(255,255,255,0.80);
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}
.masa-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #0e7490;
    padding: 7px 14px;
    border-radius: 7px;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.masa-banner-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* ──────────────────────────────────────────────────────────
 * Diamond System — Korner-5 paneli
 * ────────────────────────────────────────────────────────── */
.masa-korner-panel {
    margin: 12px 0 0;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(14,116,144,0.18) 0%, rgba(34,211,238,0.10) 100%);
    border: 1px solid rgba(34,211,238,0.35);
    border-radius: 10px;
    color: #e2f5fb;
    font-size: 13px;
    line-height: 1.4;
}
.masa-korner-title {
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.02em;
    color: #67e8f9;
    margin-bottom: 8px;
}
.masa-korner-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.masa-korner-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 12px;
    background: rgba(0,0,0,0.25);
    border-radius: 8px;
    min-width: 64px;
}
.masa-korner-cue-cell { border-left: 3px solid #2563eb; }   /* ÇIKIŞ mavi */
.masa-korner-tgt-cell { border-left: 3px solid #dc2626; }   /* ATIŞ kırmızı */
.masa-korner-res-cell { border-left: 3px solid #16a34a; }   /* VARIŞ yeşil */
.masa-korner-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.65);
    font-weight: 600;
}
.masa-korner-value {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}
.masa-korner-op {
    font-size: 18px;
    font-weight: 800;
    color: rgba(255,255,255,0.55);
}
.masa-korner-clear {
    margin-left: auto;
    background: rgba(239,68,68,0.18);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,0.35);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.masa-korner-clear:hover {
    background: rgba(239,68,68,0.35);
    color: #fff;
}
.masa-korner-hint {
    margin-top: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.65);
    line-height: 1.45;
}

/* Diamond toggle button aktif durum */
#btnDiamond.is-active {
    background: linear-gradient(135deg, #0e7490 0%, #22d3ee 100%);
    color: #fff;
    border-color: #22d3ee;
    box-shadow: 0 0 0 2px rgba(34,211,238,0.25);
}

@media (max-width: 540px) {
    .masa-korner-row { gap: 4px; }
    .masa-korner-cell { padding: 4px 8px; min-width: 52px; }
    .masa-korner-value { font-size: 18px; }
    .masa-korner-label { font-size: 9px; }
    .masa-korner-op { font-size: 14px; }
}

/* ──────────────────────────────────────────────────────────
 * 🎱 SPIN selector paneli
 * ────────────────────────────────────────────────────────── */
.masa-spin-panel {
    position: relative;
    margin: 8px auto;
    padding: 10px 14px;
    max-width: 220px;
    background: linear-gradient(135deg, rgba(20,40,60,0.95) 0%, rgba(14,28,42,0.95) 100%);
    border: 1px solid rgba(103,232,249,0.35);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    color: #e2f5fb;
}
.masa-spin-title {
    font-size: 11px;
    font-weight: 700;
    color: #67e8f9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 8px;
}
.masa-spin-canvas {
    display: block;
    margin: 8px auto 4px;
    width: 180px;
    height: 180px;
    cursor: crosshair;
    border-radius: 50%;
    touch-action: none;
}
.masa-spin-actions { text-align: center; margin-top: 6px; }
.masa-spin-reset {
    background: rgba(34,211,238,0.15);
    color: #67e8f9;
    border: 1px solid rgba(34,211,238,0.35);
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
}
.masa-spin-reset:hover { background: rgba(34,211,238,0.30); color: #fff; }
#btnSpin.has-spin {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #fff; border-color: #dc2626;
}

/* ──────────────────────────────────────────────────────────
 * 🔊 Mute button — aktif durumda
 * ────────────────────────────────────────────────────────── */
#btnMute.is-active { opacity: 0.55; }

/* ──────────────────────────────────────────────────────────
 * ⭐ POZİSYONLARIM — archive paneli (modal-like)
 * ────────────────────────────────────────────────────────── */
.masa-archive-panel {
    margin: 12px auto;
    padding: 12px 14px;
    max-width: 560px;
    background: linear-gradient(135deg, rgba(20,40,60,0.96) 0%, rgba(14,28,42,0.96) 100%);
    border: 1px solid rgba(103,232,249,0.35);
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
    color: #e2f5fb;
}
.masa-archive-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
}
.masa-archive-title { font-size: 14px; font-weight: 800; color: #67e8f9; }
.masa-archive-close {
    background: rgba(239,68,68,0.18); color: #fca5a5;
    border: 1px solid rgba(239,68,68,0.35); border-radius: 6px;
    padding: 4px 10px; cursor: pointer; font-size: 12px;
}
.masa-archive-close:hover { background: rgba(239,68,68,0.35); color: #fff; }
.masa-archive-add {
    display: flex; gap: 6px; margin-bottom: 10px;
}
.masa-archive-add input.masa-input {
    flex: 1;
    background: rgba(0,0,0,0.30); color: #fff;
    border: 1px solid rgba(255,255,255,0.18); border-radius: 6px;
    padding: 8px 10px; font-size: 13px;
}
.masa-archive-list {
    max-height: 280px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 6px;
}
.masa-archive-row {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 10px; background: rgba(0,0,0,0.22); border-radius: 6px;
}
.masa-archive-info { flex: 1; min-width: 0; }
.masa-archive-name { font-size: 13px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.masa-archive-date { font-size: 10px; color: rgba(255,255,255,0.50); }
.masa-archive-load, .masa-archive-del {
    background: rgba(34,211,238,0.16); color: #67e8f9;
    border: 1px solid rgba(34,211,238,0.35); border-radius: 5px;
    padding: 4px 10px; font-size: 11px; cursor: pointer; font-weight: 700;
}
.masa-archive-load:hover { background: rgba(34,211,238,0.30); color: #fff; }
.masa-archive-del {
    background: rgba(239,68,68,0.16); color: #fca5a5;
    border-color: rgba(239,68,68,0.30); padding: 4px 8px;
}
.masa-archive-del:hover { background: rgba(239,68,68,0.35); color: #fff; }
.masa-archive-empty {
    padding: 18px 12px; text-align: center;
    font-size: 12px; color: rgba(255,255,255,0.55);
}
.masa-archive-hint {
    margin-top: 8px; font-size: 10px; color: rgba(255,255,255,0.45); text-align: center;
}

/* ──────────────────────────────────────────────────────────
 * 📱 INSTALL: Yardım panelinde tutorial bölümü
 * ────────────────────────────────────────────────────────── */
.masa-install-tutorial {
    margin-top: 14px; padding-top: 14px;
    border-top: 1px dashed rgba(255,255,255,0.15);
}
.masa-install-title {
    font-size: 14px; font-weight: 800; color: #67e8f9;
    margin: 0 0 4px;
    letter-spacing: 0.02em;
}
.masa-install-sub {
    font-size: 12px; color: rgba(255,255,255,0.70);
    margin: 0 0 10px; line-height: 1.45;
}
.masa-install-platforms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.masa-install-platform {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    padding: 10px 12px;
}
.masa-install-platform-title {
    font-size: 12px; font-weight: 700; color: #fff;
    margin-bottom: 6px;
}
.masa-install-steps {
    margin: 0; padding-left: 18px;
    font-size: 12px; color: rgba(255,255,255,0.85);
    line-height: 1.55;
}
.masa-install-steps li { margin-bottom: 2px; }
@media (max-width: 540px) {
    .masa-install-platforms { grid-template-columns: 1fr; gap: 8px; }
    .masa-install-platform { padding: 8px 10px; }
}

/* ──────────────────────────────────────────────────────────
 * 📱 INSTALL HINT — ilk ziyarette popup (alt-merkez)
 * ────────────────────────────────────────────────────────── */
.masa-install-hint {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 9998;
    background: linear-gradient(135deg, #0e7490 0%, #22d3ee 100%);
    color: #fff;
    padding: 12px 16px;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.30), 0 0 0 1px rgba(255,255,255,0.08) inset;
    max-width: 92vw;
    width: 380px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.masa-install-hint.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.masa-install-hint-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.masa-install-hint-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}
.masa-install-hint-text strong {
    font-size: 13px; font-weight: 800;
}
.masa-install-hint-text span {
    font-size: 11px; opacity: 0.88;
}
.masa-install-hint-actions {
    display: flex; gap: 6px; flex-shrink: 0;
}
.masa-install-hint-btn {
    border: none; cursor: pointer;
    padding: 7px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    transition: all 0.15s;
}
.masa-install-hint-yes {
    background: #fff;
    color: #0e7490;
}
.masa-install-hint-yes:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.18); }
.masa-install-hint-no {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 7px 10px;
}
.masa-install-hint-no:hover { background: rgba(255,255,255,0.28); }

@media (max-width: 540px) {
    .masa-install-hint { width: auto; left: 8px; right: 8px; bottom: 84px; transform: translateX(0) translateY(160%); padding: 10px 12px; gap: 8px; }
    .masa-install-hint.is-visible { transform: translateX(0) translateY(0); }
    .masa-install-hint-icon { font-size: 24px; }
    .masa-install-hint-text strong { font-size: 12px; }
    .masa-install-hint-text span { font-size: 10px; }
    .masa-install-hint-btn { padding: 6px 10px; font-size: 11px; }
}
/* Çok küçük telefon — biraz daha yukarı */
@media (max-width: 380px) {
    .masa-install-hint { bottom: 92px; }
}
/* Tablet+ — bottom bar yok */
@media (min-width: 768px) {
    .masa-install-hint { bottom: 16px; }
}
/* Landscape phone — install hint görünmesin (masa fullscreen) */
@media (orientation: landscape) and (max-height: 540px) {
    .masa-install-hint { display: none !important; }
}

/* ──────────────────────────────────────────────────────────
 * 📱 iOS Install Modal — Safari için görsel animasyonlu rehber
 * ────────────────────────────────────────────────────────── */
.masa-ios-modal {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s;
}
.masa-ios-modal.is-open { opacity: 1; pointer-events: auto; }
.masa-ios-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
}
.masa-ios-modal-content {
    position: relative;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    color: #f1f5f9;
    border: 1px solid rgba(103,232,249,0.30);
    border-radius: 18px;
    padding: 22px 22px 18px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 16px 48px rgba(0,0,0,0.45);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.masa-ios-modal.is-open .masa-ios-modal-content { transform: translateY(0) scale(1); }
.masa-ios-modal-close {
    position: absolute; top: 10px; right: 10px;
    background: rgba(255,255,255,0.10); color: #fff;
    border: none; border-radius: 50%;
    width: 32px; height: 32px;
    font-size: 16px; line-height: 1; cursor: pointer;
    transition: all 0.15s;
}
.masa-ios-modal-close:hover { background: rgba(255,255,255,0.20); transform: rotate(90deg); }
.masa-ios-modal-title {
    font-size: 18px; font-weight: 800; margin: 0 0 4px;
    color: #67e8f9;
    text-align: center;
}
.masa-ios-modal-subtitle {
    font-size: 12px; text-align: center;
    color: rgba(255,255,255,0.65);
    margin: 0 0 16px;
}

/* iPhone mockup */
.masa-ios-mockup {
    display: flex; justify-content: center;
    margin: 0 auto 18px;
    padding: 0 12px;
}
.masa-ios-phone {
    position: relative;
    width: 200px;
    background: #000;
    border-radius: 20px;
    padding: 8px 6px 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.08);
}
.masa-ios-urlbar {
    background: #2c2c2e; color: #999;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 9px;
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 6px;
}
.masa-ios-aA { font-weight: 700; color: #aaa; }
.masa-ios-url { flex: 1; text-align: center; color: #ddd; font-size: 9px; }
.masa-ios-content {
    background: #1c1c1e;
    border-radius: 4px;
    padding: 8px 6px;
    min-height: 60px;
    display: flex; flex-direction: column; gap: 4px;
    margin-bottom: 6px;
}
.masa-ios-content-line {
    background: #444;
    height: 5px; width: 100%;
    border-radius: 2px;
}
.masa-ios-content-line.short { width: 60%; }
.masa-ios-toolbar {
    background: rgba(40,40,42,0.95);
    border-radius: 8px;
    padding: 6px;
    display: flex; justify-content: space-around; align-items: center;
}
.masa-ios-tb-icon {
    color: #c0c0c0;
    font-size: 14px;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

/* Share button animated pulse */
.masa-ios-share-pulse {
    color: #67e8f9 !important;
    position: relative;
    animation: ios-share-pulse 1.6s ease-in-out infinite;
}
.masa-ios-share-pulse::before {
    content: ''; position: absolute; inset: -4px;
    border: 2px solid #67e8f9; border-radius: 50%;
    animation: ios-ring-pulse 1.6s ease-out infinite;
    pointer-events: none;
}
@keyframes ios-share-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.20); }
}
@keyframes ios-ring-pulse {
    0%       { opacity: 0.8; transform: scale(0.85); }
    100%     { opacity: 0; transform: scale(1.6); }
}

/* Arrow pointing to Share */
.masa-ios-arrow {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-58%);
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: #f59e0b;
    font-weight: 800;
    pointer-events: none;
    animation: ios-arrow-bounce 1.2s ease-in-out infinite;
}
.masa-ios-arrow-label {
    background: #f59e0b; color: #000;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.masa-ios-arrow-icon { font-size: 22px; line-height: 1; }
@keyframes ios-arrow-bounce {
    0%, 100% { transform: translateX(-58%) translateY(0); }
    50%      { transform: translateX(-58%) translateY(-4px); }
}

/* Steps */
.masa-ios-steps {
    list-style: none; margin: 0 0 18px; padding: 0;
    display: flex; flex-direction: column; gap: 8px;
}
.masa-ios-steps li {
    display: flex; align-items: flex-start; gap: 10px;
    background: rgba(255,255,255,0.04);
    border-left: 3px solid #67e8f9;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.4;
}
.masa-ios-step-num {
    flex-shrink: 0;
    width: 22px; height: 22px;
    background: #67e8f9; color: #0f172a;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 12px;
}
.masa-ios-step-text { flex: 1; }
.masa-ios-step-text strong { color: #67e8f9; font-weight: 700; }

/* OK button */
.masa-ios-modal-ok {
    width: 100%;
    background: linear-gradient(135deg, #0e7490 0%, #22d3ee 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px; font-weight: 800;
    cursor: pointer;
    transition: all 0.15s;
}
.masa-ios-modal-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34,211,238,0.35);
}

@media (max-width: 380px) {
    .masa-ios-modal-content { padding: 16px 16px 14px; }
    .masa-ios-phone { width: 175px; }
    .masa-ios-steps li { font-size: 12px; padding: 7px 10px; }
    .masa-ios-modal-title { font-size: 16px; }
}
