/**
 * Prime SEO Dashboard - Bento Grid Styles
 *
 * @package Prime_SEO
 */

/* Reset & Base */
.prime-dashboard-wrap {
    margin: -8px -20px 0 -2px;
    background: #f1f5f9;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.prime-dashboard-wrap * {
    box-sizing: border-box;
}

/* Header - Dark Premium Style */
.prime-dashboard-header {
    background: linear-gradient(160deg, rgb(17, 24, 39) 0%, rgb(31, 41, 55) 50%, rgb(17, 24, 39) 100%);
    padding: 32px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.prime-dashboard-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.prime-dashboard-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.prime-dashboard-logo .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #fff;
}

.prime-dashboard-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.prime-dashboard-subtitle {
    font-size: 13px;
    color: #818cf8;
    margin: 6px 0 0;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.prime-dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prime-dashboard-version {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.3);
    letter-spacing: 0.5px;
}

/* Bento Grid - 4 main columns + 2 fixed right columns */
.prime-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 280px 280px;
    grid-auto-rows: minmax(140px, auto);
    gap: 20px;
    padding: 28px 32px;
    max-width: 1800px;
}

.prime-bento-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prime-bento-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* SEO Score - Left side, 2 cols × 2 rows */
.prime-bento-score {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
}

/* Posts Stat - row 1, col 3 */
.prime-bento-posts {
    grid-column: 3;
    grid-row: 1;
}

/* Pages Stat - row 1, col 4 */
.prime-bento-pages {
    grid-column: 4;
    grid-row: 1;
}

/* AI Crawler Stats - Right side, 2 cols × 2 rows */
.prime-bento-ai-stats {
    grid-column: 5 / 7;
    grid-row: 1 / 3;
}

/* Redirects + 404 - row 2, cols 3-4 */
.prime-bento-combined {
    grid-column: 3 / 5;
    grid-row: 2;
}

/* Quick Actions - row 3, cols 1-2 */
.prime-bento-actions {
    grid-column: 1 / 3;
    grid-row: 3;
}

/* Needs Attention - row 3, cols 3-4 */
.prime-bento-problems {
    grid-column: 3 / 5;
    grid-row: 3;
}

/* IndexNow Stats - row 3, cols 5-6 */
.prime-bento-indexnow {
    grid-column: 5 / 7;
    grid-row: 3;
}

/* Modules - row 4, cols 1-4 */
.prime-bento-modules {
    grid-column: 1 / 5;
    grid-row: 4;
}

.prime-score-circle {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
}

.prime-score-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.prime-score-bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 8;
}

.prime-score-progress {
    fill: none;
    stroke: var(--score-color, #6366f1);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: calc(283 - (283 * var(--score-percent, 0)) / 100);
    transition: stroke-dashoffset 1s ease-out;
}

.prime-score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.prime-score-number {
    font-size: 48px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.prime-score-max {
    font-size: 18px;
    color: #94a3b8;
    font-weight: 500;
}

.prime-score-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px;
}

.prime-score-label {
    font-size: 15px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.prime-score-info p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Stat Items */
.prime-bento-stat {
    display: flex;
    align-items: center;
    gap: 16px;
}

.prime-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.prime-stat-icon .dashicons {
    font-size: 26px;
    width: 26px;
    height: 26px;
    color: #fff;
}

.prime-stat-content {
    display: flex;
    flex-direction: column;
}

.prime-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.1;
}

.prime-stat-label {
    font-size: 14px;
    color: #64748b;
    margin-top: 2px;
}

/* Combined Stats (Redirects + 404) */
.prime-combined-row {
    display: flex;
    gap: 32px;
}

.prime-combined-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.prime-combined-item .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.prime-combined-number {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    display: block;
    line-height: 1.1;
}

.prime-combined-label {
    font-size: 13px;
    color: #64748b;
}

.prime-combined-link {
    display: inline-block;
    margin-top: 16px;
    color: #6366f1;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.prime-combined-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* Quick Actions */
.prime-bento-actions h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px;
}

.prime-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.prime-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.prime-action-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.prime-action-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #6366f1;
}

/* Modules Section */
.prime-modules-header {
    margin-bottom: 20px;
}

.prime-modules-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px;
}

