/* httpdocs/css/styles.css */
:root {
    --bg-warm: #F7FAF9;
    --card-bg: #ffffff;
    --accent-blue: #0F6F83; /* Silber-KI Petrol */
    --accent-interact: #0A5D6E; /* dunklerer Button-/Hover-Ton */
    --text-main: #2c2c2c;
    --text-muted: #595959;
    --border-soft: #e8e8e1;
    --success-green: #27ae60;
    --warning-red: #c0392b;
    --shadow-premium: 0 12px 40px rgba(44, 62, 80, 0.08);
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 20px;
    background-color: var(--bg-warm);
    color: var(--text-main);
    margin: 0;
    min-height: 100vh;
}

h1, h2, h3 { font-family: 'Georgia', serif; color: var(--accent-blue); }

.text-center { text-align: center; }

[hidden] {
    display: none !important;
}

.silver-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.chat-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.header-area {
    padding: 24px 0 18px;
    text-align: center;
    flex-shrink: 0;
}

.dynamic-logo img {
    max-height: 80px;
    width: auto;
    display: inline-block;
}

.dynamic-logo h1 {
    margin: 0;
    font-size: 2.5rem;
}

.chat-subline {
    color: var(--text-muted);
    font-size: 18px;
    margin: 12px 0 0;
}

.silver-card {
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-soft);
    padding: 40px;
}

.login-logo {
    margin-bottom: 30px;
}

.login-card {
    max-width: 500px;
    margin: 0 auto;
}

.login-form {
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
}

.login-back-link {
    margin-top: 14px;
}

.form-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 18px;
    box-sizing: border-box;
}

.form-error {
    color: var(--warning-red);
    font-size: 15px;
    margin: 14px 0 0;
}

.form-error.is-success {
    color: var(--success-green);
}

.link-button {
    margin-top: 14px;
    border: none;
    background: transparent;
    color: var(--accent-blue);
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    max-width: 100%;
}

