/* =========================================================
   TanksConnected — Global theme
   Single source of truth for layout + components
   ========================================================= */

/* ---------- Root + globals ---------- */

:root {
    --tc-bg: #020617;

    --tc-border-soft: rgba(148, 163, 184, 0.25);
    --tc-border-strong: rgba(56, 189, 248, 0.65);

    --tc-accent: #38bdf8;
    --tc-accent-strong: #2563eb;

    --tc-text: #e5e7eb;
    --tc-text-muted: #9ca3af;

    --tc-card-bg: rgba(255, 255, 255, 0.06);
    --tc-card-border: rgba(255, 255, 255, 0.10);

    --tc-radius-card: 1rem;

    --tc-shadow-card:
        0 10px 30px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(15, 23, 42, 0.9);
}

/* Box sizing reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Body background + typography */
html,
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--tc-text);
    background:
        radial-gradient(circle at 0% 0%, #0b1120 0, transparent 55%),
        radial-gradient(circle at 100% 0%, #020617 0, transparent 55%),
        linear-gradient(135deg, #020617 0%, #020617 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Helpful text utility */
.tc-text-faint {
    color: #64748b !important;
    opacity: 0.85;
}

/* =========================================================
   App shell layout (layouts/app.blade.php)
   ========================================================= */

.tc-shell {
    min-height: 100vh;
    display: flex;
}

/* Sidebar */

.tc-sidebar {
    width: 250px;
    background: transparent;
    display: flex;
    flex-direction: column;
    padding: 0;
    color: var(--tc-text);
    height: 100vh;
    overflow: hidden;
}

.tc-sidebar-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.75rem 0.65rem;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(14px);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

/* Brand strip */

.tc-sidebar-brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.3rem 0.5rem 0.8rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    margin-bottom: 0.4rem;
}

.tc-logo-mark {
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.7));
}

.tc-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.tc-logo-main {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
}

.tc-logo-accent {
    font-size: 0.68rem;
    color: var(--tc-accent);
}

/* Scrollable nav area */

.tc-sidebar-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0.15rem 0.75rem;
}

/* Nav sections */

.tc-nav-section {
    margin-top: 0.45rem;
}

.tc-nav-section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #64748b;
    padding: 0.6rem 0.5rem 0.25rem;
}

/* Individual nav links */

.tc-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.7rem;
    border-radius: 0.8rem;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        transform 0.08s ease,
        box-shadow 0.12s ease;
}

.tc-nav-link i {
    font-size: 0.95rem;
}

.tc-nav-link.active,
.tc-nav-link:hover {
    background: radial-gradient(circle at top left,
        rgba(37, 99, 235, 0.35),
        rgba(56, 189, 248, 0.15));
    color: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.9);
}

/* Sidebar footer */

.tc-sidebar-footer {
    flex: 0 0 auto;
    margin-top: auto;
    padding: 0.5rem 0.2rem 0;
    font-size: 0.75rem;
    color: #6b7280;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

/* Main column */

.tc-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Header bar */

.tc-header {
    height: 60px;
    background: rgba(15, 23, 42, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.tc-header-title {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Mobile hamburger button */

.tc-mobile-menu-btn {
    background: rgba(15, 23, 42, 0.98);
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tc-text);
}

/* Main scroll area */

.tc-main-inner {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.tc-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Footer */

.tc-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.6rem 1.5rem;
    background: rgba(15, 23, 42, 0.97);
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    color: var(--tc-text-muted);
}

/* Desktop scroll locking + custom scrollbars */

@media (min-width: 992px) {
    html,
    body {
        height: 100%;
    }

    .tc-shell {
        height: 100vh;
        overflow: hidden;
    }

    .tc-main-inner {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .tc-sidebar-scroll {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .tc-main-inner::-webkit-scrollbar,
    .tc-sidebar-scroll::-webkit-scrollbar {
        width: 8px;
    }

    .tc-main-inner::-webkit-scrollbar-track,
    .tc-sidebar-scroll::-webkit-scrollbar-track {
        background: rgba(15, 23, 42, 0.55);
    }

    .tc-main-inner::-webkit-scrollbar-thumb,
    .tc-sidebar-scroll::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #38bdf8, #2563eb);
        border-radius: 10px;
        box-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
    }
}

/* =========================================================
   Mobile navigation dropdown
   ========================================================= */

.tc-mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 1030;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

.tc-mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.tc-mobile-menu-inner {
    margin: 0 auto;
    max-width: 480px;
    padding: 0.6rem 0.9rem 0.9rem;
    background: rgba(15, 23, 42, 0.98);
    border-bottom-left-radius: 0.9rem;
    border-bottom-right-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-top: none;
    box-shadow:
        0 16px 35px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tc-mobile-link {
    display: block;
    padding: 0.45rem 0.65rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    text-decoration: none;
    color: rgba(226, 232, 240, 0.96);
}

.tc-mobile-link:hover {
    background: rgba(37, 99, 235, 0.25);
    color: rgba(248, 250, 252, 1);
}

/* Mobile layout tweaks */

@media (max-width: 991.98px) {
    .tc-sidebar {
        display: none;
    }

    .tc-shell {
        min-height: 100vh;
    }

    .tc-main-inner {
        padding: 1rem;
    }

    .tc-header {
        padding: 0 0.9rem;
    }

    .tc-footer {
        padding: 0.55rem 0.9rem;
        font-size: 0.72rem;
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* =========================================================
   Cards / panels
   ========================================================= */

.tc-card,
.tc-card-large,
.tc-tank-card,
.card {
    background: var(--tc-card-bg) !important;
    border-radius: var(--tc-radius-card);
    border: 1px solid var(--tc-card-border) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--tc-shadow-card);
}

/* Hero cards (Your Tanks, guides, etc.) */
.tc-card-large {
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.08) !important;
    padding: 1.1rem 1.4rem !important;
    margin-top: 0.25rem !important;
}

/* Tank card general hover treatment */
.tc-tank-card {
    background: rgba(255, 255, 255, 0.07) !important;
    transition:
        transform 0.15s ease-out,
        box-shadow 0.15s ease-out,
        border-color 0.15s ease-out;
}

.tc-tank-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(56, 189, 248, 0.8);
    border-color: rgba(56, 189, 248, 0.7);
}

/* Generic table card wrapper */
.tc-table-card {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.9);
    overflow: hidden;
}

/* Ensure text inside glass cards isn’t too faint */
.tc-card,
.tc-card-large,
.tc-tank-card,
.tc-table-card {
    color: var(--tc-text);
}

.tc-card .text-muted,
.tc-card-large .text-muted,
.tc-tank-card .text-muted,
.tc-table-card .text-muted {
    color: #cbd5e1 !important;
    opacity: 0.9;
}

/* Sticky table header */
.tc-table-card .table-responsive thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background-color: rgba(15, 23, 42, 0.98) !important;
    box-shadow: 0 2px 0 rgba(15, 23, 42, 0.9);
}

/* Transparent table background for dark theme */
.tc-table-card table,
.tc-table-card thead,
.tc-table-card tbody,
.tc-table-card tr,
.tc-table-card th,
.tc-table-card td {
    background-color: transparent !important;
    color: #e5e7eb !important;
}

/* Header row */
.tc-table-card thead tr {
    background-color: rgba(15, 23, 42, 0.98) !important;
}

.tc-table-card th {
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.9rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35) !important;
    white-space: nowrap;
}

/* Body rows */
.tc-table-card tbody tr {
    background-color: rgba(15, 23, 42, 0.9) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 1) !important;
    transition: background 0.18s ease, transform 0.12s ease;
}

