body.toplevel_page_oneclickseo {
    --primary-color: #6366f1;
    --secondary-color: #c026d3;
    --gradient-start: #0f172a;
    --gradient-mid: #312e81;
    --gradient-end: #4f46e5;
    --accent-color: #14b8a6;
    --accent-secondary: #f472b6;
    --success-color: rgba(16, 185, 129, 1);
    --warning-color: rgba(245, 158, 11, 1);
    --error-color: rgba(239, 68, 68, 1);
    --glass-bg: rgba(30, 58, 138, 0.25);
    --glass-border: rgba(165, 180, 252, 0.25);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --focus-outline: rgba(255, 255, 255, 0.5);
    --text-color: #ffffff;
    --text-muted: rgba(226, 232, 240, 0.8);
    --star-color: rgba(255, 255, 255, 0.8);
    --card-radius: 16px;
    --button-radius: 8px;
    --input-radius: 8px;
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-small: 0 10px 15px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 15px 30px rgba(0, 0, 0, 0.25);
    --shadow-large: 0 20px 40px rgba(0, 0, 0, 0.3);
    font-family: 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

body.toplevel_page_oneclickseo #wpwrap {
    background: linear-gradient(125deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    position: relative;
    overflow: hidden;
}

body.toplevel_page_oneclickseo #wpwrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 40px 60px, var(--star-color), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 20px 120px, var(--star-color), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 100px 40px, var(--star-color), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 200px 80px, var(--star-color), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 300px 10px, var(--star-color), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 400px 120px, var(--star-color), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 500px 50px, var(--star-color), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 250px, var(--star-color), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 100px 300px, var(--star-color), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 200px 350px, var(--star-color), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 300px 400px, var(--star-color), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 400px 450px, var(--star-color), rgba(0,0,0,0));
    background-size: 600px 600px;
    background-repeat: repeat;
    opacity: 0.6;
    animation: twinkling 18s linear infinite;
    pointer-events: none;
}
body.toplevel_page_oneclickseo .notice  {
    display: none;
}
@keyframes twinkling {
    0% { background-position: 0 0; }
    100% { background-position: 600px 600px; }
}

body.toplevel_page_oneclickseo .oneclickseo-admin {
    padding: 30px;
    min-height: calc(100vh - 32px);
    margin-left: -20px;
    margin-top: 0px;
    width: calc(100% + 20px);
    box-sizing: border-box;
    position: relative;
}

body.toplevel_page_oneclickseo .oneclickseo-admin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
    radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(192, 38, 211, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(20, 184, 166, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 75% 85%, rgba(244, 114, 182, 0.25) 0%, transparent 35%);
    pointer-events: none;
}

body.toplevel_page_oneclickseo .oneclickseo-admin h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: center;
    position: relative;
    display: inline-block;
}

body.toplevel_page_oneclickseo .oneclickseo-admin h1::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 4px;
    bottom: -10px;
    left: 10%;
    background: linear-gradient(90deg, 
        rgba(99, 102, 241, 0), 
        rgba(99, 102, 241, 1), 
        rgba(192, 38, 211, 1), 
        rgba(99, 102, 241, 0)
    );
    border-radius: 2px;
}

body.toplevel_page_oneclickseo .oneclickseo-admin h1::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 20px;
    bottom: -20px;
    left: 0;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    filter: blur(5px);
}

body.toplevel_page_oneclickseo #wpfooter,
body.toplevel_page_oneclickseo .oneclickseo-admin>.notice {
    display: none;
}

body.toplevel_page_oneclickseo #wpbody-content {
    padding-bottom: 0 !important;
}

body.toplevel_page_oneclickseo .oneclickseo-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    padding: 0;
    position: relative;
    z-index: 1;
    color: var(--text-color);
}

body.toplevel_page_oneclickseo .oneclickseo-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--card-radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-medium), 0 0 15px rgba(99, 102, 241, 0.2);
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

body.toplevel_page_oneclickseo .oneclickseo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(79, 70, 229, 0.08), transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(192, 38, 211, 0.08), transparent 50%);
    transform: rotate(-45deg);
    z-index: -1;
}

body.toplevel_page_oneclickseo .oneclickseo-card h2 {
    color: var(--text-color);
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 15px;
    position: relative;
    z-index: 1;
}

body.toplevel_page_oneclickseo .oneclickseo-card h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
}

body.toplevel_page_oneclickseo .oneclickseo-card .form-table {
    margin-top: 25px;
    position: relative;
    z-index: 1;
}

body.toplevel_page_oneclickseo .oneclickseo-card .form-table th {
    color: var(--text-color);
    font-weight: 500;
    padding: 20px 15px 20px 0;
    font-size: 1.05em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.toplevel_page_oneclickseo .oneclickseo-card input[type="text"],
body.toplevel_page_oneclickseo .oneclickseo-card input[type="password"],
body.toplevel_page_oneclickseo .oneclickseo-card textarea,
body.toplevel_page_oneclickseo .oneclickseo-card select {
    width: 100%;
    padding: 8px 18px;
    border-radius: var(--input-radius);
    border: 1px solid rgba(165, 180, 252, 0.3);
    background: rgba(15, 23, 42, 0.4);
    color: var(--text-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
    font-size: 1em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

body.toplevel_page_oneclickseo .oneclickseo-card textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

body.toplevel_page_oneclickseo .oneclickseo-card input[type="text"]::placeholder,
body.toplevel_page_oneclickseo .oneclickseo-card input[type="password"]::placeholder,
body.toplevel_page_oneclickseo .oneclickseo-card textarea::placeholder {
    color: rgba(226, 232, 240, 0.5);
}

body.toplevel_page_oneclickseo .oneclickseo-card input[type="text"]::before,
body.toplevel_page_oneclickseo .oneclickseo-card input[type="password"]::before,
body.toplevel_page_oneclickseo .oneclickseo-card textarea::before,
body.toplevel_page_oneclickseo .oneclickseo-card select::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(165, 180, 252, 0.3), transparent);
    z-index: 1;
}

body.toplevel_page_oneclickseo .oneclickseo-card select option {
    color: #e2e8f0;
    background: #1e293b;
    padding: 10px;
}

body.toplevel_page_oneclickseo .oneclickseo-card input[type="text"]:focus,
body.toplevel_page_oneclickseo .oneclickseo-card input[type="password"]:focus,
body.toplevel_page_oneclickseo .oneclickseo-card textarea:focus,
body.toplevel_page_oneclickseo .oneclickseo-card select:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 4px 15px rgba(0, 0, 0, 0.2);
    background: rgba(30, 58, 138, 0.4);
}

body.toplevel_page_oneclickseo .oneclickseo-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95em;
    letter-spacing: 0.3px;
}

body.toplevel_page_oneclickseo .oneclickseo-card .description {
    margin-top: 8px;
    font-size: 0.9em;
    color: var(--text-muted);
    line-height: 1.5;
}

body.toplevel_page_oneclickseo .oneclickseo-button-container {
    margin-top: 30px;
    text-align: center;
}

body.toplevel_page_oneclickseo #oneclickseo-optimize-all,
body.toplevel_page_oneclickseo .oneclickseo-card .button-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    border: none;
    border-radius: var(--button-radius);
    padding: 12px 24px;
    font-weight: 600;
    font-size: 16px;
    text-transform: none;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3), 0 0 0 1px rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

body.toplevel_page_oneclickseo #oneclickseo-optimize-all::before,
body.toplevel_page_oneclickseo .oneclickseo-card .button-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border-radius: var(--button-radius);
    opacity: 0;
    transition: var(--transition-fast);
}

body.toplevel_page_oneclickseo #oneclickseo-optimize-all:hover::before,
body.toplevel_page_oneclickseo .oneclickseo-card .button-primary:hover::before {
    opacity: 1;
}

body.toplevel_page_oneclickseo #oneclickseo-optimize-all:hover,
body.toplevel_page_oneclickseo .oneclickseo-card .button-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(99, 102, 241, 0.45),
        0 4px 10px rgba(192, 38, 211, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    filter: brightness(1.1);
    color: #ffffff !important;
}

body.toplevel_page_oneclickseo #oneclickseo-optimize-all:active,
body.toplevel_page_oneclickseo .oneclickseo-card .button-primary:active {
    transform: translateY(2px);
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.oneclickseo-header-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--card-radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-medium), 0 0 15px rgba(99, 102, 241, 0.2);
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.oneclickseo-header-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(79, 70, 229, 0.08), transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(192, 38, 211, 0.08), transparent 50%);
    transform: rotate(-45deg);
    z-index: -1;
}

.status-icon {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.status-icon {
    width: 100px;
    height: 100px;
    font-size: 40px;
    position: relative;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.status-icon.active {
    background: rgba(46, 213, 115, 0.2);
    border-color: rgba(46, 213, 115, 0.4);
}

.status-icon.inactive {
    background: rgba(255, 171, 67, 0.2);
    border-color: rgba(255, 171, 67, 0.4);
}

.status-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    filter: blur(20px);
    opacity: 0.6;
    z-index: -1;
}

.status-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    transition: all var(--transition-bounce);
}

.status-icon:hover .dashicons {
    transform: scale(1.2);
}

.status-icon.active .dashicons {
    color: var(--success-color);
}

.status-icon.inactive .dashicons {
    color: var(--warning-color);
}

.status-info h2 {
    font-size: 2.2em !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    color: var(--text-color) !important;
    letter-spacing: -0.5px;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.status-info h2::after {
    display: none;
}

.status-info p {
    font-size: 1.1em;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 500px;
}

.oneclickseo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 58, 138, 0.3);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    border-radius: var(--button-radius);
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.oneclickseo-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    opacity: 0;
    transition: var(--transition-fast);
}

.oneclickseo-button:hover {
    background: rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(99, 102, 241, 0.6);
    color: #ffffff !important;
}

.oneclickseo-button:hover::after {
    opacity: 1;
}

.oneclickseo-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.oneclickseo-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.oneclickseo-analysis-item {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--card-radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-small), 0 0 15px rgba(99, 102, 241, 0.2);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.oneclickseo-analysis-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(79, 70, 229, 0.08), transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(192, 38, 211, 0.08), transparent 50%);
    transform: rotate(-45deg);
    z-index: -1;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.item-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-bounce);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.oneclickseo-analysis-item:hover .item-icon {
    transform: scale(1.1) rotate(10deg);
    background: rgba(255, 255, 255, 0.2);
}

.item-header h3 {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

@media screen and (max-width: 1200px) {
    .oneclickseo-header-card {
        padding: 40px;
    }

    .site-status {
        gap: 30px;
    }
}

@media screen and (max-width: 992px) {
    body.toplevel_page_oneclickseo .oneclickseo-container {
        grid-template-columns: 1fr;
    }
    
    .site-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
    
    .status-icon {
        margin: 0 auto;
    }
    
    .status-info {
        text-align: center;
        width: 100%;
    }
    
    .status-info p {
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    body.toplevel_page_oneclickseo .oneclickseo-admin {
        padding: 20px;
    }
    
    body.toplevel_page_oneclickseo .oneclickseo-card {
        padding: 25px;
    }

    .oneclickseo-header-card {
        padding: 30px;
    }

    .oneclickseo-button {
        padding: 12px 20px;
        font-size: 1em;
    }
    
    body.toplevel_page_oneclickseo #oneclickseo-optimize-all,
    body.toplevel_page_oneclickseo .oneclickseo-card .button-primary {
        padding: 12px 25px;
        min-width: 160px;
        min-height: 45px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--card-radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-small), 0 0 15px rgba(79, 70, 229, 0.15);
}

.oneclickseo-score {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    box-shadow: var(--shadow-small), 0 0 15px rgba(99, 102, 241, 0.2);
    position: relative;
    transition: var(--transition-fast);
}

.oneclickseo-score::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
    filter: blur(8px);
}

.oneclickseo-score .dashicons {
    font-size: 50px;
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.oneclickseo-score.excellent {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.15));
    border-color: rgba(16, 185, 129, 0.4);
}

.oneclickseo-score.excellent::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(16, 185, 129, 0.4));
}

.oneclickseo-score.good {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(99, 102, 241, 0.15));
    border-color: rgba(99, 102, 241, 0.4);
}

.oneclickseo-score.good::before {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(99, 102, 241, 0.4));
}

.oneclickseo-score.fair {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.15));
    border-color: rgba(245, 158, 11, 0.4);
}

.oneclickseo-score.fair::before {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.8), rgba(245, 158, 11, 0.4));
}

.oneclickseo-score.poor {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(239, 68, 68, 0.15));
    border-color: rgba(239, 68, 68, 0.4);
}

.oneclickseo-score.poor::before {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.8), rgba(239, 68, 68, 0.4));
}

.score-details {
    text-align: center;
    position: relative;
    z-index: 1;
}

.score-label {
    font-size: 1.1em;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.score-value {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}

.pro-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #db2777);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(219, 39, 119, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.pro-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 2.5s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}
body.toplevel_page_oneclickseo .notice-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
    border-left: 4px solid var(--success-color);
    color: var(--text-color);
    padding: 14px 18px;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: var(--shadow-small), 0 0 15px rgba(16, 185, 129, 0.1);
    position: relative;
    overflow: hidden;
}

body.toplevel_page_oneclickseo .notice-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, transparent 0%, rgba(16, 185, 129, 0.05) 50%, transparent 100%),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent 70%);
    z-index: -1;
}

