/**
 * Admin styles for AiBlogPress WordPress admin pages.
 *
 * Light theme with ABP purple (#6C3CE1) accents.
 */

/* ===== Layout ===== */

.abp-admin-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ===== Page Header ===== */

.abp-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 8px;
}

.abp-page-title {
    font-size: 23px;
    font-weight: 600;
    color: #1d2327;
    margin: 0;
    padding: 0;
}

.abp-last-saved {
    font-size: 13px;
    color: #787c82;
    font-style: italic;
}

/* ===== Cards ===== */

.abp-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin-bottom: 16px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.abp-card-header {
    padding: 16px 20px 0;
}

.abp-card-header h2 {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 4px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.abp-card-body {
    padding: 12px 20px 20px;
}

/* ===== Form Elements ===== */

.abp-input,
.abp-textarea,
.abp-select {
    width: 100%;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #2c3338;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.abp-input:focus,
.abp-textarea:focus,
.abp-select:focus {
    border-color: #6C3CE1;
    box-shadow: 0 0 0 1px #6C3CE1;
    outline: none;
}

.abp-textarea {
    resize: vertical;
    font-family: inherit;
}

.abp-select {
    height: 40px;
    cursor: pointer;
}

/* ===== Field Footer & Helpers ===== */

.abp-field-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    flex-wrap: wrap;
    gap: 4px;
}

.abp-helper-text {
    display: block;
    font-size: 12px;
    color: #787c82;
    margin-top: 4px;
}

.abp-char-counter,
.abp-keyword-counter {
    font-size: 12px;
    color: #787c82;
    font-variant-numeric: tabular-nums;
}

.abp-min-indicator {
    font-size: 11px;
    color: #d63638;
    margin: 4px 0 0;
}

.abp-optional-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 400;
    color: #787c82;
    background: #f0f0f1;
    padding: 1px 8px;
    border-radius: 10px;
}

/* ===== Communication Style Cards ===== */

.abp-style-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.abp-style-card {
    background: #fff;
    border: 2px solid #c3c4c7;
    border-radius: 6px;
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.abp-style-card:hover {
    border-color: #6C3CE1;
}

.abp-style-card.selected {
    border-color: #6C3CE1;
    background: #f8f5ff;
    box-shadow: 0 0 0 1px #6C3CE1;
}

.abp-style-card strong {
    display: block;
    font-size: 14px;
    color: #1d2327;
    margin-bottom: 4px;
}

.abp-style-card p {
    font-size: 12px;
    color: #787c82;
    margin: 0;
    line-height: 1.4;
}

/* ===== Notices ===== */

.abp-notice {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.abp-notice-success {
    background: #edfaef;
    border: 1px solid #46b450;
    color: #1e4620;
}

.abp-notice-error {
    background: #fcf0f1;
    border: 1px solid #d63638;
    color: #8a1e21;
}

/* ===== Buttons ===== */

.abp-form-actions {
    margin-top: 8px;
    margin-bottom: 16px;
    text-align: right;
}

.abp-btn-primary {
    background: #6C3CE1 !important;
    border-color: #5a2dcf !important;
    color: #fff !important;
    font-size: 14px !important;
    padding: 6px 24px !important;
    height: auto !important;
    line-height: 1.7 !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: background 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.abp-btn-primary:hover,
.abp-btn-primary:focus {
    background: #5a2dcf !important;
    border-color: #4a1fbf !important;
    color: #fff !important;
}

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

.abp-btn-spinner.spinner {
    float: none;
    margin: 0;
    visibility: visible;
}

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

.abp-loading-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 40px 0;
    justify-content: center;
    color: #787c82;
    font-size: 14px;
}

.abp-loading-wrap .spinner {
    float: none;
    margin: 0;
}

/* ===== Build Hash Footer ===== */

.abp-build-footer {
    font-size: 11px;
    color: #999;
    text-align: right;
    padding: 12px 0;
    margin-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* ===== Topics Page ===== */

.abp-topics-wrap {
    max-width: 960px;
}

/* -- Filter Tabs -- */

.abp-filter-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #c3c4c7;
    margin-bottom: 16px;
}

.abp-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 10px 16px;
    font-size: 14px;
    color: #50575e;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.abp-tab.active {
    color: #6C3CE1;
    border-bottom-color: #6C3CE1;
    font-weight: 600;
}

.abp-tab-count {
    font-size: 12px;
    color: #787c82;
    font-weight: 400;
}

.abp-tab.active .abp-tab-count {
    color: #6C3CE1;
}

/* -- Topics Table -- */

.abp-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.abp-table thead th {
    background: #f6f7f7;
    border-bottom: 1px solid #c3c4c7;
    padding: 10px 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #50575e;
    white-space: nowrap;
}

.abp-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f1;
    font-size: 13px;
    color: #2c3338;
    vertical-align: middle;
}

