/**
 * BlogWolf Admin Styles
 * Native WordPress admin interface
 */

/* ==========================================================================
   Consent Screen
   ========================================================================== */

.blogwolf-consent {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.blogwolf-consent h1 {
    margin: 0 0 20px;
    font-size: 28px;
    color: #1d2327;
}

.blogwolf-consent h2 {
    font-size: 18px;
    margin: 30px 0 15px;
    color: #1d2327;
}

.blogwolf-consent p {
    font-size: 14px;
    line-height: 1.6;
    color: #50575e;
}

.blogwolf-consent ul {
    margin: 15px 0;
    padding-left: 20px;
}

.blogwolf-consent li {
    margin: 8px 0;
    color: #50575e;
}

.blogwolf-consent .button-primary {
    background: #FF5353;
    border-color: #FF5353;
    font-size: 16px;
    padding: 10px 30px;
    height: auto;
    margin-top: 20px;
}

.blogwolf-consent .button-primary:hover {
    background: #E64A4A;
    border-color: #E64A4A;
}

.blogwolf-consent .legal-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.blogwolf-consent .legal-links a {
    color: #FF5353;
    text-decoration: none;
}

.blogwolf-consent .legal-links a:hover {
    text-decoration: underline;
}

.blogwolf-consent .header-with-icon {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.blogwolf-consent .header-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.blogwolf-consent .header-with-icon h1 {
    margin: 0;
}

/* ==========================================================================
   Auth Screen (Login / Signup)
   ========================================================================== */

.blogwolf-auth-container {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.blogwolf-auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 40px;
    width: 100%;
    max-width: 440px;
}

.blogwolf-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.blogwolf-auth-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 16px;
}

.blogwolf-auth-text-logo {
    height: 36px;
    width: auto;
    margin-bottom: 12px;
}

.blogwolf-auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 8px;
}

.blogwolf-auth-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 8px;
}

.blogwolf-auth-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
}

.blogwolf-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.blogwolf-tab:hover {
    color: #1d2327;
}

.blogwolf-tab.active {
    color: #FF5353;
    border-bottom-color: #FF5353;
}

.blogwolf-tab-content {
    display: none;
}

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

.blogwolf-form-group {
    margin-bottom: 18px;
}

.blogwolf-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.blogwolf-optional {
    font-weight: 400;
    color: #9ca3af;
}

.blogwolf-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #1d2327;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.blogwolf-input:focus {
    outline: none;
    border-color: #FF5353;
    box-shadow: 0 0 0 2px rgba(255, 83, 83, 0.15);
}

.blogwolf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    text-decoration: none;
    line-height: 1.4;
}

.blogwolf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.blogwolf-btn-primary {
    width: 100%;
    background: #FF5353;
    color: #fff;
    padding: 12px 20px;
    font-size: 15px;
    margin-top: 4px;
}

.blogwolf-btn-primary:hover {
    background: #E64A4A;
}

.blogwolf-btn-gradient {
    width: 100%;
    background: linear-gradient(to right, #FF5353, #FF8566);
    color: #fff;
    padding: 16px 20px;
    font-size: 16px;
    margin-top: 4px;
}

.blogwolf-btn-gradient:hover {
    opacity: 0.9;
}

.blogwolf-btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
}

.blogwolf-btn-outline:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.blogwolf-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.blogwolf-btn-credits {
    background: #FF5353;
    color: #fff;
}

.blogwolf-btn-credits:hover {
    background: #E64A4A;
    color: #fff;
}

.blogwolf-auth-footer-text {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
}

.blogwolf-auth-footer-text a {
    color: #FF5353;
    text-decoration: none;
}

.blogwolf-auth-footer-text a:hover {
    text-decoration: underline;
}

.blogwolf-value-props {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
}

.blogwolf-value-prop {
    font-size: 14px;
    color: #374151;
}

.blogwolf-check {
    color: #16a34a;
    font-weight: 700;
    margin-right: 6px;
    font-size: 16px;
}

.blogwolf-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.blogwolf-password-wrapper .blogwolf-input {
    padding-right: 42px;
    flex: 1;
}

.blogwolf-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;
}

.blogwolf-password-toggle:hover {
    color: #6b7280;
}

.blogwolf-password-toggle .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
}

.blogwolf-field-hint {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.blogwolf-terms-group {
    margin-bottom: 8px !important;
}

.blogwolf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    font-weight: 400 !important;
}

.blogwolf-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.blogwolf-checkbox-label a {
    color: #FF5353;
    text-decoration: none;
}

.blogwolf-checkbox-label a:hover {
    text-decoration: underline;
}

.blogwolf-social-proof {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.blogwolf-stars {
    display: block;
    color: #eab308;
    font-size: 20px;
    letter-spacing: 3px;
}

.blogwolf-rating-text {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
}

.blogwolf-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
}

.blogwolf-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.blogwolf-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* ==========================================================================
   Dashboard Header
   ========================================================================== */

.blogwolf-dashboard-header {
    background: #fff;
    padding: 16px 24px 0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}
.blogwolf-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.blogwolf-header-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.blogwolf-header-bottom .blogwolf-header-right {
    padding-bottom: 10px;
}

.blogwolf-account-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 8px 24px;
    color: #6b7280;
    font-size: 13px;
}

.blogwolf-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blogwolf-header-left h1 {
    font-size: 22px;
    margin: 0;
    color: #1d2327;
}

.blogwolf-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.blogwolf-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.blogwolf-credits-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    color: #166534;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.blogwolf-credits-display .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.blogwolf-user-email {
    color: #6b7280;
    font-size: 13px;
}

/* ==========================================================================
   Dashboard Content - Quick Actions
   ========================================================================== */

.blogwolf-dashboard-content h2 {
    font-size: 18px;
    color: #1d2327;
    margin: 0 0 16px;
}

.blogwolf-action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.blogwolf-action-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px 20px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.blogwolf-action-card:hover {
    border-color: #FF5353;
    box-shadow: 0 4px 12px rgba(255, 83, 83, 0.1);
    transform: translateY(-2px);
}

.blogwolf-action-card .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #FF5353;
    margin-bottom: 12px;
}

.blogwolf-action-card h3 {
    font-size: 15px;
    color: #1d2327;
    margin: 0 0 6px;
}

.blogwolf-action-card p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Page Content & Placeholder
   ========================================================================== */

.blogwolf-page-content {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.blogwolf-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.blogwolf-placeholder p {
    font-size: 15px;
}

/* ==========================================================================
   Loading spinner
   ========================================================================== */

.blogwolf-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: blogwolf-spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

.blogwolf-btn-outline .blogwolf-spinner {
    border-color: rgba(0,0,0,0.15);
    border-top-color: #374151;
}

@keyframes blogwolf-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Generate Page Layout
   ========================================================================== */

.blogwolf-generate-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 24px;
    align-items: start;
}