body.toplevel_page_oneclickseo .notice-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.08));
    border-left: 4px solid var(--warning-color);
    color: var(--text-color);
    padding: 14px 18px;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: var(--shadow-small), 0 0 15px rgba(245, 158, 11, 0.1);
    position: relative;
    overflow: hidden;
}

body.toplevel_page_oneclickseo .notice-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, transparent 0%, rgba(245, 158, 11, 0.05) 50%, transparent 100%),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.1), transparent 70%);
    z-index: -1;
}

body.toplevel_page_oneclickseo .notice-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.08));
    border-left: 4px solid var(--error-color);
    color: var(--text-color);
    padding: 14px 18px;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: var(--shadow-small), 0 0 15px rgba(239, 68, 68, 0.1);
    position: relative;
    overflow: hidden;
}

body.toplevel_page_oneclickseo .notice-error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, transparent 0%, rgba(239, 68, 68, 0.05) 50%, transparent 100%),
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.1), transparent 70%);
    z-index: -1;
}

body.toplevel_page_oneclickseo .tab-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.oneclickseo-tabs a:hover .tab-icon,
.oneclickseo-tabs a.active .tab-icon {
    opacity: 1;
    transform: scale(1.1);
}

.optimization-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20v-6M6 20V10M18 20V4'/%3E%3C/svg%3E");
}

.settings-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 00.33 1.82l.06.06a2 2 0 010 2.83 2 2 0 01-2.83 0l-.06-.06a1.65 1.65 0 00-1.82-.33 1.65 1.65 0 00-1 1.51V21a2 2 0 01-2 2 2 2 0 01-2-2v-.09A1.65 1.65 0 009 19.4a1.65 1.65 0 00-1.82.33l-.06.06a2 2 0 01-2.83 0 2 2 0 010-2.83l.06-.06a1.65 1.65 0 00.33-1.82 1.65 1.65 0 00-1.51-1H3a2 2 0 01-2-2 2 2 0 012-2h.09A1.65 1.65 0 004.6 9a1.65 1.65 0 00-.33-1.82l-.06-.06a2 2 0 010-2.83 2 2 0 012.83 0l.06.06a1.65 1.65 0 001.82.33H9a1.65 1.65 0 001-1.51V3a2 2 0 012-2 2 2 0 012 2v.09a1.65 1.65 0 001 1.51 1.65 1.65 0 001.82-.33l.06-.06a2 2 0 012.83 0 2 2 0 010 2.83l-.06.06a1.65 1.65 0 00-.33 1.82V9a1.65 1.65 0 001.51 1H21a2 2 0 012 2 2 2 0 01-2 2h-.09a1.65 1.65 0 00-1.51 1z'/%3E%3C/svg%3E");
}

.website-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-4 10 15.3 15.3 0 01-4-10 15.3 15.3 0 014-10z'/%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E");
}

.redirections-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14l-4-4 4-4'/%3E%3Cpath d='M5 10h11a4 4 0 110 8h-1'/%3E%3C/svg%3E");
}

.analytics-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M18 9l-5 5-4-4-3 3'/%3E%3C/svg%3E");
}

.audit-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3Cpath d='M11 8v6'/%3E%3Cpath d='M8 11h6'/%3E%3C/svg%3E");
}

.oneclickseo-tabs {
    display: flex;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-small);
    border: 1px solid rgba(30, 58, 138, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.oneclickseo-tabs a {
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 8px;
    margin: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.oneclickseo-tabs a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(192, 38, 211, 0.15));
    opacity: 0;
    transition: var(--transition-fast);
}

.oneclickseo-tabs a:hover {
    background: rgba(30, 58, 138, 0.3);
}

.oneclickseo-tabs a:hover::before {
    opacity: 1;
}

.oneclickseo-tabs a.active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.4), rgba(192, 38, 211, 0.3));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#oneclickseo-chat {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 25px;
    margin-top: 30px;
    height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-medium);
    position: relative;
    scroll-behavior: smooth;
}

#oneclickseo-chat::-webkit-scrollbar {
    width: 8px;
}

#oneclickseo-chat::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#oneclickseo-chat::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

#oneclickseo-chat::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
}

.chat-message {
    margin-bottom: 40px;
    animation: messageSlideIn 0.3s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
    position: relative;
}

@keyframes messageSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.chat-message:hover::before {
    opacity: 1;
}

.chat-message img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 15px;
    object-fit: cover;
    box-shadow: var(--shadow-small);
    border: 1px solid var(--glass-border);
}

.chat-message .message-content {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: var(--shadow-small), 0 0 15px rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
    line-height: 1.5;
    display: block;
}

.chat-message .message-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(165, 180, 252, 0.3), transparent);
}

.chat-message.system .message-content {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.25), rgba(30, 58, 138, 0.25));
    border-color: rgba(99, 102, 241, 0.3);
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.25), rgba(8, 145, 178, 0.25));
    border-color: rgba(20, 184, 166, 0.3);
}

.chat-message .message-content [role="img"] {
    font-size: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: fit-content;
    margin-top: 10px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: typingAnimation 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingAnimation {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.cosmic-dust {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.cosmic-dust::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    box-shadow: 
        149px 218px 0 0 rgba(255, 255, 255, 0.8),
        42px 56px 0 0 rgba(255, 255, 255, 0.6),
        97px 185px 0 0 rgba(255, 255, 255, 0.7),
        183px 294px 0 0 rgba(255, 255, 255, 0.9),
        271px 165px 0 0 rgba(255, 255, 255, 0.5),
        316px 78px 0 0 rgba(255, 255, 255, 0.7),
        89px 334px 0 0 rgba(255, 255, 255, 0.8),
        204px 56px 0 0 rgba(255, 255, 255, 0.6),
        287px 248px 0 0 rgba(255, 255, 255, 0.7),
        358px 187px 0 0 rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: twinkle 5s ease infinite;
    opacity: 0.6;
}

.cosmic-dust::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    box-shadow: 
        179px 118px 0 0 rgba(255, 255, 255, 0.8),
        242px 156px 0 0 rgba(255, 255, 255, 0.6),
        297px 85px 0 0 rgba(255, 255, 255, 0.7),
        83px 194px 0 0 rgba(255, 255, 255, 0.9),
        171px 265px 0 0 rgba(255, 255, 255, 0.5),
        116px 178px 0 0 rgba(255, 255, 255, 0.7),
        189px 234px 0 0 rgba(255, 255, 255, 0.8),
        304px 156px 0 0 rgba(255, 255, 255, 0.6),
        87px 348px 0 0 rgba(255, 255, 255, 0.7),
        258px 287px 0 0 rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: twinkle 7s ease infinite;
    animation-delay: 2.5s;
    opacity: 0.6;
}

.oneclickseo-options-panel {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    border-radius: 20px;
    margin: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.oneclickseo-options-panel.open {
    max-height: 500px;
    padding: 25px;
    opacity: 1;
    transform: translateY(0);    
    margin-top: 20px;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
@media screen and (max-width: 768px) {
    .oneclickseo-options-panel.open {
        max-height: none;
    }
}
.oneclickseo-option {
    margin-bottom: 20px;
    position: relative;
    padding-left: 34px;
}

.oneclickseo-toggle-button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.oneclickseo-toggle-button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    transform: translateY(-2px);
    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}

.oneclickseo-toggle-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.oneclickseo-toggle-button .dashicons-arrow-down-alt2 {
    opacity: 0.7;
}

body.toplevel_page_oneclickseo #oneclickseo-optimize-all,
body.toplevel_page_oneclickseo #oneclickseo-stop-optimize {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 30px 50px;
    font-size: 1.6em;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

body.toplevel_page_oneclickseo #oneclickseo-optimize-all:hover,
body.toplevel_page_oneclickseo #oneclickseo-stop-optimize:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    color: #ffffff !important;
}

body.toplevel_page_oneclickseo #oneclickseo-optimize-all:active,
body.toplevel_page_oneclickseo #oneclickseo-stop-optimize:active {
    transform: translateY(2px);
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

body.toplevel_page_oneclickseo #oneclickseo-optimize-all::before,
body.toplevel_page_oneclickseo #oneclickseo-stop-optimize::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: 0.5s;
}

body.toplevel_page_oneclickseo #oneclickseo-optimize-all:hover::before,
body.toplevel_page_oneclickseo #oneclickseo-stop-optimize:hover::before {
    left: 100%;
}

body.toplevel_page_oneclickseo #oneclickseo-stop-optimize {
    background: rgba(231, 76, 60, 0.25);
    border-color: rgba(231, 76, 60, 0.3);
    display: none;
}

body.toplevel_page_oneclickseo #oneclickseo-stop-optimize:hover {
    background: rgba(231, 76, 60, 0.35);
    border-color: rgba(231, 76, 60, 0.4);
}

body.toplevel_page_oneclickseo .optimizing #oneclickseo-optimize-all {
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    display: none;
}

body.toplevel_page_oneclickseo .optimizing #oneclickseo-stop-optimize {
    display: block;
}

.oneclickseo-option input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    margin: 0;
}

.oneclickseo-option input[type="checkbox"]:checked {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.8), rgba(39, 174, 96, 0.6));
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow:
        0 0 15px rgba(46, 204, 113, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.oneclickseo-option input[type="checkbox"]::before {
    display: none;
}

.oneclickseo-option input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 7px;
    border: 2px solid #fff;
    border-top: none;
    border-right: none;
    opacity: 0;
    transition: all 0.3s ease;
    transform-origin: center;
    margin-top: -2px;
}

.oneclickseo-option input[type="checkbox"]:checked::after {
    transform: translate(-50%, -60%) rotate(-45deg) scale(1);
    opacity: 1;
}

.oneclickseo-option input[type="checkbox"]:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.oneclickseo-option input[type="checkbox"]:focus {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.2),
        0 0 15px rgba(46, 204, 113, 0.3);
}

@keyframes checkboxClick {
    0% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-50%) scale(0.9);
    }

    100% {
        transform: translateY(-50%) scale(1);
    }
}

.oneclickseo-option input[type="checkbox"]:active {
    animation: checkboxClick 0.3s ease;
}

.cosmic-loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(125deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.6s ease-out;
}

.cosmic-loader-container.fade-out {
    opacity: 0;
    pointer-events: none;
}

.cosmic-loader {
    position: relative;
    width: 150px;
    height: 150px;
}

.cosmic-loader-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(165, 180, 252, 0.15);
    border-radius: 50%;
    animation: orbit-rotate 2s linear infinite;
}

.cosmic-loader-orbit:nth-child(1) {
    width: 140px;
    height: 140px;
    margin-left: -70px;
    margin-top: -70px;
    border-top: 2px solid var(--primary-color);
    animation-duration: 2s;
}

.cosmic-loader-orbit:nth-child(2) {
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
    border-right: 2px solid var(--accent-color);
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.cosmic-loader-orbit:nth-child(3) {
    width: 60px;
    height: 60px;
    margin-left: -30px;
    margin-top: -30px;
    border-bottom: 2px solid var(--secondary-color);
    animation-duration: 1s;
}

.cosmic-loader-planet {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    animation: pulse 1.5s ease-in-out infinite;
}

.cosmic-loader-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: twinkle 1.5s ease-in-out infinite;
}

.cosmic-loader-star:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0.2s;
}

.cosmic-loader-star:nth-child(2) {
    top: 30%;
    left: 80%;
    animation-delay: 0.5s;
}

.cosmic-loader-star:nth-child(3) {
    top: 70%;
    left: 15%;
    animation-delay: 0.7s;
}

.cosmic-loader-star:nth-child(4) {
    top: 80%;
    left: 70%;
    animation-delay: 0.1s;
}

.cosmic-loader-star:nth-child(5) {
    top: 40%;
    left: 90%;
    animation-delay: 0.3s;
}

.cosmic-loader-star:nth-child(6) {
    top: 90%;
    left: 40%;
    animation-delay: 0.6s;
}

.cosmic-loader-text {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    opacity: 0.8;
    animation: fade-in-out 1.5s ease-in-out infinite;
}

@keyframes orbit-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.8);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }
    50% {
        transform: scale(1);
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.9);
    }
}

@keyframes fade-in-out {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.oneclickseo-content-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.oneclickseo-content-container.loaded {
    opacity: 1;
    transform: translateY(0);
}

.oneclickseo-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.oneclickseo-card.loaded {
    opacity: 1;
    transform: translateY(0);
}

.oneclickseo-card:nth-child(1) { transition-delay: 0.1s; }
.oneclickseo-card:nth-child(2) { transition-delay: 0.2s; }
.oneclickseo-card:nth-child(3) { transition-delay: 0.3s; }
.oneclickseo-card:nth-child(4) { transition-delay: 0.4s; }
.oneclickseo-card:nth-child(5) { transition-delay: 0.5s; }

.oneclickseo-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    margin: 0 10px;
}