.prime-modules-header p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

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

/* Module Card */
.prime-module-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.25s ease;
    position: relative;
}

.prime-module-card:hover {
    border-color: transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #6366f1 100%) border-box;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.prime-module-card.is-active {
    background: #fff;
    border-color: #c7d2fe;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

.prime-module-card.is-active:hover {
    border-color: transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #6366f1 100%) border-box;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.prime-module-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.prime-module-icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.prime-module-info {
    flex: 1;
    min-width: 0;
}

.prime-module-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.prime-module-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.prime-module-help {
    position: relative;
    cursor: help;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.prime-module-help .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #94a3b8;
    transition: color 0.15s ease;
}

.prime-module-help:hover .dashicons {
    color: #6366f1;
}

/* Tooltip */
.prime-module-help::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    white-space: normal;
    width: 220px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    pointer-events: none;
}

.prime-module-help::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e293b;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.prime-module-help:hover::after,
.prime-module-help:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Module Actions */
.prime-module-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.prime-module-settings {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    text-decoration: none;
    transition: all 0.15s ease;
}

.prime-module-settings:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #6366f1;
}

.prime-module-settings .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Toggle Switch */
.prime-module-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.prime-module-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.prime-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cbd5e1;
    border-radius: 24px;
    transition: all 0.25s ease;
}

.prime-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.prime-module-toggle input:checked + .prime-toggle-slider {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.prime-module-toggle input:checked + .prime-toggle-slider:before {
    transform: translateX(20px);
}

/* Problems Section */
.prime-problems-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.prime-problems-header .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.prime-problems-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.prime-problems-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.prime-problems-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.prime-problems-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.prime-problem-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.prime-problem-text {
    flex: 1;
    font-size: 13px;
    color: #475569;
}

.prime-problems-list a {
    font-size: 12px;
    font-weight: 600;
    color: #6366f1;
    text-decoration: none;
}

.prime-problems-list a:hover {
    text-decoration: underline;
}

/* Problems - Success State */
.prime-problems-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 0;
    gap: 12px;
}

.prime-problems-success p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

/* AI Crawler Stats - styles */

.prime-ai-stats-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.prime-ai-stats-header .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.prime-ai-stats-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.prime-ai-stats-numbers {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.prime-ai-stat-main,
.prime-ai-stat-secondary {
    display: flex;
    flex-direction: column;
}

.prime-ai-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.1;
}

.prime-ai-stat-secondary .prime-ai-stat-value {
    font-size: 20px;
    color: #64748b;
}

.prime-ai-stat-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.prime-ai-stats-bots {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px 12px;
}

.prime-ai-bot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.prime-ai-bot-name {
    color: #475569;
    font-weight: 500;
}

.prime-ai-bot-count {
    color: #8b5cf6;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.prime-ai-stats-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 0;
    gap: 8px;
}

.prime-ai-stats-empty p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.prime-ai-stats-hint {
    font-size: 12px;
    color: #64748b;
}

/* AI Activity Feed */
.prime-ai-activity {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.prime-ai-activity-title {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px;
}

.prime-ai-activity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prime-ai-activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
}

.prime-ai-activity-bot {
    font-weight: 600;
    color: #1e293b;
    min-width: 100px;
}

.prime-ai-activity-url {
    flex: 1;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.15s ease;
}

.prime-ai-activity-url:hover {
    color: #6366f1;
    text-decoration: underline;
}

.prime-ai-activity-time {
    color: #94a3b8;
    font-size: 12px;
    white-space: nowrap;
}

.prime-ai-activity-link {
    display: inline-block;
    margin-top: 12px;
    color: #6366f1;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.prime-ai-activity-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* IndexNow Stats - styles */

.prime-indexnow-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.prime-indexnow-header .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.prime-indexnow-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.prime-indexnow-numbers {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}

.prime-indexnow-stat-main,
.prime-indexnow-stat-secondary {
    display: flex;
    flex-direction: column;
}

.prime-indexnow-value {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.1;
}

.prime-indexnow-stat-secondary .prime-indexnow-value {
    font-size: 20px;
    color: #64748b;
}

.prime-indexnow-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.prime-indexnow-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    margin-bottom: 12px;
}