.login-footer {
    margin-top: 40px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.dashboard-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.help-button {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 2px solid var(--accent-blue);
    background: #fff;
    color: var(--accent-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: var(--shadow-premium);
    flex: 0 0 auto;
}

.help-button:hover {
    background: var(--accent-blue);
    color: #fff;
}

.help-card {
    padding: clamp(28px, 5vw, 56px);
}

.help-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
    margin-bottom: 34px;
}

.help-hero h1 {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.06;
    margin: 0 0 14px;
}

.help-hero p {
    max-width: 820px;
    margin: 0;
    line-height: 1.4;
}

.help-back {
    white-space: nowrap;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: #fbfbf8;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    min-height: 62px;
    padding: 16px 20px;
    border: none;
    background: transparent;
    color: var(--accent-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 19px;
    font-weight: 800;
    text-align: left;
}

.faq-question::after {
    content: "+";
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--accent-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    font-size: 22px;
    line-height: 1;
}

.faq-item.is-open .faq-question::after {
    content: "-";
    background: var(--accent-blue);
    color: #fff;
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-main);
    font-size: 17px;
    line-height: 1.5;
}

.faq-answer p {
    margin: 0 0 12px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.project-switcher {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.project-switcher:empty {
    display: none;
}

.project-switcher label {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
}

.project-select {
    max-width: 320px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: #fff;
    color: var(--text-main);
    font-size: 15px;
}

.dashboard-footer {
    margin-top: 60px;
    border-top: 1px solid var(--border-soft);
    padding-top: 20px;
}

.dashboard-panel {
    padding: clamp(28px, 5vw, 56px);
}

.dashboard-kicker {
    color: var(--accent-blue);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.dashboard-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: start;
    margin-bottom: 34px;
}

.dashboard-intro h1 {
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.06;
    margin: 0 0 18px;
}

.dashboard-intro p,
.dashboard-state p {
    max-width: 860px;
    line-height: 1.35;
}

.project-status {
    min-width: 150px;
    padding: 16px 18px;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: #f7f7f2;
    color: var(--text-muted);
}

.project-status span,
.project-status strong {
    display: block;
}

.project-status span {
    font-size: 14px;
    margin-bottom: 4px;
}

.project-status strong {
    color: var(--accent-blue);
    font-size: 20px;
}

.project-status.is-locked strong {
    color: var(--success-green);
}

.project-chat-link {
    width: 100%;
    margin-top: 12px;
    min-height: 36px;
    border: 1px solid var(--accent-blue);
    border-radius: 10px;
    background: #fff;
    color: var(--accent-blue);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.project-chat-link:hover {
    background: var(--accent-blue);
    color: #fff;
}

.active-project-title {
    max-width: 860px;
    margin: -8px 0 32px;
    padding: 18px 22px;
    border-left: 4px solid var(--accent-blue);
    border-radius: 10px;
    background: #f5fbfa;
}

.active-project-title span,
.active-project-title strong {
    display: block;
}

.active-project-title span {
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.active-project-title strong {
    color: var(--accent-blue);
    font-family: Georgia, serif;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}

.active-project-title small {
    display: block;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.asset-card {
    display: flex;
    flex-direction: column;
    min-height: 360px;
    padding: 24px;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: #fbfbf8;
}

.asset-card h2 {
    font-size: 30px;
    line-height: 1.1;
    margin: 18px 0 12px;
}

.project-danger-zone {
    display: flex;
    justify-content: flex-end;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--border-soft);
}

.project-delete-btn {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--warning-red);
    border-radius: 10px;
    background: #fff;
    color: var(--warning-red);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.project-delete-btn:hover {
    background: var(--warning-red);
    color: #fff;
}

.asset-card p {
    color: var(--text-main);
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 24px;
}

.asset-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-blue), #7fb6c1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
    font-size: 32px;
    font-weight: 700;
}

.asset-button {
    margin-top: auto;
    width: 100%;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1.15;
    white-space: nowrap;
}

.asset-secondary-action {
    margin-top: 12px;
}

.asset-download-list {
    display: grid;
    gap: 8px;
    margin-top: auto;
}

.asset-download-link {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    background: #fff;
}

.asset-download-link:hover {
    background: #f0faf8;
}

.asset-limit-note {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.35;
}

.asset-card.locked {
    opacity: 0.7;
}

.asset-card.ready {
    border-color: rgba(39, 174, 96, 0.28);
    background: #fbfefb;
}

.asset-ready-pill {
    align-self: flex-start;
    margin-top: 16px;
}

.asset-card button:disabled,
.modal-card button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.dashboard-state {
    padding: clamp(34px, 6vw, 70px);
}

.dashboard-state h1 {
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    margin: 12px 0 18px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eef7f6;
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 700;
}

.status-pill.success {
    background: #eef8f0;
    color: var(--success-green);
}

.status-pill.error {
    background: #fbefed;
    color: var(--warning-red);
}

.progress-track {
    height: 12px;
    border-radius: 999px;
    background: #eef0ee;
    overflow: hidden;
    margin: 34px auto 18px;
    max-width: 520px;
}

.progress-bar {
    display: block;
    width: 62%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent-blue);
    animation: master-progress 2.6s ease-in-out infinite;
}

@keyframes master-progress {
    0% {
        transform: translateX(-85%);
    }
    50% {
        transform: translateX(40%);
    }
    100% {
        transform: translateX(170%);
    }
}

.master-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 780px;
}

.creation-live-box {
    width: min(620px, 100%);
    margin: 30px auto 0;
    padding: 18px 22px;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: #f5fbfa;
    text-align: left;
}

.creation-live-kicker,
.creation-live-box strong {
    display: block;
}

.creation-live-kicker {
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.creation-live-box strong {
    color: var(--accent-blue);
    font-size: 22px;
    line-height: 1.25;
}

.creation-progress {
    height: 14px;
    max-width: 620px;
    margin: 34px auto 18px;
    border-radius: 999px;
    background: #eef0ee;
    overflow: hidden;
}

.creation-progress span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-blue), #7fb6c1);
    animation: creation-progress 2.4s ease-in-out infinite;
}

