@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --gk-sidebar: #111418;
  --gk-sidebar-2: #1a1d21;
  --gk-active: #2b3035;
  --gk-hover: #212529;
  --gk-content: #f4f6f8;
  --gk-card: #ffffff;
  --gk-text: #2c3338;
  --gk-muted: #6c757d;
  --gk-price: #e74c3c;
  --gk-accent: #ff5a3c;
  --gk-orange: #fd7e14;
  --gk-cyan: #17a2b8;
  --gk-green: #198754;
  --gk-red: #dc3545;
  --gk-yellow: #f1c40f;
  --gk-radius: 12px;
  --gk-sidebar-w: 260px;
  --gk-shadow: 0 4px 16px rgba(17, 20, 24, 0.06);
  --gk-border: #e8ecf0;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body.gk-body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: var(--gk-content);
  color: var(--gk-text);
  font-size: 14px;
}

a { color: inherit; }

img { max-width: 100%; }

/* ---------- Sidebar ---------- */
.gk-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--gk-sidebar-w);
  background: var(--gk-sidebar);
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 1040;
  overflow: hidden;
}

.gk-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 22px 18px;
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gk-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff5a3c, #f1c40f);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.gk-brand-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.gk-brand-sub {
  font-size: 11px;
  color: #9aa3ab;
  font-weight: 500;
}

.gk-nav-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 8px;
}

.gk-nav-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #8b939b;
  padding: 6px 12px 10px;
}

.gk-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #d8dde2;
  text-decoration: none;
  font-weight: 500;
  font-size: 13.5px;
  margin-bottom: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.gk-nav-item i {
  font-size: 17px;
  width: 20px;
  text-align: center;
  opacity: 0.9;
}

.gk-nav-item:hover {
  background: var(--gk-hover);
  color: #fff;
}

.gk-nav-item.active {
  background: var(--gk-active);
  color: #fff;
  font-weight: 600;
}

.gk-nav-item .gk-beta {
  margin-left: auto;
  background: #f1c40f;
  color: #1a1d21;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.gk-side-user {
  margin: 12px 14px 16px;
  background: var(--gk-sidebar-2);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gk-side-user img,
.gk-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #2b3035;
}

.gk-side-user .meta { min-width: 0; flex: 1; }

.gk-side-user .name {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gk-side-user .bal {
  font-size: 12px;
  color: #f1c40f;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gk-side-user .bal button {
  border: 0;
  background: transparent;
  color: #9aa3ab;
  padding: 0;
  line-height: 1;
}

.gk-side-user .bal button:hover { color: #fff; }

/* ---------- Main ---------- */
.gk-wrap {
  margin-left: var(--gk-sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.gk-topbar {
  background: #fff;
  border-bottom: 1px solid var(--gk-border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.gk-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--gk-muted);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gk-breadcrumb a { text-decoration: none; color: var(--gk-muted); }
.gk-breadcrumb a:hover { color: var(--gk-text); }
.gk-breadcrumb .current { color: var(--gk-text); font-weight: 600; }
.gk-breadcrumb .sep { color: #c5ccd3; }

.gk-top-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gk-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gk-border);
  background: #fff;
  display: grid;
  place-items: center;
  color: #495057;
  text-decoration: none;
  position: relative;
}

.gk-icon-btn .dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: var(--gk-red);
  border-radius: 50%;
  border: 2px solid #fff;
}

.gk-top-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eef1f4;
}

.gk-content {
  padding: 24px 28px 80px;
  flex: 1;
}

.gk-page-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

/* ---------- Cards ---------- */
.gk-card {
  background: var(--gk-card);
  border-radius: var(--gk-radius);
  box-shadow: var(--gk-shadow);
  border: 1px solid var(--gk-border);
  padding: 20px;
}

.gk-card h2, .gk-card h3, .gk-section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
}

.gk-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 16px;
}

.gk-section-head h2 { margin: 0; font-size: 18px; font-weight: 800; }