.tc-table-card tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.35) !important;
    transform: translateX(3px);
}

.tc-table-card td {
    font-size: 0.85rem;
    padding: 0.85rem 0.9rem;
    vertical-align: middle;
    color: #cbd5e1 !important;
}

.tc-table-card td strong {
    color: #f9fafb !important;
    font-weight: 600;
}

/* =========================================================
   Species Library table styling
   ========================================================= */

.tc-species-card {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow:
        0 18px 30px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(15, 23, 42, 1);
    overflow: hidden;
}

.tc-species-card .table-responsive {
    margin-bottom: 0;
}

.tc-species-table {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent;
}

/* Header row */
.tc-species-table thead tr {
    background-color: rgba(15, 23, 42, 0.98);
}

.tc-species-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.85rem 1rem;
    white-space: nowrap;
    background-color: rgba(15, 23, 42, 0.98);
    color: #e5e7eb;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}
/* Table text colours for species/plants tables */
.tc-species-table th {
    color: rgba(241, 245, 249, 0.80); /* softer header text */
    font-weight: 600;
}

.tc-species-table td {
    color: rgba(241, 245, 249, 0.72); /* softer, muted row text */
}

.tc-species-table tr:hover td {
    color: rgba(241, 245, 249, 0.92); /* brighten on hover but not pure white */
}
.tc-species-table td strong {
    color: rgba(241, 245, 249, 0.88);
    font-weight: 700;
}

/* Body rows */
.tc-species-table tbody tr {
    background-color: rgba(15, 23, 42, 0.94) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 1) !important;
    transition: background 0.18s ease, transform 0.12s ease;
}

.tc-species-table tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.35) !important;
    transform: translateX(3px);
}

/* Cells */
.tc-species-table td {
    font-size: 0.86rem;
    padding: 0.75rem 1rem;
    vertical-align: middle;
    color: #cbd5e1;
}

/* Stronger common name */
.tc-species-table td:first-child {
    font-weight: 600;
    color: #f9fafb;
}

/* Softer, italic scientific name */
.tc-species-table td:nth-child(2) {
    font-style: italic;
    color: rgba(148, 163, 184, 0.95);
}

/* Center / tighten numeric columns */
.tc-species-table td:nth-child(3),
.tc-species-table td:nth-child(5) {
    text-align: center;
    white-space: nowrap;
}
/* =========================================================
   Guides / Info pages
   ========================================================= */

.tc-guide-card {
    border-radius: 1.25rem;
    background: radial-gradient(circle at top left,
        rgba(30, 64, 175, 0.20),
        rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(15, 23, 42, 0.85);
}

.tc-guide-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.tc-guide-title {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.tc-guide-lead {
    color: var(--tc-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.tc-guide-subtext {
    color: rgba(203, 213, 225, 0.95);
    font-size: 0.9rem;
    line-height: 1.6;
}

.tc-guide-divider {
    border-color: rgba(148, 163, 184, 0.22);
    margin: 1.5rem 0;
}

/* Sections */

.tc-guide-section + .tc-guide-section {
    margin-top: 0.75rem;
}

.tc-guide-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(148, 163, 184, 0.95);
    margin-bottom: 0.6rem;
}

/* Subcards & lists */

.tc-guide-subcard {
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(51, 65, 85, 0.85);
    padding: 0.9rem 1rem;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.8);
}

.tc-guide-subcard h5 {
    font-size: 0.95rem;
    margin-bottom: 0.55rem;
    font-weight: 600;
}

.tc-guide-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.9rem;
}

.tc-guide-list li {
    color: rgba(226, 232, 240, 0.92);
    margin-bottom: 0.25rem;
}

/* Quicklink banner */

.tc-quicklink {
    border-radius: 0.9rem;
    padding: 0.85rem 1rem;
    background: radial-gradient(circle at top left,
        rgba(59, 130, 246, 0.35),
        rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(96, 165, 250, 0.6);
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.85),
        0 0 0 1px rgba(15, 23, 42, 0.9);
}

.tc-quicklink-kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(219, 234, 254, 0.9);
}