.creation-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    max-width: 920px;
    margin: 22px auto 0;
}

.creation-steps span {
    min-height: 58px;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    color: var(--accent-blue);
    background: #fbfbf8;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    line-height: 1.2;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.creation-steps span b {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    background: #eef7f6;
    color: var(--accent-blue);
    font-size: 12px;
}

.creation-steps span.is-active {
    border-color: rgba(15, 111, 131, 0.35);
    background: #eef9f7;
    transform: translateY(-2px);
}

.creation-steps span.is-active b {
    background: var(--accent-blue);
    color: #fff;
}

.creation-steps span.is-done {
    border-color: rgba(39, 174, 96, 0.28);
    background: #f1faf3;
    color: var(--success-green);
}

.creation-steps span.is-done b {
    background: var(--success-green);
    color: #fff;
}

@keyframes creation-progress {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(70%);
    }
    100% {
        transform: translateX(240%);
    }
}

.muted-text {
    color: var(--text-muted);
    font-size: 16px;
}

.dashboard-return {
    display: inline-flex;
    margin-top: 18px;
    text-decoration: none;
}

.processing-retry {
    margin-top: 18px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(20, 32, 36, 0.48);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.is-hidden {
    display: none;
}

.modal-card {
    width: min(680px, 100%);
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-soft);
}

.modal-card h2 {
    margin: 0 0 14px;
}

.modal-card p {
    line-height: 1.45;
    margin: 0;
}

.modal-copy {
    color: var(--text-main);
}

.asset-meta-form {
    display: grid;
    gap: 8px;
    margin-top: 24px;
}

.asset-meta-form label {
    color: var(--accent-blue);
    font-size: 15px;
    font-weight: 700;
}

.asset-meta-form .form-input {
    margin-bottom: 10px;
}

.title-input {
    min-height: 96px;
    resize: vertical;
    line-height: 1.35;
}

.modal-note {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 8px !important;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: white;
    padding: 15px 35px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--accent-interact);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-blue);
    padding: 11px 18px;
    border-radius: 10px;
    border: 1px solid var(--accent-blue);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
}

.btn-secondary:hover {
    background: var(--accent-blue);
    color: #fff;
}

.btn-icon {
    width: 54px;
    min-width: 54px;
    height: 54px;
    border-radius: 12px;
    border: 1px solid var(--accent-blue);
    background: #fff;
    color: var(--accent-blue);
    cursor: pointer;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover,
.btn-icon.recording {
    background: var(--accent-blue);
    color: #fff;
}

.offer-page {
    max-width: 1120px;
}

.offer-shell {
    padding: clamp(28px, 5vw, 54px);
}

.offer-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
    margin-bottom: 34px;
}