.oneclickseo-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.oneclickseo-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(165, 180, 252, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.oneclickseo-switch-slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.oneclickseo-switch-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(192, 38, 211, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 30px;
    z-index: 1;
}

.oneclickseo-switch input[type="checkbox"]:checked + .oneclickseo-switch-slider {
    background: rgba(30, 58, 138, 0.4);
    border-color: rgba(99, 102, 241, 0.4);
}

.oneclickseo-switch input[type="checkbox"]:checked + .oneclickseo-switch-slider::before {
    transform: translateX(30px);
    background: white;
}

.oneclickseo-switch input[type="checkbox"]:checked + .oneclickseo-switch-slider::after {
    opacity: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.oneclickseo-switch input[type="checkbox"]:focus + .oneclickseo-switch-slider {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 4px 15px rgba(0, 0, 0, 0.2);
}

.oneclickseo-switch-slider .switch-on,
.oneclickseo-switch-slider .switch-off {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    transition: opacity 0.3s ease;
}

.oneclickseo-switch-slider .switch-on {
    right: 8px;
    opacity: 0;
}

.oneclickseo-switch-slider .switch-off {
    left: 8px;
    opacity: 0.7;
}

.oneclickseo-switch input[type="checkbox"]:checked + .oneclickseo-switch-slider .switch-on {
    opacity: 0.9;
}

.oneclickseo-switch input[type="checkbox"]:checked + .oneclickseo-switch-slider .switch-off {
    opacity: 0;
}

@keyframes switchPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.oneclickseo-switch input[type="checkbox"]:checked + .oneclickseo-switch-slider::before {
    animation: switchPulse 0.75s;
}

.oneclickseo-option {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(165, 180, 252, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.oneclickseo-option:hover {
    background: rgba(15, 23, 42, 0.3);
    border-color: rgba(165, 180, 252, 0.25);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.oneclickseo-option-label {
    flex: 1;
    padding-right: 15px;
}

.oneclickseo-option-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.oneclickseo-option-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.oneclickseo-option input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.oneclickseo-switch.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.oneclickseo-switch.disabled .oneclickseo-switch-slider {
    background: rgba(15, 23, 42, 0.3);
    border-color: rgba(165, 180, 252, 0.2);
}

.oneclickseo-switch.disabled .oneclickseo-switch-slider::before {
    background: #d1d5db;
}

.oneclickseo-switch-slider.active::before {
    box-shadow: 0 0 10px 2px rgba(99, 102, 241, 0.5);
}

.oneclickseo-options-panel {
    background: rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(165, 180, 252, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.oneclickseo-toggle-button {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.4), rgba(15, 23, 42, 0.4));
    color: var(--text-color);
    border: 1px solid rgba(165, 180, 252, 0.3);
    border-radius: var(--button-radius);
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.oneclickseo-toggle-button:hover {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.5), rgba(15, 23, 42, 0.5));
    border-color: rgba(165, 180, 252, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff !important;
}

.oneclickseo-toggle-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.oneclickseo-toggle-button .dashicons-arrow-down-alt2 {
    margin-left: auto;
}

.oneclickseo-options-toggle.active .dashicons-arrow-down-alt2 {
    transform: rotate(180deg);
}

/* Rocket Animation Styles */
.oneclickseo-rocket-container {
    position: fixed;
    right: 8%;
    bottom: 12%;
    width: 180px;
    height: 380px;
    z-index: 100;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

.oneclickseo-rocket {
    width: 100%;
    height: 100%;
    transform: scale(0.85);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 15px 35px rgba(79, 70, 229, 0.4));
}

.oneclickseo-rocket:hover {
    transform: scale(0.9) rotate(-3deg) translateY(-8px);
    filter: drop-shadow(0 20px 45px rgba(79, 70, 229, 0.5));
}

/* Idle floating animation */
.oneclickseo-rocket-container {
    animation: rocketFloat 4s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(0.5deg);
    }
    50% {
        transform: translateY(-4px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-0.5deg);
    }
}

/* Rocket lights with different colors */
.rocket-light-1, .rocket-light-2 {
    animation: rocketLightPulse 1.5s infinite alternate;
    filter: drop-shadow(0 0 8px #f472b6);
}

.rocket-light-3, .rocket-light-4 {
    animation: rocketLightPulse 1.8s infinite alternate;
    filter: drop-shadow(0 0 8px #22d3ee);
}

.rocket-light-5, .rocket-light-6 {
    animation: rocketLightPulse 2s infinite alternate;
    filter: drop-shadow(0 0 8px #fb923c);
}

.rocket-light-7, .rocket-light-8 {
    animation: rocketLightPulse 2.2s infinite alternate;
    filter: drop-shadow(0 0 8px #4ade80);
}

.rocket-light-2 {
    animation-delay: 0.3s;
}

.rocket-light-4 {
    animation-delay: 0.6s;
}

.rocket-light-6 {
    animation-delay: 0.9s;
}

.rocket-light-8 {
    animation-delay: 1.2s;
}

/* Antenna glow effect */
.rocket-antenna-tip {
    animation: antennaTipPulse 2s infinite ease-in-out;
    filter: drop-shadow(0 0 10px #f472b6) drop-shadow(0 0 20px #f472b6);
}

.rocket-antenna-tip-glow {
    animation: antennaTipGlow 1s infinite alternate;
}

@keyframes antennaTipGlow {
    0% {
        opacity: 0.6;
        r: 1.5;
    }
    100% {
        opacity: 1;
        r: 2.5;
    }
}

/* Window glow effects */
.rocket-window-main-group circle:nth-child(2),
.rocket-window-small-1-group circle:nth-child(2),
.rocket-window-small-2-group circle:nth-child(2) {
    filter: drop-shadow(0 0 12px rgba(103, 232, 249, 0.8));
}

/* Window reflections shimmer */
.rocket-window-reflection,
.rocket-window-reflection-1,
.rocket-window-reflection-2 {
    animation: windowGlint 4s infinite ease-in-out;
}

.rocket-window-reflection-1 {
    animation-delay: 1.3s;
}

.rocket-window-reflection-2 {
    animation-delay: 2.6s;
}

/* Engine core glow */
.rocket-engine-core {
    animation: engineCorePulse 1.5s infinite alternate ease-in-out;
}

.rocket-engine-hot {
    animation: engineHotPulse 0.8s infinite alternate ease-in-out;
}

@keyframes engineCorePulse {
    0% {
        opacity: 0.6;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes engineHotPulse {
    0% {
        opacity: 0.5;
        transform: scale(0.9);
    }
    100% {
        opacity: 0.9;
        transform: scale(1.1);
    }
}

/* Flames default state (visible but subtle) */
.rocket-flames {
    opacity: 0.3;
    transform-origin: 50% 380px;
    transition: all 0.4s ease;
}

.flame {
    transform-origin: center top;
}

/* Subtle idle flame animation */
.flame-main-core,
.flame-main,
.flame-inner {
    animation: flameIdle 0.8s infinite alternate ease-in-out;
}

.flame-left,
.flame-right {
    animation: flameSideIdle 1s infinite alternate ease-in-out;
}

@keyframes flameIdle {
    0% {
        opacity: 0.2;
        transform: scaleY(0.3) scaleX(0.8);
    }
    100% {
        opacity: 0.4;
        transform: scaleY(0.5) scaleX(1);
    }
}

@keyframes flameSideIdle {
    0% {
        opacity: 0.1;
        transform: scaleY(0.2) scaleX(0.7);
    }
    100% {
        opacity: 0.3;
        transform: scaleY(0.4) scaleX(0.9);
    }
}

/* Rocket stars background effect */
.rocket-stars {
    position: absolute;
    top: -100px;
    left: -100px;
    right: -100px;
    bottom: -100px;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.rocket-flying .rocket-stars {
    opacity: 0.7;
}

.rocket-stars::before,
.rocket-stars::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 
        30px 60px 0 0 rgba(255, 255, 255, 0.8),
        100px 30px 0 0 rgba(255, 255, 255, 0.6),
        150px 100px 0 0 rgba(255, 255, 255, 0.9),
        200px 40px 0 0 rgba(255, 255, 255, 0.7),
        250px 90px 0 0 rgba(255, 255, 255, 0.8),
        40px 140px 0 0 rgba(255, 255, 255, 0.6),
        90px 200px 0 0 rgba(255, 255, 255, 0.8),
        180px 160px 0 0 rgba(255, 255, 255, 0.7),
        220px 220px 0 0 rgba(255, 255, 255, 0.9),
        250px 180px 0 0 rgba(255, 255, 255, 0.6);
    animation: starTwinkle 4s infinite alternate;
}

.rocket-stars::after {
    animation-delay: 2s;
    left: 50px;
    top: 30px;
    box-shadow: 
        70px 40px 0 0 rgba(255, 255, 255, 0.7),
        130px 70px 0 0 rgba(255, 255, 255, 0.5),
        180px 30px 0 0 rgba(255, 255, 255, 0.8),
        220px 80px 0 0 rgba(255, 255, 255, 0.6),
        20px 120px 0 0 rgba(255, 255, 255, 0.5),
        80px 170px 0 0 rgba(255, 255, 255, 0.7),
        140px 190px 0 0 rgba(255, 255, 255, 0.9),
        210px 140px 0 0 rgba(255, 255, 255, 0.8),
        170px 230px 0 0 rgba(255, 255, 255, 0.6),
        40px 250px 0 0 rgba(255, 255, 255, 0.5);
}

/* Rocket Launch Animation */
.rocket-launch .oneclickseo-rocket-container {
    animation: none;
}

.rocket-launch .oneclickseo-rocket {
    animation: rocketShake 0.08s ease-in-out infinite alternate;
}

.rocket-launch .rocket-flames {
    opacity: 1;
    transform: scaleY(1);
}

.rocket-launch .flame-main-core,
.rocket-launch .flame-main,
.rocket-launch .flame-inner {
    animation: flameMainCore 0.12s ease-in-out infinite alternate;
}

.rocket-launch .flame-outer {
    animation: flameOuter 0.15s ease-in-out infinite alternate;
    opacity: 0.7;
}

.rocket-launch .flame-left,
.rocket-launch .flame-right,
.rocket-launch .flame-extra-left,
.rocket-launch .flame-extra-right {
    animation: flameSide 0.18s ease-in-out infinite alternate;
}

.rocket-launch .rocket-engine-inner {
    animation: engineGlow 0.4s ease-in-out infinite alternate;
}

.rocket-launch .rocket-engine-core {
    animation: engineCoreGlowLaunch 0.25s ease-in-out infinite alternate;
}

.rocket-launch .rocket-engine-hot {
    animation: engineHotLaunch 0.15s ease-in-out infinite alternate;
}

@keyframes engineCoreGlowLaunch {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.15);
    }
}

@keyframes engineHotLaunch {
    0% {
        opacity: 0.7;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes flameOuter {
    0% {
        opacity: 0.5;
        transform: scaleY(0.9) scaleX(0.95);
    }
    100% {
        opacity: 0.8;
        transform: scaleY(1.1) scaleX(1.05);
    }
}

/* Flying Animation */
.rocket-flying .oneclickseo-rocket-container {
    animation: none;
}

.rocket-flying .oneclickseo-rocket {
    animation: rocketFly 0.4s ease-in-out infinite alternate;
}

.rocket-flying .rocket-flames {
    opacity: 1;
    transform: scaleY(1.3);
}

.rocket-flying .flame-main-core,
.rocket-flying .flame-main,
.rocket-flying .flame-inner {
    animation: flameMainCoreFlying 0.08s ease-in-out infinite alternate;
}

.rocket-flying .flame-outer {
    animation: flameOuterFlying 0.1s ease-in-out infinite alternate;
    opacity: 0.9;
}

.rocket-flying .rocket-light-1,
.rocket-flying .rocket-light-2,
.rocket-flying .rocket-light-3,
.rocket-flying .rocket-light-4,
.rocket-flying .rocket-light-5,
.rocket-flying .rocket-light-6,
.rocket-flying .rocket-light-7,
.rocket-flying .rocket-light-8 {
    animation: rocketLightPulseFast 0.5s infinite alternate;
}

.rocket-flying .rocket-engine-inner {
    animation: engineGlowIntense 0.3s ease-in-out infinite alternate;
}

.rocket-flying .rocket-engine-core {
    animation: engineCoreGlowIntense 0.2s ease-in-out infinite alternate;
}

/* Enhanced Particles */
.rocket-particles {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: -1;
}

.rocket-launch .rocket-particles::before,
.rocket-launch .rocket-particles::after,
.rocket-flying .rocket-particles::before,
.rocket-flying .rocket-particles::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 165, 0, 0.8);
    box-shadow: 0 0 20px 8px rgba(255, 165, 0, 0.5);
    animation: particle 1s ease-in-out infinite;
}

.rocket-launch .rocket-particles::before {
    left: 40%;
    animation-delay: 0.2s;
}

.rocket-launch .rocket-particles::after {
    left: 55%;
    animation-delay: 0.5s;
}

.rocket-flying .rocket-particles::before {
    left: 35%;
    animation-duration: 0.6s;
    width: 15px;
    height: 15px;
}

.rocket-flying .rocket-particles::after {
    left: 60%;
    animation-duration: 0.5s;
    width: 15px;
    height: 15px;
}

.rocket-flying .rocket-particles::before,
.rocket-flying .rocket-particles::after {
    box-shadow: 0 0 30px 12px rgba(255, 165, 0, 0.6);
}

/* Additional particles for flying state */
.rocket-flying .rocket-particles {
    height: 120px;
}

.rocket-flying .rocket-particles::before,
.rocket-flying .rocket-particles::after {
    animation-duration: 0.6s;
}

/* Extra particles for more dynamic effect */
.rocket-flying .rocket-particles::before,
.rocket-flying .rocket-particles::after {
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,165,0,0.8) 40%, rgba(255,87,34,0.6) 100%);
}

.rocket-flying .rocket-particles::before {
    animation: particleFast 0.5s ease-in-out infinite;
}

.rocket-flying .rocket-particles::after {
    animation: particleFast 0.6s ease-in-out infinite;
    animation-delay: 0.2s;
}

/* Additional keyframes */
@keyframes flameMainCore {
    0% {
        opacity: 0.9;
        transform: scaleX(0.85) scaleY(0.9);
    }
    100% {
        opacity: 1;
        transform: scaleX(1.1) scaleY(1.3);
    }
}

@keyframes flameMainCoreFlying {
    0% {
        opacity: 0.95;
        transform: scaleX(0.9) scaleY(1.3);
    }
    100% {
        opacity: 1;
        transform: scaleX(1.15) scaleY(1.6);
    }
}

@keyframes engineCoreGlow {
    0% {
        fill: #5c6bc0;
        filter: brightness(1.3);
    }
    100% {
        fill: #7986cb;
        filter: brightness(1.5);
    }
}

@keyframes engineCoreGlowIntense {
    0% {
        fill: #7986cb;
        filter: brightness(1.5) drop-shadow(0 0 5px rgba(121, 134, 203, 0.7));
    }
    100% {
        fill: #9fa8da;
        filter: brightness(1.8) drop-shadow(0 0 10px rgba(121, 134, 203, 0.9));
    }
}

@keyframes antennaTipPulse {
    0% {
        opacity: 0.5;
        r: 1.5px;
    }
    100% {
        opacity: 1;
        r: 2.5px;
    }
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

@keyframes particleFast {
    0% {
        opacity: 0.9;
        transform: translateY(0) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(40px) scale(0.3) rotate(20deg);
    }
}

/* Responsive adjustments for the larger rocket */
@media screen and (max-width: 1400px) {
    .oneclickseo-rocket-container {
        right: 5%;
        bottom: 10%;
        width: 160px;
        height: 340px;
    }
}

@media screen and (max-width: 1200px) {
    .oneclickseo-rocket-container {
        right: 4%;
        bottom: 8%;
        width: 140px;
        height: 300px;
    }

    body.toplevel_page_oneclickseo #oneclickseo-chat {
        width: 100%;
        float: none;
        margin-right: 0;
    }
}

@media screen and (max-width: 992px) {
    .oneclickseo-rocket-container {
        right: 3%;
        bottom: 6%;
        width: 120px;
        height: 260px;
    }
}

@media screen and (max-width: 768px) {
    .oneclickseo-rocket-container {
        right: 2%;
        bottom: 4%;
        width: 100px;
        height: 220px;
    }
}

/* Layout adjustments for chat and rocket */
body.toplevel_page_oneclickseo #oneclickseo-chat {
    width: 60%;
    float: left;
    margin-right: 5%;
    max-height: 400px;
    overflow-y: auto;
}

/* Takeoff Animation */
.rocket-takeoff .oneclickseo-rocket-container {
    animation: rocketTakeoff 2s cubic-bezier(0.5, 0, 0.75, 0) forwards;
}

.rocket-takeoff .oneclickseo-rocket {
    animation: rocketRotate 2s ease-in forwards;
}
.sitemap-url a {
    color: #fff;
}
/* Keyframes for Rocket Animations */
@keyframes rocketShake {
    0% {
        transform: scale(0.85) translateX(-2px) translateY(1px);
    }
    100% {
        transform: scale(0.85) translateX(2px) translateY(-1px);
    }
}

@keyframes rocketFly {
    0% {
        transform: scale(0.85) translateY(-4px) rotate(-1.5deg);
    }
    100% {
        transform: scale(0.85) translateY(4px) rotate(1.5deg);
    }
}

@keyframes flameFlicker {
    0% {
        transform: scaleX(0.95) scaleY(1);
        opacity: 0.8;
    }
    100% {
        transform: scaleX(1.05) scaleY(1.2);
        opacity: 1;
    }
}

@keyframes flameFlickerFlying {
    0% {
        transform: scaleX(0.9) scaleY(1.5);
        opacity: 0.9;
    }
    100% {
        transform: scaleX(1.1) scaleY(1.8);
        opacity: 1;
    }
}

@keyframes flameMainCore {
    0% {
        opacity: 0.85;
        transform: scaleY(0.95) scaleX(0.95);
    }
    100% {
        opacity: 1;
        transform: scaleY(1.15) scaleX(1.05);
    }
}

@keyframes flameMainCoreFlying {
    0% {
        opacity: 0.9;
        transform: scaleY(1.2) scaleX(0.95);
    }
    100% {
        opacity: 1;
        transform: scaleY(1.5) scaleX(1.1);
    }
}

@keyframes flameOuterFlying {
    0% {
        opacity: 0.7;
        transform: scaleY(1.1) scaleX(0.95);
    }
    100% {
        opacity: 1;
        transform: scaleY(1.4) scaleX(1.1);
    }
}

@keyframes flameMain {
    0% {
        opacity: 0.8;
        transform: scaleY(0.9);
    }
    100% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

@keyframes flameSide {
    0% {
        opacity: 0.6;
        transform: scaleY(0.8) scaleX(0.9);
    }
    100% {
        opacity: 0.9;
        transform: scaleY(1.1) scaleX(1.1);
    }
}

@keyframes engineGlow {
    0% {
        fill: #303f9f;
    }
    100% {
        fill: #5c6bc0;
    }
}

@keyframes engineGlowIntense {
    0% {
        fill: #3949ab;
        filter: brightness(1.2);
    }
    100% {
        fill: #7986cb;
        filter: brightness(1.5);
    }
}

@keyframes rocketLightPulse {
    0% {
        opacity: 0.3;
        r: 2px;
    }
    100% {
        opacity: 1;
        r: 3px;
    }
}

@keyframes rocketLightPulseFast {
    0% {
        opacity: 0.5;
        r: 2px;
    }
    100% {
        opacity: 1;
        r: 4px;
    }
}

@keyframes windowGlint {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.9) rotate(-35deg) translateX(-2px);
    }
    25% {
        opacity: 0.7;
        transform: scale(1) rotate(-35deg) translateX(0px);
    }
    50% {
        opacity: 0.95;
        transform: scale(1.1) rotate(-35deg) translateX(2px);
    }
    75% {
        opacity: 0.7;
        transform: scale(1) rotate(-35deg) translateX(0px);
    }
}

@keyframes particle {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(30px) scale(0.4);
    }
}

@keyframes rocketTakeoff {
    0% {
        transform: translateY(0) scale(1);
    }
    15% {
        transform: translateY(-5vh) scale(0.98);
    }
    30% {
        transform: translateY(-15vh) scale(0.95);
    }
    70% {
        transform: translateY(-50vh) scale(0.8);
    }
    100% {
        transform: translateY(-120vh) scale(0.5);
    }
}

@keyframes rocketRotate {
    0% {
        transform: scale(0.85) rotate(0deg);
    }
    15% {
        transform: scale(0.85) rotate(-2deg);
    }
    30% {
        transform: scale(0.85) rotate(0deg);
    }
    100% {
        transform: scale(0.85) rotate(-5deg);
    }
}

@media screen and (max-width: 768px) {
    body.toplevel_page_oneclickseo #oneclickseo-chat{
        width: 100%;
        float: none;
        margin-right: 0;
        box-sizing: border-box;
    }
    .oneclickseo-rocket-container{
        width: 100%;
        right: 0;
        bottom: 0;
        position: relative;
        box-sizing: border-box;
    }
    .oneclickseo-options-panel.open {        
    flex-direction: column;
    display: flex;
    }
}

/* Styles pour la metabox OneClickSEO avec design spatial */
.oneclickseo-meta-box {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 58, 138, 0.75) 50%, rgba(79, 70, 229, 0.65) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--card-radius, 16px);
    border: 1px solid rgba(165, 180, 252, 0.35);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(99, 102, 241, 0.3),
        inset 0 0 30px rgba(192, 38, 211, 0.15);
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    color: var(--text-color, #ffffff);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.oneclickseo-meta-box:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(99, 102, 241, 0.4),
        inset 0 0 40px rgba(192, 38, 211, 0.2);
    transform: translateY(-3px);
}

.oneclickseo-meta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(79, 70, 229, 0.12), transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(192, 38, 211, 0.12), transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(20, 184, 166, 0.08), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(244, 114, 182, 0.08), transparent 50%);
    transform: rotate(-45deg);
    z-index: -1;
    opacity: 0.8;
    animation: nebulaPulse 15s ease-in-out infinite alternate;
}