.tc-quicklink-text {
    font-size: 0.88rem;
    color: rgba(226, 232, 240, 0.96);
    max-width: 280px;
}

/* Hero checklist */

.tc-setup-hero {
    border-radius: 1.05rem;
    padding: 0.9rem;
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.96),
        rgba(59, 130, 246, 0.55));
    border: 1px solid rgba(129, 140, 248, 0.6);
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(15, 23, 42, 0.9);
}

.tc-setup-hero-inner {
    border-radius: 0.9rem;
    padding: 0.75rem 0.85rem;
    background: radial-gradient(circle at top left,
        rgba(15, 23, 42, 0.9),
        rgba(15, 23, 42, 0.96));
}

.tc-setup-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: rgba(191, 219, 254, 0.88);
}

.tc-setup-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(239, 246, 255, 0.98);
}

.tc-setup-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.tc-setup-step-pill {
    flex: 1 1 46%;
    min-width: 120px;
    border-radius: 0.75rem;
    padding: 0.45rem 0.65rem;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.9);
}

.tc-setup-step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.96);
}

.tc-setup-step-desc {
    font-size: 0.78rem;
    color: rgba(191, 219, 254, 0.92);
}

/* Mobile tweaks */

@media (max-width: 767.98px) {
    .tc-guide-card {
        padding: 1.35rem !important;
    }
    .tc-guide-title {
        font-size: 1.4rem;
    }
    .tc-setup-step-pill {
        flex: 1 1 100%;
    }
}
/* =========================================================
   Dashboard — Your Tanks hero + tank cards
   ========================================================= */

/* Panel wrapper */
.tc-tanks-panel {
    border-radius: 1.35rem;
    background:
        radial-gradient(circle at top left,
            rgba(56, 189, 248, 0.18),
            transparent 55%),
        rgba(15, 23, 42, 0.99);
    border: 1px solid rgba(30, 64, 175, 0.7);
    box-shadow:
        0 26px 60px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(15, 23, 42, 1);
}

.tc-tanks-body {
    padding: 1.25rem 1.4rem 1.35rem;
}

/* ---------- HERO HEADER (YOUR TANKS BAR) ---------- */

.tc-tanks-hero-header {
    display: grid;
    grid-template-columns: minmax(0, 2fr) auto auto;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.3rem;
    padding: 0.9rem 1.15rem;
    border-radius: 1rem;
    background:
        radial-gradient(circle at 0% 0%,
            rgba(56, 189, 248, 0.30),
            transparent 55%),
        radial-gradient(circle at 100% 0%,
            rgba(30, 64, 175, 0.22),
            transparent 55%),
        rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(56, 189, 248, 0.55);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.95),
        0 0 0 1px rgba(15, 23, 42, 1);
    position: relative;
    overflow: hidden;
}

.tc-tanks-hero-header::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 10% 0%,
            rgba(59, 130, 246, 0.35),
            transparent 60%),
        radial-gradient(circle at 80% 20%,
            rgba(56, 189, 248, 0.25),
            transparent 60%);
    opacity: 0.45;
    pointer-events: none;
}

.tc-tanks-hero-title {
    position: relative;
    z-index: 1;
}

.tc-tanks-hero-main {
    margin: 0 0 0.15rem 0;
    font-size: 1.05rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #e5e7eb;
    font-weight: 600;
}

.tc-tanks-hero-sub {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(148, 163, 184, 0.95);
}

.tc-tanks-hero-meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.7rem;
    justify-content: flex-start;
}

.tc-tanks-hero-pill {
    min-width: 120px;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.45);
    font-size: 0.78rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.9);
    text-align: center;
}

.tc-tanks-hero-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.68rem;
    color: rgba(148, 163, 184, 0.9);
}

.tc-tanks-hero-value {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.88rem;
    color: rgba(226, 232, 240, 0.98);
    font-weight: 600;
}

.tc-tanks-hero-actions {
    position: relative;
    z-index: 1;
    justify-self: end;
}

.tc-tanks-add-btn {
    font-size: 0.8rem !important;
    padding: 0.4rem 1.1rem !important;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .tc-tanks-hero-header {
        grid-template-columns: minmax(0, 1fr);
        align-items: flex-start;
    }
    .tc-tanks-hero-actions {
        justify-self: flex-start;
    }
}

/* ---------- TANK GRID LAYOUT ---------- */

.tc-tanks-grid {
    margin-top: 0.3rem;
}

/* =========================================================
   Tank glass shells (single, final version)
   ========================================================= */

.tc-tank-shell {
    position: relative;
    height: 100%;
    border-radius: 1.35rem;
    padding: 0.9rem 1.05rem 0.85rem;
    background:
        radial-gradient(circle at 10% 0%,
            rgba(37, 99, 235, 0.25),
            transparent 55%),
        radial-gradient(circle at 90% 0%,
            rgba(56, 189, 248, 0.20),
            transparent 60%),
        linear-gradient(
            180deg,
            #020617 0%,
            #020617 40%,
            #020617 100%
        );
    border: 1px solid rgba(15, 23, 42, 0.98);
    box-shadow:
        0 22px 50px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(15, 23, 42, 1);
    overflow: hidden;
    cursor: pointer;
    transform: translateY(0);
    transition: transform 0.16s ease-out,
                box-shadow 0.16s ease-out,
                border-color 0.16s ease-out;
    display: flex;
    flex-direction: column;
}

/* Edge bevels */
.tc-tank-shell::before,
.tc-tank-shell::after {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    width: 2px;
    pointer-events: none;
    opacity: 0.55;
}

.tc-tank-shell::before {
    left: 0;
    background: linear-gradient(
        to bottom,
        rgba(248, 250, 252, 0.10),
        rgba(148, 163, 184, 0.05),
        rgba(15, 23, 42, 0.0)
    );
}

