/* --- SMM Module Styles --- */


.smm-shell {
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    display: grid;
    gap: 30px;
    position: relative;
    z-index: 10;
}

.hero-panel, .toolbar-panel, .stats-grid, .table-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(50px) saturate(210%);
    border-radius: 40px;
    border: 1px solid var(--panel-border);
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.5),
        inset 0 0 60px rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
    animation: panelSlide 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

@keyframes panelSlide {
    from { opacity: 0; transform: translateY(20px); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-panel { animation-delay: 0.1s; }
.toolbar-panel { animation-delay: 0.2s; }
.stats-grid { animation-delay: 0.3s; }
.table-panel { animation-delay: 0.4s; }

.hero-panel {
    padding: 40px 50px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
}

.hero-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 40%);
    pointer-events: none;
}

.eyebrow {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(195, 0, 47, 0.1);
    border: 1px solid rgba(195, 0, 47, 0.3);
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    box-shadow: 0 0 20px rgba(195, 0, 47, 0.15);
}

.hero-panel h1 {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #fff, #ffcbd6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-badges {
    display: flex;
    align-items: stretch;
    gap: 18px;
    flex-wrap: nowrap;
}

.badge-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px 28px;
    min-width: 220px;
    transition: var(--transition);
}

.badge-card.accent {
    border-color: rgba(195, 0, 47, 0.4);
    background: rgba(195, 0, 47, 0.08);
    box-shadow: 0 10px 30px rgba(195, 0, 47, 0.1);
}

.badge-label {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.badge-card strong {
    font-size: 28px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.toolbar-panel {
    padding: 16px 40px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    background: rgba(15, 15, 18, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 84px;
}

.month-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
}

.switch-btn {
    height: 52px;
    display: inline-flex;
    align-items: center;
    padding: 0 28px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.switch-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(195, 0, 47, 0.3);
}

.toolbar-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-width: 0;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 320px;
    min-width: 0;
}

.search-box i {
    position: absolute;
    left: 20px;
    color: var(--muted);
    font-size: 13px;
    pointer-events: none;
}

.search-box input {
    height: 52px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0 20px 0 50px;
    color: #fff;
    width: 100%;
    min-width: 240px;
    outline: none;
    transition: all 0.4s ease;
    font-size: 14px;
    font-family: inherit;
}

.search-box input:focus {
    border-color: var(--accent-red);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 40px rgba(195, 0, 47, 0.2);
}

.toolbar-btn {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.toolbar-btn:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.toolbar-btn.danger {
    background: rgba(195, 0, 47, 0.08);
    border: 1px solid rgba(195, 0, 47, 0.3);
    color: #fff;
}

.toolbar-btn.primary {
    background: var(--accent-gradient);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.toolbar-btn.danger:hover, .toolbar-btn.primary:hover {
    background: var(--accent-gradient);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(195, 0, 47, 0.4);
    filter: brightness(1.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    background: none;
    border: none;
    box-shadow: none;
}

.stat-card {
    background: var(--panel-bg);
    backdrop-filter: blur(40px);
    border: 1px solid var(--panel-border);
    border-radius: 32px;
    padding: 30px 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 14px;
    opacity: 0.8;
}

.stat-card strong {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 800;
    display: block;
    background: linear-gradient(to right, #fff, var(--muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.table-panel {
    padding: 40px;
}

.table-topbar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 800;
    margin: 0;
}

.table-wrap {
    margin-top: 30px;
    overflow-x: auto;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3);
}

.smm-table {
    width: 100%;
    border-collapse: collapse;
}

.smm-table th, .smm-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.smm-table th {
    background: rgba(255, 255, 255, 0.02);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
}

.metric-input {
    width: 80px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px;
    color: #fff;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
    font-weight: 700;
}

.metric-input:focus {
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.6);
}

.save-row-btn {
    padding: 10px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #7a001f);
    color: #fff;
    border: none;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(195, 0, 47, 0.2);
}

.save-row-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(195, 0, 47, 0.4);
    filter: brightness(1.1);
}

.row-total {
    font-weight: 800;
    color: var(--accent);
    font-size: 16px;
}

.updated-at {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

@media (max-width: 1200px) {
    .hero-panel {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .hero-badges {
        justify-content: flex-start;
    }

    .toolbar-panel {
        grid-template-columns: 1fr;
    }

    .toolbar-actions {
        justify-content: flex-start;
    }

    .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .smm-shell { width: calc(100vw - 30px); margin: 30px auto; }
    .hero-panel { padding: 30px; }
    .hero-panel h1 { font-size: 36px; }
    .hero-badges,
    .toolbar-actions,
    .month-switch {
        flex-wrap: wrap;
    }

    .toolbar-panel { padding: 20px; }

    .badge-card,
    .search-box,
    .search-box input {
        width: 100%;
        min-width: 0;
    }
}