@keyframes nebulaPulse {
    0% { opacity: 0.6; transform: rotate(-45deg) scale(1); }
    50% { opacity: 0.8; transform: rotate(-45deg) scale(1.05); }
    100% { opacity: 0.7; transform: rotate(-45deg) scale(1); }
}

.oneclickseo-meta-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1.5px 1.5px at 40px 60px, rgba(255, 255, 255, 0.9), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 20px 120px, rgba(255, 255, 255, 0.8), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 100px 40px, rgba(255, 255, 255, 1), rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 200px 80px, rgba(255, 255, 255, 0.9), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 300px 10px, rgba(255, 255, 255, 0.8), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 400px 120px, rgba(255, 255, 255, 1), rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 120px 180px, rgba(255, 255, 255, 0.9), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 250px 230px, rgba(255, 255, 255, 0.8), rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 350px 280px, rgba(255, 255, 255, 0.9), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 180px 320px, rgba(255, 255, 255, 1), rgba(0,0,0,0)),
        radial-gradient(3px 3px at 80px 350px, rgba(255, 255, 255, 0.8), rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 450px 350px, rgba(255, 255, 255, 0.9), rgba(0,0,0,0));
    background-size: 500px 500px;
    background-repeat: repeat;
    opacity: 0.3;
    animation: twinkling 25s linear infinite;
    pointer-events: none;
    z-index: -1;
}

/* Ajout d'étoiles filantes occasionnelles */
.oneclickseo-meta-box .shooting-star {
    position: absolute;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.oneclickseo-meta-box .shooting-star:nth-child(1) {
    top: 20%;
    left: -10%;
    transform: rotate(15deg);
    animation: shootingStar 8s linear infinite;
    animation-delay: 3s;
}

.oneclickseo-meta-box .shooting-star:nth-child(2) {
    top: 60%;
    left: 20%;
    transform: rotate(-20deg);
    animation: shootingStar 12s linear infinite;
    animation-delay: 7s;
}

@keyframes shootingStar {
    0% {
        opacity: 0;
        transform-origin: left center;
        transform: translateX(0) rotate(15deg) scaleX(0.1);
    }
    1%, 5% {
        opacity: 1;
        transform: translateX(30px) rotate(15deg) scaleX(1);
    }
    10% {
        opacity: 0;
        transform: translateX(200px) rotate(15deg) scaleX(0.2);
    }
    100% {
        opacity: 0;
        transform: translateX(200px) rotate(15deg) scaleX(0.2);
    }
}

/* Ajout d'une nébuleuse colorée en arrière-plan */
.oneclickseo-meta-box .nebula {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(99, 102, 241, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse at 70% 60%, rgba(192, 38, 211, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse at 50% 50%, rgba(20, 184, 166, 0.05) 0%, transparent 70%);
    filter: blur(15px);
    opacity: 0.7;
    z-index: -2;
    animation: nebulaGlow 10s ease-in-out infinite alternate;
}

@keyframes nebulaGlow {
    0% { opacity: 0.5; }
    50% { opacity: 0.7; }
    100% { opacity: 0.5; }
}

.oneclickseo-scores {
    margin-bottom: 25px;
    position: relative;
}

.oneclickseo-last-analysis {
    font-size: 0.9em;
    text-align: right;
    color: #333;
    margin: 0 0 10px;
    font-style: italic;
}

.oneclickseo-score-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 25px;
}

.oneclickseo-score-grid .oneclickseo-score {
    min-width: 120px;
}

.oneclickseo-meta-box .oneclickseo-field {
    margin-bottom: 20px;
    position: relative;
}

.oneclickseo-meta-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color, #ffffff);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
}

.oneclickseo-meta-box label::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color, #6366f1), transparent);
    margin-top: 4px;
    border-radius: 1px;
}

.oneclickseo-meta-box input[type="text"],
.oneclickseo-meta-box textarea,
.oneclickseo-meta-box select {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--input-radius, 8px);
    border: 1px solid rgba(165, 180, 252, 0.3);
    background: rgba(15, 23, 42, 0.5);
    color: var(--text-color, #ffffff);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95em;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.15), 
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        0 0 0 rgba(99, 102, 241, 0);
    position: relative;
    overflow: hidden;
}

.oneclickseo-meta-box input[type="text"]::before,
.oneclickseo-meta-box textarea::before,
.oneclickseo-meta-box select::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        transparent 50%, 
        rgba(192, 38, 211, 0.05) 100%);
    pointer-events: none;
}

.oneclickseo-meta-box input[type="text"]:focus,
.oneclickseo-meta-box textarea:focus,
.oneclickseo-meta-box select:focus {
    border-color: var(--primary-color, #6366f1);
    box-shadow: 
        0 0 0 2px rgba(99, 102, 241, 0.25), 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 0 15px rgba(99, 102, 241, 0.3);
    outline: none;
    transform: translateY(-1px);
}

.oneclickseo-meta-box .description {
    font-size: 0.9em;
    color: var(--text-muted, rgba(226, 232, 240, 0.8));
    margin-top: 5px;
}

/* Colonnes de la metabox */
.oneclickseo-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

/* Bouton d'optimisation - styles originaux (maintenant remplacés par ceux dans .oneclickseo-header) */
.oneclickseo-optimize-container {
    display: none; /* Cache le conteneur original pour éviter les doublons */
}

.oneclickseo-meta-box #oneclickseo-optimize {
    display: none; /* Cache le bouton original */
}