.tc-tank-shell::after {
    right: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.0),
        rgba(30, 64, 175, 0.35),
        rgba(15, 23, 42, 0.0)
    );
}

/* Glass reflection */
.tc-tank-glass-overlay {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.22) 0%,
            rgba(255, 255, 255, 0.10) 18%,
            transparent 40%
        );
    opacity: 0.7;
    mix-blend-mode: screen;
    pointer-events: none;
}

/* Make inner content sit above the sheen */
.tc-tank-shell > * {
    position: relative;
    z-index: 1;
}

.tc-tank-shell:hover {
    transform: translateY(-4px);
    box-shadow:
        0 28px 60px rgba(15, 23, 42, 0.96),
        0 0 0 1px rgba(56, 189, 248, 0.8);
    border-color: rgba(56, 189, 248, 0.8);
}

/* HEADER / "LID" */

.tc-tank-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}

.tc-tank-header-left {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

/* Logo = little glowing glass tile */
/* Dashboard tank logo – flat, no circle */
.tc-tank-logo-wrap {
    width: 60px;
    height: 40px;
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.tc-tank-logo {
    width: 52px;
    height: auto;
    object-fit: contain;
    opacity: 0.98;
    display: block;
}

.tc-tank-title-block {
    min-width: 0;
}

.tc-tank-title-main {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc-tank-title-sub {
    font-size: 0.7rem;
    color: rgba(148, 163, 184, 0.9);
}

/* Right side (stock% + edit button) */

.tc-tank-header-right {
    font-size: 0.7rem;
    text-align: right;
}

.tc-tank-stock-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    color: rgba(226, 232, 240, 0.96);
}

/* BODY / WATER COLUMN */

.tc-tank-body {
    flex: 1;
    padding: 0.75rem 0 0.1rem 0;
    position: relative;
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.96);
}

.tc-tank-body-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.75rem;
    padding: 0.18rem 0;
}

.tc-tank-body-label {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.9);
}

.tc-tank-body-hint {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.9);
    margin-left: 0.2rem;
}

/* FOOTER / BASE */

.tc-tank-footer {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(15, 23, 42, 0.95);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem 0.75rem;
    font-size: 0.78rem;
}

.tc-tank-footer-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.tc-tank-footer-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
    color: rgba(148, 163, 184, 0.9);
}

.tc-tank-footer-value {
    color: rgba(226, 232, 240, 0.98);
}

@media (max-width: 767.98px) {
    .tc-tank-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   Buttons
   ========================================================= */

.tc-btn-primary,
.btn.tc-btn-primary {
    border-radius: 999px;
    padding: 0.35rem 0.95rem;
    font-size: 0.84rem;
    font-weight: 500;
    border: 1px solid rgba(56, 189, 248, 0.9);
    background: linear-gradient(135deg, var(--tc-accent), var(--tc-accent-strong));
    color: #f9fafb !important;
    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.9),
        0 0 16px rgba(56, 189, 248, 0.6);
    transition: all 0.14s ease-out;
}

.tc-btn-primary:hover,
.btn.tc-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 16px 32px rgba(15, 23, 42, 1),
        0 0 22px rgba(56, 189, 248, 0.9);
    background: linear-gradient(135deg, var(--tc-accent-strong), #1d4ed8);
}

.tc-btn-primary:active,
.btn.tc-btn-primary:active {
    transform: translateY(0);
    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.8),
        0 0 12px rgba(56, 189, 248, 0.7);
}

/* Ghost buttons – e.g. "Edit tank" */
.tc-btn-ghost,
.btn.tc-btn-ghost {
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.8);
    color: #e5e7eb !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.9);
    transition: all 0.14s ease-out;
}

.tc-btn-ghost:hover,
.btn.tc-btn-ghost:hover {
    border-color: rgba(56, 189, 248, 0.85);
    color: #f9fafb !important;
    box-shadow:
        0 10px 24px rgba(15, 23, 42, 1),
        0 0 12px rgba(56, 189, 248, 0.6);
}

/* Clean EDIT TANK button look */
.tc-tank-edit-btn {
    border: 1px solid rgba(148, 163, 184, 0.45) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(4px);
    color: #e5e7eb !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap;
    padding: 0.22rem 0.75rem !important;
    border-radius: 0.55rem !important;
    font-size: 0.75rem !important;
}

.tc-tank-edit-btn:hover {
    border-color: rgba(56, 189, 248, 0.85) !important;
    background: rgba(56, 189, 248, 0.15) !important;
    color: #fff !important;
}

/* Preset filter remove button (X badge) */
.tc-filter-remove-btn {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: rgba(226, 232, 240, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.15s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.tc-filter-remove-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.75);
    color: #fff;
    transform: translateY(-1px);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.6),
        0 0 10px rgba(239, 68, 68, 0.6);
}

.tc-filter-remove-btn:active {
    transform: translateY(0);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.5),
        0 0 6px rgba(239, 68, 68, 0.4);
}

/* =========================================================
   Forms / inputs
   ========================================================= */

.tc-input {
    background-color: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: rgba(241, 245, 249, 0.96);
    border-radius: 0.5rem;
    padding: 0.55rem 0.75rem;
    width: 100%;
    transition: all 0.15s ease-in-out;
}

.tc-input::placeholder {
    color: rgba(148, 163, 184, 0.65);
}

.tc-input:focus {
    outline: none;
    background-color: rgba(15, 23, 42, 0.95);
    border-color: rgba(96, 165, 250, 0.9);
    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.7),
        0 0 20px rgba(37, 99, 235, 0.45);
}

/* Smaller inline inputs if needed */
.tc-input-sm {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
}

/* =========================================================
   Tank edit — preset filters
   ========================================================= */

.tc-selected-filter {
    background: rgba(15, 23, 42, 0.92);
    border-radius: 0.6rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 0.4rem 0.55rem;
    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(15, 23, 42, 0.95);
}