.prime-indexnow-failed {
    color: #dc2626;
    font-weight: 500;
}

.prime-indexnow-last {
    color: #64748b;
}

.prime-indexnow-link,
.prime-indexnow-start,
.prime-indexnow-enable {
    display: inline-block;
    color: #6366f1;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.prime-indexnow-link:hover,
.prime-indexnow-start:hover,
.prime-indexnow-enable:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.prime-indexnow-empty,
.prime-indexnow-disabled {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 0;
    gap: 8px;
}

.prime-indexnow-empty p,
.prime-indexnow-disabled p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

/* Quick Index Form */
.prime-quick-index {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.prime-quick-index-form {
    display: flex;
    gap: 8px;
}

.prime-quick-index-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #1e293b;
    transition: all 0.15s ease;
}

.prime-quick-index-input:focus {
    outline: none;
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.prime-quick-index-input::placeholder {
    color: #94a3b8;
}

.prime-quick-index-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.prime-quick-index-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.prime-quick-index-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.prime-quick-index-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.prime-quick-index-btn.is-loading .dashicons {
    animation: prime-spin 1s linear infinite;
}

@keyframes prime-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.prime-quick-index-message {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.prime-quick-index-message.is-success {
    background: #ecfdf5;
    color: #065f46;
}

.prime-quick-index-message.is-error {
    background: #fef2f2;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 1400px) {
    .prime-bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .prime-bento-score {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }

    .prime-bento-posts {
        grid-column: 3;
        grid-row: 1;
    }

    .prime-bento-pages {
        grid-column: 4;
        grid-row: 1;
    }

    .prime-bento-combined {
        grid-column: 3 / 5;
        grid-row: 2;
    }

    .prime-bento-actions {
        grid-column: 1 / 3;
        grid-row: 3;
    }

    .prime-bento-problems {
        grid-column: 3 / 5;
        grid-row: 3;
    }

    .prime-bento-ai-stats {
        grid-column: 1 / 3;
        grid-row: 4;
    }

    .prime-bento-indexnow {
        grid-column: 3 / 5;
        grid-row: 4;
    }

    .prime-bento-modules {
        grid-column: 1 / 5;
        grid-row: 5;
    }
}

@media (max-width: 1200px) {
    .prime-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prime-bento-score {
        grid-column: span 2;
        grid-row: auto;
    }

    .prime-bento-posts {
        grid-column: 1;
        grid-row: auto;
    }

    .prime-bento-pages {
        grid-column: 2;
        grid-row: auto;
    }

    .prime-bento-combined,
    .prime-bento-actions,
    .prime-bento-problems,
    .prime-bento-ai-stats,
    .prime-bento-indexnow,
    .prime-bento-modules {
        grid-column: span 2;
        grid-row: auto;
    }
}

@media (max-width: 782px) {
    .prime-dashboard-header {
        padding: 20px;
    }

    .prime-dashboard-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .prime-bento-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 16px;
    }

    .prime-bento-score,
    .prime-bento-posts,
    .prime-bento-pages,
    .prime-bento-combined,
    .prime-bento-actions,
    .prime-bento-modules,
    .prime-bento-problems,
    .prime-bento-ai-stats,
    .prime-bento-indexnow {
        grid-column: span 1;
        grid-row: auto;
    }

    .prime-bento-score {
        padding: 24px;
    }

    .prime-score-circle {
        width: 140px;
        height: 140px;
    }

    .prime-score-number {
        font-size: 36px;
    }

    .prime-combined-row {
        flex-direction: column;
        gap: 16px;
    }

    .prime-actions-grid {
        grid-template-columns: 1fr;
    }

    .prime-modules-grid {
        grid-template-columns: 1fr;
    }

    /* AI Activity compact on mobile */
    .prime-ai-activity-item {
        flex-wrap: wrap;
        gap: 6px;
    }

    .prime-ai-activity-bot {
        min-width: auto;
    }

    .prime-ai-activity-url {
        flex-basis: 100%;
        order: 3;
    }

    /* Quick Index compact */
    .prime-quick-index-form {
        flex-direction: column;
    }

    .prime-quick-index-btn {
        width: 100%;
        height: 44px;
    }
}
