:root {
    --bg: #030712;
    --bg-header: #040916;
    --bg-card: #0c1428;
    --bg-card-hover: #101b35;
    --bg-input: #081022;
    --border: #17233f;
    --border-soft: #111b33;
    --text: #f8fafc;
    --text-muted: #8b9bb4;
    --cyan: #06b6d4;
    --cyan-bright: #22d3ee;
    --emerald: #10b981;
    --orange: #ff5e00;
    --red: #ef4444;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100vh;
    background-color: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

.tx-wrap {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Header */
.tx-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-soft);
}

.tx-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 62px;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
}

.tx-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.tx-logo {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
    color: #030712;
    font-weight: 900;
    font-size: 13px;
}

.tx-brand-text {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.tx-brand-text strong {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.tx-brand-text small {
    font-size: 11px;
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.tx-search {
    display: flex;
    align-items: stretch;
    flex: 1 1 280px;
    max-width: 580px;
    margin: 0 auto;
}

.tx-search input {
    width: 100%;
    height: 36px;
    background: #070d1d;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 7px 0 0 7px;
    padding: 0 14px;
    color: var(--text);
    font-size: 13px;
    outline: none;
}

.tx-search input::placeholder {
    color: #64748b;
}

.tx-search input:focus {
    border-color: var(--cyan);
}

.tx-search-btn {
    width: 38px;
    height: 36px;
    display: grid;
    place-items: center;
    background: var(--cyan);
    border: 1px solid var(--cyan);
    border-radius: 0 7px 7px 0;
    color: #030712;
    cursor: pointer;
}

.tx-search-btn:hover {
    background: var(--cyan-bright);
}

.tx-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tx-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 10px;
    border-radius: 7px;
    color: #cbd5e1;
    font-size: 12.5px;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.tx-icon-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

/* Subbar */
.tx-subbar {
    background: #050b18;
    border-bottom: 1px solid var(--border-soft);
}

.tx-subbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: 12px;
    color: var(--text-muted);
}

.tx-pulse {
    color: var(--cyan-bright);
    margin-right: 6px;
    font-size: 10px;
}

.tx-subbar-tag {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: #475569;
}

/* Main */
.tx-main {
    flex: 1 0 auto;
    padding-top: 30px;
    padding-bottom: 48px;
}

.tx-hero {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
}

@media (min-width: 1024px) {
    .tx-hero {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.tx-eyebrow {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--cyan-bright);
    margin-bottom: 8px;
}

.tx-hero h1 {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.tx-hero h1 span {
    display: block;
    color: #7c8ba1;
}

.tx-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tx-select-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #080f20;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.tx-select-pill select {
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    border: none;
    outline: none;
    cursor: pointer;
}

.tx-select-pill select option {
    background: #0c1428;
    color: #ffffff;
}

.tx-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 12px;
    color: var(--text-muted);
}

.tx-meta-bar b {
    color: #ffffff;
}

/* 3-Column Marketplace Grid */
.tx-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 18px;
}

@media (min-width: 768px) {
    .tx-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1120px) {
    .tx-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.tx-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.tx-card:hover {
    transform: translateY(-2px);
    border-color: #293d6b;
    background: var(--bg-card-hover);
}

.tx-thumb {
    position: relative;
    aspect-ratio: 1.52 / 1;
    background: linear-gradient(145deg, #16213e 0%, #10182f 55%, #0c1326 100%);
    overflow: hidden;
    display: block;
}

.tx-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tx-thumb-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.tx-thumb-glow.cat-alt {
    background: radial-gradient(circle at 55% 25%, rgba(99, 102, 241, 0.28), transparent 58%);
}

.tx-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tx-tag-rec {
    background: #10d981;
    color: #032215;
}

.tx-tag-nou {
    background: #22d3ee;
    color: #042530;
}

.tx-free-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 5px;
    background: #10b981;
    color: #032215;
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.tx-thumb-cat {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(3, 7, 18, 0.72);
    font-size: 11px;
    font-weight: 600;
    color: #e2e8f0;
}

.tx-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px 18px 18px;
}

.tx-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-card:hover .tx-card-title {
    color: #67e8f9;
}

.tx-card-desc {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.tx-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
}

.tx-price-pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

.tx-price-free {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
}

.tx-price-paid {
    background: rgba(132, 204, 22, 0.16);
    color: #bef264;
}

.tx-vote-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.tx-vote-btn {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.tx-vote-btn.up {
    color: #34d399;
}

.tx-vote-btn.down {
    color: #f87171;
}

.tx-vote-btn:hover {
    border-color: var(--cyan);
}

/* Auth Gate Box */
.tx-auth-box {
    max-width: 450px;
    margin: 28px auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.tx-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: #070d1d;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 4px;
    margin-bottom: 20px;
}

.tx-auth-tab {
    text-align: center;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
}

.tx-auth-tab.active {
    background: var(--cyan);
    color: #030712;
}

/* Human Check Widget */
.tx-human-box {
    background: #070d1d;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.tx-human-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.tx-human-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--cyan-bright);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tx-human-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tx-human-question {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.tx-human-row input {
    width: 96px !important;
    text-align: center;
    font-weight: 700;
    font-size: 15px !important;
}

/* Honeypot ascuns complet pentru oameni, vizibil pentru boti */
.tx-hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Buttons & Panels */
.tx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 7px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.tx-btn-orange {
    background: var(--orange);
    color: #ffffff;
}
.tx-btn-orange:hover { background: #ff711f; }

.tx-btn-cyan {
    background: var(--cyan);
    color: #030712;
}
.tx-btn-cyan:hover { background: var(--cyan-bright); }

.tx-btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
.tx-btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }

.tx-btn-green {
    background: #16a34a;
    color: #ffffff;
}

.tx-btn-red {
    background: #dc2626;
    color: #ffffff;
}

.tx-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 18px;
}

.tx-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid var(--border);
}

.tx-badge-pending { background: rgba(245, 158, 11, 0.16); color: #fcd34d; border-color: rgba(245, 158, 11, 0.4); }
.tx-badge-approved { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.4); }
.tx-badge-rejected, .tx-badge-banned { background: rgba(239, 68, 68, 0.16); color: #fca5a5; border-color: rgba(239, 68, 68, 0.4); }

.tx-form-group { margin-bottom: 14px; }
.tx-form-group label { display: block; margin-bottom: 5px; font-size: 12.5px; font-weight: 600; color: #cbd5e1; }
.tx-form-group input,
.tx-form-group select,
.tx-form-group textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 12px;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
}
.tx-form-group textarea { min-height: 105px; resize: vertical; }

.tx-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.tx-alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 13px;
}
.tx-alert-ok { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.4); color: #a7f3d0; }
.tx-alert-err { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.4); color: #fecaca; }
.tx-alert-warn { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.4); color: #fde68a; }

.tx-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
th { color: var(--text-muted); background: #070d1d; font-weight: 600; }

.tx-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.tx-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
}
.tx-stat-val { font-size: 22px; font-weight: 800; color: #ffffff; }
.tx-stat-lbl { font-size: 12px; color: var(--text-muted); }

.tx-contact-box {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    margin-top: 14px;
}
.tx-contact-box p { margin-bottom: 6px; font-size: 13px; }

.tx-proof-img {
    max-width: 100%;
    max-height: 460px;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-top: 10px;
    display: block;
}

.tx-muted { color: var(--text-muted); }
.tx-inline { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.tx-footer {
    border-top: 1px solid var(--border-soft);
    background: var(--bg-header);
    padding: 14px 0;
    font-size: 12px;
    color: var(--text-muted);
}

.tx-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
