/* Goknix WHMCS kopru stilleri
   Twenty-One (Bootstrap 4) bilesenlerini ana sitedeki panel tasarimina (gx-panel.css) esler.
   Kapsam: body.pn (giris yapilmis musteri paneli). */

/* ---------- Taban ---------- */
body.pn .pn-side :is(p, h1, h2, h3, ul),
body.pn .pn-top :is(p, h1, h2, h3, ul),
body.pn :is(.km, .iv, .sp) :is(p, h1, h2, h3, h4, ul),
body.pn .pn-band :is(p, h1) { margin: 0; }
body.pn .pn-app a:hover { text-decoration: none; }
body.pn .pn-app code { color: inherit; font-size: inherit; word-break: normal; }
body.pn :is(.iv-tools, .sp-filters) label { margin-bottom: 0; }
body.pn :is(.iv-table, .sp-table) th { text-align: left; }
body.pn img, body.pn svg { vertical-align: middle; }
body.pn .gx-wh { color: var(--text-2); font-size: 15px; }
body.pn .gx-wh :is(h1, h2, h3, h4, h5) { color: var(--pn-ink); font-family: "Plus Jakarta Sans", var(--font); font-weight: 800; letter-spacing: -.02em; }
body.pn .gx-wh a:not(.btn):not(.ov-btn):not(.list-group-item):not(.nav-link):not(.gx-auth a) { color: var(--pn-blue); }

