
/* Faz 12 — Mobil UX toparlama */
:root{
  --pitays-mobile-sidebar: 286px;
}

.pitays-mobile-overlay{
  position:fixed;
  inset:0;
  background:rgba(6,14,24,.52);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  z-index:70;
  transition:opacity .22s ease,visibility .22s ease;
  backdrop-filter:blur(3px);
}
body.mobile-nav-open .pitays-mobile-overlay,
body.sidebar-open .pitays-mobile-overlay{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.pitays-mobile-trigger,
.customer-menu-button{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:var(--panel);
  color:var(--text);
  font-weight:800;
  font-size:13px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}
.pitays-mobile-trigger span,
.customer-menu-button span{font-size:12px}

.customer-topbar-left,
.customer-topbar-actions{
  display:flex;
  align-items:center;
  gap:12px;
}
.customer-logout-button{
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid var(--line);
  background:var(--panel);
  color:var(--text);
  cursor:pointer;
  font-size:18px;
}
.customer-topbar-logout{margin:0}

/* Login page cleanup */
.pitays-login-page{
  background:
    radial-gradient(circle at top left, rgba(244,124,13,.15), transparent 30%),
    radial-gradient(circle at bottom right, rgba(27,114,200,.18), transparent 28%),
    var(--bg);
}
.pitays-login-shell{
  min-height:100vh;
  max-width:1280px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(420px,520px);
  gap:42px;
  padding:32px;
  position:relative;
  z-index:2;
  align-items:center;
}
.pitays-login-side{
  display:flex;
  flex-direction:column;
  gap:28px;
}
.pitays-login-brand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.pitays-login-brand img{width:min(260px,70vw);height:auto;object-fit:contain}
.login-theme-toggle{flex:0 0 auto}
.pitays-login-intro{
  padding:8px 4px;
}
.pitays-login-intro h1{
  margin:14px 0 14px;
  font-size:clamp(34px,5vw,64px);
  line-height:1.02;
  letter-spacing:-.03em;
}
.pitays-login-intro h1 span{color:var(--orange)}
.pitays-login-intro p{
  max-width:620px;
  color:var(--muted);
  font-size:17px;
  line-height:1.75;
}
.pitays-login-pills{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:20px;
}
.pitays-login-pills span{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid var(--line);
  background:color-mix(in srgb, var(--panel) 90%, transparent);
  color:var(--text);
  font-weight:700;
  font-size:13px;
}
.pitays-login-card{
  width:100%;
  max-width:520px;
  margin-left:auto;
  padding:32px;
  border-radius:26px;
  background:color-mix(in srgb, var(--panel) 96%, transparent);
  border:1px solid var(--line);
  box-shadow:0 30px 80px rgba(0,0,0,.14);
}
.pitays-login-card .login-card-head h2{font-size:46px;line-height:1.02;margin:8px 0 10px}
.pitays-login-card .login-card-head p{font-size:15px;line-height:1.65;color:var(--muted);margin-bottom:22px}
.pitays-login-card .form-stack label>span{font-size:13px;margin-bottom:9px}
.pitays-login-card .form-stack input[type=email],
.pitays-login-card .form-stack input[type=password]{
  height:58px;
  border-radius:16px;
  font-size:17px;
  background:var(--bg-soft);
  border-color:var(--line);
  color:var(--text);
}
.pitays-remember-row{
  justify-content:flex-start;
  min-height:24px;
  margin:16px 0 8px !important;
}
.pitays-remember-row input{width:18px;height:18px}
.pitays-remember-row span{font-size:15px !important;color:var(--text-soft)}
.pitays-login-submit{
  width:100%;
  min-height:58px;
  border-radius:16px;
  font-size:18px;
  font-weight:900;
}
.pitays-login-card .login-security{font-size:13px;color:var(--muted);margin-top:18px;text-align:left}

/* Mobile admin/customer cleanup */
@media (max-width: 980px){
  .pitays-admin-shell .topbar,
  .pitays-customer-shell .customer-topbar{
    position:sticky;
    top:0;
    z-index:50;
    backdrop-filter:blur(10px);
  }
  .pitays-admin-shell .topbar{
    min-height:72px;
    gap:10px;
    padding:12px 14px;
    justify-content:space-between;
    flex-wrap:wrap;
  }
  .pitays-admin-shell .topbar-right{
    width:100%;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
  }
  .pitays-admin-shell .ticket-notification{order:2}
  .pitays-admin-shell .theme-toggle{order:3}
  .pitays-admin-shell .status-pill{order:4}
  .pitays-admin-shell .user-box{order:5}
  .pitays-admin-shell .icon-button{order:6}

  .pitays-customer-shell .customer-topbar{
    min-height:72px;
    padding:12px 14px;
    gap:10px;
    flex-wrap:wrap;
    justify-content:space-between;
  }
  .pitays-customer-shell .customer-topbar-left,
  .pitays-customer-shell .customer-topbar-actions{
    width:100%;
    justify-content:space-between;
  }
}

@media (max-width: 780px){
  .pitays-login-shell{
    grid-template-columns:1fr;
    gap:18px;
    padding:16px;
    align-items:start;
  }
  .pitays-login-side{
    gap:14px;
  }
  .pitays-login-intro{
    padding:4px 0 0;
  }
  .pitays-login-intro h1{
    font-size:24px;
    line-height:1.15;
    margin:10px 0 8px;
  }
  .pitays-login-intro p{
    font-size:14px;
    line-height:1.6;
    margin:0;
  }
  .pitays-login-pills{
    gap:8px;
    margin-top:14px;
  }
  .pitays-login-pills span{
    min-height:32px;
    padding:0 12px;
    font-size:11px;
  }
  .pitays-login-card{
    max-width:none;
    margin:0;
    padding:22px 18px;
    border-radius:22px;
  }
  .pitays-login-card .login-card-head h2{
    font-size:24px;
    margin:8px 0 8px;
  }
  .pitays-login-card .login-card-head p{font-size:13px;margin-bottom:14px}
  .pitays-login-card .form-stack input[type=email],
  .pitays-login-card .form-stack input[type=password]{
    height:52px;
    font-size:16px;
  }
  .pitays-login-submit{min-height:52px;font-size:16px}
  .pitays-login-card .login-security{text-align:left;font-size:12px}

  .pitays-admin-shell .sidebar,
  .pitays-customer-shell .customer-sidebar{
    position:fixed !important;
    top:0;
    left:0;
    width:min(var(--pitays-mobile-sidebar), 86vw);
    height:100vh !important;
    max-height:100vh;
    overflow-y:auto;
    z-index:80;
    transform:translateX(-108%);
    transition:transform .22s ease;
    box-shadow:0 24px 80px rgba(0,0,0,.22);
    padding-bottom:110px;
  }
  body.mobile-nav-open .customer-sidebar,
  body.mobile-nav-open .sidebar,
  body.sidebar-open .sidebar{
    transform:translateX(0);
  }
  .pitays-admin-shell .main-shell,
  .pitays-customer-shell .customer-main{
    width:100%;
    min-width:0;
  }
  .pitays-admin-shell .search-box,
  .pitays-admin-shell .status-pill,
  .pitays-customer-shell .customer-user small{
    display:none !important;
  }
  .pitays-admin-shell .content,
  .pitays-customer-shell .customer-content{
    padding:16px 14px 24px;
  }
  .pitays-admin-shell .content .page-head h1,
  .pitays-customer-shell .customer-page-head h1,
  .pitays-customer-shell .customer-page-head-actions h1{
    font-size:30px;
    line-height:1.1;
  }
  .pitays-admin-shell .metric-grid,
  .pitays-admin-shell .dashboard-grid,
  .pitays-admin-shell .node-card-grid,
  .pitays-customer-shell .customer-stat-grid,
  .pitays-customer-shell .customer-resource-grid,
  .pitays-customer-shell .customer-detail-grid{
    grid-template-columns:1fr !important;
  }
  .pitays-admin-shell .topbar-right,
  .pitays-customer-shell .customer-topbar-actions{
    gap:8px;
  }
  .pitays-admin-shell .user-box,
  .pitays-customer-shell .customer-user{
    padding:0;
    border:none;
    background:transparent;
    min-width:0;
  }
  .pitays-admin-shell .user-box strong,
  .pitays-customer-shell .customer-user span{font-size:13px}
  .pitays-admin-shell .user-box small,
  .pitays-customer-shell .customer-user small{font-size:11px}
  .pitays-admin-shell .ticket-notification-btn,
  .pitays-admin-shell .theme-toggle,
  .pitays-customer-shell .theme-toggle,
  .pitays-customer-shell .customer-logout-button,
  .pitays-admin-shell .icon-button{
    min-height:42px;
    border-radius:14px;
  }
  .pitays-admin-shell .topbar{align-items:flex-start}
  .pitays-customer-shell .customer-panel,
  .pitays-admin-shell .card,
  .pitays-admin-shell .stat-card,
  .pitays-admin-shell .chart-card{
    border-radius:18px;
  }
}

@media (max-width: 480px){
  .pitays-login-shell{padding:12px}
  .pitays-login-brand img{width:160px}
  .login-theme-toggle span[data-theme-label]{display:none}
  .pitays-login-card{padding:20px 16px}
  .pitays-login-card .login-card-head h2{font-size:22px}
  .pitays-admin-shell .content .page-head h1,
  .pitays-customer-shell .customer-page-head h1{font-size:26px}
  .pitays-mobile-trigger,
  .customer-menu-button{padding:0 12px}
  .pitays-admin-shell .user-box .avatar{width:38px;height:38px}
  .pitays-customer-shell .customer-topbar strong{font-size:12px}
  .pitays-customer-shell .customer-topbar span{font-size:10px}
}


/* Faz 12.1 — Mobil navigasyon toparlama */
@media (max-width: 780px){
  .pitays-admin-shell .topbar{
    position:sticky;
    top:0;
    z-index:60;
    min-height:74px;
    padding:10px 12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    flex-wrap:nowrap !important;
    background:color-mix(in srgb, var(--panel) 92%, transparent);
    backdrop-filter:blur(12px);
  }
  .pitays-admin-shell .topbar-right{
    width:auto !important;
    margin-left:auto;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    flex-wrap:nowrap !important;
    overflow:hidden;
  }
  .pitays-admin-shell .pitays-mobile-trigger{
    flex:0 0 auto;
    min-width:auto;
  }
  .pitays-admin-shell .ticket-notification-btn,
  .pitays-admin-shell .theme-toggle,
  .pitays-admin-shell .icon-button,
  .pitays-admin-shell .user-box .avatar{
    flex:0 0 auto;
  }
  .pitays-admin-shell .theme-toggle span[data-theme-label],
  .pitays-admin-shell .ticket-notification-btn > span:not(b),
  .pitays-admin-shell .user-box strong,
  .pitays-admin-shell .user-box small{
    display:none;
  }
  .pitays-admin-shell .user-box{
    min-width:auto;
    padding:0;
    border:none;
    background:transparent;
  }
  .pitays-admin-shell .status-pill,
  .pitays-admin-shell .search-box{
    display:none !important;
  }
  .pitays-admin-shell .content{padding-top:18px}

  .pitays-customer-shell .customer-sidebar{
    display:none !important;
  }
  .pitays-customer-shell .customer-shell{
    display:block;
  }
  .pitays-customer-shell .customer-topbar{
    position:sticky;
    top:0;
    z-index:60;
    min-height:72px;
    padding:10px 14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    background:color-mix(in srgb, var(--panel) 92%, transparent);
    backdrop-filter:blur(12px);
  }
  .pitays-customer-shell .customer-topbar-left{display:flex;align-items:center;gap:8px}
  .pitays-customer-shell .customer-topbar-left > div{min-width:0}
  .pitays-customer-shell .customer-topbar strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:160px}
  .pitays-customer-shell .customer-topbar span{font-size:10px}
  .pitays-customer-shell .customer-topbar-actions{width:auto !important;display:flex;align-items:center;gap:8px}
  .pitays-customer-shell .customer-user small,
  .pitays-customer-shell .customer-user span{display:none}
  .pitays-customer-shell .customer-content{padding:16px 14px 88px}
  .pitays-customer-shell .customer-bottom-nav{
    position:fixed;
    left:12px;
    right:12px;
    bottom:12px;
    z-index:75;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    padding:8px;
    border:1px solid var(--line);
    border-radius:22px;
    background:color-mix(in srgb, var(--panel) 94%, transparent);
    box-shadow:0 18px 40px rgba(0,0,0,.12);
    backdrop-filter:blur(14px);
  }
  .pitays-customer-shell .customer-bottom-nav a{
    min-height:56px;
    padding:8px 6px;
    border-radius:16px;
    text-decoration:none;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    color:var(--text-soft);
    font-size:11px;
    font-weight:700;
    background:transparent;
    border:1px solid transparent;
  }
  .pitays-customer-shell .customer-bottom-nav a.active{
    color:var(--orange);
    background:color-mix(in srgb, var(--orange) 10%, var(--panel));
    border-color:color-mix(in srgb, var(--orange) 28%, var(--line));
  }
  .pitays-customer-shell .customer-bottom-nav a.is-disabled{
    opacity:.55;
    pointer-events:none;
  }
  .pitays-customer-shell .customer-bottom-nav-icon{font-size:18px;line-height:1}
  .pitays-customer-shell .customer-menu-button,
  .pitays-customer-shell .pitays-mobile-overlay{display:none !important}
}

