/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6C3CE1;
    --primary-dark: #5A2FD4;
    --secondary: #00D4FF;
    --dark: #0A0A1A;
    --darker: #060612;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text: #FFFFFF;
    --text-muted: #A0A0C0;
    --gradient: linear-gradient(135deg, #6C3CE1, #00D4FF);
    --shadow: 0 8px 32px rgba(108, 60, 225, 0.3);
    --border-radius: 16px;
    /* System font stack - no Google Fonts/CDN request, so the Onion-service
       viewer's browser never needs to leave the Onion origin for type. */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font-sans);
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Local icon sprite references (public/index.html's inline <svg><symbol>
   defs) - no external icon-font CDN request. */
.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    fill: none;
    stroke: currentColor;
}

.efootball-wordmark {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: 2.2rem;
    letter-spacing: 0.02em;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--darker);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
}

.nav-logo i {
    color: var(--secondary);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.admin-login-btn {
    background: var(--gradient);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.9rem;
}

.admin-login-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 20px 60px;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.efootball-logo {
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}


@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-family: var(--font-sans);
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.hero-description {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-description strong {
    color: var(--secondary);
    font-weight: 700;
}

.hero-subtext {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: -20px auto 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(108, 60, 225, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(108, 60, 225, 0.6);
}

.btn-telegram {
    background: #0088cc;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-telegram:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 136, 204, 0.4);
}

.btn-telegram-large {
    background: #0088cc;
    color: white;
    border: none;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-telegram-large:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 40px rgba(0, 136, 204, 0.5);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Background Animation */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.1;
    animation: pulse 6s ease-in-out infinite;
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.2); opacity: 0.2; }
}

/* Accounts Section */
.accounts-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-sans);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header h2 i {
    color: var(--secondary);
    margin-right: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.account-filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background: var(--card-bg);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--text);
}

.filter-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow);
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Account Card */
.account-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.account-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.account-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--darker);
}

.account-card-content {
    padding: 20px;
}

.account-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.account-card-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.category-cross-spammer {
    background: #FF6B35;
    color: white;
}

.category-blitz-curler {
    background: #00B4D8;
    color: white;
}

.category-low-screamer {
    background: #9B59B6;
    color: white;
}

.account-card-details {
    display: flex;
    gap: 20px;
    margin: 12px 0;
}

.account-card-details span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.account-card-details i {
    color: var(--secondary);
}

.account-card-players {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
}

.player-tag {
    background: rgba(108, 60, 225, 0.2);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(108, 60, 225, 0.3);
}

.account-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.account-card-price {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
}