.offer-kicker,
.offer-plan-label {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.offer-intro h1 {
    max-width: 780px;
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
}

.offer-intro p {
    max-width: 760px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.45;
}

.offer-back {
    white-space: nowrap;
}

.offer-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.offer-summary div {
    padding: 18px;
    border-radius: 14px;
    background: #f5fbfa;
    border: 1px solid rgba(15, 111, 131, 0.16);
}

.offer-summary span,
.offer-summary strong {
    display: block;
}

.offer-summary span {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.offer-summary strong {
    color: var(--accent-blue);
    font-size: 17px;
    line-height: 1.35;
}

.offer-run-box {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 28px;
    padding: 28px;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: #fff;
}

.offer-run-box h2 {
    margin: 0 0 12px;
    color: var(--accent-blue);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.offer-run-box p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.offer-benefit-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.offer-benefit-list li {
    position: relative;
    min-height: 44px;
    padding: 12px 14px 12px 36px;
    border-radius: 10px;
    background: #f5fbfa;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.3;
}

.offer-benefit-list li::before {
    content: "+";
    position: absolute;
    left: 14px;
    color: var(--accent-blue);
    font-weight: 900;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.offer-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-height: 640px;
    padding: 28px;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: #fbfbf8;
}

.offer-plan-premium {
    border: 2px solid var(--accent-blue);
    background: #f4faf9;
    box-shadow: 0 18px 42px rgba(15, 111, 131, 0.12);
}

.offer-badge {
    position: absolute;
    top: 22px;
    right: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--accent-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0;
}

.offer-plan h2 {
    margin: 0 0 14px;
    font-size: 34px;
    line-height: 1.08;
}

.offer-price {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
    margin: 16px 0 8px;
}

.offer-price-main {
    color: var(--accent-blue);
    font-family: Georgia, serif;
    font-size: clamp(46px, 7vw, 68px);
    font-weight: 800;
    line-height: 0.95;
}

.offer-price-side {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 800;
}

.offer-price-note,
.offer-card-note {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.45;
}

.offer-card-note {
    margin-top: auto !important;
    padding-top: 4px;
}

.offer-plan p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.45;
}

.offer-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.offer-list li {
    padding: 12px 14px;
    border-left: 3px solid var(--accent-blue);
    border-radius: 8px;
    background: #fff;
    font-size: 16px;
    line-height: 1.35;
}

.offer-button {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.offer-why-premium {
    margin-top: 24px;
    padding: 26px;
    border: 1px solid rgba(15, 111, 131, 0.16);
    border-radius: 18px;
    background: #f5fbfa;
}

.offer-why-premium h2 {
    margin: 0 0 18px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.12;
}

.offer-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.offer-proof-grid div {
    padding: 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border-soft);
}

.offer-proof-grid strong,
.offer-proof-grid span {
    display: block;
}

.offer-proof-grid strong {
    margin-bottom: 8px;
    color: var(--accent-blue);
    font-size: 18px;
}

.offer-proof-grid span {
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.45;
}

.offer-note {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 24px;
    padding: 18px;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: #fff;
    color: var(--text-muted);
    font-size: 16px;
}

.offer-note strong {
    color: var(--accent-blue);
}

.offer-note span {
    flex: 1 1 360px;
}

.affiliate-status {
    display: inline-flex;
    margin-top: 16px !important;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef7f6;
    color: var(--accent-blue) !important;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.partner-shell {
    padding: clamp(28px, 5vw, 54px);
}

.partner-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 24px;
    align-items: start;
}

.partner-form,
.partner-result {
    padding: 24px;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: #fbfbf8;
}

.partner-form label {
    display: block;
    margin: 0;
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 800;
}

.field-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 7px;
}

.field-help {
    position: relative;
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(15, 111, 131, 0.38);
    background: #fff;
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    cursor: help;
    flex: 0 0 auto;
}

.field-help::after {
    content: attr(data-help);
    position: absolute;
    left: 0;
    bottom: calc(100% + 9px);
    z-index: 30;
    width: min(360px, 78vw);
    padding: 13px 14px;
    border-radius: 10px;
    background: #172023;
    color: #fff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.field-help:hover::after,
.field-help:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.field-live-status {
    min-height: 22px;
    margin: 7px 0 12px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
}

.field-live-status.is-ok {
    color: var(--accent-blue);
}

.field-live-status.is-warn {
    color: #a87616;
}

.field-live-status.is-error {
    color: var(--warning-red);
}

.partner-result h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
}

.partner-result p {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.45;
}

.partner-link-box {
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border-soft);
}

.partner-link-box span,
.partner-link-box strong {
    display: block;
}

