/* ==========================================================================
   Carp Tycoon — Pro Carp Community green skin
   Loaded after style.css. Print stays untouched.
   ========================================================================== */

@media screen {

:root,
html[data-theme="light"] {
  --bg: #04150d;
  --bg-2: #071c12;
  --panel: rgba(13, 44, 29, .92);
  --panel-solid: #0d2c1d;
  --panel-2: rgba(27, 69, 48, .86);
  --panel-3: rgba(33, 79, 54, .8);
  --line: rgba(140, 230, 166, .16);
  --line-2: rgba(140, 230, 166, .3);
  --text: #ffffff;
  --muted: #d8ecdd;
  --dim: #a7cbb0;
  --teal: #8ce6a6;
  --cyan: #8ce6a6;
  --green: #8ce6a6;
  --gold: #8ce6a6;
  --grad: linear-gradient(135deg, #57c981 0%, #8ce6a6 55%, #c9f7d5 100%);
  --grad-warm: linear-gradient(135deg, #57c981, #8ce6a6);
  --ring: 0 0 0 3px rgba(140, 230, 166, .25);
  --focus: 0 0 0 3px rgba(140, 230, 166, .3);
  color-scheme: dark;
}

html,
html[data-theme="light"] { background: #04150d !important; }

body,
html[data-theme="light"] body {
  color: #ffffff !important;
  background:
    radial-gradient(1000px 620px at 4% -10%, rgba(87, 201, 129, .16), transparent 62%),
    radial-gradient(820px 560px at 96% 4%, rgba(140, 230, 166, .12), transparent 62%),
    radial-gradient(760px 620px at 62% 108%, rgba(87, 201, 129, .09), transparent 66%),
    #04150d !important;
}

.sidebar,
html[data-theme="light"] .sidebar {
  background: linear-gradient(180deg, rgba(4, 21, 13, .98), rgba(7, 28, 18, .96)) !important;
  border-right-color: rgba(140, 230, 166, .16) !important;
}

.brand,
html[data-theme="light"] .brand { color: #ffffff !important; }

.side-label,
.side-foot,
.card-sub,
.kpi-label,
.kpi-foot,
.metric small,
.muted,
.dim,
small,
html[data-theme="light"] .side-label,
html[data-theme="light"] .side-foot,
html[data-theme="light"] .card-sub,
html[data-theme="light"] .kpi-label,
html[data-theme="light"] .kpi-foot,
html[data-theme="light"] .metric small {
  color: #a7cbb0 !important;
}

.side-link,
html[data-theme="light"] .side-link { color: #d8ecdd !important; }
.side-link:hover,
html[data-theme="light"] .side-link:hover {
  background: rgba(140, 230, 166, .08) !important;
  color: #ffffff !important;
}
.side-link.active,
html[data-theme="light"] .side-link.active {
  background: linear-gradient(90deg, rgba(87, 201, 129, .2), rgba(140, 230, 166, .06)) !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(140, 230, 166, .24) !important;
}
.side-link.active::before,
html[data-theme="light"] .side-link.active::before { background: #8ce6a6 !important; }
.side-link.active .icon,
html[data-theme="light"] .side-link.active .icon { color: #8ce6a6 !important; }

.topbar,
html[data-theme="light"] .topbar {
  background: rgba(4, 21, 13, .86) !important;
  border-bottom-color: rgba(140, 230, 166, .16) !important;
  box-shadow: none !important;
}

h1, h2, h3, h4,
.page-head h1,
.hero h1,
.auth-brand-copy h1,
html[data-theme="light"] .page-head h1,
html[data-theme="light"] .hero h1,
html[data-theme="light"] .auth-brand-copy h1 { color: #ffffff !important; }

a,
html[data-theme="light"] a { color: #8ce6a6 !important; }
a:hover,
html[data-theme="light"] a:hover { color: #c9f7d5 !important; }

.card, .kpi, .metric, .item-row, .side-card, .cost-box, .empty,
html[data-theme="light"] .card,
html[data-theme="light"] .kpi,
html[data-theme="light"] .metric,
html[data-theme="light"] .item-row,
html[data-theme="light"] .side-card,
html[data-theme="light"] .cost-box,
html[data-theme="light"] .empty {
  background: linear-gradient(160deg, rgba(27, 69, 48, .9), rgba(7, 28, 18, .94)) !important;
  border-color: rgba(140, 230, 166, .16) !important;
  color: #ffffff !important;
}

.card-foot,
html[data-theme="light"] .card-foot { background: rgba(4, 21, 13, .4) !important; border-color: rgba(140, 230, 166, .16) !important; }

.hero,
html[data-theme="light"] .hero {
  background:
    radial-gradient(600px 300px at 88% 10%, rgba(140, 230, 166, .12), transparent 60%),
    linear-gradient(120deg, #071c12, #0d2c1d 55%, #1b4530) !important;
  border-color: rgba(140, 230, 166, .24) !important;
}
.hero p,
html[data-theme="light"] .hero p { color: #d8ecdd !important; }
.hero-day,
html[data-theme="light"] .hero-day { color: #8ce6a6 !important; }
.hero-event,
html[data-theme="light"] .hero-event {
  background: rgba(4, 21, 13, .55) !important;
  border-color: rgba(140, 230, 166, .2) !important;
  color: #ffffff !important;
}

.chip, .badge,
html[data-theme="light"] .chip,
html[data-theme="light"] .badge {
  background: rgba(13, 44, 29, .85) !important;
  border-color: rgba(140, 230, 166, .2) !important;
  color: #d8ecdd !important;
}
.coin-chip,
html[data-theme="light"] .coin-chip {
  background: linear-gradient(135deg, rgba(87, 201, 129, .22), rgba(140, 230, 166, .08)) !important;
  border-color: rgba(140, 230, 166, .45) !important;
  color: #ffffff !important;
}
.coin-chip b,
html[data-theme="light"] .coin-chip b { color: #c9f7d5 !important; }

.btn-primary, .btn-gold,
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .btn-gold {
  background: var(--grad) !important;
  color: #04150d !important;
  border-color: transparent !important;
}
.btn-outline,
html[data-theme="light"] .btn-outline {
  background: transparent !important;
  border-color: rgba(140, 230, 166, .5) !important;
  color: #c9f7d5 !important;
}
.btn-outline:hover,
html[data-theme="light"] .btn-outline:hover {
  background: rgba(140, 230, 166, .12) !important;
  color: #ffffff !important;
}
.btn-ghost,
html[data-theme="light"] .btn-ghost {
  background: rgba(140, 230, 166, .08) !important;
  border-color: rgba(140, 230, 166, .2) !important;
  color: #ffffff !important;
}
.side-signout .btn,
html[data-theme="light"] .side-signout .btn {
  background: transparent !important;
  border-color: rgba(140, 230, 166, .32) !important;
  color: #c9f7d5 !important;
}

input, select, textarea,
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  background: #071c12 !important;
  border-color: rgba(140, 230, 166, .24) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
input::placeholder, textarea::placeholder,
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder { color: #a7cbb0 !important; }
select option,
html[data-theme="light"] select option { background: #071c12 !important; color: #ffffff !important; }

.table thead th,
html[data-theme="light"] .table thead th {
  background: #0d2c1d !important;
  color: #c9f7d5 !important;
}
.table tbody tr:hover,
html[data-theme="light"] .table tbody tr:hover { background: rgba(140, 230, 166, .06) !important; }
.table th, .table td,
html[data-theme="light"] .table th,
html[data-theme="light"] .table td { border-bottom-color: rgba(140, 230, 166, .14) !important; }

.bar,
html[data-theme="light"] .bar { background: rgba(4, 21, 13, .6) !important; border-color: rgba(140, 230, 166, .16) !important; }
.bar-fill.gold,
html[data-theme="light"] .bar-fill.gold { background: var(--grad) !important; }

.footer,
html[data-theme="light"] .footer {
  background: rgba(4, 21, 13, .82) !important;
  border-top-color: rgba(140, 230, 166, .16) !important;
  color: #a7cbb0 !important;
}

.auth-shell,
html[data-theme="light"] .auth-shell {
  background: rgba(7, 28, 18, .95) !important;
  border-color: rgba(140, 230, 166, .18) !important;
}
.auth-main,
html[data-theme="light"] .auth-main { background: rgba(4, 21, 13, .72) !important; }
.auth-brand,
html[data-theme="light"] .auth-brand {
  background: linear-gradient(160deg, #071c12, #0d2c1d 55%, #1b4530) !important;
  color: #ffffff !important;
}
.auth-brand-sub, .auth-brand-foot,
html[data-theme="light"] .auth-brand-sub,
html[data-theme="light"] .auth-brand-foot { color: #a7cbb0 !important; }
.auth-brand-copy > p,
html[data-theme="light"] .auth-brand-copy > p { color: #d8ecdd !important; }
.auth-features > div,
html[data-theme="light"] .auth-features > div { color: #d8ecdd !important; border-bottom-color: rgba(140, 230, 166, .16) !important; }
.auth-features .icon,
html[data-theme="light"] .auth-features .icon { color: #8ce6a6 !important; }

.alert-success,
html[data-theme="light"] .alert-success { background: rgba(87, 201, 129, .12) !important; border-color: rgba(140, 230, 166, .35) !important; color: #c9f7d5 !important; }
.alert-error,
html[data-theme="light"] .alert-error { background: rgba(251, 113, 133, .12) !important; border-color: rgba(251, 113, 133, .35) !important; color: #ffc0cb !important; }

.toast,
html[data-theme="light"] .toast { background: rgba(7, 28, 18, .97) !important; border-color: rgba(140, 230, 166, .3) !important; color: #ffffff !important; }

::selection { background: rgba(140, 230, 166, .3) !important; }
:focus-visible { outline-color: #8ce6a6 !important; }

/* --------------------------------------------- 2026 full-site uplift II */

.card, .kpi, .metric, .item-row, .side-card, .cost-box, .empty,
html[data-theme="light"] .card,
html[data-theme="light"] .kpi,
html[data-theme="light"] .metric,
html[data-theme="light"] .item-row,
html[data-theme="light"] .side-card,
html[data-theme="light"] .cost-box,
html[data-theme="light"] .empty {
  box-shadow: 0 16px 34px -26px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .035);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card::before,
html[data-theme="light"] .card::before {
  height: 2px !important;
  background: linear-gradient(90deg, transparent, rgba(140, 230, 166, .45), transparent) !important;
  opacity: .65;
}

.card:hover,
html[data-theme="light"] .card:hover {
  transform: translateY(-1px);
  border-color: rgba(140, 230, 166, .32) !important;
  box-shadow: 0 22px 44px -28px rgba(0, 0, 0, .9);
}

.page-head { gap: 14px; }
.page-head h1 { text-shadow: 0 2px 16px rgba(0, 0, 0, .45); }

.btn,
.button {
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease, border-color .16s ease;
}
.btn:hover,
.button:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn:active,
.button:active { transform: translateY(0); }
.btn:focus-visible,
.button:focus-visible { outline: 2px solid #c9f7d5; outline-offset: 3px; }

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #8ce6a6 !important;
  outline-offset: 2px;
}

.table thead th,
html[data-theme="light"] .table thead th {
  padding: 9px 11px !important;
  font-size: 10px !important;
  letter-spacing: .08em !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.table,
.table-wrap,
.content {
  scrollbar-width: thin;
  scrollbar-color: rgba(140, 230, 166, .32) transparent;
}

.table::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
.content::-webkit-scrollbar { width: 8px; height: 8px; }
.table::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb,
.content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(140, 230, 166, .28);
}

@media (max-width: 640px) {
  .card:hover,
  html[data-theme="light"] .card:hover { transform: none; }

  .table thead th,
  html[data-theme="light"] .table thead th {
    padding: 8px 9px !important;
    font-size: 9.5px !important;
    letter-spacing: .05em !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card, .kpi, .metric, .item-row, .side-card, .cost-box, .empty,
  html[data-theme="light"] .card,
  html[data-theme="light"] .kpi,
  html[data-theme="light"] .metric,
  html[data-theme="light"] .item-row,
  html[data-theme="light"] .side-card,
  html[data-theme="light"] .cost-box,
  html[data-theme="light"] .empty,
  .btn, .button {
    transition: none;
    transform: none;
  }
}

}