.btn-buy {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buy:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

/* Footer */
.site-footer {
    padding: 24px 20px;
    text-align: center;
    background: var(--darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Contact Section */
.contact-section {
    padding: 80px 20px;
    background: var(--darker);
    text-align: center;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-container h2 {
    font-family: var(--font-sans);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-container h2 i {
    color: var(--secondary);
    margin-right: 10px;
}

.contact-container p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-info {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1rem;
}

.contact-info i {
    color: var(--secondary);
    margin-right: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--dark);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 450px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--text);
}

.modal-content h2 {
    font-family: var(--font-sans);
    text-align: center;
    margin-bottom: 30px;
}

.modal-content h2 i {
    color: var(--secondary);
    margin-right: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.full-width {
    width: 100%;
}

/* Admin Dashboard */
.admin-dashboard {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 0 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-header h2 {
    font-family: var(--font-sans);
}

.admin-header h2 i {
    color: var(--secondary);
    margin-right: 10px;
}

.btn-danger {
    background: #E74C3C;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
}

.admin-form-container {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-form-container h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.admin-form-container h3 i {
    color: var(--secondary);
    margin-right: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-accounts-list {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-accounts-list h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.admin-accounts-list h3 i {
    color: var(--secondary);
    margin-right: 10px;
}

.admin-account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-account-item:last-child {
    border-bottom: none;
}

.admin-account-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-account-info img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.admin-account-actions button {
    background: #E74C3C;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 12px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.admin-account-actions button:hover {
    transform: scale(1.05);
}

/* Empty states (moved out of inline styles for a stricter CSP) */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 1.2rem;
}

.empty-state-subtitle {
    font-size: 0.9rem;
}

.empty-state-message {
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
}

.admin-account-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
}

.admin-login-container {
    max-width: 420px;
    margin: 0 auto;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    cursor: pointer;
    min-height: 44px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* Image upload / preview */
.file-input-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: var(--text);
    padding: 14px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 48px;
    box-sizing: border-box;
}

.file-input-label:hover,
.file-input-label:focus-within {
    border-color: var(--primary);
    color: var(--secondary);
}

.image-preview-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.image-preview {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--darker);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    min-height: 40px;
}

.field-error {
    color: #E74C3C;
    font-size: 0.85rem;
    margin-top: 8px;
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: #E74C3C;
}

/* Buttons: consistent disabled/loading state */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 30px;
    border-radius: 8px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: none;
    z-index: 3000;
    animation: slideIn 0.3s ease;
}

.toast.show {
    display: block;
}

.toast.success {
    border-color: #2ECC71;
}
.toast.error {
    border-color: #E74C3C;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.mobile-active {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 30px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 25px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .admin-dashboard {
        margin-top: 90px;
        padding: 0 15px;
    }

    .admin-header {
        flex-wrap: wrap;
        gap: 15px;
    }

    .admin-form-container,
    .admin-accounts-list {
        padding: 20px;
    }

    .admin-account-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .admin-account-info {
        flex-wrap: wrap;
    }

    .admin-account-actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .admin-account-actions button {
        margin-left: 0;
        flex: 1 1 auto;
        min-height: 44px;
        padding: 10px 18px;
    }

    .file-input-label {
        width: 100%;
        justify-content: center;
    }

    .image-preview-wrap {
        width: 100%;
    }

    .image-preview {
        width: 100%;
        max-width: 220px;
        height: 140px;
    }

    .btn-primary,
    .btn-danger {
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-telegram {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   Catalogue Admin (Stage 5) - private admin-only structured
   listing/image management. Reuses the existing admin design
   tokens/components above (--primary/--secondary/--dark/--card-bg,
   .form-group/.form-row/.btn-primary/.btn-danger/.btn-small/
   .field-error/.modal) rather than the public catalogue's
   hero-heavy Stage 4 palette - restrained accents only, for
   readability and information density.
   ============================================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Restrained catalogue accent tokens - a subset of Stage 4's palette,
   used only for state badges below, never decoratively. */
:root {
    --cat-yellow: #FFE600;
    --cat-green: #39FF14;
    --cat-orange: #FF7A00;
    --cat-purple: #9D4EDD;
    --cat-pink: #FF2BD6;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.admin-tab {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    transition: all 0.2s ease;
}

.admin-tab:hover {
    color: var(--text);
    border-color: var(--primary);
}

.admin-tab[aria-current="page"] {
    background: var(--gradient);
    color: var(--text);
    border-color: transparent;
}

.notification-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.3em;
    padding: 0.1em 0.4em;
    margin-left: 0.35em;
    border-radius: 999px;
    background: var(--cat-orange);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
}

.notification-item--unread {
    border-left: 3px solid var(--cat-orange);
}

.order-event-timeline {
    list-style: none;
    margin: 0.5em 0 0;
    padding: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
}

.order-event-timeline li {
    padding: 0.4em 0 0.4em 1em;
    font-size: 0.9rem;
}

.admin-tab:focus-visible,
.btn-primary:focus-visible,
.btn-danger:focus-visible,
.btn-small:focus-visible,
.btn-link-clear:focus-visible,
.file-input-label:focus-visible {
    outline: 2px solid var(--cat-yellow);
    outline-offset: 2px;
}

.admin-panel[hidden] {
    display: none;
}

.catalogue-form-publicid {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.catalogue-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn-link-clear {
    background: none;
    border: none;
    color: var(--secondary);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 6px;
    padding: 4px 0;
    min-height: 30px;
}

/* ---- State badges: colour is always paired with a text label in the
   markup itself (never colour-only), matching CATALOGUE_UI_SYSTEM.md
   Section 3's accessibility rule. ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
}

.badge--tier-premium { color: var(--cat-purple); border-color: var(--cat-purple); }
.badge--tier-b_rank { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.badge--tier-standard { color: var(--text-muted); border-color: rgba(255, 255, 255, 0.15); }

.badge--availability-available { color: var(--cat-green); border-color: var(--cat-green); }
.badge--availability-reserved { color: var(--cat-orange); border-color: var(--cat-orange); }
.badge--availability-unavailable { color: var(--text-muted); border-color: rgba(255, 255, 255, 0.2); }
.badge--availability-suspended { color: #E74C3C; border-color: #E74C3C; }

.badge--draft { color: var(--text-muted); border-color: rgba(255, 255, 255, 0.2); }
.badge--published { color: var(--cat-green); border-color: var(--cat-green); }
.badge--featured { color: var(--cat-pink); border-color: var(--cat-pink); }
.badge--verified { color: var(--secondary); border-color: var(--secondary); }
.badge--primary-image { color: var(--cat-yellow); border-color: var(--cat-yellow); }

/* ---- Catalogue listings list (accessible card layout, not a real
   <table> - role="table"/"row"/"cell" on divs would need many more ARIA
   attributes than the actual content complexity here warrants; a
   card list already conveys the same structure to assistive tech
   as long as every field carries its own visible label). ---- */
.catalogue-admin-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.catalogue-admin-row:last-child {
    border-bottom: none;
}

.catalogue-admin-row-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.catalogue-admin-row-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.catalogue-admin-row-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.catalogue-admin-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 6px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.catalogue-admin-meta dt {
    font-weight: 600;
    color: var(--text-muted);
}

.catalogue-admin-meta dd {
    color: var(--text);
    margin: 0;
}

.catalogue-admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.catalogue-admin-actions button {
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--card-bg);
    color: var(--text);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.catalogue-admin-actions button:hover {
    border-color: var(--primary);
    color: var(--secondary);
}

.catalogue-admin-actions button.action-destructive {
    border-color: #E74C3C;
    color: #E74C3C;
}

.catalogue-admin-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* ---- Image manager ---- */
.image-upload-form {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.image-upload-errors {
    list-style: none;
    color: #E74C3C;
    font-size: 0.85rem;
    margin-top: 10px;
}

.image-manager-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.image-manager-item {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-manager-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--darker);
}

.image-manager-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    word-break: break-word;
}

.image-manager-field label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.image-manager-field select,
.image-manager-field input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.85rem;
}

.image-manager-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.image-manager-actions button {
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 0.78rem;
}

.image-manager-actions button:hover {
    border-color: var(--primary);
    color: var(--secondary);
}

.image-manager-actions button.action-destructive {
    border-color: #E74C3C;
    color: #E74C3C;
}

@media (max-width: 768px) {
    .catalogue-admin-row-header {
        flex-direction: column;
    }

    .catalogue-admin-actions button,
    .image-manager-actions button {
        flex: 1 1 auto;
    }

    .image-manager-list {
        grid-template-columns: 1fr;
    }
}