/* Utilisez seulement les styles du bouton dans le header */
.oneclickseo-header .oneclickseo-optimize-container {
    display: flex; /* Affiche uniquement le conteneur dans le header */
    flex-direction: column;
}

.oneclickseo-header #oneclickseo-optimize {
    display: inline-block; /* Affiche uniquement le bouton dans le header */
}

/* Suggestions et liens internes */
.oneclickseo-suggestions,
.oneclickseo-internal-links {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 10px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(165, 180, 252, 0.2);
}

.oneclickseo-suggestions::-webkit-scrollbar,
.oneclickseo-internal-links::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.oneclickseo-suggestions::-webkit-scrollbar-track,
.oneclickseo-internal-links::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 3px;
}

.oneclickseo-suggestions::-webkit-scrollbar-thumb,
.oneclickseo-internal-links::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.6);
    border-radius: 3px;
}

.suggestion-item {
    padding: 8px 10px;
    margin-bottom: 5px;
    background: rgba(30, 58, 138, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    transition: all 0.2s ease;
}

.suggestion-item:hover {
    background: rgba(30, 58, 138, 0.25);
    transform: translateX(3px);
}

.suggestion-item .dashicons {
    color: var(--accent-color, #14b8a6);
    font-size: 18px;
}

.suggestion-item:last-child {
    margin-bottom: 0;
}

.oneclickseo-no-data {
    color: var(--text-muted, rgba(226, 232, 240, 0.8));
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

/* Schema section */
.oneclickseo-schema {
    background: rgba(15, 23, 42, 0.2);
    padding: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.oneclickseo-schema::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(79, 70, 229, 0.1) 0%, 
        transparent 50%, 
        rgba(192, 38, 211, 0.1) 100%);
    pointer-events: none;
}

/* Animation de chargement pendant l'optimisation */
.oneclickseo-meta-box.optimizing {
    position: relative;
}

.oneclickseo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: var(--card-radius, 16px);
}

.oneclickseo-loader {
    text-align: center;
    color: white;
    font-weight: 600;
}

.loader-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color, #6366f1);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive design */
@media screen and (max-width: 782px) {
    .oneclickseo-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .oneclickseo-score-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* Ajout d'étoiles scintillantes supplémentaires */
.oneclickseo-meta-box .twinkling-star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.4);
}

.oneclickseo-meta-box .twinkling-star:nth-child(3) {
    width: 2px;
    height: 2px;
    top: 15%;
    left: 25%;
    animation: starTwinkle 3s infinite ease-in-out;
}

.oneclickseo-meta-box .twinkling-star:nth-child(4) {
    width: 3px;
    height: 3px;
    top: 30%;
    left: 75%;
    animation: starTwinkle 4s infinite ease-in-out;
    animation-delay: 1s;
}

.oneclickseo-meta-box .twinkling-star:nth-child(5) {
    width: 2px;
    height: 2px;
    top: 70%;
    left: 85%;
    animation: starTwinkle 5s infinite ease-in-out;
    animation-delay: 2s;
}

.oneclickseo-meta-box .twinkling-star:nth-child(6) {
    width: 1px;
    height: 1px;
    top: 40%;
    left: 40%;
    animation: starTwinkle 3.5s infinite ease-in-out;
    animation-delay: 0.5s;
}

.oneclickseo-meta-box .twinkling-star:nth-child(7) {
    width: 2px;
    height: 2px;
    top: 60%;
    left: 15%;
    animation: starTwinkle 4.5s infinite ease-in-out;
    animation-delay: 1.5s;
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
        box-shadow: 0 0 2px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.8), 0 0 12px 4px rgba(99, 102, 241, 0.4);
    }
}

/* Amélioration de l'effet de profondeur avec des nuages cosmiques */
.oneclickseo-meta-box .cosmic-cloud {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: screen;
}

.oneclickseo-meta-box .cosmic-cloud:nth-child(8) {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.6) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation: cloudFloat 20s infinite alternate ease-in-out;
}

.oneclickseo-meta-box .cosmic-cloud:nth-child(9) {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(192, 38, 211, 0.5) 0%, transparent 70%);
    bottom: 10%;
    right: 10%;
    animation: cloudFloat 25s infinite alternate-reverse ease-in-out;
    animation-delay: 5s;
}

.oneclickseo-meta-box .cosmic-cloud:nth-child(10) {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.4) 0%, transparent 70%);
    top: 50%;
    right: 20%;
    animation: cloudFloat 18s infinite alternate ease-in-out;
    animation-delay: 3s;
}

@keyframes cloudFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.1;
    }
    50% {
        transform: translate(10px, -10px) scale(1.1);
        opacity: 0.15;
    }
    100% {
        transform: translate(-10px, 10px) scale(0.95);
        opacity: 0.1;
    }
}

/* Scores SEO */
.oneclickseo-scores {
    margin-bottom: 25px;
    position: relative;
}


/* Nouvelle section pour l'en-tête de la meta box */
.oneclickseo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
    position: relative;
}

.oneclickseo-scores {
    flex: 1;
    margin-bottom: 0;
}

.oneclickseo-score-grid {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    margin-bottom: 0;
}

.oneclickseo-score-grid .oneclickseo-score {
    min-width: 120px;
}

/* Style du bouton d'optimisation dans le header */
.oneclickseo-header .oneclickseo-optimize-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0;
    position: relative;
}

.oneclickseo-header #oneclickseo-optimize {
    background: linear-gradient(135deg, var(--primary-color, #6366f1), var(--secondary-color, #c026d3));
    color: white;
    border: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 
        0 5px 15px rgba(99, 102, 241, 0.4),
        0 0 20px rgba(99, 102, 241, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    white-space: nowrap;
    height: auto;
    line-height: 1.3;
}

.oneclickseo-header #oneclickseo-optimize::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
    z-index: -1;
}

.oneclickseo-header #oneclickseo-optimize:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 20px rgba(99, 102, 241, 0.5),
        0 0 30px rgba(99, 102, 241, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.oneclickseo-header #oneclickseo-optimize:hover::before {
    transform: translateX(100%);
}

.oneclickseo-header #oneclickseo-optimize:active {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 10px rgba(99, 102, 241, 0.4),
        0 0 15px rgba(99, 102, 241, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* Media queries pour la responsivité */
@media screen and (max-width: 782px) {
    .oneclickseo-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .oneclickseo-header .oneclickseo-optimize-container {
        justify-content: center;
        margin-top: 10px;
    }
    
    .oneclickseo-score-grid {
        justify-content: center;
    }
}

/* Styles pour la metabox OneClickSEO avec design classique WordPress */
.oneclickseo-meta-box {
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    border-radius: 4px;
    padding: 12px 24px 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    color: #1d2327;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.oneclickseo-meta-box:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Suppression des éléments d'animation spatiale */
.oneclickseo-meta-box::before,
.oneclickseo-meta-box::after,
.oneclickseo-meta-box .nebula,
.oneclickseo-meta-box .shooting-star,
.oneclickseo-meta-box .twinkling-star,
.oneclickseo-meta-box .cosmic-cloud {
    display: none;
}

/* Titre et en-tête élégant */
.oneclickseo-header {
    border-bottom: 1px solid #e2e4e7;
    margin: 0 -24px 20px;
    padding: 0 24px 12px;
}

.oneclickseo-scores {
    margin-bottom: 0px;
}

/* Grille des scores avec un style WordPress moderne */
.oneclickseo-score-grid {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.oneclickseo-score-grid .oneclickseo-score {
    min-width: 120px;
    background: #f6f7f7;
    border-radius: 4px;
    padding: 12px;
    border: 1px solid #dcdcde;
    transition: all 0.2s ease;
}

.oneclickseo-score-grid .oneclickseo-score:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    border-color: #c3c4c7;
}

/* Style des champs de formulaire */
.oneclickseo-meta-box .oneclickseo-field {
    margin-bottom: 16px;
    position: relative;
}

.oneclickseo-meta-box label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1d2327;
    position: relative;
    font-size: 14px;
}

.oneclickseo-meta-box label::after {
    content: none;
}

.oneclickseo-meta-box input[type="text"],
.oneclickseo-meta-box textarea,
.oneclickseo-meta-box select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #8c8f94;
    background: #fff;
    color: #1d2327;
    transition: all 0.2s ease;
    font-size: 14px;
    box-shadow: 0 0 0 transparent;
    line-height: 1.4;
}

.oneclickseo-meta-box input[type="text"]::before,
.oneclickseo-meta-box textarea::before,
.oneclickseo-meta-box select::before {
    content: none;
}

.oneclickseo-meta-box input[type="text"]:focus,
.oneclickseo-meta-box textarea:focus,
.oneclickseo-meta-box select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
    transform: none;
}

.oneclickseo-meta-box .description {
    font-size: 13px;
    color: #646970;
    margin-top: 4px;
    font-style: italic;
}

/* Colonnes de la metabox */
.oneclickseo-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

/* Boutons d'optimisation avec style WordPress */
.oneclickseo-header .oneclickseo-optimize-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: 16px;
}

.oneclickseo-header #oneclickseo-optimize {
    display: inline-block;
    background: #2271b1;
    border: 1px solid #2271b1;
    border-radius: 3px;
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
    text-decoration: none;
    text-shadow: none;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

.oneclickseo-header #oneclickseo-optimize:hover {
    background: #135e96;
    border-color: #135e96;
    transform: none;
    box-shadow: 0 1px 1px rgba(0,0,0,.15);
}

.oneclickseo-header #oneclickseo-optimize:active {
    background: #135e96;
    border-color: #135e96;
    box-shadow: inset 0 2px 5px -3px rgba(0,0,0,.5);
    transform: translateY(1px);
}

.oneclickseo-header #oneclickseo-optimize::before {
    content: none;
}

/* Suggestions et liens internes */
.oneclickseo-suggestions,
.oneclickseo-internal-links {
    background: #f6f7f7;
    border-radius: 4px;
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dcdcde;
}

.oneclickseo-suggestions::-webkit-scrollbar,
.oneclickseo-internal-links::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.oneclickseo-suggestions::-webkit-scrollbar-track,
.oneclickseo-internal-links::-webkit-scrollbar-track {
    background: #f6f7f7;
    border-radius: 4px;
}

.oneclickseo-suggestions::-webkit-scrollbar-thumb,
.oneclickseo-internal-links::-webkit-scrollbar-thumb {
    background: #c3c4c7;
    border-radius: 4px;
}

.oneclickseo-suggestions::-webkit-scrollbar-thumb:hover,
.oneclickseo-internal-links::-webkit-scrollbar-thumb:hover {
    background: #a7aaad;
}

.suggestion-item {
    padding: 8px 10px;
    margin-bottom: 5px;
    background: #fff;
    border-radius: 3px;
    border: 1px solid #e2e4e7;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    transition: all 0.2s ease;
}

.suggestion-item:hover {
    background: #f0f0f1;
    transform: none;
    border-color: #c3c4c7;
}

.suggestion-item .dashicons {
    color: #2271b1;
    font-size: 16px;
}

.suggestion-item:last-child {
    margin-bottom: 0;
}

.oneclickseo-no-data {
    color: #646970;
    font-style: italic;
    text-align: center;
    padding: 16px 0;
}

/* Section Schema */
.oneclickseo-schema {
    background: #f6f7f7;
    padding: 16px;
    border-radius: 4px;
    position: relative;
    border: 1px solid #dcdcde;
}

.oneclickseo-schema::before {
    content: none;
}

/* Mise en forme des scores */
.oneclickseo-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    position: relative;
    overflow: hidden;
}

.oneclickseo-score::before {
    content: none;
}

.oneclickseo-score .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    margin-bottom: 8px;
}

.oneclickseo-score.excellent {
    color: #2c974b;
}

.oneclickseo-score.good {
    color: #71b02f;
}

.oneclickseo-score.fair {
    color: #dba617;
}

.oneclickseo-score.poor {
    color: #d63638;
}

.score-details {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.score-value {
    font-size: 16px;
    font-weight: 700;
}

/* Media queries pour la responsivité */
@media screen and (max-width: 782px) {
    .oneclickseo-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .oneclickseo-score-grid {
        flex-wrap: wrap;
    }
    
    .oneclickseo-meta-box {
        padding: 12px 16px 16px;
    }

    .oneclickseo-header {
        margin: 0 -16px 16px;
        padding: 0 16px 12px;
    }
}

/* État de chargement/optimisation */
.oneclickseo-meta-box.optimizing {
    position: relative;
}

.oneclickseo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.oneclickseo-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===========================================
   LIVE CONTENT SCORE PANEL
   =========================================== */

.oneclickseo-live-score-panel {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 58, 138, 0.8) 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(165, 180, 252, 0.3);
    position: relative;
    overflow: hidden;
}

.oneclickseo-live-score-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #c026d3, #14b8a6);
}

.live-score-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.live-score-title .dashicons {
    color: #14b8a6;
}

.live-score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.live-score-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.live-score-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.live-score-item.live-score-overall {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(192, 38, 211, 0.3) 100%);
    border: 1px solid rgba(165, 180, 252, 0.4);
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.metric-icon {
    font-size: 16px;
}

.metric-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 10px;
}

