/* =====================================================================
   Wallet + Profile — page-specific styles
   Layered on top of theme-modern.css and dashboard.css
   ===================================================================== */

/* ---------- Shared hero banner ---------- */
.lc-page-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  background: linear-gradient(135deg, #0f4d27 0%, #1b7a3e 50%, #2da45f 100%);
  border-radius: 18px;
  padding: 28px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: 0 12px 32px rgba(15, 80, 40, .18);
}
.lc-page-hero::before {
  content: ''; position: absolute; inset: -40% -10% auto auto;
  width: 360px; height: 360px;
  background: radial-gradient(circle at center, rgba(255,255,255,.16), transparent 60%);
  pointer-events: none;
}
.lc-page-hero::after {
  content: ''; position: absolute; bottom: -60px; left: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle at center, rgba(255,255,255,.10), transparent 60%);
  pointer-events: none;
}
.lc-page-hero-text { position: relative; z-index: 1; }
.lc-page-hero-eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: .14em;
  opacity: .85; font-weight: 500; margin-bottom: 8px;
}
.lc-page-hero-title {
  font-size: 28px; font-weight: 700; margin: 0 0 6px;
  letter-spacing: -.02em; line-height: 1.15;
}
.lc-page-hero-sub { opacity: .9; font-size: 14px; margin: 0 0 18px; }
.lc-page-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Wallet: balance card ---------- */
.lc-wallet-card {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 22px;
  position: relative;
  z-index: 1;
}
.lc-wallet-label { font-size: 12px; opacity: .85; text-transform: uppercase; letter-spacing: .08em; }
.lc-wallet-amount {
  font-size: 42px; font-weight: 700;
  letter-spacing: -.025em; margin: 6px 0 14px; line-height: 1;
}
.lc-wallet-amount .currency { font-size: 22px; opacity: .85; margin-right: 4px; vertical-align: top; }
.lc-wallet-bars {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 8px;
}
.lc-wallet-bar { font-size: 12px; opacity: .92; }
.lc-wallet-bar small { display: block; opacity: .8; font-size: 11px; }
.lc-wallet-bar strong { font-size: 15px; font-weight: 600; display: block; margin-top: 1px; }
.lc-wallet-id-row {
  margin-top: 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; opacity: .9;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 12px;
}
.lc-copy-id {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.lc-copy-id:hover { background: rgba(255,255,255,.22); }

/* ---------- Wallet: KPI / stat row ---------- */
.lc-wallet-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.lc-wallet-stat {
  background: #fff;
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  padding: 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--lc-shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.lc-wallet-stat:hover { transform: translateY(-2px); box-shadow: var(--lc-shadow); }
.lc-wallet-stat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lc-wallet-stat-icon.green { background: #e8f3ec; color: #1b7a3e; }
.lc-wallet-stat-icon.blue  { background: #dbeafe; color: #2563eb; }
.lc-wallet-stat-icon.red   { background: #fee2e2; color: #dc2626; }
.lc-wallet-stat-icon.amber { background: #fef3c7; color: #b45309; }
.lc-wallet-stat-label { font-size: 11px; color: var(--lc-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.lc-wallet-stat-value { font-size: 18px; font-weight: 700; color: var(--lc-text); margin-top: 1px; }

/* ---------- Wallet: packages grid ---------- */
.lc-pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.lc-pkg {
  border: 1px solid var(--lc-border);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.lc-pkg:hover {
  transform: translateY(-2px);
  border-color: #c5e2cf;
  box-shadow: 0 6px 22px rgba(27,122,62,.10);
}
.lc-pkg.featured {
  border-color: #1b7a3e;
  background: linear-gradient(180deg, #f5fbf7 0%, #fff 60%);
}
.lc-pkg.featured::before {
  content: 'Best Value';
  position: absolute; top: 12px; right: 12px;
  background: #1b7a3e; color: #fff;
  font-size: 10px; font-weight: 600;
  padding: 3px 8px; border-radius: 999px;
  letter-spacing: .04em; text-transform: uppercase;
}
.lc-pkg-name { font-size: 14px; font-weight: 600; color: var(--lc-text); margin-bottom: 8px; }
.lc-pkg-price {
  font-size: 28px; font-weight: 700;
  color: var(--lc-primary-700);
  letter-spacing: -.02em;
}
.lc-pkg-price small { font-size: 12px; color: var(--lc-muted); font-weight: 500; }
.lc-pkg-get {
  font-size: 13px; color: var(--lc-muted);
  margin: 6px 0 14px;
}
.lc-pkg-get strong { color: #1b7a3e; font-weight: 600; }
.lc-pkg-discount {
  display: inline-block;
  font-size: 11px;
  background: #dcfce7;
  color: #166534;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 10px;
}
.lc-pkg-btn {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  background: #1b7a3e;
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s ease;
}
.lc-pkg-btn:hover { background: #166634; }
.lc-pkg.featured .lc-pkg-btn { background: linear-gradient(135deg, #1b7a3e, #2da45f); }

/* ---------- Status pill helpers ---------- */
.lc-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}
.lc-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
}
.lc-status.paid       { background: #dcfce7; color: #166534; }
.lc-status.paid::before       { background: #16a34a; }
.lc-status.pending    { background: #fef3c7; color: #92400e; }
.lc-status.pending::before    { background: #f59e0b; }
.lc-status.failed     { background: #fee2e2; color: #991b1b; }
.lc-status.failed::before     { background: #dc2626; }
.lc-status.completed  { background: #dcfce7; color: #166534; }
.lc-status.completed::before  { background: #16a34a; }
.lc-status.refunded   { background: #ede9fe; color: #5b21b6; }
.lc-status.refunded::before   { background: #8b5cf6; }

/* ---------- Profile: hero card ---------- */
.lc-profile-hero {
  background: #fff;
  border: 1px solid var(--lc-border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
  box-shadow: var(--lc-shadow-sm);
  position: relative;
  overflow: hidden;
}
.lc-profile-hero::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 90px;
  background: linear-gradient(135deg, #0f4d27 0%, #1b7a3e 50%, #2da45f 100%);
  z-index: 0;
}
.lc-profile-hero > * { position: relative; z-index: 1; }
.lc-profile-avatar-wrap {
  position: relative;
  width: 110px; height: 110px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 30px;
}
.lc-profile-avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(15,23,42,.16);
}
.lc-profile-avatar-edit {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--lc-primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: 3px solid #fff;
  transition: background .15s ease, transform .15s ease;
}
.lc-profile-avatar-edit:hover { background: var(--lc-primary-600); transform: scale(1.06); }
.lc-profile-avatar-edit input { display: none; }

.lc-profile-meta { flex: 1; min-width: 0; padding-top: 36px; }
.lc-profile-meta h2 {
  font-size: 22px; font-weight: 700; color: var(--lc-text);
  margin: 0; letter-spacing: -.01em;
}
.lc-profile-meta .lc-role-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  background: var(--lc-primary-soft);
  color: var(--lc-primary-700);
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  margin-left: 8px; vertical-align: middle;
}
.lc-profile-meta .email {
  display: flex; align-items: center; gap: 6px;
  color: var(--lc-muted); font-size: 13px;
  margin-top: 6px;
}
.lc-profile-quick {
  display: flex; gap: 10px; margin-top: 14px;
  flex-wrap: wrap;
}
.lc-profile-quick .lc-info-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 12px;
  color: #374151;
  font-weight: 500;
}
.lc-profile-quick .lc-info-pill i { color: var(--lc-muted); font-size: 11px; }

.lc-profile-reseller {
  background: #fafbfc;
  border: 1px solid var(--lc-border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
  margin-top: 30px;
}
.lc-profile-reseller img {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(15,23,42,.10);
}
.lc-profile-reseller .name { font-size: 13px; font-weight: 600; color: var(--lc-text); }
.lc-profile-reseller .lbl { font-size: 11px; color: var(--lc-muted); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Profile: tabs ---------- */
.lc-tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--lc-border);
  margin-bottom: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.lc-tab {
  padding: 11px 16px;
  background: none; border: none;
  font-size: 14px; font-weight: 500;
  color: var(--lc-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
  display: inline-flex; align-items: center; gap: 7px;
}
.lc-tab:hover { color: var(--lc-text); }
.lc-tab.active {
  color: var(--lc-primary-700);
  border-bottom-color: var(--lc-primary);
}
.lc-tab i { font-size: 13px; }
.lc-tab-pane { display: none; }
.lc-tab-pane.active { display: block; animation: lc-fade-in .2s ease; }
@keyframes lc-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Form rows ---------- */
.lc-field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 16px;
}
.lc-field { display: flex; flex-direction: column; gap: 6px; }
.lc-field label {
  font-size: 12px; color: var(--lc-muted);
  font-weight: 500; text-transform: uppercase;
  letter-spacing: .04em;
}
.lc-field input,
.lc-field select,
.lc-field textarea {
  padding: 10px 12px;
  border: 1px solid var(--lc-border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: var(--lc-text);
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lc-field input:focus,
.lc-field select:focus,
.lc-field textarea:focus {
  border-color: var(--lc-primary);
  box-shadow: 0 0 0 3px rgba(27,122,62,.12);
  outline: none;
}
.lc-field input[readonly] {
  background: #fafbfc;
  color: var(--lc-muted);
  cursor: not-allowed;
}
.lc-field-actions {
  display: flex; gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* ---------- Vendor pricing cards ---------- */
.lc-vp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.lc-vp {
  background: #fff;
  border: 1px solid var(--lc-border);
  border-radius: 14px;
  padding: 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.lc-vp:hover { transform: translateY(-2px); box-shadow: var(--lc-shadow); }
.lc-vp-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.lc-vp-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--lc-primary-soft);
  color: var(--lc-primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.lc-vp-name { font-size: 14px; font-weight: 600; color: var(--lc-text); }
.lc-vp-price-row {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 10px;
}
.lc-vp-price {
  font-size: 22px; font-weight: 700; color: var(--lc-primary-700);
  letter-spacing: -.02em;
}
.lc-vp-price small { font-size: 11px; color: var(--lc-muted); font-weight: 500; }
.lc-vp-count {
  font-size: 11px; font-weight: 600;
  background: #dbeafe; color: #1e40af;
  padding: 3px 9px; border-radius: 999px;
}
.lc-vp-bar { height: 5px; background: #f3f4f6; border-radius: 999px; overflow: hidden; }
.lc-vp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1b7a3e, #2da45f);
  border-radius: 999px;
}
.lc-vp-bar-lbl { font-size: 11px; color: var(--lc-muted); margin-top: 4px; }

/* ---------- Transaction-ID receipt link ---------- */
.lc-tx-link {
  transition: color .12s ease, transform .12s ease;
  word-break: break-all;
}
.lc-tx-link:hover {
  color: #115028 !important;
  text-decoration: underline !important;
}
.lc-tx-link:hover i { opacity: 1 !important; }
.lc-tx-link:active { transform: translateY(1px); }

/* ---------- Vendor pricing — tabular ---------- */
.lc-vp-table tbody tr { transition: background .12s ease; }
.lc-vp-table tbody tr.vp-dirty { background: #fffbea; }
.lc-vp-table tbody tr.vp-dirty:hover { background: #fff5d3; }
.lc-vp-table tfoot td {
  background: #f7f8fa;
  border-top: 2px solid var(--lc-border);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--lc-muted);
}
.lc-vp-table tfoot td i { color: var(--lc-muted); margin-right: 4px; }

.lc-vp-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--lc-border);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  width: 100%;
  max-width: 170px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.lc-vp-input-wrap:focus-within {
  border-color: var(--lc-primary);
  box-shadow: 0 0 0 3px rgba(27, 122, 62, .12);
}
.lc-vp-input-prefix {
  padding: 8px 10px;
  background: #f7f8fa;
  color: var(--lc-muted);
  font-weight: 600;
  font-size: 14px;
  border-right: 1px solid var(--lc-border);
}
.vp-price-input {
  flex: 1;
  border: 0 !important;
  outline: none !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--lc-text) !important;
  background: transparent !important;
  width: 100%;
  min-width: 0;
  -moz-appearance: textfield;
}
.vp-price-input::-webkit-outer-spin-button,
.vp-price-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vp-price-input:disabled { color: var(--lc-muted) !important; background: #f7f8fa !important; }

.lc-pill.warn {
  background: #fef3c7;
  color: #92400e;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---------- Modals ---------- */
.modal-content {
  border-radius: 16px !important;
  border: none !important;
  box-shadow: var(--lc-shadow-lg) !important;
}
.modal-header {
  border-bottom: 1px solid var(--lc-border) !important;
  padding: 18px 22px !important;
}
.modal-header .modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--lc-text);
}
.modal-body { padding: 20px 22px !important; }
.modal-footer {
  border-top: 1px solid var(--lc-border) !important;
  padding: 14px 22px !important;
}

/* ---------- Filter row ---------- */
.lc-filter-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: end;
  background: #fafbfc;
  border: 1px solid var(--lc-border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}
.lc-filter-row .lc-field { flex: 1; min-width: 180px; }

/* ---------- Empty state ---------- */
.lc-empty-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--lc-muted);
}
.lc-empty-state i { font-size: 42px; opacity: .3; margin-bottom: 10px; }
.lc-empty-state h5 { color: var(--lc-text); font-size: 16px; margin: 6px 0; font-weight: 600; }
.lc-empty-state p { font-size: 13px; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .lc-page-hero { grid-template-columns: 1fr; padding: 24px; }
  .lc-wallet-stats { grid-template-columns: repeat(2, 1fr); }
  .lc-field-grid { grid-template-columns: 1fr; }
  .lc-profile-hero { flex-direction: column; align-items: flex-start; padding: 20px; }
  .lc-profile-hero::before { height: 70px; }
  .lc-profile-avatar-wrap, .lc-profile-meta, .lc-profile-reseller { margin-top: 14px; }
  .lc-profile-meta { padding-top: 0; }
}
@media (max-width: 540px) {
  .lc-page-hero { padding: 22px; border-radius: 14px; }
  .lc-page-hero-title { font-size: 22px; }
  .lc-wallet-amount { font-size: 32px; }
  .lc-wallet-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lc-wallet-stat { padding: 12px; }
  .lc-wallet-stat-value { font-size: 16px; }
  .lc-page-hero-actions .lc-btn { flex: 1; justify-content: center; }
  .lc-profile-hero { padding: 16px; }
  .lc-profile-avatar, .lc-profile-avatar-wrap { width: 88px; height: 88px; }
  .lc-tabs { gap: 0; }
  .lc-tab { padding: 10px 12px; font-size: 13px; }
}
