:root{
  --bg: #f6f7fb;
  --white: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #d1d5db;
  --shadow: 0 6px 18px rgba(17,24,39,.08);
  --shadow-soft: 0 2px 10px rgba(17,24,39,.08);
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
[hidden]{ display: none !important; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app-shell{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header: ekranın %10'u, beyaz arka plan, alt border ve gölge */
.app-header{
  height: 10vh;
  min-height: 72px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  gap: 12px;
  position: relative;
  z-index: 100;
  overflow: visible;
}

.brand{ display: flex; flex-direction: column; line-height: 1.1; }
.brand-title{ font-weight: 800; letter-spacing: .2px; }
.brand-subtitle{ font-size: 12px; color: var(--muted); margin-top: 4px; }

.header-menu{
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: 15px;
}

.header-menu__btn{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 8px;
  border-radius: 50%;
  background: #f8f9fa;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  width: 56px;
  height: 56px;
}

.header-menu__btn:hover{
  background: #fff;
  border-color: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.header-menu__btn:active{
  transform: translateY(0);
}

.header-menu__btn img{
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

.header-menu__separator{
  width: 1px;
  height: 40px;
  background: #d1d5db;
  margin: 0 10px;
  flex-shrink: 0;
}

.header-menu__tooltip{
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  padding: 6px 10px;
  background: #1f2937;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 99;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.header-menu__tooltip::before{
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #1f2937;
}

.header-menu__btn:hover .header-menu__tooltip{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.header-menu__badge{
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.header-middle{ 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  flex: 1; 
  margin-left: 12px;
}
.header-right{ 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  position: relative;
  z-index: 100;
  overflow: visible;
}
.user-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fafafa;
  font-size: 13px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}
a.user-chip:hover{
  background: #f0f0f0;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.role-chip{
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  color: #155e75;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  gap: 8px;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.btn-primary{ background: var(--primary); color: #fff; }
.btn-primary:hover{ background: var(--primary-dark); }
.btn-outline{ background: #fff; color: var(--text); border-color: var(--border); }
.btn-outline:hover{ background: #f9fafb; }

.btn-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Header Login Button (image-like) */
.btn-login{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 62px 0 26px; /* sağ rozet için yer */
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 1px;
  color: #0b0b0b;
  background: linear-gradient(180deg, #fff3b8 0%, #ffe08a 100%);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  border: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn-login:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0,0,0,.22);
}
.btn-login:active{
  transform: translateY(0px);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}
.btn-login:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(59,130,246,.22), 0 10px 22px rgba(0,0,0,.18);
}

/* Orta üst/alt küçük çıkıntı efekti */
.btn-login::before,
.btn-login::after{
  content: "";
  position: absolute;
  left: 50%;
  width: 38px;
  height: 10px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fff3b8 0%, #ffe08a 100%);
  border-radius: 0 0 10px 10px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.12));
}
.btn-login::before{
  top: -4px;
  border-radius: 0 0 10px 10px;
}
.btn-login::after{
  bottom: -4px;
  border-radius: 10px 10px 0 0;
}

.btn-login__text{
  font-size: 18px;
  line-height: 1;
}

.btn-login__badge{
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffc84a 0%, #ff9f0f 100%);
  box-shadow: 0 12px 22px rgba(0,0,0,.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b0b0b; /* svg currentColor */
}
.btn-login__badge::after{
  /* ikon üzerinde hafif parlama */
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255,255,255,.25);
  right: 14px;
  top: 18px;
  transform: rotate(12deg);
  pointer-events: none;
}

/* Kullanıcı görseli ile Login butonu */
.login-image-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
}
.login-image-btn__img{
  display: block;
  height: 44px;
  width: auto;
}
.login-image-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(59,130,246,.22);
  border-radius: 12px;
}

/* Main içerik alanı: kalan kısım */
.app-main{
  flex: 1;
  padding: 18px;
  position: relative; /* modal/overlay için */
  margin: 0;
  /* background-image is set inline in layout.php with cache-busting timestamp */
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

/* Login modal (alt alan) + %70 siyah arka plan */
body.modal-open{
  overflow: hidden;
}
.login-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.70);
  z-index: 50;
  display: none; /* default kapalı */
}
.login-overlay.is-open{ display: block; }
.login-modal{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 60;
  display: none; /* default kapalı */
}
.login-modal.is-open{ display: flex; }
.login-modal__panel{
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 14px 14px 16px 14px;
}
.login-modal__top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.login-modal__logo{
  display: block;
  height: 80px;
  width: auto;
  opacity: .95;
}
.login-modal__intro{
  margin: 20px 0;
  text-align: center;
}
.login-modal__intro-title{
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
  line-height: 1.4;
}
.login-modal__intro-text{
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.login-modal__close{
  height: 34px;
  width: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}
.login-modal__close:hover{
  background: #f9fafb;
}

/* Add Flash Game Modal */
.add-game-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.70);
  z-index: 50;
  display: none; /* default kapalı */
}
.add-game-overlay.is-open{ display: block; }
.add-game-modal{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 60;
  display: none; /* default kapalı */
}
.add-game-modal.is-open{ display: flex; }
.add-game-modal__panel{
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
  max-height: 90vh;
  overflow-y: auto;
}
.add-game-modal__top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.add-game-modal__close{
  height: 34px;
  width: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  flex-shrink: 0;
}
.add-game-modal__close:hover{
  background: #f9fafb;
}
input[type="url"]{
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0 12px;
  font-size: 14px;
  background: #fff;
  font-family: inherit;
}
input[type="url"]:focus{
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147,197,253,.15);
}

/* Block external links overlay (Flash safety) */
.safe-block-overlay{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.70);
  z-index: 10000;
}
.safe-block-modal{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 10001;
  pointer-events: none;
}
.safe-block-panel{
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 14px 14px 16px 14px;
  pointer-events: auto;
}

/* Link blocker modal (for child pages) */
.link-blocker-overlay{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.70);
  z-index: 10000;
}
.link-blocker-modal{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 10001;
  pointer-events: none;
}
.link-blocker-modal__panel{
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
  pointer-events: auto;
  text-align: center;
}
.link-blocker-modal__title{
  font-weight: 900;
  font-size: 18px;
  margin: 0 0 12px 0;
  color: var(--text);
}
.link-blocker-modal__text{
  margin: 0 0 20px 0;
  color: var(--muted);
  line-height: 1.5;
}
.card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px;
}