.partner-link-box span {
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.partner-link-box strong {
    color: var(--accent-blue);
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.offer-steps {
    margin-top: 24px;
    padding: 26px;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: #fff;
}

.offer-steps h2 {
    margin: 0 0 18px;
    color: var(--accent-blue);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.12;
}

.offer-steps ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: offer-step;
}

.offer-steps li {
    position: relative;
    padding: 18px 18px 18px 58px;
    border-radius: 14px;
    background: #f5fbfa;
    counter-increment: offer-step;
}

.offer-steps li::before {
    content: counter(offer-step);
    position: absolute;
    left: 18px;
    top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--accent-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.offer-steps strong,
.offer-steps span {
    display: block;
}

.offer-steps strong {
    margin-bottom: 6px;
    color: var(--accent-blue);
}

.offer-steps span {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.45;
}

.thankyou-page {
    max-width: 980px;
}

.thankyou-shell {
    padding: clamp(30px, 5vw, 58px);
}

.thankyou-shell h1 {
    max-width: 780px;
    margin: 0 0 18px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
}

.thankyou-lead {
    max-width: 820px;
    margin: 0 0 28px;
    color: var(--text-main);
    font-size: 20px;
    line-height: 1.45;
}

.thankyou-status {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0;
}

.thankyou-status div {
    padding: 18px;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: #f7fbfa;
}

.thankyou-status span,
.thankyou-status strong {
    display: block;
}

.thankyou-status span {
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.thankyou-status strong {
    color: var(--accent-blue);
    font-size: 17px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.thankyou-steps {
    display: grid;
    gap: 12px;
    margin: 30px 0;
}

.thankyou-steps article {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 16px;
    align-items: start;
    padding: 18px;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    background: #fff;
}

.thankyou-steps article > strong {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--accent-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
    font-size: 22px;
}

.thankyou-steps h2 {
    margin: 0 0 6px;
    font-size: 25px;
}

.thankyou-steps p {
    margin: 0;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.45;
}

.thankyou-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 28px;
}

.thankyou-actions .btn-primary,
.thankyou-actions .btn-secondary {
    min-height: 56px;
    font-size: 17px;
}

.thankyou-hint {
    margin: 24px 0 0;
    padding: 16px 18px;
    border-left: 4px solid var(--accent-blue);
    border-radius: 10px;
    background: #f5fbfa;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.45;
}

/* Chat Styles */
.chat-card {
    background: var(--card-bg);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    height: min(70vh, 720px);
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-premium);
}

.chat-history { flex-grow: 1; overflow-y: auto; padding: 25px; display: flex; flex-direction: column; gap: 15px; }

.message-row {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    width: 100%;
}

.assistant-row {
    justify-content: flex-start;
}

.user-row {
    justify-content: flex-end;
}

.chat-avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-blue);
    background: #fff;
}

