.xctai-wrapper {
    max-width: 920px;
    margin: 30px auto;
    padding: 0 16px;
    font-family: Arial, sans-serif;
}

.xctai-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 15px 45px rgba(20, 20, 43, 0.08);
    border: 1px solid #f0e7dc;
    padding: 30px;
}

.xctai-header {
    text-align: center;
    margin-bottom: 26px;
}

.xctai-badge {
    display: inline-block;
    background: #fff4e5;
    color: #9a5b00;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.xctai-header h2 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.25;
    color: #241c15;
}

.xctai-header p {
    color: #655d56;
    font-size: 16px;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 720px;
}

.xctai-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.xctai-field,
.xctai-upload {
    margin-bottom: 18px;
}

.xctai-field label,
.xctai-upload label {
    display: block;
    font-weight: 700;
    color: #2b2118;
    margin-bottom: 8px;
}

.xctai-field input,
.xctai-field select,
.xctai-upload input[type="file"] {
    width: 100%;
    border: 1px solid #eadfce;
    border-radius: 14px;
    padding: 13px 14px;
    background: #fffdf9;
    color: #2b2118;
    box-sizing: border-box;
    font-size: 15px;
}

.xctai-upload {
    background: #fffaf3;
    border: 1px dashed #d8b172;
    border-radius: 18px;
    padding: 18px;
}

.xctai-upload small {
    display: block;
    color: #7a6f63;
    margin-top: 8px;
    line-height: 1.6;
}

.xctai-preview {
    background: #faf7f2;
    border-radius: 18px;
    padding: 16px;
    margin: 18px 0;
    text-align: center;
}

.xctai-preview p {
    margin: 0 0 12px;
    font-weight: 700;
}

.xctai-preview img {
    max-width: 100%;
    max-height: 360px;
    border-radius: 16px;
    border: 1px solid #eadfce;
}

.xctai-submit,
.xctai-actions button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}

.xctai-submit {
    width: 100%;
    background: linear-gradient(135deg, #ba6b1d, #df982e);
    color: #fff;
    font-size: 17px;
    margin-top: 4px;
}

.xctai-submit:hover,
.xctai-actions button:hover {
    transform: translateY(-1px);
}

.xctai-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.xctai-loading {
    text-align: center;
    padding: 28px 0 10px;
    color: #6a5140;
}

.xctai-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #f3dcc2;
    border-top-color: #ba6b1d;
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: xctai-spin 1s linear infinite;
}

@keyframes xctai-spin {
    to { transform: rotate(360deg); }
}

.xctai-result-card {
    margin-top: 26px;
    background: #fffaf3;
    border-radius: 22px;
    border: 1px solid #f0e0cc;
    padding: 24px;
}

.xctai-result-card h2 {
    margin-top: 0;
    color: #241c15;
    font-size: 26px;
}

.xctai-result-intro,
.xctai-result-section p {
    color: #4d4339;
    line-height: 1.75;
    font-size: 16px;
}

.xctai-result-section {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    margin: 14px 0;
    border: 1px solid #f1e5d5;
}

.xctai-result-section h3 {
    margin: 0 0 8px;
    color: #8b4c10;
    font-size: 19px;
}

.xctai-result-warning,
.xctai-note {
    background: #fff7e9;
    color: #72522a;
    border-left: 4px solid #df982e;
    padding: 14px 16px;
    border-radius: 12px;
    line-height: 1.65;
    margin-top: 18px;
}

.xctai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.xctai-actions button:first-child {
    background: #241c15;
    color: #fff;
}

.xctai-actions button:last-child {
    background: #eadfce;
    color: #241c15;
}

.xctai-note {
    margin-top: 24px;
    font-size: 14px;
}

@media (max-width: 700px) {
    .xctai-card {
        padding: 22px;
    }

    .xctai-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .xctai-header h2 {
        font-size: 24px;
    }
}
