/* ===========================
   AI FRONT DESK ONBOARDING
   =========================== */

.afd-trial-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    margin-bottom:16px;
}

.afd-trial-label{
    color:#ff7a18;
    font-size:11px;
    font-weight:900;
    letter-spacing:.18em;
    text-transform:uppercase;
}

.afd-trial-percent{
    font-size:22px;
    font-weight:900;
    color:#fff;
}

.afd-progress{
    width:100%;
    height:8px;
    border-radius:999px;
    background:rgba(255,255,255,.08);
    overflow:hidden;
    margin-bottom:26px;
}

.afd-progress-fill{
    height:100%;
    border-radius:999px;
    background:linear-gradient(135deg,#ff9a28,#ff5a00);
    transition:width .35s ease;
}

.afd-value-list{
    display:grid;
    gap:12px;
    margin:24px 0;
    font-size:17px;
    font-weight:700;
}

.afd-value-list div{
    display:flex;
    align-items:center;
    gap:12px;
}

.afd-live-preview{
    margin:24px 0;
    padding:22px;
    border-radius:22px;
    border:2px solid #ff7a18;
    background:#050505;
    box-shadow:0 20px 60px rgba(0,0,0,.45);
}

.afd-preview-dot{
    width:12px;
    height:12px;
    border-radius:50%;
    margin-bottom:14px;
}

.afd-live-preview strong{
    display:block;
    font-size:22px;
    margin-bottom:10px;
}

.afd-live-preview p{
    margin-bottom:18px;
    color:rgba(255,255,255,.82);
}

.afd-live-preview button{
    width:100%;
    margin-top:10px;
    min-height:52px;
    border-radius:16px;
    font-weight:900;
    cursor:pointer;
}

.afd-style-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin:22px 0;
}

.afd-style-grid button{
    min-height:54px;
}

.afd-greeting-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
    margin:20px 0;
}

.afd-greeting-grid button{
    text-align:left;
    min-height:58px;
}

.afd-faq-pair{
    display:grid;
    gap:10px;
    margin-bottom:16px;
}

.afd-checkbox-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    margin:24px 0;
}

.afd-check-card{
    display:flex;
    align-items:center;
    gap:12px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.12);
    border-radius:18px;
    padding:16px;
    cursor:pointer;
    transition:.2s ease;
}

.afd-check-card:hover{
    border-color:#ff7a18;
    background:rgba(255,122,24,.08);
}

.afd-check-card input{
    width:auto;
    transform:scale(1.2);
}

.afd-ready-card{
    display:grid;
    gap:12px;
    margin:24px 0;
    padding:22px;
    border-radius:20px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,122,24,.24);
}

.afd-ready-card div{
    display:flex;
    justify-content:space-between;
    font-weight:700;
}

.afd-copy-embed-btn{
    margin-top:18px;
}

@media (max-width:700px){

    .afd-trial-top{
        flex-direction:column;
        align-items:flex-start;
    }

    .afd-trial-percent{
        font-size:18px;
    }

    .afd-style-grid{
        grid-template-columns:1fr;
    }

    .afd-checkbox-grid{
        grid-template-columns:1fr;
    }

    .afd-live-preview{
        padding:18px;
    }

    .afd-ready-card div{
        flex-direction:column;
        gap:4px;
    }
}
/* ==========================================
   AI FRONT DESK BRAND COLOR BUILDER
   Append below existing onboarding CSS
   ========================================== */

.afd-brand-builder {
    display:grid;
    grid-template-columns:minmax(0, 1.35fr) minmax(300px, .8fr);
    gap:28px;
    align-items:start;
    margin:26px 0;
}

.afd-brand-controls {
    display:grid;
    gap:22px;
    min-width:0;
}

.afd-brand-section {
    padding:22px;
    border-radius:20px;
    background:rgba(255,255,255,.035);
    border:1px solid rgba(255,255,255,.1);
}

.afd-brand-section-heading {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    margin-bottom:8px;
}

.afd-brand-section-heading > div {
    display:flex;
    align-items:center;
    gap:12px;
}

.afd-brand-section-heading h3 {
    margin:0;
    color:#fff;
    font-size:24px;
    line-height:1.15;
}

.afd-brand-section-heading strong {
    color:#ff7a18;
    font-size:18px;
    font-weight:900;
    line-height:1.2;
    word-break:break-word;
}

.afd-brand-step {
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    width:30px;
    height:30px;
    border-radius:50%;
    background:#ff7a18;
    color:#111;
    font-size:14px;
    font-weight:900;
}

.afd-brand-section > p {
    margin:8px 0 18px;
    color:rgba(255,255,255,.72);
    font-size:15px;
    line-height:1.55;
}

.afd-brand-color-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}

.afd-brand-swatch {
    position:relative;
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    min-width:0;
    min-height:50px;
    margin:0;
    padding:9px 34px 9px 10px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.04);
    color:#fff;
    font:inherit;
    font-size:14px;
    font-weight:800;
    text-align:left;
    cursor:pointer;
    appearance:none;
    -webkit-appearance:none;
    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.afd-brand-swatch:hover {
    transform:translateY(-1px);
    border-color:var(--afd-swatch-color);
    background:rgba(255,255,255,.08);
}

.afd-brand-swatch.selected {
    border-color:var(--afd-swatch-color);
    box-shadow:
        0 0 0 2px rgba(255,255,255,.08),
        0 0 0 4px var(--afd-swatch-color);
    background:rgba(255,255,255,.1);
}