@media (min-width: 781px){
  .pitays-customer-shell .customer-bottom-nav{display:none !important}
}


/* Faz 12.2 — Müşteri mobil görünüm iyileştirme */
.customer-avatar{
  width:40px;height:40px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--panel-strong),color-mix(in srgb, var(--orange) 18%, var(--panel)));
  color:var(--text);font-weight:800;border:1px solid var(--line);
}
.customer-panel-head-stack{align-items:flex-start}
.customer-desktop-only{display:block}
.customer-mobile-only{display:none}
.customer-empty-state{padding:20px;color:var(--muted)}

@media (max-width:780px){
  .pitays-customer-shell .customer-main{min-width:0}
  .pitays-customer-shell .customer-content{
    padding:14px 14px 96px;
    overflow-x:hidden;
  }
  .pitays-customer-shell .customer-page-head{margin-bottom:14px}
  .pitays-customer-shell .customer-page-head h1{font-size:24px;line-height:1.15;margin:6px 0}
  .pitays-customer-shell .customer-page-head p{font-size:12px;line-height:1.5}
  .pitays-customer-shell .customer-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .pitays-customer-shell .customer-stat-grid>div{
    padding:14px;border-radius:18px;background:var(--panel);border:1px solid var(--line);box-shadow:0 10px 30px rgba(15,23,42,.05)
  }
  .pitays-customer-shell .customer-stat-grid span{font-size:11px;color:var(--muted)}
  .pitays-customer-shell .customer-stat-grid strong{font-size:28px;margin-top:8px;color:var(--text)}

  .pitays-customer-shell .customer-panel{
    border-radius:22px;background:var(--panel);border:1px solid var(--line);box-shadow:0 14px 40px rgba(15,23,42,.06)
  }
  .pitays-customer-shell .customer-panel-head{padding:16px 16px 12px}
  .pitays-customer-shell .customer-panel-head h2{font-size:16px;color:var(--text)}
  .pitays-customer-shell .customer-panel-head p{font-size:12px;line-height:1.45;color:var(--muted)}
  .pitays-customer-shell .customer-live-dot{font-size:11px}
  .pitays-customer-shell .customer-network-legend{gap:10px;flex-wrap:wrap;font-size:12px}
  .pitays-customer-shell .customer-network-chart-wrap{padding:6px 12px 8px;height:190px}
  .pitays-customer-shell #customer-network-chart{height:170px}

  .pitays-customer-shell .customer-desktop-only{display:none !important}
  .pitays-customer-shell .customer-mobile-only{display:block !important}
  .pitays-customer-shell .customer-mobile-server-list{display:flex;flex-direction:column;gap:12px;padding:0 12px 12px}
  .pitays-customer-shell .customer-mobile-server-card{
    padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--bg-soft);
  }
  .pitays-customer-shell .customer-mobile-server-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
  .pitays-customer-shell .customer-mobile-server-id{font-size:12px;color:var(--muted);font-weight:700;margin-bottom:4px}
  .pitays-customer-shell .customer-mobile-server-card h3{margin:0;font-size:20px;line-height:1.1;color:var(--text);word-break:break-word}
  .pitays-customer-shell .customer-mobile-server-card p{margin:6px 0 0;font-size:12px;color:var(--muted)}
  .pitays-customer-shell .customer-state{font-size:11px;padding:7px 10px;white-space:nowrap;border-radius:999px}
  .pitays-customer-shell .customer-mobile-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}
  .pitays-customer-shell .customer-mobile-metrics>div{padding:10px;border-radius:14px;background:var(--panel)}
  .pitays-customer-shell .customer-mobile-metrics span{display:block;font-size:11px;color:var(--muted);margin-bottom:6px}
  .pitays-customer-shell .customer-mobile-metrics strong{display:block;font-size:14px;color:var(--text);word-break:break-word}
  .pitays-customer-shell .customer-mobile-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
  .pitays-customer-shell .customer-mobile-actions .customer-btn{justify-content:center;min-height:42px;padding:0 10px;border-radius:14px;font-size:12px;font-weight:700;background:var(--panel)}
  .pitays-customer-shell .customer-mobile-actions .customer-btn.primary{background:var(--orange);border-color:var(--orange);color:#fff}
  .pitays-customer-shell .customer-mobile-actions .customer-btn:nth-child(3):last-child,
  .pitays-customer-shell .customer-mobile-actions .customer-btn:nth-child(5):last-child{grid-column:1/-1}

  .pitays-customer-shell .customer-topbar{
    padding:12px 14px;display:flex;align-items:center;justify-content:space-between;
  }
  .pitays-customer-shell .customer-topbar-left strong{display:block;font-size:15px;color:var(--text);max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .pitays-customer-shell .customer-topbar-left span{display:block;font-size:11px;color:var(--muted);margin-top:2px}
  .pitays-customer-shell .customer-topbar-actions{gap:8px}
  .pitays-customer-shell .customer-logout-button,.pitays-customer-shell .theme-toggle{width:42px;min-width:42px;padding:0;justify-content:center}
  .pitays-customer-shell .theme-toggle [data-theme-label]{display:none}
  .pitays-customer-shell .customer-bottom-nav{
    left:10px;right:10px;bottom:10px;border-radius:20px;padding:8px;gap:6px;
  }
  .pitays-customer-shell .customer-bottom-nav a{min-height:58px;font-size:11px}
  .pitays-customer-shell .customer-bottom-nav a span:last-child{line-height:1.1}
  .pitays-customer-shell .customer-bottom-nav-icon{font-size:19px}

  .pitays-customer-shell .customer-page-head-actions{flex-direction:column;align-items:flex-start}
  .pitays-customer-shell .customer-detail-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .pitays-customer-shell .customer-detail-actions .customer-btn{justify-content:center;min-height:42px;border-radius:14px;font-size:12px}
  .pitays-customer-shell .customer-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:8px}
  .pitays-customer-shell .customer-resource-grid>div{padding:12px;border-radius:14px;background:var(--bg-soft);border:1px solid var(--line)}
  .pitays-customer-shell .customer-resource-grid strong{font-size:20px}
  .pitays-customer-shell .customer-info-list{padding:8px 14px 14px}
  .pitays-customer-shell .customer-info-list>div{display:grid;grid-template-columns:1fr;gap:4px;padding:10px 0}
  .pitays-customer-shell .customer-info-list span,.pitays-customer-shell .customer-info-list strong{font-size:12px}
}