.message { 
    max-width: 75%; padding: 15px 22px; border-radius: 18px; font-size: 18px; 
    white-space: pre-wrap; word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.04);
}
.assistant { background: #f7f7f2; border-bottom-left-radius: 4px; }
.user { background: var(--accent-blue); color: white; border-bottom-right-radius: 4px; }

.quick-reply-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.quick-reply-button {
    appearance: none;
    border: 1px solid var(--accent-blue);
    border-radius: 999px;
    background: #fff;
    color: var(--accent-blue);
    padding: 9px 14px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.quick-reply-button:hover,
.quick-reply-button:focus-visible {
    background: var(--accent-blue);
    color: #fff;
}

.preview-card {
    max-width: 860px;
    width: min(860px, 100%);
    padding: 28px 32px;
    background: #fbfbf7;
    border: 1px solid var(--border-soft);
    border-bottom-left-radius: 18px;
}

.preview-kicker {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.preview-card h2 {
    margin: 0 0 20px;
    color: var(--accent-blue);
    font-size: 28px;
    line-height: 1.2;
}

.preview-disclaimer {
    margin: -8px 0 22px;
    padding: 12px 14px;
    border-left: 4px solid var(--accent-blue);
    border-radius: 8px;
    background: #fff;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.5;
}

.preview-card h3 {
    margin: 0 0 6px;
    color: var(--accent-blue);
    font-size: 15px;
    line-height: 1.35;
}

.preview-card strong {
    display: block;
    margin-bottom: 12px;
    color: var(--accent-blue);
}

.preview-text {
    line-height: 1.6;
    margin-bottom: 22px;
}

.preview-value-box {
    margin: 8px 0 24px;
    padding: 18px 20px;
    border-radius: 10px;
    background: #f0f7f6;
    border: 1px solid var(--border-soft);
}

.preview-value-box strong {
    margin-bottom: 12px;
    color: var(--accent-blue);
}

.preview-value-box ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.preview-value-box li {
    position: relative;
    padding-left: 18px;
    font-size: 15px;
    line-height: 1.45;
}

.preview-value-box li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: 800;
}

.preview-section {
    margin-bottom: 18px;
}

.preview-section p,
.preview-text p {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
}

.preview-list {
    margin: -8px 0 18px 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.preview-list li {
    padding: 10px 12px;
    border-left: 3px solid var(--accent-blue);
    background: #fff;
    border-radius: 6px;
    font-size: 16px;
}

.preview-actions,
.project-upgrade-box {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.project-upgrade-box {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border-soft);
    justify-content: space-between;
}

.project-upgrade-box h2 {
    margin: 0 0 8px;
    color: var(--accent-blue);
}

.project-upgrade-box p {
    max-width: 720px;
    margin: 0;
    color: var(--text-muted);
}

.project-upgrade-box strong {
    color: var(--accent-blue);
    font-size: 18px;
}

.input-area { padding: 20px; background: #fafaf9; border-top: 1px solid var(--border-soft); display: flex; gap: 10px; }
.chat-input { flex-grow: 1; padding: 12px; border-radius: 10px; border: 1px solid #ccc; }

.chat-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 18px;
    background: #fafaf9;
}

.chat-action-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.chat-session-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: #fff;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
}

.session-logout-btn {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--accent-blue);
    border-radius: 999px;
    background: transparent;
    color: var(--accent-blue);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.session-logout-btn:hover {
    background: var(--accent-blue);
    color: #fff;
}

.btn-portal {
    background: var(--accent-blue);
    color: #fff;
}

.btn-portal:hover {
    background: var(--accent-interact);
    border-color: var(--accent-interact);
}

.dynamic-footer {
    padding: 24px 0;
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
}

.dynamic-footer p {
    margin: 0 0 8px;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.ref-status-display {
    margin: 12px 0 0 !important;
    color: rgba(80, 80, 80, 0.62) !important;
    font-size: 12px;
    font-weight: 500;
}

/* Admin Layout (Sidebar) */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; height: 100vh; }
.admin-sidebar { background: var(--accent-blue); color: white; padding: 25px; }
.admin-main { background: var(--bg-warm); padding: 40px; overflow-y: auto; }
.menu-item { display: block; width: 100%; padding: 12px; background: transparent; color: white; border: none; text-align: left; cursor: pointer; border-radius: 6px; margin-bottom: 5px; }
.menu-item.active { background: rgba(255,255,255,0.15); }

@media (max-width: 720px) {
    body {
        font-size: 18px;
    }

    .silver-container {
        padding: 10px;
    }

    .header-area {
        padding: 8px 0 10px;
    }

    .dynamic-logo img {
        max-height: 54px;
        max-width: 82vw;
    }

    .chat-subline {
        font-size: 15px;
        line-height: 1.35;
        margin-top: 6px;
    }

    .chat-card {
        height: calc(100dvh - 150px);
        min-height: 430px;
        border-radius: 18px;
    }

    .chat-history {
        padding: 16px;
        gap: 14px;
    }

    .message-row {
        gap: 10px;
    }

    .chat-avatar {
        width: 42px;
        height: 42px;
    }

    .message {
        max-width: calc(100% - 56px);
        padding: 13px 16px;
        font-size: 16px;
        line-height: 1.45;
        border-radius: 16px;
    }

    .user-row .message {
        max-width: 86%;
    }

    .quick-reply-actions {
        gap: 8px;
        margin-top: 12px;
    }

    .quick-reply-button {
        padding: 8px 12px;
        font-size: 14px;
    }

    .input-area {
        padding: 10px;
        gap: 8px;
        align-items: center;
    }

    .chat-actions {
        padding: 0 10px 10px;
        justify-content: stretch;
        align-items: stretch;
        flex-direction: column;
    }

    .chat-action-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .chat-action-buttons .btn-secondary {
        flex: 1;
        padding: 12px 10px;
        font-size: 13px;
    }

    .chat-session-bar {
        width: 100%;
        justify-content: space-between;
        box-sizing: border-box;
        border-radius: 12px;
    }

    .chat-input {
        min-width: 0;
        height: 48px;
        padding: 0 14px;
        font-size: 16px;
    }

    .btn-icon {
        width: 46px;
        min-width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .btn-primary {
        min-height: 46px;
        padding: 0 16px;
        font-size: 15px;
        border-radius: 10px;
    }

    .dynamic-footer {
        padding: 14px 0 8px;
        font-size: 12px;
    }

    .offer-shell {
        padding: 24px;
        border-radius: 18px;
    }

    .offer-intro,
    .offer-grid,
    .offer-proof-grid,
    .offer-summary,
    .offer-run-box,
    .partner-grid,
    .offer-steps ol {
        grid-template-columns: 1fr;
    }

    .offer-benefit-list {
        grid-template-columns: 1fr;
    }

    .offer-intro h1 {
        font-size: 34px;
    }

    .offer-back,
    .offer-button,
    .offer-note .btn-secondary {
        width: 100%;
    }

    .offer-plan {
        min-height: auto;
        padding: 22px;
    }

    .offer-plan h2 {
        font-size: 28px;
    }

    .offer-badge {
        position: static;
        align-self: flex-start;
        order: -1;
    }

    .offer-why-premium {
        padding: 22px;
    }

    .thankyou-status {
        grid-template-columns: 1fr;
    }

    .thankyou-steps article {
        grid-template-columns: 1fr;
    }

    .thankyou-actions .btn-primary,
    .thankyou-actions .btn-secondary {
        width: 100%;
    }

    .dashboard-header {
        align-items: flex-start;
        margin-bottom: 24px;
    }

    .project-switcher {
        order: 3;
        width: 100%;
        justify-content: stretch;
    }

    .project-switcher label {
        min-width: 58px;
    }

    .project-select {
        max-width: none;
        width: 100%;
    }

    .dashboard-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .help-button {
        width: 100%;
        height: 48px;
        border-radius: 12px;
        font-size: 26px;
    }

    .help-hero {
        grid-template-columns: 1fr;
    }

    .help-back {
        width: 100%;
    }

    .faq-question {
        font-size: 17px;
        line-height: 1.25;
    }

    .dashboard-panel,
    .dashboard-state {
        padding: 24px;
        border-radius: 18px;
    }

    .dashboard-intro {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .dashboard-intro h1 {
        font-size: 34px;
    }

    .active-project-title {
        margin: 0 0 24px;
        padding: 16px;
    }

    .active-project-title strong {
        font-size: 24px;
    }

    .asset-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .asset-card {
        min-height: auto;
        padding: 20px;
    }

    .asset-button {
        min-height: 52px;
        white-space: normal;
    }

    .asset-card h2 {
        font-size: 26px;
    }

    .project-danger-zone {
        justify-content: stretch;
    }

    .project-delete-btn {
        width: 100%;
    }

    .modal-card {
        padding: 24px;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }

    .modal-actions .btn-primary,
    .modal-actions .btn-secondary {
        width: 100%;
    }

    .creation-steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 430px) {
    .input-area {
        flex-direction: row;
    }

    .btn-icon {
        width: 46px;
        min-width: 46px;
        height: 46px;
    }

    .input-area .btn-primary {
        width: auto;
        min-width: 96px;
    }

    .chat-actions {
        flex-direction: column;
        gap: 8px;
    }

    .chat-card {
        height: calc(100dvh - 146px);
        min-height: 430px;
    }

    .chat-action-buttons {
        flex-direction: row;
        gap: 8px;
    }

    .chat-action-buttons .btn-secondary {
        min-height: 48px;
        padding: 0 8px;
        font-size: 12px;
        line-height: 1.2;
    }

    .dynamic-footer {
        padding: 10px 0 4px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .dashboard-actions {
        width: 100%;
    }

    .project-switcher {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-actions .btn-secondary {
        width: 100%;
    }

    .creation-steps {
        grid-template-columns: 1fr;
    }
}
