/* ================================================================
   Ads Consultation — Public Landing Page Styles
   /ads — dedicated stylesheet
   ================================================================ */

/* === Hero === */
.wr-hero {
    /* Dark premium background: dark base + Google-orange glow top-right + Facebook-blue glow bottom-left */
    background:
        radial-gradient(ellipse 55% 50% at 92% 8%,  rgba(251,140,0,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 45% at 6%  90%, rgba(24,119,242,0.14) 0%, transparent 55%),
        linear-gradient(160deg, #0d1117 0%, #0f1e38 45%, #0c1a0c 100%);
    color: #fff;
    padding: 4.5rem 1rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle dot-grid overlay */
.wr-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* Glowing ring accent */
.wr-hero::after {
    content: '';
    position: absolute;
    top: -120px; left: 50%; transform: translateX(-50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(251,140,0,0.08) 0%, transparent 65%);
    border-radius: 50%; pointer-events: none;
}

.wr-hero h1 {
    font-size: 2.2rem; font-weight: 800; margin-bottom: 0.65rem;
    position: relative; z-index: 1; letter-spacing: -0.5px;
    color: #fff;
    line-height: 1.25;
}
.hero-highlight {
    background: linear-gradient(90deg, #fb8c00 0%, #ffca28 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(251,140,0,0.15); border: 1px solid rgba(251,140,0,0.35);
    border-radius: 20px; padding: 0.3rem 1rem; font-size: 0.78rem;
    font-weight: 700; color: #ffb74d; letter-spacing: 0.3px;
    margin-bottom: 1rem; position: relative; z-index: 1;
}

.wr-hero .hero-sub {
    font-size: 1rem; color: rgba(255,255,255,0.7); max-width: 560px;
    margin: 0 auto 1.75rem; position: relative; z-index: 1; line-height: 1.65;
}

/* Platform logo pills */
.platform-logos {
    display: flex; gap: 1rem; justify-content: center; align-items: center;
    margin-bottom: 2rem; position: relative; z-index: 1; flex-wrap: wrap;
}
.platform-logo-pill {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    border-radius: 30px; padding: 0.5rem 1.2rem;
    font-weight: 700; font-size: 0.88rem;
    display: flex; align-items: center; gap: 0.45rem;
    color: rgba(255,255,255,0.9);
    transition: all 0.2s;
}
.platform-logo-pill:hover { background: rgba(255,255,255,0.12); }
.platform-logo-pill.google   { border-color: rgba(52,168,83,0.45);  color: #81c995; }
.platform-logo-pill.facebook { border-color: rgba(100,162,255,0.45); color: #82b4ff; }
.platform-logo-pill.sep      { background: none; border: none; color: rgba(255,255,255,0.25); font-size: 0.75rem; }

/* Trust badges */
.trust-row {
    display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;
    margin-top: 1.1rem; position: relative; z-index: 1;
}
.trust-badge {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px; padding: 0.3rem 0.9rem;
    font-size: 0.78rem; color: rgba(255,255,255,0.7);
    display: flex; align-items: center; gap: 0.4rem;
}
.trust-badge i { color: #fb8c00; font-size: 0.72rem; }

/* Step indicator */
.wr-steps {
    display: flex; justify-content: center; gap: 0;
    margin: 2.75rem auto 0; max-width: 460px;
    position: relative; z-index: 1;
}
.wr-step { flex: 1; text-align: center; position: relative; }
.wr-step .step-num {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.45);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem; margin-bottom: 0.35rem; transition: all 0.3s;
}
.wr-step.active .step-num {
    background: #fb8c00; border-color: #fb8c00; color: #fff;
    box-shadow: 0 0 0 5px rgba(251,140,0,0.18);
}
.wr-step.done .step-num { background: #43a047; border-color: #43a047; color: #fff; }
.wr-step .step-label { font-size: 0.7rem; color: rgba(255,255,255,0.45); transition: color 0.3s; }
.wr-step.active .step-label { color: rgba(255,255,255,0.9); }
.wr-step.done  .step-label  { color: rgba(255,255,255,0.7); }
.wr-step:not(:last-child)::after {
    content: ''; position: absolute; top: 19px; left: 62%;
    width: 76%; height: 1.5px; background: rgba(255,255,255,0.1);
}
.wr-step.done:not(:last-child)::after { background: #43a047; }

/* === Layout === */
.wr-layout {
    max-width: 900px; margin: -2.5rem auto 3rem; padding: 0 1rem;
    position: relative; z-index: 2;
}
.wr-main { width: 100%; }

/* === Bottom action bar === */
.result-bar-inner {
    max-width: 860px; margin: 0 auto;
    display: flex; justify-content: center; gap: 0.6rem;
    align-items: center; flex-wrap: nowrap;
}
@media (max-width: 600px) {
    #stepResultBar { padding: 0.6rem 0.75rem; overflow-x: auto; }
    .result-bar-inner { justify-content: flex-start; max-width: none; }
    .btn-bar-lbl { display: none; }
    #btnContinue .btn-bar-lbl { display: inline; }
    /* Equalise button height on mobile */
    #stepResultBar .btn-wr-secondary,
    #stepResultBar .btn-wr-primary {
        font-size: 0.88rem;
        padding: 0.55rem 0.85rem;
    }
}

/* === Session history: compact floating dropdown === */
.session-float {
    position: fixed;
    top: 72px; right: 16px;
    z-index: 800;
}
.session-float-btn {
    background: rgba(255,255,255,0.97);
    border: 1.5px solid #e0e0e0; border-radius: 22px;
    padding: 0.42rem 0.9rem; font-size: 0.8rem; font-weight: 600;
    color: #555; cursor: pointer;
    display: flex; align-items: center; gap: 0.4rem;
    box-shadow: 0 2px 14px rgba(0,0,0,0.1);
    transition: border-color 0.2s, color 0.2s;
    backdrop-filter: blur(6px); white-space: nowrap;
}
.session-float-btn:hover, .session-float.open .session-float-btn { border-color: #fb8c00; color: #fb8c00; }
.session-float-badge {
    background: #fb8c00; color: #fff;
    border-radius: 10px; padding: 1px 6px;
    font-size: 0.68rem; font-weight: 800;
    min-width: 18px; text-align: center; line-height: 1.4;
}
.session-float-chevron { font-size: 0.65rem; transition: transform 0.2s; }
.session-float.open .session-float-chevron { transform: rotate(180deg); }
.session-float-panel {
    position: absolute; right: 0; top: calc(100% + 6px);
    width: 270px; background: #fff;
    border: 1px solid #e8e8e8; border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.13);
    padding: 0.7rem; display: none;
}
.session-float.open .session-float-panel { display: block; }
.session-float-title {
    font-size: 0.8rem; font-weight: 700; color: #777;
    margin-bottom: 0.55rem; padding-bottom: 0.4rem;
    border-bottom: 1px solid #f0f0f0;
}

/* Session list */
.session-list { max-height: 340px; overflow-y: auto; }
.session-item {
    padding: 0.65rem; border: 1px solid #e8edf2; border-radius: 8px;
    margin-bottom: 0.4rem; cursor: pointer; transition: all 0.2s; font-size: 0.82rem;
}
.session-item:hover { border-color: #fb8c00; background: #fffaf5; }
.session-item .session-title { font-weight: 600; color: #333; margin-bottom: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-item .session-meta { font-size: 0.72rem; color: #888; display: flex; justify-content: space-between; }
.session-item .session-delete { color: #e53935; cursor: pointer; padding: 0 0.25rem; }
.session-item.session-submitted { border-color: #a5d6a7; background: #f9fef9; }
.session-item.session-submitted:hover { border-color: #2e7d32; background: #f1fdf1; }
.session-item.session-submitted .session-title { color: #2e7d32; }
.session-empty { text-align: center; color: #aaa; font-size: 0.82rem; padding: 1.2rem 0; }

/* === Main cards === */
.wr-card {
    background: #fff; border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07); padding: 2rem; margin-bottom: 1.5rem;
}
.wr-card h2 {
    font-size: 1.2rem; font-weight: 700; color: #1a1a2e; margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: 0.55rem;
}
.wr-card h2 i { color: #fb8c00; font-size: 0.95rem; }

/* === Form elements === */
.wr-textarea, .wr-input, .wr-select {
    width: 100%; border: 2px solid #e8edf2; border-radius: 12px;
    padding: 0.85rem 1.1rem; font-size: 0.95rem; transition: border-color 0.2s;
    font-family: inherit; background: #fff; color: #222;
}
.wr-select { cursor: pointer; appearance: auto; }
.wr-textarea { line-height: 1.6; resize: vertical; min-height: 130px; }
.wr-textarea:focus, .wr-input:focus, .wr-select:focus { outline: none; border-color: #fb8c00; }
.wr-textarea::placeholder, .wr-input::placeholder { color: #b0b8c1; }
.form-label-wr { font-weight: 600; font-size: 0.86rem; margin-bottom: 0.3rem; color: #444; display: block; }

/* ── Showcase band (spacing only — visual style handled by component) ─ */
.ads-showcase-band { margin-top: 1rem; }

/* Platform card selector */
.platform-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.platform-check { cursor: pointer; flex: 1; min-width: 160px; }
.platform-check input { display: none; }
.platform-label {
    display: flex; align-items: center; gap: 0.6rem; width: 100%;
    padding: 0.75rem 1.1rem; border: 2px solid #e0e6ef; border-radius: 12px;
    transition: all 0.2s; user-select: none; color: #999; background: #f8f9fc;
    cursor: pointer; white-space: nowrap; box-sizing: border-box;
}
.plat-icon {
    width: 32px; height: 32px; border-radius: 8px; background: #eef0f5;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; transition: all 0.2s; flex-shrink: 0;
}
.plat-name { font-weight: 700; font-size: 0.9rem; color: #aaa; transition: color 0.2s; }
.plat-check {
    font-size: 1rem; color: #ddd; transition: all 0.2s; flex-shrink: 0;
}

/* Google — unchecked hover */
.platform-check:hover .platform-label.google  { border-color: #a8d5b5; background: #f4fbf6; }
.platform-check:hover .platform-label.facebook { border-color: #a8c8f8; background: #f4f8ff; }

/* CHECKED states — strong visual */
.platform-check input:checked + .platform-label.google {
    border-color: #34a853; background: #eaf7ed; color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(52,168,83,0.12);
}
.platform-check input:checked + .platform-label.google .plat-icon {
    background: #34a853; color: #fff;
}
.platform-check input:checked + .platform-label.google .plat-name { color: #1b5e20; }
.platform-check input:checked + .platform-label.google .plat-desc  { color: #388e3c; }
.platform-check input:checked + .platform-label.google .plat-check { color: #34a853; }

.platform-check input:checked + .platform-label.facebook {
    border-color: #1877f2; background: #e8f0fe; color: #1565c0;
    box-shadow: 0 0 0 3px rgba(24,119,242,0.12);
}
.platform-check input:checked + .platform-label.facebook .plat-icon {
    background: #1877f2; color: #fff;
}
.platform-check input:checked + .platform-label.facebook .plat-name { color: #0d47a1; }
.platform-check input:checked + .platform-label.facebook .plat-desc  { color: #1976d2; }
.platform-check input:checked + .platform-label.facebook .plat-check { color: #1877f2; }

/* URL attachments */
.url-attachments { margin-top: 0.5rem; }
.url-attach-item {
    display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.7rem;
    background: #fff3e0; border-radius: 8px; font-size: 0.82rem; margin-bottom: 0.3rem;
    border: 1px solid #ffe0b2;
}
.url-attach-item i.fa-link { color: #e65100; font-size: 0.75rem; }
.url-attach-item .url-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e65100; }
.url-attach-item .url-status { font-size: 0.72rem; font-weight: 600; }
.url-attach-item .url-status.loading { color: #f57c00; }
.url-attach-item .url-status.done    { color: #2e7d32; }
.url-attach-item .url-status.error   { color: #e53935; }
.url-attach-item .url-remove { cursor: pointer; color: #e53935; font-size: 0.7rem; padding: 0 0.2rem; }
.url-attach-item .url-remove:hover { color: #b71c1c; }
.url-fetching-notice { font-size: 0.78rem; color: #f57c00; margin-top: 0.3rem; display: none; }
.url-fetching-notice.active { display: block; }

/* Buttons */
.btn-wr-primary {
    background: linear-gradient(135deg, #fb8c00 0%, #e65100 100%);
    color: #fff; border: none; border-radius: 10px;
    padding: 0.9rem 2.5rem; font-size: 1rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(230,81,0,0.3);
}
.btn-wr-primary:hover    { background: linear-gradient(135deg, #e65100 0%, #bf360c 100%); box-shadow: 0 6px 18px rgba(230,81,0,0.35); color: #fff; transform: translateY(-1px); }
.btn-wr-primary:disabled { background: #bbb; box-shadow: none; cursor: not-allowed; transform: none; }

.btn-wr-secondary {
    background: transparent; color: #e65100;
    border: 2px solid #e65100; border-radius: 10px;
    padding: 0.8rem 2rem; font-size: 0.95rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.btn-wr-secondary:hover { background: #e65100; color: #fff; }

/* Loading */
.wr-loading { display: none; text-align: center; padding: 3rem 1rem; }
.wr-loading.active { display: block; }
.wr-loading .spinner {
    width: 48px; height: 48px; border: 4px solid #f0ece6;
    border-top-color: #fb8c00; border-radius: 50%;
    animation: wrspin 0.75s linear infinite; margin: 0 auto 1.2rem;
}
@keyframes wrspin { to { transform: rotate(360deg); } }

/* Steps visibility */
.wr-result, .wr-contact, .wr-success { display: none; }
.wr-result.active, .wr-contact.active, .wr-success.active { display: block; }

/* Result summary */
.result-summary {
    background: linear-gradient(135deg, #f8f4ec 0%, #fff3e0 100%);
    border-radius: 12px; padding: 1.4rem; margin-bottom: 1.5rem;
    border-left: 4px solid #fb8c00;
}
.result-summary h3 { font-size: 1rem; font-weight: 700; color: #bf360c; margin-bottom: 0.4rem; }
.result-summary p   { color: #555; line-height: 1.7; margin: 0; }
.result-section { margin-bottom: 1.5rem; }
.result-section h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; color: #1a1a2e; }

/* Campaign cards */
.campaign-card {
    background: #fff; border: 1px solid #edf0f5; border-radius: 12px;
    padding: 1.25rem; margin-bottom: 0.75rem; transition: box-shadow 0.2s, border-color 0.2s;
}
.campaign-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); border-color: #d8dde8; }
.campaign-card .camp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.campaign-card .camp-name { font-weight: 700; font-size: 0.97rem; color: #1a1a2e; display: flex; align-items: center; gap: 0.5rem; }
.campaign-card .camp-platform { font-size: 0.76rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 6px; }
.camp-platform.google   { background: #e8f5e9; color: #2e7d32; }
.camp-platform.facebook { background: #e3f2fd; color: #1565c0; }
.campaign-card .camp-objective { font-size: 0.83rem; color: #888; margin-bottom: 0.4rem; }
.campaign-card .camp-meta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.5rem; font-size: 0.81rem; color: #666; }
.campaign-card .camp-meta-item { display: flex; align-items: center; gap: 0.3rem; }
.campaign-card .camp-meta-item i { color: #fb8c00; font-size: 0.72rem; }
.campaign-card .camp-delete {
    background: none; border: 1px solid #ffcdd2; color: #e53935; border-radius: 6px;
    padding: 0.3rem 0.5rem; cursor: pointer; font-size: 0.76rem; transition: all 0.2s;
}
.campaign-card .camp-delete:hover { background: #ffebee; }
.campaign-card .camp-desc { font-size: 0.86rem; color: #555; margin-top: 0.35rem; line-height: 1.6; }

.kw-group-add-input {
    flex: 1; border: 1px solid #e0e0e0; border-radius: 6px;
    padding: 0.42rem 0.75rem; font-size: 0.82rem; background: #fafafa; color: #333;
}
.kw-group-add-input:focus { outline: none; border-color: #fb8c00; background: #fff; }

/* Budget summary card */
.budget-card {
    background: #fff;
    border: 1.5px solid #e8edf2; border-top: 3px solid #fb8c00;
    border-radius: 14px; padding: 1.5rem; margin-bottom: 1.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.budget-card h3 { font-size: 0.95rem; font-weight: 700; color: #1a1a2e; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.budget-card h3 i { color: #fb8c00; }
.budget-row { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid #f0f2f5; }
.budget-row:last-of-type { border-bottom: none; }
.budget-label { color: #888; font-size: 0.87rem; }
.budget-value { font-weight: 700; font-size: 0.97rem; color: #1a1a2e; }
.budget-total-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; margin-top: 0.75rem; background: linear-gradient(135deg, #fff3e0, #fff8e1); border-radius: 10px; }
.budget-total-label { font-weight: 700; color: #bf360c; font-size: 0.95rem; display: flex; align-items: center; gap: 0.4rem; }
.budget-total-value { font-weight: 800; font-size: 1.3rem; color: #e65100; }
.budget-note { font-size: 0.76rem; color: #b0a090; margin-top: 0.7rem; }
.budget-sub-note { font-size: 0.76rem; color: #1565c0; margin: -0.1rem 0 0.4rem 0; padding-left: 1.4rem; }
.budget-contact-cta { background: #fff3e0; border: 1px solid #ffe0b2; border-radius: 8px; padding: 0.85rem 1rem; text-align: center; color: #bf360c; font-weight: 600; font-size: 0.9rem; }
.budget-error { background: #fff3f3; border: 1px solid #ffcdd2; border-radius: 8px; padding: 0.85rem 1rem; color: #c62828; font-size: 0.88rem; font-weight: 500; }

/* Budget allocation dropdown per campaign */
.camp-alloc-wrap { display: inline-flex; align-items: center; gap: 0.3rem; }
.camp-budget-alloc {
    appearance: none; -webkit-appearance: none;
    background: #f0f4ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E") no-repeat right 6px center;
    border: 1.5px solid #c5d0e8; border-radius: 6px;
    padding: 2px 22px 2px 7px; font-size: 0.82rem; font-weight: 700; color: #1a1a2e;
    cursor: pointer; min-width: 58px;
}
.camp-budget-alloc:hover { border-color: #fb8c00; background-color: #fff8f0; }
.camp-budget-alloc:focus { outline: none; border-color: #fb8c00; box-shadow: 0 0 0 2px rgba(251,140,0,0.15); }

/* Allocation summary card */
.alloc-summary-card {
    margin: 0.75rem 0 0.25rem;
    background: #f8f9fa; border: 1.5px solid #e0e0e0; border-radius: 10px;
    padding: 0.7rem 1rem; overflow: hidden;
}
.alloc-summary-card.alloc-ok  { background: #f1f8e9; border-color: #a5d6a7; }
.alloc-summary-card.alloc-warn { background: #fff8e1; border-color: #ffe082; }
.alloc-bar-track { height: 6px; background: #e0e0e0; border-radius: 3px; margin-bottom: 0.55rem; overflow: hidden; }
.alloc-bar-fill  { height: 100%; border-radius: 3px; transition: width 0.3s ease; }
.alloc-summary-info { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; }
.alloc-total { color: #555; }

/* Success state */
.success-icon {
    width: 72px; height: 72px; background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #2e7d32; margin: 0 auto 1.3rem;
    box-shadow: 0 4px 16px rgba(46,125,50,0.2);
}

/* === Responsive === */
@media (max-width: 768px) {
    .wr-hero h1  { font-size: 1.7rem; }
    .wr-hero::before { background-size: 22px 22px; }
    .wr-card     { padding: 1.25rem; }
    .btn-wr-primary, .btn-wr-secondary { padding: 0.8rem 1.6rem; font-size: 0.93rem; }
    .session-float { top: 58px; right: 10px; }
}

/* ─── Optional collapsible cards ─────────────────────────────── */
.optional-card { padding: 0; overflow: hidden; }
.optional-toggle {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem; cursor: pointer; user-select: none;
    font-weight: 700; font-size: 0.95rem; color: #444;
    transition: background 0.15s;
}
.optional-toggle:hover { background: #fafafa; }
.toggle-icon { font-size: 0.8rem; color: #bbb; transition: transform 0.25s; }
.optional-toggle.open .toggle-icon { transform: rotate(45deg); }
.optional-body {
    display: none; padding: 0 1.25rem 1.25rem;
    border-top: 1px solid #f0f0f0;
}
.optional-body.visible { display: block; }
.optional-hint { font-size: 0.83rem; color: #888; margin-bottom: 0.75rem; }
.badge-optional {
    font-size: 0.68rem; font-weight: 600; background: #e8f5e9; color: #388e3c;
    padding: 2px 8px; border-radius: 20px; margin-left: 0.5rem;
    vertical-align: middle; border: 1px solid #c8e6c9;
}

/* ─── Website analysis ────────────────────────────────────────── */
.website-url-row { display: flex; gap: 0.5rem; align-items: stretch; }
.website-url-row .wr-input { flex: 1; }
.btn-sm-wr {
    padding: 0.5rem 0.9rem; font-size: 0.83rem; white-space: nowrap;
    border-radius: 10px; font-weight: 700; cursor: pointer;
}
.website-info-card {
    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px;
    padding: 0.85rem 1rem; margin-top: 0.75rem;
}
.website-info-card .biz-name { font-weight: 800; color: #166534; font-size: 1rem; }
.website-info-card .biz-industry { font-size: 0.8rem; color: #15803d; background: #dcfce7; border-radius: 20px; padding: 2px 10px; display: inline-block; margin: 0.3rem 0 0.5rem; }
.biz-section-label { font-size: 0.73rem; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 0.05em; margin: 0.5rem 0 0.25rem; }
.biz-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.biz-chip { background: #fff; border: 1px solid #d1fae5; color: #065f46; border-radius: 20px; padding: 3px 10px; font-size: 0.8rem; }
.biz-phone { font-size: 0.82rem; color: #555; margin-top: 0.4rem; }
.biz-audience { font-size: 0.82rem; color: #444; margin-top: 0.4rem; background: #f0fdf4; border-left: 3px solid #4ade80; padding: 0.35rem 0.6rem; border-radius: 0 6px 6px 0; }
.biz-actions { margin-top: 0.75rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn-biz-fill { font-size: 0.8rem; font-weight: 700; background: #166534; color: #fff; border: none; border-radius: 8px; padding: 0.4rem 0.85rem; cursor: pointer; transition: background 0.15s; }
.btn-biz-fill:hover { background: #14532d; }
.btn-biz-clear { font-size: 0.8rem; font-weight: 600; background: transparent; color: #999; border: 1px solid #ddd; border-radius: 8px; padding: 0.4rem 0.85rem; cursor: pointer; }
.website-loading { color: #888; font-size: 0.85rem; padding: 0.5rem 0; }
.website-error { color: #c62828; font-size: 0.83rem; padding: 0.4rem 0; }

/* ─── Keywords ────────────────────────────────────────────────── */
.kw-tabs { display: flex; gap: 0.4rem; margin-bottom: 0.75rem; }
.kw-tab {
    padding: 0.38rem 0.9rem; border: 1.5px solid #e0e0e0; background: #f5f5f5;
    border-radius: 8px; cursor: pointer; font-size: 0.83rem; font-weight: 700;
    color: #777; transition: all 0.15s;
}
.kw-tab.active { background: var(--ns-primary, #e64a19); color: #fff; border-color: var(--ns-primary, #e64a19); }
.kw-textarea { min-height: 100px; }
.csv-upload-area {
    border: 2px dashed #ddd; border-radius: 10px; padding: 1.5rem;
    text-align: center; cursor: pointer; color: #999; transition: all 0.2s;
    margin-top: 0.25rem;
}
.csv-upload-area:hover, .csv-upload-area.dragover { border-color: var(--ns-primary, #e64a19); background: #fff9f5; }
.kw-chips-wrap { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.25rem; }
.kw-chip {
    display: inline-flex; align-items: center; gap: 0.3rem;
    background: #fff8f0; border: 1px solid #ffcc80; border-radius: 20px;
    padding: 3px 10px 3px 8px; font-size: 0.8rem; color: #5d4037;
}
.kw-chip .kw-vol { color: #e64a19; font-weight: 700; font-size: 0.75rem; }
.kw-chip .kw-del { cursor: pointer; color: #ccc; margin-left: 2px; font-size: 0.75rem; }
.kw-chip .kw-del:hover { color: #c62828; }
.btn-link-danger { background: none; border: none; color: #e53935; font-size: 0.8rem; cursor: pointer; padding: 0; font-weight: 600; }
.btn-link-danger:hover { color: #c62828; }

/* ─── Description suggestions ────────────────────────────────── */
.desc-suggestions { display: none; margin-bottom: 0.75rem; }
.desc-suggestions.visible { display: block; }
.desc-suggestion-label { font-size: 0.78rem; color: #888; margin-bottom: 0.4rem; font-weight: 600; }
.desc-chips-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.desc-chip {
    background: #fffde7; border: 1px solid #ffe082; border-radius: 20px;
    padding: 4px 12px; font-size: 0.78rem; cursor: pointer; color: #5d4037;
    transition: all 0.15s; display: inline-flex; align-items: center; gap: 0.3rem;
}
.desc-chip:hover { background: #fff9c4; border-color: var(--ns-primary, #e64a19); }
.desc-chip i { font-size: 0.65rem; color: #bbb; }

/* ─── Keyword table ──────────────────────────────────────────── */
.kw-list-header { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; margin-top: 0.75rem; border-top: 1px solid #eee; gap: 0.5rem; flex-wrap: wrap; }
.kw-list-stats { font-size: 0.82rem; color: #777; }
.kw-list-stats strong { color: var(--ns-primary, #e64a19); }
.kw-list-presets { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }
.kw-preset { padding: 0.25rem 0.7rem; font-size: 0.78rem; font-weight: 700; border: 1.5px solid #e0e0e0; background: #f5f5f5; border-radius: 20px; cursor: pointer; color: #777; transition: all 0.15s; }
.kw-preset:hover { border-color: var(--ns-primary, #e64a19); color: var(--ns-primary, #e64a19); background: #fff9f5; }
.kw-preset.active { background: var(--ns-primary, #e64a19); color: #fff; border-color: var(--ns-primary, #e64a19); }
.kw-table-wrap { max-height: 300px; overflow-y: auto; border: 1px solid #e0e0e0; border-radius: 8px; margin-top: 0.5rem; }
.kw-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; table-layout: fixed; }
.kw-table thead th { background: #f5f5f5; padding: 0.4rem 0.5rem; text-align: left; font-weight: 700; color: #555; border-bottom: 2px solid #e0e0e0; position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.kw-table tbody tr { border-bottom: 1px solid #f5f5f5; }
.kw-table tbody tr:hover { background: #fafafa; }
.kw-table tbody tr.kw-row-sel { background: #fff8f0; }
.kw-table tbody tr.kw-row-sel:hover { background: #fff3e0; }
.kw-table td { padding: 0.33rem 0.5rem; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kw-col-check { width: 32px !important; text-align: center; }
.kw-col-kw { width: auto; }
.kw-col-num { width: 82px !important; text-align: right !important; color: #555; }
.kw-col-num.kw-bid { color: var(--ns-primary, #e64a19); font-weight: 700; }
.kw-col-comp { width: 80px !important; font-size: 0.73rem; }
.comp-high { color: #c62828; font-weight: 700; }
.comp-low  { color: #2e7d32; font-weight: 700; }
.kw-more-row { text-align: center !important; color: #999; font-style: italic; font-size: 0.75rem; padding: 0.5rem !important; }

/* ─── Context panel (above description textarea) ─────────────── */
.ctx-panel { background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%); border: 1.5px solid #90caf9; border-radius: 10px; padding: 0.75rem 1rem; margin-bottom: 0.75rem; }
.ctx-panel-label { font-size: 0.75rem; font-weight: 700; color: #1565c0; margin-bottom: 0.5rem; }
.ctx-items { display: flex; flex-direction: column; gap: 0.45rem; }
.ctx-item-title { font-size: 0.82rem; font-weight: 700; color: #1a237e; margin-bottom: 0.2rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem; }
.ctx-industry { font-size: 0.73rem; font-weight: 500; color: #5c6bc0; background: #e8eaf6; border-radius: 8px; padding: 1px 8px; }
.ctx-item-row { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.2rem; align-items: center; }
.ctx-row-label { font-size: 0.72rem; color: #888; font-weight: 600; white-space: nowrap; }
.ctx-tag { background: #e3f2fd; border: 1px solid #90caf9; border-radius: 12px; padding: 2px 9px; font-size: 0.73rem; color: #1565c0; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
.ctx-tag.ctx-more { background: #e0e0e0; border-color: #bdbdbd; color: #757575; }
.ctx-tag.ctx-tag-cta { background: #e8f5e9; border-color: #a5d6a7; color: #2e7d32; }
.ctx-tag.ctx-tag-kw { background: #fff8e1; border-color: #ffe082; color: #5d4037; }
.ctx-tag .ctx-kw-vol { color: var(--ns-primary, #e64a19); font-weight: 700; font-size: 0.7rem; }
.ctx-kw-stat { font-size: 0.73rem; color: var(--ns-primary, #e64a19); font-weight: 600; background: #fff3e0; border-radius: 8px; padding: 1px 7px; }
.ctx-audience { font-size: 0.77rem; color: #546e7a; margin-top: 0.25rem; }
.btn-ctx-autofill { margin-top: 0.5rem; padding: 0.35rem 1rem; font-size: 0.8rem; font-weight: 700; background: #166534; color: #fff; border: none; border-radius: 8px; cursor: pointer; transition: background 0.15s; }
.btn-ctx-autofill:hover { background: #14532d; }

/* ─── 2-phase loading UI ─────────────────────────────────────────────── */
.analyze-phases { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.75rem; }
.phase-step { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: #aaa; padding: 0.3rem 0; transition: color 0.3s; }
.phase-step.active { color: var(--ns-primary, #e64a19); font-weight: 700; }
.phase-step.done { color: #2e7d32; }
.phase-step.done i { color: #2e7d32; font-size: 1rem; }
.phase-step.pending .phase-dot { width: 14px; height: 14px; border-radius: 50%; background: #ddd; flex-shrink: 0; }
.spinner-sm { width: 18px; height: 18px; border: 2.5px solid #ffd5c6; border-top-color: var(--ns-primary, #e64a19); border-radius: 50%; animation: wrspin 0.7s linear infinite; flex-shrink: 0; }

/* ─── Todo list ──────────────────────────────────────────────────────── */
.loading-todo { margin-top: 0.5rem; border-top: 1px solid #f0e4dd; padding-top: 0.75rem; }
.todo-platform { margin-bottom: 0.75rem; }
.todo-platform-name { font-size: 0.78rem; font-weight: 800; color: #555; margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.03em; }
.todo-tasks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.todo-task { font-size: 0.8rem; display: flex; align-items: flex-start; gap: 0.4rem; padding: 0.15rem 0; line-height: 1.4; }
.todo-task.todo-pending { color: #999; }
.todo-task.todo-done { color: #2e7d32; }
.todo-task.todo-done i { color: #2e7d32; }

/* ─── Thinking panel ─────────────────────────────────────────────────── */
.thinking-panel { margin-top: 0.75rem; border: 2px solid #ffe0b2; border-radius: 10px; overflow: hidden; font-size: 0.8rem; transition: border-color 0.4s; }
.thinking-panel.thinking-active { animation: thinking-glow 2s ease-in-out infinite; }
@keyframes thinking-glow {
    0%   { border-color: #ffd54f; box-shadow: 0 0 4px rgba(255,160,0,0.25); }
    50%  { border-color: #ff9800; box-shadow: 0 0 16px rgba(255,152,0,0.55), 0 0 4px rgba(255,152,0,0.3); }
    100% { border-color: #ffd54f; box-shadow: 0 0 4px rgba(255,160,0,0.25); }
}
.thinking-header { display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.75rem; background: linear-gradient(90deg,#fff8f0,#fff3e0); color: #e65100; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; }
.thinking-icon { animation: brain-pulse 1.5s ease-in-out infinite; font-size: 0.95rem; }
@keyframes brain-pulse {
    0%, 100% { transform: scale(1);   opacity: 1;    color: #e65100; }
    50%       { transform: scale(1.25); opacity: 0.75; color: #ff9800; }
}
.thinking-dots { display: flex; gap: 3px; margin-left: auto; }
.thinking-dots span { width: 5px; height: 5px; border-radius: 50%; background: #ff9800; animation: dot-bounce 1.2s ease-in-out infinite; }
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%            { transform: scale(1);   opacity: 1;   }
}
.thinking-content { display: block; max-height: 180px; overflow-y: auto; padding: 0.5rem 0.75rem; background: #fffdf7; color: #555; white-space: pre-wrap; word-break: break-word; line-height: 1.6; font-family: 'Segoe UI', sans-serif; }

/* ─── Campaign selection header & checkboxes ─────────────────────────── */
.camp-select-header { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0.75rem; background: #fff8f5; border: 1px solid #ffe0b2; border-radius: 10px; margin-bottom: 0.75rem; flex-wrap: wrap; gap: 0.5rem; }
.camp-select-info { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: #555; }
.camp-select-info input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--ns-primary, #e64a19); cursor: pointer; }
.camp-select-label { display: flex; align-items: center; cursor: pointer; margin: 0; }
.camp-select-label input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--ns-primary, #e64a19); cursor: pointer; }
.campaign-card.camp-deselected { opacity: 0.45; filter: grayscale(0.3); }
.campaign-card.camp-deselected .camp-header { background: #f5f5f5 !important; }

/* ─── Campaign phase 2 extra fields ─────────────────────────────────── */
.camp-keywords { margin: 0.4rem 0.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.camp-kw-chip { background: #e8f4fd; color: #0d6efd; border-radius: 8px; padding: 1px 7px; font-size: 0.73rem; }
.camp-kw-chip.camp-kw-more { background: #f0f0f0; color: #666; }
.camp-targeting { font-size: 0.78rem; color: #666; margin: 0.3rem 0.75rem; }
.camp-copies { margin: 0.4rem 0.75rem; display: flex; flex-direction: column; gap: 0.25rem; }
.camp-copy-idea { font-size: 0.78rem; color: #444; background: #f9f9f9; border-left: 3px solid #ffe0b2; padding: 0.25rem 0.5rem; border-radius: 0 6px 6px 0; }
.ads-toolbar { margin-top: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ─── Website info extra fields ──────────────────────────────────────── */
.biz-desc-text { font-size: 0.82rem; color: #666; margin: 0.3rem 0 0.5rem; line-height: 1.5; }
.biz-cta-main { font-size: 0.8rem; color: #555; margin: 0.4rem 0; background: #fff3cd; border-radius: 6px; padding: 0.25rem 0.5rem; display: inline-block; }
.btn-add-suggested-kws { font-size: 0.72rem; background: #e64a19; color: #fff; border: none; border-radius: 6px; padding: 2px 8px; cursor: pointer; font-weight: 700; transition: background 0.15s; margin-left: 0.4rem; }
.btn-add-suggested-kws:hover { background: #bf360c; }

/* ─── Budget mode toggle (Step 1 – 3 modes) ─────────────────────────── */
.bm-group { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0; }
.bm-btn {
    flex: 1; min-width: 90px;
    background: #f8f9fc; border: 1.5px solid #e0e6ef; border-radius: 10px;
    padding: 0.52rem 0.8rem; font-size: 0.82rem; font-weight: 600; color: #777;
    cursor: pointer; transition: all 0.18s; white-space: nowrap;
}
.bm-btn:hover { border-color: #fb8c00; color: #fb8c00; background: #fff8f0; }
.bm-btn.active { background: #fb8c00; border-color: #fb8c00; color: #fff; }
.bm-panel {}
.budget-auto-hint {
    background: #fff8e1; border: 1px solid #ffe082; border-radius: 10px;
    padding: 0.65rem 1rem; margin-top: 0.5rem; font-size: 0.85rem; color: #795548; line-height: 1.5;
}

/* ─── Step 3 Tabs (guest / login) ──────────────────────────────────── */
.step3-tabs { display: flex; gap: 0.4rem; margin-bottom: 1.2rem; border-bottom: 2px solid #e8ecf0; padding-bottom: 0; }
.step3-tab { background: none; border: none; padding: 0.55rem 1.1rem; font-size: 0.9rem; font-weight: 600; color: #888; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all 0.15s; }
.step3-tab.active { color: #fb8c00; border-bottom-color: #fb8c00; }
.step3-tab:hover:not(.active) { color: #555; }

/* ─── Permalink box copy button feedback ──────────────────────────── */
#btnCopyPermalink.copied { background: #e8f5e9; border-color: #43a047; color: #2e7d32; }

/* ─── Hero: plans link ────────────────────────────────────────────── */
.hero-plans-link {
    margin-top: 1rem; position: relative; z-index: 1;
}
.hero-plans-cta {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: rgba(255,255,255,0.75); font-size: 0.83rem; font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,0.35);
    transition: color 0.2s, border-color 0.2s;
    padding-bottom: 1px;
}
.hero-plans-cta:hover { color: #ffca28; border-bottom-color: rgba(255,202,40,0.5); }

/* ─── AI Plan header badge ───────────────────────────────────────── */
.ai-plan-header {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1rem;
}
.ai-plan-badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: linear-gradient(90deg, #e8f0fe 0%, #e0f2f1 100%);
    border: 1px solid #90caf9; border-radius: 20px;
    padding: 0.22rem 0.9rem; font-size: 0.75rem; font-weight: 700;
    color: #1565c0; letter-spacing: 0.2px;
}
.ai-plan-badge i { color: #1976d2; }

/* ─── PDF Download button (result bar) ──────────────────────────── */
.btn-pdf-download {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%) !important;
    box-shadow: 0 4px 14px rgba(21,101,192,0.35) !important;
}
.btn-pdf-download:hover {
    background: linear-gradient(135deg, #0d47a1 0%, #01579b 100%) !important;
    box-shadow: 0 6px 18px rgba(21,101,192,0.4) !important;
}

/* ─── Plans listing page ─────────────────────────────────────────── */
.plans-hero {
    background: linear-gradient(160deg, #0d1117 0%, #0f1e38 60%, #0c1a30 100%);
    color: #fff; padding: 3.5rem 1rem 3rem; text-align: center;
    position: relative; overflow: hidden;
}
.plans-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px; pointer-events: none;
}
.plans-hero h1 { font-size: 1.9rem; font-weight: 800; color: #fff; position: relative; z-index: 1; margin-bottom: 0.5rem; }
.plans-hero p   { color: rgba(255,255,255,0.65); position: relative; z-index: 1; max-width: 520px; margin: 0 auto 1.5rem; font-size: 0.95rem; }

.plans-filter-bar {
    max-width: 820px; margin: 0 auto 2rem; padding: 0 1rem;
    display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap;
}
.plans-filter-bar select {
    border: 2px solid #e0e6ef; border-radius: 10px; padding: 0.55rem 1rem;
    font-size: 0.9rem; background: #fff; cursor: pointer;
    appearance: auto; font-family: inherit;
}
.plans-filter-bar select:focus { outline: none; border-color: #fb8c00; }

.plans-section { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem 3rem; }
.plans-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem;
}

.plan-card {
    background: #fff; border-radius: 14px;
    border: 1px solid #e8edf5;
    box-shadow: 0 3px 16px rgba(0,0,0,0.06);
    padding: 1.25rem; cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    text-decoration: none; color: inherit; display: block;
}
.plan-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-color: #fb8c00; transform: translateY(-2px);
}
.plan-card-eyebrow {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.65rem; flex-wrap: wrap; gap: 0.35rem;
}
.plan-card-industry {
    font-size: 0.74rem; font-weight: 700; color: #e65100;
    background: #fff3e0; border-radius: 20px; padding: 2px 9px;
}
.plan-card-platforms { display: flex; gap: 0.3rem; }
.plan-card-plat {
    font-size: 0.7rem; padding: 1px 7px; border-radius: 6px; font-weight: 700;
}
.plan-card-plat.google   { background: #e8f5e9; color: #2e7d32; }
.plan-card-plat.facebook { background: #e3f2fd; color: #1565c0; }
.plan-card-title { font-size: 1rem; font-weight: 700; color: #1a1a2e; margin-bottom: 0.5rem; line-height: 1.35; }
.plan-card-desc  { font-size: 0.83rem; color: #777; line-height: 1.6; margin-bottom: 0.75rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.plan-card-meta  { display: flex; gap: 0.75rem; font-size: 0.76rem; color: #999; flex-wrap: wrap; }
.plan-card-meta span { display: flex; align-items: center; gap: 0.25rem; }
.plan-card-meta i { color: #fb8c00; font-size: 0.68rem; }
.plan-card-cta   { font-size: 0.82rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #f57c00 0%, #e64a19 100%); padding: 6px 14px; border-radius: 8px; display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.plan-card-cta i { font-size: 0.75rem; }
.plan-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.85rem; border-top: 1px solid #f1f1f1; }
.plan-card .showcase-price { display: flex; align-items: baseline; gap: 3px; }
.plan-card .price-label   { font-size: 0.72rem; color: #94a3b8; }
.plan-card .price-value   { font-size: 1rem; font-weight: 800; color: #1a1a2e; }
.plan-card .price-unit    { font-size: 0.72rem; color: #64748b; }
.plan-card .price-contact { font-size: 0.82rem; color: #64748b; font-weight: 600; }

.plans-load-more { text-align: center; padding-bottom: 2rem; }
.plans-empty { text-align: center; padding: 3rem 1rem; color: #aaa; }
.plans-empty i { font-size: 2rem; display: block; margin-bottom: 0.75rem; }

@media (max-width: 600px) {
    .plans-grid { grid-template-columns: 1fr; }
    .plans-hero h1 { font-size: 1.5rem; }
}
