.cfmp-box-wrapper {
    max-width: 700px;
    margin: 40px auto;
    background: #ffffff;
    border: 1px solid #eef2f5;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(18, 28, 37, 0.06);
    padding: 35px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.cfmp-box-wrapper * {
    box-sizing: border-box;
}

.cfmp-split-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .cfmp-split-row {
        flex-direction: column;
        gap: 0;
    }
}

.cfmp-input-component {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.cfmp-input-component label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.cfmp-input-component input[type="text"],
.cfmp-input-component input[type="number"],
.cfmp-input-component select {
    padding: 14px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 16px;
    color: #303133;
    background-color: #fafbfc;
    transition: all 0.25s ease-in-out;
    width: 100%;
}

.cfmp-input-component input:focus,
.cfmp-input-component select:focus {
    border-color: #ff3366;
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.1);
}

.cfmp-radio-toggle {
    display: flex;
    background: #f0f2f5;
    padding: 4px;
    border-radius: 8px;
    height: 50px;
    align-items: center;
}

.cfmp-radio-toggle label {
    flex: 1;
    text-align: center;
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 0;
    text-transform: none;
    color: #606266;
}

.cfmp-radio-toggle input {
    margin-right: 5px;
}

.cfmp-nested-row {
    display: flex;
    gap: 10px;
}

#cfmp-generate-btn {
    width: 100%;
    background: #111111;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 10px;
}

#cfmp-generate-btn:hover {
    background: #ff3366;
}

#cfmp-generate-btn:disabled {
    background: #a8abb2;
    cursor: not-allowed;
}

#cfmp-processing-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    font-size: 14px;
    color: #606266;
    font-weight: 500;
}

.cfmp-ring-loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff3366;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: cfmproptatestepper 0.8s linear infinite;
}

@keyframes cfmproptatestepper {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cfmp-metric-display-dashboard {
    background: #fafbfc;
    border: 1px solid #ebdfee;
    border-radius: 12px;
    padding: 24px;
    margin-top: 35px;
    text-align: center;
}

.cfmp-metric-display-dashboard h3,
.cfmp-plan-display-dashboard h3 {
    margin-top: 0;
    font-size: 18px;
    color: #111111;
    font-weight: 700;
}

.cfmp-subtext {
    font-size: 14px;
    color: #606266;
    margin: 5px 0 12px 0;
}

.cfmp-highlight-target {
    font-size: 16px;
    color: #303133;
    margin-bottom: 20px;
}

.cfmp-highlight-target span {
    font-size: 28px;
    font-weight: 800;
    color: #ff3366;
    display: block;
}

.cfmp-macro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.cfmp-macro-card {
    background: #ffffff;
    border: 1px solid #e4e7ed;
    padding: 15px 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.cfmp-macro-card .cfmp-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #909399;
    font-weight: 600;
}

.cfmp-macro-card .cfmp-value {
    font-size: 20px;
    font-weight: 700;
    color: #111111;
    margin-top: 4px;
}

.cfmp-plan-display-dashboard {
    margin-top: 30px;
    border-top: 1px dashed #dcdfe6;
    padding-top: 30px;
}

.cfmp-html-rendered-data h4 {
    font-size: 15px;
    color: #ff3366;
    margin: 20px 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cfmp-html-rendered-data ul {
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.cfmp-html-rendered-data li {
    font-size: 15px;
    color: #48494c;
    margin-bottom: 6px;
    line-height: 1.5;
}

.cfmp-error-alert {
    background: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fde2e2;
    padding: 16px;
    border-radius: 8px;
    margin-top: 35px;
    font-size: 14px;
}