.blogwolf-generate-form-col .blogwolf-card,
.blogwolf-generate-preview-col .blogwolf-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.blogwolf-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #1d2327;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.blogwolf-select:focus {
    outline: none;
    border-color: #FF5353;
    box-shadow: 0 0 0 2px rgba(255, 83, 83, 0.15);
}

/* Sections */
.blogwolf-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.blogwolf-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.blogwolf-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 14px;
}

.blogwolf-section-title .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #FF5353;
}

/* Form rows */
.blogwolf-form-row {
    display: flex;
    gap: 12px;
}

.blogwolf-half {
    flex: 1;
    min-width: 0;
}

.blogwolf-field-hint {
    margin: 4px 0 0;
    font-size: 12px;
    color: #9ca3af;
}

/* Checkbox grid */
.blogwolf-checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.blogwolf-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    padding: 6px 0;
    min-height: 32px;
    line-height: 1.4;
    position: relative;
}

.blogwolf-checkbox-label input[type="checkbox"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    flex-shrink: 0;
    border: 2px solid #9ca3af !important;
    border-radius: 4px !important;
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    transition: border-color 0.15s, background-color 0.15s;
    box-shadow: none !important;
    outline: none !important;
    color: transparent !important;
}

.blogwolf-checkbox-label input[type="checkbox"]::before {
    content: none !important;
    display: none !important;
}

.blogwolf-checkbox-label input[type="checkbox"]:checked {
    background-color: #FF5353 !important;
    border-color: #FF5353 !important;
}

.blogwolf-checkbox-label input[type="checkbox"]:checked::before {
    content: none !important;
    display: none !important;
}

.blogwolf-checkbox-label input[type="checkbox"]:checked::after {
    content: '' !important;
    display: block !important;
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg);
    background: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.blogwolf-checkbox-label input[type="checkbox"]:focus {
    outline: 2px solid rgba(255, 83, 83, 0.3) !important;
    outline-offset: 1px;
    box-shadow: none !important;
}

.blogwolf-checkbox-standalone {
    padding: 8px 0 0;
}

/* Image options (collapsible) */
.blogwolf-image-opts {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
}

/* Credit estimate & generate button */
.blogwolf-generate-actions {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.blogwolf-credit-estimate {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f9fafb;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    margin-bottom: 14px;
}

.blogwolf-credit-estimate .dashicons {
    color: #FF5353;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.blogwolf-credit-estimate strong {
    color: #FF5353;
    font-size: 16px;
}

.blogwolf-btn-generate {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    gap: 8px;
}

.blogwolf-btn-generate .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Preview Column
   ========================================================================== */

.blogwolf-generate-preview-col {
    align-self: start;
}
.blogwolf-generate-preview-col .blogwolf-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.blogwolf-preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    color: #9ca3af;
}

.blogwolf-preview-empty .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.blogwolf-preview-empty h3 {
    font-size: 18px;
    color: #6b7280;
    margin: 0 0 8px;
}

.blogwolf-preview-empty p {
    font-size: 14px;
    max-width: 320px;
    line-height: 1.6;
}

.blogwolf-autopilot-cta {
    margin-top: 32px;
    padding: 28px 24px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    max-width: 360px;
}
.blogwolf-autopilot-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 14px;
}
.blogwolf-autopilot-cta-icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    color: #6b7280;
    margin: 0;
}
.blogwolf-autopilot-cta-icon svg {
    color: #6b7280;
}
.blogwolf-autopilot-cta h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
}
.blogwolf-autopilot-cta p {
    font-size: 13.5px;
    color: #6b7280;
    margin: 0 0 16px;
    max-width: 100%;
    line-height: 1.5;
}
.blogwolf-autopilot-cta .blogwolf-btn {
    border-color: #d1d5db;
    color: #4b5563;
    font-weight: 500;
}

/* Generating / Progress */
.blogwolf-preview-generating {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.blogwolf-generating-content {
    text-align: center;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.blogwolf-wolf-loader {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.blogwolf-wolf-video {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FF5353;
    box-shadow: 0 0 20px rgba(255, 83, 83, 0.25);
}

.blogwolf-image-generating-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin: 12px 0;
    background: #fef3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #664d03;
    font-size: 13px;
    line-height: 1.4;
}

.blogwolf-spinner-small {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border: 2px solid #ffc107;
    border-top-color: #664d03;
    border-radius: 50%;
    animation: blogwolf-spin 0.8s linear infinite;
}

.blogwolf-preview-generating {
    position: relative;
}

.blogwolf-generating-content h3 {
    font-size: 18px;
    font-weight: 500;
    color: #374151;
    margin: 0 0 6px;
}

.blogwolf-progress-bar-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #f3f4f6;
    overflow: hidden;
    z-index: 10;
    border-radius: 8px 8px 0 0;
}

.blogwolf-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF5353, #FF7B54);
    width: 0%;
    will-change: width;
}

.blogwolf-progress-bar.blogwolf-progress-animate {
    animation: blogwolfProgressFill var(--bw-progress-duration, 5s) linear forwards;
}

@keyframes blogwolfProgressFill {
    from { width: 0%; }
    to { width: 100%; }
}

.blogwolf-progress-time {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 4px;
}

.blogwolf-progress-step {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* Skeleton preview */
.blogwolf-skeleton-preview {
    width: 100%;
    margin: 32px 0 0;
    padding: 0 32px;
    box-sizing: border-box;
}

.blogwolf-skeleton-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.blogwolf-skeleton-line {
    border-radius: 6px;
    background: #e5e7eb;
}

.blogwolf-skeleton-shimmer {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: blogwolf-shimmer 1.5s ease-in-out infinite;
}

@keyframes blogwolf-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.blogwolf-skeleton-image {
    width: 100%;
    height: 240px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    position: relative;
    overflow: hidden;
}

.blogwolf-skeleton-image-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.blogwolf-skeleton-image-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #9ca3af;
}

.blogwolf-skeleton-image p {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 8px;
}

.blogwolf-skeleton-dots {
    display: flex;
    gap: 5px;
}

.blogwolf-skeleton-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #FF5353;
    animation: blogwolf-dot-bounce 1s ease-in-out infinite;
}

.blogwolf-skeleton-dot:nth-child(2) { animation-delay: 0.15s; }
.blogwolf-skeleton-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes blogwolf-dot-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.blogwolf-skeleton-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.blogwolf-skeleton-heading {
    padding-top: 16px;
    margin-bottom: 16px;
}

/* Result Preview */
.blogwolf-preview-header {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
}

