/* ====== Brachobd Generation Frontend ====== */
.gen-wrap { padding: 10px 0 20px; }

/* Banner */
.gen-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 16px;
  padding: 28px 32px;
}

/* Avatar */
.gen-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg,#f7971e,#ffd200);
  color: #1a1a2e; font-size: 1.6rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(255,210,0,.4);
}

/* Stat cards */
.gen-stat {
  border-radius: 14px; padding: 20px 16px; text-align: center; color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,.1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gen-stat:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,.15); }
.gen-stat h4 { font-size: 1.5rem; font-weight: 700; margin: 0; }
.gen-stat small { font-size: .75rem; opacity: .85; }

/* Cards */
.gen-card { border: 1px solid #e9ecef; border-radius: 14px; overflow: hidden; background: #fff; margin-bottom: 12px; }
.gen-card-hd { background: #f8f9fa; border-bottom: 1px solid #e9ecef; padding: 14px 18px; font-weight: 600; font-size: .9rem; }
.gen-card-bd { padding: 18px; }

/* Tree */
.gen-tree { margin: 0; }
.gen-tree-node {
  display: inline-flex; align-items: center; flex-wrap: wrap;
  background: #f8f9fa; border-left: 3px solid #0073aa;
  padding: 8px 14px; border-radius: 0 8px 8px 0; margin: 4px 0;
  font-size: .875rem; cursor: default; gap: 6px;
  transition: background .2s ease;
}
.gen-tree-node.gen-tree-root { border-left-color: #ffc107; background: #fff9e6; }
.gen-tree-node.has-kids { cursor: pointer; }
.gen-tree-node.has-kids:hover { background: #e9ecef; }
.gen-tree-children { display: none; margin-top: 4px; }
.gen-tree-children.loaded { display: block; }
.gen-loading { color: #adb5bd; font-size: .8rem; padding: 6px 0; }
.gen-toggle { background: none; border: none; color: #0073aa; cursor: pointer; padding: 0 4px; font-size: .75rem; }
.gen-toggle:hover { color: #005a87; }

/* Balance rows */
.gen-balance-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.gen-balance-row:last-child { border-bottom: none; }

/* Rank Hero */
.gen-rank-hero { padding: 30px; border-radius: 16px; text-align: center; background: #fafafa; }
.gen-rank-hero .rank-icon { font-size: 4rem; }

/* Progress */
.progress { height: 10px; border-radius: 5px; }

/* Tables */
.table thead th { background: #f8f9fa; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .4px; border-bottom: 2px solid #dee2e6; }
.table tbody tr:hover { background: #f8f9ff; }

/* Form inputs */
.form-control:focus, .form-select:focus { border-color: #0073aa; box-shadow: 0 0 0 .2rem rgba(0,115,170,.2); }

/* Nav tabs */
.nav-tabs .nav-link { color: #6c757d; font-weight: 500; border: none; border-bottom: 3px solid transparent; border-radius: 0; padding: 10px 18px; }
.nav-tabs .nav-link.active { color: #0073aa; border-bottom-color: #0073aa; background: none; }
.nav-tabs .nav-link:hover { color: #0073aa; }

/* WooCommerce account nav */
.woocommerce-MyAccount-navigation li a { transition: all .2s ease; }
.woocommerce-MyAccount-navigation li.is-active a { background: linear-gradient(135deg,#0073aa,#005a87); color: #fff !important; border-radius: 6px; }

/* Responsive */
@media (max-width:768px) {
  .gen-banner { padding: 20px 18px; }
  .gen-avatar { width: 54px; height: 54px; font-size: 1.2rem; }
  .gen-stat h4 { font-size: 1.2rem; }
  .gen-card-bd { padding: 14px; }
}