@media (max-width:460px){
  .pitays-customer-shell .customer-mobile-metrics{grid-template-columns:1fr}
  .pitays-customer-shell .customer-mobile-actions{grid-template-columns:1fr}
  .pitays-customer-shell .customer-stat-grid{grid-template-columns:1fr}
  .pitays-customer-shell .customer-topbar-left strong{max-width:140px;font-size:14px}
}


/* Faz 12.3 — Müşteri dashboard + ticket premium toparlama */
.customer-head-cta-group{display:flex;gap:10px;flex-wrap:wrap}
.customer-kpi-grid small{display:block;color:var(--muted);margin-top:6px;font-size:12px}
.customer-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:18px}
.customer-quick-card{display:flex;flex-direction:column;gap:6px;padding:18px 20px;border-radius:22px;text-decoration:none;color:var(--text);background:var(--panel);border:1px solid var(--line);box-shadow:0 16px 40px rgba(15,23,42,.05)}
.customer-quick-card .icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:color-mix(in srgb, var(--blue) 16%, var(--panel));color:var(--blue);font-size:20px}
.customer-quick-card strong{font-size:18px;color:var(--text)}
.customer-quick-card small{color:var(--muted);font-size:13px}
.customer-quick-card.is-accent{background:linear-gradient(135deg,color-mix(in srgb, var(--orange) 9%, var(--panel)),var(--panel))}
.customer-server-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:0 18px 18px}
.customer-server-card-grid.compact{padding:0}
.customer-server-card{padding:18px;border-radius:22px;border:1px solid var(--line);background:linear-gradient(180deg,color-mix(in srgb, var(--panel) 94%, transparent),var(--panel));box-shadow:0 18px 42px rgba(15,23,42,.05)}
.customer-server-card.simple{box-shadow:0 12px 30px rgba(15,23,42,.05)}
.customer-server-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.customer-server-id{font-size:12px;color:var(--muted);font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.customer-server-card h3{margin:6px 0 0;font-size:24px;line-height:1.05;color:var(--text)}
.customer-server-card p{margin:7px 0 0;font-size:13px;color:var(--muted)}
.customer-server-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
.customer-server-card.simple .customer-server-meta{grid-template-columns:repeat(4,minmax(0,1fr))}
.customer-server-meta>div,.metric-pill{padding:12px 13px;border-radius:16px;background:var(--bg-soft);border:1px solid color-mix(in srgb, var(--line) 86%, transparent)}
.customer-server-meta span,.metric-pill span{display:block;color:var(--muted);font-size:11px;margin-bottom:6px}
.customer-server-meta strong,.metric-pill strong{display:block;color:var(--text);font-size:15px;line-height:1.3;word-break:break-word}
.customer-server-metric-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.customer-server-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.customer-server-actions .customer-btn{min-height:42px;border-radius:14px}
.customer-ticket-cta-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;margin-bottom:18px;border-radius:22px;border:1px solid var(--line);background:linear-gradient(135deg,color-mix(in srgb, var(--orange) 8%, var(--panel)),var(--panel));box-shadow:0 16px 38px rgba(15,23,42,.05)}
.customer-ticket-cta-card strong{display:block;font-size:20px;color:var(--text)}
.customer-ticket-cta-card p{margin:6px 0 0;color:var(--muted)}
.customer-request-stats.premium{margin-bottom:18px}
.customer-ticket-card-list{display:grid;gap:14px;padding:18px}
.customer-ticket-card-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;padding:18px 20px;text-decoration:none;background:var(--bg-soft);border:1px solid var(--line);border-radius:20px;color:var(--text);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.customer-ticket-card-row:hover{transform:translateY(-2px);border-color:color-mix(in srgb, var(--orange) 30%, var(--line));box-shadow:0 16px 30px rgba(15,23,42,.06)}
.ticket-card-topline{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-bottom:8px}
.ticket-card-main strong{display:block;font-size:18px;color:var(--text)}
.ticket-card-main p{margin:8px 0 0;color:var(--muted);font-size:13px}
.ticket-no,.ticket-type{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;background:color-mix(in srgb, var(--orange) 10%, var(--panel));color:var(--orange);font-size:12px;font-weight:800}
.ticket-card-side{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:10px}
.ticket-card-side small{color:var(--muted);font-size:12px}
.ticket-card-side b{color:var(--blue);font-size:13px}
.customer-ticket-fab{display:none}
.ticket-modal-dialog.premium{width:min(920px,calc(100vw - 24px));border-radius:28px}
.ticket-modal-form.premium-form{display:grid;gap:16px}
.ticket-dual-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ticket-thread-head .customer-ticket-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.customer-ticket-grid.modern{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.58fr);gap:16px}
.modern-thread .ticket-thread{padding:18px 18px 6px;display:flex;flex-direction:column;gap:14px}
.modern-reply{padding:16px 18px 18px}
.modern-info .ticket-links strong{max-width:170px}
.ticket-message.customer .ticket-message-avatar{background:color-mix(in srgb, var(--blue) 18%, var(--panel));color:var(--blue)}
.ticket-message.customer .ticket-message-body{background:color-mix(in srgb, var(--blue) 5%, var(--panel))}
.ticket-message.staff .ticket-message-body{background:color-mix(in srgb, var(--orange) 5%, var(--panel))}
.customer-bottom-nav-badge{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb, var(--panel-strong) 75%, transparent);border:1px solid color-mix(in srgb, var(--line) 82%, transparent);font-size:17px;line-height:1}
.customer-bottom-nav a.active .customer-bottom-nav-badge{background:color-mix(in srgb, var(--orange) 14%, var(--panel));border-color:color-mix(in srgb, var(--orange) 36%, var(--line));color:var(--orange)}
.customer-bottom-nav a span:last-child{font-weight:800}