.tc-selected-filter-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.08rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.6);
    color: rgba(226, 232, 240, 0.96);
}

.tc-selected-filter-remove {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(15, 23, 42, 0.9);
    color: rgba(226, 232, 240, 0.96);
    font-size: 0.8rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.15s ease-out;
}

.tc-selected-filter-remove:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.85);
    color: #fff;
    transform: translateY(-1px);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.7),
        0 0 10px rgba(239, 68, 68, 0.6);
}

.tc-selected-filter-remove:active {
    transform: translateY(0);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.6),
        0 0 6px rgba(239, 68, 68, 0.4);
}

/* =========================================================
   Filter toolbar (species + plants)
   ========================================================= */

.tc-filter-box {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.75rem;
    padding: 0.55rem 0.9rem;
    margin-bottom: 0.65rem;
    box-shadow:
        0 12px 24px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(15, 23, 42, 0.8);
}

/* Sticky at top of viewport when scrolling */
.tc-filter-box-sticky {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

/* Inside filter box, expect .row.g-3 */
.tc-filter-box .row.g-3 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.2rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.tc-filter-box label {
    font-size: 0.72rem;
    margin-bottom: 0.05rem !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8 !important;
}

/* Controls */
.tc-filter-box .form-control,
.tc-filter-box .form-select {
    height: 34px !important;
    padding: 0.25rem 0.55rem;
    font-size: 0.82rem;
    line-height: 1.2;
    background-color: rgba(15, 23, 42, 0.98) !important;
    color: #e2e8f0 !important;
    border-radius: 0.45rem !important;
    border: 1px solid rgba(148, 163, 184, 0.4) !important;
}

.tc-filter-box .form-control::placeholder {
    color: #64748b;
}

.tc-filter-box .form-control:focus,
.tc-filter-box .form-select:focus {
    border-color: var(--tc-accent) !important;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.45);
}

/* Single-row layout for desktop */
@media (min-width: 992px) {
    .tc-filter-box .row.g-3 {
        display: flex;
        flex-wrap: nowrap;
        align-items: flex-end;
        gap: 0.55rem;
        margin: 0;
    }

    .tc-filter-box .row.g-3 > [class^="col-"],
    .tc-filter-box .row.g-3 > [class*=" col-"] {
        flex: 0 1 auto;
        padding: 0;
    }

    .tc-filter-box .row.g-3 > :nth-child(1) {
        flex: 2 1 0;
        min-width: 0;
    }

    .tc-filter-box .row.g-3 > :nth-child(2),
    .tc-filter-box .row.g-3 > :nth-child(3) {
        flex: 1 1 0;
        min-width: 0;
    }

    .tc-filter-box .row.g-3 > :nth-child(n+4) {
        flex: 0.7 1 0;
        min-width: 0;
    }
}

/* Slightly tighter on phones */
@media (max-width: 991.98px) {
    .tc-filter-box {
        padding: 0.45rem 0.75rem;
    }

    .tc-filter-box .form-control,
    .tc-filter-box .form-select {
        height: 32px !important;
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

/* =========================================================
   Profile dropdown (header) + avatars
   ========================================================= */

.tc-profile-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 0.75rem !important;
    padding: 0.35rem 0.75rem !important;
    color: var(--tc-text) !important;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(15, 23, 42, 0.9);
    transition: all 0.15s ease-out;
}

.tc-profile-btn:hover,
.tc-profile-btn:focus {
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px);
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(56, 189, 248, 0.5);
}

/* Small avatar in the header button – flat tile */
.tc-header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 0.55rem;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.96);
    box-shadow:
        0 4px 10px rgba(15, 23, 42, 0.85),
        0 0 0 1px rgba(15, 23, 42, 1);
}

.tc-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}

.tc-profile-btn .profile-text {
    line-height: 1.1;
}

.tc-profile-btn .profile-text div:first-child {
    font-size: 0.80rem;
    color: var(--tc-text);
}

.tc-profile-btn .profile-text div:last-child {
    font-size: 0.70rem;
    color: var(--tc-text-muted);
}

/* Dropdown menu */

.tc-profile-dropdown {
    min-width: 260px;
    padding: 0;
    margin-top: 0.5rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background-color: rgba(15, 23, 42, 0.98);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.85),
        0 0 0 1px rgba(15, 23, 42, 0.9);
    overflow: hidden;
    color: rgba(241, 245, 249, 0.96);
}

.tc-profile-dropdown__header {
    padding: 0.75rem 0.9rem;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 1),
        rgba(30, 64, 175, 0.75)
    );
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.tc-profile-dropdown__header .fw-semibold {
    color: rgba(248, 250, 252, 0.98);
}

.tc-profile-dropdown__header .text-secondary {
    color: rgba(203, 213, 225, 0.9) !important;
}

/* Avatar shown in dropdown header – flat glassy tile */
.tc-profile-dropdown__avatar {
    width: 40px;
    height: 40px;
    border-radius: 0.8rem;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.96);
    box-shadow:
        0 6px 18px rgba(15, 23, 42, 0.8),
        0 0 0 1px rgba(15, 23, 42, 1);
}

.tc-profile-dropdown__avatar img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: cover;      /* fill the box */
    border-radius: inherit; /* keeps the rounded corners */
}


.tc-profile-dropdown .dropdown-divider {
    border-color: rgba(51, 65, 85, 0.9);
    margin-inline: 0.5rem;
}

.tc-profile-dropdown .dropdown-item {
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    color: rgba(241, 245, 249, 0.96);
}

.tc-profile-dropdown .dropdown-item i {
    font-size: 1rem;
}

.tc-profile-dropdown .dropdown-item:hover {
    background: rgba(37, 99, 235, 0.22);
    color: rgba(248, 250, 252, 1);
}