.afd-brand-swatch-circle {
    display:block;
    flex:0 0 auto;
    width:24px;
    height:24px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,.45);
    box-shadow:0 3px 12px rgba(0,0,0,.35);
}

.afd-brand-swatch-name {
    overflow:hidden;
    color:#fff;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.afd-brand-check {
    position:absolute;
    top:50%;
    right:11px;
    display:none;
    align-items:center;
    justify-content:center;
    width:20px;
    height:20px;
    border-radius:50%;
    background:#fff;
    color:#050505;
    font-size:13px;
    font-weight:900;
    transform:translateY(-50%);
}

.afd-brand-swatch.selected .afd-brand-check {
    display:flex;
}

.afd-brand-preview-column {
    position:sticky;
    top:20px;
    min-width:0;
}

.afd-brand-preview-label {
    margin-bottom:10px;
    color:rgba(255,255,255,.72);
    font-size:12px;
    font-weight:900;
    letter-spacing:.15em;
    text-transform:uppercase;
}

.afd-brand-preview {
    overflow:hidden;
    width:100%;
    min-height:315px;
    border:2px solid #ff7a18;
    border-radius:24px;
    background:#050505;
    color:#fff;
    box-shadow:0 24px 70px rgba(0,0,0,.42);
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.afd-brand-preview-header {
    display:flex;
    align-items:center;
    min-height:88px;
    padding:20px;
    background:#ff7a18;
    transition:
        background-color .2s ease,
        color .2s ease;
}

.afd-brand-preview-header > div {
    display:flex;
    flex-direction:column;
    gap:3px;
}

.afd-brand-preview-header strong {
    display:block;
    margin:0;
    color:inherit;
    font-size:24px;
    font-weight:900;
    line-height:1.1;
}

.afd-brand-preview-header span {
    color:inherit;
    font-size:13px;
    font-weight:800;
    opacity:.82;
}

.afd-brand-preview-body {
    display:flex;
    flex-direction:column;
    gap:16px;
    padding:22px;
}

.afd-brand-preview-message {
    padding:16px 17px;
    border:1px solid #ff7a18;
    border-radius:18px 18px 18px 5px;
    background:#141414;
    color:#fff;
    font-size:15px;
    font-weight:700;
    line-height:1.5;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease;
}

/*
The preview button has no onboarding action.
Hide it instead of showing a button that does nothing.
*/
.afd-brand-preview-button {
    display:none;
}

.afd-brand-contrast-note {
    display:none;
    margin-top:12px;
    padding:12px 14px;
    border-radius:12px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.1);
    color:rgba(255,255,255,.78);
    font-size:13px;
    font-weight:700;
    line-height:1.45;
}

.afd-brand-reset {
    width:100%;
    min-height:48px;
    margin-top:12px;
    border:1px solid rgba(255,255,255,.18);
    border-radius:14px;
    background:rgba(255,255,255,.06);
    color:#fff;
    font-weight:900;
    cursor:pointer;
}

.afd-brand-reset:hover {
    border-color:#ff7a18;
    background:rgba(255,122,24,.1);
}

@media (max-width:900px) {
    .afd-brand-builder {
        grid-template-columns:1fr;
    }

    .afd-brand-preview-column {
        position:static;
    }
}

@media (max-width:700px) {
    .afd-brand-section {
        padding:17px;
    }

    .afd-brand-section-heading {
        flex-direction:column;
        gap:8px;
    }

    .afd-brand-color-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .afd-brand-preview-header strong {
        font-size:21px;
    }
}

@media (max-width:420px) {
    .afd-brand-color-grid {
        grid-template-columns:1fr;
    }
}
/* Paid signup: Unlock Your Dashboard */
.afd-unlock-plan-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-top:18px;
}

.afd-unlock-plan-card{
  padding:20px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:17px;
  background:#0c0c0c;
}

.afd-unlock-plan-card h3{
  margin:9px 0;
  font-size:31px;
}

.afd-unlock-plan-card ul{
  min-height:170px;
  padding-left:20px;
  color:#c3c3c3;
  line-height:1.8;
}

.afd-unlock-featured-plan{
  border-color:rgba(255,122,24,.4);
  background:
    radial-gradient(circle at top right,rgba(255,122,24,.14),transparent 35%),
    #0c0c0c;
}

.afd-unlock-primary-button,
.afd-unlock-secondary-button{
  padding:13px 18px;
  border-radius:13px;
  font-size:14px;
  font-weight:900;
  transition:.18s ease;
  cursor:pointer;
}

.afd-unlock-primary-button{
  border:0;
  background:linear-gradient(135deg,#ff9d36,#ff5a00);
  color:#101010;
  box-shadow:0 12px 30px rgba(255,95,0,.22);
}

.afd-unlock-secondary-button{
  border:1px solid rgba(255,255,255,.11);
  background:#202020;
  color:#fff;
}

.afd-unlock-primary-button:disabled,
.afd-unlock-secondary-button:disabled{
  cursor:wait;
  opacity:.65;
}

.afd-unlock-small-note{
  color:#888;
  font-size:12px;
  line-height:1.5;
}

@media (max-width:700px){
  .afd-unlock-plan-grid{
    grid-template-columns:1fr;
  }

  .afd-unlock-plan-card ul{
    min-height:0;
  }
}
