html, body {
    height: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
}


/* ======================================
   GENEL TASARIM
====================================== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #222;
    position: relative; /* Transparan logo için */
    min-height: 100vh;
}

/* Transparan Logo */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   	background-image: url("runManAna.jpeg");
    background-size: 60%; /* büyüklük ayarı → istersen 40% yaparız */
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08; /* transparanlık */
    pointer-events: none;
    z-index: -1; /* her şeyin arkasına geçecek */
}


/* DARK MODE */
.dark {
    background: #1e1e1e;
    color: #eee;
}

/* ======================================
   HEADER
====================================== */
header {
    background: #ff9800;
    padding: 15px 25px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.logo img {
    height: 45px;
    opacity: 0.92;
}

/* ======================================
   NAV MENÜ
====================================== */
.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
	    z-index: 9999;

}
/* 3@@@ SADECE ANA BAŞLIKLAR BEYAZ — DOĞRU KURAL @@@3 */
.nav-menu > a {
    text-decoration: none;
    color: white !important;
    font-weight: bold;
    transition: 0.3s;
}
.nav-menu > a:hover {
    opacity: 0.7;
}
/* 3@@@ @@@3 */


/* 3@@@ DROPDOWN – KUTU + SİYAH YAZI + GÖRÜNÜR + MASKE YOK @@@3 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn::after {
    content: " ▼";
    font-size: 12px;
}

/* Kutulu alt menü */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff3e0;  /* Açık turuncu kutu */
    min-width: 220px;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    padding: 6px 0;
    z-index: 9999;
}

/* ALT YAZI → SİYAH */
.dropdown-content a {
    color: black !important;
    font-weight: bold;
    padding: 10px 14px;
    display: block;
    text-decoration: none;
}

/* Hover */
.dropdown-content a:hover {
    background: #ffe0b2;
    color: black !important;
}

/* Menü açıldığında yazı anında siyah */
.dropdown:hover .dropdown-content a {
    color: black !important;
}

/* Hover ile açılır */
.dropdown:hover .dropdown-content {
    display: block;
}
/* 3@@@ @@@3 */

/*
/* ======================================
   MOBİL – ALT MENÜ TIKLAMA İLE AÇILSIN
====================================== 
@media (max-width: 768px) {

    .nav-menu {
        flex-direction: column;
        background: #ff9800;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 20px;
        display: none;
        text-align: left;
        gap: 20px;
    }

    .nav-menu.open {
        display: flex;
    }

    /* Alt menü mobilde JS ile açılacak 
    .dropdown-content {
        display: none;
        background-color: #fff3e0;
        padding: 10px 0;
    }

    .dropdown-content a {
        display: block !important;
        color: black !important;
    }

    /* ▼ mobilde kalsın 
    .dropbtn::after {
        content: " ▼";
    }
}
*/
 /*======================================
   HAMBURGER (MOBİL)
======================================*/

.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
    line-height: 1;
    user-select: none;
}
/*
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        background: #ff9800;
        position: absolute;
        top: 70px;
        right: 0;
        width: 60%;
        padding: 20px;
        display: none;
    }

    .nav-menu.open {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}
*/
/* ======================================
   INPUT – BUTTON – TEXTAREA
====================================== */
input, textarea, select {
    width: 100%;
    padding: 10px;
    margin: 6px 0;
    border-radius: 6px;
    border: 1px solid #bbb;
    font-size: 15px;
}

button {
    background: #ff9800;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    opacity: 0.8;
}

/* ======================================
   MODAL
====================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 380px;
    animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
    from { opacity:0; transform:scale(0.95); }
    to   { opacity:1; transform:scale(1); }
}

.close-btn {
    float: right;
    font-size: 22px;
    cursor: pointer;
}

/* ======================================
   WARNING
====================================== */
.warning {
    margin-top: 10px;
    color: red;
    text-align: center;
}

