/* ByTheWeb AI - Final Design System (v10) */

:root {
    --btw-dark: #1d2327;
    --btw-orange: #E46F38;
    --btw-blue: #54A5D4;
    --btw-blue-dark: #2271b1;
    --btw-gradient: linear-gradient(90deg, var(--btw-orange) 0%, #3a3a3a 50%, var(--btw-blue) 100%);
    --btw-bg-light: #ffffff;
    --btw-bg-grey: #f7f9fc;
    --btw-border: #e2e4e7;
    --btw-shadow: 0 10px 40px rgba(0,0,0,0.05);
    --btw-shadow-hover: 0 15px 50px rgba(0,0,0,0.08);
    --btw-radius: 12px;
}

.btw-ai-wrapper {
    max-width: 1050px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2c343f;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
.btw-ai-wrapper h1, .btw-ai-wrapper h2, .btw-ai-wrapper h3, .btw-ai-wrapper h4 {
    font-weight: 700;
    color: var(--btw-dark);
    margin-bottom: 0.6em;
    line-height: 1.3;
}

/* Header Pill Design */
.btw-header-pill {
    background: #f0f8ff;
    color: #1d2327;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid #d0e7ff;
    display: inline-block;
}

/* Dashboard Header */
.btw-dashboard-header {
    background: #fff;
    padding: 20px 30px;
    border-radius: var(--btw-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    box-shadow: var(--btw-shadow);
    border: 1px solid #fff;
    position: relative;
    overflow: hidden;
}
.btw-dashboard-header::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: var(--btw-gradient);
}
.btw-logo img { height: 25px; width: auto; display: block; }

/* Menu Badge (Admin Sidebar) */
.btw-menu-badge {
    background-color: #d63638;
    color: #fff;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    display: inline-block;
    vertical-align: top;
    margin-right: 5px;
}

/* Filter Buttons */
.btw-filters-bar { display: flex; gap: 15px; margin-bottom: 30px; }
.btw-filter-btn { flex: 1; text-align: center; padding: 15px; background: #fff; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; font-weight: 600; color: #555; text-decoration: none; transition: all 0.2s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.02); display: flex; align-items: center; justify-content: center; gap: 10px; }
.btw-filter-btn:hover { background: #f9f9f9; color: #333; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.btw-filter-btn.active { background: #1d2327; color: #fff; border-color: #1d2327; border-bottom: 4px solid #E46F38; }

/* Validation Errors */
.btw-input-error { border-color: #d63638 !important; background-color: #fdf2f2 !important; }
.btw-error-msg { color: #d63638; font-size: 11px; margin-top: 4px; font-weight: 500; min-height: 15px; }

/* Cards & Containers */
.btw-status-card, 
.btw-ideas-section, 
#btwai_faq_editor .btw-generate-area,
.btw-generate-area,
.btw-summary-box,
.btw-meta-box,
.btw-success-msg,
.btw-preview-card {
    background: #fff !important;
    border-radius: var(--btw-radius) !important;
    box-shadow: var(--btw-shadow) !important;
    border: 1px solid var(--btw-border) !important;
    padding: 35px !important;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 25px;
    position: relative;
    overflow: hidden;
    text-align:start;
}
.btw-status-card:hover {
    box-shadow: var(--btw-shadow-hover) !important; transform: translateY(-2px);
}
/* Strips for cards */
.btw-status-card::after,
.btw-ideas-section::after,
.btw-generate-area::after,
.btw-summary-box::after,
.btw-meta-box::after,
.btw-modal-header::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: var(--btw-gradient);
}

.btw-ideas-section, .btw-generate-area { border-bottom: none !important; }

/* Success Message Clean Style */
.btw-success-msg {
    text-align: center;
    background: #fff !important;
    color: var(--btw-dark) !important;
    border-bottom: 4px solid #46b450 !important; /* Green strip for success */
}
.btw-success-msg h2 { color: #46b450 !important; margin-bottom: 5px; font-size: 28px; }

/* --- IDEAS LIST --- */
.btw-ideas-list { list-style: none; padding: 0; display: grid; gap: 15px; margin-top: 25px; }
.idea-select-btn {
    width: 100%;
    color: #2271b1 !important;
    background: #f6f7f7 !important;
    border: 1px solid transparent !important; 
    padding: 15px 20px;
    border-radius: 4px; 
    font-size: 16px !important;
    font-weight: 500;
    cursor: pointer;
    vertical-align: top;
    transition: all 0.2s;
    position: relative;
    display: block;
    margin-bottom: -5px; 
    text-align: start;
}
.idea-select-btn:hover {
    background: #f0f0f1 !important;
    color: #135e96 !important;
    transform: translateY(-1px);
}

/* --- SEO BOX --- */
.btw-seo-box {
    background: linear-gradient(135deg, #fdfdfd 0%, #f4f9ff 100%) !important;
    border: 2px solid #a8c6df !important;
    padding: 30px !important;
    border-radius: 12px !important;
    position: relative;
}
.btw-seo-box label {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1d2327 !important;
}
.btw-seo-box .description {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #444;
}

/* Inputs */
.btw-input-group label { font-size: 15px; font-weight: 600; color: #555; margin-bottom: 10px; display: block; }
.btw-ai-wrapper input[type="text"], .btw-ai-wrapper textarea, .btw-ai-wrapper select {
    width: 100%; background: var(--btw-bg-grey); border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 14px 16px; font-size: 16px; color: #333; transition: all 0.2s ease; box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}
.btw-ai-wrapper input[type="text"]:focus, .btw-ai-wrapper textarea:focus, .btw-ai-wrapper select:focus {
    background: #fff; border-color: var(--btw-blue); box-shadow: 0 0 0 3px rgba(84, 165, 212, 0.1); outline: none;
}
.btw-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.btw-grid-special { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; align-items: start; }

/* Wizard Steps */
.btw-wizard-container { background: transparent; box-shadow: none; border: none; }
.btw-wizard-steps {
    background: #fff; padding: 25px 50px; border-radius: var(--btw-radius); box-shadow: var(--btw-shadow);
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 35px;
    position: relative; z-index: 10; border-bottom: 4px solid #f0f0f0; 
}
.step-item { text-align: center; position: relative; z-index: 2; flex: 1; }
.step-circle {
    width: 40px; height: 40px; background: #fff; border: 2px solid #e0e0e0; color: #ccc; border-radius: 50%;
    margin: 0 auto 10px auto; display: flex; align-items: center; justify-content: center; font-weight: 700; transition: all 0.3s; font-size: 16px;
}
.step-title { font-size: 14px; font-weight: 500; color: #999; }
.step-desc { display: none; } 
.step-item.active .step-circle { border-color: var(--btw-blue); color: var(--btw-dark); background: #f0f8ff; transform: scale(1.1); }
.step-item.active .step-title { color: var(--btw-dark); font-weight: 700; }
.step-line { flex: 1; height: 2px; background: #f0f0f0; margin: 0 -20px; position: relative; top: -20px; z-index: 1; }
.btw-step-content {
    background: #fff; border-radius: var(--btw-radius); padding: 45px; box-shadow: var(--btw-shadow);
    animation: slideUpFade 0.4s ease; display: none; border-bottom: 4px solid var(--btw-blue); 
}
.btw-step-content.active { display: block; }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* BUTTONS */
.btn-yellow, .btn-black, .button-hero, .btn-generate-media-ai, #btn-get-ideas, #btn-generate-faq-ajax, #btn-do-generate-img, #btn-generate-image, #final-edit-link, #btn-approve-img, #btn-save-retry-img, #btn-regen-img, #btn-skip-image, #btn-final-save-img, #btn-new-article {
    border: none !important; font-weight: 500 !important; border-radius: 8px !important; font-size: 15px !important;
    cursor: pointer; transition: all 0.2s ease; text-decoration: none !important; display: inline-flex !important;
    align-items: center; justify-content: center; height: 48px; padding: 0 32px !important; line-height: 1 !important; box-sizing: border-box; position: relative; overflow: hidden;
}

/* PRIMARY BUTTON */
.btn-yellow, .btn-generate-media-ai, #btn-generate-faq-ajax, #btn-generate-image, #btn-do-generate-img, #btn-generate-final, #btn-approve-img, #btn-approve-generated-img, #btn-final-save-img, #btn-final-save-modal, #final-edit-link {
    background-color: var(--btw-dark) !important; color: #fff !important; box-shadow: 0 4px 15px rgba(29, 35, 39, 0.2) !important; border-bottom: 0 !important;
}
.btn-yellow::after, .btn-generate-media-ai::after, #btn-generate-faq-ajax::after, #btn-generate-image::after, #btn-do-generate-img::after, #btn-generate-final::after, #btn-approve-img::after, #btn-approve-generated-img::after, #btn-final-save-img::after, #btn-final-save-modal::after, #final-edit-link::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: var(--btw-gradient); transition: height 0.2s;
}
.btn-yellow:hover, .btn-generate-media-ai:hover, #btn-generate-faq-ajax:hover, #btn-generate-image:hover, #btn-do-generate-img:hover, #btn-generate-final:hover, #btn-approve-img:hover, #btn-approve-generated-img:hover, #btn-final-save-img:hover, #btn-final-save-modal:hover, #final-edit-link:hover {
    background-color: #2c3338 !important; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(29, 35, 39, 0.3) !important;
}

/* SECONDARY BUTTON */
.btn-black, #btn-get-ideas, #btn-skip-image, #btn-regen-img, #btn-save-retry-img, #btn-save-retry-generated-img, #btn-retry-img, .btn-prev, #btn-new-article {
    background-color: #f0f2f5 !important; color: var(--btw-dark) !important; border: 1px solid #e0e0e0 !important; border-bottom: 0 !important; box-shadow: none !important;
}
.btn-black::after, #btn-get-ideas::after, #btn-skip-image::after, #btn-regen-img::after, #btn-save-retry-img::after, #btn-save-retry-generated-img::after, #btn-retry-img::after, .btn-prev::after, #btn-new-article::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: var(--btw-blue);
}
.btn-black:hover, #btn-get-ideas:hover, #btn-skip-image:hover, #btn-regen-img:hover, #btn-save-retry-img:hover, #btn-save-retry-generated-img:hover, #btn-retry-img:hover, .btn-prev:hover, #btn-new-article:hover {
    background-color: #fff !important; border-color: #d0d0d0 !important; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

/* Clear all arrows */
.btn-next::after, .btn-next::before, .btn-prev::after, .btn-prev::before, #btn-generate-final::after, #btn-do-generate-img::after, .btn-generate-media-ai::after, #btn-generate-faq-ajax::after, #btn-generate-image::after, #btn-get-ideas::after, #btn-ai-img-trigger::after {
    content: none !important; display: none !important;
}
.btn-yellow:disabled, .btn-black:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Loader & Overlay */
.btw-loader-wrapper { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 30px 0; }
.btw-dot { width: 14px; height: 14px; border-radius: 50%; animation: btwBounce 1.4s infinite ease-in-out both; }
.btw-dot:nth-child(1) { background-color: var(--btw-orange); animation-delay: -0.32s; }
.btw-dot:nth-child(2) { background-color: var(--btw-dark); animation-delay: -0.16s; }
.btw-dot:nth-child(3) { background-color: var(--btw-blue); }
@keyframes btwBounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
.spinner { display: none !important; }
.btw-media-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.85); z-index: 50; display: flex; justify-content: center; align-items: center; border-radius: 12px; backdrop-filter: blur(2px); }

/* Metadata Grid */
.btw-meta-grid { display: grid; grid-template-columns: 280px 1fr; gap: 35px; align-items: start; margin-top: 25px; }
.meta-img-preview img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--btw-shadow); border: 1px solid #eee; }
.meta-inputs { display: flex; flex-direction: column; gap: 15px; }
/* Styling for Meta Inputs inside the Modal */
.meta-inputs label { 
    font-weight: bold; 
    display: block; 
    margin-bottom: 5px; 
    font-size: 13px; 
    color:#666; 
}
.meta-inputs input[type="text"], 
.meta-inputs textarea { 
    width: 100%; 
    padding: 10px 15px; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    background: #f9fafb; 
    transition: all 0.2s ease; 
    box-sizing: border-box; 
    font-size: 14px;
    color: #333;
}
.meta-inputs input[type="text"]:focus, 
.meta-inputs textarea:focus { 
    background: #fff; 
    border-color: #54A5D4; 
    outline: none; 
    box-shadow: 0 0 0 3px rgba(84, 165, 212, 0.1); 
}
/* Modal Override */
.btw-modal-overlay { display: none; position: fixed; z-index: 9999999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.btw-modal-content { background-color: #fefefe; margin: 5% auto; padding: 0; border: none; width: 960px; max-width: 95%; border-radius: var(--btw-radius) !important; box-shadow: 0 30px 90px rgba(0,0,0,0.2) !important; position: relative; animation: btwSlideDown 0.3s ease; overflow: hidden; }
@keyframes btwSlideDown { from {top: -50px; opacity: 0;} to {top: 0; opacity: 1;} }
.btw-modal-header { padding: 25px 35px !important; border-bottom: 1px solid #f0f0f1; background: #fff; display: flex; justify-content: space-between; align-items: center; position:relative; }
.btw-modal-header::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: var(--btw-gradient); }
.btw-modal-header h2 { margin: 0; font-size: 18px; color: var(--btw-dark); display:flex; align-items:center; gap:8px; }
.btw-close-modal { color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; line-height: 1; }
.btw-close-modal:hover { color: #000; }
.btw-modal-body { padding: 35px !important; }
.btw-modal-cols { display: flex; gap: 30px; align-items: start; height: 100%; }
.btw-col-img { flex: 1.5; }
.btw-col-img img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); display: block; }
.btw-col-opts { flex: 1; display: flex; flex-direction: column; justify-content: center; height: 100%; }
.btw-col-opts h3 { margin-top: 0; margin-bottom: 20px; font-size: 18px; color: #333; }
.btn-full-width { width: 100%; margin-bottom: 10px; justify-content: center; }

/* Status Cards Grid */
.btw-status-grid { display: flex; gap: 20px; flex-wrap: wrap; }
.btw-card { background: #fff; border: 1px solid var(--btw-border); border-radius: 12px; padding: 25px; flex: 1; box-shadow: var(--btw-shadow); }

/* Flex Buttons */
.btw-flex-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 30px; }

/* Preview Card */
.btw-preview-card {
    display: flex; gap: 25px; align-items: start; 
    background: #f9fafb; border: 1px solid #eef0f2; padding: 25px; border-radius: 12px;
    margin: 30px auto; max-width: 700px;
}
.btw-preview-img { width: 120px; height: 120px; flex-shrink: 0; }
.btw-preview-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid #ddd; }
.btw-preview-content { flex-grow: 1; }
.btw-preview-content h4 { font-size: 20px; margin: 0 0 10px 0; color: #1d2327; line-height: 1.3; }
.btw-preview-content div { font-size: 15px; color: #666; line-height: 1.6; max-height: 80px; overflow: hidden; }

/* Wizard Image Column Layout */
.btw-wiz-cols { display: flex; gap: 30px; align-items: center; justify-content: space-between; }
.btw-wiz-img-col { flex: 1; }
.btw-wiz-action-col { width: 300px; flex-shrink: 0; text-align: center; background: #f9fafb; padding: 25px; border-radius: 12px; border: 1px solid #eee; }

/* SEO Field Descriptions */
.btw-field-desc {
    font-size: 12px;
    color: #888;
    margin: 5px 0 0 0;
    font-weight: normal;
}

/* FAQ UI Additions */
.btw-faq-clean-wrap { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 15px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.03); border: 1px solid #eee; }
.btw-faq-info-link { color: #666; font-size: 12px; text-decoration: none; border-bottom: 1px dashed #999; cursor: pointer; }
.btw-faq-info-link:hover { color: #2271b1; border-color: #2271b1; }
#btwai_faq_items { margin-top: 15px; }
.btw-faq-item { background: #fdfdfd; border: 1px solid #e0e0e0; padding: 20px; margin-bottom: 10px; border-radius: 8px; cursor: move; }
.btw-faq-item label { font-weight: bold; display: block; margin-bottom: 5px; color:#555; }
.btw-faq-item input, .btw-faq-item textarea { width: 100%; margin-bottom: 10px; padding: 8px; border: 1px solid #ddd; border-radius:4px; background:#fff; }
.btw-faq-actions { display: flex; justify-content: space-between; align-items: center; }
.btw-input-highlight { background-color: #f0f8ff !important; border: 1px solid #2aade3 !important; transition: background-color 0.5s; }
.btw-save-reminder { background: #fff8e5; border-right: 4px solid #ffb900; padding: 10px; margin-top: 15px; display: none; color: #1d2327; }

/* FAQ Preview Toggle in Wizard */
.btw-faq-toggle-btn {
    background: #f0f2f5 !important;
    color: #555 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 20px !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s;
    display: inline-block;
}
.btw-faq-toggle-btn:hover {
    background: #e5e7eb !important;
    color: #333 !important;
}

.btw-faq-preview-list {
    margin-top: 15px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
    text-align: start;
}
.faq-prev-item {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
    color: #444;
}
.faq-prev-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.faq-prev-item strong {
    color: #1d2327;
}

/* Featured Image Button injected into editor */
#btw-ai-img-trigger { 
    display: inline-flex; width: 100%; padding: 12px 24px !important; 
    background: #C86A3D !important; /* The new soft orange color */
    color: #fff !important; 
    border: none !important; 
    border-radius: 6px !important;
    box-shadow: 0 4px 15px rgba(200, 106, 61, 0.3) !important;
    font-weight: 600 !important; text-align: center !important; cursor: pointer; text-decoration: none; font-size: 15px !important;
    transition: all 0.2s; justify-content:center; align-items:center; gap:8px; box-sizing: border-box;
}
#btw-ai-img-trigger:hover { 
    background: #b55d34 !important; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(200, 106, 61, 0.4) !important; 
}
/* Ensure no weird arrows from previous designs */
#btw-ai-img-trigger::before, #btw-ai-img-trigger::after { display: none !important; }
[dir="rtl"] #btw-ai-img-trigger::before, [dir="rtl"] #btw-ai-img-trigger::after { display: none !important; }



/* ------------------------------------------------------------- */
/* New UI Integrations (From Settings, Editor, and Autopilot PHP)*/
/* ------------------------------------------------------------- */

/* Locked Overlays */
.btw-locked-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(29, 35, 39, 0.00); z-index: 10000; border-radius: 12px; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); transition: background 0.3s ease; cursor: pointer; }
.btw-locked-overlay:hover { background: rgba(29, 35, 39, 0.00); }
.btw-lock-content { text-align: center; transform: translateY(-20px); }
.btw-locked-overlay-small { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(29, 35, 39, 0.05); z-index: 10; border-radius: 0; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); cursor: pointer; }
.btw-lock-content-small { text-align: center; }

/* Autopilot Queue Styles */
.btw-queue-list { list-style:none; padding:0; margin:0; }
.queue-item { background:#fff; border:1px solid #ddd; padding:10px; margin-bottom:5px; border-radius:4px; transition:background 0.2s; }
.queue-item:hover { background:#fbfbfb; }
.queue-remove { cursor:pointer; color:#d63638; font-weight:bold; font-size:18px; line-height:1; }
.queue-remove:hover { color:red; }
.queue-meta { font-size:11px; color:#999; margin-top:4px; margin-right:24px; }
.idea-pill { display:inline-block; background:#fff; border:1px solid #2271b1; color:#2271b1; padding:5px 12px; border-radius:20px; margin:5px; cursor:pointer; font-size:13px; transition:all 0.2s; }
.idea-pill:hover { background:#2271b1; color:#fff; }

/* Pricing, Features, and SaaS Styles */
.pkg-features { margin: 20px 0 !important; }
.pkg-features li { margin-bottom: 12px; font-size: 15px; color: #444; display:flex; align-items:center; gap:8px; }

.pricing-switch-container { display: flex; align-items: center; justify-content: center; margin-bottom: 50px; gap: 20px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.pricing-switch-wrapper { position: relative; display: inline-flex; background-color: #f0f2f5; border-radius: 40px; padding: 5px; width: 600px; height: 56px; box-sizing: border-box; direction: ltr; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); }
.switch-option { flex: 1; z-index: 2; text-align: center; cursor: pointer; font-weight: 700; font-size: 16px; line-height: 46px; transition: color 0.3s ease; color: #666; position: relative; user-select: none; }
.switch-slider { position: absolute; top: 5px; left: 5px; bottom: 5px; width: calc(50% - 5px); background: #1d2327; border-radius: 35px; transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1); z-index: 1; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
input[name="billing_cycle"] { display: none; }
#cycle-yearly:checked ~ .switch-slider { transform: translateX(0); }
#cycle-yearly:checked + label { color: #fff; }
#cycle-monthly:checked ~ .switch-slider { transform: translateX(100%) translateX(5px); }
#cycle-monthly:checked + label { color: #fff; }
.switch-highlight { color: #ffb900; font-weight: 900; font-size: 0.85em; margin-left: 6px; text-transform:uppercase; letter-spacing:0.5px; }

.btw-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; }
.btw-price-card { background: #fff; border-radius: 20px; padding: 40px 30px; position: relative; transition: all 0.3s ease; border: 1px solid #f0f0f0; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 10px 40px rgba(0,0,0,0.04); }
.btw-price-card:hover { transform: translateY(-10px); box-shadow: 0 20px 60px rgba(0,0,0,0.08); border-color: #e2e4e7; }
.btw-price-card.popular { border: 2px solid #1d2327; box-shadow: 0 15px 50px rgba(0,0,0,0.08); }
.badge-popular { background: #1d2327; color: #fff; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

.pkg-price-display { margin: 20px 0; font-family: -apple-system, sans-serif; }
.price-val { font-size: 48px; font-weight: 800; color: #1d2327; letter-spacing: -1px; }
.pkg-price-display span:last-child { font-size: 16px; color: #888; font-weight: 500; }
.btn-buy-pkg { border-radius: 12px !important; height: 54px !important; font-size: 18px !important; font-weight: 700 !important; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.btw-plan-status-label { display: inline-block; background-color: #4CAF50; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 12px; margin-top: 5px; }
.btn-reactivate-link { background: none !important; border: none !important; box-shadow: none !important; color: #2271b1 !important; text-decoration: underline !important; font-size: 14px !important; cursor: pointer; }
.btn-reactivate-link:hover { color: #135e96 !important; }

.trial-banner { background: linear-gradient(135deg, #e6fffa 0%, #ffffff 100%); border: 2px solid #38b2ac; border-radius: 20px; padding: 40px; display: flex; align-items: center; justify-content: space-between; max-width: 900px; margin: 0 auto 50px auto; box-shadow: 0 15px 40px rgba(56, 178, 172, 0.1); position: relative; overflow: hidden; }
.trial-banner::before { content: "✨"; font-size: 120px; position: absolute; left: -20px; top: 50%; transform: translateY(-50%); opacity: 0.1; pointer-events: none; }
.trial-info h2 { font-size: 28px; margin: 0 0 10px 0; color: #234e52; }
.trial-info p { margin: 0; font-size: 16px; color: #2c7a7b; }
.trial-action { text-align: left; min-width: 250px; }
.btn-trial { background: #319795 !important; color: #fff !important; border: none !important; font-size: 18px !important; padding: 15px 30px !important; border-radius: 12px !important; box-shadow: 0 5px 15px rgba(49, 151, 149, 0.3) !important; }
.btn-trial:hover { background: #285e61 !important; transform: translateY(-2px); }

.extra-banner { background: #fff; border: 1px solid #e2e4e7; border-radius: 16px; padding: 25px 35px; display: flex; align-items: center; justify-content: space-between; max-width: 900px; margin: 0 auto 20px auto; box-shadow: 0 5px 20px rgba(0,0,0,0.03); transition: all 0.3s; }
.extra-banner:hover { border-color: #54A5D4; transform: scale(1.01); box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.extra-info h3 { margin: 0 0 5px 0; font-size: 20px; color: #1d2327; }
.extra-action { display: flex; align-items: center; gap: 20px; }
.extra-price { font-size: 24px; font-weight: 800; color: #1d2327; }
.btn-extra { background: #f0f2f5 !important; color: #1d2327 !important; border: 1px solid #dcdcde !important; font-weight: 600 !important; border-radius: 8px !important; }
.btn-extra:hover { background: #1d2327 !important; color: #fff !important; }

/* Active Package Badge Style */
.btw-price-card.active-plan-card { border: 2px solid #4CAF50 !important; }
.active-pkg-badge { background: #4CAF50; color: #fff; font-weight: bold; padding: 5px 10px; border-radius: 12px; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 12px; z-index: 10; }

/* OVERRIDES FOR JS TOGGLING */
.btw-force-hide { display: none !important; }
.btw-force-flex { display: inline-flex !important; }

/* --- Mobile Responsiveness Updates --- */
@media (max-width: 768px) {
    /* General Layouts */
    .btw-dashboard-header { flex-direction: column; gap: 15px; text-align: center; }
    .btw-filters-bar { flex-direction: column; }
    
    /* Grids to Single Column */
    .btw-grid-2, .btw-grid-special, .btw-meta-grid, .btw-status-grid { 
        grid-template-columns: 1fr; display: flex; flex-direction: column; gap: 20px; 
    }
    
    /* Wizard & Previews */
    .btw-preview-card { flex-direction: column; align-items: center; text-align: center; }
    .btw-wiz-cols { flex-direction: column; }
    .btw-wiz-action-col { width: 100%; }
    
    /* Wizard Steps Bar */
    .btw-wizard-steps { padding: 15px; flex-direction: column; gap: 15px; border-bottom: none; }
    .step-line { display: none; }
    
    /* Modals */
    .btw-modal-cols { flex-direction: column; }
    .btw-modal-content { width: 95%; margin: 10% auto; }
    
    /* FAQ Box */
    .btw-faq-clean-wrap { flex-direction: column; gap: 15px; align-items: stretch; text-align: center; }
    button#btn-generate-faq-ajax { width: 100%; }
    .btw-faq-actions { flex-direction: column; gap: 10px; align-items: flex-start; }
    
    /* Media Optimization Row */
    .btw-status-card[data-id] { flex-direction: column !important; }
    .btw-status-card[data-id] > div:first-child { width: 100% !important; max-width: 200px; margin: 0 auto; }
    .btw-status-card[data-id] .btw-field-wrap { grid-column: 1 / -1; }
    .btw-status-card[data-id] > div:nth-child(2) > div:first-child { display: flex; flex-direction: column; }
    .btw-status-card[data-id] > div:last-child { width: 100% !important; border-right: none !important; border-top: 1px solid #f0f0f0; padding-top: 15px; margin-top: 15px; }

    /* New Additions Mobile Adjustment */
    .pricing-switch-wrapper { width: 100%; height: auto; flex-direction: column; padding: 10px; border-radius: 20px; }
    .switch-slider { display: none; } /* On mobile, we might rely on the labels changing color, or standard radios */
    input[name="billing_cycle"] { display: inline-block; margin-right: 10px; }
    #cycle-yearly:checked + label, #cycle-monthly:checked + label { color: var(--btw-primary); font-weight: bold; background: #e2e8f0; border-radius: 10px; }
    .trial-banner { flex-direction: column; text-align: center; padding: 30px 20px; }
    .trial-banner::before { display: none; }
    .trial-info ul { flex-direction: column; align-items: center; gap: 10px; margin-bottom: 20px; }
    .extra-banner { flex-direction: column; text-align: center; gap: 15px; padding: 20px; }
    .extra-action { flex-direction: column; width: 100%; }
    .btn-extra { width: 100%; }
}



.btw-promo-banner-wrap {
        display: block;
        margin-bottom: 30px;
        margin-top: -10px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .btw-promo-banner-wrap:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    }
    .btw-promo-banner-wrap img {
        width: 100%;
        height: auto;
    }
    .btw-promo-banner-wrap .btw-promo-img-desktop {
        display: block;
    }
    .btw-promo-banner-wrap .btw-promo-img-mobile {
        display: none;
    }
    @media (max-width: 768px) {
        .btw-promo-banner-wrap { margin-bottom: 20px; }
        .btw-promo-banner-wrap .btw-promo-img-desktop { display: none; }
        .btw-promo-banner-wrap .btw-promo-img-mobile { display: block; }
    }