/* ---------- Kabuk ekleri ---------- */
.pn-rail-bottom .pn-logout { display: block; }
.pn-admin-back { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid #f3c48f; border-radius: 8px; background: #fff6ea; color: #8a4a06 !important; font-size: 13px; font-weight: 600; }
.pn-admin-back:hover { background: #ffedd5; }
.pn-notif { display: block; color: inherit; }
.pn-notif p { margin: 0; font-size: 13.5px; color: var(--pn-ink); }
.pn-notif-none { margin: 0; padding: 20px 16px; color: var(--text-3); font-size: 14px; }
.gx-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.gx-pages a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 0 10px; border: 1px solid #d4e2f6; border-radius: 7px; background: #fff; color: var(--pn-ink) !important; font-size: 14px; font-weight: 600; }
.gx-pages a[aria-current="page"] { border-color: var(--pn-blue); background: var(--pn-blue); color: #fff !important; }
.sp-subject.gx-unread { font-weight: 800; }
.sp-subject.gx-unread::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #ff8426; vertical-align: middle; }

/* ---------- Bant alti duzen ---------- */
body.pn .gx-wh > .row { margin-left: 0; margin-right: 0; }
body.pn .gx-wh > .row > [class*="col-"] { padding-left: 0; padding-right: 0; min-width: 0; }
@media (min-width: 992px) { body.pn .gx-wh > .row > .primary-content { padding-left: 14px; } }
body.pn .gx-wh .primary-content { min-width: 0; }
body.pn .gx-wh .row { --bs-gutter: 12px; }

/* ---------- Kartlar ---------- */
body.pn .gx-wh .card { margin-bottom: 12px; border: 1px solid var(--pn-line); border-radius: 10px; background: #fff; box-shadow: none; }
body.pn .gx-wh .card-header, body.pn .gx-wh .card-footer { padding: 12px 14px; background: #fff; border-color: var(--pn-line-2); }
body.pn .gx-wh .card-header { border-radius: 10px 10px 0 0; }
body.pn .gx-wh .card-body { padding: 14px 15px; }
body.pn .gx-wh :is(.card-title, .card-header h3, .card-header .card-title) { margin: 0; color: var(--pn-ink); font: 800 17px/1.3 "Plus Jakarta Sans", var(--font); }
body.pn .gx-wh .card-title i, body.pn .gx-wh .card-header i { color: var(--pn-blue); }
body.pn .gx-wh .bg-white { background: #fff !important; }

/* ---------- Kenar menusu (WHMCS sidebar) -> panel menusu gibi ---------- */
body.pn .gx-wh .sidebar .card { overflow: hidden; }
body.pn .gx-wh .sidebar .card-header { padding: 11px 13px; }
body.pn .gx-wh .sidebar .card-title { font-size: 15px; }
body.pn .gx-wh .sidebar .card-minimise { color: #7a8ba5; }
body.pn .gx-wh .list-group-item { border-color: var(--pn-line-2); color: #4c607d; font: 700 14px "Plus Jakarta Sans", var(--font); }
body.pn .gx-wh .sidebar .list-group-item { padding: 9px 13px; border-left: 0; border-right: 0; }
body.pn .gx-wh .sidebar .list-group-item:hover { background: #f3f7fe; color: #0b3f9e; }
body.pn .gx-wh .sidebar .list-group-item.active { background: #eaf1fe; border-color: var(--pn-line-2); color: #064cbc; }
body.pn .gx-wh .sidebar .list-group-item i { color: #7a8ba5; }
body.pn .gx-wh .sidebar .list-group-item.active i { color: #064cbc; }
body.pn .gx-wh .sidebar .badge { background: var(--pn-pale); color: #395788; }

/* ---------- Dugmeler -> ov-btn ---------- */
body.pn .gx-wh .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 7px 14px; border-radius: 9px; font: 700 14px "Plus Jakarta Sans", var(--font); box-shadow: none !important; }
body.pn .gx-wh .btn-block { display: flex; width: 100%; }
body.pn .gx-wh :is(.btn-sm, .btn-xs) { min-height: 32px; padding: 5px 11px; font-size: 13px; border-radius: 8px; }
body.pn .gx-wh .btn-lg { min-height: 46px; padding: 10px 20px; font-size: 15px; }
body.pn .gx-wh :is(.btn-primary, .btn-success, .btn-info) { background: var(--pn-blue); border-color: var(--pn-blue); color: #fff; }
body.pn .gx-wh :is(.btn-primary, .btn-success, .btn-info):hover { background: #0343c2; border-color: #0343c2; color: #fff; }
body.pn .gx-wh :is(.btn-default, .btn-secondary, .btn-light, .btn-outline-primary, .btn-outline-secondary, .btn-outline-info, .btn-link.btn-default) { background: #fff; border: 1px solid #bcd0f5; color: #0648bd; }
body.pn .gx-wh :is(.btn-default, .btn-secondary, .btn-light, .btn-outline-primary, .btn-outline-secondary, .btn-outline-info):hover { background: var(--pn-pale); color: #0648bd; }
body.pn .gx-wh :is(.btn-danger, .btn-outline-danger), body.pn .gx-btn-danger { background: #fff; border: 1px solid #f2b8b2; color: #a2261b !important; }
body.pn .gx-wh :is(.btn-danger, .btn-outline-danger):hover, body.pn .gx-btn-danger:hover { background: #ffe4e1; }
body.pn .gx-wh .btn-warning { background: #ff8426; border-color: #ff8426; color: #231503; }
body.pn .gx-wh .btn.disabled, body.pn .gx-wh .btn:disabled { opacity: .55; }

/* ---------- Formlar -> iv-tools girdileri ---------- */
body.pn .gx-wh label, body.pn .gx-wh .control-label, body.pn .gx-wh .col-form-label { color: var(--pn-ink); font: 700 13.5px "Plus Jakarta Sans", var(--font); }
body.pn .gx-wh :is(.form-control, .custom-select, select.form-control) { min-height: 40px; padding: 6px 10px; border: 1px solid #d4e2f6; border-radius: 8px; background-color: #f9fbff; color: var(--pn-ink); font: 500 14.5px var(--font); box-shadow: none; }
body.pn .gx-wh textarea.form-control { min-height: 110px; }
body.pn .gx-wh :is(.form-control, .custom-select):focus { border-color: var(--pn-blue); background-color: #fff; box-shadow: 0 0 0 3px rgba(7, 85, 233, .15); }
body.pn .gx-wh .input-group-text { border-color: #d4e2f6; background: var(--pn-pale); color: #395788; border-radius: 8px; }
body.pn .gx-wh .form-text, body.pn .gx-wh .text-muted { color: var(--pn-muted) !important; }
body.pn .gx-wh .custom-control-label { font-weight: 600; }

/* ---------- Tablolar -> iv-table ---------- */
body.pn .gx-wh .table-container, body.pn .gx-wh .table-responsive { overflow-x: auto; max-width: 100%; border: 1px solid var(--pn-line); border-radius: 8px; background: #fff; }
body.pn .gx-wh .table { margin: 0; color: var(--text-2); font-size: 14px; }
body.pn .gx-wh .table thead th { border-top: 0; border-bottom: 1px solid #e4edf9; background: var(--pn-pale); color: #3a577f; font: 700 13px "Plus Jakarta Sans", var(--font); white-space: nowrap; }
body.pn .gx-wh .table td, body.pn .gx-wh .table th { padding: 10px; border-top-color: #e4edf9; vertical-align: middle; }
body.pn .gx-wh .table-list > tbody > tr:hover > td { background: #f8fbff; }
body.pn .gx-wh .table-list > tbody > tr > td { background: #fff; }
body.pn .gx-wh .dataTables_wrapper { padding: 0; }
body.pn .gx-wh .dataTables_wrapper .listtable { border: 0; }
body.pn .gx-wh .dataTables_filter input, body.pn .gx-wh .dataTables_length select { min-height: 36px; border: 1px solid #d4e2f6; border-radius: 7px; background: #f9fbff; }
body.pn .gx-wh .dataTables_info { color: var(--pn-muted); font-size: 13px; }
body.pn .gx-wh .page-link { border-color: #d4e2f6; color: var(--pn-ink); }
body.pn .gx-wh .page-item.active .page-link { background: var(--pn-blue); border-color: var(--pn-blue); }

/* ---------- Durum etiketleri -> ov-state ---------- */
body.pn .gx-wh :is(.label, .badge) { display: inline-block; padding: 3px 9px; border-radius: 99px; font: 700 12px "Plus Jakarta Sans", var(--font); text-shadow: none; }
body.pn .gx-wh .label.status { background: #eaf0f8; color: #52647e; }
body.pn .gx-wh :is(.status-active, .status-paid, .status-completed, .status-answered, .badge-success) { background: #e2f7ee !important; color: #086b45 !important; }
body.pn .gx-wh :is(.status-pending, .status-unpaid, .status-open, .status-customer-reply, .status-in-progress, .status-on-hold, .status-pending-transfer, .status-pending-registration, .badge-warning) { background: #fff1d5 !important; color: #7d4c00 !important; }
body.pn .gx-wh :is(.status-suspended, .status-terminated, .status-cancelled, .status-overdue, .status-expired, .status-fraud, .status-collections, .badge-danger) { background: #ffe4e1 !important; color: #a2261b !important; }
body.pn .gx-wh :is(.status-closed, .status-refunded, .status-transferred-away, .badge-secondary, .badge-default) { background: #eaf0f8 !important; color: #52647e !important; }
body.pn .gx-wh .badge-info, body.pn .gx-wh .badge-primary { background: var(--pn-pale); color: #064cbc; }

/* ---------- Uyarilar ---------- */
body.pn .gx-wh .alert, body.pn .pn-content > .alert { border: 1px solid var(--pn-line); border-radius: 10px; font-size: 14.5px; }
body.pn .alert-success { background: #e9f8f1; border-color: #bfe8d4; color: #0b5e3e; }
body.pn .alert-info { background: #edf4ff; border-color: #c9dbfb; color: #0b3f9e; }
body.pn .alert-warning { background: #fff6e6; border-color: #f6d9a3; color: #6b4300; }
body.pn .alert-danger, body.pn .alert-error { background: #fff0ee; border-color: #f5c3bc; color: #8e2117; }
body.pn .alert .btn { margin-left: 8px; }

/* ---------- Sekmeler -> ix-tablist ---------- */
body.pn .gx-wh .nav-tabs { gap: 4px; padding: 5px; border: 1px solid var(--pn-line); border-radius: 10px; background: #fff; flex-wrap: nowrap; overflow-x: auto; }
body.pn .gx-wh .nav-tabs .nav-link { padding: 8px 11px; border: 0; border-radius: 7px; color: #2c3f5f; font: 700 14px "Plus Jakarta Sans", var(--font); white-space: nowrap; }
body.pn .gx-wh .nav-tabs .nav-link:hover { background: #f3f7fe; color: #0b3f9e; }
body.pn .gx-wh .nav-tabs .nav-link.active { background: #eaf1fe; color: #064cbc; }
body.pn .gx-wh .responsive-tabs-sm-connector { display: none; }
body.pn .gx-wh .product-details-tab-container, body.pn .gx-wh .tab-content.bg-white { margin-top: 10px; padding: 15px; border: 1px solid var(--pn-line); border-radius: 10px; background: #fff; }

/* ---------- Hizmet detayi ---------- */
.gx-svc-top { margin-bottom: 12px; }
.gx-svc-top .ix-card-h h2 { font-size: 22px; }
.gx-svc-sub { margin: 3px 0 0; color: var(--pn-muted); font-size: 14px; }
.gx-svc-sub code { font-family: var(--mono); color: var(--pn-ink); }
.gx-svc-state { font-size: 13px; padding: 4px 11px; }
.gx-svc-top .ix-stats { margin-top: 6px; }
.gx-svc-top .ix-stat strong { font-size: 18px; }
.gx-svc-top .gx-pm { font-size: 16px; text-transform: none; }
.gx-svc-note { margin: 10px 0 0; padding: 9px 12px; border-radius: 8px; background: #fff0ee; color: #8e2117; font-size: 14px; }
.gx-svc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--pn-line-2); }
.gx-svc-actions .disabled { pointer-events: none; opacity: .55; }
@media (max-width: 900px) { .gx-svc-top .ix-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.pn .gx-wh .product-details-tab-container .row { margin-left: 0; margin-right: 0; }
body.pn .gx-wh #domain .row > div:first-child { color: var(--pn-muted); }
/* cPanel modulu kisayollari */
body.pn .gx-wh #cPanelQuickShortcutsPanel .card-body, body.pn .gx-wh .module-client-area { font-size: 14px; }
body.pn .gx-wh #cPanelQuickShortcutsPanel a { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 8px; color: var(--pn-ink) !important; font-weight: 600; }
body.pn .gx-wh #cPanelQuickShortcutsPanel a:hover { background: #f3f7fe; }

/* ---------- Destek talebi goruntuleme ---------- */
body.pn .gx-wh .ticket-reply { border: 1px solid var(--pn-line); border-radius: 10px; overflow: hidden; }
body.pn .gx-wh .ticket-reply .posted-by { background: #f8fbff; border-bottom: 1px solid var(--pn-line-2); }
body.pn .gx-wh .ticket-reply.staff { border-color: #bcd0f5; }
body.pn .gx-wh .ticket-reply.staff .posted-by { background: #eaf1fe; }
body.pn .gx-wh .ticket-number { color: var(--pn-muted); font-family: var(--mono); }

/* ---------- Bilgi tabani / duyurular / indirmeler ---------- */
body.pn .gx-wh .kb-category, body.pn .gx-wh .announcement-single { border-color: var(--pn-line); border-radius: 10px; }

/* ---------- Mobil ---------- */
@media (max-width: 575px) {
  body.pn .gx-wh .card-body { padding: 12px; }
  body.pn .gx-wh .btn { white-space: normal; }
}

/* ---------- Giris yapilmamis sayfalar (ana site ust menusu + alt bilgi) ---------- */
body.gx-pub { background: var(--bg-2); }
body.gx-pub :is(.gxh, .gxc-drawer, .gxc-ftr) a:hover { text-decoration: none; }
body.gx-pub :is(.gxh, .gxc-drawer, .gxc-ftr) :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
body.gx-pub :is(.gxh, .gxc-drawer, .gxc-ftr) :is(p, h2, h3, h4) { margin: 0; }
body.gx-pub :is(.gxh, .gxc-drawer, .gxc-ftr) img { vertical-align: middle; }
body.gx-pub .gx-pub-main { padding: 22px 0 44px; min-height: 52vh; }
body.gx-pub .gx-pub-head .breadcrumb { margin: 0 0 12px; padding: 0; background: none; font-size: 13.5px; }
body.gx-pub .gx-pub-head .breadcrumb-item.active { color: var(--pn-ink); font-weight: 600; }
body.gx-pub .gx-wh > .row > .primary-content > :is(h1, h2):first-child { margin-bottom: 12px; }
/* Giris ve kayit formlari ortali kart */
body.gx-pub :is(.login-form, .logincontainer) { margin: 0 auto; }
body.gx-pub #main-body, body.gx-pub .main-content { background: none; }

/* ---------- cPanel hizmet sayfasi ---------- */
.gx-svc-meta { margin: 8px 0 0; color: var(--pn-muted); font-size: 12.5px; }
.gx-cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.gx-cp-grid a { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 9px 11px; border: 1px solid var(--pn-line); border-radius: 9px; background: #fff; color: var(--pn-ink) !important; font: 700 13.5px/1.25 "Plus Jakarta Sans", var(--font); }
.gx-cp-grid a:hover { border-color: #8bb2f2; background: #f5f9ff; }
.gx-cp-grid img { flex: none; width: 32px; height: 32px; object-fit: contain; }
body.pn .gx-wh .gx-cp-extras .card { height: calc(100% - 12px); }
/* Metin duzenleyici araclari (destek yaniti) kucuk kalsin */
body.pn .gx-wh :is(.md-editor, .btn-toolbar, .editor-toolbar) .btn { min-height: 30px; padding: 3px 8px; border-radius: 6px; font-size: 13px; }
/* Liste sayfalari: orta genislikte yardim kutusu tablonun altina insin, tablo kesilmesin */
@media (max-width: 1279px) { body.pn .sp-layout { grid-template-columns: minmax(0, 1fr); } }

/* Giris, kayit ve sifre sifirlama: ana sitenin kendi sayfa duzeni (gx-auth.css) */
body.gx-pub:is(.gx-page-login, .gx-page-clientregister, .gx-page-password-reset-container) .gx-pub-head { display: none; }
body.gx-pub:is(.gx-page-login, .gx-page-clientregister, .gx-page-password-reset-container) .gx-pub-main { padding-top: 0; }
body.pn .gx-wh .gx-auth legend { width: auto; margin-bottom: 0; font-size: inherit; }
body.pn .gx-wh .gx-auth label { margin-bottom: 0; }
body.pn .gx-wh .gx-auth .gx-captcha { margin: 6px 0 12px; }
body.pn .gx-wh .gx-auth .gx-captcha .row { margin: 0; }
body.pn .gx-wh .gx-auth .gx-pw-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 8px; }
body.pn .gx-wh .gx-auth .password-strength-meter { flex: 1 1 220px; }
body.pn .gx-wh .gx-auth .password-strength-meter .progress { height: 6px; border-radius: 99px; background: #e6edf8; }
body.pn .gx-wh .gx-auth .password-strength-meter .pw-hint { margin: 6px 0 0; }
body.pn .gx-wh .gx-auth .gx-gen { padding: 7px 12px; border: 1px solid #bcd0f5; border-radius: 8px; background: #fff; color: #0648bd; font: 700 13px "Plus Jakarta Sans", var(--font); cursor: pointer; }
body.pn .gx-wh .gx-auth .gx-gen:hover { background: #edf4ff; }
body.pn .gx-wh .gx-auth .gx-cf select, body.pn .gx-wh .gx-auth .gx-cf input, body.pn .gx-wh .gx-auth .gx-cf textarea { width: 100%; }
body.pn .gx-wh .gx-auth .gx-help { display: block; margin-top: 4px; color: var(--pn-muted); font-size: 12px; }
body.pn .gx-wh .gx-auth .gx-reg-errors ul { margin: 6px 0 0; padding-left: 18px; }
body.pn .gx-wh .gx-auth .iti { width: 100%; }
body.pn .gx-wh .gx-auth .field :is(.iti, .intl-tel-input) input[type=tel] { padding-left: 92px !important; }
body.pn .gx-wh .gx-auth .field .intl-tel-input { display: block; width: 100%; }
body.pn .gx-wh .gx-auth .iti__selected-flag { padding-left: 10px; }

/* yan menu: kartlar her zaman acik, masaustunde kaydirirken sabit */
body.pn .gx-wh .sidebar .collapsable-card-body { display: block !important; }
body.pn .gx-wh .sidebar .card-header { cursor: default; }
body.pn .gx-wh .sidebar .card { border-radius: 14px; border-color: #dbe5f6; box-shadow: 0 6px 18px rgba(8, 29, 75, .05); }
body.pn .gx-wh .sidebar .card-header { background: #fff; border-bottom: 1px solid #eaf0fa; }
body.pn .gx-wh .sidebar .card-title { font-weight: 800; }
body.pn .gx-wh .sidebar .list-group-item { display: flex; align-items: center; font-weight: 600; }
@media (min-width: 992px) {
  body.pn .gx-wh .col-lg-4.col-xl-3 { align-self: flex-start; position: sticky; top: 18px; }
}