@media (max-width:980px){
  .customer-server-card-grid,.customer-ticket-grid.modern,.ticket-dual-grid{grid-template-columns:1fr}
}

@media (max-width:780px){
  .pitays-customer-shell .customer-page-head.customer-page-head-actions{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
  .pitays-customer-shell .customer-head-cta-group,.pitays-customer-shell .customer-page-head.customer-page-head-actions>.customer-btn{width:100%}
  .pitays-customer-shell .customer-head-cta-group .customer-btn,.pitays-customer-shell .customer-page-head.customer-page-head-actions>.customer-btn{justify-content:center;width:100%}
  .pitays-customer-shell .customer-quick-grid,.pitays-customer-shell .customer-server-card-grid,.pitays-customer-shell .ticket-dual-grid{grid-template-columns:1fr}
  .pitays-customer-shell .customer-server-card-grid{padding:0 12px 12px}
  .pitays-customer-shell .customer-server-card{padding:16px;border-radius:20px}
  .pitays-customer-shell .customer-server-card h3{font-size:22px}
  .pitays-customer-shell .customer-server-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pitays-customer-shell .customer-server-card.simple .customer-server-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pitays-customer-shell .customer-server-metric-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pitays-customer-shell .customer-server-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .pitays-customer-shell .customer-server-actions .customer-btn{width:100%;justify-content:center;font-size:12px}
  .pitays-customer-shell .customer-ticket-cta-card{flex-direction:column;align-items:flex-start;padding:16px 16px 18px}
  .pitays-customer-shell .customer-ticket-cta-card .customer-btn{width:100%;justify-content:center}
  .pitays-customer-shell .customer-request-stats.premium{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .pitays-customer-shell .customer-ticket-card-list{padding:12px}
  .pitays-customer-shell .customer-ticket-card-row{grid-template-columns:1fr;gap:12px;padding:16px}
  .pitays-customer-shell .ticket-card-side{align-items:flex-start}
  .pitays-customer-shell .ticket-card-topline{align-items:flex-start;flex-direction:column}
  .pitays-customer-shell .customer-ticket-fab{position:fixed;right:18px;bottom:98px;z-index:72;display:inline-grid;place-items:center;width:56px;height:56px;border-radius:50%;border:none;background:linear-gradient(135deg,var(--orange),#ff9d47);color:#fff;font-size:32px;box-shadow:0 18px 36px rgba(255,106,0,.32)}
  .pitays-customer-shell .ticket-modal-dialog.premium{width:min(100vw - 18px,680px);max-height:calc(100vh - 18px);overflow:auto;border-radius:24px}
  .pitays-customer-shell .customer-ticket-grid.modern{grid-template-columns:1fr}
  .pitays-customer-shell .customer-ticket-head-actions{width:100%;display:flex;flex-wrap:wrap}
  .pitays-customer-shell .modern-thread .ticket-thread{padding:14px 14px 2px;max-height:none}
  .pitays-customer-shell .modern-reply{padding:14px}
  .pitays-customer-shell .modern-info .ticket-links{padding:8px 14px 14px}
  .pitays-customer-shell .customer-topbar{min-height:66px;padding:10px 12px}
  .pitays-customer-shell .customer-topbar-left strong{max-width:150px;font-size:14px}
  .pitays-customer-shell .customer-avatar,.pitays-customer-shell .customer-logout-button,.pitays-customer-shell .theme-toggle{width:40px;height:40px;min-width:40px;border-radius:13px}
  .pitays-customer-shell .customer-bottom-nav{left:12px;right:12px;bottom:12px;padding:8px;border-radius:24px;gap:8px}
  .pitays-customer-shell .customer-bottom-nav a{min-height:62px;padding:8px 4px;gap:6px}
  .pitays-customer-shell .customer-bottom-nav-badge{width:36px;height:36px;border-radius:13px}
}

@media (max-width:460px){
  .pitays-customer-shell .customer-request-stats.premium,
  .pitays-customer-shell .customer-server-meta,
  .pitays-customer-shell .customer-server-card.simple .customer-server-meta,
  .pitays-customer-shell .customer-server-actions,
  .pitays-customer-shell .customer-server-metric-strip{grid-template-columns:1fr}
  .pitays-customer-shell .customer-ticket-fab{bottom:92px}
}


/* Faz 12.4 — Müşteri buton okunabilirliği / kontrast düzeltmesi */
.pitays-customer-shell .customer-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:42px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:var(--panel);
  color:var(--text) !important;
  text-decoration:none !important;
  font-weight:800;
  line-height:1.2;
  opacity:1 !important;
  -webkit-text-fill-color:currentColor;
}
.pitays-customer-shell .customer-btn:hover{
  color:var(--text) !important;
  border-color:color-mix(in srgb, var(--orange) 32%, var(--line));
  background:color-mix(in srgb, var(--orange) 5%, var(--panel));
}
.pitays-customer-shell .customer-btn.primary,
.pitays-customer-shell button.customer-btn.primary,
.pitays-customer-shell a.customer-btn.primary{
  background:linear-gradient(135deg,#ff6a00,#ff9340) !important;
  border-color:#ff6a00 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  text-shadow:0 1px 1px rgba(0,0,0,.08);
  box-shadow:0 10px 24px rgba(255,106,0,.18);
}
.pitays-customer-shell .customer-btn.primary:hover{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  filter:brightness(1.03);
}
.pitays-customer-shell .customer-btn:disabled{
  opacity:.55 !important;
  cursor:not-allowed;
}

/* Ticket CTA ve modal aksiyonları */
.pitays-customer-shell .customer-ticket-cta-card .customer-btn.primary,
.pitays-customer-shell .ticket-modal-actions .customer-btn.primary,
.pitays-customer-shell .ticket-reply-actions .customer-btn.primary,
.pitays-customer-shell .customer-ticket-fab{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
.pitays-customer-shell .ticket-modal-actions .customer-btn:not(.primary),
.pitays-customer-shell .customer-server-actions .customer-btn:not(.primary){
  background:var(--panel) !important;
  color:var(--text) !important;
  -webkit-text-fill-color:var(--text) !important;
}

/* Sanal sunucu aksiyonlarının her temada okunması */
.pitays-customer-shell .customer-server-actions .customer-btn{
  min-height:44px;
  border:1px solid var(--line);
  font-size:12px;
  font-weight:800;
}
.pitays-customer-shell .customer-server-actions button.customer-btn[data-action="stop"]{
  color:#b42318 !important;
  -webkit-text-fill-color:#b42318 !important;
  background:color-mix(in srgb,#ef4444 7%,var(--panel)) !important;
  border-color:color-mix(in srgb,#ef4444 24%,var(--line)) !important;
}
.pitays-customer-shell .customer-server-actions button.customer-btn[data-action="start"]{
  color:#067647 !important;
  -webkit-text-fill-color:#067647 !important;
  background:color-mix(in srgb,#22c55e 7%,var(--panel)) !important;
  border-color:color-mix(in srgb,#22c55e 24%,var(--line)) !important;
}
.pitays-customer-shell .customer-server-actions button.customer-btn[data-action="reboot"]{
  color:#175cd3 !important;
  -webkit-text-fill-color:#175cd3 !important;
  background:color-mix(in srgb,#3b82f6 7%,var(--panel)) !important;
  border-color:color-mix(in srgb,#3b82f6 24%,var(--line)) !important;
}

html[data-theme="dark"] .pitays-customer-shell .customer-server-actions button.customer-btn[data-action="stop"]{
  color:#ff8d87 !important;
  -webkit-text-fill-color:#ff8d87 !important;
}
html[data-theme="dark"] .pitays-customer-shell .customer-server-actions button.customer-btn[data-action="start"]{
  color:#6ce9a6 !important;
  -webkit-text-fill-color:#6ce9a6 !important;
}
html[data-theme="dark"] .pitays-customer-shell .customer-server-actions button.customer-btn[data-action="reboot"]{
  color:#84adff !important;
  -webkit-text-fill-color:#84adff !important;
}

/* Mobil alt menü metin kontrastı */
.pitays-customer-shell .customer-bottom-nav a{
  color:var(--text-soft) !important;
  -webkit-text-fill-color:var(--text-soft) !important;
}
.pitays-customer-shell .customer-bottom-nav a.active{
  color:#ff6a00 !important;
  -webkit-text-fill-color:#ff6a00 !important;
}
.pitays-customer-shell .customer-bottom-nav a.is-disabled{
  color:var(--muted) !important;
  -webkit-text-fill-color:var(--muted) !important;
}

@media (max-width:780px){
  .pitays-customer-shell .customer-ticket-cta-card .customer-btn,
  .pitays-customer-shell .customer-page-head-actions .customer-btn{
    width:100%;
  }
  .pitays-customer-shell .customer-server-actions .customer-btn{
    width:100%;
    min-height:46px;
  }
}


/* Faz 12.5 — Mobil ana sayfa dönüşü ve ticket CTA sadeleştirme */
@media (max-width:780px){
  .pitays-customer-shell .customer-bottom-nav{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:5px;
  }
  .pitays-customer-shell .customer-bottom-nav a{
    min-width:0;
    min-height:60px;
    padding:7px 2px;
  }
  .pitays-customer-shell .customer-bottom-nav a span:last-child{
    font-size:10px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:100%;
  }
  .pitays-customer-shell .customer-bottom-nav-badge{
    width:34px;
    height:34px;
  }
}

@media (max-width:390px){
  .pitays-customer-shell .customer-bottom-nav{
    left:8px;
    right:8px;
    bottom:8px;
    padding:7px 6px;
  }
  .pitays-customer-shell .customer-bottom-nav a span:last-child{
    font-size:9px;
  }
}