.abp-table tbody tr:last-child td {
    border-bottom: none;
}

.abp-topic-row:hover {
    background: #f9f9f9;
}

.abp-topic-row.abp-row-loading {
    opacity: 0.5;
    pointer-events: none;
}

.abp-col-checkbox {
    width: 36px;
    text-align: center;
}

.abp-col-score {
    width: 50px;
    text-align: center;
}

.abp-col-status {
    width: 100px;
}

.abp-col-actions {
    width: 100px;
    text-align: right;
}

.abp-topic-title {
    font-weight: 600;
    color: #1d2327;
}

/* -- Score Badge -- */

.abp-score-badge {
    display: inline-block;
    min-width: 32px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
}

.abp-score-green {
    background: #edfaef;
    color: #1e7e34;
}

.abp-score-yellow {
    background: #fef9e7;
    color: #8a6d0b;
}

.abp-score-red {
    background: #fcf0f1;
    color: #d63638;
}

/* -- Status Badge -- */

.abp-status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
    line-height: 1.5;
}

.abp-status-pending {
    background: #f0f0f1;
    color: #50575e;
}

.abp-status-approved {
    background: #edfaef;
    color: #1e7e34;
}

.abp-status-rejected {
    background: #fcf0f1;
    color: #d63638;
}

.abp-status-generating,
.abp-status-generated {
    background: #e8f0fe;
    color: #1a56db;
}

.abp-status-published {
    background: #edfaef;
    color: #0d6521;
}

.abp-status-failed {
    background: #fcf0f1;
    color: #8a1e21;
}

/* -- Topic Actions -- */

.abp-topic-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.abp-topic-actions button {
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 4px;
    cursor: pointer;
    color: #787c82;
    transition: color 0.15s ease, background 0.15s ease;
    line-height: 1;
}

.abp-topic-actions button:hover {
    background: #f0f0f1;
}

.abp-action-approve:hover {
    color: #1e7e34 !important;
}

.abp-action-reject:hover {
    color: #d63638 !important;
}

.abp-action-delete:hover {
    color: #d63638 !important;
}

.abp-topic-actions .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* -- Bulk Actions Bar -- */

.abp-bulk-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin-bottom: 12px;
}

.abp-bulk-count {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
}

.abp-bulk-approve,
.abp-bulk-reject {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    font-size: 13px !important;
}

.abp-bulk-approve .dashicons,
.abp-bulk-reject .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* -- Pagination -- */

.abp-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin-top: 8px;
}

.abp-pagination-info {
    font-size: 13px;
    color: #50575e;
}

.abp-pagination-buttons {
    display: flex;
    gap: 8px;
}

/* -- Empty State -- */

.abp-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #787c82;
}

.abp-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #c3c4c7;
    margin-bottom: 12px;
}

.abp-empty-state p {
    font-size: 14px;
    margin: 0;
}

/* -- Generate Button Remaining Count -- */

.abp-btn-remaining {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.85;
}

/* ===== Posts Page ===== */

/* -- Usage Counter -- */

.abp-usage-counter {
    font-size: 13px;
    color: #787c82;
    background: #f0f0f1;
    padding: 4px 12px;
    border-radius: 12px;
    font-variant-numeric: tabular-nums;
}

/* -- Post Rows -- */

.abp-post-row:hover {
    background: #f6f7f7;
}

.abp-post-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.abp-post-link {
    font-size: 13px;
    text-decoration: none;
    color: #6C3CE1;
}