.blogwolf-preview-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1d2327;
    margin: 0;
    line-height: 1.3;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.blogwolf-preview-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.blogwolf-preview-actions-bottom {
    margin-top: 24px;
    margin-bottom: 0;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.blogwolf-result-featured-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.blogwolf-result-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blogwolf-result-content {
    font-size: 15px;
    line-height: 1.7;
    color: #1d2327;
}

.blogwolf-result-content h2 {
    font-size: 22px;
    margin: 28px 0 12px;
    color: #1d2327;
}

.blogwolf-result-content h3 {
    font-size: 18px;
    margin: 24px 0 10px;
    color: #1d2327;
}

.blogwolf-result-content p {
    margin: 0 0 16px;
}

.blogwolf-result-content ul {
    margin: 0 0 16px;
    padding-left: 24px;
    list-style-type: disc;
}

.blogwolf-result-content ol {
    margin: 0 0 16px;
    padding-left: 24px;
    list-style-type: decimal;
}

.blogwolf-result-content li {
    margin: 4px 0;
    display: list-item;
}

.blogwolf-result-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 16px 0;
    display: block;
    text-align: left;
    float: none;
}

.blogwolf-result-content figure,
.blogwolf-result-content .wp-caption {
    margin: 16px 0;
    text-align: left;
}

.blogwolf-product-grid {
    margin: 24px 0;
}

.blogwolf-product-grid-inner {
    display: grid;
    gap: 16px;
}

.blogwolf-product-grid-inner.cols-1 {
    grid-template-columns: 1fr;
    max-width: 280px;
}

.blogwolf-product-grid-inner.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.blogwolf-product-grid-inner.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.blogwolf-product-grid-inner.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.blogwolf-product-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.blogwolf-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blogwolf-product-card-image {
    aspect-ratio: 1;
    background: #f3f4f6;
    overflow: hidden;
}

.blogwolf-product-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    margin: 0 !important;
    border-radius: 0 !important;
    display: block;
}

.blogwolf-product-card-body {
    padding: 16px;
}

.blogwolf-product-card-body.compact {
    padding: 8px;
}

.blogwolf-product-card-name {
    font-weight: 500;
    color: #111827;
    font-size: 14px;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.blogwolf-product-card-body.compact .blogwolf-product-card-name {
    font-size: 12px;
}

.blogwolf-product-card-price {
    font-weight: 700;
    color: #FF5353;
    font-size: 18px;
    margin: 0 0 12px;
}

.blogwolf-product-card-body.compact .blogwolf-product-card-price {
    font-size: 14px;
    margin-bottom: 4px;
}

.blogwolf-product-card-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #FF5353 0%, #FF8566 100%);
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none !important;
    transition: opacity 0.15s;
    box-sizing: border-box;
}

.blogwolf-product-card-body.compact .blogwolf-product-card-btn {
    padding: 4px 8px;
    font-size: 12px;
}

.blogwolf-product-card-btn:hover {
    opacity: 0.9;
    color: #fff !important;
}

.blogwolf-result-meta {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.blogwolf-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.blogwolf-meta-label {
    color: #6b7280;
}

.blogwolf-meta-value {
    font-weight: 600;
    color: #1d2327;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.blogwolf-toast {
    position: fixed;
    top: 40px;
    right: 24px;
    z-index: 99999;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s, transform 0.3s;
    max-width: 380px;
}

.blogwolf-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.blogwolf-toast.success {
    background: #166534;
    color: #fff;
}

.blogwolf-toast.error {
    background: #991b1b;
    color: #fff;
}

.blogwolf-toast.info {
    background: #1e40af;
    color: #fff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 1200px) {
    .blogwolf-generate-layout {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 782px) {
    .blogwolf-auth-card {
        padding: 24px;
    }

    .blogwolf-dashboard-header {
        padding: 12px 16px;
    }

    .blogwolf-header-left h1 {
        font-size: 18px;
    }

    .blogwolf-action-cards {
        grid-template-columns: 1fr;
    }

    .blogwolf-user-email {
        display: none;
    }

    .blogwolf-header-right {
        gap: 8px;
    }

    .blogwolf-form-row {
        flex-direction: column;
        gap: 0;
    }

    .blogwolf-checkbox-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .blogwolf-checkbox-label {
        font-size: 14px;
        padding: 8px 0;
    }

    .blogwolf-preview-actions {
        width: 100%;
    }

    .blogwolf-preview-actions .blogwolf-btn {
        flex: 1;
    }
}

@media screen and (max-width: 480px) {
    .blogwolf-auth-container {
        padding: 20px 10px;
    }

    .blogwolf-auth-card {
        padding: 20px 16px;
    }

    .blogwolf-consent {
        padding: 24px 16px;
        margin: 20px auto;
    }
}

/* =====================================================================
   Phase 3: Article History & Post Management
   ===================================================================== */

/* Toolbar */
.blogwolf-articles-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 16px;
}
.blogwolf-articles-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.blogwolf-articles-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.blogwolf-select-all-label {
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #555;
}
.blogwolf-selection-count {
    font-size: 13px;
    color: #888;
}

/* Danger / Delete button */
.blogwolf-btn-danger {
    background: #d63638 !important;
    color: #fff !important;
    border-color: #d63638 !important;
}
.blogwolf-btn-danger:hover {
    background: #b32d2e !important;
}

/* Loading / Empty states */
.blogwolf-articles-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #888;
}
.blogwolf-articles-loading .blogwolf-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top-color: #FF5353;
    border-radius: 50%;
    animation: blogwolf-spin 0.8s linear infinite;
    margin-bottom: 12px;
}
.blogwolf-articles-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}
.blogwolf-articles-empty .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #ccc;
    margin-bottom: 12px;
}
.blogwolf-articles-empty h3 {
    font-size: 18px;
    color: #555;
    margin: 0 0 8px;
}
.blogwolf-articles-empty p {
    color: #888;
    margin: 0 0 16px;
}

/* Article cards container */
.blogwolf-articles-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Individual article card */
.blogwolf-article-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.blogwolf-article-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.blogwolf-article-card-selected {
    border-color: #FF5353;
    box-shadow: 0 0 0 2px rgba(255, 83, 83, 0.15);
}

.blogwolf-article-card-checkbox {
    flex-shrink: 0;
}
.blogwolf-article-card-checkbox .blogwolf-checkbox-label {
    margin: 0;
    padding: 0;
}

/* Thumbnail */
.blogwolf-article-card-thumb {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #e0e0e0;
}
.blogwolf-article-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blogwolf-article-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #bbb;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

/* Card info */
.blogwolf-article-card-info {
    flex: 1;
    min-width: 0;
}
.blogwolf-article-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.blogwolf-article-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
}
.blogwolf-article-date .dashicons,
.blogwolf-article-credits .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    vertical-align: -1px;
    margin-right: 2px;
}
.blogwolf-article-credits {
    color: #d97706;
}

/* Status badges */
.blogwolf-status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}
.blogwolf-status-published {
    background: #dcfce7;
    color: #15803d;
}
.blogwolf-status-draft {
    background: #fef3c7;
    color: #b45309;
}

/* Keywords */
.blogwolf-article-keywords {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.blogwolf-article-keywords .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #bbb;
}
.blogwolf-keyword-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #f3f4f6;
    color: #555;
    border-radius: 4px;
    font-size: 12px;
}

/* Card actions */
.blogwolf-article-card-actions {
    flex-shrink: 0;
    display: flex;
    gap: 6px;
}