/* Profile avatar image on /profile (+ alias for any old .tc-avatar-preview) */
.tc-profile-avatar,
.tc-avatar-preview {
    width: 52px;
    height: 52px;
    border-radius: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.96);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow:
        0 6px 18px rgba(15, 23, 42, 0.8),
        0 0 0 1px rgba(15, 23, 42, 1);
    padding: 0;
}

.tc-profile-avatar img,
.tc-avatar-preview img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: cover;      /* fill the tile */
    border-radius: inherit; /* keep the rounded corners */
}


/* Header avatar in top-right dropdown */
.tc-header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 0.55rem;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.96);
    box-shadow:
        0 4px 10px rgba(15, 23, 42, 0.85),
        0 0 0 1px rgba(15, 23, 42, 1);
}

.tc-header-avatar img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;      /* fill the tile */
    display: block;
    border-radius: inherit;
}

.tc-avatar-remove-btn {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.85);
    background: rgba(15, 23, 42, 0.98);
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.9);
    transition: all 0.14s ease-out;
    padding: 0;
}

.tc-avatar-remove-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.9);
    color: #fee2e2;
    transform: translateY(-1px);
}

.tc-avatar-remove-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.9);
}
.tc-logo-default-avatar {
    width: 52px;
    height: auto;
    opacity: 0.95;
    display: block;
}
.tc-logo-default-avatar-sm {
    width: 28px;
    height: auto;
    opacity: 0.95;
    display: block;
}

/* =========================================================
   Pills / badges (used all over)
   ========================================================= */

.tc-pill {
    border-radius: 999px;
    font-size: 0.75rem;
    padding: 0.15rem 0.6rem;
}

/* Bioload / risk badges */
.tc-badge-low,
.tc-badge-medium,
.tc-badge-high,
.tc-badge-unknown {
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    font-size: 0.7rem;
    border-width: 1px;
    border-style: solid;
}

.tc-badge-low {
    background: rgba(22, 163, 74, 0.10);
    border-color: rgba(22, 163, 74, 0.85);
    color: rgba(220, 252, 231, 0.96);
}

.tc-badge-medium {
    background: rgba(234, 179, 8, 0.12);
    border-color: rgba(234, 179, 8, 0.85);
    color: rgba(254, 243, 199, 0.96);
}

.tc-badge-high {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.85);
    color: rgba(254, 226, 226, 0.97);
}

.tc-badge-unknown {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.7);
    color: rgba(229, 231, 235, 0.95);
}

/* =========================================================
   Dashboard — "Your Tanks" panel + cards
   ========================================================= */

.tc-tanks-panel {
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at top left,
            rgba(56, 189, 248, 0.18),
            transparent 55%),
        rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(30, 64, 175, 0.7);
}

.tc-tanks-panel .card-body {
    padding: 1.1rem 1.5rem 1.2rem;
}

.tc-tanks-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.9);
}

.tc-tanks-meta-item {
    display: flex;
    flex-direction: column;
}

.tc-tanks-meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(148, 163, 184, 0.9);
}

.tc-tanks-meta-value {
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.98);
}

.tc-tank-stock-label {
    font-size: 0.7rem;
}

/* =========================================================
   Tank edit / stocking hero (tanks/edit, hub)
   ========================================================= */

.tc-stocking-hero {
    background:
        radial-gradient(circle at top left,
            rgba(56, 189, 248, 0.16),
            transparent 55%),
        linear-gradient(
            135deg,
            rgba(15, 23, 42, 0.98),
            rgba(30, 64, 175, 0.96)
        );
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
}

.tc-hero-left {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    min-width: 0;
}

.tc-hero-logo-wrap {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.7);
    background:
        radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.95), rgba(15, 23, 42, 1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.tc-hero-logo {
    max-width: 28px;
    max-height: 28px;
}

.tc-hero-right {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 220px;
}

.tc-hero-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.tc-hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem 0.65rem;
    font-size: 0.8rem;
}

.tc-hero-metrics-heading {
    grid-column: 1 / span 2;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(148, 163, 184, 0.9);
}

.tc-hero-metric-label {
    color: rgba(209, 213, 219, 0.95);
}

.tc-hero-metric-value {
    text-align: right;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.97);
}

@media (max-width: 767.98px) {
    .tc-stocking-hero {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =========================================================
   Info pages – guides / water-change hero
   ========================================================= */

.tc-guide-card {
    position: relative;
    overflow: hidden;
}

.tc-guide-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.10), transparent 55%),
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.12), transparent 55%);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.tc-guide-inner {
    position: relative;
    z-index: 1;
}

.tc-setup-hero,
.tc-water-hero {
    position: relative;
    border-radius: 1.25rem;
    padding: 1.25rem 1.4rem;
    background:
        radial-gradient(circle at top left,
            rgba(56, 189, 248, 0.38),
            transparent 55%),
        linear-gradient(
            135deg,
            rgba(15, 23, 42, 0.98),
            rgba(30, 64, 175, 0.98)
        );
    border: 1px solid rgba(56, 189, 248, 0.6);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(15, 23, 42, 1);
}

.tc-guide-section-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #bfdbfe;
    margin-bottom: 0.25rem;
}

.tc-guide-subtext {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.95);
}

.tc-guide-subcard {
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.tc-guide-subcard h5 {
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.tc-guide-list {
    padding-left: 1.1rem;
    font-size: 0.9rem;
}

.tc-quicklink {
    border-radius: 0.9rem;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.98),
        rgba(56, 189, 248, 0.25),
        rgba(15, 23, 42, 0.96)
    );
    border: 1px solid rgba(56, 189, 248, 0.5);
    padding: 0.9rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tc-quicklink small {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #bfdbfe;
}

.tc-water-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.65);
    padding: 0.13rem 0.65rem;
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.96);
    background: rgba(15, 23, 42, 0.95);
}

.tc-water-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.9);
}