.abp-post-link:hover {
    color: #5a2dcf;
    text-decoration: underline;
}

/* -- Status: Review (not in topics) -- */

.abp-status-review {
    background: #fef3e0;
    color: #e65100;
}

/* -- Generating pulse animation -- */

@keyframes abp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.abp-status-generating {
    animation: abp-pulse 1.5s ease-in-out infinite;
}

/* -- Progress Bar -- */

.abp-progress-bar {
    width: 100%;
    max-width: 200px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.abp-progress-bar-fill {
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, #6C3CE1, #9b6eff);
    border-radius: 4px;
    animation: abp-indeterminate 1.5s ease-in-out infinite;
}

@keyframes abp-indeterminate {
    0% { margin-left: 0; width: 30%; }
    50% { margin-left: 35%; width: 40%; }
    100% { margin-left: 70%; width: 30%; }
}

.abp-preview-meta {
    background: #f0f0f1;
    border-left: 4px solid #6C3CE1;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #50575e;
    line-height: 1.5;
}

.abp-preview-featured {
    margin: 16px 0;
}

.abp-preview-featured img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

/* -- Modal Overlay -- */

.abp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.abp-modal {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.abp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.abp-modal-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    margin: 0;
    padding: 0;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.abp-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #787c82;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}

.abp-modal-close:hover {
    color: #1d2327;
}

.abp-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.6;
    font-size: 14px;
    color: #2c3338;
}

.abp-modal-body h2,
.abp-modal-body h3,
.abp-modal-body h4 {
    color: #1d2327;
    margin-top: 20px;
    margin-bottom: 8px;
}

.abp-modal-body p {
    margin-bottom: 12px;
}

.abp-modal-body ul,
.abp-modal-body ol {
    margin-bottom: 12px;
    padding-left: 24px;
}

.abp-modal-footer {
    flex-shrink: 0;
}

/* -- Topic Selector -- */

.abp-topic-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.abp-topic-selector-item {
    padding: 12px 16px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.abp-topic-selector-item:hover {
    border-color: #6C3CE1;
    background: #f8f5ff;
}

.abp-topic-selector-item strong {
    display: block;
    font-size: 14px;
    color: #1d2327;
    margin-bottom: 2px;
}

.abp-topic-keyword {
    font-size: 12px;
    color: #787c82;
}

/* ===== Dashboard Page ===== */

.abp-dashboard-wrap {
    max-width: 960px;
}

/* -- Stats Grid -- */

.abp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.abp-stat-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.abp-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1.2;
    margin: 4px 0;
}

.abp-stat-label {
    font-size: 13px;
    color: #787c82;
}

.abp-stat-period {
    font-size: 12px;
    color: #787c82;
    margin-top: 6px;
}

.abp-stat-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-top: 12px;
    overflow: hidden;
}

.abp-stat-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #6C3CE1, #9b6eff);
    transition: width 0.3s ease;
}

.abp-stat-bar-fill.abp-bar-warning {
    background: #e65100;
}

.abp-stat-bar-fill.abp-bar-danger {
    background: #d63638;
}

/* -- Legacy Upgrade Banner (superseded by new banner system below) -- */

.abp-upgrade-banner {
    background: linear-gradient(135deg, #1a1025, #2d1b4e);
    padding: 24px;
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.abp-upgrade-banner h3 {
    color: #fff;
    margin: 0;
    font-size: 16px;
}

.abp-upgrade-banner p {
    color: rgba(255, 255, 255, 0.8);
    margin: 4px 0 0;
    font-size: 13px;
}

.abp-upgrade-cta {
    background: #e67e22;
    border: none;
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.abp-upgrade-cta:hover {
    background: #d35400;
}

.abp-upgrade-cta:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== New Banner System ===== */

/* -- Shared -- */

.abp-banner-wrap {
    margin-bottom: 20px;
}

.abp-banner-dismiss {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #475569;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    z-index: 10;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: 0.15s;
}

.abp-banner-dismiss:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* -- Banner A: Hero -- */

.abp-banner-hero {
    position: relative;
    background: linear-gradient(135deg, #0f0527 0%, #1a0a3e 30%, #2d1470 60%, #4c1d95 100%);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    display: flex;
    min-height: 200px;
}

.abp-banner-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.abp-banner-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.abp-hero-left {
    flex: 1;
    padding: 32px 36px;
    position: relative;
    z-index: 2;
}

.abp-hero-right {
    width: 340px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 28px 20px 0;
}

.abp-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: #fb923c;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.abp-pulse-dot {
    width: 6px;
    height: 6px;
    background: #f97316;
    border-radius: 50%;
    animation: abp-banner-pulse 2s infinite;
}

@keyframes abp-banner-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(249, 115, 22, 0); }
}

.abp-hero-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 10px;
}

