/* Base Shopee Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

a { text-decoration: none; }

/* Navbar */
.shopee-navbar {
    background-color: #ee4d2d;
    padding: 10px 0;
    color: white;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-title {
    font-size: 16px;
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: white;
    font-weight: 500;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.user-profile:hover {
    opacity: 0.8;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    color: #ee4d2d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Container */
.mining-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Top Panel */
.mining-top-panel {
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.mining-top-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.mining-title-box h1 {
    font-size: 28px;
    color: #222;
    margin-bottom: 5px;
}

.mining-title-box p {
    color: #757575;
    font-size: 14px;
}

.mining-stats-box {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.stat-item.highlight .stat-value {
    color: #ee4d2d;
}

.stat-label {
    font-size: 11px;
    color: #888;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Timeline */
.mining-timeline-panel {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 12px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #00bfa5;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #00bfa5;
    border-radius: 50%;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 191, 165, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(0, 191, 165, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 191, 165, 0); }
}

.countdown {
    color: #666;
}
.countdown strong {
    color: #333;
    font-size: 14px;
    margin-left: 5px;
}

.timeline-bars {
    display: flex;
    gap: 10px;
}

.time-segment {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.time-segment .bar {
    height: 6px;
    background-color: #eee;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.time-segment.active .bar {
    background-color: #fce8e5; /* Light red */
}

.time-segment.active .bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 50%; /* Dynamic via JS later */
    background-color: #ee4d2d;
    border-radius: 3px;
}

.time-segment.past .bar {
    background-color: #ee4d2d;
}

.time-label {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.time-segment.active .time-label {
    color: #ee4d2d;
    font-weight: 700;
}

/* Filters */
.mining-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 24px;
}

.mining-btn {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.mining-btn.active {
    background-color: #ee4d2d;
    color: white;
}

.mining-btn.outline {
    background-color: transparent;
    border: 1px solid #ddd;
    color: #555;
}

.mining-btn.outline:hover {
    background-color: #f0f0f0;
}

/* Product Grid */
.mining-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.niche-section {
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ee4d2d;
    padding-bottom: 10px;
}

.niche-title {
    font-size: 20px;
    color: #222;
    font-weight: 600;
}

/* Product Card */
.mining-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.mining-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #fafafa;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-top {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ee4d2d;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(238, 77, 45, 0.4);
}

.badge-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.badge-demand {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: #ff9800;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 14px;
    color: #222;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 12px;
}

.card-price {
    color: #ee4d2d;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.card-price span {
    font-size: 14px;
}

.card-stats {
    font-size: 11px;
    color: #757575;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-stats strong {
    color: #333;
}

.card-actions {
    margin-top: auto;
}

.btn-analise {
    width: 100%;
    background-color: #ee4d2d;
    color: white;
    border: 1px solid #ee4d2d;
    border-radius: 4px;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-analise:hover {
    background-color: #d73a1c;
    border-color: #d73a1c;
}

/* Modal Metrics Layout (General) */
.metrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.metrics-header h3 { font-size: 16px; font-weight: 600; color: #333; }

.time-tabs {
    display: flex; background: #f5f5f5; border-radius: 6px; overflow: hidden;
}

.time-tabs span {
    padding: 6px 12px; font-size: 11px; color: #666; cursor: pointer;
    transition: all 0.2s;
}

.time-tabs span.active {
    background-color: #ee4d2d; color: white;
}

.period-label { font-size: 12px; color: #888; margin-bottom: 20px; }
.period-label span { color: #ee4d2d; font-weight: 500; }

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.metric-card {
    background-color: #fafafa;
    border-radius: 8px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid #f0f0f0;
    text-align: center;
}

.mlabel { font-size: 9px; color: #757575; font-weight: 600; letter-spacing: 0.5px; }
.mvalue { font-size: 16px; font-weight: bold; color: #333; }


/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.light-modal {
    background-color: #ffffff;
    color: #333;
    width: 600px;
    max-width: 95vw;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .light-modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    color: #555;
    width: 30px; height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex; align-items: center; justify-content: center;
}

.modal-close:hover {
    background: #e0e0e0; color: #333;
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.modal-header img {
    width: 80px; height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #eee;
}

.modal-header-info h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #222;
}

.modal-header-info span {
    font-size: 13px;
    color: #757575;
}

.modal-top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
}

.price-pot-col {
    width: 100%;
    text-align: center;
}

.price-pot-col .label {
    font-size: 11px; color: #757575; font-weight: 600; letter-spacing: 0.5px;
}

.price-val {
    font-size: 26px; font-weight: bold; color: #ee4d2d;
    margin-top: 8px; margin-bottom: 15px;
}

.pot-header {
    display: flex; justify-content: space-between;
    font-size: 12px; margin-bottom: 8px; font-weight: 600;
    color: #333;
}

.pot-percent { color: #ee4d2d; }

.progress-bar {
    height: 10px; background-color: #f0f0f0; border-radius: 5px; overflow: hidden;
}

.progress-fill {
    height: 100%; background-color: #ee4d2d;
}

.actions-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
}

.btn-ugc {
    background-color: #ee4d2d;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}

.btn-ugc:hover { background-color: #d73a1c; }

.btn-groups {
    background-color: white;
    color: #666;
    border: 1px solid #ddd;
    padding: 14px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-groups:hover {
    background-color: #f9f9f9;
    border-color: #ccc;
}

.btn-sell {
    background-color: #ee4d2d;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}

.btn-sell:hover {
    background-color: #d73a1c;
}


/* Groups Search Modal (Inner) */
/* Groups Modal Premium */
.groups-modal {
    background-color: white;
    width: 550px;
    max-width: 95vw;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    position: relative;
}

#groups-loading p {
    margin-top: 25px;
    color: #444;
    font-size: 16px;
    font-weight: 500;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ee4d2d;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.groups-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.groups-header h3 {
    color: #ee4d2d;
    font-size: 20px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.groups-header p {
    font-size: 14px;
    color: #666;
}

.groups-list {
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
    margin-bottom: 25px;
    padding-right: 5px;
}

/* Custom Scrollbar for groups */
.groups-list::-webkit-scrollbar { width: 5px; }
.groups-list::-webkit-scrollbar-track { background: #f1f1f1; }
.groups-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }

.group-item {
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.group-item:hover {
    border-color: #ee4d2d;
    background-color: #fff9f8;
}

.group-info { flex: 1; }

.group-info h4 {
    font-size: 14px;
    color: #222;
    margin-bottom: 4px;
    font-weight: 600;
}

.group-info span {
    font-size: 11px;
    color: #00bfa5;
    background: #e6f9f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.group-actions {
    display: flex;
    gap: 8px;
}

.btn-group-action {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn-group-action.open {
    background-color: #ee4d2d;
    color: white;
    border: 1px solid #ee4d2d;
}

.btn-group-action.copy {
    background-color: white;
    color: #555;
    border: 1px solid #ddd;
}

.btn-group-action:hover {
    transform: scale(1.05);
}

.btn-close-groups {
    width: 100%;
    padding: 14px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 10px;
    color: #555;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-close-groups:hover { background-color: #eeeeee; }

/* RESPONSIVE (MOBILE) */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 10px; padding: 10px; }
    .nav-links { width: 100%; justify-content: center; gap: 15px; }

    .mining-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; padding: 0 10px; }
    .card-title { font-size: 11px; height: 32px; }
    .card-price { font-size: 14px; }
    .card-stats { font-size: 9px; gap: 4px; }
    .badge-top, .badge-category, .badge-demand { font-size: 9px; padding: 3px 6px; }
    .card-content { padding: 10px; }
    .btn-analise { font-size: 12px; padding: 8px 0; }

    .mining-top-info { flex-direction: column; gap: 20px; }
    .mining-stats-box { width: 100%; justify-content: space-between; }
    .stat-value { font-size: 20px; }
    .stat-label { font-size: 9px; }

    /* Modal Mobile Fixes */
    .light-modal { padding: 20px 15px; }
    .metrics-header { flex-direction: column; gap: 12px; }
    
    .metrics-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 8px !important; 
    }

    .metric-card { padding: 12px 5px !important; }
    .mvalue { font-size: 14px !important; }
    .mlabel { font-size: 8px !important; }

    .actions-col { max-width: 100%; }
    .btn-ugc, .btn-groups { width: 100% !important; padding: 15px !important; font-size: 14px !important; }
}

/* --- NOVOS ESTILOS: GERADOR DE ANÚNCIO --- */

/* Modal de Carregamento (Ad) */
#ad-loading-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#ad-loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.loading-modal-ad {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#ad-loading-overlay.active .loading-modal-ad {
    transform: scale(1);
}

.loading-animation-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.shopee-circle {
    width: 100%;
    height: 100%;
    border: 6px solid #fce8e5;
    border-top: 6px solid #ee4d2d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.inner-pulse {
    position: absolute;
    top: 50%; left: 50%;
    width: 40px; height: 40px;
    background-color: #ee4d2d;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: adPulse 1.5s ease-in-out infinite;
}

@keyframes adPulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
}

.loading-modal-ad p {
    color: #333;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
}

/* Modal de Resultado (Ad Ready) */
#ad-result-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#ad-result-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.ad-result-content {
    background-color: white;
    width: 900px;
    max-width: 95vw;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    box-shadow: 0 30px 70px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

#ad-result-overlay.active .ad-result-content {
    transform: translateY(0);
}

.ad-result-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.ad-icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ee4d2d, #ff7357);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(238, 77, 45, 0.2);
}

.ad-title-info h2 { font-size: 22px; color: #222; margin-bottom: 4px; }
.ad-title-info p { font-size: 14px; color: #757575; }

.ad-main-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
}

/* Mídia Column */
.ad-media-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ad-media-viewer {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}

.ad-media-viewer img, .ad-media-viewer video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ad-media-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.ad-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    object-fit: cover;
    transition: all 0.2s;
    background: #eee;
}

.ad-thumb.active { border-color: #ee4d2d; }
.ad-thumb:hover { opacity: 0.8; }

/* Text Column */
.ad-text-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.copy-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.copy-section label {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-box {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px 45px 12px 15px;
    position: relative;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.copy-box.long {
    min-height: 120px;
    white-space: pre-line;
}

.copy-box.tags {
    color: #00bfa5;
    font-weight: 500;
}

.btn-copy-mini {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ee4d2d;
    color: white;
    border: none;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-copy-mini:hover { background-color: #d73a1c; }

.btn-download-all {
    margin-top: 10px;
    background-color: #333;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background 0.2s;
}

.btn-download-all:hover { background-color: #000; }

/* Estilo para vídeos no visualizador */
.ad-video-icon {
    position: absolute;
    color: white;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    pointer-events: none;
}

/* Responsividade para o Modal de Anúncio */
@media (max-width: 900px) {
    .ad-main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .ad-result-content {
        width: 95vw;
        padding: 20px;
    }
    .ad-media-viewer {
        aspect-ratio: 1 / 1;
        max-height: 350px;
    }
}

@media (max-width: 600px) {
    .ad-result-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .ad-icon-box {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    .ad-title-info h2 {
        font-size: 18px;
    }
    .copy-box {
        font-size: 13px;
        padding: 10px 40px 10px 12px;
    }
    .btn-download-all {
        padding: 14px;
        font-size: 14px;
    }
}

/* Pagination Simulation */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.page-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: white;
    color: #555;
    font-size: 16px;
    font-weight: 400;
    cursor: default;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: all 0.2s;
}

.page-item.active {
    background-color: #ee4d2d;
    color: white;
    border-color: #ee4d2d;
    font-weight: 500;
}

.page-item.dots {
    border: none;
    background: transparent;
    box-shadow: none;
}

.page-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 16px;
    padding: 0 15px;
    cursor: default;
}
/* ==========================================
   MOBILE RESPONSIVENESS (MINING)
   ========================================== */
@media (max-width: 1024px) {
    .mining-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mining-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mining-top-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .mining-stats-box {
        width: 100%;
        justify-content: space-between;
    }
    
    .light-modal {
        width: 95%;
        padding: 15px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mining-container {
        margin: 15px auto;
    }
}

@media (max-width: 480px) {
    .mining-grid {
        grid-template-columns: 1fr;
    }
    
    .mining-title-box h1 {
        font-size: 22px;
    }
    
    .card-price {
        font-size: 18px;
    }
    
    .modal-header img {
        width: 60px;
        height: 60px;
    }
    
    .ad-result-content {
        width: 95% !important;
        padding: 15px !important;
    }
    
    .ad-main-layout {
        flex-direction: column;
    }
    
    .ad-media-column, .ad-text-column {
        width: 100%;
    }
    
    .shopee-navbar .nav-title {
        font-size: 14px;
    }
}

/* Ocultar Sidebar no Mobile (Mining Only) */
@media (max-width: 1024px) {
    .sidebar, 
    .mobile-menu-toggle,
    .app-wrapper.mobile-open::after {
        display: none !important;
    }
    
    .dashboard-container {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .nav-back-link {
        display: flex !important;
        align-items: center;
        gap: 5px;
        color: white;
        text-decoration: none;
        font-size: 13px;
        margin-right: 15px;
        background: rgba(255,255,255,0.1);
        padding: 5px 10px;
        border-radius: 4px;
    }
}

.nav-back-link {
    display: none;
}


