/* ── CTA Access Manager ── */

/* Auth forms */
.cta-auth-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 32px;
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.cta-auth-form h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 4px; color: #0f172a; }
.cta-auth-sub { font-size: 13px; color: #6b7280; margin: 0 0 20px; }
.cta-form-row { margin-bottom: 12px; }
.cta-form-row input {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid #dde3ea; border-radius: 6px;
    font-size: 14px; box-sizing: border-box;
    transition: border-color .15s;
}
.cta-form-row input:focus { border-color: #1a73d1; outline: none; }
.cta-form-msg { font-size: 13px; min-height: 18px; margin-top: 6px; }
.cta-form-msg.error   { color: #dc2626; }
.cta-form-msg.success { color: #16a34a; }
.cta-auth-switch { font-size: 13px; color: #6b7280; margin: 14px 0 0; text-align: center; }
.cta-auth-switch a { color: #1a73d1; }

/* Buttons */
.cta-btn-primary {
    display: inline-block;
    background: #1a73d1; color: #fff !important;
    font-weight: 600; padding: 10px 22px;
    border-radius: 6px; border: none; cursor: pointer;
    font-size: 14px; text-decoration: none !important;
    transition: background .15s; width: 100%;
    text-align: center; box-sizing: border-box;
}
.cta-btn-primary:hover { background: #1558a8; }
.cta-btn-featured      { background: #1a7a40 !important; }
.cta-btn-featured:hover{ background: #145f31 !important; }
.cta-btn-secondary {
    display: inline-block;
    background: #f0f2f5; color: #374151 !important;
    font-weight: 600; padding: 10px 22px;
    border-radius: 6px; border: 1.5px solid #dde3ea;
    cursor: pointer; font-size: 14px;
    text-decoration: none; transition: background .15s;
    text-align: center;
}
.cta-btn-secondary:hover { background: #e4e6ea; }
.cta-btn-sm { padding: 7px 16px !important; font-size: 13px !important; width: auto !important; }
.cta-btn-xs {
    display: inline-block; background: #1a73d1;
    color: #fff !important; font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 4px; text-decoration: none !important;
}

/* Prompts */
.cta-prompt {
    background: #fff; border: 1.5px solid #dde3ea;
    border-radius: 12px; padding: 28px 24px;
    text-align: center; margin: 16px 0;
}
.cta-prompt--login   { border-color: #bfdbfe; background: #eff6ff; }
.cta-prompt--upgrade { border-color: #bbf7d0; background: #f0fdf4; }
.cta-prompt__icon  { font-size: 30px; margin-bottom: 10px; }
.cta-prompt__title { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin: 0 0 8px; }
.cta-prompt__text  { font-size: 14px; color: #374151; margin: 0 0 18px; line-height: 1.5; }
.cta-prompt__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cta-prompt--inline {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; color: #6b7280;
    padding: 5px 10px; background: #fefce8;
    border: 1px solid #fde68a; border-radius: 6px;
}

/* Pricing cards */
.cta-pricing-row {
    display: flex; gap: 14px; justify-content: center;
    flex-wrap: wrap; margin-top: 18px;
}
.cta-pricing-card {
    flex: 1; min-width: 170px; max-width: 210px;
    background: #fff; border: 1.5px solid #dde3ea;
    border-radius: 10px; padding: 20px 16px;
    text-align: center; position: relative;
}
.cta-pricing-card--featured {
    border-color: #1a7a40;
    box-shadow: 0 4px 16px rgba(26,122,64,.15);
}
.cta-pricing-badge {
    position: absolute; top: -10px; left: 50%;
    transform: translateX(-50%);
    background: #1a7a40; color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 3px 10px; border-radius: 10px; white-space: nowrap;
}
.cta-pricing-name  { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #6b7280; margin-bottom: 8px; }
.cta-pricing-price { font-size: 1.75rem; font-weight: 800; color: #0f172a; line-height: 1; margin-bottom: 2px; }
.cta-pricing-price span { font-size: .8rem; font-weight: 400; color: #6b7280; }
.cta-pricing-year  { font-size: 11px; color: #9ca3af; margin-bottom: 14px; }
.cta-pricing-features {
    list-style: none; padding: 0; margin: 0 0 16px;
    text-align: left; font-size: 12px; color: #374151; line-height: 2;
}

/* Client selector */
.cta-client-selector {
    background: #f8f9fa; border: 1px solid #dde3ea;
    border-radius: 8px; padding: 12px 16px; margin-bottom: 20px;
}
.cta-cs-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cta-cs-label  { font-size: 13px; font-weight: 600; color: #374151; white-space: nowrap; }
#cta-cs-select {
    padding: 7px 10px; border: 1.5px solid #dde3ea;
    border-radius: 6px; font-size: 13px; flex: 1; min-width: 160px;
}
.cta-cs-add-btn {
    background: #1a73d1; color: #fff; border: none;
    padding: 7px 14px; border-radius: 6px;
    font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.cta-cs-add-btn:hover { background: #1558a8; }
.cta-cs-new-form {
    display: flex; gap: 8px; align-items: center;
    margin-top: 10px; flex-wrap: wrap;
}
.cta-cs-new-form input {
    flex: 1; padding: 7px 10px;
    border: 1.5px solid #dde3ea; border-radius: 6px;
    font-size: 13px; min-width: 160px;
}

/* User account bar */
.cta-user-account {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    font-size: 13px; padding: 10px 16px;
    background: #f8f9fa; border-radius: 8px; border: 1px solid #dde3ea;
}
.cta-ua-name { font-weight: 600; color: #0f172a; }
.cta-ua-tier {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    padding: 3px 8px; border-radius: 4px; letter-spacing: .4px;
}
.cta-tier-free    { background: #f3f4f6; color: #6b7280; }
.cta-tier-member  { background: #eff6ff; color: #1d4ed8; }
.cta-tier-premium { background: #f0fdf4; color: #15803d; }
.cta-ua-module    { font-size: 12px; color: #6b7280; }
.cta-ua-actions   { display: flex; gap: 10px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.cta-ua-logout    { font-size: 12px; color: #9ca3af; text-decoration: none; }
.cta-ua-logout:hover { color: #dc2626; }