.abp-gradient-text {
    background: linear-gradient(135deg, #f97316, #fb923c, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.abp-hero-subtitle {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 440px;
}

.abp-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

.abp-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.4);
}

.abp-hero-cta .abp-arrow { transition: transform 0.2s; }
.abp-hero-cta:hover .abp-arrow { transform: translateX(3px); }

.abp-feature-showcase {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.abp-feature-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.2s;
}

.abp-feature-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateX(-4px);
}

.abp-chip-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.abp-chip-icon-purple { background: rgba(124, 58, 237, 0.2); }
.abp-chip-icon-orange { background: rgba(249, 115, 22, 0.2); }
.abp-chip-icon-green { background: rgba(34, 197, 94, 0.2); }
.abp-chip-icon-blue { background: rgba(59, 130, 246, 0.2); }

.abp-chip-text { color: #e2e8f0; font-size: 13px; font-weight: 500; }
.abp-chip-text span { color: #fff; font-weight: 700; }

/* -- Banner B: Feature Strip -- */

.abp-banner-strip {
    background: linear-gradient(135deg, #1a0a3e, #2d1470);
    border-radius: 10px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    flex-wrap: wrap;
}

.abp-banner-strip::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.06));
    pointer-events: none;
}

.abp-strip-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.abp-strip-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

.abp-strip-feature-icon {
    font-size: 20px;
}

.abp-strip-feature-text {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.3;
}