@media (max-width: 991.98px) {
    .tc-water-hero {
        margin-top: 1.25rem;
    }
}

/* =========================================================
   Embedded chat page shell (chat.blade.php)
   ========================================================= */

.tc-chat-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    min-height: calc(100vh - 160px);
}

.tc-chat-shell {
    width: 100%;
    max-width: 1200px;
    background: radial-gradient(circle at top left,
        rgba(15, 23, 42, 0.96),
        rgba(15, 23, 42, 0.99));
    border-radius: 1.2rem;
    border: 1px solid rgba(30, 64, 175, 0.75);
    box-shadow:
        0 22px 40px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(15, 23, 42, 1);
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tc-chat-header-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.9rem;
    align-items: center;
    justify-content: space-between;
}

.tc-chat-title {
    font-size: 0.98rem;
    font-weight: 600;
}

.tc-chat-subtitle {
    font-size: 0.8rem;
    color: var(--tc-text-muted);
}

.tc-chat-irc-pill {
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.7);
    padding: 0.12rem 0.6rem;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(226, 232, 240, 0.98);
}

.tc-chat-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.95);
}

.tc-chat-main {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1.5fr);
    gap: 0.7rem;
    margin-top: 0.25rem;
    min-height: 0;
}

.tc-chat-panel {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow:
        0 16px 30px rgba(15, 23, 42, 0.85),
        0 0 0 1px rgba(15, 23, 42, 0.95);
    padding: 0.75rem 0.85rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tc-chat-panel-right-title {
    font-size: 0.85rem;
    font-weight: 600;
}

.tc-chat-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    gap: 0.4rem;
}

.tc-chat-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tc-chat-users {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.tc-chat-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 0.25rem 0.4rem;
    border-radius: 0.55rem;
    font-size: 0.82rem;
    background: rgba(15, 23, 42, 0.9);
}

.tc-chat-user-main {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.tc-chat-user-name {
    font-weight: 500;
}

.tc-chat-user-meta {
    font-size: 0.72rem;
    color: var(--tc-text-muted);
}

.tc-chat-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--tc-text-muted);
}

.tc-chat-online-count {
    font-size: 0.8rem;
}

.tc-chat-log {
    font-size: 0.8rem;
    line-height: 1.5;
}

.tc-chat-input-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.45rem;
}

.tc-chat-input-main {
    flex: 1;
}

.tc-chat-attach-btn,
.tc-chat-send-btn {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    padding: 0.25rem 0.6rem;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991.98px) {
    .tc-chat-main {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =========================================================
   Auth pages visual bits (login / register)
   ========================================================= */

.tc-auth-shell {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.tc-auth-card {
    position: relative;
    z-index: 2;
    max-width: 420px;
    width: 100%;
    border-radius: 1rem;
    background:
        radial-gradient(circle at top left,
            rgba(56, 189, 248, 0.16),
            transparent 55%),
        rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow:
        0 22px 40px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(15, 23, 42, 1);
    padding: 1.5rem 1.6rem 1.4rem;
}

/* Auth logo block */

.tc-auth-logo,
.tc-auth-logo img {
    display: block;
    width: 110px;
    height: 110px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    padding: 0;
}

.tc-auth-logo img {
    object-fit: contain;
}

.tc-auth-shell svg {
    width: 96px;
    height: 96px;
    margin-bottom: 1rem;
}

/* Text / headings */

.tc-auth-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.tc-auth-subtitle {
    font-size: 0.86rem;
    color: rgba(148, 163, 184, 0.95);
}

.tc-auth-footer {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.9);
    margin-top: 0.7rem;
}

.tc-auth-card label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.95);
}

/* Inputs */

.tc-auth-shell .tc-input {
    background-color: rgba(15, 23, 42, 0.96);
    border-radius: 0.6rem;
    border: 1px solid rgba(129, 140, 248, 0.9);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 1),
        0 10px 22px rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.16s ease-out;
}

.tc-auth-shell .tc-input::placeholder {
    color: rgba(148, 163, 184, 0.75);
}

.tc-auth-shell .tc-input:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.95);
    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.9),
        0 14px 30px rgba(15, 23, 42, 1);
    background-color: rgba(15, 23, 42, 0.98);
}

/* Chrome autofill fixes */

.tc-auth-shell input:-webkit-autofill,
.tc-auth-shell input:-webkit-autofill:hover,
.tc-auth-shell input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(15, 23, 42, 0.96) inset;
    -webkit-text-fill-color: #e5e7eb;
    border-radius: 0.6rem;
}

/* Background scrolling text */

.tc-auth-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
    opacity: 0.28;
}

.tc-bg-row {
    position: absolute;
    white-space: nowrap;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: rgba(30, 64, 175, 0.85);
    animation: tc-bg-scroll 10s linear infinite;
}

.tc-bg-row:nth-child(2),
.tc-bg-row:nth-child(3),
.tc-bg-row:nth-child(4),
.tc-bg-row:nth-child(5),
.tc-bg-row:nth-child(6) {
    animation-duration: 14s;
    animation-direction: reverse;
}

.tc-bg-keyword {
    position: absolute;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(56, 189, 248, 0.92);
    opacity: 0.9;
}

@keyframes tc-bg-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-70%); }
}

/* Auth Hero */

.tc-auth-hero {
    text-align: center;
    margin-bottom: 1.4rem;
}

.tc-auth-hero-logo {
    width: 125px;
    height: 125px;
    margin: 0 auto 0.75rem auto;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.55));
}

.tc-auth-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tc-auth-hero-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.02em;
}

.tc-auth-hero-main {
    color: #f1f5f9;
}

.tc-auth-hero-accent {
    color: var(--tc-accent);
}

.tc-auth-hero-subtitle {
    font-size: 0.9rem;
    margin-top: 0.35rem;
    color: rgba(148, 163, 184, 0.95);
}