/* Footer with load more */
.blogwolf-articles-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
}
.blogwolf-articles-count {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* =====================================================================
   Single Article View
   ===================================================================== */

.blogwolf-article-single-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}
.blogwolf-article-single-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.blogwolf-single-article-card {
    padding: 24px;
}

/* Meta bar */
.blogwolf-single-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #888;
}
.blogwolf-single-meta-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.blogwolf-single-meta-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.blogwolf-single-date .dashicons,
.blogwolf-single-credits .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    vertical-align: -1px;
    margin-right: 2px;
}
.blogwolf-single-credits {
    color: #d97706;
}

/* Single title */
.blogwolf-single-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.blogwolf-single-title {
    font-size: 28px;
    font-weight: 700;
    color: #1d2327;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}
.bw-html-toggle {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Featured image with regenerate button */
.blogwolf-single-featured-wrap {
    margin-bottom: 20px;
}
.blogwolf-single-featured-image-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}
.blogwolf-single-featured-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}
.blogwolf-regen-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1d2327 !important;
    border: 1px solid #ccc !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.blogwolf-single-featured-image-container:hover .blogwolf-regen-btn {
    opacity: 1;
}
.blogwolf-regen-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: -2px;
    margin-right: 4px;
}

/* Regeneration panel */
.blogwolf-regen-panel {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.blogwolf-regen-panel h4 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #1d2327;
}
.blogwolf-form-group.blogwolf-third {
    flex: 1;
    min-width: 150px;
}

/* Inline image regeneration */
.blogwolf-inline-image-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
}
.blogwolf-regen-inline-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1d2327 !important;
    border: 1px solid #ccc !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    font-size: 12px;
    padding: 4px 10px;
}
.blogwolf-inline-image-wrap:hover .blogwolf-regen-inline-btn {
    opacity: 1;
}
.blogwolf-regen-inline-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 3px;
}

/* Keywords in single view */
.blogwolf-single-keywords {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 16px;
    margin-top: 20px;
    border-top: 1px solid #f0f0f0;
}
.blogwolf-single-keywords .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #bbb;
}

/* Responsive for articles */
@media screen and (max-width: 782px) {
    .blogwolf-article-card {
        flex-wrap: wrap;
    }
    .blogwolf-article-card-thumb {
        width: 80px;
        height: 56px;
    }
    .blogwolf-article-card-info {
        flex: 1 1 calc(100% - 130px);
    }
    .blogwolf-article-card-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .blogwolf-articles-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }
    .blogwolf-article-single-toolbar {
        flex-wrap: wrap;
    }
    .blogwolf-article-single-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .blogwolf-single-title {
        font-size: 22px;
    }
}

/* ==========================================================================
   Content Editor - Floating Toolbar
   ========================================================================== */

.blogwolf-floating-toolbar {
    position: fixed;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 2px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 4px 6px;
}
.blogwolf-floating-toolbar button {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d2327;
    font-size: 12px;
    font-weight: 700;
    padding: 0;
    line-height: 1;
}
.blogwolf-floating-toolbar button:hover {
    background: #f0f0f1;
}
.blogwolf-floating-toolbar button.active {
    background: #e0e0e0;
}
.blogwolf-floating-toolbar button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
}
.bw-toolbar-separator {
    width: 1px;
    height: 20px;
    background: #ddd;
    margin: 0 4px;
    flex-shrink: 0;
}
.bw-link-input-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
}
.bw-link-input {
    width: 200px;
    height: 26px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0 8px;
    font-size: 12px;
    outline: none;
}
.bw-link-input:focus {
    border-color: #FF5353;
    box-shadow: 0 0 0 1px #FF5353;
}

#bw-single-body.bw-editing {
    outline: 2px solid rgba(255, 83, 83, 0.3);
    outline-offset: 4px;
    border-radius: 4px;
    cursor: text;
    min-height: 200px;
}
#bw-single-title.bw-editing-title {
    border: 1px dashed #ccc;
    padding: 8px;
    outline: none;
    border-radius: 4px;
}
.blogwolf-html-source {
    width: 100%;
    min-height: 400px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.6;
    background: #1d2327;
    color: #f0f0f0;
    padding: 16px;
    border-radius: 8px;
    border: none;
    resize: vertical;
    tab-size: 2;
}
.blogwolf-html-source:focus {
    outline: 2px solid #FF5353;
}
.blogwolf-editor-wrapper {
    display: block;
}
.blogwolf-editor-wrapper.bw-editor-active {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    align-items: start;
}
.blogwolf-editor-sidebar {
    position: sticky;
    top: 32px;
}
.blogwolf-editor-sidebar .blogwolf-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.blogwolf-editor-sidebar .blogwolf-section {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}
.blogwolf-editor-sidebar .blogwolf-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.blogwolf-editor-sidebar .blogwolf-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.blogwolf-editor-sidebar .blogwolf-section-title .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #FF5353;
}
.blogwolf-editor-image-preview {
    width: 100%;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
    background: #f9fafb;
    margin-bottom: 12px;
}
.blogwolf-editor-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blogwolf-editor-details {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
}
.blogwolf-editor-details summary {
    padding: 10px 14px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    user-select: none;
}
.blogwolf-editor-details summary .blogwolf-hint {
    color: #9ca3af;
    font-size: 12px;
}
.blogwolf-editor-details[open] summary {
    border-bottom: 1px solid #e5e7eb;
}
.blogwolf-editor-details-content {
    padding: 14px;
}
.blogwolf-editor-details-content .blogwolf-form-group {
    margin-bottom: 12px;
}
.blogwolf-editor-details-content .blogwolf-form-group:last-child {
    margin-bottom: 0;
}
/* Inline images in editor sidebar */
.blogwolf-editor-inline-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.blogwolf-editor-inline-block {
    margin-bottom: 0;
}
.blogwolf-editor-inline-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin: 0 0 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media screen and (max-width: 960px) {
    .blogwolf-editor-wrapper.bw-editor-active {
        grid-template-columns: 1fr;
    }
    .blogwolf-editor-sidebar {
        position: static;
    }
}

/* ===================================================================
   KEYWORD MANAGEMENT PAGE
   =================================================================== */