.gk-link-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--gk-accent);
  text-decoration: none;
}

/* ---------- Info cards ---------- */
.gk-info {
  background: #fff;
  border-radius: var(--gk-radius);
  box-shadow: var(--gk-shadow);
  padding: 16px 18px;
  border-top: 4px solid #17a2b8;
  height: 100%;
}

.gk-info.warn { border-top-color: #fd7e14; }
.gk-info.danger { border-top-color: #dc3545; }
.gk-info h3 { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.gk-info p { margin: 0; color: var(--gk-muted); font-size: 13px; line-height: 1.55; }

/* ---------- Stats ---------- */
.gk-stat {
  background: #fff;
  border-radius: var(--gk-radius);
  box-shadow: var(--gk-shadow);
  border: 1px solid var(--gk-border);
  border-top: 4px solid var(--gk-cyan);
  padding: 18px 20px;
  height: 100%;
}

.gk-stat.orange { border-top-color: var(--gk-orange); }
.gk-stat.green { border-top-color: var(--gk-green); }
.gk-stat.red { border-top-color: var(--gk-red); }

.gk-stat .lbl {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gk-muted);
  margin-bottom: 6px;
}

.gk-stat .val {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* ---------- Platforms / services ---------- */
.gk-platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: #fff;
  border-radius: var(--gk-radius);
  box-shadow: var(--gk-shadow);
  border: 1px solid var(--gk-border);
  border-top-width: 4px;
  padding: 18px 10px 16px;
  text-decoration: none;
  color: var(--gk-text);
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gk-platform-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(17, 20, 24, 0.1);
  color: var(--gk-text);
}

.gk-platform-card img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.gk-platform-card span { font-weight: 600; font-size: 13px; }

.gk-service-card {
  background: #fff;
  border-radius: var(--gk-radius);
  box-shadow: var(--gk-shadow);
  border: 1px solid var(--gk-border);
  padding: 18px 18px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gk-service-card .title {
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 6px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.gk-service-card .desc {
  color: var(--gk-muted);
  font-size: 12.5px;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 12px;
}

.gk-price {
  color: var(--gk-price);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.gk-price.green { color: var(--gk-green); }

.gk-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--gk-muted);
  margin: 8px 0 14px;
}

.btn-siparis {
  background: var(--gk-accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  padding: 8px 14px;
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.btn-siparis:hover { background: #e44b30; color: #fff; }

.gk-badge-premium {
  background: var(--gk-yellow);
  color: #3d3200;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* chips */
.gk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gk-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--gk-border);
  color: #333;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.gk-chip img { width: 18px; height: 18px; border-radius: 4px; }

.gk-chip:hover { border-color: #cfd6dd; color: #111; }

.gk-chip.active {
  background: #212529;
  color: #fff;
  border-color: #212529;
}

/* ---------- Tables ---------- */
.gk-table-wrap {
  background: #fff;
  border-radius: var(--gk-radius);
  box-shadow: var(--gk-shadow);
  border: 1px solid var(--gk-border);
  overflow: hidden;
}

.gk-table-wrap .table {
  margin: 0;
  font-size: 13px;
  vertical-align: middle;
}

.gk-table-wrap th {
  background: #f8fafb;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c757d;
  font-weight: 700;
  white-space: nowrap;
}

.gk-thumb {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--gk-border);
  cursor: pointer;
}

/* badges */
.gk-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.gk-badge-warning { background: #fff3e0; color: #e65100; }
.gk-badge-success { background: #e8f5e9; color: #1b5e20; }
.gk-badge-danger { background: #fdecea; color: #c62828; }
.gk-badge-info { background: #e3f2fd; color: #1565c0; }
.gk-badge-muted { background: #f1f3f5; color: #495057; }

/* ---------- Wizard ---------- */
.gk-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.gk-step {
  flex: 1;
  min-width: 120px;
  background: #fff;
  border: 1px solid var(--gk-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gk-muted);
}

.gk-step.active {
  background: #212529;
  color: #fff;
  border-color: #212529;
}

.gk-step.done { border-color: #198754; color: #198754; }

.gk-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--gk-border);
}

.gk-summary-row.total {
  border-bottom: 0;
  font-weight: 800;
  font-size: 16px;
}

.gk-summary-row.total span:last-child { color: var(--gk-price); }

/* ---------- Auth ---------- */
body.gk-auth {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, #111418 0%, #1a1d21 45%, #2b3035 100%);
  font-family: Inter, "Segoe UI", sans-serif;
}

.gk-auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gk-auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.gk-auth-card h1 {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
}

.btn-gk {
  background: #111418;
  color: #fff;
  border: 0;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 16px;
}

.btn-gk:hover { background: #000; color: #fff; }

.btn-google {
  border: 1px solid var(--gk-border);
  background: #fff;
  font-weight: 600;
  border-radius: 10px;
}

/* ---------- Account ---------- */
.gk-account-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--gk-text);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}

.gk-account-nav a.active,
.gk-account-nav a:hover {
  background: #f4f6f8;
}

.gk-account-nav a.active { background: #212529; color: #fff; }

.gk-profile-mini {
  text-align: center;
  padding: 18px 12px 8px;
}

.gk-profile-mini img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

/* ---------- Balance ---------- */
.gk-amount-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.gk-amount {
  position: relative;
  border: 1px solid var(--gk-border);
  background: #fff;
  border-radius: 10px;
  padding: 16px 8px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.gk-amount input { display: none; }

.gk-amount.active,
.gk-amount:has(input:checked) {
  background: #212529;
  color: #fff;
  border-color: #212529;
}

.gk-pop {
  position: absolute;
  top: -8px;
  right: -6px;
  background: var(--gk-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
}

.gk-dark-head {
  background: #111418;
  color: #fff;
  border-radius: var(--gk-radius) var(--gk-radius) 0 0;
  padding: 16px 20px;
  font-weight: 700;
}

.gk-dark-head + .gk-card { border-top-left-radius: 0; border-top-right-radius: 0; }

/* ---------- Chat ---------- */
.gk-chat {
  background: #f8fafb;
  border-radius: 12px;
  padding: 16px;
  max-height: 480px;
  overflow-y: auto;
}

.gk-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 13px;
}

.gk-bubble.user {
  margin-left: auto;
  background: #212529;
  color: #fff;
}

.gk-bubble.admin {
  background: #fff;
  border: 1px solid var(--gk-border);
}

/* ---------- FAB ---------- */
.gk-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e74c3c;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(231, 76, 60, 0.45);
  z-index: 1050;
  text-decoration: none;
}

.gk-fab:hover { color: #fff; background: #c0392b; }

/* ---------- Misc ---------- */
.gk-alert-balance {
  background: #e8f5e9;
  color: #1b5e20;
  border: 0;
  border-radius: var(--gk-radius);
  font-weight: 600;
}

.gk-menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 22px;
}

.gk-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1035;
}

.gk-progress { height: 10px; border-radius: 999px; }

.dropdown-menu { border-radius: 12px; box-shadow: var(--gk-shadow); border-color: var(--gk-border); }

.form-control, .form-select {
  border-radius: 10px;
  border-color: #dde3e8;
}

.form-control:focus, .form-select:focus {
  border-color: #adb5bd;
  box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.08);
}

.gk-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--gk-muted);
}

@media (max-width: 1199px) {
  .gk-amount-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
  .gk-sidebar { transform: translateX(-100%); transition: transform 0.2s ease; }
  .gk-sidebar.open { transform: none; }
  .gk-wrap { margin-left: 0; }
  .gk-menu-toggle { display: grid; }
  .gk-overlay.show { display: block; }
  .gk-content { padding: 16px 14px 90px; }
  .gk-topbar { padding: 12px 14px; }
  .gk-amount-grid { grid-template-columns: repeat(2, 1fr); }
}