.metric-value .value-number {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.metric-value .value-target,
.metric-value .value-max {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.metric-value .value-status {
    font-size: 16px;
    margin-left: auto;
}

.metric-value.overall-value .value-number {
    font-size: 36px;
}

.metric-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.metric-bar.overall-bar {
    height: 10px;
    border-radius: 5px;
}

.metric-bar-fill {
    height: 100%;
    border-radius: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, #6366f1, #c026d3);
}

.metric-bar-fill.good {
    background: linear-gradient(90deg, #10b981, #14b8a6);
}

.metric-bar-fill.ok {
    background: linear-gradient(90deg, #f59e0b, #eab308);
}

.metric-bar-fill.warning {
    background: linear-gradient(90deg, #f97316, #f59e0b);
}

.metric-bar-fill.poor {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* WordPress classic editor styles override */
.post-type-post .oneclickseo-live-score-panel,
.post-type-page .oneclickseo-live-score-panel {
    background: #f8f9fa;
    border: 1px solid #dcdcde;
}

.post-type-post .oneclickseo-live-score-panel::before,
.post-type-page .oneclickseo-live-score-panel::before {
    background: linear-gradient(90deg, #2271b1, #135e96);
}

.post-type-post .live-score-title,
.post-type-page .live-score-title {
    color: #1d2327;
}

.post-type-post .live-score-title .dashicons,
.post-type-page .live-score-title .dashicons {
    color: #2271b1;
}

.post-type-post .live-score-item,
.post-type-page .live-score-item {
    background: #fff;
    border: 1px solid #dcdcde;
}

.post-type-post .live-score-item:hover,
.post-type-page .live-score-item:hover {
    background: #f6f7f7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.post-type-post .live-score-item.live-score-overall,
.post-type-page .live-score-item.live-score-overall {
    background: linear-gradient(135deg, #f0f6fc 0%, #e8f4f8 100%);
    border: 1px solid #c3c4c7;
}

.post-type-post .metric-label,
.post-type-page .metric-label {
    color: #646970;
}

.post-type-post .metric-value .value-number,
.post-type-page .metric-value .value-number {
    color: #1d2327;
}

.post-type-post .metric-value .value-target,
.post-type-post .metric-value .value-max,
.post-type-page .metric-value .value-target,
.post-type-page .metric-value .value-max {
    color: #8c8f94;
}

.post-type-post .metric-bar,
.post-type-page .metric-bar {
    background: #dcdcde;
}

/* Responsive */
@media (max-width: 782px) {
    .live-score-grid {
        grid-template-columns: 1fr 1fr;
    }

    .live-score-item.live-score-overall {
        grid-column: 1 / -1;
    }

    .metric-value .value-number {
        font-size: 24px;
    }

    .metric-value.overall-value .value-number {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .live-score-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   REDIRECTIONS TAB STYLES
   =========================================== */

.oneclickseo-redirections-wrap .oneclickseo-card {
    margin-bottom: 20px;
}

.oneclickseo-redirect-form .redirect-form-row {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

.oneclickseo-redirect-form .redirect-field {
    flex: 1;
    min-width: 200px;
}

.oneclickseo-redirect-form .redirect-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.oneclickseo-redirect-form .redirect-field input,
.oneclickseo-redirect-form .redirect-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.oneclickseo-redirect-form .redirect-arrow {
    font-size: 24px;
    color: #7873f5;
    padding-bottom: 8px;
}

.oneclickseo-redirect-form .redirect-type-field {
    flex: 0 0 150px;
    min-width: 150px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header h2 {
    margin: 0;
}

.card-actions {
    display: flex;
    gap: 10px;
}

/* Card action buttons (Export/Import CSV) */
.card-actions .button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-shadow: none;
    box-shadow: none;
}

.card-actions .button:hover,
.card-actions .button:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-actions .button:active {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(1px);
}

.card-actions .button-primary {
    background: linear-gradient(135deg, #7873f5 0%, #667eea 100%);
    border: none;
    color: #fff;
}

.card-actions .button-primary:hover,
.card-actions .button-primary:focus {
    background: linear-gradient(135deg, #8b87f7 0%, #7a8def 100%);
    box-shadow: 0 4px 12px rgba(120, 115, 245, 0.4);
}

.redirect-type-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.redirect-type-badge.type-301 {
    background: #d4edda;
    color: #155724;
}

.redirect-type-badge.type-302 {
    background: #fff3cd;
    color: #856404;
}

.redirect-type-badge.type-307 {
    background: #cce5ff;
    color: #004085;
}

.column-source,
.column-destination {
    width: 30%;
}

.column-type {
    width: 80px;
}

.column-hits {
    width: 80px;
}

.column-actions {
    width: 120px;
}

.column-actions .button {
    padding: 0 8px;
    min-height: 28px;
}

.column-actions .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.suggestion-hint {
    color: #f0ad4e;
    margin-left: 5px;
    cursor: help;
}

.suggestion-hint .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ===== Redirections Tables (Dark Theme) ===== */
.oneclickseo-redirections-wrap .widefat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.oneclickseo-redirections-wrap .widefat thead tr {
    background: linear-gradient(135deg, rgba(120, 115, 245, 0.3) 0%, rgba(102, 126, 234, 0.3) 100%);
}

.oneclickseo-redirections-wrap .widefat thead th {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oneclickseo-redirections-wrap .widefat thead th:first-child {
    border-radius: 8px 0 0 0;
}

.oneclickseo-redirections-wrap .widefat thead th:last-child {
    border-radius: 0 8px 0 0;
}

.oneclickseo-redirections-wrap .widefat tbody tr {
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
}

.oneclickseo-redirections-wrap .widefat tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.06);
}

.oneclickseo-redirections-wrap .widefat tbody tr:hover {
    background: rgba(120, 115, 245, 0.15);
}

.oneclickseo-redirections-wrap .widefat tbody td {
    color: rgba(255, 255, 255, 0.85);
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: middle;
}

.oneclickseo-redirections-wrap .widefat tbody tr:last-child td {
    border-bottom: none;
}

.oneclickseo-redirections-wrap .widefat tbody tr:last-child td:first-child {
    border-radius: 0 0 0 8px;
}

.oneclickseo-redirections-wrap .widefat tbody tr:last-child td:last-child {
    border-radius: 0 0 8px 0;
}

/* Empty state message */
.oneclickseo-redirections-wrap .widefat tbody td[colspan] {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    background: rgba(255, 255, 255, 0.02);
}

/* Table action buttons */
.oneclickseo-redirections-wrap .widefat .button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.oneclickseo-redirections-wrap .widefat .button:hover {
    background: rgba(120, 115, 245, 0.4);
    border-color: rgba(120, 115, 245, 0.6);
    color: #fff;
}

.oneclickseo-redirections-wrap .widefat .button.button-link-delete {
    color: #ff6b6b;
}

.oneclickseo-redirections-wrap .widefat .button.button-link-delete:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.4);
}

/* Redirect type badges in table */
.oneclickseo-redirections-wrap .redirect-type-badge {
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
}

.oneclickseo-redirections-wrap .redirect-type-badge.type-301 {
    background: rgba(0, 163, 42, 0.2);
    color: #90EE90;
    border: 1px solid rgba(0, 163, 42, 0.3);
}

.oneclickseo-redirections-wrap .redirect-type-badge.type-302 {
    background: rgba(219, 166, 23, 0.2);
    color: #ffd700;
    border: 1px solid rgba(219, 166, 23, 0.3);
}

.oneclickseo-redirections-wrap .redirect-type-badge.type-307 {
    background: rgba(102, 126, 234, 0.2);
    color: #87ceeb;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Hits counter style */
.oneclickseo-redirections-wrap .hits-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.7);
}

.oneclickseo-redirections-wrap .hits-count::before {
    content: "\1F4C8";
    font-size: 14px;
}

/* URL display styling */
.oneclickseo-redirections-wrap .url-cell {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 12px;
    word-break: break-all;
}

/* 404 Error specific styling */
.oneclickseo-redirections-wrap .error-404-table .widefat thead tr {
    background: linear-gradient(135deg, rgba(214, 54, 56, 0.25) 0%, rgba(180, 50, 50, 0.25) 100%);
}

/* Premium Upsell */
.oneclickseo-premium-upsell {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.oneclickseo-premium-upsell .upsell-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
}

.oneclickseo-premium-upsell h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 10px;
}

.oneclickseo-premium-upsell p {
    font-size: 18px;
    opacity: 0.9;
}

.upsell-benefits {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 400px;
    text-align: left;
}

.upsell-benefits li {
    padding: 10px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upsell-benefits .dashicons {
    color: #90EE90;
}

.oneclickseo-premium-upsell .button-hero {
    background: white;
    color: #764ba2;
    border: none;
    font-size: 18px;
    padding: 15px 40px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.oneclickseo-premium-upsell .button-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Modal */
.oneclickseo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oneclickseo-modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.oneclickseo-modal-content h3 {
    margin-top: 0;
}

.oneclickseo-modal-content textarea {
    width: 100%;
    font-family: monospace;
    margin: 15px 0;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}


/* Pro badge */
.oneclickseo-tabs .pro-badge {
    background: linear-gradient(135deg, #ff6ec4 0%, #7873f5 100%);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Redirections responsive */
@media screen and (max-width: 782px) {
    .oneclickseo-redirect-form .redirect-form-row {
        flex-direction: column;
    }

    .oneclickseo-redirect-form .redirect-field {
        min-width: 100%;
    }

    .oneclickseo-redirect-form .redirect-arrow {
        display: none;
    }

    .oneclickseo-redirect-form .redirect-type-field {
        flex: 1;
        min-width: 100%;
    }

    .card-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* ===== Analytics Tab ===== */
.oneclickseo-analytics-tab {
    max-width: 1200px;
}

/* Setup Instructions */
.gsc-setup-instructions {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
}

.gsc-setup-instructions ol {
    margin: 15px 0;
    padding-left: 20px;
}

.gsc-setup-instructions li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.gsc-setup-instructions a {
    color: #a78bfa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.gsc-setup-instructions a:hover {
    color: #c4b5fd;
    text-decoration: underline;
}

.gsc-setup-instructions code {
    background: rgba(120, 115, 245, 0.2);
    border: 1px solid rgba(120, 115, 245, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    word-break: break-all;
    color: #e0e7ff;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.gsc-credentials-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gsc-credentials-form .form-row {
    margin-bottom: 15px;
}

.gsc-credentials-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.gsc-credentials-form input.regular-text {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 10px 14px;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.gsc-credentials-form input.regular-text:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(120, 115, 245, 0.6);
    outline: none;
    box-shadow: 0 0 0 3px rgba(120, 115, 245, 0.2);
}

.gsc-credentials-form input.regular-text::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Connected Status */
.gsc-connected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.connected-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.status-connected {
    background: rgba(0, 163, 42, 0.2);
    color: #90EE90;
    border: 1px solid rgba(0, 163, 42, 0.3);
}

.connected-actions {
    display: flex;
    gap: 10px;
}

.connected-actions .button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.connected-actions .button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.connected-actions .button-link-delete {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
}

.connected-actions .button-link-delete:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.5);
}

/* Period Selector */
.oneclickseo-period-selector {
    display: flex;
    gap: 8px;
    margin: 20px 0;
}

.period-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    transition: all 0.2s;
}

.period-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.period-btn.active {
    background: linear-gradient(135deg, #7873f5 0%, #667eea 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(120, 115, 245, 0.4);
}

/* KPI Grid */
.oneclickseo-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    .oneclickseo-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .oneclickseo-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.kpi-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.kpi-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(120, 115, 245, 0.3);
}

.kpi-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.kpi-change {
    font-size: 13px;
    font-weight: 600;
}

.kpi-change.positive {
    color: #90EE90;
}

.kpi-change.negative {
    color: #ff6b6b;
}

/* Analytics Tables */
.oneclickseo-analytics-tab .oneclickseo-table,
.oneclickseo-analytics-tab .widefat {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.oneclickseo-analytics-tab .widefat thead tr {
    background: linear-gradient(135deg, rgba(120, 115, 245, 0.3) 0%, rgba(102, 126, 234, 0.3) 100%);
}

.oneclickseo-analytics-tab .widefat thead th {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oneclickseo-analytics-tab .widefat tbody tr {
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
}

.oneclickseo-analytics-tab .widefat tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.06);
}

.oneclickseo-analytics-tab .widefat tbody tr:hover {
    background: rgba(120, 115, 245, 0.15);
}

.oneclickseo-analytics-tab .widefat tbody td {
    color: rgba(255, 255, 255, 0.85);
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: middle;
}

.oneclickseo-analytics-tab .widefat tbody tr:last-child td {
    border-bottom: none;
}

.oneclickseo-analytics-tab .page-url {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 12px;
}

.oneclickseo-analytics-tab .keyword {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.no-data {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
}

/* Analytics Responsive */
@media (max-width: 782px) {
    .gsc-connected {
        flex-direction: column;
        align-items: flex-start;
    }

    .oneclickseo-period-selector {
        flex-wrap: wrap;
    }

    .kpi-value {
        font-size: 24px;
    }
}

/* ===== Audit Tab ===== */
.oneclickseo-audit-tab {
    max-width: 1200px;
}

/* Audit Header */
.audit-header-card {
    margin-bottom: 20px;
}

.audit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.audit-info h2 {
    margin: 0 0 5px 0;
}

.audit-info .last-audit {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.audit-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.global-score .score-value {
    font-size: 28px;
    font-weight: 700;
}

.score-good { color: #90EE90; }
.score-medium { color: #ffd700; }
.score-bad { color: #ff6b6b; }

/* Category Grid */
.oneclickseo-audit-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    .oneclickseo-audit-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .oneclickseo-audit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .oneclickseo-audit-grid {
        grid-template-columns: 1fr;
    }
}

.audit-category-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.audit-category-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(120, 115, 245, 0.4);
    box-shadow: 0 4px 12px rgba(120, 115, 245, 0.2);
}

.category-header {
    margin-bottom: 10px;
}

.category-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 5px;
}

.category-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.category-score {
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0;
}

.category-issues {
    font-size: 12px;
}

.issue-count {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    margin: 2px;
    font-weight: 500;
}

.issue-count.error {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.issue-count.warning {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.issue-count.success {
    background: rgba(144, 238, 144, 0.2);
    color: #90EE90;
    border: 1px solid rgba(144, 238, 144, 0.3);
}

/* Issues Table */
.audit-issues-table .widefat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.audit-issues-table .widefat thead tr {
    background: linear-gradient(135deg, rgba(120, 115, 245, 0.3) 0%, rgba(102, 126, 234, 0.3) 100%);
}

.audit-issues-table .widefat thead th {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.audit-issues-table .widefat tbody tr {
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
}

.audit-issues-table .widefat tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.06);
}

.audit-issues-table .widefat tbody tr:hover {
    background: rgba(120, 115, 245, 0.15);
}

.audit-issues-table .widefat tbody td {
    color: rgba(255, 255, 255, 0.85);
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: middle;
}

.audit-issues-table .widefat tbody tr:last-child td {
    border-bottom: none;
}

.audit-issues-table .severity-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.severity-badge.error {
    background: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.4);
}

.severity-badge.warning {
    background: rgba(255, 215, 0, 0.3);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.severity-badge.info {
    background: rgba(135, 206, 235, 0.3);
    color: #87ceeb;
    border: 1px solid rgba(135, 206, 235, 0.4);
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.issue-details {
    max-width: 400px;
    color: rgba(255, 255, 255, 0.85);
}

.issue-url {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 12px;
}

.issue-url a {
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.2s;
}

.issue-url a:hover {
    color: #c4b5fd;
    text-decoration: underline;
}

/* No Issues State */
.no-issues {
    text-align: center;
    padding: 40px 20px;
    background: rgba(144, 238, 144, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(144, 238, 144, 0.2);
}

.no-issues .success-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.no-issues p {
    color: #90EE90;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* No Audit State */
.no-audit {
    margin-top: 20px;
}

.no-audit-content {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.no-audit-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
}

.no-audit-content h3 {
    margin: 0 0 10px 0;
    color: rgba(255, 255, 255, 0.9);
}

.no-audit-content p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Audit Stats Row */
.audit-stats-row {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
    flex-wrap: wrap;
}

.audit-stat {
    text-align: center;
}

.audit-stat .stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.audit-stat .stat-value.stat-passed {
    color: #90EE90;
}

.audit-stat .stat-value.stat-errors {
    color: #ff6b6b;
}

.audit-stat .stat-value.stat-warnings {
    color: #ffd700;
}

.audit-stat .stat-value.stat-info {
    color: #87ceeb;
}

.audit-stat .stat-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Global Score Enhanced */
.global-score {
    text-align: center;
    margin-right: 20px;
}

.global-score .score-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Category Card Description */
.category-description {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin: 5px 0 10px;
    line-height: 1.4;
}

/* Audit Grid - 7 categories */
.oneclickseo-audit-grid {
    grid-template-columns: repeat(7, 1fr);
}

@media (max-width: 1400px) {
    .oneclickseo-audit-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1000px) {
    .oneclickseo-audit-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .oneclickseo-audit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .oneclickseo-audit-grid {
        grid-template-columns: 1fr;
    }
}

/* Clickable Category Cards */
.audit-category-card {
    cursor: pointer;
}

.audit-category-card:active {
    transform: scale(0.98);
}

/* Issues Header with Filters */
.issues-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.issues-header h3 {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.issues-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Audit Filters */
.audit-filter {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.2s;
}

.audit-filter:hover,
.audit-filter:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(120, 115, 245, 0.5);
    outline: none;
}

.audit-filter option {
    background: #1e1e3f;
    color: #fff;
}

/* Issue Page Link */
.issue-page {
    max-width: 180px;
}

.issue-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.2s;
}

.issue-link:hover {
    color: #c4b5fd;
}

.no-page {
    color: rgba(255, 255, 255, 0.3);
}

/* Issue Actions */
.issue-actions {
    display: flex;
    gap: 5px;
}

.issue-actions .button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 8px;
    min-height: 28px;
    line-height: 1;
}

.issue-actions .button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.issue-actions .button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* Audit action buttons (edit, ignore) */
.issue-actions .audit-action-edit {
    background: rgba(120, 115, 245, 0.15);
    border-color: rgba(120, 115, 245, 0.3);
    color: #a5a1ff;
}

.issue-actions .audit-action-edit:hover {
    background: rgba(120, 115, 245, 0.3);
    border-color: rgba(120, 115, 245, 0.5);
    color: #c4c1ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(120, 115, 245, 0.25);
}

.issue-actions .audit-action-ignore {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.25);
    color: #ff8a8a;
}

.issue-actions .audit-action-ignore:hover {
    background: rgba(255, 107, 107, 0.25);
    border-color: rgba(255, 107, 107, 0.4);
    color: #ffb3b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.issue-actions .button {
    transition: all 0.2s ease;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Clear Audit button */
#clear-audit {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#clear-audit:hover {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.4);
    color: #ff8a8a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

#clear-audit .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Issues Count Footer */
.issues-count-footer {
    padding: 15px 20px;
    text-align: right;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 10px;
}

/* Categories Preview in No Audit State */
.audit-categories-preview {
    list-style: none;
    padding: 0;
    margin: 25px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 600px;
}

.audit-categories-preview li {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.audit-categories-preview li span {
    font-size: 16px;
}

/* Category Badge Enhanced */
.category-badge .cat-icon {
    margin-right: 4px;
}

/* Export Button */
#export-audit-csv {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

#export-audit-csv:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

#export-audit-csv .dashicons {
    margin-right: 4px;
}

/* Audit Responsive */
@media (max-width: 782px) {
    .audit-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .audit-actions {
        width: 100%;
        justify-content: space-between;
    }

    .audit-stats-row {
        gap: 15px;
    }

    .audit-stat .stat-value {
        font-size: 18px;
    }

    .issues-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .issues-actions {
        width: 100%;
    }

    .audit-filter {
        flex: 1;
        min-width: 100px;
    }
}

/* ============================================
   DASHBOARD TAB STYLES
   ============================================ */

.oneclickseo-dashboard {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Dashboard Icon */
.tab-icon.dashboard-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E") no-repeat center;
}

/* Health Score Card */
.dashboard-health-card {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 30px 40px;
}

.health-score-circle {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
}

.health-score-circle::before {
    content: '';
    position: absolute;
    inset: 8px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 50%;
}

.health-score-circle .score-value {
    position: relative;
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.health-score-circle .score-grade {
    position: relative;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 4px;
}

.health-score-circle.grade-a { box-shadow: 0 0 40px rgba(16, 185, 129, 0.5); }
.health-score-circle.grade-b { box-shadow: 0 0 40px rgba(99, 102, 241, 0.5); }
.health-score-circle.grade-c { box-shadow: 0 0 40px rgba(245, 158, 11, 0.5); }
.health-score-circle.grade-d { box-shadow: 0 0 40px rgba(249, 115, 22, 0.5); }
.health-score-circle.grade-f { box-shadow: 0 0 40px rgba(239, 68, 68, 0.5); }

.health-info {
    flex: 1;
}

.health-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.health-info > p {
    color: var(--text-muted);
    margin: 0 0 20px 0;
    font-size: 14px;
}

.health-factors {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.health-factors .factor {
    display: flex;
    align-items: center;
    gap: 15px;
}

.health-factors .factor-label {
    width: 160px;
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.health-factors .factor-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.health-factors .factor-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.health-factors .factor-score {
    width: 50px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}

/* Stats Row */
.dashboard-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card .stat-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #fff;
}

.stat-card .stat-icon.optimized-icon {
    background: linear-gradient(135deg, #10b981, #14b8a6);
}

.stat-card .stat-icon.pending-icon {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.stat-card .stat-icon.issues-icon {
    background: linear-gradient(135deg, #ef4444, #f43f5e);
}

.stat-card .stat-icon.coverage-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.stat-card .stat-content {
    display: flex;
    flex-direction: column;
}

.stat-card .stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Quick Wins */
.dashboard-quick-wins h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px 0;
}

.dashboard-quick-wins h3 .dashicons {
    color: #fbbf24;
}

.dashboard-quick-wins .section-description {
    color: var(--text-muted);
    margin: 0 0 20px 0;
    font-size: 14px;
}

.quick-wins-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-win-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid transparent;
}

.quick-win-item.severity-error {
    border-left-color: var(--error-color);
}

.quick-win-item.severity-warning {
    border-left-color: var(--warning-color);
}

.quick-win-item.severity-info {
    border-left-color: var(--primary-color);
}

.quick-win-item .win-icon {
    color: var(--text-muted);
}

.quick-win-item.severity-error .win-icon { color: var(--error-color); }
.quick-win-item.severity-warning .win-icon { color: var(--warning-color); }

.quick-win-item .win-message {
    flex: 1;
    color: #fff;
    font-size: 14px;
}

.quick-win-item .button {
    flex-shrink: 0;
}

/* Bottom Row */
.dashboard-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dashboard-recent-activity h3,
.dashboard-sitemap-status h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
}

.dashboard-recent-activity h3 .dashicons { color: #6366f1; }
.dashboard-sitemap-status h3 .dashicons { color: #14b8a6; }

.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.activity-list li:last-child {
    border-bottom: none;
}

.activity-list .activity-title {
    color: #fff;
    font-size: 14px;
}

.activity-list .activity-time {
    color: var(--text-muted);
    font-size: 12px;
}

.no-activity {
    color: var(--text-muted);
    font-style: italic;
}

/* Sitemap Status */
.sitemap-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sitemap-status-ok {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success-color);
    font-weight: 600;
    margin: 0;
}

.sitemap-status-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--warning-color);
    font-weight: 600;
    margin: 0;
}

.sitemap-updated {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

/* CTA Card */
.dashboard-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 40px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.2) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.dashboard-cta .cta-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.dashboard-cta .cta-content p {
    color: var(--text-muted);
    margin: 0;
    font-size: 14px;
}

.dashboard-cta .button-hero {
    font-size: 16px;
    padding: 12px 30px;
}

/* Dashboard Responsive */
@media (max-width: 1200px) {
    .dashboard-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 782px) {
    .dashboard-health-card {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 25px;
    }

    .health-info h3 {
        font-size: 20px;
    }

    .health-factors .factor {
        flex-wrap: wrap;
    }

    .health-factors .factor-label {
        width: 100%;
    }

    .dashboard-stats-row {
        grid-template-columns: 1fr;
    }

    .dashboard-bottom-row {
        grid-template-columns: 1fr;
    }

    .dashboard-cta {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* ============================================
   DASHBOARD V2 - Clean Modern Design
   ============================================ */

/* Reset container grid for dashboard v2 */
body.toplevel_page_oneclickseo .oneclickseo-container:has(.oneclickseo-dashboard-v2) {
    display: block;
}

/* Fallback for browsers without :has() support */
.oneclickseo-dashboard-v2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    grid-column: 1 / -1; /* Span all columns in grid fallback */
}

/* Dashboard Cards Base */
.oneclickseo-dashboard-v2 .dashboard-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 24px;
    transition: all 0.3s ease;
}

.oneclickseo-dashboard-v2 .dashboard-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.oneclickseo-dashboard-v2 h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.oneclickseo-dashboard-v2 h4 svg {
    opacity: 0.7;
}

/* Top Grid: Score + Stats */
.dashboard-top-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
}

/* Score Card */
.score-card {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%) !important;
    border-color: rgba(99, 102, 241, 0.25) !important;
}

.score-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.score-header .score-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-header .score-icon svg {
    color: #fff;
}

.score-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

/* Score Gauge */
.score-gauge {
    position: relative;
    width: 120px;
    height: 120px;
}

.score-gauge svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.score-gauge .gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.score-gauge .gauge-fill {
    fill: none;
    stroke: var(--score-color, #6366f1);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: calc(339.292 - (339.292 * var(--score, 0) / 100));
    transition: stroke-dashoffset 1s ease-out;
    filter: drop-shadow(0 0 8px var(--score-color));
}

.score-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.score-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.score-grade-badge {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.score-grade-badge.grade-a { background: linear-gradient(135deg, #10b981, #059669); }
.score-grade-badge.grade-b { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.score-grade-badge.grade-c { background: linear-gradient(135deg, #f59e0b, #d97706); }
.score-grade-badge.grade-d { background: linear-gradient(135deg, #f97316, #ea580c); }
.score-grade-badge.grade-f { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* Score Factors */
.score-factors {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.factor-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.factor-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.factor-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.factor-value {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.factor-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.factor-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px !important;
}

.stat-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-wrap svg {
    color: #fff;
}

.stat-optimized .stat-icon-wrap { background: linear-gradient(135deg, #10b981, #059669); }
.stat-pending .stat-icon-wrap { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-issues .stat-icon-wrap { background: linear-gradient(135deg, #ef4444, #dc2626); }
.stat-coverage .stat-icon-wrap { background: linear-gradient(135deg, #6366f1, #4f46e5); }

.stat-data {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.stat-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Middle Grid: Actions + Quick Wins */
.dashboard-middle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Actions Card */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.action-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon svg {
    color: #fff;
}

.action-optimize .action-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.action-audit .action-icon { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.action-sitemap .action-icon { background: linear-gradient(135deg, #10b981, #059669); }
.action-settings .action-icon { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.action-text {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

/* Quick Wins Card */
.quickwins-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quickwin-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border-left: 3px solid;
}

.quickwin-item.severity-error { border-left-color: #ef4444; }
.quickwin-item.severity-warning { border-left-color: #f59e0b; }
.quickwin-item.severity-info { border-left-color: #6366f1; }

.quickwin-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.quickwin-item.severity-error .quickwin-indicator { background: #ef4444; }
.quickwin-item.severity-warning .quickwin-indicator { background: #f59e0b; }
.quickwin-item.severity-info .quickwin-indicator { background: #6366f1; }

.quickwin-text {
    flex: 1;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

.quickwin-fix {
    padding: 5px 12px;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.quickwin-fix:hover {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

.quickwins-empty {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.quickwins-empty svg {
    margin-bottom: 12px;
    color: #10b981;
}

.quickwins-empty p {
    margin: 0;
    font-size: 14px;
}

/* Bottom Grid */
.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

/* Activity Card */
.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-dot {
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-title {
    flex: 1;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.activity-empty {
    text-align: center;
    padding: 30px 20px;
}

.activity-empty p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Sitemap Card */
.sitemap-status {
    padding: 16px;
    border-radius: 12px;
}

.sitemap-status.active {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.sitemap-status.inactive {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.sitemap-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    margin-bottom: 12px;
}

.sitemap-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.sitemap-updated {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 14px 0;
}

.sitemap-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.sitemap-link:hover {
    text-decoration: underline;
}

.sitemap-missing p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 14px 0;
    line-height: 1.5;
}

.sitemap-generate-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.sitemap-generate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    color: #fff;
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cta-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-icon svg {
    color: #fff;
}

.cta-text h4 {
    margin: 0 0 4px 0 !important;
    font-size: 16px !important;
}

.cta-text p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    color: #fff;
}

/* Dashboard V2 Responsive */
@media (max-width: 1200px) {
    .dashboard-top-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .dashboard-bottom-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-card {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-middle-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
    }

    .cta-content {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }

    .score-display {
        flex-direction: column;
    }
}

/* ================================
   Social Media Preview Styles
   ================================ */

.oneclickseo-social-preview {
    margin-top: 30px;
    padding: 20px;
    background: rgba(30, 58, 138, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(165, 180, 252, 0.2);
}

.social-preview-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.social-preview-title .dashicons {
    color: #a78bfa;
}

.social-preview-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.social-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(165, 180, 252, 0.2);
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.social-tab.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-color: transparent;
    color: #fff;
}

.social-tab .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.social-preview-panel {
    display: none;
}

.social-preview-panel.active {
    display: block;
}

/* Facebook Preview Card */
.facebook-preview-card {
    max-width: 500px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.fb-preview-image {
    width: 100%;
    height: 260px;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fb-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #65676b;
}

.preview-no-image .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #bcc0c4;
}

.fb-preview-content {
    padding: 12px 16px;
    border-top: 1px solid #dddfe2;
}

.fb-preview-domain {
    font-size: 12px;
    color: #65676b;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.fb-preview-title {
    font-size: 16px;
    font-weight: 600;
    color: #050505;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fb-preview-description {
    font-size: 14px;
    color: #65676b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Twitter Preview Card */
.twitter-preview-card {
    max-width: 500px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #cfd9de;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.tw-preview-image {
    width: 100%;
    height: 250px;
    background: #f7f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tw-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tw-preview-content {
    padding: 12px;
    border-top: 1px solid #cfd9de;
}

.tw-preview-title {
    font-size: 15px;
    font-weight: 400;
    color: #0f1419;
    line-height: 1.3;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tw-preview-description {
    font-size: 15px;
    color: #536471;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tw-preview-domain {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    color: #536471;
}

.tw-preview-domain .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Social Fields Section */
.social-fields-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(165, 180, 252, 0.15);
}

.social-fields-section h4 {
    margin: 0 0 15px;
    font-size: 14px;
    font-weight: 600;
    color: #a78bfa;
}

/* Social fields inputs - ensure readable text */
.social-fields-section .oneclickseo-field input[type="text"],
.social-fields-section .oneclickseo-field textarea {
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    border: 1px solid rgba(165, 180, 252, 0.3);
}

.social-fields-section .oneclickseo-field input[type="text"]::placeholder,
.social-fields-section .oneclickseo-field textarea::placeholder {
    color: #64748b;
}

.social-fields-section .oneclickseo-field input[type="text"]:focus,
.social-fields-section .oneclickseo-field textarea:focus {
    background: #fff;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.social-fields-section .oneclickseo-field label {
    color: #e2e8f0;
}

.social-fields-section .oneclickseo-field .description {
    color: #94a3b8;
}

.image-field-wrapper {
    display: flex;
    gap: 8px;
}

.image-field-wrapper input[type="text"] {
    flex: 1;
}

.image-field-wrapper .button {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
}

.image-field-wrapper .button .dashicons {
    margin: 0;
}

/* Responsive */
@media (max-width: 782px) {
    .social-preview-tabs {
        flex-direction: column;
    }

    .social-tab {
        justify-content: center;
    }

    .facebook-preview-card,
    .twitter-preview-card {
        max-width: 100%;
    }

    .fb-preview-image,
    .tw-preview-image {
        height: 180px;
    }
}

/* ===========================================
   METABOX REDESIGN - Professional UI
   =========================================== */

/* Reset conflicting styles */
.oneclickseo-meta-box .oneclickseo-header,
.oneclickseo-meta-box .oneclickseo-score-grid,
.oneclickseo-meta-box .oneclickseo-live-score-panel,
.oneclickseo-meta-box .nebula,
.oneclickseo-meta-box .shooting-star,
.oneclickseo-meta-box .twinkling-star,
.oneclickseo-meta-box .cosmic-cloud {
    display: none !important;
}

/* Base container */
.oneclickseo-meta-box {
    background: #ffffff;
    border-radius: 8px;
    padding: 0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Header */
.oneclickseo-metabox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e4e7;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px 8px 0 0;
}

.oneclickseo-metabox-header .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.oneclickseo-metabox-header .metabox-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
}

.oneclickseo-metabox-header .metabox-title .dashicons {
    color: #2271b1;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.oneclickseo-metabox-header .last-analysis-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #f0f0f1;
    border-radius: 12px;
    font-size: 11px;
    color: #646970;
    font-weight: 500;
}

.oneclickseo-metabox-header .header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Optimize Button */
.oneclickseo-optimize-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
}

.oneclickseo-optimize-btn:hover {
    background: linear-gradient(135deg, #135e96 0%, #0a4b78 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.oneclickseo-optimize-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(34, 113, 177, 0.2);
}

.oneclickseo-optimize-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.oneclickseo-optimize-btn.loading .dashicons {
    animation: spin 1s linear infinite;
}

/* Analysis Grid */
.oneclickseo-analysis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
    background: #f8f9fa;
}

/* Analysis Cards */
.analysis-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e4e7;
    transition: all 0.2s ease;
}

.analysis-card:hover {
    border-color: #c5c5c5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Main Card (SEO Score) spans 3 columns on first row concept - we'll use grid-column */
.analysis-card-main {
    grid-column: 1 / 2;
    grid-row: 1;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border-color: #c5d9ed;
}

.analysis-card-main:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 12px rgba(34, 113, 177, 0.15);
}

/* Card Icon */
.card-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f0f0f1;
    flex-shrink: 0;
}

.card-icon-wrap .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #646970;
}

/* Icon colors based on status */
.card-icon-wrap.excellent {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}
.card-icon-wrap.excellent .dashicons {
    color: #155724;
}

.card-icon-wrap.good {
    background: linear-gradient(135deg, #cce5ff 0%, #b8daff 100%);
}
.card-icon-wrap.good .dashicons {
    color: #004085;
}

.card-icon-wrap.fair,
.card-icon-wrap.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
}
.card-icon-wrap.fair .dashicons,
.card-icon-wrap.warning .dashicons {
    color: #856404;
}

.card-icon-wrap.poor {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}
.card-icon-wrap.poor .dashicons {
    color: #721c24;
}

/* Card Content */
.card-content {
    flex: 1;
    min-width: 0;
}

.card-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.card-value-row {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 8px;
}

.card-value {
    font-size: 24px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1;
}

.card-target,
.card-max {
    font-size: 13px;
    font-weight: 500;
    color: #8c8f94;
}

.card-status {
    margin-left: 6px;
    font-size: 14px;
}

/* Progress Bar */
.card-progress {
    height: 4px;
    background: #e2e4e7;
    border-radius: 2px;
    overflow: hidden;
}

.card-progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.4s ease, background 0.3s ease;
    background: #c5c5c5;
}

/* Progress colors - supports JS classes: good, ok, warning, poor */
.card-progress-fill.excellent,
.card-progress-fill.good {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.card-progress-fill.ok {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.card-progress-fill.fair,
.card-progress-fill.warning {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.card-progress-fill.poor {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

/* Optimize Status */
.oneclickseo-optimize-status {
    padding: 0 20px 20px;
    background: #f8f9fa;
}

.oneclickseo-optimize-status:empty {
    display: none;
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .oneclickseo-analysis-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .analysis-card-main {
        grid-column: 1 / 2;
    }
}

@media screen and (max-width: 782px) {
    .oneclickseo-metabox-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .oneclickseo-metabox-header .header-right {
        width: 100%;
    }

    .oneclickseo-optimize-btn {
        width: 100%;
        justify-content: center;
    }

    .oneclickseo-analysis-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }

    .analysis-card-main {
        grid-column: 1;
    }

    .analysis-card {
        padding: 14px;
    }

    .card-value {
        font-size: 20px;
    }
}

/* Animation for loading state */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hide old elements completely */
.oneclickseo-meta-box .oneclickseo-optimize-container,
.oneclickseo-meta-box #oneclickseo-optimize:not(.oneclickseo-optimize-btn) {
    display: none !important;
}

/* Form fields styling for new design */
.oneclickseo-meta-box > .oneclickseo-field {
    margin: 0 20px 16px;
    padding: 0;
}

.oneclickseo-meta-box > .oneclickseo-field:first-of-type {
    margin-top: 0;
    padding-top: 20px;
    border-top: 1px solid #e2e4e7;
}

.oneclickseo-meta-box > .oneclickseo-meta-grid {
    margin: 0 20px 20px;
}

.oneclickseo-meta-box > .oneclickseo-meta-grid:last-child {
    margin-bottom: 20px;
}

/* Audit Page Selector Row */
.audit-page-selector-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    margin: 0 -25px;
    border-top: 1px solid rgba(165, 180, 252, 0.1);
    position: relative;
    z-index: 1;
}

.audit-selector-label {
    color: rgba(226, 232, 240, 0.6);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

.audit-selector-hint {
    color: rgba(226, 232, 240, 0.4);
    font-size: 12px;
    flex-shrink: 0;
    font-style: italic;
}

/* Audit Page Selector */
.audit-page-selector {
    flex: 1;
    min-width: 0;
}

.audit-page-selector .select2-container {
    width: 100% !important;
}

.audit-page-selector .select2-container--default .select2-selection--multiple {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(165, 180, 252, 0.2);
    border-radius: var(--input-radius);
    min-height: 36px;
    padding: 3px 8px;
    transition: all var(--transition-fast);
}

.audit-page-selector .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
}

.audit-page-selector .select2-container--default .select2-selection--multiple:hover {
    border-color: rgba(165, 180, 252, 0.35);
}

.audit-page-selector .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: rgba(165, 180, 252, 0.4);
}

.audit-page-selector .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: rgba(99, 102, 241, 0.25);
    border: 1px solid rgba(165, 180, 252, 0.3);
    color: rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 1px 10px 1px 6px;
    font-size: 12px;
    margin: 0;
    line-height: 22px;
}

.audit-page-selector .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: rgba(226, 232, 240, 0.5);
    margin-right: 8px;
    border: none;
    font-size: 13px;
}

.audit-page-selector .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: white;
    background: transparent;
}

.audit-page-selector .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    color: var(--text-color);
    margin-top: 0;
    height: 26px;
    font-size: 13px;
}

.audit-page-selector .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field::placeholder {
    color: rgba(226, 232, 240, 0.35);
}

/* Select2 dropdown (rendered outside the card, at body level) */
body.toplevel_page_oneclickseo .select2-dropdown {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(165, 180, 252, 0.3);
    border-radius: var(--input-radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

body.toplevel_page_oneclickseo .select2-results__option {
    color: var(--text-color);
    padding: 8px 12px;
    font-size: 13px;
}

body.toplevel_page_oneclickseo .select2-results__option--highlighted[aria-selected] {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

body.toplevel_page_oneclickseo .select2-results__option[aria-selected="true"] {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-color);
}

body.toplevel_page_oneclickseo .select2-search--dropdown .select2-search__field {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(165, 180, 252, 0.3);
    border-radius: 4px;
    color: var(--text-color);
    padding: 6px 10px;
}

body.toplevel_page_oneclickseo .select2-results__message {
    color: rgba(226, 232, 240, 0.5);
}

.audit-header .audit-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}