/* =========================================================
   Misc small utilities
   ========================================================= */

.tc-quicklink a {
    color: #e5e7eb;
    text-decoration: underline;
}

.tc-quicklink a:hover {
    text-decoration: none;
}
/* =========================================================
   Messages page — layout + styling
   ========================================================= */

.tc-messages-page {
    max-width: 1100px;
    margin: 0 auto;
}

/* Main messages card (the big panel) */
.tc-messages-page .tc-card-large {
    padding: 1.1rem 1.4rem !important;
}

/* Headings */
.tc-messages-page h1,
.tc-messages-page h2,
.tc-messages-page h3 {
    margin-bottom: 0.4rem;
}

.tc-messages-page .tc-messages-intro {
    font-size: 0.86rem;
    color: rgba(148, 163, 184, 0.95);
    margin-bottom: 0.9rem;
}

/* Layout: compose on top, threads below (but tighter) */
.tc-messages-page .tc-messages-compose {
    border-radius: 1rem;
    padding: 0.8rem 0.9rem 0.9rem;
    background: radial-gradient(circle at top left,
        rgba(15, 23, 42, 0.96),
        rgba(15, 23, 42, 0.99));
    border: 1px solid rgba(30, 64, 175, 0.7);
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(15, 23, 42, 1);
    margin-bottom: 0.9rem;
}

/* Make labels smaller and cleaner */
.tc-messages-page .tc-messages-compose label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(148, 163, 184, 0.95);
    margin-bottom: 0.15rem;
}

/* Inputs in compose */
.tc-messages-page .tc-messages-compose .form-control {
    font-size: 0.86rem;
    padding: 0.4rem 0.6rem;
}

/* Textarea — shrink the monster */
.tc-messages-page .tc-messages-compose textarea.form-control {
    min-height: 110px;
    max-height: 220px;
    resize: vertical;
    font-size: 0.86rem;
}

/* Send button row */
.tc-messages-page .tc-messages-compose .tc-messages-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.55rem;
}

/* Thread list panel */
.tc-messages-page .tc-messages-threads {
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(30, 64, 175, 0.65);
    box-shadow:
        0 16px 34px rgba(15, 23, 42, 0.95),
        0 0 0 1px rgba(15, 23, 42, 1);
    overflow: hidden;
}

/* Each thread row */
.tc-messages-page .tc-message-thread {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.84rem;
    text-decoration: none;
    color: rgba(226, 232, 240, 0.96);
    border-bottom: 1px solid rgba(15, 23, 42, 1);
    background: radial-gradient(circle at left,
        rgba(15, 23, 42, 1),
        rgba(15, 23, 42, 0.98));
    transition:
        background 0.14s ease-out,
        transform 0.1s ease-out;
}

.tc-messages-page .tc-message-thread:last-child {
    border-bottom: none;
}

.tc-messages-page .tc-message-thread:hover {
    background: radial-gradient(circle at left,
        rgba(37, 99, 235, 0.42),
        rgba(15, 23, 42, 0.98));
    transform: translateX(2px);
}

/* Left side: name + snippet */
.tc-messages-page .tc-message-thread-main {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    overflow: hidden;
}

.tc-messages-page .tc-message-thread-name {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc-messages-page .tc-message-thread-snippet {
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.98);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right side: time + unread badge */
.tc-messages-page .tc-message-thread-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    margin-left: 0.5rem;
}

.tc-messages-page .tc-message-thread-time {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.96);
}

/* Unread count badge */
.tc-messages-page .tc-message-unread {
    min-width: 20px;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    font-size: 0.72rem;
    text-align: center;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.9);
    color: #e0f2fe;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
}

/* Empty state text */
.tc-messages-page .tc-messages-empty {
    font-size: 0.84rem;
    color: rgba(148, 163, 184, 0.95);
    padding: 0.65rem 0.85rem;
}

/* Mobile tweaks */
@media (max-width: 767.98px) {
    .tc-messages-page .tc-messages-compose {
        padding: 0.75rem 0.8rem 0.85rem;
    }

    .tc-messages-page .tc-messages-compose textarea.form-control {
        min-height: 90px;
    }

    .tc-messages-page .tc-message-thread {
        padding-inline: 0.7rem;
    }
}
/* Messages page — fix dark text on focus */
.tc-messages-page textarea.tc-input {
    color: #f0f4ff !important; /* bright readable text */
}

.tc-messages-page textarea.tc-input:focus {
    color: #ffffff !important; /* ensure stays white while typing */
    background-color: rgba(15, 23, 42, 0.93); /* match non-focused look */
    border-color: rgba(96,165,250,0.8);
    box-shadow:
        0 0 0 1px rgba(96,165,250,0.7),
        0 0 12px rgba(37,99,235,0.45);
}
/* Messages page — fix subject + message inputs */
.tc-messages-page .tc-input {
    color: #f0f4ff !important;          /* readable default text */
}

/* Focus state for both subject + message on messages page only */
.tc-messages-page .tc-input:focus {
    color: #ffffff !important;          /* stay bright when typing */
    background-color: rgba(15, 23, 42, 0.93);
    border-color: rgba(96, 165, 250, 0.8);
    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.7),
        0 0 12px rgba(37, 99, 235, 0.45);
}
/* Messages page — fix ALL input/textarea fields (new + reply) */
.tc-messages-page .tc-input,
.tc-messages-page textarea,
.tc-messages-page input[type="text"] {
    color: #f0f4ff !important;
}

/* Focus state — readable while typing */
.tc-messages-page .tc-input:focus,
.tc-messages-page textarea:focus,
.tc-messages-page input[type="text"]:focus {
    color: #ffffff !important;
    background-color: rgba(15, 23, 42, 0.93);
    border-color: rgba(96, 165, 250, 0.8);
    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.7),
        0 0 12px rgba(37, 99, 235, 0.45);
}