/* ======================================
   FOOTER
====================================== */
footer {
    margin-top: auto;
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    color: #555;
    font-size: 14px;
    border-top: 1px solid #ddd;
}
/* FOOTER CONTACT BUTTON */
.footer-contact-btn {
    background: #ff9800;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 10px;
    font-weight: bold;
    transition: 0.2s;
}

.footer-contact-btn:hover {
    opacity: 0.8;
}
/* CONTACT textarea genişlik-ayarı */
.contact-big {            
    min-height: 140px;
    max-height: 300px;
    resize: vertical;
    font-size: 15px;
    line-height: 1.4;
}                          
/* Footer mail butonu tasarımı */
.footer-contact-mail {
    background: none;
    border: none;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
    text-decoration: underline;
}

.footer-contact-mail:hover {
    opacity: 0.7;
}
.footer-copy {
    margin-top: 12px;
    color: #555;
    font-size: 14px;
    pointer-events: none;
}
.nav-menu a {
    color: white !important;
    font-weight: 600;
}

/* DASHBOARD BUTONU (HEADER İÇİN) */
#dashboardBtn.dash-btn {
    background: #ffffff;
    color: #ff7d00;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}

#dashboardBtn.dash-btn:hover {
    background: #ffe2c4;
}
/* ======================================
   IDLE WARNING BOX – CLEAN FINAL VERSION
====================================== */

#idleWarningBox {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 220px;
    padding: 12px 14px;
    background: white;
    border: 1px solid #ffb74d;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.20);
    font-size: 14px;
    line-height: 1.3;
    z-index: 99999;
}

#idleWarningBox .idle-title {
    font-weight: bold;
    margin-bottom: 4px;
}

#idleCountdown {
    margin: 0;
    font-size: 13px;
}

/* Mobil görünüm */
@media (max-width: 768px) {
    #idleWarningBox {
        bottom: 12px;
        right: 12px;
        max-width: 150px;
        padding: 8px 10px;
        font-size: 12px;
        line-height: 1.2;
        border-radius: 6px;
    }

    #idleCountdown {
        font-size: 12px;
    }
}
/* ======================================
   IDLE COUNTDOWN – MINI → HOVER GROW
====================================== */

/* Varsayılan: küçük ve sakin */
#idleWarningBox {
    transform: scale(0.85);
    opacity: 0.85;
    transition: 
        transform 0.25s ease,
        opacity 0.25s ease,
        box-shadow 0.25s ease;
}

/* Üzerine gelince büyüsün */
#idleWarningBox:hover {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* Geri sayım yazısı ekstra küçük başlasın */
#idleCountdown {
    font-size: 12px;
    transition: font-size 0.25s ease;
}

/* Hover olunca yazı da büyüsün */
#idleWarningBox:hover #idleCountdown {
    font-size: 14px;
}

/* ======================================
   IDLE BOX – MINI MODE (SADECE SAAT)
====================================== */

/* Küçük mod: sadece saat görünsün */
#idleWarningBox .idle-title {
    display: none;
}

/* Saat küçük başlasın */
#idleCountdown {
    font-size: 12px;
    font-weight: bold;
    transition: font-size 0.25s ease;
}

/* ======================================
   HOVER MODE – TÜM METİN GÖRÜNSÜN
====================================== */

#idleWarningBox:hover .idle-title {
    display: block;
}

#idleWarningBox:hover #idleCountdown {
    font-size: 14px;
}

.download-btn{
    display:inline-block;
    padding:12px 18px;
    background:#ff9800;
    color:#fff;
    border-radius:6px;
    text-decoration:none;
    font-weight:bold;
}
.download-btn:hover{ opacity:.85; }

/* =========================
   ÇOCUK KODLAMA OYUNU KARTI
========================= */

.kids-game-card {
  max-width: 420px;
  margin: 40px auto;
  padding: 25px;
  background: #e8f5e9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  text-align: center;
}