.abp-strip-feature-text strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.abp-strip-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.abp-strip-cta-area {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.abp-strip-price {
    text-align: right;
}

.abp-strip-from {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.abp-strip-amount {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.abp-strip-amount small {
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
}

.abp-strip-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.abp-strip-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

/* -- Banner C: Social Proof -- */

.abp-banner-proof {
    background: linear-gradient(135deg, #0f0527, #1a0a3e);
    border-radius: 10px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.abp-banner-proof::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.abp-proof-stats {
    display: flex;
    gap: 32px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.abp-proof-stat {
    text-align: center;
}

.abp-proof-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.abp-highlight-orange { color: #f97316; }
.abp-highlight-green { color: #22c55e; }
.abp-highlight-purple { color: #a78bfa; }
.abp-highlight-blue { color: #60a5fa; }

.abp-proof-stat-label {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.abp-proof-separator {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
}

.abp-proof-message {
    flex: 1;
    position: relative;
    z-index: 1;
}

.abp-proof-message h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.abp-proof-message p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
}

.abp-proof-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.abp-proof-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4);
}

/* -- Banner D: Micro-Banners -- */

.abp-banner-micro {
    background: linear-gradient(135deg, #1a0a3e, #271152);
    border-radius: 8px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 3px solid #f97316;
    margin-bottom: 20px;
    position: relative;
}

.abp-micro-icon {
    width: 40px;
    height: 40px;
    background: rgba(249, 115, 22, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.abp-micro-text {
    flex: 1;
}

.abp-micro-text strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.abp-micro-text p {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

.abp-micro-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fb923c;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.15s;
    background: none;
    border: none;
    padding: 0;
}

.abp-micro-cta:hover { color: #f97316; }
.abp-micro-cta .abp-arrow { transition: transform 0.15s; }
.abp-micro-cta:hover .abp-arrow { transform: translateX(3px); }

/* -- Banner E: Limit Reached -- */

.abp-banner-limit {
    background: linear-gradient(135deg, #1a0a3e, #2d1470);
    border-radius: 10px;
    padding: 28px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.abp-banner-limit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(249, 115, 22, 0.03) 40px,
        rgba(249, 115, 22, 0.03) 80px
    );
    pointer-events: none;
}

.abp-limit-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.abp-limit-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.abp-limit-desc {
    color: #94a3b8;
    font-size: 14px;
    max-width: 500px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.abp-limit-comparison {
    display: inline-flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}

.abp-limit-plan {
    padding: 16px 28px;
    text-align: center;
    min-width: 140px;
}

.abp-limit-plan-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
    align-self: stretch;
}

.abp-limit-plan-name {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.abp-limit-plan-free .abp-limit-plan-name { color: #64748b; }
.abp-limit-plan-pro .abp-limit-plan-name { color: #f97316; }

.abp-limit-plan-value {
    font-size: 24px;
    font-weight: 800;
}

.abp-limit-plan-free .abp-limit-plan-value {
    color: #64748b;
    text-decoration: line-through;
    text-decoration-color: #475569;
}

.abp-limit-plan-pro .abp-limit-plan-value {
    color: #fff;
}

.abp-limit-plan-unit {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.abp-limit-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    padding: 14px 36px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
}

.abp-limit-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(249, 115, 22, 0.4);
}

.abp-limit-guarantee {
    font-size: 11px;
    color: #64748b;
    margin-top: 12px;
}

/* -- Banner F: Language Showcase -- */

.abp-banner-lang {
    background: linear-gradient(135deg, #0f0527, #1a0a3e);
    border-radius: 10px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.abp-lang-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    width: 200px;
    flex-shrink: 0;
}

.abp-lang-flag {
    width: 36px;
    height: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: 0.2s;
}

.abp-lang-flag:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.1);
}

.abp-lang-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.abp-lang-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.abp-lang-count {
    color: #a78bfa;
}

.abp-lang-content p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0 0 12px;
}

.abp-lang-badge {
    display: inline-block;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: #a78bfa;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* -- Banner Responsive -- */

@media (max-width: 782px) {
    .abp-banner-hero {
        flex-direction: column;
    }

    .abp-hero-right {
        display: none;
    }

    .abp-hero-left {
        padding: 24px 20px;
    }

    .abp-hero-title {
        font-size: 20px;
    }

    .abp-banner-strip {
        flex-wrap: wrap;
        padding: 16px 20px;
    }

    .abp-strip-features {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .abp-strip-divider {
        display: none;
    }

    .abp-strip-cta-area {
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
    }

    .abp-banner-proof {
        flex-direction: column;
        padding: 20px;
    }

    .abp-proof-stats {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }

    .abp-proof-separator {
        display: none;
    }

    .abp-banner-micro {
        flex-wrap: wrap;
    }

    .abp-limit-comparison {
        flex-direction: column;
    }

    .abp-limit-plan-divider {
        width: 100%;
        height: 1px;
    }

    .abp-banner-lang {
        flex-direction: column;
    }

    .abp-lang-flags {
        width: 100%;
        justify-content: center;
    }
}

/* -- Review Banner -- */

.abp-review-banner {
    background: linear-gradient(135deg, #fef9e7, #fef3cd);
    border: 1px solid #f0c36d;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.abp-review-banner h3 {
    margin: 0;
    color: #8a6d0b;
    font-size: 15px;
}

.abp-review-banner p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6d5508;
}

.abp-review-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* -- Quick Actions -- */

.abp-quick-actions {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.abp-quick-action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    text-decoration: none;
    color: #1d2327;
    transition: border-color 0.15s ease, color 0.15s ease;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.abp-quick-action:hover {
    border-color: #6C3CE1;
    color: #6C3CE1;
}

.abp-quick-action .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #6C3CE1;
}

.abp-quick-action span:last-child {
    font-size: 13px;
    font-weight: 500;
}

/* -- Activity List -- */

.abp-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.abp-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f1;
}

.abp-activity-item:last-child {
    border-bottom: none;
}

.abp-activity-icon {
    color: #787c82;
    flex-shrink: 0;
}

.abp-activity-details {
    flex: 1;
    min-width: 0;
}

.abp-activity-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1d2327;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.abp-activity-meta {
    display: block;
    font-size: 12px;
    color: #787c82;
}

/* -- Limit Nudge -- */

.abp-limit-nudge {
    font-size: 12px;
    color: #e65100;
    margin-top: 6px;
}

.abp-limit-nudge a {
    color: #6C3CE1;
    text-decoration: underline;
}

.abp-limit-nudge a:hover {
    color: #5a2dcf;
}

/* -- Page Subtitle -- */

.abp-page-subtitle {
    color: #50575e;
    font-size: 14px;
    margin: 4px 0 0;
}

/* -- Pro Feature Upsell -- */

.abp-pro-upsell {
    text-align: center;
    padding: 60px 40px;
    max-width: 480px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
}

.abp-pro-upsell-icon {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #6C3CE1;
    margin-bottom: 16px;
}

.abp-pro-upsell h2 {
    font-size: 22px;
    margin: 0 0 12px;
    color: #1d2327;
}

.abp-pro-upsell p {
    font-size: 14px;
    color: #50575e;
    margin: 0 0 24px;
    line-height: 1.6;
}

.abp-pro-upsell .abp-btn-primary {
    font-size: 14px;
    padding: 8px 24px;
}

/* -- Dashboard Responsive -- */

@media (max-width: 600px) {
    .abp-quick-actions {
        flex-direction: column;
    }

    .abp-upgrade-banner {
        flex-direction: column;
        text-align: center;
    }

    .abp-review-banner {
        flex-direction: column;
        text-align: center;
    }

    .abp-review-actions {
        justify-content: center;
    }
}

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

/* -- Detail Table -- */

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

.abp-detail-table td {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f1;
    font-size: 14px;
}

.abp-detail-table td:first-child {
    font-weight: 600;
    color: #50575e;
    width: 140px;
}

/* -- Plan Badge -- */

.abp-plan-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.abp-plan-free {
    background: #f0f0f1;
    color: #50575e;
}

.abp-plan-pro {
    background: #e8f0fe;
    color: #1a56db;
}

.abp-plan-max {
    background: #f3e8ff;
    color: #6C3CE1;
}

/* -- Usage Rows -- */

.abp-usage-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.abp-usage-label {
    width: 140px;
    font-size: 13px;
    color: #50575e;
    flex-shrink: 0;
}

.abp-usage-value {
    width: 60px;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    flex-shrink: 0;
}

.abp-usage-bar-wrap {
    flex: 1;
}

/* -- Plan Comparison Grid -- */

.abp-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.abp-plan-card {
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.abp-plan-card.abp-plan-popular {
    border-color: #6C3CE1;
    position: relative;
}

.abp-plan-popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #6C3CE1;
    color: #fff;
    font-size: 11px;
    padding: 2px 12px;
    border-radius: 10px;
    white-space: nowrap;
}

.abp-plan-card h3 {
    font-size: 18px;
    margin: 0 0 12px;
}

.abp-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    text-align: left;
}

.abp-plan-features li {
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.abp-plan-features .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #46b450;
}

.abp-plan-features .dashicons-no-alt {
    color: #d63638;
}

.abp-plan-current {
    background: #f0f0f1;
    color: #50575e;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 13px;
    display: inline-block;
}

/* -- Affiliate Banner -- */

.abp-affiliate-banner {
    background: #edfaef;
    border: 1px solid #46b450;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.abp-affiliate-banner h3 {
    margin: 0 0 4px;
    color: #1e4620;
}

.abp-affiliate-banner p {
    margin: 0 0 12px;
    color: #2c3338;
    font-size: 14px;
}

.abp-affiliate-link {
    display: inline-block;
    background: #46b450;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.abp-affiliate-link:hover {
    background: #3a9b42;
    color: #fff;
}

/* -- Disconnect Section -- */

.abp-disconnect-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.abp-disconnect-warning {
    font-size: 13px;
    color: #787c82;
    margin-bottom: 12px;
}

.abp-btn-danger {
    background: #d63638 !important;
    border-color: #b32d2e !important;
    color: #fff !important;
    font-size: 14px !important;
    padding: 6px 24px !important;
    height: auto !important;
    line-height: 1.7 !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: background 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.abp-btn-danger:hover,
.abp-btn-danger:focus {
    background: #b32d2e !important;
    border-color: #8a1e21 !important;
    color: #fff !important;
}

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

/* -- Account Responsive -- */

@media (max-width: 782px) {
    .abp-plan-grid {
        grid-template-columns: 1fr;
    }

    .abp-usage-row {
        flex-wrap: wrap;
    }

    .abp-usage-label {
        width: 100%;
    }

    .abp-usage-value {
        text-align: left;
    }
}

/* ================================================================
   CELEBRATION OVERLAY -- One-time full overlay after upgrade
   ================================================================ */

.abp-celebration-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.abp-celebration-card {
    background: linear-gradient(135deg, #0f0527 0%, #1a0a3e 40%, #2d1470 100%);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 480px;
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.abp-celebration-card::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.abp-celebration-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* Confetti */

.abp-confetti {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.abp-confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    opacity: 0;
    animation: abp-confetti-fall 3s ease-in-out forwards;
}

@keyframes abp-confetti-fall {
    0% { opacity: 1; transform: translateY(-20px) rotate(0deg); }
    100% { opacity: 0; transform: translateY(500px) rotate(720deg); }
}

.abp-celebration-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(251, 146, 60, 0.2));
    border: 1px solid rgba(249, 115, 22, 0.4);
    padding: 8px 20px;
    border-radius: 24px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.abp-celebration-crown { font-size: 18px; }

.abp-celebration-badge span {
    color: #fb923c;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.abp-celebration-title {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.abp-celebration-plan-name {
    background: linear-gradient(135deg, #f97316, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.abp-celebration-subtitle {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto 36px;
    position: relative;
    z-index: 2;
}

.abp-celebration-features {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
    position: relative;
    z-index: 2;
}

.abp-celeb-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 18px;
}

.abp-celeb-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.abp-cf-orange { background: rgba(249, 115, 22, 0.15); }
.abp-cf-purple { background: rgba(124, 58, 237, 0.15); }
.abp-cf-green { background: rgba(34, 197, 94, 0.15); }
.abp-cf-blue { background: rgba(59, 130, 246, 0.15); }

.abp-celeb-feature-text {
    text-align: left;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.3;
}

.abp-celeb-feature-text strong {
    display: block;
    color: #fff;
    font-weight: 700;
}

.abp-celebration-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 24px rgba(249, 115, 22, 0.3);
    position: relative;
    z-index: 2;
    margin-bottom: 12px;
}

.abp-celebration-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.4);
}

.abp-celebration-cta .abp-arrow { transition: transform 0.2s; }
.abp-celebration-cta:hover .abp-arrow { transform: translateX(4px); }

.abp-celebration-continue {
    display: block;
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
    position: relative;
    z-index: 2;
    background: none;
    border: none;
    margin-top: 4px;
}

.abp-celebration-continue:hover { color: #94a3b8; }

/* ================================================================
   COMPANION BANNER -- Standard variant for Pro/Max users
   ================================================================ */

.abp-companion-banner {
    background: linear-gradient(135deg, #0f0527, #1a0a3e);
    border-radius: 10px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.2);
    margin-bottom: 20px;
}

.abp-companion-banner::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 250px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.05));
    pointer-events: none;
}

.abp-companion-plan-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(124, 58, 237, 0.15));
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 8px;
    padding: 10px 16px;
    flex-shrink: 0;
}

.abp-companion-crown { font-size: 16px; }

.abp-companion-plan-text {
    color: #fb923c;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.abp-companion-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.abp-companion-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.abp-companion-text strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.abp-companion-text p {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

.abp-companion-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.2);
}

.abp-companion-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

/* Max plan variant */

.abp-companion-max {
    border-color: rgba(249, 115, 22, 0.25);
}

.abp-companion-max .abp-companion-plan-badge {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(251, 146, 60, 0.15));
    border-color: rgba(249, 115, 22, 0.4);
}

.abp-companion-max .abp-companion-cta-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 2px 12px rgba(249, 115, 22, 0.2);
}

.abp-companion-max .abp-companion-cta-btn:hover {
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

/* ================================================================
   COMPANION BANNER -- Compact variant
   ================================================================ */

.abp-companion-compact {
    background: linear-gradient(135deg, #0f0527, #1a0a3e);
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid #7c3aed;
    margin-bottom: 20px;
}

.abp-compact-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: #fb923c;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.abp-compact-text {
    flex: 1;
    color: #cbd5e1;
    font-size: 13px;
}

.abp-compact-text strong { color: #fff; }

.abp-compact-cta-btn {
    color: #a78bfa;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    background: none;
    border: none;
    transition: color 0.15s;
}

.abp-compact-cta-btn:hover { color: #c4b5fd; }

/* Max variant for compact */

.abp-compact-max {
    border-left-color: #f97316;
}

/* ================================================================
   LIMIT REACHED -- Pro/Max variant (dashboard redirect)
   ================================================================ */

.abp-limit-pro .abp-limit-cta {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.abp-limit-pro .abp-limit-cta:hover {
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.4);
}

/* ================================================================
   COMPANION / CELEBRATION Responsive
   ================================================================ */

@media (max-width: 782px) {
    .abp-celebration-card {
        padding: 40px 24px;
        min-height: auto;
    }

    .abp-celebration-title {
        font-size: 24px;
    }

    .abp-celebration-features {
        gap: 8px;
    }

    .abp-celeb-feature {
        padding: 8px 12px;
    }

    .abp-companion-banner {
        flex-wrap: wrap;
        padding: 16px 20px;
    }

    .abp-companion-divider {
        display: none;
    }

    .abp-companion-compact {
        flex-wrap: wrap;
    }
}

/* ===== Generation Progress Card ===== */

.abp-gen-progress {
    display: none;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-left: 4px solid #6C3CE1;
    border-radius: 4px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.abp-gen-progress-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.abp-gen-progress-header .dashicons {
    color: #6C3CE1;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.abp-gen-progress-heading {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin: 0;
    padding: 0;
}

.abp-gen-progress-message {
    height: 20px;
    overflow: hidden;
    font-size: 13px;
    color: #787c82;
    margin-bottom: 12px;
    transition: opacity 0.3s;
}

.abp-gen-progress-bar-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.abp-gen-progress-track {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.abp-gen-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6C3CE1, #9b6eff);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.abp-gen-progress--complete .abp-gen-progress-fill {
    background: #00a32a;
}

.abp-gen-progress-percent {
    font-size: 12px;
    font-weight: 500;
    color: #50575e;
    width: 32px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.abp-gen-progress-timer {
    font-size: 12px;
    color: #787c82;
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 4px;
}

.abp-gen-progress-steps {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.abp-gen-progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.abp-step-dot {
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.abp-step-dot-pending {
    width: 6px;
    height: 6px;
    background: #c3c4c7;
    border-radius: 50%;
}

.abp-step-dot-active {
    width: 6px;
    height: 6px;
    background: #6C3CE1;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(108, 60, 225, 0.2);
    animation: abp-step-pulse 1.5s ease-in-out infinite;
}

.abp-step-dot-done .dashicons {
    color: #6C3CE1;
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.abp-step-label {
    color: #787c82;
}

.abp-step-label-active {
    color: #6C3CE1;
    font-weight: 500;
}

.abp-step-label-done {
    color: #50575e;
}

.abp-gen-progress-hint {
    font-size: 11px;
    color: #a7aaad;
}

.abp-gen-progress--complete {
    border-left-color: #00a32a;
}

.abp-gen-progress--complete .abp-gen-progress-heading {
    color: #00a32a;
}

.abp-gen-progress--complete .abp-gen-progress-header .dashicons {
    color: #00a32a;
}

@keyframes abp-step-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(108, 60, 225, 0.3);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(108, 60, 225, 0);
    }
}

/* ===== Plan Comparison (Account Page) ===== */

.abp-plan-price { font-size: 24px; font-weight: 700; color: #1d2327; margin: 8px 0 4px; }
.abp-plan-desc { color: #50575e; font-size: 13px; margin: 0 0 4px; }
.abp-plan-words { color: #2271b1; font-size: 12px; font-weight: 600; margin: 0 0 12px; }