/* Dashboard cards – hover animation (same as website index features) */
.dashboard-cards-grid .card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.dashboard-cards-grid .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.dashboard-cards-grid .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.15);
  border-color: var(--primary);
}
.dashboard-cards-grid .card:hover::before {
  transform: scaleX(1);
}
.dashboard-cards-grid .card-icon {
  transition: transform 0.3s ease;
}
.dashboard-cards-grid .card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.container{
  max-width: 1400px;
  margin: 0 auto;
}

.grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.grid-4{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Children grid - 2 columns, responsive */
.children-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}

@media (max-width: 768px) {
  .children-grid {
    grid-template-columns: 1fr !important;
  }
  .grid[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

.field{ display: grid; gap: 6px; }
label{ font-size: 13px; color: var(--muted); font-weight: 700; }
input[type="text"], input[type="password"], select, textarea{
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0 12px;
  font-size: 14px;
  background: #fff;
  font-family: inherit;
}
input[type="text"], input[type="password"], select{
  height: 42px;
}
textarea{
  padding: 10px 12px;
  min-height: 80px;
  resize: vertical;
}
input[type="text"]:focus, input[type="password"]:focus, select:focus, input[type="file"]:focus, textarea:focus{
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}
#game-search{
  height: 42px;
  padding: 0 40px 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: #fff;
  font-family: inherit;
  transition: all 0.2s;
}
#game-search:focus{
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}
#game-search::placeholder{
  color: var(--muted);
}
select{
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
input[type="file"]{
  padding: 8px 12px;
  cursor: pointer;
}
input[type="file"]::-webkit-file-upload-button{
  padding: 6px 12px;
  margin-right: 12px;
  border-radius: 6px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
input[type="file"]::-webkit-file-upload-button:hover{
  background: var(--primary-dark);
}

.alert{
  border-radius: 12px;
  padding: 12px 12px;
  border: 1px solid var(--border);
  background: #fff;
}
.alert-error{ border-color: #fecaca; background: #fef2f2; color: #7f1d1d; }
.alert-ok{ border-color: #bbf7d0; background: #f0fdf4; color: #14532d; }
.muted{ color: var(--muted); }

/* FlashGames */
.page-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.games-grid{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}
@media (max-width: 1600px) {
  .games-grid{
    grid-template-columns: repeat(6, 1fr);
  }
}
@media (max-width: 1400px) {
  .games-grid{
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 1200px) {
  .games-grid{
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 900px) {
  .games-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .games-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 400px) {
  .games-grid{
    grid-template-columns: 1fr;
  }
}
.game-card{
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.game-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(17,24,39,.12);
}
.game-card__thumb{
  height: 120px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f9fafb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-card__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-card__placeholder{
  font-weight: 900;
  color: #111827;
  opacity: .5;
  letter-spacing: 2px;
}
.game-card__title{
  font-weight: 800;
  font-size: 13px;
  word-break: break-word;
}
.game-card__time-info{
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.game-card__time-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.game-card__time-label{
  color: var(--muted);
  font-weight: 600;
}
.game-card__time-value{
  font-weight: 700;
  color: var(--text);
}
.game-card__badges{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge{
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--border);
  background: #fff;
}
.badge-allowed{
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #14532d;
}
.badge-fav{
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.manage-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 1200px){
  .manage-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px){
  .manage-grid{ grid-template-columns: 1fr; }
}
.manage-row{
  display: grid;
  grid-template-rows: auto auto;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px;
}
.manage-row__top{
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 16px;
  align-items: flex-start;
}
@media (max-width: 900px){
  .manage-row__top{ grid-template-columns: 1fr; }
  .manage-row__left{ display: flex; gap: 12px; align-items: flex-start; }
  .manage-row__right{ margin-top: 12px; }
}
.manage-row__left{
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  align-items: center;
  text-align: center;
}
.manage-row__right{
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}
.manage-row__right > div:last-child{
  align-self: flex-end;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-right: 50px;
}
.manage-row__title{
  min-width: 0;
  width: 100%;
}
.manage-row__title > div:first-child{
  font-weight: 900;
  word-wrap: break-word;
}
.manage-row__description-full{
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  width: 100%;
}
.manage-row__thumb{
  width: 120px;
  height: 120px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f9fafb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.manage-row__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.manage-row__checks{
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
}

.manage-row__checks > * {
  flex-shrink: 0;
}

.manage-row__checks .game-limit-control{
  margin-left: auto !important;
  flex-shrink: 0 !important;
  order: 999 !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  min-width: 200px;
}
.check{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 10px;
  background: #fff;
  font-weight: 800;
  font-size: 13px;
}
.check input{ width: 16px; height: 16px; }

.tabs{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tab{
  text-decoration: none;
  color: inherit;
  font-weight: 900;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
}
.tab.is-active{
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}

.play-head{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}
.play-head__meta{ display: grid; gap: 2px; }
.play-head__title{ font-weight: 900; font-size: 18px; }
.play-shell{
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 14px;
}
@media (max-width: 900px){
  .play-shell{ grid-template-columns: 1fr; }
}
.play-logo{
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  display: block;
}
.play-logo--placeholder{
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  opacity: .5;
}
.play-admin-actions{
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.btn-icon{
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  font-size: 0;
}
.btn-icon:hover{
  background: var(--bg);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.btn-icon--edit:hover{
  background: #eff6ff;
  border-color: #2563eb;
  color: #2563eb;
}
.btn-icon--delete:hover{
  background: #fef2f2;
  border-color: #dc2626;
  color: #dc2626;
}
.btn-icon svg{
  width: 16px;
  height: 16px;
}

/* Pagination */
.pagination{
  display: flex;
  gap: 8px;
  align-items: center;
}
.pagination-btn{
  white-space: nowrap;
  min-width: 120px;
  text-align: center;
}
.pagination-info{
  color: var(--muted);
  font-size: 14px;
}
.pagination-page-info{
  color: var(--muted);
  font-size: 14px;
  padding: 0 8px;
  white-space: nowrap;
}
.ruffle-container{
  width: 100%;
}

.html5-iframe{
  width: 100%;
  height: 640px;
  border: 0;
  border-radius: 12px;
  background: #000;
}

/* Landing (home) centered big logo */
.landing{
  min-height: calc(100vh - 10vh);
  position: relative;
  padding: 10px;
}
.landing::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/images/logo-big.png");
  background-repeat: no-repeat;
  background-position: top center; /* ana alanın ortası */
  /* "logo çok büyük %60 küçültelim" → belirgin küçültme (responsive) */
  background-size: clamp(180px, 40vw, 520px) auto;
  opacity: 0.5; /* %50 saydam */
  pointer-events: none;
}

/* Game Limit Controls */
.game-limit-control{
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.toggle-switch{
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.toggle-switch__input{
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch__slider{
  position: relative;
  width: 44px;
  height: 24px;
  background: #d1d5db;
  border-radius: 999px;
  transition: background 0.2s ease;
  display: block;
  flex-shrink: 0;
}

.toggle-switch__slider::before{
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
}

.toggle-switch__input:checked + .toggle-switch__slider{
  background: #10b981;
}

.toggle-switch__input:checked + .toggle-switch__slider::before{
  transform: translateX(20px);
}

.toggle-switch__label{
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  display: block;
  flex-shrink: 0;
}

.game-limit-time{
  display: flex;
  align-items: center;
  gap: 6px;
}

.game-limit-time__input{
  width: 60px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.game-limit-time__input:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.game-limit-time__label{
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

/* Time Limit Overlay */
.time-limit-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.time-limit-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.time-limit-modal__panel{
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  pointer-events: auto;
  text-align: center;
}

.time-limit-modal__title{
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 12px 0;
}

.time-limit-modal__text{
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 20px 0;
  line-height: 1.5;
}

/* Schedule Modal */
.schedule-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.schedule-overlay.is-open{
  opacity: 1;
  visibility: visible;
}

.schedule-modal{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.schedule-modal.is-open{
  opacity: 1;
  visibility: visible;
}

.schedule-modal__panel{
  background: var(--white);
  border-radius: 20px;
  padding: 0;
  max-width: 95%;
  max-height: calc(100vh - 40px);
  width: 1450px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 0;
}

.schedule-modal__header{
  padding: 24px 32px;
  border-bottom: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.schedule-modal__header h2{
  color: white;
  margin: 0;
}

.schedule-modal__close{
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.schedule-modal__close:hover{
  background: rgba(255,255,255,0.3);
}

.schedule-modal__content{
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.schedule-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.schedule-day-block{
  border-radius: 12px;
  padding: 16px;
  min-height: 200px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.schedule-day-block:hover{
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.schedule-day-header{
  font-weight: 700;
  font-size: 16px;
}

/* How to add YouTube videos modal images */
.how-image{
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.how-image:hover{
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}
  margin-bottom: 12px;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(0,0,0,0.1);
}

.schedule-day-content{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-class-item{
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.schedule-class-time{
  font-weight: 600;
  font-size: 11px;
  margin-bottom: 4px;
  opacity: 0.8;
}

.schedule-class-name{
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.schedule-class-detail{
  font-size: 11px;
  opacity: 0.7;
  margin-top: 2px;
}

.schedule-empty{
  text-align: center;
  color: #999;
  font-size: 13px;
  padding: 20px 0;
  font-style: italic;
}

/* Theme: Early Childhood - Girl (Pink/Purple) */
.schedule-modal__content[data-theme="early_childhood_girl"] .schedule-modal__header{
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
}

.schedule-modal__content[data-theme="early_childhood_girl"] .schedule-day-block{
  background: linear-gradient(135deg, #ffb6c1 0%, #ffc0cb 100%);
}

/* Theme: Early Childhood - Boy (Blue/Green) */
.schedule-modal__content[data-theme="early_childhood_boy"] .schedule-modal__header{
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.schedule-modal__content[data-theme="early_childhood_boy"] .schedule-day-block{
  background: linear-gradient(135deg, #87ceeb 0%, #b0e0e6 100%);
}

/* Theme: Late Childhood (Pastel Grid) */
.schedule-modal__content[data-theme*="late_childhood"] .schedule-modal__header{
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

/* Theme: Adolescence (Professional) */
.schedule-modal__content[data-theme*="adolescence"] .schedule-modal__header{
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.schedule-modal__content[data-theme*="adolescence"] .schedule-day-block{
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

/* Google Translate Styling */
.language-selector{
  display: inline-flex !important;
  align-items: center;
  vertical-align: middle;
  height: 36px;
  min-width: 160px;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  padding: 0 4px;
}

#google_translate_element{
  display: inline-block !important;
  height: 36px !important;
  line-height: 36px;
  min-width: 160px;
  width: 160px;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 1;
}

/* Hide Google Translate banner completely */
.goog-te-banner-frame{
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  top: -9999px !important;
}

#goog-gt-tt {
  display: none !important;
  visibility: hidden !important;

}

/* Ensure main translate elements are NOT affected by height: 0 */
#google_translate_element {
  height: 36px !important;
  min-height: 36px !important;
  max-height: none !important;
}

#google_translate_element .goog-te-gadget {
  height: auto !important;
  min-height: 36px !important;
  max-height: none !important;
}

#google_translate_element .goog-te-gadget-simple {
  height: 36px !important;
  min-height: 36px !important;
  max-height: none !important;
}

#google_translate_element .goog-te-combo {
  height: 36px !important;
  min-height: 36px !important;
  max-height: none !important;
}

body{
  top: 0 !important;
  position: static !important;
}

/* Style Google Translate dropdown - make it visible */
.goog-te-gadget{
  font-size: 12px !important;
  color: var(--text) !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}

.goog-te-gadget-simple{
  background-color: transparent !important;
  border: none !important;
  font-size: 12px !important;
  padding: 0 !important;
  white-space: nowrap;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.goog-te-gadget-simple .goog-te-gadget-icon{
  display: none !important;
}

.goog-te-gadget-simple .goog-te-combo{
  margin: 0 !important;
  padding: 8px 40px 8px 16px !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  background: var(--white) !important;
  color: var(--text) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  cursor: pointer !important;
  min-width: 160px !important;
  width: 160px !important;
  height: 36px !important;
  line-height: 20px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 14px !important;
  padding-right: 40px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
  position: relative !important;
  z-index: 10 !important;
}

.goog-te-gadget-simple .goog-te-combo:hover{
  border-color: var(--primary) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.goog-te-gadget-simple .goog-te-combo:focus{
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* Hide "Select Language" text but keep dropdown visible */
.goog-te-gadget-simple .goog-te-gadget-simple-text{
  display: none !important;
}

/* Ensure all Google Translate text is visible */
.goog-te-gadget * {
  font-size: 12px !important;
}

.goog-te-gadget-simple * {
  font-size: 12px !important;
}

.goog-te-combo option {
  font-size: 12px !important;
}

/* Style for translated content */
body.translated-ltr{
  direction: ltr;
}

body.translated-rtl{
  direction: rtl;
}

/* ========== RTL Support (root/portal pages – Arapça) ========== */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .app-shell {
  direction: rtl;
}

[dir="rtl"] .app-header {
  direction: rtl;
  flex-direction: row-reverse;
}

[dir="rtl"] .header-menu {
  flex-direction: row-reverse;
  margin-left: 0;
  margin-right: 15px;
}

[dir="rtl"] .header-middle {
  margin-left: 0;
  margin-right: 12px;
}

[dir="rtl"] .header-right {
  flex-direction: row-reverse;
}

[dir="rtl"] .header-menu__tooltip {
  left: auto;
  right: 50%;
  transform: translateX(50%) translateY(15px);
}

[dir="rtl"] .header-menu__tooltip::before {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

[dir="rtl"] .header-menu__btn:hover .header-menu__tooltip {
  transform: translateX(50%) translateY(0);
}

[dir="rtl"] .header-menu__badge {
  right: auto;
  left: -4px;
}

[dir="rtl"] .container,
[dir="rtl"] .card,
[dir="rtl"] .landing,
[dir="rtl"] .grid {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .login-modal__intro,
[dir="rtl"] .login-modal__form,
[dir="rtl"] .auth-tabs,
[dir="rtl"] .auth-panel,
[dir="rtl"] .form-group,
[dir="rtl"] .field {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .form-label,
[dir="rtl"] label {
  text-align: right;
}

[dir="rtl"] .form-input,
[dir="rtl"] input[type="text"],
[dir="rtl"] input[type="password"],
[dir="rtl"] input[type="email"],
[dir="rtl"] textarea,
[dir="rtl"] select {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .btn-login {
  padding: 0 26px 0 62px;
}

[dir="rtl"] .subscription-expired {
  text-align: right;
}

[dir="rtl"] .subscription-expired h1,
[dir="rtl"] .subscription-expired p {
  text-align: right;
}

[dir="rtl"] .language-selector {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .user-chip,
[dir="rtl"] .btn {
  direction: rtl;
}

[dir="rtl"] .dashboard-cards-grid,
[dir="rtl"] .grid {
  direction: rtl;
}

[dir="rtl"] .card-icon,
[dir="rtl"] .card-body {
  text-align: right;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
  text-align: right;
}

[dir="rtl"] ul, [dir="rtl"] ol {
  padding-right: 1.5rem;
  padding-left: 0;
}

[dir="rtl"] li {
  text-align: right;
}

[dir="rtl"] .login-page__container,
[dir="rtl"] .login-page__card,
[dir="rtl"] .login-page__form,
[dir="rtl"] .login-page__intro {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .login-page__back {
  direction: rtl;
}

/* Fix for Google Translate iframe and dropdown menu */
.goog-te-menu-frame{
  z-index: 10000 !important;
}

.goog-te-menu-value{
  z-index: 10001 !important;
}

.goog-te-menu{
  z-index: 10001 !important;
  position: absolute !important;
}

.goog-te-menu2{
  z-index: 10001 !important;
  position: absolute !important;
}

/* Ensure dropdown can open */
.language-selector{
  position: relative !important;
  z-index: 1000 !important;
  overflow: visible !important;
}

#google_translate_element{
  position: relative !important;
  z-index: 1000 !important;
  overflow: visible !important;
}

.goog-te-gadget{
  position: relative !important;
  z-index: 1000 !important;
  overflow: visible !important;
}

.goog-te-gadget-simple{
  position: relative !important;
  z-index: 1000 !important;
  overflow: visible !important;
}

.goog-te-combo{
  position: relative !important;
  z-index: 1001 !important;
}



.VIpgJd-ZVi9od-aZ2wEe-OiiCO-ti6hGc {
  display: none !important;
}

/* ToDo Modal Styles */
.todo-overlay{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(4px);
}

.todo-overlay.is-open{
  opacity: 1;
  visibility: visible;
}

.todo-modal{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.todo-modal.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.todo-modal__panel{
  width: min(90vw, 600px);
  max-height: 85vh;
  background: #FFF5F5;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.todo-modal.is-open .todo-modal__panel{
  transform: scale(1);
}

.todo-modal__header{
  background: #FFB6C1;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.todo-modal__header h2{
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.todo-modal__close{
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  font-weight: 700;
}

.todo-modal__close:hover{
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.todo-modal__content{
  padding: 0;
  overflow-y: auto;
  flex: 1;
  max-height: calc(85vh - 80px);
}

.todo-list{
  padding: 20px;
}

.todo-item{
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.todo-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.todo-checkbox{
  width: 28px;
  height: 28px;
  border: 3px solid #FFB6C1;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
  padding: 0;
}

.todo-checkbox:hover{
  transform: scale(1.1);
  border-color: #FF91A4;
}

/* Theme-specific styles for ToDo modal */
.todo-modal__panel[data-theme="infancy_girl"] {
  background: #FFF0F5;
}

.todo-modal__panel[data-theme="infancy_boy"] {
  background: #F0F8FF;
}

.todo-modal__panel[data-theme="early_childhood_girl"],
.todo-modal__panel[data-theme="early_childhood_boy"] {
  background: #FFF8DC;
}

.todo-modal__panel[data-theme="late_childhood_girl"],
.todo-modal__panel[data-theme="late_childhood_boy"] {
  background: #F0FFF0;
}

.todo-modal__panel[data-theme="adolescence_girl"],
.todo-modal__panel[data-theme="adolescence_boy"] {
  background: #F5F5F5;
}

/* Converter Styles */
.converter-card{
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.converter-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  border-color: #3b82f6;
}

.converter-overlay{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(4px);
}

.converter-overlay.is-open{
  opacity: 1;
  visibility: visible;
}

.converter-modal{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.converter-modal.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.converter-modal__panel{
  width: min(90vw, 700px);
  max-height: 85vh;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.converter-modal.is-open .converter-modal__panel{
  transform: scale(1);
}

.converter-modal__header{
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.converter-modal__title{
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.converter-modal__close{
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  font-weight: 700;
}

.converter-modal__close:hover{
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.converter-modal__content{
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  max-height: calc(85vh - 80px);
}

.converter-swap-btn{
  padding: 12px 16px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  height: fit-content;
  transition: background 0.2s ease, transform 0.2s ease;
}

.converter-swap-btn:hover{
  background: #2563eb;
  transform: scale(1.1);
}

.converter-input:focus,
.converter-select:focus{
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.converter-select{
  min-height: 52px !important;
  height: 52px !important;
  padding: 16px 12px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  vertical-align: middle !important;
}

.converter-select option{
  padding: 10px 12px !important;
  line-height: 1.6 !important;
  min-height: 32px !important;
}

/* Chat Room Styles */
.chat-room-container{
  position: relative;
  overflow: hidden;
}

.chat-room-header{
  z-index: 10;
}

.chat-tab-btn{
  transition: all 0.2s ease;
}

.chat-tab-btn:hover{
  background: rgba(255,255,255,0.3) !important;
}

.chat-friends-sidebar{
  overflow-y: auto;
}

.chat-friend-btn:hover{
  background: #f3f4f6 !important;
}

.chat-messages{
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar{
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track{
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover{
  background: rgba(0,0,0,0.3);
}

.chat-message{
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn{
  from{
    opacity: 0;
    transform: translateY(10px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-input-area input:focus{
  outline: none;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.chat-input-area button:hover{
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.chat-input-area button:active{
  transform: scale(0.98);
}