.kids-game-card h2 {
  margin-bottom: 10px;
  color: #2e7d32;
}

.kids-game-card p {
  font-size: 15px;
  margin-bottom: 20px;
}

.kids-game-btn {
  display: inline-block;
  padding: 12px 22px;
  background: #4caf50;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.2s;
}

.kids-game-btn:hover {
  background: #388e3c;
}
/* =========================
   KIDS GAME – HAFİF ANİMASYON
========================= */

/* Kart hafif yukarı çıksın */
.kids-game-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kids-game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

/* Emoji hafif nabız atsın */
.kids-game-card h2 {
  animation: emojiPulse 2.5s infinite;
}

@keyframes emojiPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Buton hover biraz büyüsün */
.kids-game-btn:hover {
  transform: scale(1.05);
}
/* =========================
   SIFRE GOSTER-GIZLE (ESKI SURUM)
========================= */

.pw-field{
  position: relative;
  display: block;
}

.pw-toggle{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: inherit;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}

.pw-toggle:hover{
  background: rgba(255,255,255,0.10);
}

.pw-icon{
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 768px) {
  body.menu-open {
    overflow: hidden;
  }
}


/* =========================
   KAPILI OYUN MENÜSÜ - CSS
========================= */

.door-frame{
  width: 240px;
  height:190px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(0,0,0,.20);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Kapı kanatları */
/* =========================
   OYUN LOGO KAPISI
========================= */

.door{
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background-image: url("/home/assets/oyunlar_logo.jpg"); /* Gaming logo */
  background-size: 200% 100%;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.10);
  transition: transform 900ms ease;
}

/* Sol yarı */
.door.left{
  left: 0;
  background-position: left center;
  border-right: 1px solid rgba(0,0,0,.15);
  transform: translateX(0);
}

/* Sağ yarı */
.door.right{
  right: 0;
  background-position: right center;
  border-left: 1px solid rgba(0,0,0,.15);
  transform: translateX(0);
}


/*.door{
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(180deg, #f6d7b5, #e7b98d);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.10);
  transition: transform 900ms ease;
}*/

.door.left{
  left: 0;
  border-right: 1px solid rgba(0,0,0,.15);
  transform: translateX(0);
}
.door.right{
  right: 0;
  border-left: 1px solid rgba(0,0,0,.15);
  transform: translateX(0);
}

/* Kapı ortasındaki çizgi hissi */
.door.left::after,
.door.right::after{
  content:"";
  position:absolute;
  top: 16px; bottom: 16px;
  width: 4px;
  border-radius: 99px;
  background: rgba(0,0,0,.12);
}
.door.left::after{ right: 10px; }
.door.right::after{ left: 10px; }

/* OYUNLAR badge */
.door-badge{
  position:absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  font-weight: 800;
  letter-spacing: .6px;
  font-family: Arial, sans-serif;
}

/* Sahne katmanları */
.scene{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 320ms ease, transform 320ms ease;
  pointer-events: none; /* kapalıyken tıklanmasın */
}

.scene.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto; /* oyun linkleri tıklansın */
}

.chars-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: 170px;
  justify-items: center;
  font-size: 20px;
}
.chars-note{
  margin-top: 6px;
  font-size: 12px;
  opacity: .75;
  font-family: Arial, sans-serif;
}

.scene-title{
  font-weight: 900;
  margin-bottom: 8px;
  font-family: Arial, sans-serif;
}

.game-link{
  display: block;
  width: 190px;
  text-decoration: none;
  color: #111;
  background: rgba(0,0,0,.05);
  padding: 8px 10px;
  border-radius: 10px;
  margin: 6px 0;
  font-family: Arial, sans-serif;
  font-weight: 700;
}
.game-link:hover{
  background: rgba(0,0,0,.10);
}

/* Açılma durumu (kapılar iki yana) */
.door-frame.is-open .door.left{  transform: translateX(-105%); }
.door-frame.is-open .door.right{ transform: translateX(105%); }

