:root {
    --bg-dark: #08060a;
    --bg-card: #120e17;
    --bg-card-hover: #1b1523;
    --bg-sidebar: #0d0a12;
    --primary: #9e1b1b;
    --primary-hover: #b82323;
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.2);
    --text-primary: #e6e1e8;
    --text-secondary: #9c92a3;
    --border-color: #241c2e;
    --success: #28a745;
    --danger: #dc3545;
    --font-heading: 'Cinzel', serif;
    --font-sans: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding: 0 8px;
}

.brand-icon {
    font-size: 28px;
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(158, 27, 27, 0.6));
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.badge {
    font-size: 10px;
    background: rgba(158, 27, 27, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(158, 27, 27, 0.4);
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.nav-btn:hover {
    background-color: var(--bg-card-hover);
    color: var(--text-primary);
}

.nav-btn.active {
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(158, 27, 27, 0.3);
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.btn {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 16px rgba(184, 35, 35, 0.4);
}

.btn-block {
    width: 100%;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Main Content */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 32px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.header-title h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--text-primary);
}

.subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.search-box {
    position: relative;
    width: 300px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

#global-search {
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease;
}

#global-search:focus {
    border-color: var(--primary);
}

/* Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.metric-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.metric-icon.gold {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
}

.metric-icon.active-users {
    background: rgba(40, 167, 69, 0.15);
    color: var(--success);
}

.metric-icon.victims {
    background: rgba(220, 53, 69, 0.15);
    color: var(--danger);
}

.metric-icon.victories {
    background: rgba(0, 123, 255, 0.15);
    color: #3399ff;
}

.metric-label {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
}

.metric-data h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Cards & Tables */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 24px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.data-table th {
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.data-table tbody tr:hover {
    background-color: var(--bg-card-hover);
}

.text-gold {
    color: var(--gold);
    font-weight: 600;
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-center {
    text-align: center;
}

.select-input, .form-input {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    outline: none;
}

/* Timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    background: rgba(255, 255, 255, 0.015);
    border-left: 3px solid var(--primary);
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activity-player {
    font-weight: 600;
    font-size: 14px;
}

.activity-summary {
    font-size: 12px;
    color: var(--gold);
}

.activity-time {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Form */
.config-form {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    color: var(--text-secondary);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

/* Scrape Modal Overlay */
.scrape-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 2, 7, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: fadeIn 0.25s ease-out;
}

.scrape-modal-overlay.hidden {
    display: none;
}

/* Scrape Progress Card */
.scrape-progress-card {
    background: linear-gradient(135deg, #181124, #0b0712);
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(158, 27, 27, 0.35);
    border-radius: 16px;
    padding: 26px 30px;
    width: 90%;
    max-width: 680px;
    transition: all 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.badge-glow {
    background: rgba(158, 27, 27, 0.3);
    color: #ff8585;
    border: 1px solid var(--primary);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(158, 27, 27, 0.4);
}

.progress-bar-container {
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #9e1b1b, #d4af37);
    border-radius: 6px;
    transition: width 0.4s ease-out;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.progress-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    font-size: 14px;
    min-width: 300px;
    max-width: 420px;
    animation: slideInRight 0.3s ease-out forwards;
}

.toast.toast-success {
    border-left: 4px solid var(--success);
}

.toast.toast-danger {
    border-left: 4px solid var(--danger);
}

.toast.toast-info {
    border-left: 4px solid var(--gold);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Player Profile Link */
.player-profile-link {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.player-profile-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.profile-icon {
    font-size: 11px;
    color: #d4af37;
    opacity: 0.9;
    transition: all 0.2s ease;
}

.player-profile-link:hover .profile-icon {
    color: #ffffff;
    opacity: 1;
    transform: translate(1px, -1px);
}

/* Terminal Console Wrapper */
.terminal-console-wrapper {
    margin-top: 16px;
    background: #09060c;
    border: 1px solid #281d33;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.terminal-header {
    background: #140d1c;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #281d33;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    font-size: 11px;
    color: var(--text-secondary);
    font-family: monospace;
    margin-left: 6px;
}

.terminal-body {
    padding: 12px 14px;
    max-height: 150px;
    overflow-y: auto;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #a6e22e;
    background: #08050a;
}

.log-line {
    white-space: pre-wrap;
    word-break: break-all;
}

.log-line.text-muted {
    color: #75715e;
}

/* Sortable Headers */
.sortable-table th[data-sort] {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.sortable-table th[data-sort]:hover {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
}

.sortable-table th .sort-icon {
    font-size: 11px;
    margin-left: 5px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.sortable-table th:hover .sort-icon,
.sortable-table th.sorted-asc .sort-icon,
.sortable-table th.sorted-desc .sort-icon {
    opacity: 1;
    color: #d4af37;
}

/* Modal Overlay & Card for Player Details */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 3, 8, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
}

.modal-overlay.hidden {
    display: none;
}

.player-modal-card {
    background: linear-gradient(135deg, #181124, #0b0712);
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(158, 27, 27, 0.35);
    border-radius: 16px;
    padding: 24px 28px;
    width: 92%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #281d33;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.player-title-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-user-icon {
    font-size: 32px;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(231, 76, 60, 0.4);
    border-color: #e74c3c;
    color: #ff7675;
    transform: scale(1.08);
}

.player-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.p-metric-card {
    background: rgba(20, 14, 28, 0.8);
    border: 1px solid #2d203b;
    border-radius: 10px;
    padding: 14px 18px;
}

.p-metric-card.gold { border-left: 4px solid #d4af37; }
.p-metric-card.wins { border-left: 4px solid #27c93f; }
.p-metric-card.losses { border-left: 4px solid #ff5f56; }
.p-metric-card.profile { border-left: 4px solid #3b82f6; display: flex; flex-direction: column; justify-content: center; }

.p-label {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.p-metric-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-detail {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #d4af37;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-detail:hover {
    background: #d4af37;
    color: #000;
}

.btn-delete {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 6px;
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #e74c3c;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-delete:hover {
    background: #e74c3c;
    color: #fff;
}

/* ==========================================================================
   MINI TERMINAL RETRO DA SIDEBAR (LIVE SCRAPER CONSOLE)
   ========================================================================== */
.sidebar-mini-terminal {
    margin-top: 14px;
    background: #06040a;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), inset 0 0 12px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
}

.mini-terminal-header {
    background: linear-gradient(90deg, #120c1b, #1d122b);
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: #d4af37;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.terminal-ctrls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.term-btn {
    background: transparent;
    border: none;
    color: #8c8299;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.term-btn:hover {
    color: #ffd700;
    background: rgba(212, 175, 55, 0.15);
}

.mini-terminal-header .live-dot {
    width: 7px;
    height: 7px;
    background-color: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 8px #2ecc71;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 2px #2ecc71; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 8px #2ecc71; }
    100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 2px #2ecc71; }
}

.mini-terminal-body {
    height: 190px;
    max-height: 190px;
    overflow-y: auto;
    padding: 8px 10px;
    font-family: 'Consolas', 'Fira Code', 'Courier New', monospace;
    font-size: 10.5px;
    line-height: 1.5;
    color: #a8f0b4;
    background-color: #050308;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.35) transparent;
}

.mini-terminal-body::-webkit-scrollbar {
    width: 5px;
}
.mini-terminal-body::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.35);
    border-radius: 4px;
}

.term-line {
    margin-bottom: 2px;
    word-break: break-all;
    white-space: pre-wrap;
    opacity: 0.95;
    animation: termFade 0.15s ease;
}

@keyframes termFade {
    from { opacity: 0; transform: translateY(1px); }
    to { opacity: 0.95; transform: translateY(0); }
}

.term-line .term-time {
    color: #64748b;
    font-weight: 500;
    margin-right: 4px;
}

.term-line.highlight {
    color: #ffd700;
}

.term-line.error {
    color: #ff6b6b;
    font-weight: 600;
}

.term-line.success {
    color: #34d399;
}

.term-line.info {
    color: #60a5fa;
}

.term-line.system {
    color: #94a3b8;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 2px;
    margin: 4px 0;
}

.action-buttons-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-outline-gold {
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline-gold:hover {
    background: rgba(212, 175, 55, 0.15);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.my-chars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.my-char-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.my-char-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.5);
}

.feature-box {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   GRADE DE MÓDULOS DE CONFIGURAÇÃO (2 COLUNAS EQUILIBRADAS - 2x2)
   ========================================================================== */
.config-modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: stretch;
    width: 100%;
}

@media (min-width: 1500px) {
    .config-modules-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

@media (max-width: 860px) {
    .config-modules-grid {
        grid-template-columns: 1fr;
    }
}

.config-module-card {
    background: #150f1f;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.config-module-card:hover {
    border-color: rgba(212, 175, 55, 0.45);
    transform: translateY(-2px);
}

.module-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}

.module-card-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.module-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.module-card-body .form-group {
    margin-bottom: 0;
}

.module-card-body label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
    min-height: 18px; /* Mantém alinhamento horizontal perfeitamente nivelado */
}

.module-card-body small {
    display: block;
    font-size: 11px;
    margin-top: 4px;
    color: #8c8299;
}

.module-info-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px dashed rgba(212, 175, 55, 0.25);
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 12px;
    color: #e0d8ea;
    display: flex;
    align-items: center;
}

.module-card-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.module-card-footer .btn {
    padding: 10px 14px;
    font-weight: 600;
    font-size: 12.5px;
}

.badge-blue {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-green {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.4);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