.blogwolf-keywords-page { max-width: 1200px; }
.blogwolf-keywords-header { margin-bottom: 20px; }
.blogwolf-keywords-header h2 { margin: 0 0 4px 0; font-size: 20px; font-weight: 600; color: #1e293b; }
.blogwolf-keywords-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.blogwolf-kw-lists-header { display: flex; align-items: center; justify-content: space-between; }
.blogwolf-kw-lists-container { max-height: 420px; overflow-y: auto; }
.blogwolf-kw-list-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 10px; border-radius: 6px; cursor: pointer;
    border: 1px solid transparent; transition: all .15s;
}
.blogwolf-kw-list-item:hover { background: #f9fafb; border-color: #e5e7eb; }
.blogwolf-kw-list-item.active {
    background: linear-gradient(135deg, rgba(255,83,83,0.08), rgba(255,133,102,0.08));
    border-color: rgba(255,83,83,0.3);
}
.blogwolf-kw-list-item-info { flex: 1; min-width: 0; }
.blogwolf-kw-list-item-name { display: block; font-size: 13px; font-weight: 500; color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blogwolf-kw-list-item-auto { display: block; font-size: 11px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blogwolf-kw-list-delete {
    background: none; border: none; color: #9ca3af; cursor: pointer; padding: 2px; border-radius: 4px; flex-shrink: 0;
    transition: all .15s; line-height: 1;
}
.blogwolf-kw-list-delete:hover { color: #ef4444; background: rgba(239,68,68,0.08); }
.blogwolf-kw-list-delete .dashicons { font-size: 14px; width: 14px; height: 14px; }

.blogwolf-kw-detail-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.blogwolf-kw-list-info { background: #f8fafc; border-radius: 8px; padding: 14px; margin-bottom: 16px; }
.blogwolf-kw-list-info .blogwolf-form-group { margin-bottom: 10px; }
.blogwolf-kw-list-info .blogwolf-form-group:last-child { margin-bottom: 0; }
.blogwolf-kw-label-sm { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; font-weight: 600; display: block; margin-bottom: 4px; }

.blogwolf-kw-add-section { border-top: 1px solid #e5e7eb; padding-top: 16px; margin-bottom: 16px; }
.blogwolf-kw-add-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.blogwolf-kw-add-header > label { font-size: 13px; font-weight: 500; color: #374151; }
.blogwolf-kw-suggest-controls { display: flex; align-items: center; gap: 6px; }
#bw-kw-add-textarea { width: 100%; box-sizing: border-box; }
#bw-kw-suggest-lang { max-width: 110px; }
#bw-kw-sort { max-width: 100px; }
#bw-kw-suggest-btn { white-space: nowrap; display: inline-flex; align-items: center; }
.blogwolf-kw-add-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.blogwolf-kw-add-footer-left { display: flex; align-items: center; gap: 8px; }
.blogwolf-kw-error { color: #ef4444; font-size: 13px; margin-top: 6px; }
.blogwolf-select-sm { font-size: 12px !important; padding: 3px 24px 3px 8px !important; height: 28px !important; }

.blogwolf-kw-table { border-top: 1px solid #e5e7eb; padding-top: 12px; }
.blogwolf-kw-table-header {
    display: grid; grid-template-columns: 3fr 2.5fr 1fr 1fr 40px;
    gap: 8px; padding: 8px 10px; font-size: 11px; font-weight: 600;
    color: #6b7280; text-transform: uppercase; letter-spacing: 0.03em;
    border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; background: #fff; z-index: 1;
}
.blogwolf-kw-col-articles, .blogwolf-kw-col-value { text-align: center; }

.blogwolf-kw-row { border-bottom: 1px solid #f3f4f6; }
.blogwolf-kw-row:last-child { border-bottom: none; }
.blogwolf-kw-row-main {
    display: grid; grid-template-columns: 3fr 2.5fr 1fr 1fr 40px;
    gap: 8px; padding: 8px 10px; align-items: center; transition: background .1s;
}
.blogwolf-kw-row-main:hover { background: #f9fafb; }
.blogwolf-kw-col-keyword { font-size: 13px; font-weight: 500; color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.blogwolf-kw-used-check { color: #00a32a; font-size: 16px; width: 16px; height: 16px; flex-shrink: 0; }
.blogwolf-kw-col-tags { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.blogwolf-kw-tag {
    display: inline-flex; align-items: center; gap: 2px;
    background: #eff6ff; color: #1d4ed8; font-size: 11px;
    padding: 2px 6px; border-radius: 4px; white-space: nowrap;
}
.blogwolf-kw-tag-remove {
    background: none; border: none; color: #1d4ed8; cursor: pointer;
    font-size: 13px; line-height: 1; padding: 0; margin-left: 2px; opacity: .6;
}
.blogwolf-kw-tag-remove:hover { opacity: 1; color: #ef4444; }
.blogwolf-kw-tag-add-btn {
    background: none; border: none; color: #9ca3af; cursor: pointer;
    padding: 2px; border-radius: 4px; transition: all .15s; line-height: 1;
}
.blogwolf-kw-tag-add-btn:hover { color: #6b7280; background: #f3f4f6; }
.blogwolf-kw-tag-add-btn .dashicons { font-size: 14px; width: 14px; height: 14px; }

.blogwolf-kw-article-count {
    display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 4px;
    background: #f3f4f6; color: #6b7280;
}
.blogwolf-kw-article-count.has-articles {
    background: #eff6ff; color: #2563eb; cursor: pointer; border: none; transition: background .15s;
}
.blogwolf-kw-article-count.has-articles:hover { background: #dbeafe; }

.blogwolf-kw-value-select {
    font-size: 12px !important; padding: 2px 20px 2px 6px !important;
    height: 24px !important; border: none !important; border-radius: 4px !important;
    cursor: pointer; text-align: center; font-weight: 500;
}
.blogwolf-kw-value-high { background: #dcfce7 !important; color: #15803d !important; }
.blogwolf-kw-value-medium { background: #fef9c3 !important; color: #a16207 !important; }
.blogwolf-kw-value-low { background: #f3f4f6 !important; color: #6b7280 !important; }

.blogwolf-kw-delete-btn {
    background: none; border: none; color: #9ca3af; cursor: pointer; padding: 2px; border-radius: 4px;
    transition: all .15s; line-height: 1;
}
.blogwolf-kw-delete-btn:hover { color: #ef4444; background: rgba(239,68,68,0.08); }
.blogwolf-kw-delete-btn .dashicons { font-size: 14px; width: 14px; height: 14px; }

.blogwolf-kw-expanded {
    background: #f8fafc; border: 1px solid #e5e7eb; border-top: none;
    border-radius: 0 0 8px 8px; padding: 12px 14px; margin-bottom: 8px;
}
.blogwolf-kw-expanded-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
    font-size: 12px; font-weight: 500; color: #6b7280;
}
.blogwolf-kw-expanded-close {
    background: none; border: none; color: #9ca3af; cursor: pointer; padding: 2px;
    border-radius: 4px; line-height: 1;
}
.blogwolf-kw-expanded-close:hover { color: #374151; background: #e5e7eb; }
.blogwolf-kw-expanded-close .dashicons { font-size: 16px; width: 16px; height: 16px; }
.blogwolf-kw-article-link {
    display: block; font-size: 13px; color: #2563eb; padding: 4px 8px; border-radius: 4px;
    text-decoration: none; transition: background .1s;
}
.blogwolf-kw-article-link:hover { background: #eff6ff; text-decoration: underline; }

/* Tag Popover */
.blogwolf-kw-tag-popover {
    position: fixed; z-index: 100000; background: #fff; border: 1px solid #e5e7eb;
    border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); padding: 10px; width: 220px;
}
.blogwolf-kw-tag-existing { margin-top: 6px; }
.blogwolf-kw-tag-suggestion {
    display: inline-block; font-size: 12px; background: #f3f4f6; color: #374151;
    border: none; padding: 3px 8px; border-radius: 4px; margin: 2px; cursor: pointer;
    transition: all .1s;
}
.blogwolf-kw-tag-suggestion:hover { background: #dbeafe; color: #1d4ed8; }

/* Modals */
.blogwolf-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 100001;
    display: flex; align-items: center; justify-content: center;
}
.blogwolf-modal {
    background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    width: 90%; max-width: 440px; overflow: hidden; margin: auto;
}
.blogwolf-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid #e5e7eb;
}
.blogwolf-modal-header h3 { margin: 0; font-size: 16px; font-weight: 600; color: #1e293b; }
.blogwolf-modal-close {
    background: none; border: none; font-size: 22px; color: #9ca3af;
    cursor: pointer; line-height: 1; padding: 0;
}
.blogwolf-modal-close:hover { color: #374151; }
.blogwolf-modal-body { padding: 20px; }
.blogwolf-modal-footer {
    padding: 12px 20px; border-top: 1px solid #e5e7eb;
    display: flex; justify-content: flex-end; gap: 8px;
}
.blogwolf-btn-danger {
    background: #ef4444; color: #fff; border-color: #ef4444;
}
.blogwolf-btn-danger:hover { background: #dc2626; border-color: #dc2626; }

.blogwolf-kw-delete-warning {
    background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 12px; margin-top: 12px;
}
.blogwolf-kw-delete-warning p { margin: 0 0 8px 0; color: #991b1b; font-size: 13px; }
.blogwolf-kw-delete-warning .dashicons { color: #ef4444; vertical-align: middle; margin-right: 4px; }
.blogwolf-kw-delete-warning ul { margin: 0; padding: 0; list-style: none; }
.blogwolf-kw-delete-warning li { font-size: 13px; color: #dc2626; padding: 2px 0; }
.blogwolf-kw-delete-warning li .dashicons { font-size: 12px; width: 12px; height: 12px; margin-right: 4px; }

@media screen and (max-width: 960px) {
    .blogwolf-keywords-grid { grid-template-columns: 1fr; }
    .blogwolf-kw-table-header, .blogwolf-kw-row-main { grid-template-columns: 2fr 1.5fr 1fr 1fr 36px; font-size: 11px; }
    .blogwolf-kw-suggest-controls { flex-wrap: wrap; }
}

/* ===================================================================
   AUTO-PILOT (AUTOMATIONS) PAGE
   =================================================================== */

.blogwolf-autopilot-header { display: flex; flex-direction: column; margin-bottom: 20px; }
.blogwolf-autopilot-header h2 { margin: 0 0 4px 0; font-size: 20px; font-weight: 600; color: #1e293b; }

.blogwolf-ap-card { margin-bottom: 12px; border: 1px solid #e0e0e4; border-radius: 10px; padding: 20px; background: #fff; transition: box-shadow .15s; }
.blogwolf-ap-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.blogwolf-ap-card-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.blogwolf-ap-card-info { flex: 1; min-width: 0; }
.blogwolf-ap-card-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.blogwolf-ap-card-name { margin: 0; font-size: 16px; font-weight: 600; color: #1e293b; }

.blogwolf-ap-status-badge {
    display: inline-block; padding: 2px 10px; border-radius: 9999px; font-size: 11px; font-weight: 500; white-space: nowrap;
}
.blogwolf-ap-status-active { background: #dcfce7; color: #15803d; }
.blogwolf-ap-status-paused { background: #fef9c3; color: #a16207; }
.blogwolf-ap-status-completed { background: #dbeafe; color: #1d4ed8; }
.blogwolf-ap-status-error { background: #fee2e2; color: #b91c1c; }

.blogwolf-ap-card-meta {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px;
    font-size: 13px; color: #4b5563; margin-bottom: 8px;
}
.blogwolf-ap-card-meta > span { display: flex; align-items: flex-start; gap: 6px; }
.blogwolf-ap-card-meta .dashicons { font-size: 16px; width: 16px; height: 16px; color: #9ca3af; flex-shrink: 0; margin-top: 1px; }
.blogwolf-ap-card-articles { flex-direction: column; }
.blogwolf-ap-view-log {
    display: inline-block; font-size: 12px; font-weight: 500; color: #FF5353; text-decoration: none; margin-top: 2px; cursor: pointer;
}
.blogwolf-ap-view-log:hover { color: #E64A4A; text-decoration: underline; }
.blogwolf-ap-view-log .dashicons {
    transition: transform 0.2s; font-size: 14px; width: 14px; height: 14px; vertical-align: middle;
}
.blogwolf-ap-view-log.expanded .dashicons { transform: rotate(180deg); }
.blogwolf-ap-next-run { font-size: 12px; color: #6b7280; margin: 0; }
.blogwolf-ap-error-msg { font-size: 12px; color: #dc2626; margin: 4px 0 0 0; }

.blogwolf-ap-card-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.blogwolf-ap-list-header {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
    padding: 0;
}
.blogwolf-ap-separator {
    display: none;
}
#bw-ap-create-btn { max-width: 33%; width: auto; }
.blogwolf-ap-card-logs {
    border-top: 1px solid #e8e8ec;
    margin: 16px -20px -20px -20px;
    padding: 16px 20px;
    background: #f9fafb;
    border-radius: 0 0 10px 10px;
}
.blogwolf-ap-card-logs .blogwolf-ap-log-entry {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
}
.blogwolf-ap-card-logs .blogwolf-ap-log-entry:last-child {
    margin-bottom: 0;
}

/* Modal form sections */
.blogwolf-ap-section { padding: 20px 24px; }
.blogwolf-ap-section-alt { background: #f8fafc; }
.blogwolf-ap-section-title {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    color: #6b7280; margin: 0 0 12px 0; display: flex; align-items: center; gap: 6px;
}
.blogwolf-ap-section-title .dashicons { font-size: 14px; width: 14px; height: 14px; }
.blogwolf-ap-label { font-size: 13px; font-weight: 400; color: #4b5563; display: block; margin-bottom: 4px; }

.blogwolf-form-row { display: flex; gap: 16px; margin-bottom: 12px; }
.blogwolf-form-row:last-child { margin-bottom: 0; }
.blogwolf-form-half { flex: 1; min-width: 0; }
.blogwolf-form-row-3 { display: flex; gap: 12px; }
.blogwolf-form-row-3 > .blogwolf-form-group { flex: 1; min-width: 0; }

.blogwolf-ap-checkbox-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
    padding: 12px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff;
}
.blogwolf-ap-checkbox-item {
    display: flex; align-items: center; gap: 8px; font-size: 13px; color: #4b5563; cursor: pointer;
    padding: 4px 0; position: relative;
}
.blogwolf-ap-checkbox-item input[type="checkbox"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    flex-shrink: 0;
    border: 2px solid #9ca3af !important;
    border-radius: 4px !important;
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s, background-color 0.15s;
    box-shadow: none !important;
    outline: none !important;
    color: transparent !important;
}
.blogwolf-ap-checkbox-item input[type="checkbox"]::before {
    content: none !important;
    display: none !important;
}
.blogwolf-ap-checkbox-item input[type="checkbox"]:checked {
    background-color: #FF5353 !important;
    border-color: #FF5353 !important;
}
.blogwolf-ap-checkbox-item input[type="checkbox"]:checked::before {
    content: none !important;
    display: none !important;
}
.blogwolf-ap-checkbox-item input[type="checkbox"]:checked::after {
    content: '' !important;
    display: block !important;
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg);
    background: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}
.blogwolf-ap-checkbox-item input[type="checkbox"]:focus {
    outline: 2px solid rgba(255, 83, 83, 0.3) !important;
    outline-offset: 1px;
    box-shadow: none !important;
}

/* Multi-select dropdown for product categories/tags */
.blogwolf-ap-multi-dropdown {
    position: absolute; z-index: 100; background: #fff; border: 1px solid #e5e7eb;
    border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.12); max-height: 200px;
    overflow-y: auto; min-width: 200px; margin-top: 4px;
}
.blogwolf-ap-multi-item {
    display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; font-size: 13px;
}
.blogwolf-ap-multi-item:hover { background: #f3f4f6; }
.blogwolf-ap-multi-check {
    width: 16px; height: 16px; border: 1px solid #d1d5db; border-radius: 3px;
    display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0;
}
.blogwolf-ap-multi-check.checked { background: #FF5353; border-color: #FF5353; color: #fff; }

/* Log entries */
.blogwolf-ap-log-entry { padding: 12px; border-radius: 8px; border: 1px solid; margin-bottom: 10px; }
.blogwolf-ap-log-success { background: #f0fdf4; border-color: #bbf7d0; }
.blogwolf-ap-log-failed { background: #fef2f2; border-color: #fecaca; }
.blogwolf-ap-log-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.blogwolf-ap-log-badge {
    display: inline-block; padding: 2px 8px; border-radius: 9999px; font-size: 11px; font-weight: 500;
}
.blogwolf-ap-log-badge-success { background: #dcfce7; color: #15803d; }
.blogwolf-ap-log-badge-failed { background: #fee2e2; color: #b91c1c; }
.blogwolf-ap-log-date { font-size: 12px; color: #6b7280; }
.blogwolf-ap-log-keyword { font-size: 13px; font-weight: 500; color: #1e293b; margin: 0 0 2px 0; }
.blogwolf-ap-log-article { font-size: 13px; color: #4b5563; margin: 0; }
.blogwolf-ap-log-credits { font-size: 13px; color: #4b5563; margin: 0; }
.blogwolf-ap-log-error { font-size: 13px; color: #dc2626; margin: 4px 0 0 0; }

/* Autopilot inline form panel */
.blogwolf-ap-form-panel { padding: 0; overflow: hidden; }
.blogwolf-ap-form-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid #e5e7eb;
}
.blogwolf-ap-form-header h3 { margin: 0; font-size: 18px; font-weight: 600; color: #1e293b; }
.blogwolf-ap-form-body { padding: 0; }
.blogwolf-ap-form-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px; border-top: 1px solid #e5e7eb; background: #f9fafb;
}

/* Product categories/tags position relative container */
.blogwolf-ap-section .blogwolf-form-group { position: relative; }

@media screen and (max-width: 768px) {
    .blogwolf-ap-card-main { flex-direction: column; }
    .blogwolf-ap-card-actions { flex-wrap: wrap; }
    .blogwolf-ap-card-meta { grid-template-columns: 1fr; }
    .blogwolf-form-row { flex-direction: column; gap: 10px; }
    .blogwolf-form-row-3 { flex-direction: column; gap: 10px; }
    .blogwolf-ap-checkbox-grid { grid-template-columns: 1fr; }
    .blogwolf-autopilot-header { gap: 8px; }
}

/* ==========================================================================
   Nav Menu
   ========================================================================== */

.blogwolf-nav-menu {
    display: flex; gap: 2px; margin: 0; padding: 0; flex: 1;
}
.blogwolf-nav-item {
    font-size: 13px; font-weight: 500; color: #9ca3af;
    text-decoration: none; padding: 10px 9px;
    border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
    white-space: nowrap;
}
.blogwolf-nav-item:hover { color: #6b7280; }
.blogwolf-nav-item:focus { box-shadow: none; outline: none; }
.blogwolf-nav-active { color: #FF5353; border-bottom-color: #FF5353; }

@media screen and (max-width: 1200px) {
    .blogwolf-nav-item { font-size: 12px; padding: 8px 6px; }
}
@media screen and (max-width: 960px) {
    .blogwolf-nav-item { font-size: 11px; padding: 7px 4px; }
    .blogwolf-nav-menu { gap: 0; }
}

/* ==========================================================================
   Generate Form Compact
   ========================================================================== */

.blogwolf-generate-form-col .blogwolf-section {
    margin-bottom: 14px; padding-bottom: 14px;
}
.blogwolf-generate-form-col .blogwolf-form-group {
    margin-bottom: 12px;
}

/* ==========================================================================
   Billing Page
   ========================================================================== */

.blogwolf-billing-page { max-width: 900px; }

.blogwolf-billing-balance-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}
.blogwolf-billing-balance-info {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}
.blogwolf-billing-balance-number {
    font-size: 36px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1;
}
.blogwolf-billing-balance-label {
    font-size: 14px;
    color: #646970;
}
.blogwolf-billing-balance-hint {
    font-size: 13px;
    color: #8c8f94;
    margin: 0;
}

.blogwolf-billing-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 16px;
}

.blogwolf-billing-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.blogwolf-billing-package {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    transition: border-color 0.2s;
}
.blogwolf-billing-package:hover {
    border-color: #c0c4c9;
}
.blogwolf-billing-package-popular {
    border-color: #FF5353;
    background: linear-gradient(135deg, rgba(255,83,83,0.03), rgba(255,133,102,0.03));
}
.blogwolf-billing-package-popular:hover {
    border-color: #FF5353;
}

.blogwolf-billing-package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FF5353, #FF8566);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.blogwolf-billing-package-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}
.blogwolf-billing-package-header .dashicons {
    font-size: 22px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    background: #f0f0f1;
    border-radius: 8px;
    text-align: center;
    color: #646970;
    flex-shrink: 0;
}
.blogwolf-billing-package-popular .blogwolf-billing-package-header .dashicons {
    background: linear-gradient(135deg, #FF5353, #FF8566);
    color: #fff;
}
.blogwolf-billing-package-header h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px;
    color: #1d2327;
}
.blogwolf-billing-package-header p {
    font-size: 12px;
    color: #8c8f94;
    margin: 0;
}

.blogwolf-billing-package-price {
    margin-bottom: 10px;
}
.blogwolf-billing-price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #1d2327;
}
.blogwolf-billing-price-credits {
    font-size: 13px;
    color: #646970;
}

.blogwolf-billing-package-meta {
    font-size: 12px;
    color: #646970;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.blogwolf-billing-package-meta .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #00a32a;
}

.blogwolf-billing-buy-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}
.blogwolf-billing-package:not(.blogwolf-billing-package-popular) .blogwolf-billing-buy-btn {
    background: #1d2327;
    color: #fff;
    border-color: #1d2327;
}
.blogwolf-billing-package:not(.blogwolf-billing-package-popular) .blogwolf-billing-buy-btn:hover {
    background: #2c3338;
    border-color: #2c3338;
}

.blogwolf-billing-loading {
    display: flex;
    align-items: center;
    color: #646970;
    font-size: 13px;
    padding: 16px 0;
}

.blogwolf-billing-error {
    color: #d63638;
    font-size: 13px;
}

.blogwolf-billing-empty {
    text-align: center;
    padding: 32px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #646970;
}
.blogwolf-billing-empty .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #c0c4c9;
    margin-bottom: 8px;
}
.blogwolf-billing-empty p {
    margin: 0;
    font-size: 13px;
}

.blogwolf-billing-history-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.blogwolf-billing-history-table th {
    background: #f6f7f7;
    font-size: 12px;
    font-weight: 600;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.blogwolf-billing-history-table td {
    padding: 12px 14px;
    font-size: 13px;
    color: #1d2327;
    border-bottom: 1px solid #f0f0f1;
}
.blogwolf-billing-history-table tr:last-child td {
    border-bottom: none;
}

.blogwolf-billing-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}
.blogwolf-status-success {
    background: #edfcf2;
    color: #00a32a;
}
.blogwolf-status-pending {
    background: #fef3cd;
    color: #856404;
}
.blogwolf-status-failed {
    background: #fce4e4;
    color: #d63638;
}

.blogwolf-billing-refresh-prompt {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e7f5fe;
    border: 1px solid #72aee6;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #135e96;
}
.blogwolf-billing-refresh-prompt .dashicons {
    color: #72aee6;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Account Page
   ========================================================================== */

.blogwolf-account-page { max-width: 700px; }

.blogwolf-account-section {
    margin-bottom: 28px;
}

.blogwolf-account-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.blogwolf-account-section-title .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #646970;
}

.blogwolf-account-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.blogwolf-account-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.blogwolf-account-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 6px;
}

.blogwolf-account-field .blogwolf-input {
    width: 100%;
}

.blogwolf-account-field textarea.blogwolf-input {
    resize: vertical;
    min-height: 80px;
}

.blogwolf-input-disabled {
    background: #f6f7f7 !important;
    color: #8c8f94 !important;
    cursor: not-allowed;
}

.blogwolf-account-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

/* ==========================================================================
   Content Calendar
   ========================================================================== */

.blogwolf-autopilot-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.blogwolf-ap-view-toggle {
    display: flex;
    gap: 0;
    background: #f6f7f7;
    border-radius: 8px;
    padding: 3px;
    margin-top: 8px;
}

.blogwolf-ap-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    line-height: 1;
}

.blogwolf-ap-view-btn:hover {
    color: #374151;
}

.blogwolf-ap-view-btn.active {
    background: #fff;
    color: #FF5353;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.blogwolf-ap-view-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
    vertical-align: middle;
}

.bw-cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 4px;
}

.bw-cal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
    margin: 0;
    min-width: 180px;
    text-align: center;
}

.bw-cal-subtitle {
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 16px;
}

.bw-cal-subtitle a {
    color: #FF5353;
    text-decoration: underline;
    font-weight: 500;
}

.bw-cal-subtitle a:hover {
    color: #E64A4A;
}

.bw-cal-grid {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.bw-cal-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.bw-cal-header-cell {
    padding: 8px 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

.bw-cal-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid #f3f4f6;
}

.bw-cal-week:last-child {
    border-bottom: none;
}

.bw-cal-cell {
    min-height: 100px;
    padding: 6px;
    border-right: 1px solid #f3f4f6;
    background: #fff;
    overflow: hidden;
    min-width: 0;
}

.bw-cal-cell:last-child {
    border-right: none;
}

.bw-cal-cell-empty {
    background: #f9fafb;
}

.bw-cal-today {
    box-shadow: inset 0 0 0 2px rgba(255, 83, 83, 0.3);
}

.bw-cal-day-num {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 4px;
}

.bw-cal-day-today {
    color: #FF5353;
    font-weight: 700;
}

.bw-cal-item {
    border-radius: 4px;
    padding: 4px 6px;
    margin-bottom: 3px;
    cursor: pointer;
    transition: filter 0.15s;
    overflow: hidden;
    min-width: 0;
}

.bw-cal-item:hover {
    filter: brightness(0.95);
}

.bw-cal-item-upcoming {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.bw-cal-item-completed {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.bw-cal-item-title {
    font-size: 11px;
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.bw-cal-item-upcoming .bw-cal-item-title {
    color: #1e40af;
}

.bw-cal-item-completed .bw-cal-item-title {
    color: #166534;
}

.bw-cal-item-meta {
    font-size: 10px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.bw-cal-item-upcoming .bw-cal-item-meta {
    color: #3b82f6;
}

.bw-cal-item-completed .bw-cal-item-meta {
    color: #16a34a;
}

.bw-cal-item-badges {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.bw-cal-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 2px;
}

.bw-cal-badge .dashicons {
    font-size: 11px;
    width: 11px;
    height: 11px;
    line-height: 11px;
}

.bw-cal-badge-scheduled {
    background: #dbeafe;
    color: #1d4ed8;
}

.bw-cal-badge-generated {
    background: #dcfce7;
    color: #15803d;
}

.bw-cal-badge-published {
    background: #dcfce7;
    color: #15803d;
}

.bw-cal-badge-draft {
    background: #fef9c3;
    color: #a16207;
}

.bw-cal-error {
    text-align: center;
    padding: 48px 0;
    color: #6b7280;
}

.bw-cal-error p {
    margin: 12px 0;
    font-size: 14px;
}

@media screen and (max-width: 600px) {
    .blogwolf-billing-packages-grid { grid-template-columns: 1fr; }
    .blogwolf-account-form-row { grid-template-columns: 1fr; }
    .blogwolf-billing-history-table { font-size: 12px; }
    .blogwolf-billing-history-table th,
    .blogwolf-billing-history-table td { padding: 8px 10px; }
    .blogwolf-autopilot-header-top { flex-direction: column; }
    .bw-cal-cell { min-height: 60px; padding: 3px; }
    .bw-cal-item-title { font-size: 9px; }
    .bw-cal-item-meta { display: none; }
    .bw-cal-badge { font-size: 8px; padding: 0 3px; }
}