/* Hafif “yüzer” animasyon (kapalıyken) */
.door-frame{
  animation: floaty 3.2s ease-in-out infinite;
}
@keyframes floaty{
  0%{ transform: translateY(0); }
  50%{ transform: translateY(-8px); }
  100%{ transform: translateY(0); }
}

/* Erişilebilirlik: hareket azalt */
@media (prefers-reduced-motion: reduce){
  .door, .scene, .door-frame{ transition: none; animation: none; }
}

/* =========================
   DOOR MENU: SOLA AL + KÜÇÜLT + HOVER'DA BÜYÜT + AÇ
========================= */

/* 2) Hover olunca büyüsün + biraz yukarı çıksın 
@media (hover: hover) and (pointer: fine){
  .door-menu:hover{
    transform: scale(1);
  }
}
 Menü kutusu: mobilde sol alt, küçük 
.door-menu{
  position: fixed;
  left: 10px;
  bottom: 130px;        /* İletişim butonunun üstüne binmesin 
  z-index: 9999;
  transform: scale(.78);
  transform-origin: left bottom;
}  */

/* =========================
   DOOR MENU - SOLDa, KÜÇÜK, FOOTER HİZASI
========================= */
.door-menu{
  position: fixed;
  left: 12px;
  bottom: 120px;                /* footer hizası */
  z-index: 50;
  transform: scale(.35);       /* ✅ BAŞTA ÇOK KÜÇÜK */
  transform-origin: left bottom;
  transition: transform 180ms ease;
}

@media (hover:hover) and (pointer:fine){
  .door-menu:hover{
    transform: scale(.95);     /* ✅ ÜZERİNE GELİNCE BÜYÜR */
  }
}

/* Mobilde hover yok -> tıklayınca (is-open) büyüt */
.door-frame.is-open{
  transform: scale(4.35);
  transform-origin: left bottom;
  transition: transform 180ms ease;
}


/* Mobilde daha da aşağı/yukarı ayarı */
@media (max-width: 600px){
  .door-menu{
    left: 10px;
    bottom: 110px;
    transform: scale(.35);     /* mobilde daha da küçük */
  }
}

/* Desktop'ta hover olunca büyüsün 
@media (hover:hover) and (pointer:fine){
  .door-menu:hover{
    transform: scale(1);
  }
}

/* Küçük ekranlarda biraz daha küçült + yukarı al 
@media (max-width: 600px){
  .door-menu{
    bottom: 150px;
    transform: scale(.70);
  }
*/

.door-menu .scene-games .scene-title{ display:none !important; }

/* =========================
   HOME CHAT DOCK (hover ile açılır)
========================= */
.chat-dock{
  position: fixed;
  left: 18px;
  bottom: 18px;      /* oyun paneliyle yan yana istiyorsan bottom/left ayarla */
  z-index: 9999;
}

/* Kapalı hali küçük */
.chat-frame{
  width: 60px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  transition: width .22s ease;
}

/* Hover olunca genişle */
.chat-dock:hover .chat-frame{
  width: 520px;
}

.chat-badge{
  padding: 10px 12px;
  font-weight: 700;
  white-space: nowrap;
}

.chat-scene{
  padding: 10px 12px 14px;
}

.chat-title{
  font-weight: 800;
  margin-bottom: 6px;
}

.chat-note{
  margin: 0 0 10px 0;
  opacity: .8;
}

.chat-btn{
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
/* =========================
   HOME MESSAGE LOGO BUTTON
========================= */
.home-msg-btn{
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9999;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.home-msg-btn img{
  width: 86px;
  height: auto;
  display:block;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}

/* =========================
   HOME GAMES LOGO BUTTON
========================= */
.home-games-btn{
  position: fixed;
  left: 18px;
  bottom: 18px;            /* ✅ mesajdan ayrı dursun */
  z-index: 9999;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.home-games-btn img{
  width: 86px;
  height: auto;
  display:block;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}


/* =========================
   MSN-LIKE CHAT WINDOW
========================= */
.home-chat-window{
  position: fixed;
  left: 120px;
  bottom: 18px;
  width: 420px;
  height: 340px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
  overflow: hidden;
  z-index: 9998;
}

.home-chat-topbar{
  height: 46px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 10px;
  background: linear-gradient(90deg, #2d7cff, #00bcd4);
  color: #fff;
  font-weight: 800;
}

.home-chat-actions button{
  border:0;
  background: rgba(255,255,255,0.18);
  color:#fff;
  border-radius:10px;
  padding: 6px 10px;
  cursor:pointer;
}

.home-chat-body{
  height: calc(100% - 46px);
  padding: 10px;
  overflow:auto;
}

/* minimize modu */
.home-chat-window.is-min{
  height: 46px;
}
.home-chat-window.is-min .home-chat-body{
  display:none;
}

/*mesajlari buyutme*/

/* =========================
   HOME CHAT WINDOW - RESIZE (4 yön)
========================= */
.home-chat-window{
  resize: both;         /* ✅ en + boy */
  overflow: auto;       /* ✅ resize tutamacı görünsün */
  min-width: 320px;     /* ✅ çok küçülmesin */
  min-height: 200px;    /* ✅ çok küçülmesin */
  max-width: 92vw;      /* ✅ ekrandan taşmasın */
  max-height: 88vh;     /* ✅ ekrandan taşmasın */
}

/* iç body zaten scroll alıyor; resize için window overflow:auto şart */
.home-chat-body{
  overflow: auto;
}

/* ======================================
   HOME PAGE - MODERN SUMMARY LAYOUT
====================================== */

.home-main{
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 60px;
}

.home-hero{
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 36px;
}

.home-hero__content{
    text-align: left;
    background: rgba(255,255,255,0.80);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.10);
}

.home-hero__eyebrow{
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff3e0;
    color: #ff7d00;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.home-hero__title{
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.08;
}

.home-hero__text{
    margin: 0 0 22px;
    font-size: 17px;
    line-height: 1.65;
    color: #444;
    max-width: 640px;
}

.home-hero__actions{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-hero__visual{
    min-height: 100%;
}

.home-hero__visual img{
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 16px 34px rgba(0,0,0,0.14);
    display: block;
}

.home-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.home-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    opacity: 1;
}

.home-btn--primary{
    background: linear-gradient(135deg, #ff9800, #ff6f00);
    color: #fff;
}

.home-btn--secondary{
    background: #ffffff;
    color: #ff7d00;
    border: 1px solid #ffd19a;
}

.home-btn--ghost{
    background: rgba(255,255,255,0.70);
    color: #333;
    border: 1px solid rgba(0,0,0,0.08);
}

.home-summary{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 42px;
}

.summary-card{
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    text-align: left;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.summary-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

.summary-card__icon{
    font-size: 28px;
    margin-bottom: 10px;
}

.summary-card h2{
    margin: 0 0 10px;
    font-size: 22px;
}

.summary-card p{
    margin: 0 0 14px;
    color: #555;
    line-height: 1.6;
}

.summary-card__link{
    color: #ff7d00;
    font-weight: 700;
    text-decoration: none;
}

.home-feature-grid{
    display: grid;
    gap: 26px;
    margin-bottom: 44px;
}

.feature-panel{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: center;
    background: rgba(255,255,255,0.84);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 14px 32px rgba(0,0,0,0.08);
}

.feature-panel--reverse .feature-panel__image{
    order: 2;
}

.feature-panel--reverse .feature-panel__content{
    order: 1;
}

.feature-panel__image img{
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

.feature-panel__content{
    text-align: left;
    padding: 8px 8px 8px 4px;
}

.feature-panel__tag{
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff3e0;
    color: #ff7d00;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.feature-panel__content h2{
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.2;
}

.feature-panel__content p{
    margin: 0 0 18px;
    color: #555;
    line-height: 1.7;
}

.home-cta{
    margin-bottom: 20px;
}

.home-cta__box{
    background: linear-gradient(135deg, rgba(255,152,0,0.12), rgba(255,255,255,0.92));
    border: 1px solid rgba(255,152,0,0.18);
    border-radius: 24px;
    padding: 34px 26px;
    text-align: center;
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

.home-cta__box h2{
    margin: 0 0 12px;
    font-size: clamp(26px, 4vw, 38px);
}

.home-cta__box p{
    margin: 0 auto 20px;
    max-width: 760px;
    color: #555;
    line-height: 1.7;
    font-size: 16px;
}

.home-cta__actions{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* DARK MODE */
.dark .home-hero__content,
.dark .summary-card,
.dark .feature-panel,
.dark .home-cta__box{
    background: rgba(35,35,35,0.92);
    color: #f2f2f2;
    border-color: rgba(255,255,255,0.08);
}

.dark .home-hero__text,
.dark .summary-card p,
.dark .feature-panel__content p,
.dark .home-cta__box p{
    color: #d0d0d0;
}

.dark .home-btn--secondary{
    background: #2d2d2d;
    color: #ffb04d;
    border-color: rgba(255,176,77,0.25);
}

.dark .home-btn--ghost{
    background: rgba(255,255,255,0.06);
    color: #f2f2f2;
    border-color: rgba(255,255,255,0.10);
}

/* RESPONSIVE */
@media (max-width: 992px){
    .home-hero,
    .feature-panel{
        grid-template-columns: 1fr;
    }

    .feature-panel--reverse .feature-panel__image,
    .feature-panel--reverse .feature-panel__content{
        order: initial;
    }

    .home-summary{
        grid-template-columns: 1fr;
    }
}
/*
@media (max-width: 768px){
    .home-main{
        width: min(100%, calc(100% - 20px));
        padding: 24px 0 44px;
    }

    .home-hero__content{
        padding: 22px;
    }

    .home-hero__visual img{
        min-height: 240px;
    }

    .feature-panel{
        padding: 14px;
    }

    .feature-panel__image img{
        height: 220px;
    }

    .feature-panel__content h2{
        font-size: 24px;
    }
}
*/
/* ======================================
   MOBILE FIX - HEADER + NAV + HOMEPAGE
====================================== */
@media (max-width: 768px) {

    header {
        padding: 12px 14px;
        position: sticky;
        top: 0;
        z-index: 10000;
        gap: 12px;
    }

    .logo img {
        height: 40px;
    }

    .hamburger {
        display: block;
        margin-left: auto;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        position: absolute;
        top: calc(100% + 8px);
        left: 12px;
        right: 12px;
        width: auto;
        padding: 16px;
        background: #ff9800;
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(0,0,0,0.20);
        z-index: 10001;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu > a,
    .dropdown,
    #langSelect,
    #darkModeBtn,
    #welcomeUser,
    #logoutBtn,
    #openLogin,
    #openRegister {
        width: 100%;
    }

    .nav-menu > a,
    .dropbtn {
        display: block;
        text-align: left;
        font-size: 18px;
        line-height: 1.3;
    }

    .dropdown {
        display: block;
    }

    .dropdown-content {
        display: none;
        position: static;
        min-width: 0;
        width: 100%;
        margin-top: 8px;
        padding: 8px 0;
        border-radius: 10px;
        box-shadow: none;
        background: #fff3e0;
    }

    .dropdown-content a {
        padding: 10px 12px;
        font-size: 15px;
    }

    #langSelect {
        max-width: 100%;
    }

    #darkModeBtn {
        min-height: 44px;
    }

    #welcomeUser {
        display: block;
        text-align: left;
        white-space: normal;
    }

    /* HOME MAIN */
    .home-main {
        width: calc(100% - 20px);
        margin: 0 auto;
        padding: 18px 0 36px;
    }

    .home-hero {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }

    .home-hero__content {
        padding: 18px;
        border-radius: 18px;
    }

    .home-hero__eyebrow {
        font-size: 12px;
    }

    .home-hero__title {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .home-hero__text {
        font-size: 15px;
        line-height: 1.55;
        margin-bottom: 16px;
    }

    .home-hero__actions {
        flex-direction: column;
        gap: 10px;
    }

    .home-btn {
        width: 100%;
        min-height: 44px;
    }

    .home-hero__visual img {
        width: 100%;
        height: 220px;
        min-height: 220px;
        object-fit: cover;
        border-radius: 18px;
    }

    /* SUMMARY */
    .home-summary {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 24px;
    }

    .summary-card {
        padding: 18px;
        border-radius: 16px;
    }

    .summary-card h2 {
        font-size: 22px;
    }

    .summary-card p {
        font-size: 15px;
        line-height: 1.55;
    }

    /* FEATURE */
    .home-feature-grid {
        gap: 18px;
        margin-bottom: 28px;
    }

    .feature-panel {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px;
        border-radius: 18px;
    }

    .feature-panel--reverse .feature-panel__image,
    .feature-panel--reverse .feature-panel__content {
        order: initial;
    }

    .feature-panel__image img {
        width: 100%;
        height: 210px;
        object-fit: cover;
        border-radius: 14px;
    }

    .feature-panel__content {
        padding: 0;
    }

    .feature-panel__content h2 {
        font-size: 22px;
        line-height: 1.25;
    }

    .feature-panel__content p {
        font-size: 15px;
        line-height: 1.6;
    }

    /* CTA */
    .home-cta__box {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .home-cta__box h2 {
        font-size: 24px;
        line-height: 1.2;
    }

    .home-cta__box p {
        font-size: 15px;
        line-height: 1.6;
    }

    .home-cta__actions {
        flex-direction: column;
        gap: 10px;
    }

    /* FLOATING BUTTONS */
    .home-msg-btn {
        left: 12px;
        bottom: 12px;
    }

    .home-msg-btn img {
        width: 62px;
        border-radius: 12px;
    }

    .door-menu {
        left: 8px;
        bottom: 88px;
        transform: scale(.24);
    }

    .door-frame.is-open {
        transform: scale(3.2);
    }

    .home-chat-window {
        left: 10px;
        right: 10px;
        bottom: 90px;
        width: auto;
        min-width: 0;
        max-width: none;
        height: 62vh;
        max-height: 62vh;
    }

    body::after {
        background-size: 95%;
        opacity: 0.05;
    }
}

/* ======================================
   EXTRA SMALL MOBILE
====================================== */
@media (max-width: 480px) {

    .home-main {
        width: calc(100% - 16px);
    }

    .home-hero__title {
        font-size: 22px;
    }

    .home-hero__visual img {
        height: 190px;
        min-height: 190px;
    }

    .feature-panel__image img {
        height: 180px;
    }

    .summary-card,
    .feature-panel,
    .home-cta__box {
        box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    }
}

/* ======================================
   SCROLL REVEAL ANIMATION
====================================== */

.reveal{
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show{
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   HOME REKLAM BLOĞU
========================= */
.home-ad{
    margin: 30px 0 50px;
}

.home-ad__box{
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    align-items: center;
    background: linear-gradient(135deg, #fff3e0, #ffffff);
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

.home-ad__tag{
    display: inline-block;
    background: #ff9800;
    color: white;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    margin-bottom: 10px;
}

.home-ad__content h2{
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.25;
}

.home-ad__content p{
    margin: 0 0 14px;
    color: #555;
    font-size: 15px;
    line-height: 1.55;
}

.home-ad__actions{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.home-ad__image{
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-ad__image img{
    width: 100%;
    max-width: 320px;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    border-radius: 14px;
    display: block;
}

/* mobil */
@media (max-width: 768px){
    .home-ad__box{
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .home-ad__image img{
        max-width: 220px;
        max-height: 140px;
    }

    .home-ad__content h2{
        font-size: 18px;
    }

    .home-ad__actions{
        gap: 8px;
    }
}

/* =========================
   DOWNLOAD GRID
========================= */
.download-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:20px;
    margin-top:20px;
}

.download-card{
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.download-card h2{
    margin-top:0;
    margin-bottom:10px;
}

.download-card p{
    margin-bottom:16px;
    line-height:1.6;
    color:#555;
}

@media (max-width: 768px){
    .download-grid{
        grid-template-columns:1fr;
    }
}

/* =========================
   APPLE STYLE PROMO MODAL
========================= */
/* =========================
   APPLE STYLE PROMO MODAL
========================= */
.promo-modal{
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.promo-modal.is-open{
    display: flex;
}

.promo-modal__backdrop{
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 18, 0.42);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.promo-modal.is-open .promo-modal__backdrop{
    opacity: 1;
}

.promo-modal__card{
    position: relative;
    width: min(720px, 100%);
    padding: 30px 24px 24px;
    border-radius: 28px;
    background: rgba(255,255,255,0.86);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 70px rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.55);
    text-align: center;
    transform: translateY(24px) scale(0.96);
    opacity: 0;
    transition:
        transform 0.42s cubic-bezier(.2,.8,.2,1),
        opacity 0.42s ease;
}

.promo-modal.is-open .promo-modal__card{
    transform: translateY(0) scale(1);
    opacity: 1;
}

.promo-modal__close{
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 0;
    background: rgba(0,0,0,0.06);
    color: #333;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.promo-modal__close:hover{
    background: rgba(0,0,0,0.12);
    opacity: 1;
}

.promo-modal__badge{
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255,152,0,0.14);
    color: #ff7d00;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.promo-modal__media{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
    align-items: stretch;
}

.promo-modal__image,
.promo-modal__video{
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    background: #f4f4f4;
}

.promo-modal__title{
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.08;
    color: #111;
}

.promo-modal__text{
    margin: 0 auto 22px;
    max-width: 560px;
    font-size: 16px;
    line-height: 1.7;
    color: #4a4a4a;
}

.promo-modal__actions{
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.promo-modal__btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.promo-modal__btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
    opacity: 1;
}

.promo-modal__btn--primary{
    background: linear-gradient(135deg, #ff9800, #ff6f00);
    color: #fff;
}

.promo-modal__btn--secondary{
    background: rgba(255,255,255,0.9);
    color: #333;
    border: 1px solid rgba(0,0,0,0.08);
}

.dark .promo-modal__card{
    background: rgba(32,32,32,0.84);
    border-color: rgba(255,255,255,0.08);
}

.dark .promo-modal__title{
    color: #f5f5f5;
}

.dark .promo-modal__text{
    color: #d2d2d2;
}

.dark .promo-modal__close{
    background: rgba(255,255,255,0.08);
    color: #f2f2f2;
}

.dark .promo-modal__close:hover{
    background: rgba(255,255,255,0.14);
}

.dark .promo-modal__btn--secondary{
    background: rgba(255,255,255,0.06);
    color: #f5f5f5;
    border-color: rgba(255,255,255,0.10);
}

@media (max-width: 640px){
    .promo-modal__card{
        padding: 26px 16px 18px;
        border-radius: 22px;
    }

    .promo-modal__media{
        grid-template-columns: 1fr;
    }

    .promo-modal__image,
    .promo-modal__video{
        height: 190px;
    }

    .promo-modal__actions{
        flex-direction: column;
    }

    .promo-modal__btn{
        width: 100%;
    }
}